Documentation
¶
Index ¶
- Variables
- func PackNativeAssetBalanceInput(address common.Address, assetID common.Hash) []byte
- func PackNativeAssetCallInput(address common.Address, assetID common.Hash, assetAmount *big.Int, ...) []byte
- func UnpackNativeAssetBalanceInput(input []byte) (common.Address, common.Hash, error)
- func UnpackNativeAssetCallInput(input []byte) (common.Address, common.Hash, *big.Int, []byte, error)
- type DeprecatedContract
- type NativeAssetBalance
- type NativeAssetCall
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GenesisContractAddr = common.HexToAddress("0x0100000000000000000000000000000000000000") NativeAssetBalanceAddr = common.HexToAddress("0x0100000000000000000000000000000000000001") NativeAssetCallAddr = common.HexToAddress("0x0100000000000000000000000000000000000002") )
Functions ¶
func PackNativeAssetBalanceInput ¶
PackNativeAssetBalanceInput packs the arguments into the required input data for a transaction to be passed into the native asset balance contract.
func PackNativeAssetCallInput ¶
func PackNativeAssetCallInput(address common.Address, assetID common.Hash, assetAmount *big.Int, callData []byte) []byte
PackNativeAssetCallInput packs the arguments into the required input data for a transaction to be passed into the native asset contract. Assumes that [assetAmount] is non-nil.
func UnpackNativeAssetBalanceInput ¶
UnpackNativeAssetBalanceInput attempts to unpack [input] into the arguments to the native asset balance precompile
Types ¶
type DeprecatedContract ¶
type DeprecatedContract struct{}
type NativeAssetBalance ¶
type NativeAssetBalance struct {
GasCost uint64
}
NativeAssetBalance is a precompiled contract used to retrieve the native asset balance
type NativeAssetCall ¶
NativeAssetCall atomically transfers a native asset to a recipient address as well as calling that address
Click to show internal directories.
Click to hide internal directories.