integration_tests

package
v0.3.10-0...-a244a24 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const DerivationPath = "m/44'/60'/0'/0/0"

Variables

This section is empty.

Functions

func PackAllowance

func PackAllowance(owner common.Address, spender common.Address) []byte

func PackApproveERC20

func PackApproveERC20(spender common.Address) []byte

func PackBalanceOf

func PackBalanceOf(account common.Address) []byte

func PackDeployERC20

func PackDeployERC20(denom string, name string, symbol string, decimals uint8) []byte

func PackLastValsetNonce

func PackLastValsetNonce() []byte

func PackSendToCosmos

func PackSendToCosmos(tokenContract common.Address, destination sdk.AccAddress, amount sdk.Int) []byte

func UInt256Max

func UInt256Max() *big.Int

func UnpackEthUInt

func UnpackEthUInt(bz []byte) sdk.Int

Types

type Allocation

type Allocation struct {
	Balance string `json:"balance"`
}

type EthereumConfig

type EthereumConfig struct {
	ChainID             uint `json:"chainId"`
	HomesteadBlock      uint `json:"homesteadBlock"`
	EIP150Block         uint `json:"eip150Block"`
	EIP155Block         uint `json:"eip155Block"`
	EIP158Block         uint `json:"eip158Block"`
	ByzantiumBlock      uint `json:"byzantiumBlock"`
	ConstantinopleBlock uint `json:"constantinopleBlock"`
	PetersburgBlock     uint `json:"petersburgBlock"`
	IstanbulBlock       uint `json:"istanbulBlock"`
	BerlinBlock         uint `json:"berlinBlock"`
}

type EthereumGenesis

type EthereumGenesis struct {
	Difficulty string                `json:"difficulty"`
	GasLimit   string                `json:"gasLimit"`
	Config     EthereumConfig        `json:"config"`
	Alloc      map[string]Allocation `json:"alloc"`
}

Jump to

Keyboard shortcuts

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