Documentation ¶
Index ¶
- Constants
- func PackAllowance(owner common.Address, spender common.Address) []byte
- func PackApproveERC20(spender common.Address) []byte
- func PackBalanceOf(account common.Address) []byte
- func PackDeployERC20(denom string, name string, symbol string, decimals uint8) []byte
- func PackLastValsetNonce() []byte
- func PackSendToCosmos(tokenContract common.Address, destination sdk.AccAddress, amount sdk.Int) []byte
- func UInt256Max() *big.Int
- func UnpackEthUInt(bz []byte) sdk.Int
- type Allocation
- type EthereumConfig
- type EthereumGenesis
Constants ¶
View Source
const DerivationPath = "m/44'/60'/0'/0/0"
Variables ¶
This section is empty.
Functions ¶
func PackApproveERC20 ¶
func PackBalanceOf ¶
func PackDeployERC20 ¶
func PackLastValsetNonce ¶
func PackLastValsetNonce() []byte
func PackSendToCosmos ¶
func UInt256Max ¶
func UnpackEthUInt ¶
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"` }
Click to show internal directories.
Click to hide internal directories.