Documentation ¶
Index ¶
- func BindServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func CallServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func DefineServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func DisableServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *simapp.ResponseTx
- func EnableServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *simapp.ResponseTx
- func QueryEarnedFeesExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.QueryEarnedFeesResponse
- func QueryRequestContextExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.RequestContext
- func QueryServiceBindingExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.ServiceBinding
- func QueryServiceBindingsExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.QueryBindingsResponse
- func QueryServiceDefinitionExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.ServiceDefinition
- func QueryServiceRequestExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.Request
- func QueryServiceRequestsByReqCtx(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.QueryRequestsResponse
- func QueryServiceRequestsExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.QueryRequestsResponse
- func QueryServiceResponseExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *servicetypes.Response
- func RefundDepositExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *simapp.ResponseTx
- func RespondServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func SetWithdrawAddrExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *simapp.ResponseTx
- func UpdateBindingExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- func WithdrawEarnedFeesExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *simapp.ResponseTx
- type QueryTestSuite
- type TxTestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindServiceExec ¶
func BindServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
BindServiceExec executes the command to bind a service.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - from: string - the address of the user binding the service - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func CallServiceExec ¶
func CallServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
CallServiceExec executes the command to call a service.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - from: string - the address of the user calling the service - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func DefineServiceExec ¶
func DefineServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
DefineServiceExec defines a service execution.
Parameters: - t: *testing.T - network: simapp.Network - clientCtx: client.Context - from: string - extraArgs: ...string Returns *simapp.ResponseTx
func DisableServiceExec ¶
func DisableServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName, provider, from string, extraArgs ...string, ) *simapp.ResponseTx
DisableServiceExec executes the command to disable a service binding.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - provider: string - the provider of the service - from: string - the address of the user disabling the service - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func EnableServiceExec ¶
func EnableServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName, provider, from string, extraArgs ...string, ) *simapp.ResponseTx
EnableServiceExec executes the command to enable a service binding.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - provider: string - the provider of the service - from: string - the address of the user enabling the service - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func QueryEarnedFeesExec ¶
func QueryEarnedFeesExec(t *testing.T, network simapp.Network, clientCtx client.Context, extraArgs ...string, ) *servicetypes.QueryEarnedFeesResponse
QueryEarnedFeesExec executes the command to query the earned fees.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - extraArgs: ...string - additional arguments for the command
Returns: - *servicetypes.QueryEarnedFeesResponse - the response object containing the earned fees
func QueryRequestContextExec ¶
func QueryRequestContextExec(t *testing.T, network simapp.Network, clientCtx client.Context, contextID string, extraArgs ...string, ) *servicetypes.RequestContext
QueryRequestContextExec executes a query to retrieve a request context from the network.
Parameters: - t: *testing.T - network: simapp.Network - clientCtx: client.Context - contextId: string - extraArgs: ...string Returns *servicetypes.RequestContext
func QueryServiceBindingExec ¶
func QueryServiceBindingExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName, provider string, extraArgs ...string, ) *servicetypes.ServiceBinding
QueryServiceBindingExec executes a query to retrieve a service binding from the network.
Parameters: - t: *testing.T - the testing object. - network: simapp.Network - the network object. - clientCtx: client.Context - the client context object. - serviceName: string - the name of the service. - provider: string - the provider of the service. - extraArgs: ...string - additional arguments for the command.
Returns: - *servicetypes.ServiceBinding - the response object containing the service binding.
func QueryServiceBindingsExec ¶
func QueryServiceBindingsExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName string, extraArgs ...string, ) *servicetypes.QueryBindingsResponse
QueryServiceBindingsExec executes a query to retrieve service bindings from the network.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - extraArgs: ...string - additional arguments for the command
Returns: - *servicetypes.QueryBindingsResponse - the response object containing the service bindings
func QueryServiceDefinitionExec ¶
func QueryServiceDefinitionExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName string, extraArgs ...string, ) *servicetypes.ServiceDefinition
QueryServiceDefinitionExec executes a query to retrieve a service definition from the network.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - extraArgs: ...string - additional arguments for the command
Returns: - *servicetypes.ServiceDefinition - the response object containing the service definition
func QueryServiceRequestExec ¶
func QueryServiceRequestExec(t *testing.T, network simapp.Network, clientCtx client.Context, requestID string, extraArgs ...string, ) *servicetypes.Request
QueryServiceRequestExec executes a query to retrieve a service request from the network.
Parameters: - t: *testing.T - network: simapp.Network - clientCtx: client.Context - requestID: string - extraArgs: ...string Returns *servicetypes.Request
func QueryServiceRequestsByReqCtx ¶
func QueryServiceRequestsByReqCtx(t *testing.T, network simapp.Network, clientCtx client.Context, requestContextID, batchCounter string, extraArgs ...string, ) *servicetypes.QueryRequestsResponse
QueryServiceRequestsByReqCtx queries the service requests by request context ID.
Parameters: - t: *testing.T - network: simapp.Network - clientCtx: client.Context - requestContextID: string - batchCounter: string - extraArgs: ...string
Returns: - *servicetypes.QueryRequestsResponse
func QueryServiceRequestsExec ¶
func QueryServiceRequestsExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName, provider string, extraArgs ...string, ) *servicetypes.QueryRequestsResponse
QueryServiceRequestsExec queries the service requests by service name and provider.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - provider: string - the provider of the service - extraArgs: ...string - additional arguments for the command
Returns: - *servicetypes.QueryRequestsResponse - the response object containing the service requests
func QueryServiceResponseExec ¶
func QueryServiceResponseExec(t *testing.T, network simapp.Network, clientCtx client.Context, requestID string, extraArgs ...string, ) *servicetypes.Response
QueryServiceResponseExec executes a query to retrieve a service response from the network.
Parameters: - t: *testing.T - network: simapp.Network - clientCtx: client.Context - requestID: string - extraArgs: ...string Returns *servicetypes.Response
func RefundDepositExec ¶
func RefundDepositExec(t *testing.T, network simapp.Network, clientCtx client.Context, serviceName, provider, from string, extraArgs ...string, ) *simapp.ResponseTx
RefundDepositExec executes the command to refund the deposit for a service.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - serviceName: string - the name of the service - provider: string - the provider of the service - from: string - the address of the user refunding the deposit - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func RespondServiceExec ¶
func RespondServiceExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
RespondServiceExec executes the command to respond to a service request.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - from: string - the address of the user responding to the service request - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func SetWithdrawAddrExec ¶
func SetWithdrawAddrExec(t *testing.T, network simapp.Network, clientCtx client.Context, withdrawalAddress, from string, extraArgs ...string, ) *simapp.ResponseTx
SetWithdrawAddrExec executes the command to set a withdrawal address.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - withdrawalAddress: string - the address to set for withdrawal - from: string - the address of the user setting the withdrawal address - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func UpdateBindingExec ¶
func UpdateBindingExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, extraArgs ...string, ) *simapp.ResponseTx
UpdateBindingExec executes the command to update a service binding.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - from: string - the address of the user updating the service binding - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
func WithdrawEarnedFeesExec ¶
func WithdrawEarnedFeesExec(t *testing.T, network simapp.Network, clientCtx client.Context, provider, from string, extraArgs ...string, ) *simapp.ResponseTx
WithdrawEarnedFeesExec executes the command to withdraw earned fees.
Parameters: - t: *testing.T - the testing object - network: simapp.Network - the network object - clientCtx: client.Context - the client context object - provider: string - the provider of the service - from: string - the address of the user withdrawing the fees - extraArgs: ...string - additional arguments for the command
Returns: - *simapp.ResponseTx - the response transaction object
Types ¶
type QueryTestSuite ¶
QueryTestSuite is a suite of end-to-end tests for the service module
func (*QueryTestSuite) SetupSuite ¶
func (s *QueryTestSuite) SetupSuite()
SetupSuite sets up test suite
func (*QueryTestSuite) TestQueryCmd ¶
func (s *QueryTestSuite) TestQueryCmd()
TestQueryCmd tests all query command in the service module
type TxTestSuite ¶
TxTestSuite is a suite of end-to-end tests for the service module
func (*TxTestSuite) TestQueryCmd ¶
func (s *TxTestSuite) TestQueryCmd()
TestQueryCmd tests all query command in the service module