Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update local type generation scripts #2968

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b1d93b6
new update script
pLabarta Sep 17, 2024
0565a7f
use workspace in test pkg
pLabarta Sep 17, 2024
22c8206
add script to test/scripts
pLabarta Sep 17, 2024
768cfb2
Merge branch 'master' into pablo/ts-api-overhaul
pLabarta Sep 17, 2024
af7e3b4
remove some logging
pLabarta Sep 19, 2024
3af5caa
Merge branch 'master' into pablo/ts-api-overhaul
pLabarta Sep 19, 2024
ccd9d94
add unresolved conflict
pLabarta Sep 19, 2024
6a3e972
remove comments & some logging
pLabarta Sep 23, 2024
1db5c0c
Merge branch 'master' into pablo/ts-api-overhaul
pLabarta Sep 30, 2024
22da20d
Merge branch 'master' into pablo/ts-api-overhaul
pLabarta Oct 3, 2024
5e97e66
fix workspace
pLabarta Oct 3, 2024
4d12ae4
run node on correct port
pLabarta Oct 3, 2024
3fc1542
bump polkadot versions on ts-api
pLabarta Oct 3, 2024
e41e4d0
bump polkadot versions on all pkgs
pLabarta Oct 3, 2024
530d80e
fix script & build for all runtimes
pLabarta Oct 7, 2024
138c5de
fmt
pLabarta Oct 7, 2024
1cc1685
lint
pLabarta Oct 7, 2024
6b08f87
fix cache dep path
pLabarta Oct 7, 2024
e4a48b0
fix cache dep path in dev-tests
pLabarta Oct 7, 2024
3f743d9
helpers/block: query ext as u8a
pLabarta Oct 7, 2024
8d72941
fmt
pLabarta Oct 7, 2024
597d1e3
fix some casing issues
pLabarta Oct 7, 2024
20b8360
use as u8a for dummyTranfer info
pLabarta Oct 7, 2024
7aa73fe
add prepare ts api step to zombie-tests
pLabarta Oct 7, 2024
b04bfc0
add ts api build step to lazyloading & chopsticks
pLabarta Oct 7, 2024
ddddcb7
Merge branch 'master' into pablo/ts-api-overhaul
pLabarta Oct 7, 2024
371f60e
add more wait time for nodes to start
pLabarta Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflow-templates/dev-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
with:
node-version: 20.10.0
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
cache-dependency-path: pnpm-lock.yaml

- name: Setup Moonbeam PolkadotJS types
shell: bash
Expand Down
51 changes: 48 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
with:
node-version: 20.10.0
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
cache-dependency-path: pnpm-lock.yaml
- name: Run Eslint check
run: |
cd test
Expand Down Expand Up @@ -613,7 +613,7 @@ jobs:
with:
node-version: 20.10.0
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
cache-dependency-path: pnpm-lock.yaml
- run: |
mkdir -p target/release
- name: "Download branch built node"
Expand Down Expand Up @@ -739,6 +739,21 @@ jobs:
with:
name: moonbeam
path: target/release
- name: Setup Moonbeam PolkadotJS types
shell: bash
run: |
#### Preparing the legacy types
cd moonbeam-types-bundle
pnpm i
pnpm build

#### Preparing the typescript api
cd ../typescript-api
pnpm i
pnpm build

cd ../test
pnpm add ../typescript-api
- name: "Run lazy loading tests"
run: |
chmod uog+x target/release/moonbeam
Expand Down Expand Up @@ -782,7 +797,7 @@ jobs:
with:
node-version: 20.10.0
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
cache-dependency-path: pnpm-lock.yaml
- name: Create local folders
run: |
mkdir -p target/release/wbuild/${{ matrix.chain }}-runtime/
Expand All @@ -792,6 +807,21 @@ jobs:
with:
name: runtimes
path: target/release/wbuild/${{ matrix.chain }}-runtime/
- name: Setup Moonbeam PolkadotJS types
shell: bash
run: |
#### Preparing the legacy types
cd moonbeam-types-bundle
pnpm i
pnpm build

#### Preparing the typescript api
cd ../typescript-api
pnpm i
pnpm build

cd ../test
pnpm add ../typescript-api
- name: "Install and run upgrade test"
run: |
cd test
Expand Down Expand Up @@ -854,6 +884,21 @@ jobs:
docker create --name moonbeam_container $DOCKER_TAG bash
docker cp moonbeam_container:moonbeam/moonbeam test/tmp/moonbeam_rt
docker rm -f moonbeam_container
- name: Setup Moonbeam PolkadotJS types
shell: bash
run: |
#### Preparing the legacy types
cd moonbeam-types-bundle
pnpm i
pnpm build

#### Preparing the typescript api
cd ../typescript-api
pnpm i
pnpm build

cd ../test
pnpm add ../typescript-api
- name: Prepare Chainspecs
run: |
cd test
Expand Down
12 changes: 6 additions & 6 deletions moonbeam-types-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"url": "git+https://github.com/moonbeam-foundation/moonbeam.git"
},
"dependencies": {
"@polkadot/api": "13.0.1",
"@polkadot/api-base": "13.0.1",
"@polkadot/rpc-core": "13.0.1",
"@polkadot/typegen": "13.0.1",
"@polkadot/types": "13.0.1",
"@polkadot/types-codec": "13.0.1",
"@polkadot/api": "14.0.1",
"@polkadot/api-base": "14.0.1",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/typegen": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"prettier": "2.8.8",
"typescript": "5.6.2"
}
Expand Down
Loading
Loading