增加polygon相关配置

This commit is contained in:
cebgcontract 2022-08-08 10:37:25 +08:00
parent 19e4114c80
commit fd852c9998

View File

@ -80,6 +80,24 @@ module.exports = {
// network_id: 2111, // This network is yours, in the cloud. // network_id: 2111, // This network is yours, in the cloud.
// production: true // Treats this network as if it was a public net. (default: false) // production: true // Treats this network as if it was a public net. (default: false)
// } // }
polygon_testnet: {
provider: () => new HDWalletProvider(kccTestnetKey, `https://matic-mumbai.chainstacklabs.com`),
network_id: 80001,
confirmations: 6,
timeoutBlocks: 5000,
skipDryRun: true,
production: true,
from: '0x50A8e60041A206AcaA5F844a1104896224be6F39'
},
polygon: {
provider: () => new HDWalletProvider(mnemonic, `https://polygon-rpc.com`),
network_id: 137,
confirmations: 6,
timeoutBlocks: 5000,
skipDryRun: true,
production: true,
from: '0x565edA4ef351EB78F03B8AfCb6dCF02E29cAD62e'
},
kcc_testnet: { kcc_testnet: {
provider: () => new HDWalletProvider(kccTestnetKey, `https://rpc-testnet.kcc.network`), provider: () => new HDWalletProvider(kccTestnetKey, `https://rpc-testnet.kcc.network`),
network_id: 322, network_id: 322,