Documentation
¶
Index ¶
- func BurnTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func EditTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func IssueTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func MintTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func QueryFeeExec(t *testing.T, network simapp.Network, clientCtx client.Context, symbol string, ...) *v1.QueryFeesResponse
- func QueryParamsExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *v1.Params
- func QueryTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, denom string, ...) v1.TokenI
- func QueryTokensExec(t *testing.T, network simapp.Network, clientCtx client.Context, owner string, ...) []v1.TokenI
- func SwapFromERC20Exec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func SwapToERC20Exec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func TransferTokenOwnerExec(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 BurnTokenExec ¶
func BurnTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, coinStr string, extraArgs ...string, ) *simapp.ResponseTx
BurnTokenExec executes the command to burn a token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the token will be burned. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - coinStr: string - the amount and coin type to be burned. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func EditTokenExec ¶
func EditTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, symbol string, extraArgs ...string, ) *simapp.ResponseTx
EditTokenExec executes the command to edit a token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the token will be edited. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - symbol: string - the symbol of the token to be edited. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func IssueTokenExec ¶
func IssueTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
IssueTokenExec executes the command to issue a token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the token will be issued. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func MintTokenExec ¶
func MintTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, coinStr string, extraArgs ...string, ) *simapp.ResponseTx
MintTokenExec executes the command to mint a token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the token will be minted. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - coinStr: string - the amount and coin type to be minted. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func QueryFeeExec ¶
func QueryFeeExec(t *testing.T, network simapp.Network, clientCtx client.Context, symbol string, extraArgs ...string, ) *v1.QueryFeesResponse
QueryFeeExec executes a query command to retrieve information about a token's fees.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the query will be executed. - clientCtx: client.Context - the client context for the query. - symbol: string - the symbol of the token. - extraArgs: ...string - additional arguments for the query command.
Returns: - *v1.QueryFeesResponse - the response containing the token's fees.
func QueryParamsExec ¶
func QueryParamsExec(t *testing.T, network simapp.Network, clientCtx client.Context, extraArgs ...string, ) *v1.Params
QueryParamsExec executes a query command to retrieve parameters.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the query will be executed. - clientCtx: client.Context - the client context for the query. - extraArgs: ...string - additional arguments for the query command.
Returns: - *v1.Params - the response containing the parameters.
func QueryTokenExec ¶
func QueryTokenExec(t *testing.T, network simapp.Network, clientCtx client.Context, denom string, extraArgs ...string, ) v1.TokenI
QueryTokenExec executes a query command to retrieve information about a token.
Parameters: - t: testing instance - network: simapp.Network instance - clientCtx: client.Context instance - denom: string representing the denomination of the token - extraArgs: variadic string arguments
Returns: - v1.TokenI interface
func QueryTokensExec ¶
func QueryTokensExec(t *testing.T, network simapp.Network, clientCtx client.Context, owner string, extraArgs ...string, ) []v1.TokenI
QueryTokensExec executes a query command to retrieve information about tokens owned by a specific owner.
Parameters: - t: testing instance - network: simapp.Network instance - clientCtx: client.Context instance - owner: string representing the owner of the tokens - extraArgs: variadic string arguments
Returns: - []v1.TokenI: a slice of v1.TokenI representing the tokens owned by the specified owner
func SwapFromERC20Exec ¶
func SwapFromERC20Exec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, coinStr string, extraArgs ...string, ) *simapp.ResponseTx
SwapFromERC20Exec executes the command to swap a given coin from ERC20 to native token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the swap will be executed. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - coinStr: string - the amount and coin type to be swapped. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func SwapToERC20Exec ¶
func SwapToERC20Exec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, coinStr string, extraArgs ...string, ) *simapp.ResponseTx
SwapToERC20Exec executes the command to swap a given coin to ERC20 on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the swap will be executed. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the sender. - coinStr: string - the amount and coin type to be swapped. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
func TransferTokenOwnerExec ¶
func TransferTokenOwnerExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, symbol string, extraArgs ...string, ) *simapp.ResponseTx
TransferTokenOwnerExec executes the command to transfer the ownership of a token on the specified network with the given client context and sender address.
Parameters: - t: *testing.T - the testing object for running tests. - network: simapp.Network - the network on which the token ownership will be transferred. - clientCtx: client.Context - the client context for the transaction. - from: string - the address of the current owner. - symbol: string - the symbol of the token for which ownership will be transferred. - extraArgs: ...string - additional arguments for the command.
Returns: - *simapp.ResponseTx - the response transaction from executing the command.
Types ¶
type QueryTestSuite ¶
QueryTestSuite is a suite of end-to-end tests for the token module
func (*QueryTestSuite) TestQueryCmd ¶
func (s *QueryTestSuite) TestQueryCmd()
TestQueryCmd tests all query command in the token module
type TxTestSuite ¶
TxTestSuite is a suite of end-to-end tests for the nft module
func (*TxTestSuite) TestTxCmd ¶
func (s *TxTestSuite) TestTxCmd()
TestTxCmd tests all tx command in the nft module