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
