Documentation ¶
Index ¶
- func SignAnyTransactions(wa models.Account, msgs ...sdk.Msg) ([]byte, error)
- func SignTransaction(wa models.Account, to string, amount sdk.Int, denom string) ([]byte, error)
- type AuxTxBuilder
- func (b *AuxTxBuilder) GetAuxSignerData() (tx.AuxSignerData, error)
- func (b *AuxTxBuilder) GetSignBytes() ([]byte, error)
- func (b *AuxTxBuilder) SetAccountNumber(accNum uint64)
- func (b *AuxTxBuilder) SetAddress(addr string)
- func (b *AuxTxBuilder) SetChainID(chainID string)
- func (b *AuxTxBuilder) SetExtensionOptions(extOpts ...*codectypes.Any)
- func (b *AuxTxBuilder) SetMemo(memo string)
- func (b *AuxTxBuilder) SetMsgs(msgs ...sdk.Msg) error
- func (b *AuxTxBuilder) SetNonCriticalExtensionOptions(extOpts ...*codectypes.Any)
- func (b *AuxTxBuilder) SetPubKey(pk cryptotypes.PubKey) error
- func (b *AuxTxBuilder) SetSequence(accSeq uint64)
- func (b *AuxTxBuilder) SetSignMode(mode signing.SignMode) error
- func (b *AuxTxBuilder) SetSignature(sig []byte)
- func (b *AuxTxBuilder) SetTimeoutHeight(height uint64)
- func (b *AuxTxBuilder) SetTip(tip *tx.Tip)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignAnyTransactions ¶
SignAnyTransactions signs a Cosmos transaction for a list of arbitrary messages
Types ¶
type AuxTxBuilder ¶
type AuxTxBuilder struct {
// contains filtered or unexported fields
}
AuxTxBuilder is a client-side builder for creating an AuxSignerData.
func NewAuxTxBuilder ¶
func NewAuxTxBuilder() AuxTxBuilder
NewAuxTxBuilder creates a new client-side builder for constructing an AuxSignerData.
func (*AuxTxBuilder) GetAuxSignerData ¶
func (b *AuxTxBuilder) GetAuxSignerData() (tx.AuxSignerData, error)
GetAuxSignerData returns the builder's AuxSignerData.
func (*AuxTxBuilder) GetSignBytes ¶
func (b *AuxTxBuilder) GetSignBytes() ([]byte, error)
GetSignBytes returns the builder's sign bytes.
func (*AuxTxBuilder) SetAccountNumber ¶
func (b *AuxTxBuilder) SetAccountNumber(accNum uint64)
SetAccountNumber sets the aux signer's account number in the AuxSignerData.
func (*AuxTxBuilder) SetAddress ¶
func (b *AuxTxBuilder) SetAddress(addr string)
SetAddress sets the aux signer's bech32 address.
func (*AuxTxBuilder) SetChainID ¶
func (b *AuxTxBuilder) SetChainID(chainID string)
SetChainID sets the chain id in the AuxSignerData.
func (*AuxTxBuilder) SetExtensionOptions ¶
func (b *AuxTxBuilder) SetExtensionOptions(extOpts ...*codectypes.Any)
SetExtensionOptions sets the aux signer's extension options.
func (*AuxTxBuilder) SetMemo ¶
func (b *AuxTxBuilder) SetMemo(memo string)
SetMemo sets a memo in the tx.
func (*AuxTxBuilder) SetMsgs ¶
func (b *AuxTxBuilder) SetMsgs(msgs ...sdk.Msg) error
SetMsgs sets an array of Msgs in the tx.
func (*AuxTxBuilder) SetNonCriticalExtensionOptions ¶
func (b *AuxTxBuilder) SetNonCriticalExtensionOptions(extOpts ...*codectypes.Any)
SetSignature sets the aux signer's signature.
func (*AuxTxBuilder) SetPubKey ¶
func (b *AuxTxBuilder) SetPubKey(pk cryptotypes.PubKey) error
SetPubKey sets the aux signer's pubkey in the AuxSignerData.
func (*AuxTxBuilder) SetSequence ¶
func (b *AuxTxBuilder) SetSequence(accSeq uint64)
SetSequence sets the aux signer's sequence in the AuxSignerData.
func (*AuxTxBuilder) SetSignMode ¶
func (b *AuxTxBuilder) SetSignMode(mode signing.SignMode) error
SetSignMode sets the aux signer's sign mode. Allowed sign modes are DIRECT_AUX and LEGACY_AMINO_JSON.
func (*AuxTxBuilder) SetSignature ¶
func (b *AuxTxBuilder) SetSignature(sig []byte)
SetSignature sets the aux signer's signature in the AuxSignerData.
func (*AuxTxBuilder) SetTimeoutHeight ¶
func (b *AuxTxBuilder) SetTimeoutHeight(height uint64)
SetTimeoutHeight sets a timeout height in the tx.
func (*AuxTxBuilder) SetTip ¶
func (b *AuxTxBuilder) SetTip(tip *tx.Tip)
SetTip sets an optional tip in the AuxSignerData.