Skip to content

Commit

Permalink
Merge pull request #3 from pendulum-chain/2-regenerate-types-after-ne…
Browse files Browse the repository at this point in the history
…w-rpc-calls-are-included

Regenerate types and update @PolkaDot dependencies
  • Loading branch information
ebma authored Apr 29, 2024
2 parents 2549c87 + c84fddf commit 17ee1ae
Show file tree
Hide file tree
Showing 28 changed files with 3,667 additions and 1,533 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -51,4 +51,4 @@ jobs:
- name: build
run: |
yarn install --immutable | grep -v 'YN0013'
yarn build
yarn build
2 changes: 1 addition & 1 deletion .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
master:
strategy:
matrix:
node-version: [ 14.x ]
node-version: [ 20.x ]
step: ['build:release']
name: ${{ matrix.step }}
if: "! startsWith(github.event.head_commit.message, '[CI Skip]')"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ console.log(data.toHuman())
yarn up @polkadot/api @polkadot/api-augment @polkadot/api-derive @polkadot/rpc-core @polkadot/types @polkadot/types-codec
```

or manually replace all `@polkadot` dependencies in the `package.json` files with the latest version.

Afterward, run the following command to get rid of any duplicate dependencies:

```shell
yarn dedupe
```

### Update the type definitions of this package

To update the type definitions of this package, you need to first fetch the metadata from your target chain:
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/pendulum-chain/pendulum.js.git"
},
"sideEffects": false,
"version": "0.3.8",
"version": "1.0.0",
"workspaces": [
"packages/*",
"examples/*"
Expand Down Expand Up @@ -52,9 +52,9 @@
"resolutions": {
"bn.js": "4.12",
"typescript": "^4.6.2",
"@polkadot/api": "^10.6.1",
"@polkadot/typegen": "^10.6.1",
"@polkadot/types-codec": "^10.6.1",
"@polkadot/api-derive": "^10.6.1"
"@polkadot/api": "^11.0.2",
"@polkadot/typegen": "^11.0.2",
"@polkadot/types-codec": "^11.0.2",
"@polkadot/api-derive": "^11.0.2"
}
}
}
6 changes: 3 additions & 3 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pendulum-chain/api-derive",
"version": "0.3.8",
"version": "1.0.0",
"description": "Pendulum JS API",
"main": "index.js",
"author": "Pendulum",
Expand All @@ -21,7 +21,7 @@
"dependencies": {
"@babel/runtime": "^7.10.2",
"@open-web3/orml-types": "^1.1.4",
"@pendulum-chain/types": "0.3.8",
"@polkadot/api-derive": "^10.6.1"
"@pendulum-chain/types": "1.0.0",
"@polkadot/api-derive": "^11.0.2"
}
}
8 changes: 4 additions & 4 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pendulum-chain/api",
"version": "0.3.8",
"version": "1.0.0",
"description": "Pendulum JS API",
"main": "index.js",
"author": "Pendulum",
Expand All @@ -21,9 +21,9 @@
"dependencies": {
"@babel/runtime": "^7.10.2",
"@open-web3/orml-api-derive": "^1.1.4",
"@pendulum-chain/api-derive": "0.3.8",
"@pendulum-chain/types": "^0.3.8",
"@polkadot/api": "^10.6.1"
"@pendulum-chain/api-derive": "1.0.0",
"@pendulum-chain/types": "^1.0.0",
"@polkadot/api": "^11.0.2"
},
"peerDependencies": {
"@polkadot/api": ">=9",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pendulum-chain/sdk-core",
"version": "0.3.8",
"version": "1.0.0",
"description": "the core for pendulum SDK",
"main": "index.js",
"author": "Pendulum",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pendulum-chain/type-definitions",
"version": "0.3.8",
"version": "1.0.0",
"description": "Polkadot.js type definitions for pendulum Network",
"main": "index.js",
"author": "Pendulum",
Expand Down
3 changes: 2 additions & 1 deletion packages/type-definitions/src/json/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"Native": "Null",
"XCM": "u8",
"Stellar": "SpacewalkPrimitivesAsset",
"ZenlinkLPToken": "(u8,u8,u8,u8)"
"ZenlinkLPToken": "(u8,u8,u8,u8)",
"Token": "u64"
}
},
"SpacewalkPrimitivesAsset": {
Expand Down
6 changes: 4 additions & 2 deletions packages/type-definitions/src/json/typesBundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@
"Native": "Null",
"XCM": "u8",
"Stellar": "SpacewalkPrimitivesAsset",
"ZenlinkLPToken": "(u8,u8,u8,u8)"
"ZenlinkLPToken": "(u8,u8,u8,u8)",
"Token": "u64"
}
},
"SpacewalkPrimitivesAsset": {
Expand Down Expand Up @@ -1024,7 +1025,8 @@
"Native": "Null",
"XCM": "u8",
"Stellar": "SpacewalkPrimitivesAsset",
"ZenlinkLPToken": "(u8,u8,u8,u8)"
"ZenlinkLPToken": "(u8,u8,u8,u8)",
"Token": "u64"
}
},
"SpacewalkPrimitivesAsset": {
Expand Down
11 changes: 6 additions & 5 deletions packages/type-definitions/src/vaultRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,19 @@ export default {
},
types: {
/**
* Lookup120: spacewalk_primitives::CurrencyId
* Lookup124: spacewalk_primitives::CurrencyId
**/
SpacewalkPrimitivesCurrencyId: {
_enum: {
Native: 'Null',
XCM: 'u8',
Stellar: 'SpacewalkPrimitivesAsset',
ZenlinkLPToken: '(u8,u8,u8,u8)'
ZenlinkLPToken: '(u8,u8,u8,u8)',
Token: 'u64'
}
},
/**
* Lookup121: spacewalk_primitives::Asset
* Lookup125: spacewalk_primitives::Asset
**/
SpacewalkPrimitivesAsset: {
_enum: {
Expand All @@ -212,14 +213,14 @@ export default {
}
},
/**
* Lookup138: spacewalk_primitives::VaultId<sp_core::crypto::AccountId32, spacewalk_primitives::CurrencyId>
* Lookup142: spacewalk_primitives::VaultId<sp_core::crypto::AccountId32, spacewalk_primitives::CurrencyId>
**/
SpacewalkPrimitivesVaultId: {
accountId: 'AccountId32',
currencies: 'SpacewalkPrimitivesVaultCurrencyPair'
},
/**
* Lookup139: spacewalk_primitives::VaultCurrencyPair<spacewalk_primitives::CurrencyId>
* Lookup143: spacewalk_primitives::VaultCurrencyPair<spacewalk_primitives::CurrencyId>
**/
SpacewalkPrimitivesVaultCurrencyPair: {
collateral: 'SpacewalkPrimitivesCurrencyId',
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pendulum-chain/types",
"version": "0.3.8",
"version": "1.0.0",
"description": "Polkadot.js type definitions for Pendulum Network",
"main": "index.js",
"author": "Pendulum",
Expand All @@ -22,12 +22,12 @@
"@babel/runtime": "^7.10.2",
"@open-web3/api-mobx": "^1.1.4",
"@open-web3/orml-types": "^1.1.4",
"@pendulum-chain/type-definitions": "0.3.8"
"@pendulum-chain/type-definitions": "1.0.0"
},
"devDependencies": {
"@polkadot/api": "^10.6.1",
"@polkadot/typegen": "^10.6.1",
"@polkadot/types": "^10.6.1",
"@polkadot/api": "^11.0.2",
"@polkadot/typegen": "^11.0.2",
"@polkadot/types": "^11.0.2",
"@types/websocket": "^1.0.0",
"websocket": "^1.0.31"
},
Expand Down
Loading

0 comments on commit 17ee1ae

Please sign in to comment.