mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-22 09:07: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.
16 lines
372 B
JavaScript
16 lines
372 B
JavaScript
import { fromHex } from '@pezkuwi/papi-utils';
|
|
|
|
const toBytes = (input) => typeof input === "string" ? fromHex(input) : input;
|
|
const compactTypeRefs = {
|
|
null: "void",
|
|
u8: "compactU8",
|
|
u16: "compactU16",
|
|
u32: "compactU32",
|
|
u64: "compactU64",
|
|
u128: "compactU128",
|
|
u256: "compactU256"
|
|
};
|
|
|
|
export { compactTypeRefs, toBytes };
|
|
//# sourceMappingURL=utils.mjs.map
|