Skip to content

Commit 4505976

Browse files
Obtain fellows from People Chain (#30)
- Migrated the chain from polkadot to `People Chain`. - Resolves #29 and resolves polkadot-fellows/runtimes#394 - Updated PAPI to latest (it now has a `.papi` directory). - Removed slim node docker image and bundled everything together - Polkadot-API depends on some dependencies that `ncc` is not bundling together so we need to keep the `node_modules` (like `@polkadot-api/metadata-compatibility`) - Updated to version `1.2.0` --------- Co-authored-by: cornholio <0@mcornholio.ru>
1 parent 523c199 commit 4505976

File tree

14 files changed

+650
-570
lines changed

14 files changed

+650
-570
lines changed

.github/workflows/javascript-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
restore-keys: |
3131
${{ runner.os }}-yarn-
3232
- name: Install dependencies
33-
run: yarn install --immutable
33+
run: yarn install --immutable --mode skip-build
34+
- run: yarn run postinstall
3435
- run: yarn run ${{ matrix.command }}
3536

3637
conclude:

.papi/descriptors/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!package.json

.papi/descriptors/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.1.0-autogenerated.14257783844949306470",
3+
"name": "@polkadot-api/descriptors",
4+
"files": [
5+
"dist"
6+
],
7+
"exports": {
8+
".": {
9+
"module": "./dist/index.mjs",
10+
"import": "./dist/index.mjs",
11+
"require": "./dist/index.js",
12+
"default": "./dist/index.js"
13+
},
14+
"./package.json": "./package.json"
15+
},
16+
"main": "./dist/index.js",
17+
"module": "./dist/index.mjs",
18+
"browser": "./dist/index.mjs",
19+
"types": "./dist/index.d.ts",
20+
"sideEffects": false,
21+
"peerDependencies": {
22+
"polkadot-api": "*"
23+
}
24+
}

.papi/metadata/collectives.scale

179 KB
Binary file not shown.

.papi/metadata/people.scale

121 KB
Binary file not shown.

.papi/polkadot-api.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 0,
3+
"descriptorPath": ".papi/descriptors",
4+
"entries": {
5+
"collectives": {
6+
"wsUrl": "wss://polkadot-collectives-rpc.polkadot.io",
7+
"metadata": ".papi/metadata/collectives.scale"
8+
},
9+
"people": {
10+
"wsUrl": "wss://polkadot-people-rpc.polkadot.io",
11+
"metadata": ".papi/metadata/people.scale"
12+
}
13+
}
14+
}

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ WORKDIR /action
55
COPY .yarn/ ./.yarn/
66
COPY package.json yarn.lock .yarnrc.yml ./
77

8-
COPY collectives.scale polkadot.scale polkadot-api.json ./
8+
COPY .papi ./.papi
99

1010
RUN yarn install --immutable
1111

1212
COPY . .
1313

1414
RUN yarn run build
1515

16-
FROM node:22-slim
17-
18-
COPY --from=Builder /action/dist /action
19-
20-
ENTRYPOINT ["node", "/action/index.js"]
16+
ENTRYPOINT ["node", "/action/dist/index.js"]

action.yml

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

1313
runs:
1414
using: 'docker'
15-
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.1.4'
15+
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.2.0'

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "get-fellows-action",
3-
"version": "1.1.4",
3+
"version": "1.2.0",
44
"description": "Fetch all the GitHub handles from the Fellows",
55
"main": "src/index.ts",
66
"scripts": {
@@ -25,13 +25,17 @@
2525
"dependencies": {
2626
"@actions/core": "^1.10.1",
2727
"@actions/github": "^5.1.1",
28-
"polkadot-api": "^0.9.0",
28+
"@polkadot-api/descriptors": "file:.papi/descriptors",
29+
"polkadot-api": "^0.12.0",
2930
"smoldot": "2.0.29"
3031
},
3132
"devDependencies": {
3233
"@eng-automation/js-style": "^3.1.0",
3334
"@vercel/ncc": "^0.38.1",
3435
"typescript": "^5.5.3",
3536
"vitest": "^1.6.0"
37+
},
38+
"resolutions": {
39+
"@polkadot-api/descriptors": "portal:./.papi/descriptors"
3640
}
3741
}

people.scale

121 KB
Binary file not shown.

0 commit comments

Comments
 (0)