Skip to content

Commit 11225b1

Browse files
authored
API Augment update to use metadata v15 (#2191)
# Goal The goal of this PR is to update API Augment to use the newer metadata v15 provided with Polkadotjs/api v 14.1.1 Part of #2154 # Discussion - Updated the Export Metadata Cmd to use Metadata v15 - Update the fetch:local to use Metadata v15 - Fixed a test that doesn't work under all situations (description is not always returned on all networks) - Setup e2e testnet workflow to run on the provided branch instead of against the release branch so that other test setups can test against testnet ## Testing - `make js` - `/target/debug/frequency export-metadata --tmp ./js/api-augment/metadata.json && cd js/api-augment && npm run build`
1 parent 9fd47cf commit 11225b1

File tree

8 files changed

+605
-604
lines changed

8 files changed

+605
-604
lines changed

.github/workflows/e2e-testnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0
38-
ref: ${{env.TAG_FROM_UI}}
38+
ref: ${{github.event.inputs.branch}}
3939
- name: Set Env Vars
4040
run: |
4141
echo "API_AUGMENT_VERSION=$(echo ${{ env.TAG_FROM_UI }} | sed 's/^v//')" >> $GITHUB_ENV

e2e/package-lock.json

Lines changed: 316 additions & 315 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
"@helia/unixfs": "^4.0.0",
2323
"@noble/curves": "^1.6.0",
2424
"@polkadot-api/merkleize-metadata": "^1.1.7",
25-
"@polkadot/api": "14.0.1",
26-
"@polkadot/types": "14.0.1",
27-
"@polkadot/util": "13.1.1",
28-
"helia": "^5.0.0",
25+
"@polkadot/api": "14.1.1",
26+
"@polkadot/types": "14.1.1",
27+
"@polkadot/util": "13.2.1",
28+
"helia": "^5.0.1",
2929
"multiformats": "^13.3.0",
3030
"rxjs": "^7.8.1",
3131
"workerpool": "^9.2.0"
3232
},
3333
"devDependencies": {
34-
"@eslint/js": "^9.12.0",
34+
"@eslint/js": "^9.13.0",
3535
"@types/mocha": "^10.0.9",
3636
"@types/workerpool": "^6.4.7",
37-
"eslint": "^9.12.0",
37+
"eslint": "^9.13.0",
3838
"eslint-plugin-mocha": "^10.5.0",
3939
"globals": "^15.11.0",
4040
"mocha": "^10.7.3",
@@ -43,6 +43,6 @@
4343
"sinon": "^19.0.2",
4444
"tsx": "^4.19.1",
4545
"typescript": "^5.6.3",
46-
"typescript-eslint": "^8.9.0"
46+
"typescript-eslint": "^8.10.0"
4747
}
4848
}

e2e/stateful-pallet-storage/handlePaginated.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ describe('📗 Stateful Pallet Storage Paginated', function () {
202202

203203
const paginated_add_result_1 = ExtrinsicHelper.upsertPage(providerKeys, schemaId, msa_id, page_id, payload_1, 0);
204204
await assert.rejects(paginated_add_result_1.signAndSend('current'), {
205-
message: 'Target page hash does not match current page hash',
206205
name: 'StalePageState',
206+
section: 'statefulStorage',
207207
});
208208
});
209209
});

0 commit comments

Comments
 (0)