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, resp *sdk.TxResponse) (uint64, error)
- func WhitelistGenesisAssets(state app.GenesisState, assets []string) app.GenesisState
- type IntegrationTestSuite
- func (s *IntegrationTestSuite) SetupSuite()
- func (s *IntegrationTestSuite) TearDownSuite()
- func (s *IntegrationTestSuite) TestCreatePoolCmd()
- 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 ¶
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 ¶
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 ¶
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 ¶
ExtractPoolIDFromCreatePoolResponse extracts the created PoolID from a MsgCreatePool command.
func WhitelistGenesisAssets ¶
func WhitelistGenesisAssets(state app.GenesisState, assets []string) app.GenesisState
WhitelistGenesisAssets given a testapp.GenesisState includes the whitelisted assets into spot Whitelisted assets.
Types ¶
type IntegrationTestSuite ¶
func NewIntegrationTestSuite ¶
func NewIntegrationTestSuite(homeDir string, cfg testutilcli.Config) *IntegrationTestSuite
func (*IntegrationTestSuite) SetupSuite ¶
func (s *IntegrationTestSuite) SetupSuite()
func (*IntegrationTestSuite) TearDownSuite ¶
func (s *IntegrationTestSuite) TearDownSuite()
func (*IntegrationTestSuite) TestCreatePoolCmd ¶
func (s *IntegrationTestSuite) TestCreatePoolCmd()
func (*IntegrationTestSuite) TestGetCmdTotalLiquidity ¶
func (s *IntegrationTestSuite) TestGetCmdTotalLiquidity()
func (*IntegrationTestSuite) TestNewExitPoolCmd ¶
func (s *IntegrationTestSuite) TestNewExitPoolCmd()
func (*IntegrationTestSuite) TestNewExitStablePoolCmd ¶
func (s *IntegrationTestSuite) TestNewExitStablePoolCmd()
func (*IntegrationTestSuite) TestNewJoinPoolCmd ¶
func (s *IntegrationTestSuite) TestNewJoinPoolCmd()
func (*IntegrationTestSuite) TestNewJoinStablePoolCmd ¶
func (s *IntegrationTestSuite) TestNewJoinStablePoolCmd()
func (*IntegrationTestSuite) TestSwapAssets ¶
func (s *IntegrationTestSuite) TestSwapAssets()
func (*IntegrationTestSuite) TestSwapStableAssets ¶
func (s *IntegrationTestSuite) TestSwapStableAssets()
Click to show internal directories.
Click to hide internal directories.