Documentation ¶
Index ¶
- func BurnMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func EditMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func IssueDenomExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func MintMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func QueryBlancesExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *mttypes.QueryBalancesResponse
- func QueryDenomExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, ...) *mttypes.Denom
- func QueryDenomsExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *mttypes.QueryDenomsResponse
- func QueryMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, ...) *mttypes.MT
- func QueryMTsExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, ...)
- func TransferDenomExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func TransferMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- type QueryTestSuite
- type TxTestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BurnMTExec ¶
func BurnMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, denomID string, mtID string, amount string, extraArgs ...string, ) *simapp.ResponseTx
BurnMTExec executes a burn token transaction.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account initiating the burn transaction. - denomID: The unique identifier of the denomination to burn. - mtID: The unique identifier of the multi-token to burn. - amount: The amount of tokens to burn. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
func EditMTExec ¶
func EditMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, denomID string, mtID string, extraArgs ...string, ) *simapp.ResponseTx
EditMTExec executes an edit MT transaction.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account initiating the edit transaction. - denomID: The unique identifier of the denomination to edit. - mtID: The unique identifier of the MT to edit. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
func IssueDenomExec ¶
func IssueDenomExec( t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
IssueDenomExec executes the IssueDenom command with the specified parameters.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account issuing the denom. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
func MintMTExec ¶
func MintMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, denomID string, extraArgs ...string, ) *simapp.ResponseTx
MintMTExec executes a mint token transaction.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account initiating the mint transaction. - denomID: The unique identifier of the denomination to mint. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
func QueryBlancesExec ¶
func QueryBlancesExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, denomID string, extraArgs ...string, ) *mttypes.QueryBalancesResponse
QueryBlancesExec executes a query command to retrieve the balances of a specific account for a given denomination.
Parameters: - t: The testing.T object for testing. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object for the client. - from: The address of the account to query balances for. - denomID: The ID of the denomination to query balances for. - extraArgs: Additional arguments to be passed to the command.
Returns: - *mttypes.QueryBalancesResponse: The response object containing the queried balances.
func QueryDenomExec ¶
func QueryDenomExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, extraArgs ...string, ) *mttypes.Denom
QueryDenomExec executes a query command to retrieve a specific denom from the network.
Parameters: - t: The testing.T object for testing. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object for the client. - denomID: The ID of the denom to query. - extraArgs: Additional arguments to be passed to the command.
Returns: - *mttypes.Denom: The response object containing the queried denom.
func QueryDenomsExec ¶
func QueryDenomsExec(t *testing.T, network simapp.Network, clientCtx client.Context, extraArgs ...string, ) *mttypes.QueryDenomsResponse
QueryDenomsExec executes a query command to retrieve all denoms from the network.
Parameters: - t: The testing.T object for testing. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object for the client. - extraArgs: Additional arguments to be passed to the command.
Returns: - *mttypes.QueryDenomsResponse: The response object containing the queried denoms.
func QueryMTExec ¶
func QueryMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, mtID string, extraArgs ...string, ) *mttypes.MT
QueryMTExec executes a query command to retrieve a specific MT from the network.
Parameters: - t: The testing.T object for testing. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object for the client. - denomID: The ID of the denom containing the MT. - mtID: The ID of the MT to query. - extraArgs: Additional arguments to be passed to the command.
Returns: - *mttypes.MT: The response object containing the queried MT.
func QueryMTsExec ¶
func QueryMTsExec(t *testing.T, network simapp.Network, clientCtx client.Context, denomID string, resp proto.Message, extraArgs ...string, )
QueryMTsExec executes a query command to retrieve all MTs from the network.
Parameters: - t: The testing.T object for testing. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object for the client. - denomID: The ID of the denom to query. - resp: The response object to store the queried MTs. - extraArgs: Additional arguments to be passed to the command.
Returns: None.
func TransferDenomExec ¶
func TransferDenomExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, recipient string, denomID string, extraArgs ...string, ) *simapp.ResponseTx
TransferDenomExec executes a transfer denomination transaction.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account initiating the transfer transaction. - recipient: The address of the account receiving the transferred tokens. - denomID: The unique identifier of the denomination. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
func TransferMTExec ¶
func TransferMTExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, recipient string, denomID string, mtID string, amount string, extraArgs ...string, ) *simapp.ResponseTx
TransferMTExec executes a transfer MT transaction.
Parameters: - t: The testing.T object for logging and reporting. - network: The simapp.Network object representing the network. - clientCtx: The client.Context object representing the client context. - from: The address of the account initiating the transfer transaction. - recipient: The address of the account receiving the transferred tokens. - denomID: The unique identifier of the denomination. - mtID: The unique identifier of the MT being transferred. - amount: The amount of tokens to transfer. - extraArgs: Additional command line arguments.
Returns: - *simapp.ResponseTx: The response transaction object.
Types ¶
type QueryTestSuite ¶
QueryTestSuite is a suite of end-to-end tests for the mt module
func (*QueryTestSuite) TestQueryCmd ¶
func (s *QueryTestSuite) TestQueryCmd()
TestQueryCmd tests all query command in the mt module
type TxTestSuite ¶
TxTestSuite is a suite of end-to-end tests for the mt module
func (*TxTestSuite) TestMT ¶
func (s *TxTestSuite) TestMT()
TestMT tests all tx command in the mt module