Documentation ¶
Index ¶
- Variables
- type Codec
- type CosmosProvider
- func (cc *CosmosProvider) GetBlockAtHeight(ctx context.Context, height int64) (*coretypes.ResultBlock, error)
- func (cc *CosmosProvider) Invoke(ctx context.Context, method string, req, reply interface{}, ...) (err error)
- func (cc *CosmosProvider) NewStream(context.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error)
- func (cc *CosmosProvider) QueryABCI(ctx context.Context, req abci.RequestQuery) (abci.ResponseQuery, error)
- func (cc *CosmosProvider) QueryLatestHeight(ctx context.Context) (int64, error)
- func (cc *CosmosProvider) QueryUsedNonce(ctx context.Context, sourceDomain types.Domain, nonce uint64) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleBasics = []module.AppModuleBasic{ auth.AppModuleBasic{}, cctp.AppModuleBasic{}, }
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct { InterfaceRegistry types.InterfaceRegistry Marshaler codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
type CosmosProvider ¶
func NewProvider ¶
func NewProvider(rpcURL string) (*CosmosProvider, error)
NewProvider validates the CosmosProviderConfig, instantiates a ChainClient and then instantiates a CosmosProvider
func (*CosmosProvider) GetBlockAtHeight ¶
func (cc *CosmosProvider) GetBlockAtHeight(ctx context.Context, height int64) (*coretypes.ResultBlock, error)
GetBlockAtHeight queries the block at a given height
func (*CosmosProvider) Invoke ¶
func (cc *CosmosProvider) Invoke(ctx context.Context, method string, req, reply interface{}, opts ...grpc.CallOption) (err error)
Invoke implements the grpc ClientConn.Invoke method
func (*CosmosProvider) NewStream ¶
func (cc *CosmosProvider) NewStream(context.Context, *grpc.StreamDesc, string, ...grpc.CallOption) (grpc.ClientStream, error)
NewStream implements the grpc ClientConn.NewStream method
func (*CosmosProvider) QueryABCI ¶
func (cc *CosmosProvider) QueryABCI(ctx context.Context, req abci.RequestQuery) (abci.ResponseQuery, error)
QueryABCI performs an ABCI query and returns the appropriate response and error sdk error code.
func (*CosmosProvider) QueryLatestHeight ¶
func (cc *CosmosProvider) QueryLatestHeight(ctx context.Context) (int64, error)
QueryLatestHeight queries the latest height from the RPC client
func (*CosmosProvider) QueryUsedNonce ¶
Click to show internal directories.
Click to hide internal directories.