Documentation ¶
Overview ¶
Package types is a generated GoMock package.
Index ¶
- Constants
- func NewCodec() *codec.Codec
- func RegisterBasicCodec(cdc *codec.Codec)
- type BaseClient
- type ClientConfig
- type ClientQuery
- type ClientTx
- type MockBaseClient
- func (m *MockBaseClient) Block(height *int64) (*types1.ResultBlock, error)
- func (m *MockBaseClient) BlockResults(height *int64) (*types1.ResultBlockResults, error)
- func (m *MockBaseClient) BlockchainInfo(minHeight, maxHeight int64) (*types1.ResultBlockchainInfo, error)
- func (m *MockBaseClient) Broadcast(txBytes []byte, broadcastMode string) (types.TxResponse, error)
- func (m *MockBaseClient) BuildAndBroadcast(fromName, passphrase, memo string, msgs []types.Msg, ...) (types.TxResponse, error)
- func (m *MockBaseClient) BuildStdTx(fromName, passphrase, memo string, msgs []types.Msg, ...) (*types0.StdTx, error)
- func (m *MockBaseClient) BuildTxForSim(msgs []types.Msg, memo string, accNumber, seqNumber uint64) ([]byte, error)
- func (m *MockBaseClient) BuildUnsignedStdTxOffline(msgs []types.Msg, memo string) *types0.StdTx
- func (m *MockBaseClient) CalculateGas(txBytes []byte) (types0.StdFee, error)
- func (m *MockBaseClient) Commit(height *int64) (*types1.ResultCommit, error)
- func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder
- func (m *MockBaseClient) Genesis() (*types1.ResultGenesis, error)
- func (m *MockBaseClient) GetCodec() *codec.Codec
- func (m *MockBaseClient) GetConfig() ClientConfig
- func (m *MockBaseClient) Query(path string, key bytes.HexBytes) ([]byte, int64, error)
- func (m *MockBaseClient) QueryStore(key bytes.HexBytes, storeName, endPath string) ([]byte, int64, error)
- func (m *MockBaseClient) Status() (*types1.ResultStatus, error)
- func (m *MockBaseClient) Tx(hash []byte, prove bool) (*types1.ResultTx, error)
- func (m *MockBaseClient) TxSearch(query string, prove bool, page, perPage int, orderBy string) (*types1.ResultTxSearch, error)
- func (m *MockBaseClient) Validators(height *int64, page, perPage int) (*types1.ResultValidators, error)
- type MockBaseClientMockRecorder
- func (mr *MockBaseClientMockRecorder) Block(height interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BlockResults(height interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BlockchainInfo(minHeight, maxHeight interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) Broadcast(txBytes, broadcastMode interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BuildAndBroadcast(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BuildStdTx(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BuildTxForSim(msgs, memo, accNumber, seqNumber interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) BuildUnsignedStdTxOffline(msgs, memo interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) CalculateGas(txBytes interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) Commit(height interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) Genesis() *gomock.Call
- func (mr *MockBaseClientMockRecorder) GetCodec() *gomock.Call
- func (mr *MockBaseClientMockRecorder) GetConfig() *gomock.Call
- func (mr *MockBaseClientMockRecorder) Query(path, key interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) QueryStore(key, storeName, endPath interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) Tx(hash, prove interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) TxSearch(query, prove, page, perPage, orderBy interface{}) *gomock.Call
- func (mr *MockBaseClientMockRecorder) Validators(height, page, perPage interface{}) *gomock.Call
- type MockClientQuery
- func (m *MockClientQuery) Block(height *int64) (*types1.ResultBlock, error)
- func (m *MockClientQuery) BlockResults(height *int64) (*types1.ResultBlockResults, error)
- func (m *MockClientQuery) BlockchainInfo(minHeight, maxHeight int64) (*types1.ResultBlockchainInfo, error)
- func (m *MockClientQuery) Commit(height *int64) (*types1.ResultCommit, error)
- func (m *MockClientQuery) EXPECT() *MockClientQueryMockRecorder
- func (m *MockClientQuery) Genesis() (*types1.ResultGenesis, error)
- func (m *MockClientQuery) Query(path string, key bytes.HexBytes) ([]byte, int64, error)
- func (m *MockClientQuery) QueryStore(key bytes.HexBytes, storeName, endPath string) ([]byte, int64, error)
- func (m *MockClientQuery) Tx(hash []byte, prove bool) (*types1.ResultTx, error)
- func (m *MockClientQuery) TxSearch(query string, prove bool, page, perPage int, orderBy string) (*types1.ResultTxSearch, error)
- func (m *MockClientQuery) Validators(height *int64, page, perPage int) (*types1.ResultValidators, error)
- type MockClientQueryMockRecorder
- func (mr *MockClientQueryMockRecorder) Block(height interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) BlockResults(height interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) BlockchainInfo(minHeight, maxHeight interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) Commit(height interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) Genesis() *gomock.Call
- func (mr *MockClientQueryMockRecorder) Query(path, key interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) QueryStore(key, storeName, endPath interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) Tx(hash, prove interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) TxSearch(query, prove, page, perPage, orderBy interface{}) *gomock.Call
- func (mr *MockClientQueryMockRecorder) Validators(height, page, perPage interface{}) *gomock.Call
- type MockClientTx
- type MockClientTxMockRecorder
- type MockSimulationHandler
- type MockSimulationHandlerMockRecorder
- type MockTxHandler
- func (m *MockTxHandler) BuildAndBroadcast(fromName, passphrase, memo string, msgs []types.Msg, ...) (types.TxResponse, error)
- func (m *MockTxHandler) BuildStdTx(fromName, passphrase, memo string, msgs []types.Msg, ...) (types0.StdTx, error)
- func (m *MockTxHandler) BuildUnsignedStdTxOffline(msgs []types.Msg, memo string) types0.StdTx
- func (m *MockTxHandler) EXPECT() *MockTxHandlerMockRecorder
- type MockTxHandlerMockRecorder
- func (mr *MockTxHandlerMockRecorder) BuildAndBroadcast(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
- func (mr *MockTxHandlerMockRecorder) BuildStdTx(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
- func (mr *MockTxHandlerMockRecorder) BuildUnsignedStdTxOffline(msgs, memo interface{}) *gomock.Call
- type Module
- type SimulationHandler
- type TxHandler
Constants ¶
const ( BroadcastSync = flags.BroadcastSync BroadcastAsync = flags.BroadcastAsync BroadcastBlock = flags.BroadcastBlock )
const
Variables ¶
This section is empty.
Functions ¶
func RegisterBasicCodec ¶
RegisterBasicCodec registers the basic data types for gosdk codec
Types ¶
type BaseClient ¶
type BaseClient interface { ClientQuery ClientTx TxHandler SimulationHandler GetCodec() *codec.Codec GetConfig() ClientConfig }
BaseClient shows the expected behavior for a base client
type ClientConfig ¶
type ClientConfig struct { NodeURI string ChainID string ChainIDBigInt *big.Int BroadcastMode string Gas uint64 GasAdjustment float64 Fees sdk.DecCoins GasPrices sdk.DecCoins }
ClientConfig records the base config of gosdk client
func NewClientConfig ¶
func NewClientConfig(nodeURI, chainID string, broadcastMode string, feesStr string, gas uint64, gasAdjustment float64, gasPricesStr string) (cliConfig ClientConfig, err error)
NewClientConfig creates a new instance of ClientConfig
type ClientQuery ¶
type ClientQuery interface { rpcclient.SignClient rpcclient.HistoryClient rpcclient.StatusClient Query(path string, key tmbytes.HexBytes) ([]byte, int64, error) QueryStore(key tmbytes.HexBytes, storeName, endPath string) ([]byte, int64, error) }
ClientQuery shows the expected query behavior
type ClientTx ¶
type ClientTx interface {
Broadcast(txBytes []byte, broadcastMode string) (res sdk.TxResponse, err error)
}
ClientTx shows the expected tx behavior
type MockBaseClient ¶
type MockBaseClient struct {
// contains filtered or unexported fields
}
MockBaseClient is a mock of BaseClient interface.
func NewMockBaseClient ¶
func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient
NewMockBaseClient creates a new mock instance.
func (*MockBaseClient) Block ¶
func (m *MockBaseClient) Block(height *int64) (*types1.ResultBlock, error)
Block mocks base method.
func (*MockBaseClient) BlockResults ¶
func (m *MockBaseClient) BlockResults(height *int64) (*types1.ResultBlockResults, error)
BlockResults mocks base method.
func (*MockBaseClient) BlockchainInfo ¶
func (m *MockBaseClient) BlockchainInfo(minHeight, maxHeight int64) (*types1.ResultBlockchainInfo, error)
BlockchainInfo mocks base method.
func (*MockBaseClient) Broadcast ¶
func (m *MockBaseClient) Broadcast(txBytes []byte, broadcastMode string) (types.TxResponse, error)
Broadcast mocks base method.
func (*MockBaseClient) BuildAndBroadcast ¶
func (m *MockBaseClient) BuildAndBroadcast(fromName, passphrase, memo string, msgs []types.Msg, accNumber, seqNumber uint64) (types.TxResponse, error)
BuildAndBroadcast mocks base method.
func (*MockBaseClient) BuildStdTx ¶
func (m *MockBaseClient) BuildStdTx(fromName, passphrase, memo string, msgs []types.Msg, accNumber, seqNumber uint64) (*types0.StdTx, error)
BuildStdTx mocks base method.
func (*MockBaseClient) BuildTxForSim ¶
func (m *MockBaseClient) BuildTxForSim(msgs []types.Msg, memo string, accNumber, seqNumber uint64) ([]byte, error)
BuildTxForSim mocks base method.
func (*MockBaseClient) BuildUnsignedStdTxOffline ¶
BuildUnsignedStdTxOffline mocks base method.
func (*MockBaseClient) CalculateGas ¶
func (m *MockBaseClient) CalculateGas(txBytes []byte) (types0.StdFee, error)
CalculateGas mocks base method.
func (*MockBaseClient) Commit ¶
func (m *MockBaseClient) Commit(height *int64) (*types1.ResultCommit, error)
Commit mocks base method.
func (*MockBaseClient) EXPECT ¶
func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBaseClient) Genesis ¶
func (m *MockBaseClient) Genesis() (*types1.ResultGenesis, error)
Genesis mocks base method.
func (*MockBaseClient) GetCodec ¶
func (m *MockBaseClient) GetCodec() *codec.Codec
GetCodec mocks base method.
func (*MockBaseClient) GetConfig ¶
func (m *MockBaseClient) GetConfig() ClientConfig
GetConfig mocks base method.
func (*MockBaseClient) QueryStore ¶
func (m *MockBaseClient) QueryStore(key bytes.HexBytes, storeName, endPath string) ([]byte, int64, error)
QueryStore mocks base method.
func (*MockBaseClient) Status ¶ added in v1.5.6
func (m *MockBaseClient) Status() (*types1.ResultStatus, error)
func (*MockBaseClient) TxSearch ¶
func (m *MockBaseClient) TxSearch(query string, prove bool, page, perPage int, orderBy string) (*types1.ResultTxSearch, error)
TxSearch mocks base method.
func (*MockBaseClient) Validators ¶
func (m *MockBaseClient) Validators(height *int64, page, perPage int) (*types1.ResultValidators, error)
Validators mocks base method.
type MockBaseClientMockRecorder ¶
type MockBaseClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBaseClientMockRecorder is the mock recorder for MockBaseClient.
func (*MockBaseClientMockRecorder) Block ¶
func (mr *MockBaseClientMockRecorder) Block(height interface{}) *gomock.Call
Block indicates an expected call of Block.
func (*MockBaseClientMockRecorder) BlockResults ¶
func (mr *MockBaseClientMockRecorder) BlockResults(height interface{}) *gomock.Call
BlockResults indicates an expected call of BlockResults.
func (*MockBaseClientMockRecorder) BlockchainInfo ¶
func (mr *MockBaseClientMockRecorder) BlockchainInfo(minHeight, maxHeight interface{}) *gomock.Call
BlockchainInfo indicates an expected call of BlockchainInfo.
func (*MockBaseClientMockRecorder) Broadcast ¶
func (mr *MockBaseClientMockRecorder) Broadcast(txBytes, broadcastMode interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockBaseClientMockRecorder) BuildAndBroadcast ¶
func (mr *MockBaseClientMockRecorder) BuildAndBroadcast(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
BuildAndBroadcast indicates an expected call of BuildAndBroadcast.
func (*MockBaseClientMockRecorder) BuildStdTx ¶
func (mr *MockBaseClientMockRecorder) BuildStdTx(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
BuildStdTx indicates an expected call of BuildStdTx.
func (*MockBaseClientMockRecorder) BuildTxForSim ¶
func (mr *MockBaseClientMockRecorder) BuildTxForSim(msgs, memo, accNumber, seqNumber interface{}) *gomock.Call
BuildTxForSim indicates an expected call of BuildTxForSim.
func (*MockBaseClientMockRecorder) BuildUnsignedStdTxOffline ¶
func (mr *MockBaseClientMockRecorder) BuildUnsignedStdTxOffline(msgs, memo interface{}) *gomock.Call
BuildUnsignedStdTxOffline indicates an expected call of BuildUnsignedStdTxOffline.
func (*MockBaseClientMockRecorder) CalculateGas ¶
func (mr *MockBaseClientMockRecorder) CalculateGas(txBytes interface{}) *gomock.Call
CalculateGas indicates an expected call of CalculateGas.
func (*MockBaseClientMockRecorder) Commit ¶
func (mr *MockBaseClientMockRecorder) Commit(height interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockBaseClientMockRecorder) Genesis ¶
func (mr *MockBaseClientMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockBaseClientMockRecorder) GetCodec ¶
func (mr *MockBaseClientMockRecorder) GetCodec() *gomock.Call
GetCodec indicates an expected call of GetCodec.
func (*MockBaseClientMockRecorder) GetConfig ¶
func (mr *MockBaseClientMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockBaseClientMockRecorder) Query ¶
func (mr *MockBaseClientMockRecorder) Query(path, key interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockBaseClientMockRecorder) QueryStore ¶
func (mr *MockBaseClientMockRecorder) QueryStore(key, storeName, endPath interface{}) *gomock.Call
QueryStore indicates an expected call of QueryStore.
func (*MockBaseClientMockRecorder) Tx ¶
func (mr *MockBaseClientMockRecorder) Tx(hash, prove interface{}) *gomock.Call
Tx indicates an expected call of Tx.
func (*MockBaseClientMockRecorder) TxSearch ¶
func (mr *MockBaseClientMockRecorder) TxSearch(query, prove, page, perPage, orderBy interface{}) *gomock.Call
TxSearch indicates an expected call of TxSearch.
func (*MockBaseClientMockRecorder) Validators ¶
func (mr *MockBaseClientMockRecorder) Validators(height, page, perPage interface{}) *gomock.Call
Validators indicates an expected call of Validators.
type MockClientQuery ¶
type MockClientQuery struct {
// contains filtered or unexported fields
}
MockClientQuery is a mock of ClientQuery interface.
func NewMockClientQuery ¶
func NewMockClientQuery(ctrl *gomock.Controller) *MockClientQuery
NewMockClientQuery creates a new mock instance.
func (*MockClientQuery) Block ¶
func (m *MockClientQuery) Block(height *int64) (*types1.ResultBlock, error)
Block mocks base method.
func (*MockClientQuery) BlockResults ¶
func (m *MockClientQuery) BlockResults(height *int64) (*types1.ResultBlockResults, error)
BlockResults mocks base method.
func (*MockClientQuery) BlockchainInfo ¶
func (m *MockClientQuery) BlockchainInfo(minHeight, maxHeight int64) (*types1.ResultBlockchainInfo, error)
BlockchainInfo mocks base method.
func (*MockClientQuery) Commit ¶
func (m *MockClientQuery) Commit(height *int64) (*types1.ResultCommit, error)
Commit mocks base method.
func (*MockClientQuery) EXPECT ¶
func (m *MockClientQuery) EXPECT() *MockClientQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientQuery) Genesis ¶
func (m *MockClientQuery) Genesis() (*types1.ResultGenesis, error)
Genesis mocks base method.
func (*MockClientQuery) QueryStore ¶
func (m *MockClientQuery) QueryStore(key bytes.HexBytes, storeName, endPath string) ([]byte, int64, error)
QueryStore mocks base method.
func (*MockClientQuery) TxSearch ¶
func (m *MockClientQuery) TxSearch(query string, prove bool, page, perPage int, orderBy string) (*types1.ResultTxSearch, error)
TxSearch mocks base method.
func (*MockClientQuery) Validators ¶
func (m *MockClientQuery) Validators(height *int64, page, perPage int) (*types1.ResultValidators, error)
Validators mocks base method.
type MockClientQueryMockRecorder ¶
type MockClientQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockClientQueryMockRecorder is the mock recorder for MockClientQuery.
func (*MockClientQueryMockRecorder) Block ¶
func (mr *MockClientQueryMockRecorder) Block(height interface{}) *gomock.Call
Block indicates an expected call of Block.
func (*MockClientQueryMockRecorder) BlockResults ¶
func (mr *MockClientQueryMockRecorder) BlockResults(height interface{}) *gomock.Call
BlockResults indicates an expected call of BlockResults.
func (*MockClientQueryMockRecorder) BlockchainInfo ¶
func (mr *MockClientQueryMockRecorder) BlockchainInfo(minHeight, maxHeight interface{}) *gomock.Call
BlockchainInfo indicates an expected call of BlockchainInfo.
func (*MockClientQueryMockRecorder) Commit ¶
func (mr *MockClientQueryMockRecorder) Commit(height interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockClientQueryMockRecorder) Genesis ¶
func (mr *MockClientQueryMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockClientQueryMockRecorder) Query ¶
func (mr *MockClientQueryMockRecorder) Query(path, key interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockClientQueryMockRecorder) QueryStore ¶
func (mr *MockClientQueryMockRecorder) QueryStore(key, storeName, endPath interface{}) *gomock.Call
QueryStore indicates an expected call of QueryStore.
func (*MockClientQueryMockRecorder) Tx ¶
func (mr *MockClientQueryMockRecorder) Tx(hash, prove interface{}) *gomock.Call
Tx indicates an expected call of Tx.
func (*MockClientQueryMockRecorder) TxSearch ¶
func (mr *MockClientQueryMockRecorder) TxSearch(query, prove, page, perPage, orderBy interface{}) *gomock.Call
TxSearch indicates an expected call of TxSearch.
func (*MockClientQueryMockRecorder) Validators ¶
func (mr *MockClientQueryMockRecorder) Validators(height, page, perPage interface{}) *gomock.Call
Validators indicates an expected call of Validators.
type MockClientTx ¶
type MockClientTx struct {
// contains filtered or unexported fields
}
MockClientTx is a mock of ClientTx interface.
func NewMockClientTx ¶
func NewMockClientTx(ctrl *gomock.Controller) *MockClientTx
NewMockClientTx creates a new mock instance.
func (*MockClientTx) Broadcast ¶
func (m *MockClientTx) Broadcast(txBytes []byte, broadcastMode string) (types.TxResponse, error)
Broadcast mocks base method.
func (*MockClientTx) EXPECT ¶
func (m *MockClientTx) EXPECT() *MockClientTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientTxMockRecorder ¶
type MockClientTxMockRecorder struct {
// contains filtered or unexported fields
}
MockClientTxMockRecorder is the mock recorder for MockClientTx.
func (*MockClientTxMockRecorder) Broadcast ¶
func (mr *MockClientTxMockRecorder) Broadcast(txBytes, broadcastMode interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
type MockSimulationHandler ¶
type MockSimulationHandler struct {
// contains filtered or unexported fields
}
MockSimulationHandler is a mock of SimulationHandler interface.
func NewMockSimulationHandler ¶
func NewMockSimulationHandler(ctrl *gomock.Controller) *MockSimulationHandler
NewMockSimulationHandler creates a new mock instance.
func (*MockSimulationHandler) BuildTxForSim ¶
func (m *MockSimulationHandler) BuildTxForSim(msgs []types.Msg, memo string, accNumber, seqNumber uint64) ([]byte, error)
BuildTxForSim mocks base method.
func (*MockSimulationHandler) CalculateGas ¶
func (m *MockSimulationHandler) CalculateGas(txBytes []byte) (types0.StdFee, error)
CalculateGas mocks base method.
func (*MockSimulationHandler) EXPECT ¶
func (m *MockSimulationHandler) EXPECT() *MockSimulationHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSimulationHandlerMockRecorder ¶
type MockSimulationHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockSimulationHandlerMockRecorder is the mock recorder for MockSimulationHandler.
func (*MockSimulationHandlerMockRecorder) BuildTxForSim ¶
func (mr *MockSimulationHandlerMockRecorder) BuildTxForSim(msgs, memo, accNumber, seqNumber interface{}) *gomock.Call
BuildTxForSim indicates an expected call of BuildTxForSim.
func (*MockSimulationHandlerMockRecorder) CalculateGas ¶
func (mr *MockSimulationHandlerMockRecorder) CalculateGas(txBytes interface{}) *gomock.Call
CalculateGas indicates an expected call of CalculateGas.
type MockTxHandler ¶
type MockTxHandler struct {
// contains filtered or unexported fields
}
MockTxHandler is a mock of TxHandler interface.
func NewMockTxHandler ¶
func NewMockTxHandler(ctrl *gomock.Controller) *MockTxHandler
NewMockTxHandler creates a new mock instance.
func (*MockTxHandler) BuildAndBroadcast ¶
func (m *MockTxHandler) BuildAndBroadcast(fromName, passphrase, memo string, msgs []types.Msg, accNumber, seqNumber uint64) (types.TxResponse, error)
BuildAndBroadcast mocks base method.
func (*MockTxHandler) BuildStdTx ¶
func (m *MockTxHandler) BuildStdTx(fromName, passphrase, memo string, msgs []types.Msg, accNumber, seqNumber uint64) (types0.StdTx, error)
BuildStdTx mocks base method.
func (*MockTxHandler) BuildUnsignedStdTxOffline ¶
BuildUnsignedStdTxOffline mocks base method.
func (*MockTxHandler) EXPECT ¶
func (m *MockTxHandler) EXPECT() *MockTxHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTxHandlerMockRecorder ¶
type MockTxHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockTxHandlerMockRecorder is the mock recorder for MockTxHandler.
func (*MockTxHandlerMockRecorder) BuildAndBroadcast ¶
func (mr *MockTxHandlerMockRecorder) BuildAndBroadcast(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
BuildAndBroadcast indicates an expected call of BuildAndBroadcast.
func (*MockTxHandlerMockRecorder) BuildStdTx ¶
func (mr *MockTxHandlerMockRecorder) BuildStdTx(fromName, passphrase, memo, msgs, accNumber, seqNumber interface{}) *gomock.Call
BuildStdTx indicates an expected call of BuildStdTx.
func (*MockTxHandlerMockRecorder) BuildUnsignedStdTxOffline ¶
func (mr *MockTxHandlerMockRecorder) BuildUnsignedStdTxOffline(msgs, memo interface{}) *gomock.Call
BuildUnsignedStdTxOffline indicates an expected call of BuildUnsignedStdTxOffline.
type SimulationHandler ¶
type SimulationHandler interface { CalculateGas(txBytes []byte) (authtypes.StdFee, error) BuildTxForSim(msgs []sdk.Msg, memo string, accNumber, seqNumber uint64) ([]byte, error) }
SimulationHandler shows the expected behavior to handle simulation
type TxHandler ¶
type TxHandler interface { BuildAndBroadcast(fromName, passphrase, memo string, msgs []sdk.Msg, accNumber, seqNumber uint64) (sdk.TxResponse, error) BuildStdTx(fromName, passphrase, memo string, msgs []sdk.Msg, accNumber, seqNumber uint64) (*authtypes.StdTx, error) BuildUnsignedStdTxOffline(msgs []sdk.Msg, memo string) *authtypes.StdTx }
TxHandler shows the expected behavior to handle tx