precisebank

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const SEED = int64(42)

Variables

This section is empty.

Functions

func ConvertCoinsToExtendedCoinDenom

func ConvertCoinsToExtendedCoinDenom(coins sdk.Coins) sdk.Coins

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 FuzzBurnCoins(f *testing.F)

func FuzzMintCoins

func FuzzMintCoins(f *testing.F)

func FuzzSendCoins

func FuzzSendCoins(f *testing.F)

Types

type GenesisTestSuite

type GenesisTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

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

type KeeperIntegrationTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL