"use strict";const d=require("./platform-CCG_jgOO.js"),B=require("./unsignedTransaction-DA4tlY5u.js"),b=o=>{const c=o.decode.bind(o),u=o.encode.bind(o);return{decode:c,encode:u}};var f={},a;function x(){if(a)return f;a=1,Object.defineProperty(f,"__esModule",{value:!0});function o(r){{const e=d.Buffer.from(r);e.reverse();const t=e.toString("hex");return t.length===0?BigInt(0):BigInt(`0x${t}`)}}f.toBigIntLE=o;function c(r){{const e=r.toString("hex");return e.length===0?BigInt(0):BigInt(`0x${e}`)}}f.toBigIntBE=c;function u(r,e){{const t=r.toString(16),n=d.Buffer.from(t.padStart(e*2,"0").slice(0,e*2),"hex");return n.reverse(),n}}f.toBufferLE=u;function s(r,e){{const t=r.toString(16);return d.Buffer.from(t.padStart(e*2,"0").slice(0,e*2),"hex")}}return f.toBufferBE=s,f}var g=x();const E=o=>c=>{const u=B.LayoutExports.blob(o,c),{encode:s,decode:r}=b(u),e=u;return e.decode=(t,n)=>{const i=r(t,n);return g.toBigIntLE(d.Buffer.from(i))},e.encode=(t,n,i)=>{const l=g.toBufferLE(t,o);return s(l,n,i)},e},L=E(8),p=o=>{const c=B.LayoutExports.u8(o),{encode:u,decode:s}=b(c),r=c;return r.decode=(e,t)=>!!s(e,t),r.encode=(e,t,n)=>{const i=Number(e);return u(i,t,n)},r},y=o=>{const c=B.LayoutExports.blob(32,o),{encode:u,decode:s}=b(c),r=c;return r.decode=(e,t)=>{const n=s(e,t);return new B.PublicKey(n)},r.encode=(e,t,n)=>{const i=e.toBuffer();return u(i,t,n)},r};exports.bool=p;exports.publicKey=y;exports.u64=L;
