package
3.0.0+incompatible
Repository: https://github.com/nebulasio/go-nebulas.git
Documentation: pkg.go.dev
# README
core
Core blockchain data structures, logical codes are all located in this directory.
# Functions
AcceptAvailableAtHeight ..
AcceptTransaction in a tx world state.
AddressParse parse address string.
AddressParseFromBytes parse address from bytes.
CheckContract check if contract is valid.
CheckContractArgs check contract args.
CheckGenesisBlock if a block is a genesis block.
CheckGenesisConfByDB check mem and genesis.conf if equal return nil.
CheckGenesisTransaction if a tx is a genesis transaction.
CheckTransaction in a tx world state.
DateAvailableAtHeight ..
DumpGenesis return the configuration of the genesis block in the storage.
EnableInnerContractAtHeight ..
FindLastNearestLibVersion ..
GetMaxV8JSLibVersionAtHeight ..
GetNearestInstructionCounterVersionAtHeight ..
GetTransaction from txs Trie.
HashPbBlock return the hash of pb block.
IsCompatibleStack return if compatible stack.
LoadBinaryPayload from bytes.
LoadBlockFromStorage return a block from storage.
LoadCallPayload from bytes.
LoadDeployPayload from bytes.
LoadDipPayload from bytes.
LoadGenesisConf load genesis conf for file.
LoadPodPayload from bytes.
LoadProtocolPayload from bytes.
MockBlock nf/nvm/engine.CheckV8Run() & cmd/v8/main.go.
MockGenesisConf return mock genesis conf.
NbreAvailableHeight ..
NbreSplitAtHeight ..
NewAccess returns the Access.
NewAddressFromPublicKey return new address from publickey bytes.
NewBinaryPayload with data.
NewBlock return new block.
NewBlockChain create new #BlockChain instance.
NewBlockPool return new #BlockPool instance.
NewCallPayload with function & args.
NewCompatibilityLocal ..
NewCompatibilityMainNet ..
NewCompatibilityTestNet ..
NewContractAddressFromData return new contract address from bytes.
NewDeployPayload with source & args.
NewDipPayload with data.
NewEventEmitter return new EventEmitter.
NewEventSubscriber returns an EventSubscriber.
NewGenesisBlock create genesis @Block from file.
NewMockNeb create mock neb for unit testing.
NewNvmExeTimeoutConsumeGasAtHeight ..
NewPodPayload with data.
NewProtocolPayload with data.
NewTransaction create #Transaction instance.
NewTransactionPool create a new TransactionPool.
NodeAccessContract ..
NodeGovernanceContract ..
NodePodContract ..
NodeStartSerial ..
NodeUpdateAtHeight ..
Nrc20SecurityCheckAtHeight ..
NvmExeTimeoutAtHeight ..
NvmGasLimitWithoutTimeoutAtHeight ..
NvmMemoryLimitWithoutInjectAtHeight ..
NvmValueCheckUpdateHeight ..
RandomAvailableAtHeight ..
RecordCallContractResultAtHeight ..
RecoverSignerFromSignature return address who signs the signature.
SetCompatibilityOptions set compatibility height according to chain_id.
TransferFromContractEventRecordableAtHeight ..
TransferFromContractFailureEventRecordableAtHeight ..
TransferFromContractFailureEventRecordableAtHeight2 ..
V8BlockSeedAvailableAtHeight ..
V8JSLibVersionControlAtHeight ..
VerifyExecution transaction and return result.
WsResetRecordDependencyAtHeight ..
WsResetRecordDependencyAtHeight2 ..
# Constants
No description provided by the author
Access contract functions.
address type enum.
AddressBase58Length length of base58(Address.address).
AddressChecksumLength the checksum of address in byte.
AddressDataEnd the end of the address data.
AddressDataLength the length of data of address in byte.
AddressLength the length of address in byte.
AddressPaddingIndex the index of headpadding bytes.
AddressPaddingLength the length of headpadding in byte.
AddressTypeIndex the index of address type bytes.
AddressTypeLength the length of address type in byte.
No description provided by the author
No description provided by the author
ChunkSize is the size of blocks in a chunk.
Const.
address type enum.
DefaultV8JSLibVersion default version.
EagleNebula chain id for 1.x.
InnerTransactionNonce inner tx nonce.
LIB (latest irreversible block) in storage.
MainNetID mainnet id.
MessageType.
MessageType.
MessageType.
MessageType.
const.
constants.
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
const.
PoD Consensus contract functions.
PoD Consensus contract functions.
PoD Consensus contract functions.
PoD Consensus contract functions.
PoD Consensus contract functions.
PoD Consensus contract functions.
PoD Consensus contract functions.
PublicKeyDataLength length of public key.
Const.
Const.
Tail Key in storage.
TestNetID testnet id.
TopicDropTransaction drop tx (1): smaller nonce (2) expire txLifeTime.
TopicInnerTransferContract inner transfer.
TopicLibBlock the topic of latest irreversible block.
TopicNewTailBlock the topic of new tail block set.
TopicPendingTransaction the topic of pending a transaction in transaction_pool.
TopicPodStateUpdate update pod state.
TopicRevertBlock the topic of revert block.
TopicTransactionExecutionResult the topic of transaction execution result.
TopicTransferFromContract transfer from contract.
transaction's block height.
TxExecutionFailed failed status for transaction execute result.
TxExecutionPendding pendding status when transaction in transaction pool.
TxExecutionSuccess success status for transaction execute result.
TxHashByteLength invalid tx hash length(len of []byte).
Payload Types.
Payload Types.
Payload Types.
Payload Types.
Payload Types.
Payload Types.
UndefinedAddressType undefined.
# Variables
BlockHashLength define a const of the length of Hash of Block in byte.
BlockReward given to coinbase rule: 3% per year, 3,000,000.
BlockRewardV2 given to coinbase after nbre available rule: 2% per year, 2,000,000.
BlockRewardV3 given to coinbase rule: 2.5% per year, 3,000,000.
DefaultLimitsOfTotalMemorySize default limits of total memory size.
Default gas count.
NebulasRewardAddress Nebulas Council Recycling address.
DIPRewardV2 given to dip project address rule: 1% per year, 1,000,000.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
nvm error.
func deprecated.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
multi nvm error.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
ErrInvalidJSLibVersion ..
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
Error Types.
access control.
Error Types.
Error Types.
Error Types.
GasCountPerByte per byte of data attached to a transaction gas cost.
Genesis Block Hash.
GenesisGasPrice default gasPrice : 1*10**6.
Genesis Block Hash.
Genesis Block Hash.
GovernanceReward given to governance contract rule: 0.5% per year, 3,000,000.
No description provided by the author
MaxDataBinPayloadLength Max data length in binary transaction.
MaxDataPayLoadLength Max data length in transaction.
MaxEventErrLength Max error length in event.
MaxResultLength max execution result length.
MinGasCountPerTransaction default gas for normal transaction.
No description provided by the author
NebCompatibility ..
NebulasRewardAddress Nebulas Council Recycling address.
NebulasRewardAddress Nebulas Council Recycling address.
NebulasRewardV2 given to nebulas project address rule: 1% per year, 1,000,000.
ParallelNum num.
PublicFuncNameChecker in smart contract.
No description provided by the author
TransactionGasPrice default gasPrice : 2*10**10.
TransactionMaxGas max gas:50 * 10 ** 9.
TransactionMaxGasPrice max gasPrice:1 * 10 ** 12.
NOTE: versions should be arranged in ascending order map[libname][versions].
VerifyExecutionTimeout 0 means unlimited.
runtime.NumCPU() * 2.
# Structs
No description provided by the author
Address design of nebulas address
[Account Address]
Similar to Bitcoin and Ethereum, Nebulas also adopts elliptic curve algorithm as its basic encryption algorithm for Nebulas accounts.
BinaryPayload carry some data.
Block structure.
BlockChain the BlockChain core type.
BlockHeader of a block.
BlockPool a pool of all received blocks from network.
CallPayload carry function call information.
CompatibilityLocal ..
CompatibilityMainNet ..
CompatibilityTestNet ..
DeployPayload carry contract deploy information.
DipPayload carry ir data.
EventEmitter provide event functionality for Nebulas.
EventSubscriber subscriber object.
No description provided by the author
No description provided by the author
No description provided by the author
PodPayload carry pod data.
ProtocolPayload carry ir data.
No description provided by the author
SimulateResult the result of simulating transaction execution.
No description provided by the author
Transaction type is used to handle all transaction data.
TransactionEvent transaction event.
TransactionEventV2 add execution result.
TransactionPool cache txs, is thread safe.
V8JSLibVersionHeightMap key is version in string format, value is height.
# Interfaces
AccountManager interface of account mananger.
Compatibility ..
Consensus interface of consensus algorithm.
No description provided by the author
No description provided by the author
Nbre interface.
Neblet interface breaks cycle import dependency and hides unused services.
No description provided by the author
NVM interface.
SmartContractEngine interface.
SyncService interface of sync service.
TxPayload stored in tx.
WorldState needed by core.
# Type aliases
AddressType address type.
ContractTxFrom tx from.
ContractTxNonce tx nonce.
Transactions is an alias of Transaction array.