@dfinity/cketh
Version:
A library for interfacing with ckETH.
3 lines (2 loc) • 1.23 kB
JavaScript
import{a as p,b as m,c as d,d as f,e as g,f as l,g as x,h as E,i as h,j as y,k as u,l as T,m as C,n as P,o as M,p as R,q as S,r as v,s as o}from"./chunk-N5XIETXK.js";import{a}from"./chunk-5OCKQCST.js";import{decodeBase32 as s}from"@dfinity/utils";var B=t=>{let r=s(t.toText().replace(/-/g,""));return c(r.slice(4))},i=({stringToAppend:t,bytes:r})=>(t+=(r>>4&15).toString(16),t+=(r&15).toString(16),t),c=t=>{let r=t.length,e="0x";e=i({stringToAppend:e,bytes:r});for(let n=0;n<t.length;n++)e=i({stringToAppend:e,bytes:t[n]});for(let n=0;n<31-t.length;n++)e+="00";return e};export{o as CkETHMinterCanister,a as CkETHOrchestratorCanister,p as DetailedError,M as LedgerAmountTooLowError,u as LedgerError,y as LedgerGenericError,P as LedgerInsufficientAllowanceError,R as LedgerInsufficientFundsError,C as LedgerTemporaryUnavailableError,T as LedgerWithdrawalError,x as MinterAmountTooLowError,d as MinterError,m as MinterGenericError,l as MinterInsufficientAllowanceError,g as MinterInsufficientFundsError,E as MinterRecipientAddressBlockedError,f as MinterTemporaryUnavailableError,h as MinterTokenNotSupported,v as createWithdrawErc20Error,S as createWithdrawEthError,B as encodePrincipalToEthAddress};
//# sourceMappingURL=index.js.map