-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EPROD-1030 deploy BTC ERC20 on BTC bridge deploy (#168)
- Loading branch information
Showing
24 changed files
with
715 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Deployer account | ||
PRIVATE_KEY= | ||
PRIVATE_KEY="ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"options": { | ||
"parser": "typescript" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,54 @@ | ||
|
||
import { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
import "@nomicfoundation/hardhat-foundry"; | ||
import "@openzeppelin/hardhat-upgrades"; | ||
import { HardhatUserConfig } from 'hardhat/config'; | ||
import '@nomicfoundation/hardhat-toolbox'; | ||
import '@nomicfoundation/hardhat-foundry'; | ||
import '@openzeppelin/hardhat-upgrades'; | ||
import * as dotenv from 'dotenv'; | ||
dotenv.config(); | ||
|
||
|
||
/// Tasks that are used to interact with the BFT contract | ||
import "./tasks/deploy-bft"; | ||
import "./tasks/fee-charge-address"; | ||
import "./tasks/deploy-fee-charge"; | ||
import "./tasks/deploy-wrapped-token-deployer"; | ||
import "./tasks/upgrade-bft"; | ||
import "./tasks/pause-unpause"; | ||
|
||
import './tasks/deploy-bft'; | ||
import './tasks/fee-charge-address'; | ||
import './tasks/deploy-fee-charge'; | ||
import './tasks/deploy-wrapped-token'; | ||
import './tasks/deploy-wrapped-token-deployer'; | ||
import './tasks/upgrade-bft'; | ||
import './tasks/pause-unpause'; | ||
|
||
const MAINNET_URL = "https://mainnet.bitfinity.network" | ||
const MAINNET_URL = 'https://mainnet.bitfinity.network'; | ||
|
||
const TESTNET_URL = "https://testnet.bitfinity.network" | ||
|
||
const DEPLOYER_PRIVATE_KEY = process.env.PRIVATE_KEY || ""; | ||
const TESTNET_URL = 'https://testnet.bitfinity.network'; | ||
|
||
const DEPLOYER_PRIVATE_KEY = process.env.PRIVATE_KEY || ''; | ||
|
||
const config: HardhatUserConfig = { | ||
networks: { | ||
localhost: { | ||
url: "http://127.0.0.1:8545", | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`] | ||
url: 'http://127.0.0.1:8545', | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`], | ||
}, | ||
mainnet: { | ||
url: MAINNET_URL, | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`] | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`], | ||
}, | ||
testnet: { | ||
url: TESTNET_URL, | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`] | ||
} | ||
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`], | ||
}, | ||
}, | ||
solidity: { | ||
version: '0.8.25', | ||
settings: { | ||
optimizer: { | ||
enabled: true, | ||
runs: 200 | ||
runs: 200, | ||
}, | ||
outputSelection: { | ||
'*': { | ||
'*': ['storageLayout'], | ||
}, | ||
}, | ||
} | ||
} | ||
} | ||
|
||
|
||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.