package
4.2.0+incompatible
Repository: https://github.com/intfoundation/intchain.git
Documentation: pkg.go.dev

# Packages

Provides support for dealing with EVM assembly instructions (e.g., disassembling them).
Package bloombits implements bloom filtering on batches of data.
No description provided by the author
Package rawdb contains a collection of low level database accessors.
Package state provides a caching layer atop the INT Chain state trie.
Package types contains data types related to INT Chain consensus.
Package vm implements the Ethereum Virtual Machine.

# Functions

ApplyMessage computes the new state by applying the given message against the old state within the environment.
ApplyMessage computes the new state by applying the given message against the old state within the environment.
Consider moving the apply logic to each op (how to avoid import circular reference?).
ApplyTransaction attempts to apply a transaction to the given state database and uses the input parameters for its environment.
ApplyTransactionEx attempts to apply a transaction to the given state database and uses the input parameters for its environment.
CalcGasLimit computes the gas limit of the next block after parent.
CanTransfer checks whether there are enough funds in the address' account to make a transfer.
No description provided by the author
CreatePendingChildChainData create the pending child chain data with index.
DefaultGenesisBlock returns the Ethereum main net genesis block.
DefaultGenesisBlock returns the INT Chain main net genesis block.
DefaultTestnetGenesisBlock returns the Ropsten network genesis block.
DeletePendingChildChainData delete the pending child chain data from db with chain id.
GenerateChain creates a chain of n blocks.
GenesisBlockForTesting creates and writes a block in which addr has the given wei balance.
No description provided by the author
No description provided by the author
GetChildChainForLaunch get the child chain for pending db for launch.
No description provided by the author
GetHashFn returns a GetHashFunc which retrieves header hashes by number.
No description provided by the author
No description provided by the author
GetPendingChildChainData get the pending child chain data from db with key pending chain.
No description provided by the author
IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
LoadChainGenesis load the genesis file for child chain.
NewBlockChain returns a fully initialised block chain using information available in the database.
NewBlockValidator returns a new block validator which is safe for re-use.
NewChainIndexer creates a new chain indexer to do background processing on chain segments of a given size after certain number of confirmations passed.
NewEVMContext creates a new context for use in the EVM.
NewHeaderChain creates a new HeaderChain structure.
NewStateProcessor initialises a new StateProcessor.
NewStateTransition initialises and returns a new state transition object.
NewTxPool creates a new transaction pool to gather, sort and filter inbound transactions from the network.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SaveChainGenesis save the genesis file for child chain.
No description provided by the author
No description provided by the author
SetReceiptsData computes all the non-consensus fields of the receipts.
SetupGenesisBlock writes or updates the genesis block in db.
No description provided by the author
SetupGenesisBlock writes or updates the genesis block in db.
Transfer subtracts amount from sender and adds amount to recipient using the given Db.
UpdatePendingChildChainData update the pending child chain data without index.
WriteGenesisBlock writes the genesis block to the database as block number 0.

# Constants

BlockChainVersion ensures that an incompatible database forces a resync from scratch.
No description provided by the author
No description provided by the author
100,000 * e18.
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

# Variables

BadHashes represent a set of manually tracked bad hashes (usually hard forks).
No description provided by the author
No description provided by the author
DefaultTxPoolConfig contains the default configurations for the transaction pool.
ErrAlreadyCandidate is returned if the request address has become candidate already.
ErrBlacklistedHash is returned if a block to import is on the blacklist.
Delegation Error ErrCancelSelfDelegate is returned if the cancel delegate apply to the self address.
ErrCannotCandidate is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCannotDelegate is returned if the request address does not have deposit balance in Annual/SemiAnnual Supernode.
ErrCannotUnbond is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCannotUnRegister is returned if the request address belongs to Annual/SemiAnnual Supernode.
ErrCommission is returned if the request Commission value not between 0 and 100.
ErrDelegateAmount is returned if the delegate amount less than 0.
ErrExceedDelegationAddressLimit is returned if delegated address number exceed the limit.
No description provided by the author
ErrGasLimit is returned if a transaction's requested gas limit exceeds the maximum allowance of the current block.
ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.
ErrInsufficientFunds is returned if the total cost of executing a transaction is higher than the balance of the user's account.
ErrInsufficientProxiedBalance is returned if the cancellation amount of executing a transaction is higher than the proxied balance of the user's account.
ErrIntrinsicGas is returned if the transaction is specified to use less gas than required to start the invocation.
No description provided by the author
ErrInvalidSender is returned if the transaction contains an invalid signature.
ErrInvalidTx4 is returned if the tx4 has been checked during execution.
ErrKnownBlock is returned when a block to import is already known locally.
No description provided by the author
ErrMinimumRegisterAmount is returned if the request security deposit less than the minimum value.
ErrNegativeValue is a sanity error to ensure noone is able to specify a transaction with a negative value.
No description provided by the author
ErrNonceTooHigh is returned if the nonce of a transaction is higher than the next one expected based on the local chain.
ErrNonceTooLow is returned if the nonce of a transaction is lower than the one present in the local chain.
ErrNotAllowedInChildChain is returned if the transaction with child flag = false be sent to child chain.
ErrNotAllowedInMainChain is returned if the transaction with main flag = false be sent to main chain.
ErrNotCandidate is returned if the request address is not a candidate.
ErrNotOwner is returned if the Address not owner.
ErrOversizedData is returned if the input data of a transaction is greater than some meaningful limit a user might use.
ErrReplaceUnderpriced is returned if a transaction is attempted to be replaced with a different one without the required price bump.
ErrUnderpriced is returned if a transaction's gas price is below the minimum configured for the transaction pool.
ErrVoteAmountTooHight is returned if the vote amount greater than proxied amount + self amount.
Vote Error ErrVoteAmountTooLow is returned if the vote amount less than proxied delegation amount.
No description provided by the author

# Structs

BadBlockArgs represents the entries in the list returned when bad blocks are queried.
BlockChain represents the canonical chain given a database with a genesis block.
BlockGen creates blocks for testing.
BlockValidator is responsible for validating block headers, uncles and processed state.
CacheConfig contains the configuration values for the trie caching/pruning that's resident in a blockchain.
No description provided by the author
No description provided by the author
ChainIndexer does a post-processing job for equally sized sections of the canonical chain (like BlooomBits and CHT structures).
No description provided by the author
No description provided by the author
No description provided by the author
Create Child Chain Event.
ExecutionResult includes all output after executing given evm message no matter the execution itself is successful or not.
Genesis specifies the header fields, state of a genesis block.
GenesisAccount is an account in the state of the genesis block.
GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.
HeaderChain implements the basic block header chain logic that is shared by core.BlockChain and light.LightChain.
No description provided by the author
NewMinedBlockEvent is posted when a block has been imported.
PendingLogsEvent is posted pre mining and notifies of pending logs.
PendingStateEvent is posted pre mining and notifies of pending state changes.
RemovedLogsEvent is posted when a reorg happens.
RemovedTransactionEvent is posted when a reorg happens.
Start Mining Event.
StateProcessor is a basic Processor, which takes care of transitioning state from one point to another.
The State Transitioning Model A state transition is a change made when a transaction is applied to the current world state The state transitioning model does all all the necessary work to work out a valid new state root.
Stop Mining Event.
Tx3ProofDataEvent is posted when a tx3ProofData enters.
TxPool contains all currently known transactions.
TxPoolConfig are the configuration parameters of the transaction pool.
TxPreEvent is posted when a transaction enters the transaction pool.

# Interfaces

ChainContext supports retrieving headers and consensus parameters from the current blockchain to be used during transaction processing.
ChainIndexerBackend defines the methods needed to process chain segments in the background and write the segment results into the database.
ChainIndexerChain interface is used for connecting the indexer to a blockchain.
No description provided by the author
Message represents a message sent to a contract.
Processor is an interface for processing blocks using a given initial state.
No description provided by the author
Validator is an interface which defines the standard for block validation.

# Type aliases

No description provided by the author
CrossChain Callback.
DeleteCallback is a callback function that is called by SetHead before each header is deleted.
No description provided by the author
GasPool tracks the amount of gas available during execution of the transactions in a block.
GenesisAlloc specifies the initial state that is part of the genesis block.
No description provided by the author
Non-CrossChain Callback.
TxStatus is the current status of a transaction as seen by the pool.
WhCallback is a callback function for inserting individual headers.
WriteStatus status of write.