Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CELO_ALFAJORES_TEST_ENDPOINT=https://alfajores-forno.celo-testnet.org
OASIS_EMERALD_TEST_ENDPOINT=https://testnet.emerald.oasis.dev
MOONBASE_ALPHA_TEST_ENDPOINT=https://rpc.api.moonbase.moonbeam.network
REI_TEST_ENDPOINT=https://rpc-testnet.rei.network/
MANDALA_TEST_ENDPOINT=https://tc7-eth.aca-dev.network

ETH_MAINNET_ENDPOINT=https://mainnet.infura.io/v3/INFURA-PROJECT-ID
BSC_ENDPOINT=https://bsc-dataseed.binance.org
Expand Down
5 changes: 4 additions & 1 deletion deploy/core/001_bridge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as dotenv from 'dotenv';
import { BigNumber } from 'ethers';
import { DeployFunction } from 'hardhat-deploy/types';
import { HardhatRuntimeEnvironment } from 'hardhat/types';

Expand All @@ -11,7 +12,9 @@ const deployFunc: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

await deploy('Bridge', {
from: deployer,
log: true
log: true,
gasLimit: BigNumber.from('42032000'), // Mandala
gasPrice: BigNumber.from('200786445289'), // Mandala
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are temporary and only for deployment. Should not be required on Karura or Acala main nets.

});
};

Expand Down
7 changes: 7 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const moonbaseAlphaTestPrivateKey = process.env.MOONBASE_ALPHA_TEST_PRIVATE_KEY
const reiTestEndpoint = process.env.REI_TEST_ENDPOINT || DEFAULT_ENDPOINT;
const reiTestPrivateKey = process.env.REI_TEST_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;

const mandalaTestEndpoint = process.env.MANDALA_TEST_ENDPOINT || DEFAULT_ENDPOINT;
const mandalaTestPrivateKey = process.env.MANDALA_TEST_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;

// Mainnets
const ethMainnetEndpoint = process.env.ETH_MAINNET_ENDPOINT || DEFAULT_ENDPOINT;
const ethMainnetPrivateKey = process.env.ETH_MAINNET_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;
Expand Down Expand Up @@ -154,6 +157,10 @@ const config: HardhatUserConfig = {
url: reiTestEndpoint,
accounts: [`0x${reiTestPrivateKey}`]
},
mandalaTest: {
url: mandalaTestEndpoint,
accounts: [`0x${mandalaTestPrivateKey}`]
},
ethMainnet: {
url: ethMainnetEndpoint,
accounts: [`0x${ethMainnetPrivateKey}`]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/contracts": "^4.2.0",
"@openzeppelin/contracts": "^4.4.2",
"@typechain/ethers-v5": "^7.0.1",
"@typechain/hardhat": "^2.3.1",
"@types/chai": "^4.2.21",
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,10 @@
"@types/sinon-chai" "^3.2.3"
"@types/web3" "1.0.19"

"@openzeppelin/contracts@^4.2.0":
version "4.2.0"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.2.0.tgz#260d921d99356e48013d9d760caaa6cea35dc642"
integrity sha512-LD4NnkKpHHSMo5z9MvFsG4g1xxZUDqV3A3Futu3nvyfs4wPwXxqOgMaxOoa2PeyGL2VNeSlbxT54enbQzGcgJQ==
"@openzeppelin/contracts@^4.4.2":
version "4.4.2"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.4.2.tgz#4e889c9c66e736f7de189a53f8ba5b8d789425c2"
integrity sha512-NyJV7sJgoGYqbtNUWgzzOGW4T6rR19FmX1IJgXGdapGPWsuMelGJn9h03nos0iqfforCbCB0iYIR0MtIuIFLLw==

"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
version "1.1.2"
Expand Down Expand Up @@ -1804,11 +1804,11 @@ aws4@^1.8.0:
integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==

axios@^0.21.1:
version "0.21.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8"
integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==
version "0.21.4"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
dependencies:
follow-redirects "^1.10.0"
follow-redirects "^1.14.0"

babel-code-frame@^6.26.0:
version "6.26.0"
Expand Down Expand Up @@ -4581,10 +4581,10 @@ fmix@^0.1.0:
dependencies:
imul "^1.0.0"

follow-redirects@^1.10.0, follow-redirects@^1.12.1:
version "1.14.1"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.1.tgz#d9114ded0a1cfdd334e164e6662ad02bfd91ff43"
integrity sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg==
follow-redirects@^1.12.1, follow-redirects@^1.14.0:
version "1.14.7"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685"
integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==

for-each@^0.3.3, for-each@~0.3.3:
version "0.3.3"
Expand Down