PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@vechain/sdk-core/src/utils/const
Просмотр файла: network.ts
/**
* Constant defining VeChain mainnet chain tag. The chain tag is the last byte of the genesis block ID
*/
const VECHAIN_MAINNET_CHAIN_TAG = 0x4a;
/**
* Constant defining VeChain testnet chain tag. The chain tag is the last byte of the genesis block ID
*/
const VECHAIN_TESTNET_CHAIN_TAG = 0x27;
/**
* Constant defining VeChain testnet chain tag. The chain tag is the last byte of the genesis block ID
*/
const VECHAIN_SOLO_CHAIN_TAG = 0xf6;
/**
* Constant representing the zero address in hexadecimal format
*/
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
/**
* VTHO token address (energy.sol smart contract address)
*/
const VTHO_ADDRESS = '0x0000000000000000000000000000456e65726779';
/**
* Genesis block for VeChain mainnet
*/
const mainnetGenesisBlock = {
number: 0,
id: '0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a',
size: 170,
parentID:
'0xffffffff53616c757465202620526573706563742c20457468657265756d2100',
timestamp: 1530316800,
gasLimit: 10000000,
beneficiary: '0x0000000000000000000000000000000000000000',
gasUsed: 0,
totalScore: 0,
txsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
txsFeatures: 0,
stateRoot:
'0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c',
receiptsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
signer: '0x0000000000000000000000000000000000000000',
isTrunk: true,
transactions: []
};
/**
* Genesis block for VeChain testnet
*/
const testnetGenesisBlock = {
number: 0,
id: '0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127',
size: 170,
parentID:
'0xffffffff00000000000000000000000000000000000000000000000000000000',
timestamp: 1530014400,
gasLimit: 10000000,
beneficiary: '0x0000000000000000000000000000000000000000',
gasUsed: 0,
totalScore: 0,
txsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
txsFeatures: 0,
stateRoot:
'0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb',
receiptsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
signer: '0x0000000000000000000000000000000000000000',
isTrunk: true,
transactions: []
};
/**
* Genesis block for VeChain solo network
*/
const soloGenesisBlock = {
number: 0,
id: '0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6',
size: 170,
parentID:
'0xffffffff00000000000000000000000000000000000000000000000000000000',
timestamp: 1526400000,
gasLimit: 10000000,
beneficiary: '0x0000000000000000000000000000000000000000',
gasUsed: 0,
totalScore: 0,
txsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
txsFeatures: 0,
stateRoot:
'0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550',
receiptsRoot:
'0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',
signer: '0x0000000000000000000000000000000000000000',
isTrunk: true,
transactions: []
};
/**
* Constant defining VeChain mainnet information
*/
const MAINNET_NETWORK = {
genesisBlock: mainnetGenesisBlock,
chainTag: VECHAIN_MAINNET_CHAIN_TAG
};
/**
* Constant defining VeChain testnet information
*/
const TESTNET_NETWORK = {
genesisBlock: testnetGenesisBlock,
chainTag: VECHAIN_TESTNET_CHAIN_TAG
};
/**
* Constant defining VeChain solo network information
*/
const SOLO_NETWORK = {
genesisBlock: soloGenesisBlock,
chainTag: VECHAIN_SOLO_CHAIN_TAG
};
/**
* Constant defining VeChain mainnet and testnet network information
*/
const networkInfo = {
mainnet: MAINNET_NETWORK,
testnet: TESTNET_NETWORK,
solo: SOLO_NETWORK
};
export {
networkInfo,
VTHO_ADDRESS,
ZERO_ADDRESS,
MAINNET_NETWORK,
TESTNET_NETWORK,
SOLO_NETWORK
};
Выполнить команду
Для локальной разработки. Не используйте в интернете!