Skip to content

Commit

Permalink
chore(eth-multisig-v4): flr,sgb config
Browse files Browse the repository at this point in the history
Ticket: WIN-4355
  • Loading branch information
yogeshwar-bitgo committed Jan 14, 2025
1 parent 07b84ff commit f6cecb9
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/deploy_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
get-network:
runs-on: ubuntu-latest
needs: [lint-and-test]
Expand Down Expand Up @@ -98,6 +102,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
- name: Update release notes
uses: actions/github-script@v6
with:
Expand Down Expand Up @@ -129,7 +137,7 @@ jobs:
deploy-to-prod:
runs-on: ubuntu-latest
needs: [lint-and-test, get-network]
if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) || (needs.get-network.outputs.network == 'baseeth' ) || (needs.get-network.outputs.network == 'bera' ) || (needs.get-network.outputs.network == 'avaxc' ) || (needs.get-network.outputs.network == 'coredao' ) || (needs.get-network.outputs.network == 'oas' ) }}
if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) || (needs.get-network.outputs.network == 'baseeth' ) || (needs.get-network.outputs.network == 'bera' ) || (needs.get-network.outputs.network == 'avaxc' ) || (needs.get-network.outputs.network == 'coredao' ) || (needs.get-network.outputs.network == 'oas' ) || (needs.get-network.outputs.network == 'flr' ) || (needs.get-network.outputs.network == 'sgb' ) }}
environment: mainnet
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -166,6 +174,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
- name: Update release notes
uses: actions/github-script@v6
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/deploy_batcher_contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
get-network:
runs-on: ubuntu-latest
needs: [lint-and-test]
Expand Down Expand Up @@ -99,6 +103,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
- name: Update release notes
uses: actions/github-script@v7
with:
Expand Down Expand Up @@ -144,6 +152,10 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
- name: Update release notes
uses: actions/github-script@v7
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ jobs:
OAS_EXPLORER_API_KEY: ${{ secrets.OAS_EXPLORER_API_KEY }}
CORE_DAO_TESTNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_TESTNET_EXPLORER_API_KEY }}
CORE_DAO_MAINNET_EXPLORER_API_KEY: ${{ secrets.CORE_DAO_MAINNET_EXPLORER_API_KEY }}
FLARE_TESTNET_EXPLORER_API_KEY: ${{ secrets.FLARE_TESTNET_EXPLORER_API_KEY }}
FLARE_MAINNET_EXPLORER_API_KEY: ${{ secrets.FLARE_MAINNET_EXPLORER_API_KEY }}
SONGBIRD_TESTNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_TESTNET_EXPLORER_API_KEY }}
SONGBIRD_MAINNET_EXPLORER_API_KEY: ${{ secrets.SONGBIRD_MAINNET_EXPLORER_API_KEY }}
- run: npm run lint
79 changes: 77 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ const {
BARTIO_BERA_EXPLORER_API_KEY,
OAS_EXPLORER_API_KEY,
CORE_DAO_TESTNET_EXPLORER_API_KEY,
CORE_DAO_MAINNET_EXPLORER_API_KEY
CORE_DAO_MAINNET_EXPLORER_API_KEY,
FLARE_TESTNET_EXPLORER_API_KEY,
FLARE__MAINNET_EXPLORER_API_KEY,
SONGBIRD_TESTNET_EXPLORER_API_KEY,
SONGBIRD_MAINNET_EXPLORER_API_KEY
} = process.env;

const config: HardhatUserConfig = {
Expand Down Expand Up @@ -169,6 +173,38 @@ const config: HardhatUserConfig = {
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
]
},
tflare: {
url: `https://coston2-api.flare.network/ext/C/rpc`,
accounts: [
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
]
},
tsongbird: {
url: `https://coston-api.flare.network/ext/C/rpc`,
accounts: [
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
]
},
flare: {
url: `https://flare-api.flare.network/ext/C/rpc`,
accounts: [
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
]
},
songbird: {
url: `https://songbird-api.flare.network/ext/C/rpc`,
accounts: [
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
]
},
tavaxc: {
url: 'https://api.avax-test.network/ext/C/rpc',
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
Expand Down Expand Up @@ -213,6 +249,12 @@ const config: HardhatUserConfig = {
//Core Dao
coredaoTestnet: `${CORE_DAO_TESTNET_EXPLORER_API_KEY}`,
coredaoMainnet: `${CORE_DAO_MAINNET_EXPLORER_API_KEY}`,
//Flare
flareTestnet: `${FLARE_TESTNET_EXPLORER_API_KEY}`,
flareMainnet: `${FLARE__MAINNET_EXPLORER_API_KEY}`,
//Songbird
songbirdTestnet: `${SONGBIRD_TESTNET_EXPLORER_API_KEY}`,
songbirdMainnet: `${SONGBIRD_MAINNET_EXPLORER_API_KEY}`,
//avaxc
// there is free api key for avaxc, so make use of 2 req/sec
avaxc: 'sampleapikey',
Expand Down Expand Up @@ -341,7 +383,40 @@ const config: HardhatUserConfig = {
'https://api.routescan.io/v2/network/testnet/evm/43113/etherscan/api',
browserURL: 'https://testnet.snowtrace.io/'
}
}
},
{
network: 'flareTestnet',
chainId: 114,
urls: {
apiURL: 'https://coston2-explorer.flare.network/api',
browserURL: 'https://coston2-explorer.flare.network'
}
},
{
network: 'flareMainnet',
chainId: 14,
urls: {
apiURL: 'https://flare-explorer.flare.network/api',
browserURL: 'https://flare-explorer.flare.network'
}
},
{
network: 'songbirdTestnet',
chainId: 16,
urls: {

apiURL: 'https://coston-explorer.flare.network/api',
browserURL: 'https://coston-explorer.flare.network'
}
},
{
network: 'songbirdMainnet',
chainId: 19,
urls: {
apiURL: 'https://songbird-explorer.flare.network/api ',
browserURL: 'https://songbird.flarescan.com'
}
},
]
},
mocha: {
Expand Down
6 changes: 6 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ async function main() {
forwarderFactoryContractName = 'ForwarderFactory';
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
//Flare
case 14:
case 114:
//Songbird
case 19:
case 16:
// bera
case 80084:
// coredao
Expand Down

0 comments on commit f6cecb9

Please sign in to comment.