Airdrop improvement (#476) #198
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
name: Run scripts | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize] | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
uses: ./.github/workflows/.lint.yml | |
scripts-tests: | |
needs: lint | |
runs-on: [self-hosted, linux, x64, ephemeral] | |
timeout-minutes: 3600 | |
env: | |
SEED: test test test test test test test test test test test junk | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Python virtualenv | |
run: pip install virtualenv | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- run: npm install --global ganache-cli | |
- run: npm install --global yarn | |
- run: yarn | |
- run: poetry install | |
- run: npx hardhat node & | |
- run: sleep 2 | |
# Just checking that the scripts run. More elaborated testing can be done later on. | |
- name: Deploy contracts Ethereum | |
env: | |
NUM_GENESIS_VALIDATORS: 3 | |
AGG_KEY: "0xDEADBEEF" | |
GOV_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" | |
COMM_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" | |
REDEMPTION_DELAY: "172800" | |
GENESIS_STAKE: "1000000000000000000000" | |
DEPLOYER_ACCOUNT_INDEX: "0" | |
run: poetry run brownie run deploy_contracts --network hardhat | |
- name: Deploy contracts Arbitrum (mock) | |
env: | |
AGG_KEY: "0xDEADBEEF" | |
GOV_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" | |
COMM_KEY: "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" | |
DEPLOYER_ACCOUNT_INDEX: "0" | |
run: poetry run brownie run deploy_contracts deploy_secondary_evm --network hardhat | |
- name: Emit all events | |
run: poetry run brownie run deploy_and all_events --network hardhat | |
- name: Deploy individual contracts | |
env: | |
REDEMPTION_DELAY: "120" | |
KEY_MANAGER_ADDRESS: "0xa16E02E87b7454126E5E10d957A927A7F5B5d2be" | |
FLIP_ADDRESS: "0x10C6E9530F1C1AF873a391030a1D9E8ed0630D26" | |
VAULT_ADDRESS: "0xB7A5bd0345EF1Cc5E66bf61BdeC17D2461fBd968" | |
run: | | |
poetry run brownie run deploy_new_contract deploy_vault --network hardhat && | |
poetry run brownie run deploy_new_contract deploy_scGateway --network hardhat && | |
poetry run brownie run deploy_new_contract deploy_keyManager --network hardhat && | |
poetry run brownie run deploy_new_contract deploy_multicall --network hardhat | |
poetry run brownie run deploy_new_contract deploy_cfTester --network hardhat |