integration

package
v8.0.0-...-a9a65cb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrosschainSuite

type CrosschainSuite struct {
	*FxCoreSuite
	// contains filtered or unexported fields
}

func NewCrosschainSuite

func NewCrosschainSuite(chainName string, suite *FxCoreSuite) *CrosschainSuite

func (*CrosschainSuite) AddBridgeToken

func (suite *CrosschainSuite) AddBridgeToken(md banktypes.Metadata) (string, crosschaintypes.BridgeToken)

func (*CrosschainSuite) AddBridgeTokenClaim

func (suite *CrosschainSuite) AddBridgeTokenClaim(name, symbol string, decimals uint64, token string) string

func (*CrosschainSuite) BondedOracle

func (suite *CrosschainSuite) BondedOracle()

func (*CrosschainSuite) BridgeCallClaim

func (suite *CrosschainSuite) BridgeCallClaim(to string, tokens []string, amounts []sdkmath.Int)

func (*CrosschainSuite) BridgeCallConfirm

func (suite *CrosschainSuite) BridgeCallConfirm(nonce uint64, isSuccess bool)

func (*CrosschainSuite) BridgerAddr

func (suite *CrosschainSuite) BridgerAddr() sdk.AccAddress

func (*CrosschainSuite) Crosschain

func (suite *CrosschainSuite) Crosschain(token common.Address, recipient string, amount, fee *big.Int, target string) *ethtypes.Transaction

func (*CrosschainSuite) CrosschainQuery

func (suite *CrosschainSuite) CrosschainQuery() crosschaintypes.QueryClient

func (*CrosschainSuite) ExecuteClaim

func (suite *CrosschainSuite) ExecuteClaim() *ethtypes.Transaction

func (*CrosschainSuite) ExternalAddr

func (suite *CrosschainSuite) ExternalAddr() string

func (*CrosschainSuite) FormatAddress

func (suite *CrosschainSuite) FormatAddress(address common.Address) string

func (*CrosschainSuite) GetBridgeDenomByToken

func (suite *CrosschainSuite) GetBridgeDenomByToken(token string) (denom string)

func (*CrosschainSuite) GetBridgeTokenByDenom

func (suite *CrosschainSuite) GetBridgeTokenByDenom(denom string) (token string)

func (*CrosschainSuite) GetBridgeTokens

func (suite *CrosschainSuite) GetBridgeTokens() (denoms []*crosschaintypes.BridgeToken)

func (*CrosschainSuite) HexAddressString

func (suite *CrosschainSuite) HexAddressString() string

func (*CrosschainSuite) Init

func (suite *CrosschainSuite) Init()

func (*CrosschainSuite) OracleAddr

func (suite *CrosschainSuite) OracleAddr() sdk.AccAddress

func (*CrosschainSuite) PendingExecuteClaim

func (suite *CrosschainSuite) PendingExecuteClaim() []crosschaintypes.ExternalClaim

func (*CrosschainSuite) QueryBridgeCallByNonce

func (suite *CrosschainSuite) QueryBridgeCallByNonce(nonce uint64) *crosschaintypes.OutgoingBridgeCall

func (*CrosschainSuite) QueryParams

func (suite *CrosschainSuite) QueryParams() crosschaintypes.Params

func (*CrosschainSuite) SendCancelSendToExternal

func (suite *CrosschainSuite) SendCancelSendToExternal(txId uint64)

func (*CrosschainSuite) SendConfirmBatch

func (suite *CrosschainSuite) SendConfirmBatch()

func (*CrosschainSuite) SendOracleSetConfirm

func (suite *CrosschainSuite) SendOracleSetConfirm()

func (*CrosschainSuite) SendToExternal

func (suite *CrosschainSuite) SendToExternal(count int, amount sdk.Coin) (*sdk.TxResponse, uint64)

func (*CrosschainSuite) SendToExternalAndCancel

func (suite *CrosschainSuite) SendToExternalAndCancel(coin sdk.Coin)

func (*CrosschainSuite) SendToExternalAndConfirm

func (suite *CrosschainSuite) SendToExternalAndConfirm(coin sdk.Coin)

func (*CrosschainSuite) SendToFxClaim

func (suite *CrosschainSuite) SendToFxClaim(receiver sdk.AccAddress, token string, amount sdkmath.Int)

func (*CrosschainSuite) SendUpdateChainOraclesProposal

func (suite *CrosschainSuite) SendUpdateChainOraclesProposal() (*sdk.TxResponse, uint64)

func (*CrosschainSuite) SignatureCheckpoint

func (suite *CrosschainSuite) SignatureCheckpoint(checkpoint []byte) []byte

func (*CrosschainSuite) UpdateParams

func (suite *CrosschainSuite) UpdateParams(opts ...func(params *crosschaintypes.Params)) (*sdk.TxResponse, uint64)

type ERC20TokenSuite

type ERC20TokenSuite struct {
	*EthSuite
	// contains filtered or unexported fields
}

func NewERC20TokenSuite

func NewERC20TokenSuite(suite *EthSuite, token common.Address, signer *helpers.Signer) *ERC20TokenSuite

func (*ERC20TokenSuite) Allowance

func (suite *ERC20TokenSuite) Allowance(owner, spender common.Address) *big.Int

func (*ERC20TokenSuite) Approve

func (suite *ERC20TokenSuite) Approve(spender common.Address, value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) BalanceOf

func (suite *ERC20TokenSuite) BalanceOf(account common.Address) *big.Int

func (*ERC20TokenSuite) Burn

func (suite *ERC20TokenSuite) Burn(account common.Address, value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) CheckBalance

func (suite *ERC20TokenSuite) CheckBalance(address common.Address, addValue *big.Int, f func())

func (*ERC20TokenSuite) Decimals

func (suite *ERC20TokenSuite) Decimals() uint8

func (*ERC20TokenSuite) Deposit

func (suite *ERC20TokenSuite) Deposit(value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) EqualAllowance

func (suite *ERC20TokenSuite) EqualAllowance(owner, spender common.Address, value *big.Int)

func (*ERC20TokenSuite) EqualBalanceOf

func (suite *ERC20TokenSuite) EqualBalanceOf(address common.Address, balance *big.Int)

func (*ERC20TokenSuite) Mint

func (suite *ERC20TokenSuite) Mint(account common.Address, value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) Name

func (suite *ERC20TokenSuite) Name() string

func (*ERC20TokenSuite) Owner

func (suite *ERC20TokenSuite) Owner() common.Address

func (*ERC20TokenSuite) Symbol

func (suite *ERC20TokenSuite) Symbol() string

func (*ERC20TokenSuite) TotalSupply

func (suite *ERC20TokenSuite) TotalSupply() *big.Int

func (*ERC20TokenSuite) Transfer

func (suite *ERC20TokenSuite) Transfer(recipient common.Address, value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) TransferFrom

func (suite *ERC20TokenSuite) TransferFrom(sender, recipient common.Address, value *big.Int) *ethtypes.Transaction

func (*ERC20TokenSuite) TransferOwnership

func (suite *ERC20TokenSuite) TransferOwnership(newOwner common.Address) *ethtypes.Transaction

func (*ERC20TokenSuite) WithSigner

func (suite *ERC20TokenSuite) WithSigner(signer *helpers.Signer) *ERC20TokenSuite

func (*ERC20TokenSuite) Withdraw

func (suite *ERC20TokenSuite) Withdraw(recipient common.Address, value *big.Int) *ethtypes.Transaction

type ERC721TokenSuite

type ERC721TokenSuite struct {
	*EthSuite
	// contains filtered or unexported fields
}

func NewERC721TokenSuite

func NewERC721TokenSuite(suite *EthSuite, token common.Address, signer *helpers.Signer) *ERC721TokenSuite

func (*ERC721TokenSuite) Approve

func (suite *ERC721TokenSuite) Approve(operator common.Address, id *big.Int) *ethtypes.Transaction

func (*ERC721TokenSuite) BalanceOf

func (suite *ERC721TokenSuite) BalanceOf(account common.Address) *big.Int

func (*ERC721TokenSuite) EqualBalanceOf

func (suite *ERC721TokenSuite) EqualBalanceOf(account common.Address, value *big.Int)

func (*ERC721TokenSuite) IsApprovedForAll

func (suite *ERC721TokenSuite) IsApprovedForAll(owner, operator common.Address) bool

func (*ERC721TokenSuite) SafeMint

func (suite *ERC721TokenSuite) SafeMint(account common.Address) *ethtypes.Transaction

func (*ERC721TokenSuite) SafeTransferFrom

func (suite *ERC721TokenSuite) SafeTransferFrom(from, to common.Address, id *big.Int) *ethtypes.Transaction

func (*ERC721TokenSuite) SetApprovalForAll

func (suite *ERC721TokenSuite) SetApprovalForAll(operator common.Address, approved bool) *ethtypes.Transaction

func (*ERC721TokenSuite) TokenURI

func (suite *ERC721TokenSuite) TokenURI(id *big.Int) string

func (*ERC721TokenSuite) WithSigner

func (suite *ERC721TokenSuite) WithSigner(signer *helpers.Signer) *ERC721TokenSuite

type EthSuite

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

func (*EthSuite) Balance

func (suite *EthSuite) Balance(addr common.Address) *big.Int

func (*EthSuite) BlockHeight

func (suite *EthSuite) BlockHeight() uint64

func (*EthSuite) DeployContract

func (suite *EthSuite) DeployContract(signer *helpers.Signer, contractBin []byte) (common.Address, common.Hash)

func (*EthSuite) DeployCrosschain

func (suite *EthSuite) DeployCrosschain(signer *helpers.Signer) (common.Address, common.Hash)

func (*EthSuite) DeployERC20

func (suite *EthSuite) DeployERC20(signer *helpers.Signer, symbol string) common.Address

func (*EthSuite) DeployERC721

func (suite *EthSuite) DeployERC721(signer *helpers.Signer) common.Address

func (*EthSuite) DeployProxy

func (suite *EthSuite) DeployProxy(signer *helpers.Signer, logic common.Address, initData []byte) common.Address

func (*EthSuite) DeployStaking

func (suite *EthSuite) DeployStaking(signer *helpers.Signer) (common.Address, common.Hash)

func (*EthSuite) SendTransaction

func (suite *EthSuite) SendTransaction(tx *ethtypes.Transaction) *ethtypes.Receipt

func (*EthSuite) TransactOpts

func (suite *EthSuite) TransactOpts(signer *helpers.Signer) *bind.TransactOpts

func (*EthSuite) TxFee

func (suite *EthSuite) TxFee(hash common.Hash) *big.Int

func (*EthSuite) WaitMined

func (suite *EthSuite) WaitMined(tx *ethtypes.Transaction) *ethtypes.Receipt

type FxCoreSuite

type FxCoreSuite struct {
	*EthSuite
	// contains filtered or unexported fields
}

func (*FxCoreSuite) BlockNumber

func (suite *FxCoreSuite) BlockNumber() int64

func (*FxCoreSuite) BroadcastProposalTxV1

func (suite *FxCoreSuite) BroadcastProposalTxV1(msgs ...sdk.Msg) (*sdk.TxResponse, uint64)

func (*FxCoreSuite) BroadcastTx

func (suite *FxCoreSuite) BroadcastTx(signer *helpers.Signer, msgList ...sdk.Msg) *sdk.TxResponse

func (*FxCoreSuite) ConvertCoin

func (suite *FxCoreSuite) ConvertCoin(signer *helpers.Signer, recipient common.Address, coin sdk.Coin) *sdk.TxResponse

func (*FxCoreSuite) CreateValidator

func (suite *FxCoreSuite) CreateValidator(signer *helpers.Signer, toBondedVal bool) *sdk.TxResponse

func (*FxCoreSuite) Delegate

func (suite *FxCoreSuite) Delegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse

func (*FxCoreSuite) DelegationRewards

func (suite *FxCoreSuite) DelegationRewards(delAddr, valAddr string) sdk.DecCoins

func (*FxCoreSuite) DistrQuery

func (suite *FxCoreSuite) DistrQuery() distrtypes.QueryClient

func (*FxCoreSuite) ERC20Query

func (suite *FxCoreSuite) ERC20Query() erc20types.QueryClient

func (*FxCoreSuite) EqualBalance

func (suite *FxCoreSuite) EqualBalance(accAddress sdk.AccAddress, balance sdk.Coin)

func (*FxCoreSuite) EqualDelegate

func (suite *FxCoreSuite) EqualDelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, delegation sdk.Coin)

func (*FxCoreSuite) EqualProposal

func (suite *FxCoreSuite) EqualProposal(proposalId uint64, _ govv1.ProposalStatus) govv1.Proposal

func (*FxCoreSuite) EqualRedelegate

func (suite *FxCoreSuite) EqualRedelegate(delegatorAddr sdk.AccAddress, redelegationResponses stakingtypes.RedelegationResponses)

func (*FxCoreSuite) EqualUndelegate

func (suite *FxCoreSuite) EqualUndelegate(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, entries ...stakingtypes.UnbondingDelegationEntry)

func (*FxCoreSuite) EqualWithdrawAddr

func (suite *FxCoreSuite) EqualWithdrawAddr(delegatorAddr, withdrawAddr sdk.AccAddress)

func (*FxCoreSuite) FindValSigner

func (suite *FxCoreSuite) FindValSigner(addr sdk.AccAddress) *helpers.Signer

func (*FxCoreSuite) GetAllBalances

func (suite *FxCoreSuite) GetAllBalances(accAddress sdk.AccAddress) sdk.Coins

func (*FxCoreSuite) GetDelegation

func (suite *FxCoreSuite) GetDelegation(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) *stakingtypes.DelegationResponse

func (*FxCoreSuite) GetDenomsMetadata

func (suite *FxCoreSuite) GetDenomsMetadata() []banktypes.Metadata

func (*FxCoreSuite) GetErc20TokenAddress

func (suite *FxCoreSuite) GetErc20TokenAddress(denom string) common.Address

func (*FxCoreSuite) GetMetadata

func (suite *FxCoreSuite) GetMetadata(denom string) banktypes.Metadata

func (*FxCoreSuite) GetProposals

func (suite *FxCoreSuite) GetProposals(depositor sdk.AccAddress) govv1.Proposals

func (*FxCoreSuite) GetValAddr

func (suite *FxCoreSuite) GetValAddr() sdk.ValAddress

func (*FxCoreSuite) GetValSigner

func (suite *FxCoreSuite) GetValSigner() *helpers.Signer

func (*FxCoreSuite) GetValSortByToken

func (suite *FxCoreSuite) GetValSortByToken() sdk.ValAddress

func (*FxCoreSuite) NewCoin deprecated

func (suite *FxCoreSuite) NewCoin(amount sdkmath.Int) sdk.Coin

Deprecated: Use NewStakingCoin

func (*FxCoreSuite) NewStakingCoin

func (suite *FxCoreSuite) NewStakingCoin(amount, power int64) sdk.Coin

func (*FxCoreSuite) ProposalDeposit

func (suite *FxCoreSuite) ProposalDeposit(signer *helpers.Signer, proposalID uint64, amount sdk.Coin) *sdk.TxResponse

func (*FxCoreSuite) ProposalVote

func (suite *FxCoreSuite) ProposalVote(signer *helpers.Signer, proposalID uint64, option govv1beta1.VoteOption) *sdk.TxResponse

func (*FxCoreSuite) QueryBlock

func (suite *FxCoreSuite) QueryBlock(blockHeight int64) *cmtservice.Block

func (*FxCoreSuite) QueryBlockByTxHash

func (suite *FxCoreSuite) QueryBlockByTxHash(txHash string) *cmtservice.Block

func (*FxCoreSuite) QueryModuleAccountByName

func (suite *FxCoreSuite) QueryModuleAccountByName(moduleName string) sdk.AccAddress

func (*FxCoreSuite) QueryTx

func (suite *FxCoreSuite) QueryTx(txHash string) *sdk.TxResponse

func (*FxCoreSuite) Redelegate

func (suite *FxCoreSuite) Redelegate(signer *helpers.Signer, valSrc, valDest sdk.ValAddress, all bool) *sdk.TxResponse

func (*FxCoreSuite) Send

func (suite *FxCoreSuite) Send(toAddress sdk.AccAddress, amount ...sdk.Coin) *sdk.TxResponse

func (*FxCoreSuite) SetWithdrawAddress

func (suite *FxCoreSuite) SetWithdrawAddress(signer *helpers.Signer, withdrawAddr sdk.AccAddress) *sdk.TxResponse

func (*FxCoreSuite) StakingQuery

func (suite *FxCoreSuite) StakingQuery() stakingtypes.QueryClient

func (*FxCoreSuite) ToggleTokenConversionProposal

func (suite *FxCoreSuite) ToggleTokenConversionProposal(denom string) (*sdk.TxResponse, uint64)

func (*FxCoreSuite) Undelegate

func (suite *FxCoreSuite) Undelegate(signer *helpers.Signer, valAddress sdk.ValAddress, amount sdk.Coin) *sdk.TxResponse

func (*FxCoreSuite) WithGasPrices

func (suite *FxCoreSuite) WithGasPrices(gasPrices ...sdk.Coin) *FxCoreSuite

func (*FxCoreSuite) WithProposalStatus

func (suite *FxCoreSuite) WithProposalStatus(status govv1.ProposalStatus) *FxCoreSuite

func (*FxCoreSuite) WithdrawReward

func (suite *FxCoreSuite) WithdrawReward(signer *helpers.Signer, valAddress sdk.ValAddress) *sdk.TxResponse

type StakingPrecompileSuite

type StakingPrecompileSuite struct {
	*EthSuite
	// contains filtered or unexported fields
}

func NewStakingSuite

func NewStakingSuite(suite *EthSuite, contractAddr common.Address, signer *helpers.Signer) *StakingPrecompileSuite

func (*StakingPrecompileSuite) AllowanceShares

func (suite *StakingPrecompileSuite) AllowanceShares(valAddr string, owner, spender common.Address) *big.Int

func (*StakingPrecompileSuite) ApproveShares

func (suite *StakingPrecompileSuite) ApproveShares(valAddr string, spender common.Address, shares *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) DelegateV2

func (suite *StakingPrecompileSuite) DelegateV2(valAddr string, delAmount *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) Delegation

func (suite *StakingPrecompileSuite) Delegation(valAddr string, delAddr common.Address) (*big.Int, *big.Int)

func (*StakingPrecompileSuite) LogReward

func (suite *StakingPrecompileSuite) LogReward(logs []*ethtypes.Log, valAddr string, addr common.Address) *big.Int

func (*StakingPrecompileSuite) RedelegateV2

func (suite *StakingPrecompileSuite) RedelegateV2(valSrc, valDst string, amount *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) Rewards

func (suite *StakingPrecompileSuite) Rewards(valAddr string, delAddr common.Address) *big.Int

func (*StakingPrecompileSuite) TransferFromShares

func (suite *StakingPrecompileSuite) TransferFromShares(valAddr string, from, receipt common.Address, shares *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) TransferShares

func (suite *StakingPrecompileSuite) TransferShares(valAddr string, receipt common.Address, shares *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) UnDelegateV2

func (suite *StakingPrecompileSuite) UnDelegateV2(valAddr string, amount *big.Int) *ethtypes.Receipt

func (*StakingPrecompileSuite) WithSigner

func (suite *StakingPrecompileSuite) WithSigner(signer *helpers.Signer) *StakingPrecompileSuite

func (*StakingPrecompileSuite) Withdraw

func (suite *StakingPrecompileSuite) Withdraw(valAddr string) *ethtypes.Receipt

Jump to

Keyboard shortcuts

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