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 ¶
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- type IRISHUBClient
- func (client *IRISHUBClient) AppCodec() codec.Marshaler
- func (client *IRISHUBClient) Codec() *codec.LegacyAmino
- func (client *IRISHUBClient) EncodingConfig() types.EncodingConfig
- func (client *IRISHUBClient) Manager() types.BaseClient
- func (client *IRISHUBClient) Module(name string) types.Module
- func (client *IRISHUBClient) RegisterModule(ms ...types.Module)
- func (client *IRISHUBClient) SetLogger(logger log.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the sdk message type.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the sdk message type.
Types ¶
type IRISHUBClient ¶
type IRISHUBClient struct { types.BaseClient Key keys.Client Bank bank.Client Token token.Client Staking staking.Client Gov gov.Client Service service.Client Record record.Client Random random.Client NFT nft.Client Oracle oracle.Client HTLC htlc.Client Swap coinswap.Client // contains filtered or unexported fields }
func NewIRISHUBClient ¶
func NewIRISHUBClient(cfg types.ClientConfig) IRISHUBClient
func (*IRISHUBClient) AppCodec ¶
func (client *IRISHUBClient) AppCodec() codec.Marshaler
func (*IRISHUBClient) Codec ¶
func (client *IRISHUBClient) Codec() *codec.LegacyAmino
func (*IRISHUBClient) EncodingConfig ¶
func (client *IRISHUBClient) EncodingConfig() types.EncodingConfig
func (*IRISHUBClient) Manager ¶
func (client *IRISHUBClient) Manager() types.BaseClient
func (*IRISHUBClient) RegisterModule ¶
func (client *IRISHUBClient) RegisterModule(ms ...types.Module)
func (*IRISHUBClient) SetLogger ¶
func (client *IRISHUBClient) SetLogger(logger log.Logger)
Directories ¶
Path | Synopsis |
---|---|
client
|
|
legacy
Package legacy contains a global amino Cdc which is deprecated but still used in several places within the SDK.
|
Package legacy contains a global amino Cdc which is deprecated but still used in several places within the SDK. |
types
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection
|
Package types defines a custom wrapper for google.protobuf.Any which supports cached values as well as InterfaceRegistry which keeps track of types which can be used with Any for both security and introspection |
unknownproto
unknownproto implements functionality to "type check" protobuf serialized byte sequences against an expected proto.Message to report: a) Unknown fields in the stream -- this is indicative of mismatched services, perhaps a malicious actor b) Mismatched wire types for a field -- this is indicative of mismatched services Its API signature is similar to proto.Unmarshal([]byte, proto.Message) in the strict case if err := RejectUnknownFieldsStrict(protoBlob, protoMessage, false); err != nil { // Handle the error.
|
unknownproto implements functionality to "type check" protobuf serialized byte sequences against an expected proto.Message to report: a) Unknown fields in the stream -- this is indicative of mismatched services, perhaps a malicious actor b) Mismatched wire types for a field -- this is indicative of mismatched services Its API signature is similar to proto.Unmarshal([]byte, proto.Message) in the strict case if err := RejectUnknownFieldsStrict(protoBlob, protoMessage, false); err != nil { // Handle the error. |
keys/secp256k1/internal/secp256k1
nolint:gocritic Package secp256k1 wraps the bitcoin secp256k1 C library.
|
nolint:gocritic Package secp256k1 wraps the bitcoin secp256k1 C library. |
Package modules is to warpped the API provided by each module of IRIS-Hub
|
Package modules is to warpped the API provided by each module of IRIS-Hub |
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. |
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). |
third_party
|
|
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.