Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Fixed on push to main commit
  • Loading branch information
Marcin-Radecki committed Oct 1, 2024
commit a9fda9c82cd3290fdb1eb50323164d012babef68
23 changes: 4 additions & 19 deletions .github/workflows/contracts-compile-and-deploy-to-devenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,10 @@ jobs:
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit

test-azero-contracts:
needs: [check-vars-and-secrets]
uses: ./.github/workflows/test-azero-contracts.yml

test-eth-contracts:
needs: [check-vars-and-secrets]
uses: ./.github/workflows/test-eth-contracts.yml

deploy-contracts:
name: Deploy and setup contracts
runs-on: [self-hosted, Linux, X64, large]
needs: [test-eth-contracts, test-azero-contracts]
needs: [check-vars-and-secrets]
outputs:
artifact-matrix-json: ${{ steps.get-artifact-matrix.outputs.artifact-matrix }}

Expand All @@ -37,14 +29,6 @@ jobs:
- name: Setup node
uses: asdf-vm/actions/install@v3

- name: Create token config
shell: bash
run: |
cat cfg/tokens_testnet_example.json > cfg/tokens_testnet.json
# Commented out for now, in case contracts should be marked as not deployed
#jq '.eth[0].deployed = false' | jq '.aleph[0].deployed = false'
#jq 'del(.eth[0].address)' | jq 'del(.aleph[0].address)'

- name: Create azero env file
shell: bash
env:
Expand All @@ -53,9 +37,10 @@ jobs:
AZERO3: ${{ secrets.DEVENV_TESTNET_AZERO3_ACCOUNT_NUMBER }}
AZERO1_SEED: ${{ secrets.DEVENV_TESTNET_AZERO1_KEY }}
run: |
cat azero/env/testnet.json.example | \
cat azero/env/testnet.json | \
jq '.relayers = ["${{ env.AZERO1 }}", "${{ env.AZERO2 }}", "${{ env.AZERO3 }}"]' | \
jq '.deployer_seed = "${{ env.AZERO1_SEED }}"' | jq '.dev = true' > azero/env/testnet.json
jq '.deployer_seed = "${{ env.AZERO1_SEED }}"' | jq '.dev = true' > azero/env/testnet.json.tmp
mv azero/env/testnet.json.tmp azero/env/testnet.json

- name: Get latest eth block
shell: bash
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/on-master-branch-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,24 @@ on:
push:
branches:
- master
- MOST-192

jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit

# test-azero-contracts:
# needs: [check-vars-and-secrets]
# uses: ./.github/workflows/test-azero-contracts.yml
#
# test-eth-contracts:
# needs: [check-vars-and-secrets]
# uses: ./.github/workflows/test-eth-contracts.yml

compile-contracts-and-deploy-to-devenv:
needs: [check-vars-and-secrets]
#needs: [test-azero-contracts, test-eth-contracts]
name: Compile contracts and deploy to devenv
uses: ./.github/workflows/contracts-compile-and-deploy-to-devenv.yml
secrets: inherit
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ compile-eth: eth-deps
deploy-eth: # Deploy eth contracts
deploy-eth: compile-eth
cd eth && \
npx hardhat run --network $(NETWORK) scripts/0_deploy_bridge_contracts.js
npx hardhat run --network $(NETWORK) scripts/0_deploy_bridge_contracts.js \
&& npx hardhat run --network $(NETWORK) scripts/deploy_transfer_limit.js

.PHONY: upload-eth
upload-eth: # Upload the MOST contract to a live ethereum network (testnet or mainnet) for an upgrade
Expand Down