package
0.0.0-20220728222812-7e2f347744fb
Repository: https://github.com/ir4tech/webb-evm.git
Documentation: pkg.go.dev

# Functions

CalculateFunctionSelector returns the 4 byte function selector that results from [functionSignature] Ex.
CheckConfigure checks if [config] is activated by the transition from block at [parentTimestamp] to [currentTimestamp].
GetContractDeployerAllowListStatus returns the role of [address] for the contract deployer allow list.
GetContractNativeMinterStatus returns the role of [address] for the minter list.
No description provided by the author
GetFeeConfigManagerStatus returns the role of [address] for the fee config manager list.
GetStoredFeeConfig returns fee config from contract storage in given state.
GetTxAllowListStatus returns the role of [address] for the contract deployer allow list.
PackFeeConfig packs [feeConfig] without the selector into the appropriate arguments for fee config operations.
PackGetFeeConfigInput packs the getFeeConfig signature.
PackGetLastChangedAtInput packs the getFeeConfigLastChangedAt signature.
PackMintInput packs [address] and [amount] into the appropriate arguments for minting operation.
PackModifyAllowList packs [address] and [role] into the appropriate arguments for modifying the allow list.
PackReadAllowList packs [address] into the input data to the read allow list function.
PackSetFeeConfig packs [feeConfig] with the selector into the appropriate arguments for setting fee config operations.
SetContractDeployerAllowListStatus sets the permissions of [address] to [role] for the contract deployer allow list.
SetContractNativeMinterStatus sets the permissions of [address] to [role] for the minter list.
SetFeeConfigManagerStatus sets the permissions of [address] to [role] for the fee config manager list.
SetTxAllowListStatus sets the permissions of [address] to [role] for the tx allow list.
StoreFeeConfig stores given [feeConfig] and block number in the [blockContext] to the [stateDB].
UnpackFeeConfigInput attempts to unpack [input] into the arguments to the fee config precompile assumes that [input] does not include selector (omits first 4 bytes in PackSetFeeConfigInput).
UnpackMintInput attempts to unpack [input] into the arguments to the mint precompile assumes that [input] does not include selector (omits first 4 bytes in PackMintInput).

# Constants

Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
Gas costs for stateful precompiles.
plus one for setting last changed at.

# Variables

Admin - allowed to modify both the admin and deployer list as well as deploy contracts.
Deployers are allowed to create new contracts.
No role assigned - this is equivalent to common.Hash{} and deletes the key from the DB when set.
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
Singleton StatefulPrecompiledContract for W/R access to the contract deployer allow list.
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
No description provided by the author
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
Singleton StatefulPrecompiledContract for minting native assets by permissioned callers.
No description provided by the author
No description provided by the author
No description provided by the author
Error returned when an invalid write is attempted.
No description provided by the author
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
Singleton StatefulPrecompiledContract for setting fee configs by permissioned callers.
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
Singleton StatefulPrecompiledContract for W/R access to the contract deployer allow list.
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.

# Structs

AllowListConfig specifies the configuration of the allow list.
No description provided by the author
ContractDeployerAllowListConfig wraps [AllowListConfig] and uses it to implement the StatefulPrecompileConfig interface while adding in the contract deployer specific precompile address.
No description provided by the author
ContractNativeMinterConfig wraps [AllowListConfig] and uses it to implement the StatefulPrecompileConfig interface while adding in the ContractNativeMinter specific precompile address.
FeeConfigManagerConfig wraps [AllowListConfig] and uses it to implement the StatefulPrecompileConfig interface while adding in the FeeConfigManager specific precompile address.
TxAllowListConfig wraps [AllowListConfig] and uses it to implement the StatefulPrecompileConfig interface while adding in the TxAllowList specific precompile address.

# Interfaces

No description provided by the author
No description provided by the author
ChainConfig provides an interface for accessing the chain configuration information.
PrecompileAccessibleState defines the interface exposed to stateful precompile contracts.
StateDB is the interface for accessing EVM state.
StatefulPrecompileConfig defines the interface for a stateful precompile to.
StatefulPrecompiledContract is the interface for executing a precompiled contract.

# Type aliases

Enum constants for valid AllowListRole.
No description provided by the author
No description provided by the author