Skip to content

Commit 9341abf

Browse files
committed
feat!: support post-2.0.0-rc.2.0 Iroha
### Upstream changes - hyperledger-iroha/iroha#5467 - Added `MerkleProof<T>` struct (no first-class support in `@iroha/core/crypto` yet) - hyperledger-iroha/iroha#5471 - Significantly changes the shape of blocks - hyperledger-iroha/iroha#5488 - Mostly internal SDK changes for tests setup - hyperledger-iroha/iroha#5500 - Changes `client.ws.blocks()`, returning an `AsyncGenerator<SignedBlock>` (API is not finalized) - hyperledger-iroha/iroha#5510 - Methods `client.find.blocks()` and `client.find.blockHeaders()` now require a payload like `{ order: Order.Ascending }` ### Other - feat(core): provide dynamic schema-based codec in `@iroha/core/codec-debug` - misc: specify all dependencies in deno config Signed-off-by: quacumque <[email protected]>
1 parent 5f2ba5c commit 9341abf

40 files changed

+1428
-747
lines changed

.github/workflows/pull-request.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
branches: [main]
77
env:
88
IROHA_GIT: https://github.com/hyperledger-iroha/iroha.git
9-
IROHA_REV: v2.0.0-rc.2.0
9+
IROHA_REV: 884f870a791994cccd62da5febf246a1705eeb48
10+
DENO_VERSION: v2.5.2
1011
jobs:
1112
prep-crypto-wasm:
1213
runs-on: ubuntu-latest
@@ -32,7 +33,7 @@ jobs:
3233
- uses: denoland/setup-deno@v2
3334
if: steps.prep-cache.outputs.cache-hit != 'true'
3435
with:
35-
deno-version: v2.x
36+
deno-version: ${{ env.DENO_VERSION }}
3637
- name: Build packages
3738
if: steps.prep-cache.outputs.cache-hit != 'true'
3839
run: deno task prep:crypto-wasm
@@ -57,7 +58,7 @@ jobs:
5758
- uses: denoland/setup-deno@v2
5859
if: steps.prep-cache.outputs.cache-hit != 'true'
5960
with:
60-
deno-version: v2.x
61+
deno-version: ${{ env.DENO_VERSION }}
6162
- name: Prepare Iroha artifacts
6263
if: steps.prep-cache.outputs.cache-hit != 'true'
6364
run: |
@@ -83,7 +84,7 @@ jobs:
8384
prep/crypto-wasm
8485
- uses: denoland/setup-deno@v2
8586
with:
86-
deno-version: v2.2.x
87+
deno-version: ${{ env.DENO_VERSION }}
8788
- uses: actions/setup-node@v4
8889
with:
8990
node-version: 22
@@ -118,7 +119,7 @@ jobs:
118119
prep/crypto-wasm
119120
- uses: denoland/setup-deno@v2
120121
with:
121-
deno-version: v2.2.x
122+
deno-version: ${{ env.DENO_VERSION }}
122123
- uses: actions/setup-node@v4
123124
with:
124125
node-version: 22

deno.jsonc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"license": "Apache 2.0",
33
"nodeModulesDir": "auto",
4-
"exclude": ["**/docs"],
4+
"exclude": ["**/docs", "./tmp"],
55
"workspace": [
66
"./packages/core",
77
"./packages/client",
@@ -35,7 +35,7 @@
3535
"dependencies": ["prep:ok"]
3636
},
3737
"test:deno": {
38-
"command": "deno test -R --doc",
38+
"command": "deno test -RE --doc",
3939
"dependencies": ["prep:ok"]
4040
},
4141
"test:integration:node": {
@@ -82,17 +82,23 @@
8282
}
8383
},
8484
"imports": {
85+
"@david/dax": "jsr:@david/dax@^0.43.2",
8586
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.3",
8687
"@std/assert": "jsr:@std/assert@^1.0.11",
8788
"@std/async": "jsr:@std/async@^1.0.10",
88-
"@std/encoding": "jsr:@std/encoding@^1.0.7",
89+
"@std/cli": "jsr:@std/cli@^1.0.22",
90+
"@std/crypto": "jsr:@std/crypto@^1.0.5",
91+
"@std/encoding": "jsr:@std/encoding@^1.0.10",
8992
"@std/expect": "jsr:@std/expect@^1.0.13",
9093
"@std/fmt": "jsr:@std/fmt@^1.0.5",
94+
"@std/fs": "jsr:@std/fs@^1.0.19",
95+
"@std/path": "jsr:@std/path@^1.1.2",
9196
"@std/testing": "jsr:@std/testing@^1.0.9",
97+
"@std/text": "jsr:@std/text@^1.0.16",
9298
"@std/toml": "jsr:@std/toml@^1.0.2",
9399
"change-case": "npm:change-case@^5.4.4",
94100
"dprint-node": "npm:dprint-node@^1.0.8",
95-
"fast-equals": "npm:fast-equals@^5.2.2",
101+
"fast-equals": "npm:fast-equals@^5.3.2",
96102
"get-port": "npm:get-port@^7.1.0",
97103
"immutable": "npm:immutable@^5.0.3",
98104
"jake": "npm:jake@^10.9.2",

0 commit comments

Comments
 (0)