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 ¶ added in v0.6.4
type AuxTxBuilder struct {
// contains filtered or unexported fields
}
AuxTxBuilder is a client-side builder for creating an AuxSignerData.
func NewAuxTxBuilder ¶ added in v0.6.4
func NewAuxTxBuilder() AuxTxBuilder
NewAuxTxBuilder creates a new client-side builder for constructing an AuxSignerData.
func (*AuxTxBuilder) GetAuxSignerData ¶ added in v0.6.4
func (b *AuxTxBuilder) GetAuxSignerData() (tx.AuxSignerData, error)
GetAuxSignerData returns the builder's AuxSignerData.
func (*AuxTxBuilder) GetSignBytes ¶ added in v0.6.4
func (b *AuxTxBuilder) GetSignBytes() ([]byte, error)
GetSignBytes returns the builder's sign bytes.
func (*AuxTxBuilder) SetAccountNumber ¶ added in v0.6.4
func (b *AuxTxBuilder) SetAccountNumber(accNum uint64)
SetAccountNumber sets the aux signer's account number in the AuxSignerData.
func (*AuxTxBuilder) SetAddress ¶ added in v0.6.4
func (b *AuxTxBuilder) SetAddress(addr string)
SetAddress sets the aux signer's bech32 address.
func (*AuxTxBuilder) SetChainID ¶ added in v0.6.4
func (b *AuxTxBuilder) SetChainID(chainID string)
SetChainID sets the chain id in the AuxSignerData.
func (*AuxTxBuilder) SetExtensionOptions ¶ added in v0.6.4
func (b *AuxTxBuilder) SetExtensionOptions(extOpts ...*codectypes.Any)
SetExtensionOptions sets the aux signer's extension options.
func (*AuxTxBuilder) SetMemo ¶ added in v0.6.4
func (b *AuxTxBuilder) SetMemo(memo string)
SetMemo sets a memo in the tx.
func (*AuxTxBuilder) SetMsgs ¶ added in v0.6.4
func (b *AuxTxBuilder) SetMsgs(msgs ...sdk.Msg) error
SetMsgs sets an array of Msgs in the tx.
func (*AuxTxBuilder) SetNonCriticalExtensionOptions ¶ added in v0.6.4
func (b *AuxTxBuilder) SetNonCriticalExtensionOptions(extOpts ...*codectypes.Any)
SetSignature sets the aux signer's signature.
func (*AuxTxBuilder) SetPubKey ¶ added in v0.6.4
func (b *AuxTxBuilder) SetPubKey(pk cryptotypes.PubKey) error
SetPubKey sets the aux signer's pubkey in the AuxSignerData.
func (*AuxTxBuilder) SetSequence ¶ added in v0.6.4
func (b *AuxTxBuilder) SetSequence(accSeq uint64)
SetSequence sets the aux signer's sequence in the AuxSignerData.
func (*AuxTxBuilder) SetSignMode ¶ added in v0.6.4
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 ¶ added in v0.6.4
func (b *AuxTxBuilder) SetSignature(sig []byte)
SetSignature sets the aux signer's signature in the AuxSignerData.
func (*AuxTxBuilder) SetTimeoutHeight ¶ added in v0.6.4
func (b *AuxTxBuilder) SetTimeoutHeight(height uint64)
SetTimeoutHeight sets a timeout height in the tx.
func (*AuxTxBuilder) SetTip ¶ added in v0.6.4
func (b *AuxTxBuilder) SetTip(tip *tx.Tip)
SetTip sets an optional tip in the AuxSignerData.