mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 03:17:56 +00:00
31467f90d4
- @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.
29 lines
577 B
JavaScript
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
|