Package Exports
- dkg-evm-module
- dkg-evm-module/index.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dkg-evm-module) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DKG evm module
Commands
Installation
npm install
Compile
npm run compile
Run tests
Run all tests
npm run test
Run specific test file
npm run test test/filename.test.ts
Run tests with gas report
npm run test:gas
Run tests with trace flag
npm run test:trace
Run local network
npm run dev
Deploy contracts on parachains
Update environment use OTP_DEVNET/OTP_TESTNET/OTP_MAINNET
RPC_OTP_DEVNET='<https_endpoint>'
EVM_PRIVATE_KEY_OTP_DEVNET='<0x_ethereum_private_key>'
ACCOUNT_WITH_OTP_URI_OTP_DEVNET='<substrate_account_uri>'
Devnet deployment command
npm run deploy:otp_devnet
Testnet deployment command
npm run deploy:otp_testnet
Mainnet deployment command
npm run deploy:otp_mainnet
Redeploy contract on parachain
To redeploy desired contract, set deployed
to false
in deployments/network_contracts.json
.