Files
pezkuwi-api/packages/bizinikiwi-bindings/dist/esm/codecs/metadata/deprecation.mjs
T
pezkuwichain 31467f90d4 feat: add PAPI rebrand packages
- @pezkuwi/papi-utils (rebrand of @polkadot-api/utils)
- @pezkuwi/bizinikiwi-bindings (rebrand of @polkadot-api/substrate-bindings)
- @pezkuwi/metadata-builders (rebrand of @polkadot-api/metadata-builders)
- @pezkuwi/merkleize-metadata (rebrand of @polkadot-api/merkleize-metadata)

All @polkadot-api references replaced with @pezkuwi equivalents.
2026-01-22 15:40:12 +03:00

29 lines
577 B
JavaScript

import { Enum, Struct, _void, Option, str, Vector, u8 } from 'scale-ts';
const itemDeprecation = Enum({
NotDeprecated: _void,
DeprecatedWithoutNote: _void,
Deprecated: Struct({
note: str,
since: Option(str)
})
});
const variantDeprecation = Vector(
Struct({
index: u8,
deprecation: Enum(
{
DeprecatedWithoutNote: _void,
Deprecated: Struct({
note: str,
since: Option(str)
})
},
[1, 2]
)
})
);
export { itemDeprecation, variantDeprecation };
//# sourceMappingURL=deprecation.mjs.map