submit

package
v0.0.0-...-131ca43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncorrectAccountSequenceCode = 32
)

Variables

This section is empty.

Functions

func TestKeybase

func TestKeybase(chainID string, keyringRootDir string, cdc codec.Codec) (keyring.Keyring, error)

Types

type SubmitterImpl

type SubmitterImpl struct {
	// contains filtered or unexported fields
}

SubmitterImpl can submit proofs using `sender` as the transaction transport mechanism

func NewSubmitterImpl

func NewSubmitterImpl(sender *TxSender, allowKVCallbacks bool, clientID string) *SubmitterImpl

func (*SubmitterImpl) SubmitKVProof

func (si *SubmitterImpl) SubmitKVProof(
	ctx context.Context,
	height, revision, queryId uint64,
	proof []*neutrontypes.StorageValue,
	updateClientMsg sdk.Msg,
) error

SubmitKVProof submits query with proof back to Neutron chain

func (*SubmitterImpl) SubmitTxProof

func (si *SubmitterImpl) SubmitTxProof(ctx context.Context, queryId uint64, proof *neutrontypes.Block) (string, error)

SubmitTxProof submits tx query with proof back to Neutron chain

type TxSender

type TxSender struct {
	// contains filtered or unexported fields
}

func NewTxSender

func NewTxSender(
	ctx context.Context,
	rpcClient rpcclient.Client,
	marshaller codec.ProtoCodecMarshaler,
	keybase keyring.Keyring,
	cfg config.NeutronChainConfig,
	logger *zap.Logger,
	neutronChainID string,
) (*TxSender, error)

func (*TxSender) Send

func (txs *TxSender) Send(ctx context.Context, msgs []sdk.Msg) (string, error)

Send builds transaction with calculated input msgs, calculated gas and fees, signs it and submits to chain

func (*TxSender) SenderAddr

func (txs *TxSender) SenderAddr() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL