package
0.0.0-20230516101456-1d7836d562fc
Repository: https://github.com/exfury/grbchain.git
Documentation: pkg.go.dev
# Functions
AddressStoragePrefix returns a prefix to iterate over a given account storage.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BloomKey defines the store key for a block Bloom.
No description provided by the author
No description provided by the author
No description provided by the author
DecodeResultData decodes an amino-encoded byte slice into ResultData.
DefaultChainConfig returns default evm parameters.
DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.
DefaultParams returns default evm parameters.
EncodeNonce converts the given integer to a block nonce.
EncodeResultData takes all of the necessary data from the EVM execution and returns the data as a byte slice encoded with amino.
ErrBlockedContractMethodIsNotExist returns an error when the blocked contract method is not exist.
ErrCallBlockedContract returns an error when the blocked contract is invoked.
No description provided by the author
No description provided by the author
No description provided by the author
ErrOversizeAddrList returns an error when the length of address list in the proposal is larger than the max limitation.
No description provided by the author
ErrUnauthorizedAccount returns an error when an account not in the whitelist tries to create a contract.
No description provided by the author
FormatLogs formats EVM returned structured logs for json output.
GenerateEthAddress generates an Ethereum address.
getContractBlockedListMemberKey builds the key for a blocked contract address.
getContractDeploymentWhitelistMemberKey builds the key for an approved contract deployer.
No description provided by the author
No description provided by the author
GetHashFn implements vm.GetHashFunc for Ethermint.
No description provided by the author
No description provided by the author
GetSysContractAddressKey builds the key for system contract address.
No description provided by the author
HeightHashKey returns the key for the given chain epoch and height.
No description provided by the author
* IsKey
*/.
No description provided by the author
No description provided by the author
Keccak256HashWithCache returns the Keccak256 hash of the given data.
No description provided by the author
MarshalLogs encodes an array of logs using amino.
No description provided by the author
NewBlockContract return point of BlockedContract.
No description provided by the author
NewCommitStateDB returns a reference to a newly initialized CommitStateDB which implements Geth's state.StateDB interface.
No description provided by the author
NewContractVerifier return a point of ContractVerifier.
NewManageContractBlockedListProposal creates a new instance of ManageContractBlockedListProposal.
No description provided by the author
NewManageContractDeploymentWhitelistProposal creates a new instance of ManageContractDeploymentWhitelistProposal.
NewManageContractMethodBlockedListProposal creates a new instance of ManageContractMethodBlockedListProposal.
NewManageSysContractAddressProposal creates a new instance of NewManageSysContractAddressProposal.
NewMsgEthereumTx returns a reference to a new Ethereum transaction message.
NewMsgEthereumTxContract returns a reference to a new Ethereum transaction message designated for contract creation.
NewNoOpTracer creates a no-op vm.Tracer.
NewParams creates a new Params instance.
NewState creates a new State instance.
NewTransactionLogs creates a new NewTransactionLogs instance.
ParamKeyTable returns the parameter key table.
ReadBloomBits retrieves the compressed bloom bit vector belonging to the given section and bit index from the.
RegisterCodec registers all the necessary types and interfaces for the evm module.
No description provided by the author
No description provided by the author
No description provided by the author
TestParams returns test parameters for unit tests.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnmarshalLogs decodes an amino-encoded byte array into an array of logs.
ValidateLog performs a basic validation of an ethereum Log fields.
ValidateSigner attempts to validate a signer for a given slice of bytes over which a signature and signer is given.
WriteBloomBits stores the compressed bloom bits vector belonging to the given section and bit index.
# Constants
Evm module events.
Evm module events.
Evm module events.
BloomBitsBlocks is the number of blocks a single bloom bit section vector contains on the server side.
bloomFilterThreads is the number of goroutines used locally per filter to multiplex requests onto the global servicing goroutines.
bloomRetrievalBatch is the maximum number of bloom bit retrievals to service in a single batch.
bloomRetrievalWait is the maximum time to wait for enough bloom bit requests to accumulate request an entire batch (avoiding hysteresis).
bloomServiceThreads is the number of goroutines used globally by an Ethereum instance to service bloombits lookups for all running filters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MB.
NOTE: We can't use 1 since that error code is reserved for internal errors.
DefaultParamspace for params keeper.
Evm module events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleName string name of module.
No description provided by the author
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
QueryParameters defines QueryParameters = "params" query route path.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
Supported endpoints.
RouterKey uses module name for routing.
SysContractAddressKey uses for save system contract address.
No description provided by the author
TypeMsgEthereumTx defines the type string of an Ethereum tranasction.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrCallDisabled returns an error if the EnableCall parameter is false.
ErrChainConfigNotFound returns an error if the chain config cannot be found on the store.
ErrCreateDisabled returns an error if the EnableCreate parameter is false.
ErrDuplicatedAddr returns an error if the address is duplicated in address list.
ErrDuplicatedMethod returns an error if the contract method is duplicated.
ErrEmptyAddressBlockedContract returns an error if the contract method is empty.
ErrEmptyAddressList returns an error if the address list is empty.
ErrEmptyMethod returns an error if the contract method is empty.
ErrGUFactor returns an error if gu_factor is negative.
ErrInvalidChainConfig returns an error resulting from an invalid ChainConfig.
ErrInvalidState returns an error resulting from an invalid Storage State.
ErrKeyNotFound returns an error if the target key not found in database.
ErrDuplicatedAddr returns an error if the address is duplicated in address list.
No description provided by the author
No description provided by the author
ErrStrConvertFailed returns an error if failed to convert string.
ErrUnexpectedProposalType returns an error when the proposal type is not supported in evm module.
No description provided by the author
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
ModuleCdc defines the evm module's codec.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
# Structs
No description provided by the author
Block represents a transaction returned to RPC clients.
BlockedContract i the contract which method or all-method is blocked.
No description provided by the author
No description provided by the author
ChainConfig defines the Ethereum ChainConfig parameters using sdk.Int values instead of big.Int.
CommitStateDB implements the Geth state.StateDB interface.
No description provided by the author
ContractMethod is the blocked contract method Name is method name Extra is a extend data is useless.
No description provided by the author
ContractVerifier which verify contract method whether blocked.
No description provided by the author
No description provided by the author
ExecutionResult represents what's returned from a transition.
GasInfo returns the gas limit, gas consumed and gas refunded from the EVM transition execution.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Indexer does a post-processing job for equally sized sections of the canonical chain (like BlooomBits and CHT structures).
No description provided by the author
ManageContractBlockedListProposal - structure for the proposal to add or delete a contract address from blocked list.
No description provided by the author
ManageContractDeploymentWhitelistProposal - structure for the proposal to add or delete deployer addresses from whitelist.
ManageContractMethodBlockedListProposal - structure for the proposal to add or delete a contract method from blocked list.
No description provided by the author
MsgEthereumTx encapsulates an Ethereum transaction as an SDK message.
NoOpTracer is an empty implementation of vm.Tracer interface.
Account indicates the overriding fields of account during the execution of a message call.
Params defines the EVM module parameters.
QueryBloomFilter is response type for tx logs query.
QueryETHLogs is response type for tx logs query.
QueryAccount is response type for querying Ethereum state objects.
QueryResBalance is response type for balance query.
QueryResBlockNumber is response type for block number query.
QueryResCode is response type for code query.
QueryResNonce is response type for Nonce query.
QueryResStorage is response type for storage query.
QueryResStorage is response type for storage query.
ResultData represents the data returned in an sdk.Result.
State represents a single Storage key value pair item.
StateTransition defines data to transitionDB in evm.
StructLogRes stores a structured log emitted by the EVM while replaying a transaction in debug mode.
No description provided by the author
TraceExecutionResult groups all structured logs emitted by the EVM while replaying a transaction in debug mode as well as transaction execution status, the amount of gas used and the return value.
TransactionLogs define the logs generated from a transaction execution with a given hash.
TxData implements the Ethereum transaction data structure.
# Interfaces
AccountKeeper defines the expected account keeper interface.
No description provided by the author
No description provided by the author
EvmHooks event hooks for evm tx processing.
EvmLogHandler defines the interface for evm log handler.
No description provided by the author
StakingKeeper for validator verify.
StateObject interface for interacting with state object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
AddressList is the type alias for []sdk.AccAddress.
BlockedContractList is the list of contract which method or all-method is blocked.
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
ContractMethods is the list of blocked contract method.
No description provided by the author
No description provided by the author
No description provided by the author
StateOverride is the collection of overridden accounts.
Storage represents the account Storage map as a slice of single key value State pairs.
Unmarshaler is a generic type for Unmarshal functions.