diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b43dad8..05aa595 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Install Flow CLI - run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.8.0 + run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.13.1 - name: Flow CLI Version run: flow version - name: Update PATH @@ -31,7 +31,7 @@ jobs: - name: Run tests run: make ci - name: Normalize coverage report filepaths - run : sh ./normalize_coverage_report.sh + run : sh ./local/normalize_coverage_report.sh - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/contracts/staged-contract-updates/README.md b/contracts/staged-contract-updates/README.md index 034ac98..efe7f00 100644 --- a/contracts/staged-contract-updates/README.md +++ b/contracts/staged-contract-updates/README.md @@ -25,7 +25,7 @@ advanced deployments are possible with support for multiple contract accounts an 1. Setup emulator environment - this creates our emulator accounts & deploys contracts: ```sh - sh staged_contract_updates_setup.sh + sh local/staged_contract_updates_setup.sh ``` ### Walkthrough @@ -52,7 +52,7 @@ advanced deployments are possible with support for multiple contract accounts an 1. Simulate block creation, running transactions to iterate over blocks to the pre-configured block update height: ```sh - sh tick_tock.sh + sh local/tick_tock.sh ``` 1. We can get details from our `Updater` before updating: diff --git a/local/generate_templates.sh b/local/generate_templates.sh new file mode 100644 index 0000000..4ac3e89 --- /dev/null +++ b/local/generate_templates.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +flow flix generate ./transactions/migration-contract-staging/stage_contract.cdc --save ./flix/transactions/stage_contract.json +flow flix generate ./transactions/migration-contract-staging/unstage_contract.cdc --save ./flix/transactions/unstage_contract.json +flow flix generate ./scripts/migration-contract-staging/get_all_staged_contract_code_for_address.cdc --save ./flix/scripts/get_all_staged_contract_code_for_address.json +flow flix generate ./scripts/migration-contract-staging/get_all_staged_contract_hosts.cdc --save ./flix/scripts/get_all_staged_contract_hosts.json +flow flix generate ./scripts/migration-contract-staging/get_all_staged_contracts.cdc --save ./flix/scripts/get_all_staged_contracts.json +flow flix generate ./scripts/migration-contract-staging/get_staged_contract_code.cdc --save ./flix/scripts/get_staged_contract_code.json +flow flix generate ./scripts/migration-contract-staging/get_staged_contract_names_for_address.cdc --save ./flix/scripts/get_staged_contract_names_for_address.json +flow flix generate ./scripts/migration-contract-staging/get_staged_contract_update.cdc --save ./flix/scripts/get_staged_contract_update.json +flow flix generate ./scripts/migration-contract-staging/get_staging_cutoff.cdc --save ./flix/scripts/get_staging_cutoff.json +flow flix generate ./scripts/migration-contract-staging/is_staged.cdc --save ./flix/scripts/is_staged.json +flow flix generate ./scripts/migration-contract-staging/is_validated.cdc --save ./flix/scripts/is_validated.json \ No newline at end of file diff --git a/normalize_coverage_report.sh b/local/normalize_coverage_report.sh similarity index 100% rename from normalize_coverage_report.sh rename to local/normalize_coverage_report.sh diff --git a/staged_contract_updates_setup.sh b/local/staged_contract_updates_setup.sh similarity index 100% rename from staged_contract_updates_setup.sh rename to local/staged_contract_updates_setup.sh diff --git a/tick_tock.sh b/local/tick_tock.sh similarity index 100% rename from tick_tock.sh rename to local/tick_tock.sh