Skip to content

Commit 187e4a4

Browse files
Maintenance update
PAPI, smoldot, metadata, vital code update
1 parent 360f7db commit 187e4a4

File tree

10 files changed

+526
-419
lines changed

10 files changed

+526
-419
lines changed

.papi/descriptors/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0-autogenerated.16713261255167333264",
2+
"version": "0.1.0-autogenerated.1287053452949193419",
33
"name": "@polkadot-api/descriptors",
44
"files": [
55
"dist"
@@ -19,6 +19,6 @@
1919
"types": "./dist/index.d.ts",
2020
"sideEffects": false,
2121
"peerDependencies": {
22-
"polkadot-api": "*"
22+
"polkadot-api": ">=1.11.2"
2323
}
2424
}

.papi/metadata/collectives.scale

74.6 KB
Binary file not shown.

.papi/metadata/people.scale

55.3 KB
Binary file not shown.

.papi/polkadot-api.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
"entries": {
55
"collectives": {
66
"wsUrl": "wss://polkadot-collectives-rpc.polkadot.io",
7-
"metadata": ".papi/metadata/collectives.scale"
7+
"metadata": ".papi/metadata/collectives.scale",
8+
"genesis": "0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2",
9+
"codeHash": "0xd4c7e0bd585b07c41426181d59c4e14e9bb0f17a5d4c3043d8bba659fa94c3a0"
810
},
911
"people": {
1012
"wsUrl": "wss://polkadot-people-rpc.polkadot.io",
11-
"metadata": ".papi/metadata/people.scale"
13+
"metadata": ".papi/metadata/people.scale",
14+
"genesis": "0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",
15+
"codeHash": "0x5ad90a21b395a16a6d720983bb9fdd096577710beea33c7882bb61a7518dbb79"
1216
}
1317
}
14-
}
18+
}

collectives.scale

-157 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "ncc build --license LICENSE",
99
"postinstall": "papi",
1010
"test": "vitest",
11+
"typecheck": "npx tsc --noEmit",
1112
"fix": "npx eslint --fix 'src/**/*.ts' && npx prettier --write 'src/**/*.{ts,yml}'",
1213
"lint": "npx eslint 'src/**/*.ts' && npx prettier --check 'src/**/*.{ts,yml}'"
1314
},
@@ -26,8 +27,8 @@
2627
"@actions/core": "^1.10.1",
2728
"@actions/github": "^5.1.1",
2829
"@polkadot-api/descriptors": "portal:.papi/descriptors",
29-
"polkadot-api": "^1.8.2",
30-
"smoldot": "^2.0.34"
30+
"polkadot-api": "^1.12.2",
31+
"smoldot": "^2.0.35"
3132
},
3233
"devDependencies": {
3334
"@eng-automation/js-style": "^3.1.0",

people.scale

-121 KB
Binary file not shown.

src/fellows.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ export const fetchAllFellows = async (
4646
address: SS58String,
4747
): Promise<string | undefined> => {
4848
logger.debug(`Fetching identity of '${address}'`);
49-
const identityOf =
49+
const identity =
5050
await peopleApi.query.Identity.IdentityOf.getValue(address);
5151

52-
if (identityOf) {
53-
const [identity] = identityOf;
52+
if (identity) {
5453
const github = readIdentityData(identity.info.github);
5554

5655
if (!github) {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"strict": true,
88
"noImplicitAny": true,
99
"resolveJsonModule": true,
10-
"esModuleInterop": true
10+
"esModuleInterop": true,
11+
"skipLibCheck": true
1112
},
1213
"exclude": ["node_modules"]
1314
}

0 commit comments

Comments
 (0)