@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.
Files changed (84) hide show
  1. package/README.md +20 -13
  2. package/build/index.cjs +2 -0
  3. package/build/index.d.ts +19013 -3
  4. package/build/index.mjs +1 -0
  5. package/package.json +37 -52
  6. package/.envrc +0 -5
  7. package/babel-config-cjs.cjs +0 -10
  8. package/build/examples/job_and_result_submission.d.ts +0 -1
  9. package/build/examples/job_and_result_submission.js +0 -230
  10. package/build/index.js +0 -5
  11. package/build/interfaces/augment-api-consts.d.ts +0 -950
  12. package/build/interfaces/augment-api-consts.js +0 -3
  13. package/build/interfaces/augment-api-errors.d.ts +0 -2144
  14. package/build/interfaces/augment-api-errors.js +0 -3
  15. package/build/interfaces/augment-api-events.d.ts +0 -2281
  16. package/build/interfaces/augment-api-events.js +0 -3
  17. package/build/interfaces/augment-api-query.d.ts +0 -1660
  18. package/build/interfaces/augment-api-query.js +0 -3
  19. package/build/interfaces/augment-api-rpc.d.ts +0 -679
  20. package/build/interfaces/augment-api-rpc.js +0 -3
  21. package/build/interfaces/augment-api-runtime.d.ts +0 -363
  22. package/build/interfaces/augment-api-runtime.js +0 -3
  23. package/build/interfaces/augment-api-tx.d.ts +0 -2876
  24. package/build/interfaces/augment-api-tx.js +0 -3
  25. package/build/interfaces/augment-api.d.ts +0 -7
  26. package/build/interfaces/augment-api.js +0 -9
  27. package/build/interfaces/augment-types.d.ts +0 -1249
  28. package/build/interfaces/augment-types.js +0 -3
  29. package/build/interfaces/lookup.d.ts +0 -5920
  30. package/build/interfaces/lookup.js +0 -5928
  31. package/build/interfaces/registry.d.ts +0 -428
  32. package/build/interfaces/registry.js +0 -3
  33. package/build/interfaces/types-lookup.d.ts +0 -6062
  34. package/build/interfaces/types-lookup.js +0 -3
  35. package/build/metadata/static-latest.d.ts +0 -2
  36. package/build/metadata/static-latest.js +0 -7
  37. package/build/metadata/static-type.d.ts +0 -2
  38. package/build/metadata/static-type.js +0 -1
  39. package/build/package.json +0 -1
  40. package/playground.ts +0 -86
  41. package/polkadot-dev-configs/babel-config-cjs.cjs +0 -12
  42. package/polkadot-dev-configs/babel-general.cjs +0 -15
  43. package/polkadot-dev-configs/babel-plugins.cjs +0 -21
  44. package/polkadot-dev-configs/babel-presets.cjs +0 -33
  45. package/polkadot-dev-configs/babel-resolver.cjs +0 -14
  46. package/scripts/build.js +0 -134
  47. package/scripts/publish-types.js +0 -95
  48. package/scripts/updateMetadata.ts +0 -44
  49. package/src/examples/job_and_result_submission.ts +0 -203
  50. package/src/index.ts +0 -7
  51. package/src/interfaces/augment-api-consts.ts +0 -958
  52. package/src/interfaces/augment-api-errors.ts +0 -2152
  53. package/src/interfaces/augment-api-events.ts +0 -1465
  54. package/src/interfaces/augment-api-query.ts +0 -1629
  55. package/src/interfaces/augment-api-rpc.ts +0 -617
  56. package/src/interfaces/augment-api-runtime.ts +0 -308
  57. package/src/interfaces/augment-api-tx.ts +0 -1550
  58. package/src/interfaces/augment-api.ts +0 -10
  59. package/src/interfaces/augment-types.ts +0 -1256
  60. package/src/interfaces/lookup.ts +0 -5924
  61. package/src/interfaces/registry.ts +0 -435
  62. package/src/interfaces/types-lookup.ts +0 -6467
  63. package/src/metadata/metadata.json +0 -5
  64. package/src/metadata/static-latest.ts +0 -1
  65. package/src/metadata/static-type.ts +0 -3
  66. package/ts-types/playground.d.ts +0 -1
  67. package/ts-types/src/examples/job_and_result_submission.d.ts +0 -1
  68. package/ts-types/src/index.d.ts +0 -3
  69. package/ts-types/src/interfaces/augment-api-consts.d.ts +0 -950
  70. package/ts-types/src/interfaces/augment-api-errors.d.ts +0 -2144
  71. package/ts-types/src/interfaces/augment-api-events.d.ts +0 -2281
  72. package/ts-types/src/interfaces/augment-api-query.d.ts +0 -1660
  73. package/ts-types/src/interfaces/augment-api-rpc.d.ts +0 -679
  74. package/ts-types/src/interfaces/augment-api-runtime.d.ts +0 -363
  75. package/ts-types/src/interfaces/augment-api-tx.d.ts +0 -2876
  76. package/ts-types/src/interfaces/augment-api.d.ts +0 -7
  77. package/ts-types/src/interfaces/augment-types.d.ts +0 -1249
  78. package/ts-types/src/interfaces/lookup.d.ts +0 -5920
  79. package/ts-types/src/interfaces/registry.d.ts +0 -428
  80. package/ts-types/src/interfaces/types-lookup.d.ts +0 -6062
  81. package/ts-types/src/metadata/static-latest.d.ts +0 -2
  82. package/ts-types/src/metadata/static-type.d.ts +0 -2
  83. package/ts-types/tsconfig.tsbuildinfo +0 -1
  84. 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
- ### Update Types
7
+ ### Updating Types
8
8
 
9
- In order to update types after making changes to the tangle api do the following:
9
+ To update the types after modifying the Tangle APIs, follow these steps:
10
10
 
11
- - Run a local instance of the appropriate runtime. The types in this package correspond to the tangle standalone runtime.
11
+ 1. Build the `tangle` project with the testnet feature:
12
12
 
13
- - Run the following yarn scripts:
14
- ```
15
- yarn update:metadata
16
- yarn build:interfaces
17
- ```
13
+ ```bash
14
+ cargo build --release --package tangle --features testnet
15
+ ```
18
16
 
19
- ### Building the types package
17
+ 2. Ensure you have [Node.js](https://nodejs.org/) version 18 or higher installed.
20
18
 
21
- After updating the types, run a build for the package with
22
- ```
23
- yarn build
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.
@@ -0,0 +1,2 @@
1
+ require('@polkadot/types/types/registry');
2
+