import{o as s,p as c}from"../../chunk-HWE3WYGL.js";import{Canister as m,createServices as n,toNullable as d}from"@dfinity/utils";import{Principal as y}from"@icp-sdk/core/principal";var o=y.fromText("um5iw-rqaaa-aaaaq-qaaba-cai");var i=class p extends m{static create({canisterId:e,...r}){let{service:t,certifiedService:a,canisterId:l}=n({options:{...r,canisterId:e??o},idlFactory:c,certifiedIdlFactory:s});return new p(l,t,a)}withdraw=async({fromSubaccount:e,createdAtTime:r,...t})=>{let{withdraw:a}=this.caller({certified:!0});return await a({from_subaccount:d(e),created_at_time:d(r),...t})}};export{i as CyclesLedgerCanister};
//# sourceMappingURL=index.js.map
