Skip to content

Commit

Permalink
feat: add mandatory replace
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Aug 14, 2023
1 parent 4c113df commit 93d5b17
Show file tree
Hide file tree
Showing 142 changed files with 4,430 additions and 8,663 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
benchmark:
name: Benchmark
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/run_benchmarks') }}
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/benchmark') }}
runs-on: [self-hosted, linux]
steps:
- uses: actions/github-script@v6
Expand All @@ -37,10 +37,11 @@ jobs:
id: command
with:
result-encoding: string
# /benchmark CHAIN_NAME [PALLET_NAME]
script: |
const [, , cmd, ...args] = context.payload.comment.body.split(/\W+/)
const [cmd, ...args] = context.payload.comment.body.split(" ")
const [runtime, pallet] = args
return `bash ./scripts/benchmark.sh -r ${runtime ?? "*"} -p ${pallet ?? "*"}`
return `bash ./scripts/benchmark.sh -r ${runtime ?? ""} -p ${pallet ?? ""}`
- uses: actions/github-script@v6
name: Post comment
id: comment
Expand Down Expand Up @@ -70,10 +71,12 @@ jobs:
- name: Run benchmarks
run: ${{steps.command.outputs.result}} > ${{runner.temp}}/out.txt
- name: Commit new weights
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated weights

run: |
git config user.email "[email protected]"
git config user.name "Interlay Bot"
git add .
git commit -m '${{github.event.comment.body}}' --allow-empty
git push origin HEAD:${{ fromJson(steps.issue.outputs.result).ref }}
- uses: actions/github-script@v6
name: Update comment
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/notify-breaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -23,8 +23,8 @@ jobs:
fi
- name: Send Discord Notification
uses: Ilshidur/action-discord@master
with:
args: "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}"
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" \
--data '{"content": "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}"}' \
"${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}"
if: env.BREAKING_CHANGE_DETECTED == 'true'
64 changes: 1 addition & 63 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@ cargo run --release --bin interbtc-parachain -- --dev

To connect with a local relay-chain follow [these instructions](docs/rococo.md).

### Development node

Running a development can be achieved without compiling the node with docker and `instant-seal`. Replace the release version with one of the available tags:

```shell
docker run --network=host interlayhq/interbtc:RELEASE_TAG --dev --instant-seal
# Example
docker run --network=host interlayhq/interbtc:1.25.0-rc5 --dev --instant-seal
```

#### Test Coverage

Test coverage reports available under [docs/testcoverage.html](https://github.com/interlay/interbtc/blob/master/docs/testcoverage.html)
Expand Down
2 changes: 1 addition & 1 deletion crates/issue/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn setup_issue<T: crate::Config>(

let issue_id = H256::zero();
let issue_request = IssueRequest {
requester: origin.clone(),
requester: AccountOrVault::Account(origin.clone()),
vault: vault_id.clone(),
btc_address: vault_btc_address,
amount: value.amount(),
Expand Down
Loading

0 comments on commit 93d5b17

Please sign in to comment.