Skip to content

Commit

Permalink
Merge pull request #276 from eonian-core/feature/add-oz-defender-support
Browse files Browse the repository at this point in the history
Add production environment with deploy through Safe Wallet Multisig
  • Loading branch information
LeoVS09 authored Jul 21, 2024
2 parents 545b954 + a8b0765 commit a6095e8
Show file tree
Hide file tree
Showing 85 changed files with 2,200 additions and 503 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-protocol-to-miannet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

push:
branches:
- main
- staging
- development
paths:
Expand All @@ -26,8 +27,10 @@ jobs:
name: ${{ github.ref_name }}

env:
HARDHAT_NETWORK: ${{ vars.HARDHAT_NETWORK }} # bsc_mainnet_dev or bsc_mainnet_staging
HARDHAT_NETWORK: ${{ vars.HARDHAT_NETWORK }} # bsc_mainnet_dev or bsc_mainnet_staging or bsc_mainnet_prod
BSCSCAN_API_KEY: ${{ secrets.BSCSCAN_API_KEY }} # Setting ETHERSCAN_API_KEY can cause issues
SAFE_WALLET_DEPLOY: ${{ vars.SAFE_WALLET_DEPLOY }}
SAFE_WALLET_ADDRESS: ${{ vars.SAFE_WALLET_ADDRESS }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -67,7 +70,7 @@ jobs:
BSC_MAINNET_PRIVATE_KEY: ${{ secrets.BSC_MAINNET_PRIVATE_KEY }}
run: |-
cd packages/contracts
yarn hardhat deploy
yarn hardhat deploy --network ${{ vars.HARDHAT_NETWORK }}
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify-smart-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

env:
BSC_MAINNET_RPC_URL: ${{ vars.BSC_MAINNET_RPC_URL }}
SMART_CONTRACTS_LICENSE_TYPE: "GNU AGPLv3"

jobs:
lint:
Expand Down
Loading

0 comments on commit a6095e8

Please sign in to comment.