Documentation
¶
Index ¶
- type Factory
- func (f *Factory) AccountNumber() uint64
- func (f *Factory) Address() string
- func (f *Factory) BuildAndSign(name string, msgs []sdk.Msg, json bool) ([]byte, error)
- func (f *Factory) BuildAndSigns(msgs []sdk.Msg, json bool) ([]byte, error)
- func (f *Factory) BuildUnsignedTx(msgs []sdk.Msg) (sdk.TxBuilder, error)
- func (f *Factory) BuildUnsignedTxs(msgs []sdk.Msg) (sdk.TxBuilder, error)
- func (f *Factory) ChainID() string
- func (f *Factory) Fees() sdk.Coins
- func (f *Factory) Gas() uint64
- func (f Factory) GasAdjustment() float64
- func (f *Factory) KeyManager() sdk.KeyManager
- func (f *Factory) Memo() string
- func (f *Factory) Mode() sdk.BroadcastMode
- func (f *Factory) Password() string
- func (f *Factory) Sequence() uint64
- func (f *Factory) Sign(name string, txBuilder sdk.TxBuilder) error
- func (f *Factory) Signs(txBuilder sdk.TxBuilder) error
- func (f *Factory) SimulateAndExecute() bool
- func (f *Factory) WithAccountNumber(accnum uint64) *Factory
- func (f *Factory) WithAddress(address string) *Factory
- func (f *Factory) WithChainID(chainID string) *Factory
- func (f *Factory) WithFee(fee sdk.Coins) *Factory
- func (f *Factory) WithGas(gas uint64) *Factory
- func (f *Factory) WithGasAdjustment(gasAdjustment float64) *Factory
- func (f *Factory) WithKeyManager(keyManager sdk.KeyManager) *Factory
- func (f *Factory) WithMemo(memo string) *Factory
- func (f *Factory) WithMode(mode sdk.BroadcastMode) *Factory
- func (f *Factory) WithPassword(password string) *Factory
- func (f *Factory) WithQueryFunc(queryFunc QueryWithData) *Factory
- func (f *Factory) WithSequence(sequence uint64) *Factory
- func (f *Factory) WithSignModeHandler(signModeHandler sdk.SignModeHandler) *Factory
- func (f *Factory) WithSimulateAndExecute(simulate bool) *Factory
- func (f *Factory) WithTranAggrc(name, address, pass string, accountNumber, sequence uint64) *Factory
- func (f *Factory) WithTxConfig(txConfig sdk.TxConfig) *Factory
- type QueryWithData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory implements a transaction context created in SDK modules.
func (*Factory) AccountNumber ¶
AccountNumber returns accountNumber.
func (*Factory) BuildAndSign ¶
func (*Factory) BuildAndSigns ¶ added in v0.1.3
func (*Factory) BuildUnsignedTx ¶
func (*Factory) BuildUnsignedTxs ¶ added in v0.1.3
func (Factory) GasAdjustment ¶
GasAdjustment returns the gasAdjustment.
func (*Factory) KeyManager ¶
func (f *Factory) KeyManager() sdk.KeyManager
KeyManager returns keyManager.
func (*Factory) Sign ¶
Sign signs a transaction given a name, passphrase, and a single message to signed. An error is returned if signing fails.
func (*Factory) SimulateAndExecute ¶
SimulateAndExecute returns the option to simulateAndExecute and then execute the transaction using the gas from the simulation results
func (*Factory) WithAccountNumber ¶
WithAccountNumber returns a pointer of the context with an account number.
func (*Factory) WithAddress ¶
WithAddress returns a pointer of the context with a password.
func (*Factory) WithChainID ¶
WithChainID returns a pointer of the context with an updated ChainID.
func (*Factory) WithGasAdjustment ¶
WithGasAdjustment returns a pointer of the context with an updated gasAdjustment.
func (*Factory) WithKeyManager ¶
func (f *Factory) WithKeyManager(keyManager sdk.KeyManager) *Factory
WithKeyManager returns a pointer of the context with a KeyManager.
func (*Factory) WithMode ¶
func (f *Factory) WithMode(mode sdk.BroadcastMode) *Factory
WithMode returns a pointer of the context with a Mode.
func (*Factory) WithPassword ¶
WithPassword returns a pointer of the context with a password.
func (*Factory) WithQueryFunc ¶
func (f *Factory) WithQueryFunc(queryFunc QueryWithData) *Factory
WithQueryFunc returns a pointer of the context with an queryFunc.
func (*Factory) WithSequence ¶
WithSequence returns a pointer of the context with an updated sequence number.
func (*Factory) WithSignModeHandler ¶
func (f *Factory) WithSignModeHandler(signModeHandler sdk.SignModeHandler) *Factory
WithSignModeHandler returns a pointer of the context with an signModeHandler.
func (*Factory) WithSimulateAndExecute ¶
WithSimulateAndExecute returns a pointer of the context with a simulateAndExecute.