Documentation
¶
Index ¶
- Constants
- func ConvertCoinsToExtendedCoinDenom(coins sdk.Coins) sdk.Coins
- func FuzzBurnCoins(f *testing.F)
- func FuzzMintCoins(f *testing.F)
- func FuzzSendCoins(f *testing.F)
- type GenesisTestSuite
- type KeeperIntegrationTestSuite
- func (s *KeeperIntegrationTestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins
- func (s *KeeperIntegrationTestSuite) MintToAccount(addr sdk.AccAddress, amt sdk.Coins)
- func (s *KeeperIntegrationTestSuite) MintToModuleAccount(moduleName string, amt sdk.Coins)
- func (s *KeeperIntegrationTestSuite) SetupTest()
- func (s *KeeperIntegrationTestSuite) SetupTestWithChainID(chainID testconstants.ChainID)
- func (s *KeeperIntegrationTestSuite) TestBlockedRecipient()
- func (s *KeeperIntegrationTestSuite) TestBurnCoins()
- func (s *KeeperIntegrationTestSuite) TestBurnCoinsMatchingErrors()
- func (s *KeeperIntegrationTestSuite) TestBurnCoinsRandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestBurnCoinsRemainder()
- func (s *KeeperIntegrationTestSuite) TestBurnCoinsSpreadRemainder()
- func (s *KeeperIntegrationTestSuite) TestKeeperHiddenReserve()
- func (s *KeeperIntegrationTestSuite) TestKeeperSpendableCoin()
- func (s *KeeperIntegrationTestSuite) TestMintBurnSendCoinsRandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestMintCoins()
- func (s *KeeperIntegrationTestSuite) TestMintCoinsMatchingErrors()
- func (s *KeeperIntegrationTestSuite) TestMintCoinsRandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestQueryFractionalBalance()
- func (s *KeeperIntegrationTestSuite) TestQueryRemainder()
- func (s *KeeperIntegrationTestSuite) TestSendCoins()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsBlockedRecipientCarry()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModule()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleBlockedRecipientCarry()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleMatchingErrors()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccount()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccountMatchingErrors()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsMatchingErrors()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsMatrix()
- func (s *KeeperIntegrationTestSuite) TestSendCoinsRandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestSendEvmTxRandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestSendMsg_RandomValueMultiDecimals()
- func (s *KeeperIntegrationTestSuite) TestWATOMWrapUnwrapMultiDecimal()
Constants ¶
const SEED = int64(42)
Variables ¶
This section is empty.
Functions ¶
func ConvertCoinsToExtendedCoinDenom ¶
ConvertCoinsToExtendedCoinDenom converts sdk.Coins that includes Integer denoms to sdk.Coins that includes Extended denoms of the same amount. This is useful for testing to make sure only extended amounts are compared instead of double counting balances.
func FuzzBurnCoins ¶
func FuzzMintCoins ¶
func FuzzSendCoins ¶
Types ¶
type GenesisTestSuite ¶
func NewGenesisTestSuite ¶
func NewGenesisTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *GenesisTestSuite
func (*GenesisTestSuite) SetupTest ¶
func (s *GenesisTestSuite) SetupTest()
func (*GenesisTestSuite) SetupTestWithChainID ¶
func (s *GenesisTestSuite) SetupTestWithChainID(chainID testconstants.ChainID)
func (*GenesisTestSuite) TestExportGenesis ¶
func (s *GenesisTestSuite) TestExportGenesis()
func (*GenesisTestSuite) TestInitGenesis ¶
func (s *GenesisTestSuite) TestInitGenesis()
type KeeperIntegrationTestSuite ¶
func NewKeeperIntegrationTestSuite ¶
func NewKeeperIntegrationTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *KeeperIntegrationTestSuite
func (*KeeperIntegrationTestSuite) GetAllBalances ¶
func (s *KeeperIntegrationTestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins
GetAllBalances returns all the account balances for the given account address. This returns the extended coin balance if the account has a non-zero balance, WITHOUT the integer coin balance.
func (*KeeperIntegrationTestSuite) MintToAccount ¶
func (s *KeeperIntegrationTestSuite) MintToAccount(addr sdk.AccAddress, amt sdk.Coins)
MintToAccount mints coins to an account with the x/precisebank methods. This must be used when minting extended coins, ie. aatom coins. This depends on the methods to be properly tested to be implemented correctly.
func (*KeeperIntegrationTestSuite) MintToModuleAccount ¶
func (s *KeeperIntegrationTestSuite) MintToModuleAccount(moduleName string, amt sdk.Coins)
MintToModuleAccount mints coins to an account with the x/precisebank methods. This must be used when minting extended coins, ie. aatom coins. This depends on the methods to be properly tested to be implemented correctly.
func (*KeeperIntegrationTestSuite) SetupTest ¶
func (s *KeeperIntegrationTestSuite) SetupTest()
func (*KeeperIntegrationTestSuite) SetupTestWithChainID ¶
func (s *KeeperIntegrationTestSuite) SetupTestWithChainID(chainID testconstants.ChainID)
func (*KeeperIntegrationTestSuite) TestBlockedRecipient ¶
func (s *KeeperIntegrationTestSuite) TestBlockedRecipient()
func (*KeeperIntegrationTestSuite) TestBurnCoins ¶
func (s *KeeperIntegrationTestSuite) TestBurnCoins()
func (*KeeperIntegrationTestSuite) TestBurnCoinsMatchingErrors ¶
func (s *KeeperIntegrationTestSuite) TestBurnCoinsMatchingErrors()
func (*KeeperIntegrationTestSuite) TestBurnCoinsRandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestBurnCoinsRandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestBurnCoinsRemainder ¶
func (s *KeeperIntegrationTestSuite) TestBurnCoinsRemainder()
func (*KeeperIntegrationTestSuite) TestBurnCoinsSpreadRemainder ¶
func (s *KeeperIntegrationTestSuite) TestBurnCoinsSpreadRemainder()
func (*KeeperIntegrationTestSuite) TestKeeperHiddenReserve ¶
func (s *KeeperIntegrationTestSuite) TestKeeperHiddenReserve()
func (*KeeperIntegrationTestSuite) TestKeeperSpendableCoin ¶
func (s *KeeperIntegrationTestSuite) TestKeeperSpendableCoin()
func (*KeeperIntegrationTestSuite) TestMintBurnSendCoinsRandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestMintBurnSendCoinsRandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestMintCoins ¶
func (s *KeeperIntegrationTestSuite) TestMintCoins()
func (*KeeperIntegrationTestSuite) TestMintCoinsMatchingErrors ¶
func (s *KeeperIntegrationTestSuite) TestMintCoinsMatchingErrors()
func (*KeeperIntegrationTestSuite) TestMintCoinsRandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestMintCoinsRandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestQueryFractionalBalance ¶
func (s *KeeperIntegrationTestSuite) TestQueryFractionalBalance()
func (*KeeperIntegrationTestSuite) TestQueryRemainder ¶
func (s *KeeperIntegrationTestSuite) TestQueryRemainder()
func (*KeeperIntegrationTestSuite) TestSendCoins ¶
func (s *KeeperIntegrationTestSuite) TestSendCoins()
func (*KeeperIntegrationTestSuite) TestSendCoinsBlockedRecipientCarry ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsBlockedRecipientCarry()
func (*KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModule ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModule()
func (*KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleBlockedRecipientCarry ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleBlockedRecipientCarry()
func (*KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleMatchingErrors ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsFromAccountToModuleMatchingErrors()
func (*KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccount ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccount()
func (*KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccountMatchingErrors ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsFromModuleToAccountMatchingErrors()
func (*KeeperIntegrationTestSuite) TestSendCoinsMatchingErrors ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsMatchingErrors()
func (*KeeperIntegrationTestSuite) TestSendCoinsMatrix ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsMatrix()
func (*KeeperIntegrationTestSuite) TestSendCoinsRandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestSendCoinsRandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestSendEvmTxRandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestSendEvmTxRandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestSendMsg_RandomValueMultiDecimals ¶
func (s *KeeperIntegrationTestSuite) TestSendMsg_RandomValueMultiDecimals()
func (*KeeperIntegrationTestSuite) TestWATOMWrapUnwrapMultiDecimal ¶
func (s *KeeperIntegrationTestSuite) TestWATOMWrapUnwrapMultiDecimal()