add arbitrum one cfg

This commit is contained in:
yuexin 2023-06-20 19:10:22 +08:00
parent 8ba5cd5e3d
commit 8f488e9f8b
3 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@ node_modules
.vscode/
contract_whole
openzeppelin
.key
.addr

View File

@ -18,6 +18,7 @@
"deploy:release:arbitrum_testnet": "DEPLOY_ENV=release truffle migrate --network arbitrum_testnet --compile-none",
"update:nft_setting": "npx truffle exec --network arbitrum_testnet ./init_scripts/update_nft_setting.js",
"mint_presale:dev": "npx truffle exec --network development ./init_scripts/generate_presalebox.js",
"gacha_deploy:one": "npx truffle exec --network arbitrum_one ./init_scripts/8_deploy_claim_activity.js",
"size": "truffle run contract-size"
},
"author": "",

View File

@ -29,6 +29,10 @@ const mnemonic = fs.readFileSync(".secret").toString().trim();
// web3.eth.defaultAccount = '0x50A8e60041A206AcaA5F844a1104896224be6F39'
const kccTestnetKey =
"d9ed33809372932059c1ba7b336a33f406b4c55e7430daef8297134c67429d60";
const arbOneKey = fs.readFileSync(".key").toString().trim();
const arbOneAddr = fs.readFileSync(".addr").toString().trim();
module.exports = {
plugins: [
"truffle-plugin-stdjsonin",
@ -137,6 +141,24 @@ module.exports = {
disableConfirmationListener: true,
from: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
},
arbitrum_one: {
provider: () =>
new HDWalletProvider({
privateKeys: [arbOneKey],
// providerOrUrl: `https://arbitrum-goerli.public.blastapi.io`,
providerOrUrl: "https://arbitrum-one.public.blastapi.io",
pollingInterval: 8000,
}),
network_id: 42161,
confirmations: 6,
timeoutBlocks: 5000,
networkCheckTimeout: 10000000,
deploymentPollingInterval: 8000,
skipDryRun: true,
production: true,
disableConfirmationListener: true,
from: arbOneAddr,
},
kcc_testnet: {
provider: () =>
new HDWalletProvider(kccTestnetKey, `https://rpc-testnet.kcc.network`),