Skip to content

Commit 3428eb0

Browse files
Mainenance update (#144)
PAPI & smoldot upgrade Metadata update Fixing code according to metadata changes
1 parent fa6727b commit 3428eb0

File tree

9 files changed

+568
-453
lines changed

9 files changed

+568
-453
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.9533819768557819421",
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

5.33 KB
Binary file not shown.

.papi/metadata/people.scale

9.93 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+
}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ outputs:
3232

3333
runs:
3434
using: 'docker'
35-
image: 'docker://ghcr.io/paritytech/review-bot/action:2.7.0'
35+
image: 'docker://ghcr.io/paritytech/review-bot/action:2.7.1'

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "review-bot",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"description": "Have custom review rules for PRs with auto assignment",
55
"main": "src/index.ts",
66
"scripts": {
@@ -41,8 +41,8 @@
4141
"@eng-automation/js": "^2.2.0",
4242
"@polkadot-api/descriptors": "portal:.papi/descriptors",
4343
"joi": "^17.13.1",
44-
"polkadot-api": "^1.8.2",
45-
"smoldot": "^2.0.34",
44+
"polkadot-api": "^1.13.0",
45+
"smoldot": "^2.0.35",
4646
"yaml": "^2.3.4"
4747
},
4848
"packageManager": "yarn@4.3.0",

src/polkadot/fellows.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ export class PolkadotFellows implements TeamApi {
2222
): Promise<string | undefined> {
2323
logger.debug(`Fetching identity of '${address}'`);
2424

25-
const identityOf = await peopleApi.query.Identity.IdentityOf.getValue(address);
25+
const identity = await peopleApi.query.Identity.IdentityOf.getValue(address);
2626

27-
if (identityOf) {
28-
const [identity] = identityOf;
27+
if (identity) {
2928
const github = readIdentityData(identity.info.github);
3029

3130
if (!github) {

tsconfig.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"module": "commonjs",
5-
"outDir": "./dist",
6-
"rootDir": "./src",
7-
"strict": true,
8-
"noImplicitAny": true,
9-
"esModuleInterop": true
10-
},
11-
"exclude": [
12-
"node_modules",
13-
]
2+
"compilerOptions": {
3+
"target": "es6",
4+
"module": "commonjs",
5+
"outDir": "./dist",
6+
"rootDir": "./src",
7+
"strict": true,
8+
"noImplicitAny": true,
9+
"esModuleInterop": true,
10+
"skipLibCheck": true
11+
},
12+
"exclude": ["node_modules"]
1413
}

0 commit comments

Comments
 (0)