Skip to content

Commit

Permalink
move bash scripts to local/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Feb 12, 2024
1 parent e029762 commit 49d740b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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
run: echo "/root/.local/bin" >> $GITHUB_PATH
- 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:
Expand Down
4 changes: 2 additions & 2 deletions contracts/staged-contract-updates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
13 changes: 13 additions & 0 deletions local/generate_templates.sh
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 49d740b

Please sign in to comment.