@webb-tools/tangle-substrate-types 0.5.9 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -13
- package/build/index.cjs +2 -0
- package/build/index.d.ts +19013 -3
- package/build/index.mjs +1 -0
- package/package.json +37 -52
- package/.envrc +0 -5
- package/babel-config-cjs.cjs +0 -10
- package/build/examples/job_and_result_submission.d.ts +0 -1
- package/build/examples/job_and_result_submission.js +0 -230
- package/build/index.js +0 -5
- package/build/interfaces/augment-api-consts.d.ts +0 -950
- package/build/interfaces/augment-api-consts.js +0 -3
- package/build/interfaces/augment-api-errors.d.ts +0 -2144
- package/build/interfaces/augment-api-errors.js +0 -3
- package/build/interfaces/augment-api-events.d.ts +0 -2281
- package/build/interfaces/augment-api-events.js +0 -3
- package/build/interfaces/augment-api-query.d.ts +0 -1660
- package/build/interfaces/augment-api-query.js +0 -3
- package/build/interfaces/augment-api-rpc.d.ts +0 -679
- package/build/interfaces/augment-api-rpc.js +0 -3
- package/build/interfaces/augment-api-runtime.d.ts +0 -363
- package/build/interfaces/augment-api-runtime.js +0 -3
- package/build/interfaces/augment-api-tx.d.ts +0 -2876
- package/build/interfaces/augment-api-tx.js +0 -3
- package/build/interfaces/augment-api.d.ts +0 -7
- package/build/interfaces/augment-api.js +0 -9
- package/build/interfaces/augment-types.d.ts +0 -1249
- package/build/interfaces/augment-types.js +0 -3
- package/build/interfaces/lookup.d.ts +0 -5920
- package/build/interfaces/lookup.js +0 -5928
- package/build/interfaces/registry.d.ts +0 -428
- package/build/interfaces/registry.js +0 -3
- package/build/interfaces/types-lookup.d.ts +0 -6062
- package/build/interfaces/types-lookup.js +0 -3
- package/build/metadata/static-latest.d.ts +0 -2
- package/build/metadata/static-latest.js +0 -7
- package/build/metadata/static-type.d.ts +0 -2
- package/build/metadata/static-type.js +0 -1
- package/build/package.json +0 -1
- package/playground.ts +0 -86
- package/polkadot-dev-configs/babel-config-cjs.cjs +0 -12
- package/polkadot-dev-configs/babel-general.cjs +0 -15
- package/polkadot-dev-configs/babel-plugins.cjs +0 -21
- package/polkadot-dev-configs/babel-presets.cjs +0 -33
- package/polkadot-dev-configs/babel-resolver.cjs +0 -14
- package/scripts/build.js +0 -134
- package/scripts/publish-types.js +0 -95
- package/scripts/updateMetadata.ts +0 -44
- package/src/examples/job_and_result_submission.ts +0 -203
- package/src/index.ts +0 -7
- package/src/interfaces/augment-api-consts.ts +0 -958
- package/src/interfaces/augment-api-errors.ts +0 -2152
- package/src/interfaces/augment-api-events.ts +0 -1465
- package/src/interfaces/augment-api-query.ts +0 -1629
- package/src/interfaces/augment-api-rpc.ts +0 -617
- package/src/interfaces/augment-api-runtime.ts +0 -308
- package/src/interfaces/augment-api-tx.ts +0 -1550
- package/src/interfaces/augment-api.ts +0 -10
- package/src/interfaces/augment-types.ts +0 -1256
- package/src/interfaces/lookup.ts +0 -5924
- package/src/interfaces/registry.ts +0 -435
- package/src/interfaces/types-lookup.ts +0 -6467
- package/src/metadata/metadata.json +0 -5
- package/src/metadata/static-latest.ts +0 -1
- package/src/metadata/static-type.ts +0 -3
- package/ts-types/playground.d.ts +0 -1
- package/ts-types/src/examples/job_and_result_submission.d.ts +0 -1
- package/ts-types/src/index.d.ts +0 -3
- package/ts-types/src/interfaces/augment-api-consts.d.ts +0 -950
- package/ts-types/src/interfaces/augment-api-errors.d.ts +0 -2144
- package/ts-types/src/interfaces/augment-api-events.d.ts +0 -2281
- package/ts-types/src/interfaces/augment-api-query.d.ts +0 -1660
- package/ts-types/src/interfaces/augment-api-rpc.d.ts +0 -679
- package/ts-types/src/interfaces/augment-api-runtime.d.ts +0 -363
- package/ts-types/src/interfaces/augment-api-tx.d.ts +0 -2876
- package/ts-types/src/interfaces/augment-api.d.ts +0 -7
- package/ts-types/src/interfaces/augment-types.d.ts +0 -1249
- package/ts-types/src/interfaces/lookup.d.ts +0 -5920
- package/ts-types/src/interfaces/registry.d.ts +0 -428
- package/ts-types/src/interfaces/types-lookup.d.ts +0 -6062
- package/ts-types/src/metadata/static-latest.d.ts +0 -2
- package/ts-types/src/metadata/static-type.d.ts +0 -2
- package/ts-types/tsconfig.tsbuildinfo +0 -1
- package/tsconfig.json +0 -36
package/README.md
CHANGED
@@ -4,21 +4,28 @@ This package is meant to be updated alongside changes to the tangle runtime.
|
|
4
4
|
|
5
5
|
The package builds the types against the tangle standalone runtime.
|
6
6
|
|
7
|
-
###
|
7
|
+
### Updating Types
|
8
8
|
|
9
|
-
|
9
|
+
To update the types after modifying the Tangle APIs, follow these steps:
|
10
10
|
|
11
|
-
|
11
|
+
1. Build the `tangle` project with the testnet feature:
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
yarn build:interfaces
|
17
|
-
```
|
13
|
+
```bash
|
14
|
+
cargo build --release --package tangle --features testnet
|
15
|
+
```
|
18
16
|
|
19
|
-
|
17
|
+
2. Ensure you have [Node.js](https://nodejs.org/) version 18 or higher installed.
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
3. Generate the updated TypeScript types by running the `generate-ts-types.js` script:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
node types/scripts/generate-ts-types.js
|
23
|
+
```
|
24
|
+
|
25
|
+
This process will automatically update the TypeScript types to reflect the latest changes in the Tangle APIs.
|
26
|
+
|
27
|
+
### Publishing and consuming types package
|
28
|
+
|
29
|
+
Once the types have been updated, open a new PR on this repository to submit your changes. Remember to update the types package's version. Once the PR is merged into the `master`, a GitHub Actions workflow will automatically publish them to NPM.
|
30
|
+
|
31
|
+
In case that you need to use or prototype the types before they are officially published to NPM, consider installing the package locally and using the local package until its updated version is published to NPM.
|
package/build/index.cjs
ADDED