From fd852c99988de521dfc8e200f01c182b280e476a Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Mon, 8 Aug 2022 10:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0polygon=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- truffle-config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/truffle-config.js b/truffle-config.js index 06aa901..9d552b4 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -80,6 +80,24 @@ module.exports = { // network_id: 2111, // This network is yours, in the cloud. // 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: { provider: () => new HDWalletProvider(kccTestnetKey, `https://rpc-testnet.kcc.network`), network_id: 322,