Documentation ¶
Index ¶
- type TestSuite
- func (s *TestSuite) AddLiquidity(ownerAddr, fromAddr sdk.AccAddress, poolId uint64, ...) (position ammtypes.Position, liquidity sdk.Int, amt sdk.Coins)
- func (s *TestSuite) AdvanceRewardsAuctions()
- func (s *TestSuite) BeginBlock(blockTimeDelta time.Duration)
- func (s *TestSuite) BurnShare(senderAddr sdk.AccAddress, liquidFarmId uint64, share sdk.Coin) (removedLiquidity sdk.Int, position ammtypes.Position, amt sdk.Coins)
- func (s *TestSuite) CancelOrder(ordererAddr sdk.AccAddress, orderId uint64) (order exchangetypes.Order, refundedDeposit sdk.Coin)
- func (s *TestSuite) Collect(ownerAddr, toAddr sdk.AccAddress, positionId uint64, amt sdk.Coins)
- func (s *TestSuite) CollectibleCoins(positionId uint64) (fee, farmingRewards sdk.Coins)
- func (s *TestSuite) CreateLiquidFarm(poolId uint64, lowerPrice, upperPrice sdk.Dec, minBidAmt sdk.Int, ...) (liquidFarm liquidfarmingtypes.LiquidFarm)
- func (s *TestSuite) CreateMarket(creatorAddr sdk.AccAddress, baseDenom, quoteDenom string, fundFee bool) exchangetypes.Market
- func (s *TestSuite) CreatePool(creatorAddr sdk.AccAddress, marketId uint64, price sdk.Dec, fundFee bool) ammtypes.Pool
- func (s *TestSuite) CreatePrivateFarmingPlan(creatorAddr sdk.AccAddress, description string, termAddr sdk.AccAddress, ...) (plan ammtypes.FarmingPlan)
- func (s *TestSuite) EndBlock()
- func (s *TestSuite) FundAccount(addr sdk.AccAddress, amt sdk.Coins)
- func (s *TestSuite) FundedAccount(addrNum int, amt sdk.Coins) sdk.AccAddress
- func (s *TestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins
- func (s *TestSuite) GetBalance(addr sdk.AccAddress, denom string) sdk.Coin
- func (s *TestSuite) MintShare(senderAddr sdk.AccAddress, liquidFarmId uint64, desiredAmt sdk.Coins, ...) (mintedShare sdk.Coin, position ammtypes.Position, liquidity sdk.Int, ...)
- func (s *TestSuite) NextBlock()
- func (s *TestSuite) PlaceBatchLimitOrder(marketId uint64, ordererAddr sdk.AccAddress, isBuy bool, price sdk.Dec, ...) (order exchangetypes.Order)
- func (s *TestSuite) PlaceBid(bidderAddr sdk.AccAddress, liquidFarmId, auctionId uint64, share sdk.Coin) (bid liquidfarmingtypes.Bid)
- func (s *TestSuite) PlaceLimitOrder(marketId uint64, ordererAddr sdk.AccAddress, isBuy bool, price sdk.Dec, ...) (orderId uint64, order exchangetypes.Order, execQty sdk.Int, ...)
- func (s *TestSuite) PlaceMarketOrder(marketId uint64, ordererAddr sdk.AccAddress, isBuy bool, qty sdk.Int) (orderId uint64, execQty sdk.Int, paid, received sdk.Coin)
- func (s *TestSuite) RemoveLiquidity(ownerAddr, toAddr sdk.AccAddress, positionId uint64, liquidity sdk.Int) (position ammtypes.Position, amt sdk.Coins)
- func (s *TestSuite) SetupTest()
- func (s *TestSuite) SwapExactAmountIn(ordererAddr sdk.AccAddress, routes []uint64, input, minOutput sdk.Coin, ...) (output sdk.Coin, results []exchangetypes.SwapRouteResult)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSuite ¶
func (*TestSuite) AddLiquidity ¶
func (*TestSuite) AdvanceRewardsAuctions ¶
func (s *TestSuite) AdvanceRewardsAuctions()
func (*TestSuite) BeginBlock ¶
func (*TestSuite) CancelOrder ¶
func (s *TestSuite) CancelOrder(ordererAddr sdk.AccAddress, orderId uint64) (order exchangetypes.Order, refundedDeposit sdk.Coin)
func (*TestSuite) CollectibleCoins ¶
func (*TestSuite) CreateLiquidFarm ¶
func (s *TestSuite) CreateLiquidFarm(poolId uint64, lowerPrice, upperPrice sdk.Dec, minBidAmt sdk.Int, feeRate sdk.Dec) (liquidFarm liquidfarmingtypes.LiquidFarm)
func (*TestSuite) CreateMarket ¶
func (s *TestSuite) CreateMarket(creatorAddr sdk.AccAddress, baseDenom, quoteDenom string, fundFee bool) exchangetypes.Market
func (*TestSuite) CreatePool ¶
func (*TestSuite) CreatePrivateFarmingPlan ¶
func (s *TestSuite) CreatePrivateFarmingPlan(creatorAddr sdk.AccAddress, description string, termAddr sdk.AccAddress, rewardAllocs []ammtypes.FarmingRewardAllocation, startTime, endTime time.Time, initialFunds sdk.Coins, fundFee bool) (plan ammtypes.FarmingPlan)
func (*TestSuite) FundAccount ¶
func (s *TestSuite) FundAccount( addr sdk.AccAddress, amt sdk.Coins)
func (*TestSuite) FundedAccount ¶
func (*TestSuite) GetAllBalances ¶
func (s *TestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins
func (*TestSuite) GetBalance ¶
func (*TestSuite) PlaceBatchLimitOrder ¶
func (*TestSuite) PlaceBid ¶
func (s *TestSuite) PlaceBid(bidderAddr sdk.AccAddress, liquidFarmId, auctionId uint64, share sdk.Coin) (bid liquidfarmingtypes.Bid)
func (*TestSuite) PlaceLimitOrder ¶
func (*TestSuite) PlaceMarketOrder ¶
func (*TestSuite) RemoveLiquidity ¶
func (*TestSuite) SwapExactAmountIn ¶
func (s *TestSuite) SwapExactAmountIn( ordererAddr sdk.AccAddress, routes []uint64, input, minOutput sdk.Coin, simulate bool) (output sdk.Coin, results []exchangetypes.SwapRouteResult)
Click to show internal directories.
Click to hide internal directories.