@circle-fin/smart-contract-platform 10.0.1 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,4 +40,4 @@
40
40
  Private-Lines: `+c+`\r
41
41
  `,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=Oe.util.createBuffer();ta(S,r),ta(S,n),ta(S,a),S.putInt32(i.length()),S.putBuffer(i),S.putInt32(l.length()),S.putBuffer(l);var B=Oe.hmac.create();return B.start("sha1",b),B.update(S.bytes()),s+=`\r
42
42
  Private-MAC: `+B.digest().toHex()+`\r
43
- `,s},gl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Oe.util.createBuffer();return ta(r,a),Wt(r,e.e),Wt(r,e.n),a+" "+Oe.util.encode64(r.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Oe.md.md5.create(),r="ssh-rsa",n=Oe.util.createBuffer();ta(n,r),Wt(n,e.e),Wt(n,e.n),a.start(),a.update(n.getBytes());var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Oe.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function ta(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}var Ec=ee;const n2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),a=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(a)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const a=await f1(e)();if(!a.data?.publicKey)throw new Error("Could not fetch public key");t=a.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return n2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>Lr.randomUUID();var J0="10.0.1";const i2=e=>async({idempotencyKey:t,fee:a,xRequestId:r,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...a.config,...n},r))}catch(s){throw rt(s)?tt(s):s}},s2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(a,t))}catch(r){throw rt(r)?tt(r):r}},o2=e=>async({id:t,xRequestId:a})=>{try{return St(await e.client.ViewUpdate.getContract(t,a))}catch(r){throw rt(r)?tt(r):r}},c2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...r},a))}catch(n){throw rt(n)?tt(n):n}},l2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},u2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.Interact.queryContract(a,t))}catch(r){throw rt(r)?tt(r):r}},p2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.ViewUpdate.updateContract(t,r,a))}catch(n){throw rt(n)?tt(n):n}},d2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.createEventMonitor(a,{idempotencyKey:t??yl(),...r}))}catch(n){throw rt(n)?tt(n):n}},f2=e=>async({xRequestId:t,...a})=>{try{return await e.client.EventMonitors.deleteEventMonitor(a.id,t)}catch(r){throw rt(r)?tt(r):r}},m2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},h2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},v2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,a,r))}catch(n){throw rt(n)?tt(n):n}},g2=e=>async({id:t,idempotencyKey:a,fee:r,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:a??yl(),...r.config,...s},n))}catch(i){throw rt(i)?tt(i):i}},x2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,r,a))}catch(n){throw rt(n)?tt(n):n}};var y2=Object.defineProperty,b2=(e,t,a)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,E2=(e,t,a)=>b2(e,typeof t!="symbol"?t+"":t,a);const hp="https://api.circle.com";class Z0{constructor(t){E2(this,"params");const{apiKey:a,baseUrl:r,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new fy(r??hp,{apiKey:a,version:J0,userAgent:i},o),configurationsClient:new zx(r??hp,{apiKey:a,version:J0,userAgent:i},o),entitySecret:n,storage:s??new g1}}deployContract(t){return i2(this.params)(t)}estimateContractDeploymentFee(t){return s2(this.params)(t)}importContract(t){return c2(this.params)(t)}getContract(t){return o2(this.params)(t)}listContracts(t){return l2(this.params)(t)}updateContract(t){return p2(this.params)(t)}queryContract(t){return u2(this.params)(t)}deployContractTemplate(t){return g2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return x2(this.params)(t)}createEventMonitor(t){return d2(this.params)(t)}listEventMonitors(t){return m2(this.params)(t)}updateEventMonitor(t){return v2(this.params)(t)}deleteEventMonitor(t){return f2(this.params)(t)}listEventLogs(t){return h2(this.params)(t)}}function C2(e){return new Z0(e)}exports.BadGatewayError=wa,exports.BadRequestError=xa,exports.Blockchain=uy,exports.CircleSmartContractPlatformClient=Z0,exports.ConnectionAbortedError=Ra,exports.ConnectionRefusedError=Ba,exports.ConnectionResetError=Ua,exports.ConnectionTimeoutError=_a,exports.DNSNotFoundError=ka,exports.DNSTimeoutError=Na,exports.Error110700=Tu,exports.Error110701=wu,exports.Error110702=Au,exports.Error110703=Iu,exports.Error155101=Pa,exports.Error155102=Oa,exports.Error155103=Fa,exports.Error155104=Ma,exports.Error155105=Va,exports.Error155106=qa,exports.Error155107=ja,exports.Error155108=Ka,exports.Error155109=za,exports.Error155110=Ha,exports.Error155111=$a,exports.Error155112=Ga,exports.Error155113=Qa,exports.Error155114=Wa,exports.Error155115=Xa,exports.Error155116=Ya,exports.Error155117=Ja,exports.Error155118=Za,exports.Error155119=en,exports.Error155120=tn,exports.Error155121=rn,exports.Error155122=an,exports.Error155123=nn,exports.Error155124=sn,exports.Error155130=on,exports.Error155131=cn,exports.Error155132=ln,exports.Error155133=un,exports.Error155134=pn,exports.Error155135=dn,exports.Error155136=fn,exports.Error155137=mn,exports.Error155138=hn,exports.Error155139=vn,exports.Error155140=gn,exports.Error155141=xn,exports.Error155142=yn,exports.Error155143=bn,exports.Error155144=En,exports.Error155145=Cn,exports.Error155146=Sn,exports.Error155150=Tn,exports.Error155151=wn,exports.Error155152=An,exports.Error155154=In,exports.Error155155=Bn,exports.Error155156=_n,exports.Error155157=Rn,exports.Error155158=kn,exports.Error155159=Nn,exports.Error155160=Ln,exports.Error155201=Un,exports.Error155202=Dn,exports.Error155203=Pn,exports.Error155204=On,exports.Error155205=Fn,exports.Error155206=Mn,exports.Error155207=Vn,exports.Error155208=qn,exports.Error155209=jn,exports.Error155210=Kn,exports.Error155211=zn,exports.Error155215=Hn,exports.Error155218=$n,exports.Error155219=Gn,exports.Error155220=Qn,exports.Error155221=Wn,exports.Error155222=Xn,exports.Error155223=Yn,exports.Error155224=Jn,exports.Error155225=Zn,exports.Error155226=ei,exports.Error155227=ti,exports.Error155228=ri,exports.Error155229=ai,exports.Error155230=ni,exports.Error155231=ii,exports.Error155232=si,exports.Error155233=oi,exports.Error155234=ci,exports.Error155235=li,exports.Error155236=ui,exports.Error155237=pi,exports.Error155238=di,exports.Error155239=fi,exports.Error155240=mi,exports.Error155241=hi,exports.Error155242=vi,exports.Error155243=gi,exports.Error155244=xi,exports.Error155245=yi,exports.Error155247=bi,exports.Error155254=Ei,exports.Error155257=Ci,exports.Error155258=Si,exports.Error155262=Ti,exports.Error155264=wi,exports.Error155501=Ai,exports.Error155502=Ii,exports.Error155503=Bi,exports.Error155504=_i,exports.Error155505=Ri,exports.Error155506=ki,exports.Error155507=Ni,exports.Error155508=Li,exports.Error155509=Ui,exports.Error155510=Di,exports.Error155511=Pi,exports.Error155512=Oi,exports.Error155514=Fi,exports.Error155515=Mi,exports.Error155516=Vi,exports.Error155517=qi,exports.Error155601=ji,exports.Error155701=Ki,exports.Error155702=zi,exports.Error155703=Hi,exports.Error155704=$i,exports.Error155705=Gi,exports.Error155706=Qi,exports.Error155707=Wi,exports.Error155708=Xi,exports.Error155709=Yi,exports.Error155710=Ji,exports.Error155711=Zi,exports.Error155712=es,exports.Error155713=ts,exports.Error155714=rs,exports.Error155715=as,exports.Error155716=ns,exports.Error155717=is,exports.Error155718=ss,exports.Error155719=os,exports.Error155720=cs,exports.Error155721=ls,exports.Error155801=us,exports.Error155802=ps,exports.Error155803=ds,exports.Error155804=fs,exports.Error155805=ms,exports.Error155806=hs,exports.Error155807=vs,exports.Error155808=gs,exports.Error156001=xs,exports.Error156002=ys,exports.Error156003=bs,exports.Error156004=Es,exports.Error156005=Cs,exports.Error156006=Ss,exports.Error156007=Ts,exports.Error156008=ws,exports.Error156009=As,exports.Error156010=Is,exports.Error156011=Bs,exports.Error156012=_s,exports.Error156013=Rs,exports.Error156014=ks,exports.Error156015=Ns,exports.Error156016=Ls,exports.Error156017=Us,exports.Error156018=Ds,exports.Error156019=Ps,exports.Error156020=Os,exports.Error156021=Fs,exports.Error156023=Ms,exports.Error156024=Vs,exports.Error156025=qs,exports.Error156026=js,exports.Error156027=Ks,exports.Error156030=zs,exports.Error156031=Hs,exports.Error156032=$s,exports.Error175001=Gs,exports.Error175002=Qs,exports.Error175003=Ws,exports.Error175004=Xs,exports.Error175005=Ys,exports.Error175006=Js,exports.Error175007=Zs,exports.Error175008=eo,exports.Error175009=to,exports.Error175010=ro,exports.Error175011=ao,exports.Error175012=no,exports.Error175013=io,exports.Error175201=so,exports.Error175202=oo,exports.Error175203=co,exports.Error175204=lo,exports.Error175205=uo,exports.Error175301=po,exports.Error175302=fo,exports.Error175303=mo,exports.Error175401=ho,exports.Error175402=vo,exports.Error175403=go,exports.Error175404=xo,exports.Error175405=yo,exports.Error175406=bo,exports.Error175407=Eo,exports.Error175408=Co,exports.Error175409=So,exports.Error175410=To,exports.Error177001=wo,exports.Error177002=Ao,exports.Error177003=Io,exports.Error177004=Bo,exports.Error177005=_o,exports.Error177006=Ro,exports.Error177007=ko,exports.Error177008=No,exports.Error177009=Lo,exports.Error177010=Uo,exports.Error177011=Do,exports.Error177012=Po,exports.Error177013=Oo,exports.Error177014=Fo,exports.Error177015=Mo,exports.Error177016=Vo,exports.Error177017=qo,exports.Error177018=jo,exports.Error177019=Ko,exports.Error177020=zo,exports.Error177021=Ho,exports.Error177022=$o,exports.Error177023=Go,exports.Error177024=Qo,exports.Error177025=Wo,exports.Error177026=Xo,exports.Error177301=Yo,exports.Error177302=Jo,exports.Error177303=Zo,exports.Error177304=ec,exports.Error177305=tc,exports.Error177601=rc,exports.Error177602=ac,exports.Error177603=nc,exports.Error177604=ic,exports.Error177605=sc,exports.Error177606=oc,exports.Error177607=cc,exports.Error177901=lc,exports.ForbiddenError=ba,exports.GatewayTimeoutError=Ia,exports.HostUnreachableError=Da,exports.HttpError=ga,exports.HttpRequestError=Rt,exports.HttpResponseError=E,exports.InternalServerError=Sa,exports.NetworkUnreachableError=La,exports.NotFoundError=Ea,exports.NotImplementedError=Ta,exports.RatelimitError=Ca,exports.ServiceUnavailableError=Aa,exports.UnauthorizedError=ya,exports.defaultBaseUrl=hp,exports.fromAxiosError=tt,exports.initiateSmartContractPlatformClient=C2;
43
+ `,s},gl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Oe.util.createBuffer();return ta(r,a),Wt(r,e.e),Wt(r,e.n),a+" "+Oe.util.encode64(r.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Oe.md.md5.create(),r="ssh-rsa",n=Oe.util.createBuffer();ta(n,r),Wt(n,e.e),Wt(n,e.n),a.start(),a.update(n.getBytes());var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Oe.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function ta(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}var Ec=ee;const n2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),a=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(a)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const a=await f1(e)();if(!a.data?.publicKey)throw new Error("Could not fetch public key");t=a.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return n2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>Lr.randomUUID();var J0="10.1.0";const i2=e=>async({idempotencyKey:t,fee:a,xRequestId:r,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...a.config,...n},r))}catch(s){throw rt(s)?tt(s):s}},s2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(a,t))}catch(r){throw rt(r)?tt(r):r}},o2=e=>async({id:t,xRequestId:a})=>{try{return St(await e.client.ViewUpdate.getContract(t,a))}catch(r){throw rt(r)?tt(r):r}},c2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...r},a))}catch(n){throw rt(n)?tt(n):n}},l2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},u2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.Interact.queryContract(a,t))}catch(r){throw rt(r)?tt(r):r}},p2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.ViewUpdate.updateContract(t,r,a))}catch(n){throw rt(n)?tt(n):n}},d2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.createEventMonitor(a,{idempotencyKey:t??yl(),...r}))}catch(n){throw rt(n)?tt(n):n}},f2=e=>async({xRequestId:t,...a})=>{try{return await e.client.EventMonitors.deleteEventMonitor(a.id,t)}catch(r){throw rt(r)?tt(r):r}},m2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},h2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},v2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,a,r))}catch(n){throw rt(n)?tt(n):n}},g2=e=>async({id:t,idempotencyKey:a,fee:r,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:a??yl(),...r.config,...s},n))}catch(i){throw rt(i)?tt(i):i}},x2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,r,a))}catch(n){throw rt(n)?tt(n):n}};var y2=Object.defineProperty,b2=(e,t,a)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,E2=(e,t,a)=>b2(e,typeof t!="symbol"?t+"":t,a);const hp="https://api.circle.com";class Z0{constructor(t){E2(this,"params");const{apiKey:a,baseUrl:r,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new fy(r??hp,{apiKey:a,version:J0,userAgent:i},o),configurationsClient:new zx(r??hp,{apiKey:a,version:J0,userAgent:i},o),entitySecret:n,storage:s??new g1}}deployContract(t){return i2(this.params)(t)}estimateContractDeploymentFee(t){return s2(this.params)(t)}importContract(t){return c2(this.params)(t)}getContract(t){return o2(this.params)(t)}listContracts(t){return l2(this.params)(t)}updateContract(t){return p2(this.params)(t)}queryContract(t){return u2(this.params)(t)}deployContractTemplate(t){return g2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return x2(this.params)(t)}createEventMonitor(t){return d2(this.params)(t)}listEventMonitors(t){return m2(this.params)(t)}updateEventMonitor(t){return v2(this.params)(t)}deleteEventMonitor(t){return f2(this.params)(t)}listEventLogs(t){return h2(this.params)(t)}}function C2(e){return new Z0(e)}exports.BadGatewayError=wa,exports.BadRequestError=xa,exports.Blockchain=uy,exports.CircleSmartContractPlatformClient=Z0,exports.ConnectionAbortedError=Ra,exports.ConnectionRefusedError=Ba,exports.ConnectionResetError=Ua,exports.ConnectionTimeoutError=_a,exports.DNSNotFoundError=ka,exports.DNSTimeoutError=Na,exports.Error110700=Tu,exports.Error110701=wu,exports.Error110702=Au,exports.Error110703=Iu,exports.Error155101=Pa,exports.Error155102=Oa,exports.Error155103=Fa,exports.Error155104=Ma,exports.Error155105=Va,exports.Error155106=qa,exports.Error155107=ja,exports.Error155108=Ka,exports.Error155109=za,exports.Error155110=Ha,exports.Error155111=$a,exports.Error155112=Ga,exports.Error155113=Qa,exports.Error155114=Wa,exports.Error155115=Xa,exports.Error155116=Ya,exports.Error155117=Ja,exports.Error155118=Za,exports.Error155119=en,exports.Error155120=tn,exports.Error155121=rn,exports.Error155122=an,exports.Error155123=nn,exports.Error155124=sn,exports.Error155130=on,exports.Error155131=cn,exports.Error155132=ln,exports.Error155133=un,exports.Error155134=pn,exports.Error155135=dn,exports.Error155136=fn,exports.Error155137=mn,exports.Error155138=hn,exports.Error155139=vn,exports.Error155140=gn,exports.Error155141=xn,exports.Error155142=yn,exports.Error155143=bn,exports.Error155144=En,exports.Error155145=Cn,exports.Error155146=Sn,exports.Error155150=Tn,exports.Error155151=wn,exports.Error155152=An,exports.Error155154=In,exports.Error155155=Bn,exports.Error155156=_n,exports.Error155157=Rn,exports.Error155158=kn,exports.Error155159=Nn,exports.Error155160=Ln,exports.Error155201=Un,exports.Error155202=Dn,exports.Error155203=Pn,exports.Error155204=On,exports.Error155205=Fn,exports.Error155206=Mn,exports.Error155207=Vn,exports.Error155208=qn,exports.Error155209=jn,exports.Error155210=Kn,exports.Error155211=zn,exports.Error155215=Hn,exports.Error155218=$n,exports.Error155219=Gn,exports.Error155220=Qn,exports.Error155221=Wn,exports.Error155222=Xn,exports.Error155223=Yn,exports.Error155224=Jn,exports.Error155225=Zn,exports.Error155226=ei,exports.Error155227=ti,exports.Error155228=ri,exports.Error155229=ai,exports.Error155230=ni,exports.Error155231=ii,exports.Error155232=si,exports.Error155233=oi,exports.Error155234=ci,exports.Error155235=li,exports.Error155236=ui,exports.Error155237=pi,exports.Error155238=di,exports.Error155239=fi,exports.Error155240=mi,exports.Error155241=hi,exports.Error155242=vi,exports.Error155243=gi,exports.Error155244=xi,exports.Error155245=yi,exports.Error155247=bi,exports.Error155254=Ei,exports.Error155257=Ci,exports.Error155258=Si,exports.Error155262=Ti,exports.Error155264=wi,exports.Error155501=Ai,exports.Error155502=Ii,exports.Error155503=Bi,exports.Error155504=_i,exports.Error155505=Ri,exports.Error155506=ki,exports.Error155507=Ni,exports.Error155508=Li,exports.Error155509=Ui,exports.Error155510=Di,exports.Error155511=Pi,exports.Error155512=Oi,exports.Error155514=Fi,exports.Error155515=Mi,exports.Error155516=Vi,exports.Error155517=qi,exports.Error155601=ji,exports.Error155701=Ki,exports.Error155702=zi,exports.Error155703=Hi,exports.Error155704=$i,exports.Error155705=Gi,exports.Error155706=Qi,exports.Error155707=Wi,exports.Error155708=Xi,exports.Error155709=Yi,exports.Error155710=Ji,exports.Error155711=Zi,exports.Error155712=es,exports.Error155713=ts,exports.Error155714=rs,exports.Error155715=as,exports.Error155716=ns,exports.Error155717=is,exports.Error155718=ss,exports.Error155719=os,exports.Error155720=cs,exports.Error155721=ls,exports.Error155801=us,exports.Error155802=ps,exports.Error155803=ds,exports.Error155804=fs,exports.Error155805=ms,exports.Error155806=hs,exports.Error155807=vs,exports.Error155808=gs,exports.Error156001=xs,exports.Error156002=ys,exports.Error156003=bs,exports.Error156004=Es,exports.Error156005=Cs,exports.Error156006=Ss,exports.Error156007=Ts,exports.Error156008=ws,exports.Error156009=As,exports.Error156010=Is,exports.Error156011=Bs,exports.Error156012=_s,exports.Error156013=Rs,exports.Error156014=ks,exports.Error156015=Ns,exports.Error156016=Ls,exports.Error156017=Us,exports.Error156018=Ds,exports.Error156019=Ps,exports.Error156020=Os,exports.Error156021=Fs,exports.Error156023=Ms,exports.Error156024=Vs,exports.Error156025=qs,exports.Error156026=js,exports.Error156027=Ks,exports.Error156030=zs,exports.Error156031=Hs,exports.Error156032=$s,exports.Error175001=Gs,exports.Error175002=Qs,exports.Error175003=Ws,exports.Error175004=Xs,exports.Error175005=Ys,exports.Error175006=Js,exports.Error175007=Zs,exports.Error175008=eo,exports.Error175009=to,exports.Error175010=ro,exports.Error175011=ao,exports.Error175012=no,exports.Error175013=io,exports.Error175201=so,exports.Error175202=oo,exports.Error175203=co,exports.Error175204=lo,exports.Error175205=uo,exports.Error175301=po,exports.Error175302=fo,exports.Error175303=mo,exports.Error175401=ho,exports.Error175402=vo,exports.Error175403=go,exports.Error175404=xo,exports.Error175405=yo,exports.Error175406=bo,exports.Error175407=Eo,exports.Error175408=Co,exports.Error175409=So,exports.Error175410=To,exports.Error177001=wo,exports.Error177002=Ao,exports.Error177003=Io,exports.Error177004=Bo,exports.Error177005=_o,exports.Error177006=Ro,exports.Error177007=ko,exports.Error177008=No,exports.Error177009=Lo,exports.Error177010=Uo,exports.Error177011=Do,exports.Error177012=Po,exports.Error177013=Oo,exports.Error177014=Fo,exports.Error177015=Mo,exports.Error177016=Vo,exports.Error177017=qo,exports.Error177018=jo,exports.Error177019=Ko,exports.Error177020=zo,exports.Error177021=Ho,exports.Error177022=$o,exports.Error177023=Go,exports.Error177024=Qo,exports.Error177025=Wo,exports.Error177026=Xo,exports.Error177301=Yo,exports.Error177302=Jo,exports.Error177303=Zo,exports.Error177304=ec,exports.Error177305=tc,exports.Error177601=rc,exports.Error177602=ac,exports.Error177603=nc,exports.Error177604=ic,exports.Error177605=sc,exports.Error177606=oc,exports.Error177607=cc,exports.Error177901=lc,exports.ForbiddenError=ba,exports.GatewayTimeoutError=Ia,exports.HostUnreachableError=Da,exports.HttpError=ga,exports.HttpRequestError=Rt,exports.HttpResponseError=E,exports.InternalServerError=Sa,exports.NetworkUnreachableError=La,exports.NotFoundError=Ea,exports.NotImplementedError=Ta,exports.RatelimitError=Ca,exports.ServiceUnavailableError=Aa,exports.UnauthorizedError=ya,exports.defaultBaseUrl=hp,exports.fromAxiosError=tt,exports.initiateSmartContractPlatformClient=C2;
@@ -40,4 +40,4 @@ import Na from"util";import _t,{Readable as tm}from"stream";import gp from"path"
40
40
  Private-Lines: `+c+`\r
41
41
  `,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=Oe.util.createBuffer();er(S,a),er(S,n),er(S,r),S.putInt32(i.length()),S.putBuffer(i),S.putInt32(l.length()),S.putBuffer(l);var B=Oe.hmac.create();return B.start("sha1",b),B.update(S.bytes()),s+=`\r
42
42
  Private-MAC: `+B.digest().toHex()+`\r
43
- `,s},gl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Oe.util.createBuffer();return er(a,r),Wt(a,e.e),Wt(a,e.n),r+" "+Oe.util.encode64(a.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Oe.md.md5.create(),a="ssh-rsa",n=Oe.util.createBuffer();er(n,a),Wt(n,e.e),Wt(n,e.n),r.start(),r.update(n.getBytes());var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Oe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function er(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}var Ec=ee;const s2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),r=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(r)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const r=await h1(e)();if(!r.data?.publicKey)throw new Error("Could not fetch public key");t=r.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return s2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>rm();var J0="10.0.1";const o2=e=>async({idempotencyKey:t,fee:r,xRequestId:a,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...r.config,...n},a))}catch(s){throw at(s)?tt(s):s}},c2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(r,t))}catch(a){throw at(a)?tt(a):a}},l2=e=>async({id:t,xRequestId:r})=>{try{return St(await e.client.ViewUpdate.getContract(t,r))}catch(a){throw at(a)?tt(a):a}},u2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...a},r))}catch(n){throw at(n)?tt(n):n}},p2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},d2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.Interact.queryContract(r,t))}catch(a){throw at(a)?tt(a):a}},f2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.ViewUpdate.updateContract(t,a,r))}catch(n){throw at(n)?tt(n):n}},m2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.createEventMonitor(r,{idempotencyKey:t??yl(),...a}))}catch(n){throw at(n)?tt(n):n}},h2=e=>async({xRequestId:t,...r})=>{try{return await e.client.EventMonitors.deleteEventMonitor(r.id,t)}catch(a){throw at(a)?tt(a):a}},v2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},g2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},x2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,r,a))}catch(n){throw at(n)?tt(n):n}},y2=e=>async({id:t,idempotencyKey:r,fee:a,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:r??yl(),...a.config,...s},n))}catch(i){throw at(i)?tt(i):i}},b2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,a,r))}catch(n){throw at(n)?tt(n):n}};var E2=Object.defineProperty,C2=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S2=(e,t,r)=>C2(e,typeof t!="symbol"?t+"":t,r);const hp="https://api.circle.com";class Z0{constructor(t){S2(this,"params");const{apiKey:r,baseUrl:a,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new hy(a??hp,{apiKey:r,version:J0,userAgent:i},o),configurationsClient:new $x(a??hp,{apiKey:r,version:J0,userAgent:i},o),entitySecret:n,storage:s??new y1}}deployContract(t){return o2(this.params)(t)}estimateContractDeploymentFee(t){return c2(this.params)(t)}importContract(t){return u2(this.params)(t)}getContract(t){return l2(this.params)(t)}listContracts(t){return p2(this.params)(t)}updateContract(t){return f2(this.params)(t)}queryContract(t){return d2(this.params)(t)}deployContractTemplate(t){return y2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return b2(this.params)(t)}createEventMonitor(t){return m2(this.params)(t)}listEventMonitors(t){return v2(this.params)(t)}updateEventMonitor(t){return x2(this.params)(t)}deleteEventMonitor(t){return h2(this.params)(t)}listEventLogs(t){return g2(this.params)(t)}}function T2(e){return new Z0(e)}export{wr as BadGatewayError,xr as BadRequestError,dy as Blockchain,Z0 as CircleSmartContractPlatformClient,Rr as ConnectionAbortedError,Br as ConnectionRefusedError,Ur as ConnectionResetError,_r as ConnectionTimeoutError,kr as DNSNotFoundError,Nr as DNSTimeoutError,Tu as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Pr as Error155101,Or as Error155102,Fr as Error155103,Mr as Error155104,Vr as Error155105,qr as Error155106,jr as Error155107,Kr as Error155108,zr as Error155109,Hr as Error155110,$r as Error155111,Gr as Error155112,Qr as Error155113,Wr as Error155114,Xr as Error155115,Yr as Error155116,Jr as Error155117,Zr as Error155118,en as Error155119,tn as Error155120,an as Error155121,rn as Error155122,nn as Error155123,sn as Error155124,on as Error155130,cn as Error155131,ln as Error155132,un as Error155133,pn as Error155134,dn as Error155135,fn as Error155136,mn as Error155137,hn as Error155138,vn as Error155139,gn as Error155140,xn as Error155141,yn as Error155142,bn as Error155143,En as Error155144,Cn as Error155145,Sn as Error155146,Tn as Error155150,wn as Error155151,An as Error155152,In as Error155154,Bn as Error155155,_n as Error155156,Rn as Error155157,kn as Error155158,Nn as Error155159,Ln as Error155160,Un as Error155201,Dn as Error155202,Pn as Error155203,On as Error155204,Fn as Error155205,Mn as Error155206,Vn as Error155207,qn as Error155208,jn as Error155209,Kn as Error155210,zn as Error155211,Hn as Error155215,$n as Error155218,Gn as Error155219,Qn as Error155220,Wn as Error155221,Xn as Error155222,Yn as Error155223,Jn as Error155224,Zn as Error155225,ei as Error155226,ti as Error155227,ai as Error155228,ri as Error155229,ni as Error155230,ii as Error155231,si as Error155232,oi as Error155233,ci as Error155234,li as Error155235,ui as Error155236,pi as Error155237,di as Error155238,fi as Error155239,mi as Error155240,hi as Error155241,vi as Error155242,gi as Error155243,xi as Error155244,yi as Error155245,bi as Error155247,Ei as Error155254,Ci as Error155257,Si as Error155258,Ti as Error155262,wi as Error155264,Ai as Error155501,Ii as Error155502,Bi as Error155503,_i as Error155504,Ri as Error155505,ki as Error155506,Ni as Error155507,Li as Error155508,Ui as Error155509,Di as Error155510,Pi as Error155511,Oi as Error155512,Fi as Error155514,Mi as Error155515,Vi as Error155516,qi as Error155517,ji as Error155601,Ki as Error155701,zi as Error155702,Hi as Error155703,$i as Error155704,Gi as Error155705,Qi as Error155706,Wi as Error155707,Xi as Error155708,Yi as Error155709,Ji as Error155710,Zi as Error155711,es as Error155712,ts as Error155713,as as Error155714,rs as Error155715,ns as Error155716,is as Error155717,ss as Error155718,os as Error155719,cs as Error155720,ls as Error155721,us as Error155801,ps as Error155802,ds as Error155803,fs as Error155804,ms as Error155805,hs as Error155806,vs as Error155807,gs as Error155808,xs as Error156001,ys as Error156002,bs as Error156003,Es as Error156004,Cs as Error156005,Ss as Error156006,Ts as Error156007,ws as Error156008,As as Error156009,Is as Error156010,Bs as Error156011,_s as Error156012,Rs as Error156013,ks as Error156014,Ns as Error156015,Ls as Error156016,Us as Error156017,Ds as Error156018,Ps as Error156019,Os as Error156020,Fs as Error156021,Ms as Error156023,Vs as Error156024,qs as Error156025,js as Error156026,Ks as Error156027,zs as Error156030,Hs as Error156031,$s as Error156032,Gs as Error175001,Qs as Error175002,Ws as Error175003,Xs as Error175004,Ys as Error175005,Js as Error175006,Zs as Error175007,eo as Error175008,to as Error175009,ao as Error175010,ro as Error175011,no as Error175012,io as Error175013,so as Error175201,oo as Error175202,co as Error175203,lo as Error175204,uo as Error175205,po as Error175301,fo as Error175302,mo as Error175303,ho as Error175401,vo as Error175402,go as Error175403,xo as Error175404,yo as Error175405,bo as Error175406,Eo as Error175407,Co as Error175408,So as Error175409,To as Error175410,wo as Error177001,Ao as Error177002,Io as Error177003,Bo as Error177004,_o as Error177005,Ro as Error177006,ko as Error177007,No as Error177008,Lo as Error177009,Uo as Error177010,Do as Error177011,Po as Error177012,Oo as Error177013,Fo as Error177014,Mo as Error177015,Vo as Error177016,qo as Error177017,jo as Error177018,Ko as Error177019,zo as Error177020,Ho as Error177021,$o as Error177022,Go as Error177023,Qo as Error177024,Wo as Error177025,Xo as Error177026,Yo as Error177301,Jo as Error177302,Zo as Error177303,ec as Error177304,tc as Error177305,ac as Error177601,rc as Error177602,nc as Error177603,ic as Error177604,sc as Error177605,oc as Error177606,cc as Error177607,lc as Error177901,br as ForbiddenError,Ir as GatewayTimeoutError,Dr as HostUnreachableError,gr as HttpError,Rt as HttpRequestError,E as HttpResponseError,Sr as InternalServerError,Lr as NetworkUnreachableError,Er as NotFoundError,Tr as NotImplementedError,Cr as RatelimitError,Ar as ServiceUnavailableError,yr as UnauthorizedError,hp as defaultBaseUrl,tt as fromAxiosError,T2 as initiateSmartContractPlatformClient};
43
+ `,s},gl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Oe.util.createBuffer();return er(a,r),Wt(a,e.e),Wt(a,e.n),r+" "+Oe.util.encode64(a.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Oe.md.md5.create(),a="ssh-rsa",n=Oe.util.createBuffer();er(n,a),Wt(n,e.e),Wt(n,e.n),r.start(),r.update(n.getBytes());var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Oe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function er(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}var Ec=ee;const s2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),r=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(r)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const r=await h1(e)();if(!r.data?.publicKey)throw new Error("Could not fetch public key");t=r.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return s2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>rm();var J0="10.1.0";const o2=e=>async({idempotencyKey:t,fee:r,xRequestId:a,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...r.config,...n},a))}catch(s){throw at(s)?tt(s):s}},c2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(r,t))}catch(a){throw at(a)?tt(a):a}},l2=e=>async({id:t,xRequestId:r})=>{try{return St(await e.client.ViewUpdate.getContract(t,r))}catch(a){throw at(a)?tt(a):a}},u2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...a},r))}catch(n){throw at(n)?tt(n):n}},p2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},d2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.Interact.queryContract(r,t))}catch(a){throw at(a)?tt(a):a}},f2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.ViewUpdate.updateContract(t,a,r))}catch(n){throw at(n)?tt(n):n}},m2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.createEventMonitor(r,{idempotencyKey:t??yl(),...a}))}catch(n){throw at(n)?tt(n):n}},h2=e=>async({xRequestId:t,...r})=>{try{return await e.client.EventMonitors.deleteEventMonitor(r.id,t)}catch(a){throw at(a)?tt(a):a}},v2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},g2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},x2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,r,a))}catch(n){throw at(n)?tt(n):n}},y2=e=>async({id:t,idempotencyKey:r,fee:a,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:r??yl(),...a.config,...s},n))}catch(i){throw at(i)?tt(i):i}},b2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,a,r))}catch(n){throw at(n)?tt(n):n}};var E2=Object.defineProperty,C2=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S2=(e,t,r)=>C2(e,typeof t!="symbol"?t+"":t,r);const hp="https://api.circle.com";class Z0{constructor(t){S2(this,"params");const{apiKey:r,baseUrl:a,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new hy(a??hp,{apiKey:r,version:J0,userAgent:i},o),configurationsClient:new $x(a??hp,{apiKey:r,version:J0,userAgent:i},o),entitySecret:n,storage:s??new y1}}deployContract(t){return o2(this.params)(t)}estimateContractDeploymentFee(t){return c2(this.params)(t)}importContract(t){return u2(this.params)(t)}getContract(t){return l2(this.params)(t)}listContracts(t){return p2(this.params)(t)}updateContract(t){return f2(this.params)(t)}queryContract(t){return d2(this.params)(t)}deployContractTemplate(t){return y2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return b2(this.params)(t)}createEventMonitor(t){return m2(this.params)(t)}listEventMonitors(t){return v2(this.params)(t)}updateEventMonitor(t){return x2(this.params)(t)}deleteEventMonitor(t){return h2(this.params)(t)}listEventLogs(t){return g2(this.params)(t)}}function T2(e){return new Z0(e)}export{wr as BadGatewayError,xr as BadRequestError,dy as Blockchain,Z0 as CircleSmartContractPlatformClient,Rr as ConnectionAbortedError,Br as ConnectionRefusedError,Ur as ConnectionResetError,_r as ConnectionTimeoutError,kr as DNSNotFoundError,Nr as DNSTimeoutError,Tu as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Pr as Error155101,Or as Error155102,Fr as Error155103,Mr as Error155104,Vr as Error155105,qr as Error155106,jr as Error155107,Kr as Error155108,zr as Error155109,Hr as Error155110,$r as Error155111,Gr as Error155112,Qr as Error155113,Wr as Error155114,Xr as Error155115,Yr as Error155116,Jr as Error155117,Zr as Error155118,en as Error155119,tn as Error155120,an as Error155121,rn as Error155122,nn as Error155123,sn as Error155124,on as Error155130,cn as Error155131,ln as Error155132,un as Error155133,pn as Error155134,dn as Error155135,fn as Error155136,mn as Error155137,hn as Error155138,vn as Error155139,gn as Error155140,xn as Error155141,yn as Error155142,bn as Error155143,En as Error155144,Cn as Error155145,Sn as Error155146,Tn as Error155150,wn as Error155151,An as Error155152,In as Error155154,Bn as Error155155,_n as Error155156,Rn as Error155157,kn as Error155158,Nn as Error155159,Ln as Error155160,Un as Error155201,Dn as Error155202,Pn as Error155203,On as Error155204,Fn as Error155205,Mn as Error155206,Vn as Error155207,qn as Error155208,jn as Error155209,Kn as Error155210,zn as Error155211,Hn as Error155215,$n as Error155218,Gn as Error155219,Qn as Error155220,Wn as Error155221,Xn as Error155222,Yn as Error155223,Jn as Error155224,Zn as Error155225,ei as Error155226,ti as Error155227,ai as Error155228,ri as Error155229,ni as Error155230,ii as Error155231,si as Error155232,oi as Error155233,ci as Error155234,li as Error155235,ui as Error155236,pi as Error155237,di as Error155238,fi as Error155239,mi as Error155240,hi as Error155241,vi as Error155242,gi as Error155243,xi as Error155244,yi as Error155245,bi as Error155247,Ei as Error155254,Ci as Error155257,Si as Error155258,Ti as Error155262,wi as Error155264,Ai as Error155501,Ii as Error155502,Bi as Error155503,_i as Error155504,Ri as Error155505,ki as Error155506,Ni as Error155507,Li as Error155508,Ui as Error155509,Di as Error155510,Pi as Error155511,Oi as Error155512,Fi as Error155514,Mi as Error155515,Vi as Error155516,qi as Error155517,ji as Error155601,Ki as Error155701,zi as Error155702,Hi as Error155703,$i as Error155704,Gi as Error155705,Qi as Error155706,Wi as Error155707,Xi as Error155708,Yi as Error155709,Ji as Error155710,Zi as Error155711,es as Error155712,ts as Error155713,as as Error155714,rs as Error155715,ns as Error155716,is as Error155717,ss as Error155718,os as Error155719,cs as Error155720,ls as Error155721,us as Error155801,ps as Error155802,ds as Error155803,fs as Error155804,ms as Error155805,hs as Error155806,vs as Error155807,gs as Error155808,xs as Error156001,ys as Error156002,bs as Error156003,Es as Error156004,Cs as Error156005,Ss as Error156006,Ts as Error156007,ws as Error156008,As as Error156009,Is as Error156010,Bs as Error156011,_s as Error156012,Rs as Error156013,ks as Error156014,Ns as Error156015,Ls as Error156016,Us as Error156017,Ds as Error156018,Ps as Error156019,Os as Error156020,Fs as Error156021,Ms as Error156023,Vs as Error156024,qs as Error156025,js as Error156026,Ks as Error156027,zs as Error156030,Hs as Error156031,$s as Error156032,Gs as Error175001,Qs as Error175002,Ws as Error175003,Xs as Error175004,Ys as Error175005,Js as Error175006,Zs as Error175007,eo as Error175008,to as Error175009,ao as Error175010,ro as Error175011,no as Error175012,io as Error175013,so as Error175201,oo as Error175202,co as Error175203,lo as Error175204,uo as Error175205,po as Error175301,fo as Error175302,mo as Error175303,ho as Error175401,vo as Error175402,go as Error175403,xo as Error175404,yo as Error175405,bo as Error175406,Eo as Error175407,Co as Error175408,So as Error175409,To as Error175410,wo as Error177001,Ao as Error177002,Io as Error177003,Bo as Error177004,_o as Error177005,Ro as Error177006,ko as Error177007,No as Error177008,Lo as Error177009,Uo as Error177010,Do as Error177011,Po as Error177012,Oo as Error177013,Fo as Error177014,Mo as Error177015,Vo as Error177016,qo as Error177017,jo as Error177018,Ko as Error177019,zo as Error177020,Ho as Error177021,$o as Error177022,Go as Error177023,Qo as Error177024,Wo as Error177025,Xo as Error177026,Yo as Error177301,Jo as Error177302,Zo as Error177303,ec as Error177304,tc as Error177305,ac as Error177601,rc as Error177602,nc as Error177603,ic as Error177604,sc as Error177605,oc as Error177606,cc as Error177607,lc as Error177901,br as ForbiddenError,Ir as GatewayTimeoutError,Dr as HostUnreachableError,gr as HttpError,Rt as HttpRequestError,E as HttpResponseError,Sr as InternalServerError,Lr as NetworkUnreachableError,Er as NotFoundError,Tr as NotImplementedError,Cr as RatelimitError,Ar as ServiceUnavailableError,yr as UnauthorizedError,hp as defaultBaseUrl,tt as fromAxiosError,T2 as initiateSmartContractPlatformClient};
@@ -650,11 +650,11 @@ interface ContractDeploymentEstimateRequest {
650
650
  'sourceAddress'?: string;
651
651
  /**
652
652
  * JSON object that contains the template deployment parameters used to initialize the contract(s) on-chain.
653
- * @type {{ [key: string]: string; }}
653
+ * @type {{ [key: string]: any; }}
654
654
  * @memberof ContractDeploymentEstimateRequest
655
655
  */
656
656
  'templateParameters'?: {
657
- [key: string]: string;
657
+ [key: string]: any;
658
658
  };
659
659
  /**
660
660
  * Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source.
@@ -754,13 +754,13 @@ interface ContractDeploymentRequest {
754
754
  */
755
755
  'feeLevel'?: FeeLevel;
756
756
  /**
757
- * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation\'s gasLimit.
757
+ * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. An insufficient gas limit may cause the transaction to fail on-chain. Use this field with care when manually providing values. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` will override the estimation\'s gasLimit.
758
758
  * @type {string}
759
759
  * @memberof ContractDeploymentRequest
760
760
  */
761
761
  'gasLimit'?: string;
762
762
  /**
763
- * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
763
+ * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `gasPrice` based on current network conditions. Requests specifying a `gasPrice` below this minimum will be rejected
764
764
  * @type {string}
765
765
  * @memberof ContractDeploymentRequest
766
766
  */
@@ -772,7 +772,7 @@ interface ContractDeploymentRequest {
772
772
  */
773
773
  'maxFee'?: string;
774
774
  /**
775
- * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
775
+ * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `priorityFee` based on current network conditions. Requests specifying a `priorityFee` below this minimum will be rejected
776
776
  * @type {string}
777
777
  * @memberof ContractDeploymentRequest
778
778
  */
@@ -1177,13 +1177,13 @@ interface EventMonitors {
1177
1177
  */
1178
1178
  interface TransactionFee {
1179
1179
  /**
1180
- * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation\'s gasLimit.
1180
+ * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. An insufficient gas limit may cause the transaction to fail on-chain. Use this field with care when manually providing values. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` will override the estimation\'s gasLimit.
1181
1181
  * @type {string}
1182
1182
  * @memberof TransactionFee
1183
1183
  */
1184
1184
  'gasLimit'?: string;
1185
1185
  /**
1186
- * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
1186
+ * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `gasPrice` based on current network conditions. Requests specifying a `gasPrice` below this minimum will be rejected
1187
1187
  * @type {string}
1188
1188
  * @memberof TransactionFee
1189
1189
  */
@@ -1195,7 +1195,7 @@ interface TransactionFee {
1195
1195
  */
1196
1196
  'maxFee'?: string;
1197
1197
  /**
1198
- * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
1198
+ * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `priorityFee` based on current network conditions. Requests specifying a `priorityFee` below this minimum will be rejected
1199
1199
  * @type {string}
1200
1200
  * @memberof TransactionFee
1201
1201
  */
@@ -1574,11 +1574,11 @@ interface TemplateContractDeploymentRequest {
1574
1574
  'entitySecretCiphertext': string;
1575
1575
  /**
1576
1576
  * JSON object that contains the template deployment parameters used to initialize the contract(s) on-chain.
1577
- * @type {{ [key: string]: string; }}
1577
+ * @type {{ [key: string]: any; }}
1578
1578
  * @memberof TemplateContractDeploymentRequest
1579
1579
  */
1580
1580
  'templateParameters'?: {
1581
- [key: string]: string;
1581
+ [key: string]: any;
1582
1582
  };
1583
1583
  /**
1584
1584
  *
@@ -1587,13 +1587,13 @@ interface TemplateContractDeploymentRequest {
1587
1587
  */
1588
1588
  'feeLevel'?: FeeLevel;
1589
1589
  /**
1590
- * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation\'s gasLimit.
1590
+ * The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. An insufficient gas limit may cause the transaction to fail on-chain. Use this field with care when manually providing values. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` will override the estimation\'s gasLimit.
1591
1591
  * @type {string}
1592
1592
  * @memberof TemplateContractDeploymentRequest
1593
1593
  */
1594
1594
  'gasLimit'?: string;
1595
1595
  /**
1596
- * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
1596
+ * For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `gasPrice` based on current network conditions. Requests specifying a `gasPrice` below this minimum will be rejected
1597
1597
  * @type {string}
1598
1598
  * @memberof TemplateContractDeploymentRequest
1599
1599
  */
@@ -1605,7 +1605,7 @@ interface TemplateContractDeploymentRequest {
1605
1605
  */
1606
1606
  'maxFee'?: string;
1607
1607
  /**
1608
- * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API.
1608
+ * For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. The wallet service enforces a dynamic minimum `priorityFee` based on current network conditions. Requests specifying a `priorityFee` below this minimum will be rejected
1609
1609
  * @type {string}
1610
1610
  * @memberof TemplateContractDeploymentRequest
1611
1611
  */
@@ -8,6 +8,16 @@ export { AbiParametersInner, Blockchain, Contract, ContractDeployment, ContractD
8
8
  export { BadRequestResponse, CreateMonitoredTokensRequest, CreateSubscriptionRequest, DeleteMonitoredTokensRequest, EntityConfig, EntityConfigData, FaucetRequest, ModelError, MonitoredTokens, MonitoredTokensData, NotAuthorizedResponse, NotFoundResponse, NotificationSignaturePublicKey, NotificationSignaturePublicKeyData, NotificationType, Ping, PublicKey, PublicKeyData, Subscription, SubscriptionResponse, Subscriptions, TestnetBlockchain, Token, TokenMonitorScope, TokenStandard, UpdateMonitoredTokensRequest, UpdateMonitoredTokensScopeRequest, UpdateSubscriptionRequest } from './clients/configurations';
9
9
  export * from './clients/core/src/errors/circleApiErrors';
10
10
 
11
+ /**
12
+ * Represents a primitive JSON value.
13
+ */
14
+ type JsonPrimitive = string | number | boolean | null;
15
+ /**
16
+ * Represents any valid JSON value including nested objects and arrays.
17
+ */
18
+ type JsonValue = JsonPrimitive | JsonValue[] | {
19
+ [key: string]: JsonValue;
20
+ };
11
21
  /**
12
22
  * Type of the data that is stored.
13
23
  */
@@ -253,7 +263,7 @@ type DeployContractTemplateInput = {
253
263
  /**
254
264
  * JSON object that contains the template deployment parameters used to initialize the contract(s) on-chain.
255
265
  */
256
- templateParameters?: Record<string, string>;
266
+ templateParameters?: Record<string, JsonValue>;
257
267
  /**
258
268
  * Configuration that determines the fees that will be paid.
259
269
  */
@@ -282,7 +292,7 @@ type EstimateContractTemplateDeploymentFeeInput = {
282
292
  /**
283
293
  * JSON object that contains the template deployment parameters used to initialize the contract(s) on-chain.
284
294
  */
285
- templateParameters: Record<string, string>;
295
+ templateParameters: Record<string, JsonValue>;
286
296
  /**
287
297
  * Unique identifier of the wallet that will deploy the contract.
288
298
  */
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "build": "node ./../../packages/rollup/build.js",
17
17
  "release": "npm publish --access public"
18
18
  },
19
- "version": "10.0.1",
19
+ "version": "10.1.0",
20
20
  "devDependencies": {
21
21
  "@rollup/plugin-typescript": "^11.1.4",
22
22
  "@shared/clients": "*",