Skip to content

Latest commit

 

History

History
290 lines (229 loc) · 7.97 KB

CONST.md

File metadata and controls

290 lines (229 loc) · 7.97 KB

Constants

WORD_BYTES : number
WORD_CHARS : number
UINT_BOUND : BigInt
MAX_UINT : BigInt
MIN_GAS_PRICE : number

Min gas price for transaction

TRANSACTION_GAS : number

Gas use for pure transfer transaction

TRANSACTION_STORAGE_LIMIT : number

Storage limit for pure transfer transaction

MAINNET_ID : number

Mainnet chainId

TESTNET_ID : number

Testnet chainId

ZERO_ADDRESS_HEX : string

Zero address

ZERO_HASH : string
KECCAK_EMPTY : string

KECCAK (i.e. Keccak) hash of the empty bytes string.

EPOCH_NUMBER : enum

Enum for epochNumber tag

Kind: global enum
Read only: true
Properties

Name Type Default
LATEST_MINED string "latest_mined"
LATEST_STATE string "latest_state"
LATEST_FINALIZED string "latest_finalized"
LATEST_CONFIRMED string "latest_confirmed"
LATEST_CHECKPOINT string "latest_checkpoint"
EARLIEST string "earliest"

PENDING_TX_STATUS : enum

Pending transaction status

Kind: global enum
Read only: true
Properties

Name Type Default
FUTURE_NONCE string "futureNonce"
NOT_ENOUGH_CASH string "notEnoughCash"

ACTION_TYPES : enum

Enum for trace action types

Kind: global enum
Read only: true
Properties

Name Type Default
CALL string "call"
CREATE string "create"
CALL_RESULT string "call_result"
CREATE_RESULT string "create_result"
INTERNAL_TRANSFER_ACTION string "internal_transfer_action"

POCKET_ENUM : enum

Enum for trace pocket types

Kind: global enum
Read only: true
Properties

Name Type Default
BALANCE string "balance"
STAKING_BALANCE string "staking_balance"
STORAGE_COLLATERAL string "storage_collateral"
SPONSOR_BALANCE_FOR_GAS string "sponsor_balance_for_gas"
SPONSOR_BALANCE_FOR_COLLATERAL string "sponsor_balance_for_collateral"
MINT_BURN string "mint_burn"
GAS_PAYMENT string "gas_payment"

CALL_TYPES : enum

Enum for trace call types

Kind: global enum
Read only: true
Properties

Name Type Default
NONE string "none"
CALL string "call"
CALL_CODE string "callcode"
DELEGATE_CALL string "delegatecall"
STATIC_CALL string "staticcall"

CREATE_TYPES : enum

Enum for trace create types

Kind: global enum
Read only: true
Properties

Name Type Default
NONE string "none"
CREATE string "create"
CREATE2 string "create2"

SPACE_ENUM : enum

Enum for space type

Kind: global enum
Read only: true
Properties

Name Type Default
NONE string "none"
NATIVE string "native"
EVM string "evm"

CALL_STATUS : enum

Enum for trace call status

Kind: global enum
Read only: true
Properties

Name Type Default
SUCCESS string "success"
REVERTED string "reverted"
FAIL string "fail"

TX_STATUS : enum

Enum for transaction.status and receipt.outcomeStatus

Kind: global enum
Read only: true
Properties

Name Type Default
UNEXECUTE number
SUCCESS number 0
FAIL number 1
SKIP number 2

ADDRESS_TYPES : enum

Enum for address types

Kind: global enum
Read only: true
Properties

Name Type Default
USER string "user"
CONTRACT string "contract"
BUILTIN string "builtin"
NULL string "null"

WORD_BYTES : number

Kind: global constant

WORD_CHARS : number

Kind: global constant

UINT_BOUND : BigInt

Kind: global constant

MAX_UINT : BigInt

Kind: global constant

MIN_GAS_PRICE : number

Min gas price for transaction

Kind: global constant
Example

> CONST.MIN_GAS_PRICE
 1000000000

TRANSACTION_GAS : number

Gas use for pure transfer transaction

Kind: global constant
Example

> CONST.TRANSACTION_GAS
 21000

TRANSACTION_STORAGE_LIMIT : number

Storage limit for pure transfer transaction

Kind: global constant
Example

> CONST.TRANSACTION_STORAGE_LIMIT
 0

MAINNET_ID : number

Mainnet chainId

Kind: global constant
Example

> CONST.MAINNET_ID
 1029

TESTNET_ID : number

Testnet chainId

Kind: global constant
Example

> CONST.TESTNET_ID
 1

ZERO_ADDRESS_HEX : string

Zero address

Kind: global constant
Example

> ZERO_ADDRESS
 0x0000000000000000000000000000000000000000

ZERO_HASH : string

Kind: global constant

KECCAK_EMPTY : string

KECCAK (i.e. Keccak) hash of the empty bytes string.

Kind: global constant