Documentation ¶
Index ¶
- func ExecMsgCreatePool(t *testing.T, clientCtx client.Context, owner fmt.Stringer, ...) (testutil.BufferWriter, error)
- func ExecMsgExitPool(clientCtx client.Context, poolId uint64, sender fmt.Stringer, ...) (testutil.BufferWriter, error)
- func ExecMsgJoinPool(clientCtx client.Context, poolId uint64, sender fmt.Stringer, tokensIn string, ...) (testutil.BufferWriter, error)
- func ExecMsgSwapAssets(clientCtx client.Context, poolId uint64, sender fmt.Stringer, tokenIn string, ...) (testutil.BufferWriter, error)
- func ExtractPoolIDFromCreatePoolResponse(codec codec.Codec, out testutil.BufferWriter) (uint64, error)
- func WhitelistGenesisAssets(state testapp.GenesisState, assets []string) testapp.GenesisState
- type IntegrationTestSuite
- func (s *IntegrationTestSuite) FundAccount(recipient sdk.Address, tokens sdk.Coins)
- func (s *IntegrationTestSuite) NewAccount(uid string) (addr sdk.AccAddress)
- func (s *IntegrationTestSuite) SetupSuite()
- func (s *IntegrationTestSuite) TearDownSuite()
- func (s *IntegrationTestSuite) TestCreatePoolCmd()
- func (s *IntegrationTestSuite) TestCreatePoolCmd_Errors()
- func (s *IntegrationTestSuite) TestCreatePoolStableSwapCmd_Errors()
- func (s *IntegrationTestSuite) TestGetCmdTotalLiquidity()
- func (s *IntegrationTestSuite) TestNewExitPoolCmd()
- func (s *IntegrationTestSuite) TestNewExitStablePoolCmd()
- func (s *IntegrationTestSuite) TestNewJoinPoolCmd()
- func (s *IntegrationTestSuite) TestNewJoinStablePoolCmd()
- func (s *IntegrationTestSuite) TestSwapAssets()
- func (s *IntegrationTestSuite) TestSwapStableAssets()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecMsgCreatePool ¶
func ExecMsgCreatePool( t *testing.T, clientCtx client.Context, owner fmt.Stringer, tokenWeights string, initialDeposit string, swapFee string, exitFee string, poolType string, amplification string, extraArgs ...string, ) (testutil.BufferWriter, error)
ExecMsgCreatePool broadcast a pool creation message.
func ExecMsgExitPool ¶ added in v0.1.0
func ExecMsgExitPool( clientCtx client.Context, poolId uint64, sender fmt.Stringer, poolSharesOut string, extraArgs ...string, ) (testutil.BufferWriter, error)
ExecMsgExitPool broadcast an exit pool message.
func ExecMsgJoinPool ¶ added in v0.1.0
func ExecMsgJoinPool( clientCtx client.Context, poolId uint64, sender fmt.Stringer, tokensIn string, useAllCoins string, extraArgs ...string, ) (testutil.BufferWriter, error)
ExecMsgJoinPool broadcast a join pool message.
func ExecMsgSwapAssets ¶ added in v0.1.0
func ExecMsgSwapAssets( clientCtx client.Context, poolId uint64, sender fmt.Stringer, tokenIn string, tokenOutDenom string, extraArgs ...string, ) (testutil.BufferWriter, error)
ExecMsgSwapAssets broadcast a swap assets message.
func ExtractPoolIDFromCreatePoolResponse ¶ added in v0.15.0
func ExtractPoolIDFromCreatePoolResponse(codec codec.Codec, out testutil.BufferWriter) (uint64, error)
ExtractPoolIDFromCreatePoolResponse extracts the created PoolID from a MsgCreatePool command.
func WhitelistGenesisAssets ¶ added in v0.15.0
func WhitelistGenesisAssets(state testapp.GenesisState, assets []string) testapp.GenesisState
WhitelistGenesisAssets given a testapp.GenesisState includes the whitelisted assets into Dex Whitelisted assets.
Types ¶
type IntegrationTestSuite ¶ added in v0.15.0
func NewIntegrationTestSuite ¶ added in v0.15.0
func NewIntegrationTestSuite(cfg testutilcli.Config) *IntegrationTestSuite
func (*IntegrationTestSuite) FundAccount ¶ added in v0.15.0
func (s *IntegrationTestSuite) FundAccount(recipient sdk.Address, tokens sdk.Coins)
Adds tokens from val[0] to a recipient address.
args:
- recipient: the recipient address
- tokens: the amount of tokens to transfer
func (*IntegrationTestSuite) NewAccount ¶ added in v0.15.0
func (s *IntegrationTestSuite) NewAccount(uid string) (addr sdk.AccAddress)
Creates a new account and returns the address.
args:
- uid: a unique identifier to ensure duplicate accounts are not created
ret:
- addr: the address of the new account
func (*IntegrationTestSuite) SetupSuite ¶ added in v0.15.0
func (s *IntegrationTestSuite) SetupSuite()
func (*IntegrationTestSuite) TearDownSuite ¶ added in v0.15.0
func (s *IntegrationTestSuite) TearDownSuite()
func (*IntegrationTestSuite) TestCreatePoolCmd ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestCreatePoolCmd()
func (*IntegrationTestSuite) TestCreatePoolCmd_Errors ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestCreatePoolCmd_Errors()
func (*IntegrationTestSuite) TestCreatePoolStableSwapCmd_Errors ¶ added in v0.16.1
func (s *IntegrationTestSuite) TestCreatePoolStableSwapCmd_Errors()
func (*IntegrationTestSuite) TestGetCmdTotalLiquidity ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestGetCmdTotalLiquidity()
func (*IntegrationTestSuite) TestNewExitPoolCmd ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestNewExitPoolCmd()
func (*IntegrationTestSuite) TestNewExitStablePoolCmd ¶ added in v0.16.1
func (s *IntegrationTestSuite) TestNewExitStablePoolCmd()
func (*IntegrationTestSuite) TestNewJoinPoolCmd ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestNewJoinPoolCmd()
func (*IntegrationTestSuite) TestNewJoinStablePoolCmd ¶ added in v0.16.1
func (s *IntegrationTestSuite) TestNewJoinStablePoolCmd()
func (*IntegrationTestSuite) TestSwapAssets ¶ added in v0.15.0
func (s *IntegrationTestSuite) TestSwapAssets()
func (*IntegrationTestSuite) TestSwapStableAssets ¶ added in v0.16.1
func (s *IntegrationTestSuite) TestSwapStableAssets()
Click to show internal directories.
Click to hide internal directories.