Versions in this module Expand all Collapse all v0 v0.400.3 Oct 18, 2021 v0.400.1 Oct 18, 2021 Changes in this version + const BeginBlockHashStart + const BeginEndBlockTxSize + const BurnerAddressIdentifier + const DefaultAddr + const DefaultBlockchain + const DefaultGRPCEndpoint + const DefaultNetwork + const DefaultOffline + const DefaultRetries + const DefaultTendermintEndpoint + const DeliverTxSize + const EndBlockHashStart + const FlagAddr + const FlagBlockchain + const FlagGRPCEndpoint + const FlagNetwork + const FlagOffline + const FlagRetries + const FlagTendermintEndpoint + const Log + const StatusPeerSynced + const StatusPeerSyncing + const StatusTxReverted + const StatusTxSuccess + func AddOperationIndexes(msgOps []*rosettatypes.Operation, balanceOps []*rosettatypes.Operation) (finalOps []*rosettatypes.Operation) + func MakeCodec() (*codec.ProtoCodec, codectypes.InterfaceRegistry) + func ServerFromConfig(conf *Config) (crg.Server, error) + func SetFlags(flags *pflag.FlagSet) + type Client struct + func NewClient(cfg *Config) (*Client, error) + func (c *Client) AccountIdentifierFromPublicKey(pubKey *types.PublicKey) (*types.AccountIdentifier, error) + func (c *Client) Balances(ctx context.Context, addr string, height *int64) ([]*rosettatypes.Amount, error) + func (c *Client) BlockByHash(ctx context.Context, hash string) (crgtypes.BlockResponse, error) + func (c *Client) BlockByHeight(ctx context.Context, height *int64) (crgtypes.BlockResponse, error) + func (c *Client) BlockTransactionsByHash(ctx context.Context, hash string) (crgtypes.BlockTransactionsResponse, error) + func (c *Client) BlockTransactionsByHeight(ctx context.Context, height *int64) (crgtypes.BlockTransactionsResponse, error) + func (c *Client) Bootstrap() error + func (c *Client) ConstructionMetadataFromOptions(ctx context.Context, options map[string]interface{}) (meta map[string]interface{}, err error) + func (c *Client) ConstructionPayload(_ context.Context, request *types.ConstructionPayloadsRequest) (resp *types.ConstructionPayloadsResponse, err error) + func (c *Client) GetTx(ctx context.Context, hash string) (*rosettatypes.Transaction, error) + func (c *Client) GetUnconfirmedTx(ctx context.Context, hash string) (*rosettatypes.Transaction, error) + func (c *Client) Mempool(ctx context.Context) ([]*rosettatypes.TransactionIdentifier, error) + func (c *Client) OperationStatuses() []*types.OperationStatus + func (c *Client) Peers(ctx context.Context) ([]*rosettatypes.Peer, error) + func (c *Client) PostTx(txBytes []byte) (*rosettatypes.TransactionIdentifier, map[string]interface{}, error) + func (c *Client) PreprocessOperationsToOptions(_ context.Context, req *types.ConstructionPreprocessRequest) (response *types.ConstructionPreprocessResponse, err error) + func (c *Client) Ready() error + func (c *Client) SignedTx(_ context.Context, txBytes []byte, signatures []*types.Signature) (signedTxBytes []byte, err error) + func (c *Client) Status(ctx context.Context) (*rosettatypes.SyncStatus, error) + func (c *Client) SupportedOperations() []string + func (c *Client) TxOperationsAndSignersAccountIdentifiers(signed bool, txBytes []byte) (ops []*rosettatypes.Operation, signers []*rosettatypes.AccountIdentifier, ...) + func (c *Client) Version() string + type Config struct + Addr string + Blockchain string + Codec *codec.ProtoCodec + GRPCEndpoint string + InterfaceRegistry codectypes.InterfaceRegistry + Network string + Offline bool + Retries int + TendermintRPC string + func FromFlags(flags *pflag.FlagSet) (*Config, error) + func (c *Config) NetworkIdentifier() *types.NetworkIdentifier + func (c *Config) WithCodec(ir codectypes.InterfaceRegistry, cdc *codec.ProtoCodec) + type ConstructionMetadata struct + ChainID string + GasLimit uint64 + GasPrice string + Memo string + SignersData []*SignerData + func (c *ConstructionMetadata) FromMetadata(meta map[string]interface{}) error + func (c ConstructionMetadata) ToMetadata() (map[string]interface{}, error) + type ConstructionPreprocessMetadata struct + GasLimit uint64 + GasPrice string + Memo string + func (c *ConstructionPreprocessMetadata) FromMetadata(meta map[string]interface{}) error + type Converter interface + ToRosetta func() ToRosettaConverter + ToSDK func() ToSDKConverter + func NewConverter(cdc *codec.ProtoCodec, ir codectypes.InterfaceRegistry, cfg sdkclient.TxConfig) Converter + type PreprocessOperationsOptionsResponse struct + ExpectedSigners []string + GasLimit uint64 + GasPrice string + Memo string + func (c *PreprocessOperationsOptionsResponse) FromMetadata(meta map[string]interface{}) error + func (c PreprocessOperationsOptionsResponse) ToMetadata() (map[string]interface{}, error) + type SignerData struct + AccountNumber uint64 + Sequence uint64 + type ToRosettaConverter interface + Amounts func(ownedCoins []sdk.Coin, availableCoins sdk.Coins) []*rosettatypes.Amount + BalanceOps func(status string, events []abci.Event) []*rosettatypes.Operation + BeginBlockTxHash func(blockHash []byte) string + BlockResponse func(block *tmcoretypes.ResultBlock) crgtypes.BlockResponse + EndBlockTxHash func(blockHash []byte) string + Meta func(msg sdk.Msg) (meta map[string]interface{}, err error) + Ops func(status string, msg sdk.Msg) ([]*rosettatypes.Operation, error) + OpsAndSigners func(txBytes []byte) (ops []*rosettatypes.Operation, signers []*rosettatypes.AccountIdentifier, ...) + Peers func(peers []tmcoretypes.Peer) []*rosettatypes.Peer + SignerData func(anyAccount *codectypes.Any) (*SignerData, error) + SigningComponents func(tx authsigning.Tx, metadata *ConstructionMetadata, ...) (txBytes []byte, payloadsToSign []*rosettatypes.SigningPayload, err error) + SyncStatus func(status *tmcoretypes.ResultStatus) *rosettatypes.SyncStatus + Tx func(rawTx tmtypes.Tx, txResult *abci.ResponseDeliverTx) (*rosettatypes.Transaction, error) + TxIdentifiers func(txs []tmtypes.Tx) []*rosettatypes.TransactionIdentifier + type ToSDKConverter interface + HashToTxType func(hashBytes []byte) (txType TransactionType, realHash []byte) + Msg func(meta map[string]interface{}, msg sdk.Msg) (err error) + PubKey func(pk *rosettatypes.PublicKey) (cryptotypes.PubKey, error) + SignedTx func(txBytes []byte, signatures []*rosettatypes.Signature) (signedTxBytes []byte, err error) + UnsignedTx func(ops []*rosettatypes.Operation) (tx authsigning.Tx, err error) + type TransactionType int + const BeginBlockTx + const DeliverTxTx + const EndBlockTx + const UnrecognizedTx