Skip to content

Commit

Permalink
Merge pull request #128 from binance-chain/bsc_base_improve
Browse files Browse the repository at this point in the history
Update readme and rename function
  • Loading branch information
FitzLu authored May 22, 2020
2 parents fc067ad + 8159476 commit 24952c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# BNC Chain Go SDK


The Binance Chain GO SDK provides a thin wrapper around the BNC Chain API for readonly endpoints, in addition to creating and submitting different transactions.
It includes the following core components:

Expand All @@ -10,6 +9,9 @@ It includes the following core components:
* **keys** - implement `KeyManage` to manage private key and accounts.
* **types** - core type of Binance Chain, such as `coin`, `account`, `tx` and `msg`.

## Disclaimer
**This branch is under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty.**

## Install

### Requirement
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/staking_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (

type StakingClient interface {
CreateSideChainValidator(delegation types.Coin, description msg.Description, commission types.CommissionMsg, sideChainId string, sideConsAddr []byte, sideFeeAddr []byte, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
EditSideChainValidatorMsg(sideChainId string, description msg.Description, commissionRate *types.Dec, sideFeeAddr []byte, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
EditSideChainValidator(sideChainId string, description msg.Description, commissionRate *types.Dec, sideFeeAddr []byte, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
SideChainDelegate(sideChainId string, valAddr types.ValAddress, delegation types.Coin, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
SideChainRedelegate(sideChainId string, valSrcAddr types.ValAddress, valDstAddr types.ValAddress, amount types.Coin, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
SideChainUnbond(sideChainId string, valAddr types.ValAddress, amount types.Coin, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error)
Expand Down Expand Up @@ -87,7 +87,7 @@ func (c *HTTP) CreateSideChainValidator(delegation types.Coin, description msg.D
return c.Broadcast(m, syncType, options...)
}

func (c *HTTP) EditSideChainValidatorMsg(sideChainId string, description msg.Description, commissionRate *types.Dec,
func (c *HTTP) EditSideChainValidator(sideChainId string, description msg.Description, commissionRate *types.Dec,
sideFeeAddr []byte, syncType SyncType, options ...tx.Option) (*coretypes.ResultBroadcastTx, error) {
if c.key == nil {
return nil, KeyMissingError
Expand Down
2 changes: 1 addition & 1 deletion e2e/e2e_rpc_side_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestEditSideChainValidator(t *testing.T) {

sideFeeAddr := FromHex("0xd1B22dCC24C55f4d728E7aaA5c9b5a22e1512C08")

res, err := c.EditSideChainValidatorMsg(types.RialtoNet, des, &rate, sideFeeAddr, rpc.Sync, tx.WithChainID(chainId))
res, err := c.EditSideChainValidator(types.RialtoNet, des, &rate, sideFeeAddr, rpc.Sync, tx.WithChainID(chainId))

assert.NotNil(t, res)
assert.Nil(t, err)
Expand Down

0 comments on commit 24952c3

Please sign in to comment.