Merge branch 'arbitrum' of git.kingsome.cn:crypto/becrypto into arbitrum

This commit is contained in:
CounterFire2023 2023-06-21 11:15:31 +08:00
commit aa652d3fe3
4 changed files with 32 additions and 1 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

@ -1 +1,7 @@
[polygon]PresaleBox Constract address: 0xcb5ce7F377053AF487Ca5995ec06AD5ED49b9D46
[KCC]
hero √ 0x0EB362BD40F2288fF25A6Ee1b487cB0cb4638e0D
weapon √ 0x29F67A372AC1c6AcF478A564992D421FE20F2cc8
chip √ 0x54B6ED7EDe9355b471985439421Aa1DC7Da6Dc20
Box √ 0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4

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`),