PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-rbtc/src/lib
Просмотр файла: resources.ts
import { coins, EthereumNetwork } from '@bitgo/statics';
import EthereumCommon from '@ethereumjs/common';
/**
* A Common object defining the chain and the hardfork for RSK Testnet
*/
export const testnetCommon = EthereumCommon.forCustomChain(
'ropsten',
{
name: 'testnet',
networkId: (coins.get('trbtc').network as EthereumNetwork).chainId,
chainId: (coins.get('trbtc').network as EthereumNetwork).chainId,
},
'petersburg'
);
/**
* A Common object defining the chain and the hardfork for RSK Mainnet
*/
export const mainnetCommon = EthereumCommon.forCustomChain(
'mainnet',
{
name: 'mainnet',
networkId: (coins.get('rbtc').network as EthereumNetwork).chainId,
chainId: (coins.get('rbtc').network as EthereumNetwork).chainId,
},
'petersburg'
);
Выполнить команду
Для локальной разработки. Не используйте в интернете!