Documentation ¶
Overview ¶
Package client is the entrance of the entire SDK function. SDKConfig is used to configure SDK parameters.
The SDK mainly provides the functions of the following modules, including: asset, bank, distribution, gov, keys, oracle, random, service, slashing, staking
As a quick start:
fees, err := types.ParseCoins("1iris") if err != nil { panic(err) } client := sdk.NewClient(types.ClientConfig{ NodeURI: NodeURI, Network: Network, ChainID: ChainID, Gas: Gas, Fee: fees, Mode: Mode, Online: Online, StoreType: types.PrivKey, Level: "debug", })
Index ¶
- type Client
- func (s *Client) Asset() rpc.Asset
- func (s *Client) Bank() rpc.Bank
- func (s *Client) Distr() rpc.Distribution
- func (s *Client) Gov() rpc.Gov
- func (s *Client) Htlc() rpc.Htlc
- func (s *Client) Keys() rpc.Keys
- func (s *Client) Oracle() rpc.Oracle
- func (s *Client) Params() rpc.Params
- func (s *Client) Random() rpc.Random
- func (s *Client) Service() rpc.Service
- func (s *Client) SetOutput(w io.Writer)
- func (s *Client) Slashing() rpc.Slashing
- func (s *Client) Staking() rpc.Staking
- func (s *Client) Tendermint() rpc.Tendermint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Cdc sdk.Codec sdk.WSClient sdk.TxManager sdk.TokenConvert // contains filtered or unexported fields }
func NewClient ¶
func NewClient(cfg sdk.ClientConfig) Client
func (*Client) Distr ¶
func (s *Client) Distr() rpc.Distribution
func (*Client) Tendermint ¶
func (s *Client) Tendermint() rpc.Tendermint
Directories ¶
Path | Synopsis |
---|---|
Package adapter is to adapt to the user DAO layer, the user can not override this implementation
|
Package adapter is to adapt to the user DAO layer, the user can not override this implementation |
Package modules is to warpped the API provided by each module of irishub
|
Package modules is to warpped the API provided by each module of irishub |
asset
Package asset allows individuals and companies to create and issue their own tokens.
|
Package asset allows individuals and companies to create and issue their own tokens. |
bank
Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.Bank In addition, the available units of tokens in the IRIShub system are defined using [coin-type](https://www.junjie-bianjie.org/docs/concepts/coin-type.html).
|
Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.Bank In addition, the available units of tokens in the IRIShub system are defined using [coin-type](https://www.junjie-bianjie.org/docs/concepts/coin-type.html). |
distribution
Package distribution in charge of distributing collected transaction fee and inflated token to all validators and delegators.
|
Package distribution in charge of distributing collected transaction fee and inflated token to all validators and delegators. |
gov
Package gov in charge of distributing collected transaction fee and inflated token to all validators and delegators.
|
Package gov in charge of distributing collected transaction fee and inflated token to all validators and delegators. |
keys
Package keys allows you to manage your local tendermint keystore (wallets) for iris.
|
Package keys allows you to manage your local tendermint keystore (wallets) for iris. |
oracle
Package oracle combines service to achieve decentralized injection from trusted Oracles such as Chainlink to IRISHub Oracle.
|
Package oracle combines service to achieve decentralized injection from trusted Oracles such as Chainlink to IRISHub Oracle. |
random
Package random describes the usage and scope of random numbers on IRISHub.
|
Package random describes the usage and scope of random numbers on IRISHub. |
service
Package service bridge the gap between the blockchain world and the conventional business application world, by mediating a complete lifecycle of off-chain services -- from their definition, binding (provider registration), invocation, to their governance (profiling and dispute resolution).
|
Package service bridge the gap between the blockchain world and the conventional business application world, by mediating a complete lifecycle of off-chain services -- from their definition, binding (provider registration), invocation, to their governance (profiling and dispute resolution). |
slashing
Package slashing provides the ability to access the interface of the IRISHUB slashing module In Proof-of-Stake blockchain, validators will get block provisions by staking their token.
|
Package slashing provides the ability to access the interface of the IRISHUB slashing module In Proof-of-Stake blockchain, validators will get block provisions by staking their token. |
staking
Package staking provides staking functionalities for validators and delegators.
|
Package staking provides staking functionalities for validators and delegators. |
tendermint
Package tendermint provides tendermint rpc queriers implementation
|
Package tendermint provides tendermint rpc queriers implementation |
uuid
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go Package uuid reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go
|
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go Package uuid reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go |
Click to show internal directories.
Click to hide internal directories.