Skip to content

Commit 93d5b17

Browse files
committed
feat: add mandatory replace
1 parent 4c113df commit 93d5b17

142 files changed

Lines changed: 4430 additions & 8663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/benchmark.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
benchmark:
1212
name: Benchmark
13-
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/run_benchmarks') }}
13+
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/benchmark') }}
1414
runs-on: [self-hosted, linux]
1515
steps:
1616
- uses: actions/github-script@v6
@@ -37,10 +37,11 @@ jobs:
3737
id: command
3838
with:
3939
result-encoding: string
40+
# /benchmark CHAIN_NAME [PALLET_NAME]
4041
script: |
41-
const [, , cmd, ...args] = context.payload.comment.body.split(/\W+/)
42+
const [cmd, ...args] = context.payload.comment.body.split(" ")
4243
const [runtime, pallet] = args
43-
return `bash ./scripts/benchmark.sh -r ${runtime ?? "*"} -p ${pallet ?? "*"}`
44+
return `bash ./scripts/benchmark.sh -r ${runtime ?? ""} -p ${pallet ?? ""}`
4445
- uses: actions/github-script@v6
4546
name: Post comment
4647
id: comment
@@ -70,10 +71,12 @@ jobs:
7071
- name: Run benchmarks
7172
run: ${{steps.command.outputs.result}} > ${{runner.temp}}/out.txt
7273
- name: Commit new weights
73-
uses: stefanzweifel/git-auto-commit-action@v4
74-
with:
75-
commit_message: Automated weights
76-
74+
run: |
75+
git config user.email "contact@interlay.io"
76+
git config user.name "Interlay Bot"
77+
git add .
78+
git commit -m '${{github.event.comment.body}}' --allow-empty
79+
git push origin HEAD:${{ fromJson(steps.issue.outputs.result).ref }}
7780
- uses: actions/github-script@v6
7881
name: Update comment
7982
with:

.github/workflows/notify-breaking.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616

@@ -23,8 +23,8 @@ jobs:
2323
fi
2424
2525
- name: Send Discord Notification
26-
uses: Ilshidur/action-discord@master
27-
with:
28-
args: "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}"
29-
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}
26+
run: |
27+
curl -X POST -H "Content-Type: application/json" \
28+
--data '{"content": "Breaking change detected in PR: ${{ github.event.pull_request.html_url }}"}' \
29+
"${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}"
3030
if: env.BREAKING_CHANGE_DETECTED == 'true'

Cargo.lock

Lines changed: 1 addition & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ cargo run --release --bin interbtc-parachain -- --dev
152152

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

155+
### Development node
156+
157+
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:
158+
159+
```shell
160+
docker run --network=host interlayhq/interbtc:RELEASE_TAG --dev --instant-seal
161+
# Example
162+
docker run --network=host interlayhq/interbtc:1.25.0-rc5 --dev --instant-seal
163+
```
164+
155165
#### Test Coverage
156166

157167
Test coverage reports available under [docs/testcoverage.html](https://github.com/interlay/interbtc/blob/master/docs/testcoverage.html)

crates/issue/src/benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn setup_issue<T: crate::Config>(
128128

129129
let issue_id = H256::zero();
130130
let issue_request = IssueRequest {
131-
requester: origin.clone(),
131+
requester: AccountOrVault::Account(origin.clone()),
132132
vault: vault_id.clone(),
133133
btc_address: vault_btc_address,
134134
amount: value.amount(),

0 commit comments

Comments
 (0)