@curiodao/curio-parachain-interfaces
v1.28.0
Published
1. Ensure the chain node **WITH NEW RUNTIME** is running locally. 2. Update `metadata.json` with: `node metadata.mjs [ws-endpoint]` (defaults to `ws://localhost:9811`). 3. Build with: `npm run build`. 4. Update package version so minor and patch versions
Readme
How to update ts-interfaces
- Ensure the chain node WITH NEW RUNTIME is running locally.
- Update
metadata.jsonwith:node metadata.mjs [ws-endpoint](defaults tows://localhost:9811). - Build with:
npm run build. - Update package version so minor and patch versions are equal to such versions of the new runtime.
- Commit and push.
- Publish with
npm publish --access publicif you have permission.
Notes
The runtime must declare
impl_runtime_apis!in the same module scope asconstruct_runtime!(not in a separatemod apis;) — otherwise V15 metadata will have empty runtime APIs.If build fails with errors like
Cannot find name 'SpConsensusSlotsSlotDuration'orCurioParachainRuntimeRuntimeCalland these types are used inaugment-api-runtime.ts, add the missing type aliases tosrc/interfaces/common/definitions.tsundertypes.
