@circle-fin/user-controlled-wallets 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.
@@ -781,13 +781,13 @@ interface CreateContractExecutionTransactionForEndUserRequest {
781
781
  */
782
782
  'feeLevel'?: FeeLevel;
783
783
  /**
784
- * 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.
784
+ * 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.
785
785
  * @type {string}
786
786
  * @memberof CreateContractExecutionTransactionForEndUserRequest
787
787
  */
788
788
  'gasLimit'?: string;
789
789
  /**
790
- * 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.
790
+ * 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
791
791
  * @type {string}
792
792
  * @memberof CreateContractExecutionTransactionForEndUserRequest
793
793
  */
@@ -799,7 +799,7 @@ interface CreateContractExecutionTransactionForEndUserRequest {
799
799
  */
800
800
  'maxFee'?: string;
801
801
  /**
802
- * 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.
802
+ * 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
803
803
  * @type {string}
804
804
  * @memberof CreateContractExecutionTransactionForEndUserRequest
805
805
  */
@@ -993,13 +993,13 @@ interface CreateTransferTransactionForEndUserRequest {
993
993
  */
994
994
  'feeLevel'?: FeeLevel;
995
995
  /**
996
- * 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.
996
+ * 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.
997
997
  * @type {string}
998
998
  * @memberof CreateTransferTransactionForEndUserRequest
999
999
  */
1000
1000
  'gasLimit'?: string;
1001
1001
  /**
1002
- * 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.
1002
+ * 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
1003
1003
  * @type {string}
1004
1004
  * @memberof CreateTransferTransactionForEndUserRequest
1005
1005
  */
@@ -1011,7 +1011,7 @@ interface CreateTransferTransactionForEndUserRequest {
1011
1011
  */
1012
1012
  'maxFee'?: string;
1013
1013
  /**
1014
- * 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.
1014
+ * 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
1015
1015
  * @type {string}
1016
1016
  * @memberof CreateTransferTransactionForEndUserRequest
1017
1017
  */
@@ -1139,13 +1139,13 @@ interface CreateWalletUpgradeTransactionForEndUserRequest {
1139
1139
  */
1140
1140
  'feeLevel'?: FeeLevel;
1141
1141
  /**
1142
- * 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.
1142
+ * 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.
1143
1143
  * @type {string}
1144
1144
  * @memberof CreateWalletUpgradeTransactionForEndUserRequest
1145
1145
  */
1146
1146
  'gasLimit'?: string;
1147
1147
  /**
1148
- * 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.
1148
+ * 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
1149
1149
  * @type {string}
1150
1150
  * @memberof CreateWalletUpgradeTransactionForEndUserRequest
1151
1151
  */
@@ -1157,7 +1157,7 @@ interface CreateWalletUpgradeTransactionForEndUserRequest {
1157
1157
  */
1158
1158
  'maxFee'?: string;
1159
1159
  /**
1160
- * 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.
1160
+ * 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
1161
1161
  * @type {string}
1162
1162
  * @memberof CreateWalletUpgradeTransactionForEndUserRequest
1163
1163
  */
@@ -1684,13 +1684,13 @@ interface EstimateContractExecutionTransactionFeeRequest {
1684
1684
  */
1685
1685
  interface TransactionFee {
1686
1686
  /**
1687
- * 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.
1687
+ * 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.
1688
1688
  * @type {string}
1689
1689
  * @memberof TransactionFee
1690
1690
  */
1691
1691
  'gasLimit'?: string;
1692
1692
  /**
1693
- * 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.
1693
+ * 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
1694
1694
  * @type {string}
1695
1695
  * @memberof TransactionFee
1696
1696
  */
@@ -1702,7 +1702,7 @@ interface TransactionFee {
1702
1702
  */
1703
1703
  'maxFee'?: string;
1704
1704
  /**
1705
- * 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.
1705
+ * 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
1706
1706
  * @type {string}
1707
1707
  * @memberof TransactionFee
1708
1708
  */
@@ -40,4 +40,4 @@
40
40
  Private-Lines: `+c+`\r
41
41
  `,s+=u;var b=yl("putty-private-key-file-mac-key",t),C=Qe.util.createBuffer();na(C,r),na(C,n),na(C,a),C.putInt32(i.length()),C.putBuffer(i),C.putInt32(l.length()),C.putBuffer(l);var I=Qe.hmac.create();return I.start("sha1",b),I.update(C.bytes()),s+=`\r
42
42
  Private-MAC: `+I.digest().toHex()+`\r
43
- `,s},xl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Qe.util.createBuffer();return na(r,a),Jt(r,e.e),Jt(r,e.n),a+" "+Qe.util.encode64(r.bytes())+" "+t},xl.privateKeyToOpenSSH=function(e,t){return t?Qe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Qe.pki.privateKeyToPem(e)},xl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Qe.md.md5.create(),r="ssh-rsa",n=Qe.util.createBuffer();na(n,r),Jt(n,e.e),Jt(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 Jt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Qe.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function na(e,t){e.putInt32(t.length),e.putString(t)}function yl(){for(var e=Qe.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}const Ut=()=>Or.randomUUID(),bT=({configurationsClient:e})=>async t=>{try{return await e.Faucet.requestTestnetTokens(void 0,t)}catch(a){throw ee(a)?J(a):a}};var Y0="10.0.1";const J0=({client:e})=>async({xRequestId:t,...a})=>{try{return re(await e.PINAuthentication.getUserToken({...a},t))}catch(r){throw ee(r)?J(r):r}},Ke=async(e,t,a=!1)=>{let r;return e.storage&&(r=await e.storage.get("userToken:"+t)),(!r||r.expirationTime<=Date.now()||a)&&r?.userToken===void 0?await ET(e,t):r.userToken};async function ET(e,t){const a=await J0(e)({userId:t});if(!a.data?.userToken)throw new Error("Could not fetch user token");return e.storage&&await e.storage.set("userToken:"+t,{...a.data,expirationTime:Date.now()+50*60*1e3}),a.data.userToken}const CT=e=>async({userToken:t,userId:a,idempotencyKey:r,xRequestId:n})=>{try{return re(await e.client.PINAuthentication.createUserPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()},n))}catch(s){throw ee(s)?J(s):s}},TT=e=>async({userToken:t,userId:a,idempotencyKey:r,accountType:n="EOA",xRequestId:s,...i})=>{try{return re(await e.client.Users.createUserWithPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},ST=e=>async({userToken:t,userId:a,idempotencyKey:r,xRequestId:n})=>{try{return re(await e.client.PINAuthentication.createUserPinRestoreChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()},n))}catch(s){throw ee(s)?J(s):s}},wT=e=>async({userToken:t,userId:a,idempotencyKey:r})=>{try{return re(await e.client.PINAuthentication.updateUserPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()}))}catch(n){throw ee(n)?J(n):n}},AT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserMessage(t??await Ke(e,a),n,r))}catch(s){throw ee(s)?J(s):s}},IT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserTransaction(t??await Ke(e,a),{...n},r))}catch(s){throw ee(s)?J(s):s}},BT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserTypedData(t??await Ke(e,a),n,r))}catch(s){throw ee(s)?J(s):s}},kT=({client:e})=>async({id:t})=>{try{return re(await e.TokenLookup.getTokenId(t))}catch(a){throw ee(a)?J(a):a}},RT=e=>async({userToken:t,userId:a,id:r,idempotencyKey:n,xRequestId:s})=>{try{return re(await e.client.Transactions.createUserTransactionAccelerateChallenge(t??await Ke(e,a),r,{idempotencyKey:n??Ut()},s))}catch(i){throw ee(i)?J(i):i}},_T=e=>async({userToken:t,userId:a,id:r,idempotencyKey:n,xRequestId:s})=>{try{return re(await e.client.Transactions.createUserTransactionCancelChallenge(t??await Ke(e,a),r,{idempotencyKey:n??Ut()},s))}catch(i){throw ee(i)?J(i):i}},UT=e=>async({userToken:t,userId:a,idempotencyKey:r,fee:n,xRequestId:s,...i})=>{try{return re(await e.client.Transactions.createUserTransactionTransferChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},NT=e=>async({userToken:t,userId:a,idempotencyKey:r,fee:n,xRequestId:s,...i})=>{try{return re(await e.client.Transactions.createUserTransactionContractExecutionChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},LT=e=>async({userId:t,userToken:a,source:r,xRequestId:n,...s})=>{try{return re(await e.client.Transactions.createTransactionEstimateFee(a??await Ke(e,t),{...s,...r},n))}catch(i){throw ee(i)?J(i):i}},PT=e=>async({userToken:t,userId:a,amount:r,xRequestId:n,...s})=>{try{return re(await e.client.Transactions.createTransferEstimateFee(t??await Ke(e,a),{amounts:r,...s},n))}catch(i){throw ee(i)?J(i):i}},OT=e=>async({id:t,userToken:a,userId:r,txType:n,xRequestId:s})=>{try{return re(await e.client.Transactions.getTransaction(t,a??await Ke(e,r),n,s))}catch(i){throw ee(i)?J(i):i}},DT=({client:e})=>async({blockchain:t,address:a,walletId:r,xRequestId:n}={})=>{try{return re(await e.Transactions.getLowestNonceTransaction(t,a,r,{headers:n?{"X-Request-Id":n}:void 0}))}catch(s){throw ee(s)?J(s):s}},FT=e=>async({userToken:t,blockchain:a,destinationAddress:r,includeAll:n,operation:s,state:i,txHash:o,txType:c,userId:l,walletIds:u,from:p,pageAfter:d,pageBefore:x,pageSize:h,to:y,order:b,xRequestId:C})=>{try{return re(await e.client.Transactions.listTransactions(t??await Ke(e,l),a,r,n,s,i,o,c,l,u?.join(","),p,y,x,d,h,b,C))}catch(I){throw ee(I)?J(I):I}},VT=({client:e})=>async t=>{try{return re(await e.Transactions.createValidateAddress(t))}catch(a){throw ee(a)?J(a):a}},qT=({client:e})=>async({...t})=>{try{return re(await e.PINAuthentication.createUser({...t}))}catch(a){throw ee(a)?J(a):a}},MT=e=>async({userToken:t,idempotencyKey:a,userId:r,xRequestId:n,...s})=>{try{return re(await e.client.SocialEmailAuthentication.resendOTP(t??await Ke(e,r),{idempotencyKey:a??Ut(),...s},n))}catch(i){throw ee(i)?J(i):i}},jT=({client:e})=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return re(await e.SocialEmailAuthentication.createDeviceTokenEmailLogin({idempotencyKey:t??Ut(),...r},a))}catch(n){throw ee(n)?J(n):n}},KT=({client:e})=>async({userId:t,xRequestId:a})=>{try{return re(await e.Users.getUser(t,a))}catch(r){throw ee(r)?J(r):r}},zT=({client:e})=>async({userToken:t,xRequestId:a})=>{try{return re(await e.Users.getUserByToken(t,a))}catch(r){throw ee(r)?J(r):r}},HT=({client:e})=>async({userToken:t,challengeId:a,xRequestId:r})=>{try{return re(await e.Users.getUserChallenge(t,a,r))}catch(n){throw ee(n)?J(n):n}},$T=({client:e})=>async({pinStatus:t,securityQuestionStatus:a,from:r,to:n,pageBefore:s,pageAfter:i,pageSize:o,order:c,xRequestId:l}={})=>{try{return re(await e.Users.listUsers(t,a,r,n,s,i,o,c,l))}catch(u){throw ee(u)?J(u):u}},GT=({client:e})=>async({userToken:t,challengeStatus:a,xRequestId:r})=>{try{return re(await e.Users.listUserChallenges(t,a,r))}catch(n){throw ee(n)?J(n):n}},WT=e=>async({userId:t,userToken:a,deviceId:r,idempotencyKey:n,refreshToken:s,xRequestId:i})=>{try{return re(await e.client.SocialEmailAuthentication.refreshUserToken(a??await Ke(e,t),{idempotencyKey:n??Ut(),refreshToken:s,deviceId:r},i))}catch(o){throw ee(o)?J(o):o}},XT=({client:e})=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return re(await e.SocialEmailAuthentication.createDeviceTokenSocialLogin({idempotencyKey:t??Ut(),...r},a))}catch(n){throw ee(n)?J(n):n}},QT=e=>async({userToken:t,userId:a,idempotencyKey:r,accountType:n="EOA",xRequestId:s,...i})=>{try{return re(await e.client.Wallets.createUserWallet(t??await Ke(e,a),{idempotencyKey:r??Ut(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},YT=e=>async({id:t,userToken:a,userId:r,xRequestId:n})=>{try{return re(await e.client.Wallets.getWallet(t,a??await Ke(e,r),n))}catch(s){throw ee(s)?J(s):s}},JT=e=>async({walletId:t,userToken:a,userId:r,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return re(await e.client.Wallets.listWalletNfts(a??await Ke(e,r),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},ZT=e=>async({walletId:t,userToken:a,userId:r,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return re(await e.client.Wallets.listWalletBalance(a??await Ke(e,r),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},e2=e=>async({userId:t,userToken:a,address:r,blockchain:n,from:s,pageAfter:i,pageBefore:o,pageSize:c,to:l,walletSetId:u,refId:p,scaCore:d,order:x,xRequestId:h})=>{try{return re(await e.client.Wallets.listWallets(a??await Ke(e,t),r,n,d,u,p,s,l,o,i,c,x,h))}catch(y){throw ee(y)?J(y):y}},t2=e=>async({id:t,name:a,refId:r,userToken:n,userId:s})=>{try{return re(await e.client.Wallets.updateWallet(t,n??await Ke(e,s),{name:a,refId:r}))}catch(i){throw ee(i)?J(i):i}};var r2=Object.defineProperty,a2=(e,t,a)=>t in e?r2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,n2=(e,t,a)=>a2(e,typeof t!="symbol"?t+"":t,a);const mp="https://api.circle.com";class Z0{constructor(t){n2(this,"params");const{apiKey:a,baseUrl:r,storage:n,userAgent:s,headers:i}=t;this.params={client:new yy(r??mp,{apiKey:a,version:Y0,userAgent:s},i),configurationsClient:new zx(r??mp,{apiKey:a,version:Y0,userAgent:s},i),storage:n??new N1}}createUserPin(t){return CT(this.params)(t)}createUserPinWithWallets(t){return TT(this.params)(t)}updateUserPin(t){return wT(this.params)(t)}restoreUserPin(t){return ST(this.params)(t)}createDeviceTokenForEmailLogin(t){return jT(this.params)(t)}createDeviceTokenForSocialLogin(t){return XT(this.params)(t)}refreshUserToken(t){return WT(this.params)(t)}resendOTP(t){return MT(this.params)(t)}createWallet(t){return QT(this.params)(t)}listWallets(t){return e2(this.params)(t)}getWallet(t){return YT(this.params)(t)}updateWallet(t){return t2(this.params)(t)}getWalletTokenBalance(t){return ZT(this.params)(t)}getWalletNFTBalance(t){return JT(this.params)(t)}accelerateTransaction(t){return RT(this.params)(t)}createTransaction(t){return UT(this.params)(t)}cancelTransaction(t){return _T(this.params)(t)}getTransaction(t){return OT(this.params)(t)}listTransactions(t){return FT(this.params)(t)}estimateContractExecutionFee(t){return LT(this.params)(t)}createUserTransactionContractExecutionChallenge(t){return NT(this.params)(t)}estimateTransferFee(t){return PT(this.params)(t)}validateAddress(t){return VT(this.params)(t)}getLowestNonceTransaction(t){return DT(this.params)(t)}createUser(t){return qT(this.params)(t)}getUser(t){return KT(this.params)(t)}getUserStatus(t){return zT(this.params)(t)}listUsers(t){return $T(this.params)(t)}createUserToken(t){return J0(this.params)(t)}getUserChallenge(t){return HT(this.params)(t)}listUserChallenges(t){return GT(this.params)(t)}getToken(t){return kT(this.params)(t)}signMessage(t){return AT(this.params)(t)}signTransaction(t){return IT(this.params)(t)}signTypedData(t){return BT(this.params)(t)}requestTestnetTokens(t){return bT(this.params)(t)}createMonitoredTokens(t){return y1(this.params)(t)}updateMonitoredTokens(t){return C1(this.params)(t)}listMonitoredTokens(t){return E1(this.params)(t)}deleteMonitoredTokens(t){return b1(this.params)(t)}updateMonitoredTokensScope(t){return T1(this.params)(t)}createSubscription(t){return S1(this.params)(t)}deleteSubscription(t){return w1(this.params)(t)}getSubscription(t){return A1(this.params)(t)}getNotificationSignature(t){return I1(this.params)(t)}listSubscriptions(){return B1(this.params)()}updateSubscription(t){return k1(this.params)(t)}}function i2(e){return new Z0(e)}exports.BadGatewayError=Ia,exports.BadRequestError=ba,exports.Blockchain=vy,exports.CircleUserControlledWalletsClient=Z0,exports.ConnectionAbortedError=Ua,exports.ConnectionRefusedError=Ra,exports.ConnectionResetError=Oa,exports.ConnectionTimeoutError=_a,exports.DNSNotFoundError=Na,exports.DNSTimeoutError=La,exports.Error110700=Su,exports.Error110701=wu,exports.Error110702=Au,exports.Error110703=Iu,exports.Error155101=Fa,exports.Error155102=Va,exports.Error155103=qa,exports.Error155104=Ma,exports.Error155105=ja,exports.Error155106=Ka,exports.Error155107=za,exports.Error155108=Ha,exports.Error155109=$a,exports.Error155110=Ga,exports.Error155111=Wa,exports.Error155112=Xa,exports.Error155113=Qa,exports.Error155114=Ya,exports.Error155115=Ja,exports.Error155116=Za,exports.Error155117=en,exports.Error155118=tn,exports.Error155119=rn,exports.Error155120=an,exports.Error155121=nn,exports.Error155122=sn,exports.Error155123=on,exports.Error155124=cn,exports.Error155130=ln,exports.Error155131=un,exports.Error155132=pn,exports.Error155133=dn,exports.Error155134=fn,exports.Error155135=hn,exports.Error155136=mn,exports.Error155137=vn,exports.Error155138=gn,exports.Error155139=xn,exports.Error155140=yn,exports.Error155141=bn,exports.Error155142=En,exports.Error155143=Cn,exports.Error155144=Tn,exports.Error155145=Sn,exports.Error155146=wn,exports.Error155150=An,exports.Error155151=In,exports.Error155152=Bn,exports.Error155154=kn,exports.Error155155=Rn,exports.Error155156=_n,exports.Error155157=Un,exports.Error155158=Nn,exports.Error155159=Ln,exports.Error155160=Pn,exports.Error155201=On,exports.Error155202=Dn,exports.Error155203=Fn,exports.Error155204=Vn,exports.Error155205=qn,exports.Error155206=Mn,exports.Error155207=jn,exports.Error155208=Kn,exports.Error155209=zn,exports.Error155210=Hn,exports.Error155211=$n,exports.Error155215=Gn,exports.Error155218=Wn,exports.Error155219=Xn,exports.Error155220=Qn,exports.Error155221=Yn,exports.Error155222=Jn,exports.Error155223=Zn,exports.Error155224=ei,exports.Error155225=ti,exports.Error155226=ri,exports.Error155227=ai,exports.Error155228=ni,exports.Error155229=ii,exports.Error155230=si,exports.Error155231=oi,exports.Error155232=ci,exports.Error155233=li,exports.Error155234=ui,exports.Error155235=pi,exports.Error155236=di,exports.Error155237=fi,exports.Error155238=hi,exports.Error155239=mi,exports.Error155240=vi,exports.Error155241=gi,exports.Error155242=xi,exports.Error155243=yi,exports.Error155244=bi,exports.Error155245=Ei,exports.Error155247=Ci,exports.Error155254=Ti,exports.Error155257=Si,exports.Error155258=wi,exports.Error155262=Ai,exports.Error155264=Ii,exports.Error155501=Bi,exports.Error155502=ki,exports.Error155503=Ri,exports.Error155504=_i,exports.Error155505=Ui,exports.Error155506=Ni,exports.Error155507=Li,exports.Error155508=Pi,exports.Error155509=Oi,exports.Error155510=Di,exports.Error155511=Fi,exports.Error155512=Vi,exports.Error155514=qi,exports.Error155515=Mi,exports.Error155516=ji,exports.Error155517=Ki,exports.Error155601=zi,exports.Error155701=Hi,exports.Error155702=$i,exports.Error155703=Gi,exports.Error155704=Wi,exports.Error155705=Xi,exports.Error155706=Qi,exports.Error155707=Yi,exports.Error155708=Ji,exports.Error155709=Zi,exports.Error155710=es,exports.Error155711=ts,exports.Error155712=rs,exports.Error155713=as,exports.Error155714=ns,exports.Error155715=is,exports.Error155716=ss,exports.Error155717=os,exports.Error155718=cs,exports.Error155719=ls,exports.Error155720=us,exports.Error155721=ps,exports.Error155801=ds,exports.Error155802=fs,exports.Error155803=hs,exports.Error155804=ms,exports.Error155805=vs,exports.Error155806=gs,exports.Error155807=xs,exports.Error155808=ys,exports.Error156001=bs,exports.Error156002=Es,exports.Error156003=Cs,exports.Error156004=Ts,exports.Error156005=Ss,exports.Error156006=ws,exports.Error156007=As,exports.Error156008=Is,exports.Error156009=Bs,exports.Error156010=ks,exports.Error156011=Rs,exports.Error156012=_s,exports.Error156013=Us,exports.Error156014=Ns,exports.Error156015=Ls,exports.Error156016=Ps,exports.Error156017=Os,exports.Error156018=Ds,exports.Error156019=Fs,exports.Error156020=Vs,exports.Error156021=qs,exports.Error156023=Ms,exports.Error156024=js,exports.Error156025=Ks,exports.Error156026=zs,exports.Error156027=Hs,exports.Error156030=$s,exports.Error156031=Gs,exports.Error156032=Ws,exports.Error175001=Xs,exports.Error175002=Qs,exports.Error175003=Ys,exports.Error175004=Js,exports.Error175005=Zs,exports.Error175006=eo,exports.Error175007=to,exports.Error175008=ro,exports.Error175009=ao,exports.Error175010=no,exports.Error175011=io,exports.Error175012=so,exports.Error175013=oo,exports.Error175201=co,exports.Error175202=lo,exports.Error175203=uo,exports.Error175204=po,exports.Error175205=fo,exports.Error175301=ho,exports.Error175302=mo,exports.Error175303=vo,exports.Error175401=go,exports.Error175402=xo,exports.Error175403=yo,exports.Error175404=bo,exports.Error175405=Eo,exports.Error175406=Co,exports.Error175407=To,exports.Error175408=So,exports.Error175409=wo,exports.Error175410=Ao,exports.Error177001=Io,exports.Error177002=Bo,exports.Error177003=ko,exports.Error177004=Ro,exports.Error177005=_o,exports.Error177006=Uo,exports.Error177007=No,exports.Error177008=Lo,exports.Error177009=Po,exports.Error177010=Oo,exports.Error177011=Do,exports.Error177012=Fo,exports.Error177013=Vo,exports.Error177014=qo,exports.Error177015=Mo,exports.Error177016=jo,exports.Error177017=Ko,exports.Error177018=zo,exports.Error177019=Ho,exports.Error177020=$o,exports.Error177021=Go,exports.Error177022=Wo,exports.Error177023=Xo,exports.Error177024=Qo,exports.Error177025=Yo,exports.Error177026=Jo,exports.Error177301=Zo,exports.Error177302=ec,exports.Error177303=tc,exports.Error177304=rc,exports.Error177305=ac,exports.Error177601=nc,exports.Error177602=ic,exports.Error177603=sc,exports.Error177604=oc,exports.Error177605=cc,exports.Error177606=lc,exports.Error177607=uc,exports.Error177901=pc,exports.ForbiddenError=Ca,exports.GatewayTimeoutError=ka,exports.HostUnreachableError=Da,exports.HttpError=ya,exports.HttpRequestError=Nt,exports.HttpResponseError=E,exports.InternalServerError=wa,exports.NetworkUnreachableError=Pa,exports.NotFoundError=Ta,exports.NotImplementedError=Aa,exports.RatelimitError=Sa,exports.ServiceUnavailableError=Ba,exports.UnauthorizedError=Ea,exports.defaultBaseUrl=mp,exports.fromAxiosError=J,exports.initiateUserControlledWalletsClient=i2;
43
+ `,s},xl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Qe.util.createBuffer();return na(r,a),Jt(r,e.e),Jt(r,e.n),a+" "+Qe.util.encode64(r.bytes())+" "+t},xl.privateKeyToOpenSSH=function(e,t){return t?Qe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Qe.pki.privateKeyToPem(e)},xl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Qe.md.md5.create(),r="ssh-rsa",n=Qe.util.createBuffer();na(n,r),Jt(n,e.e),Jt(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 Jt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Qe.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function na(e,t){e.putInt32(t.length),e.putString(t)}function yl(){for(var e=Qe.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}const Ut=()=>Or.randomUUID(),bT=({configurationsClient:e})=>async t=>{try{return await e.Faucet.requestTestnetTokens(void 0,t)}catch(a){throw ee(a)?J(a):a}};var Y0="10.1.0";const J0=({client:e})=>async({xRequestId:t,...a})=>{try{return re(await e.PINAuthentication.getUserToken({...a},t))}catch(r){throw ee(r)?J(r):r}},Ke=async(e,t,a=!1)=>{let r;return e.storage&&(r=await e.storage.get("userToken:"+t)),(!r||r.expirationTime<=Date.now()||a)&&r?.userToken===void 0?await ET(e,t):r.userToken};async function ET(e,t){const a=await J0(e)({userId:t});if(!a.data?.userToken)throw new Error("Could not fetch user token");return e.storage&&await e.storage.set("userToken:"+t,{...a.data,expirationTime:Date.now()+50*60*1e3}),a.data.userToken}const CT=e=>async({userToken:t,userId:a,idempotencyKey:r,xRequestId:n})=>{try{return re(await e.client.PINAuthentication.createUserPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()},n))}catch(s){throw ee(s)?J(s):s}},TT=e=>async({userToken:t,userId:a,idempotencyKey:r,accountType:n="EOA",xRequestId:s,...i})=>{try{return re(await e.client.Users.createUserWithPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},ST=e=>async({userToken:t,userId:a,idempotencyKey:r,xRequestId:n})=>{try{return re(await e.client.PINAuthentication.createUserPinRestoreChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()},n))}catch(s){throw ee(s)?J(s):s}},wT=e=>async({userToken:t,userId:a,idempotencyKey:r})=>{try{return re(await e.client.PINAuthentication.updateUserPinChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut()}))}catch(n){throw ee(n)?J(n):n}},AT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserMessage(t??await Ke(e,a),n,r))}catch(s){throw ee(s)?J(s):s}},IT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserTransaction(t??await Ke(e,a),{...n},r))}catch(s){throw ee(s)?J(s):s}},BT=e=>async({userToken:t,userId:a,xRequestId:r,...n})=>{try{return re(await e.client.Signing.signUserTypedData(t??await Ke(e,a),n,r))}catch(s){throw ee(s)?J(s):s}},kT=({client:e})=>async({id:t})=>{try{return re(await e.TokenLookup.getTokenId(t))}catch(a){throw ee(a)?J(a):a}},RT=e=>async({userToken:t,userId:a,id:r,idempotencyKey:n,xRequestId:s})=>{try{return re(await e.client.Transactions.createUserTransactionAccelerateChallenge(t??await Ke(e,a),r,{idempotencyKey:n??Ut()},s))}catch(i){throw ee(i)?J(i):i}},_T=e=>async({userToken:t,userId:a,id:r,idempotencyKey:n,xRequestId:s})=>{try{return re(await e.client.Transactions.createUserTransactionCancelChallenge(t??await Ke(e,a),r,{idempotencyKey:n??Ut()},s))}catch(i){throw ee(i)?J(i):i}},UT=e=>async({userToken:t,userId:a,idempotencyKey:r,fee:n,xRequestId:s,...i})=>{try{return re(await e.client.Transactions.createUserTransactionTransferChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},NT=e=>async({userToken:t,userId:a,idempotencyKey:r,fee:n,xRequestId:s,...i})=>{try{return re(await e.client.Transactions.createUserTransactionContractExecutionChallenge(t??await Ke(e,a),{idempotencyKey:r??Ut(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},LT=e=>async({userId:t,userToken:a,source:r,xRequestId:n,...s})=>{try{return re(await e.client.Transactions.createTransactionEstimateFee(a??await Ke(e,t),{...s,...r},n))}catch(i){throw ee(i)?J(i):i}},PT=e=>async({userToken:t,userId:a,amount:r,xRequestId:n,...s})=>{try{return re(await e.client.Transactions.createTransferEstimateFee(t??await Ke(e,a),{amounts:r,...s},n))}catch(i){throw ee(i)?J(i):i}},OT=e=>async({id:t,userToken:a,userId:r,txType:n,xRequestId:s})=>{try{return re(await e.client.Transactions.getTransaction(t,a??await Ke(e,r),n,s))}catch(i){throw ee(i)?J(i):i}},DT=({client:e})=>async({blockchain:t,address:a,walletId:r,xRequestId:n}={})=>{try{return re(await e.Transactions.getLowestNonceTransaction(t,a,r,{headers:n?{"X-Request-Id":n}:void 0}))}catch(s){throw ee(s)?J(s):s}},FT=e=>async({userToken:t,blockchain:a,destinationAddress:r,includeAll:n,operation:s,state:i,txHash:o,txType:c,userId:l,walletIds:u,from:p,pageAfter:d,pageBefore:x,pageSize:h,to:y,order:b,xRequestId:C})=>{try{return re(await e.client.Transactions.listTransactions(t??await Ke(e,l),a,r,n,s,i,o,c,l,u?.join(","),p,y,x,d,h,b,C))}catch(I){throw ee(I)?J(I):I}},VT=({client:e})=>async t=>{try{return re(await e.Transactions.createValidateAddress(t))}catch(a){throw ee(a)?J(a):a}},qT=({client:e})=>async({...t})=>{try{return re(await e.PINAuthentication.createUser({...t}))}catch(a){throw ee(a)?J(a):a}},MT=e=>async({userToken:t,idempotencyKey:a,userId:r,xRequestId:n,...s})=>{try{return re(await e.client.SocialEmailAuthentication.resendOTP(t??await Ke(e,r),{idempotencyKey:a??Ut(),...s},n))}catch(i){throw ee(i)?J(i):i}},jT=({client:e})=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return re(await e.SocialEmailAuthentication.createDeviceTokenEmailLogin({idempotencyKey:t??Ut(),...r},a))}catch(n){throw ee(n)?J(n):n}},KT=({client:e})=>async({userId:t,xRequestId:a})=>{try{return re(await e.Users.getUser(t,a))}catch(r){throw ee(r)?J(r):r}},zT=({client:e})=>async({userToken:t,xRequestId:a})=>{try{return re(await e.Users.getUserByToken(t,a))}catch(r){throw ee(r)?J(r):r}},HT=({client:e})=>async({userToken:t,challengeId:a,xRequestId:r})=>{try{return re(await e.Users.getUserChallenge(t,a,r))}catch(n){throw ee(n)?J(n):n}},$T=({client:e})=>async({pinStatus:t,securityQuestionStatus:a,from:r,to:n,pageBefore:s,pageAfter:i,pageSize:o,order:c,xRequestId:l}={})=>{try{return re(await e.Users.listUsers(t,a,r,n,s,i,o,c,l))}catch(u){throw ee(u)?J(u):u}},GT=({client:e})=>async({userToken:t,challengeStatus:a,xRequestId:r})=>{try{return re(await e.Users.listUserChallenges(t,a,r))}catch(n){throw ee(n)?J(n):n}},WT=e=>async({userId:t,userToken:a,deviceId:r,idempotencyKey:n,refreshToken:s,xRequestId:i})=>{try{return re(await e.client.SocialEmailAuthentication.refreshUserToken(a??await Ke(e,t),{idempotencyKey:n??Ut(),refreshToken:s,deviceId:r},i))}catch(o){throw ee(o)?J(o):o}},XT=({client:e})=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return re(await e.SocialEmailAuthentication.createDeviceTokenSocialLogin({idempotencyKey:t??Ut(),...r},a))}catch(n){throw ee(n)?J(n):n}},QT=e=>async({userToken:t,userId:a,idempotencyKey:r,accountType:n="EOA",xRequestId:s,...i})=>{try{return re(await e.client.Wallets.createUserWallet(t??await Ke(e,a),{idempotencyKey:r??Ut(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},YT=e=>async({id:t,userToken:a,userId:r,xRequestId:n})=>{try{return re(await e.client.Wallets.getWallet(t,a??await Ke(e,r),n))}catch(s){throw ee(s)?J(s):s}},JT=e=>async({walletId:t,userToken:a,userId:r,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return re(await e.client.Wallets.listWalletNfts(a??await Ke(e,r),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},ZT=e=>async({walletId:t,userToken:a,userId:r,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return re(await e.client.Wallets.listWalletBalance(a??await Ke(e,r),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},e2=e=>async({userId:t,userToken:a,address:r,blockchain:n,from:s,pageAfter:i,pageBefore:o,pageSize:c,to:l,walletSetId:u,refId:p,scaCore:d,order:x,xRequestId:h})=>{try{return re(await e.client.Wallets.listWallets(a??await Ke(e,t),r,n,d,u,p,s,l,o,i,c,x,h))}catch(y){throw ee(y)?J(y):y}},t2=e=>async({id:t,name:a,refId:r,userToken:n,userId:s})=>{try{return re(await e.client.Wallets.updateWallet(t,n??await Ke(e,s),{name:a,refId:r}))}catch(i){throw ee(i)?J(i):i}};var r2=Object.defineProperty,a2=(e,t,a)=>t in e?r2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,n2=(e,t,a)=>a2(e,typeof t!="symbol"?t+"":t,a);const mp="https://api.circle.com";class Z0{constructor(t){n2(this,"params");const{apiKey:a,baseUrl:r,storage:n,userAgent:s,headers:i}=t;this.params={client:new yy(r??mp,{apiKey:a,version:Y0,userAgent:s},i),configurationsClient:new zx(r??mp,{apiKey:a,version:Y0,userAgent:s},i),storage:n??new N1}}createUserPin(t){return CT(this.params)(t)}createUserPinWithWallets(t){return TT(this.params)(t)}updateUserPin(t){return wT(this.params)(t)}restoreUserPin(t){return ST(this.params)(t)}createDeviceTokenForEmailLogin(t){return jT(this.params)(t)}createDeviceTokenForSocialLogin(t){return XT(this.params)(t)}refreshUserToken(t){return WT(this.params)(t)}resendOTP(t){return MT(this.params)(t)}createWallet(t){return QT(this.params)(t)}listWallets(t){return e2(this.params)(t)}getWallet(t){return YT(this.params)(t)}updateWallet(t){return t2(this.params)(t)}getWalletTokenBalance(t){return ZT(this.params)(t)}getWalletNFTBalance(t){return JT(this.params)(t)}accelerateTransaction(t){return RT(this.params)(t)}createTransaction(t){return UT(this.params)(t)}cancelTransaction(t){return _T(this.params)(t)}getTransaction(t){return OT(this.params)(t)}listTransactions(t){return FT(this.params)(t)}estimateContractExecutionFee(t){return LT(this.params)(t)}createUserTransactionContractExecutionChallenge(t){return NT(this.params)(t)}estimateTransferFee(t){return PT(this.params)(t)}validateAddress(t){return VT(this.params)(t)}getLowestNonceTransaction(t){return DT(this.params)(t)}createUser(t){return qT(this.params)(t)}getUser(t){return KT(this.params)(t)}getUserStatus(t){return zT(this.params)(t)}listUsers(t){return $T(this.params)(t)}createUserToken(t){return J0(this.params)(t)}getUserChallenge(t){return HT(this.params)(t)}listUserChallenges(t){return GT(this.params)(t)}getToken(t){return kT(this.params)(t)}signMessage(t){return AT(this.params)(t)}signTransaction(t){return IT(this.params)(t)}signTypedData(t){return BT(this.params)(t)}requestTestnetTokens(t){return bT(this.params)(t)}createMonitoredTokens(t){return y1(this.params)(t)}updateMonitoredTokens(t){return C1(this.params)(t)}listMonitoredTokens(t){return E1(this.params)(t)}deleteMonitoredTokens(t){return b1(this.params)(t)}updateMonitoredTokensScope(t){return T1(this.params)(t)}createSubscription(t){return S1(this.params)(t)}deleteSubscription(t){return w1(this.params)(t)}getSubscription(t){return A1(this.params)(t)}getNotificationSignature(t){return I1(this.params)(t)}listSubscriptions(){return B1(this.params)()}updateSubscription(t){return k1(this.params)(t)}}function i2(e){return new Z0(e)}exports.BadGatewayError=Ia,exports.BadRequestError=ba,exports.Blockchain=vy,exports.CircleUserControlledWalletsClient=Z0,exports.ConnectionAbortedError=Ua,exports.ConnectionRefusedError=Ra,exports.ConnectionResetError=Oa,exports.ConnectionTimeoutError=_a,exports.DNSNotFoundError=Na,exports.DNSTimeoutError=La,exports.Error110700=Su,exports.Error110701=wu,exports.Error110702=Au,exports.Error110703=Iu,exports.Error155101=Fa,exports.Error155102=Va,exports.Error155103=qa,exports.Error155104=Ma,exports.Error155105=ja,exports.Error155106=Ka,exports.Error155107=za,exports.Error155108=Ha,exports.Error155109=$a,exports.Error155110=Ga,exports.Error155111=Wa,exports.Error155112=Xa,exports.Error155113=Qa,exports.Error155114=Ya,exports.Error155115=Ja,exports.Error155116=Za,exports.Error155117=en,exports.Error155118=tn,exports.Error155119=rn,exports.Error155120=an,exports.Error155121=nn,exports.Error155122=sn,exports.Error155123=on,exports.Error155124=cn,exports.Error155130=ln,exports.Error155131=un,exports.Error155132=pn,exports.Error155133=dn,exports.Error155134=fn,exports.Error155135=hn,exports.Error155136=mn,exports.Error155137=vn,exports.Error155138=gn,exports.Error155139=xn,exports.Error155140=yn,exports.Error155141=bn,exports.Error155142=En,exports.Error155143=Cn,exports.Error155144=Tn,exports.Error155145=Sn,exports.Error155146=wn,exports.Error155150=An,exports.Error155151=In,exports.Error155152=Bn,exports.Error155154=kn,exports.Error155155=Rn,exports.Error155156=_n,exports.Error155157=Un,exports.Error155158=Nn,exports.Error155159=Ln,exports.Error155160=Pn,exports.Error155201=On,exports.Error155202=Dn,exports.Error155203=Fn,exports.Error155204=Vn,exports.Error155205=qn,exports.Error155206=Mn,exports.Error155207=jn,exports.Error155208=Kn,exports.Error155209=zn,exports.Error155210=Hn,exports.Error155211=$n,exports.Error155215=Gn,exports.Error155218=Wn,exports.Error155219=Xn,exports.Error155220=Qn,exports.Error155221=Yn,exports.Error155222=Jn,exports.Error155223=Zn,exports.Error155224=ei,exports.Error155225=ti,exports.Error155226=ri,exports.Error155227=ai,exports.Error155228=ni,exports.Error155229=ii,exports.Error155230=si,exports.Error155231=oi,exports.Error155232=ci,exports.Error155233=li,exports.Error155234=ui,exports.Error155235=pi,exports.Error155236=di,exports.Error155237=fi,exports.Error155238=hi,exports.Error155239=mi,exports.Error155240=vi,exports.Error155241=gi,exports.Error155242=xi,exports.Error155243=yi,exports.Error155244=bi,exports.Error155245=Ei,exports.Error155247=Ci,exports.Error155254=Ti,exports.Error155257=Si,exports.Error155258=wi,exports.Error155262=Ai,exports.Error155264=Ii,exports.Error155501=Bi,exports.Error155502=ki,exports.Error155503=Ri,exports.Error155504=_i,exports.Error155505=Ui,exports.Error155506=Ni,exports.Error155507=Li,exports.Error155508=Pi,exports.Error155509=Oi,exports.Error155510=Di,exports.Error155511=Fi,exports.Error155512=Vi,exports.Error155514=qi,exports.Error155515=Mi,exports.Error155516=ji,exports.Error155517=Ki,exports.Error155601=zi,exports.Error155701=Hi,exports.Error155702=$i,exports.Error155703=Gi,exports.Error155704=Wi,exports.Error155705=Xi,exports.Error155706=Qi,exports.Error155707=Yi,exports.Error155708=Ji,exports.Error155709=Zi,exports.Error155710=es,exports.Error155711=ts,exports.Error155712=rs,exports.Error155713=as,exports.Error155714=ns,exports.Error155715=is,exports.Error155716=ss,exports.Error155717=os,exports.Error155718=cs,exports.Error155719=ls,exports.Error155720=us,exports.Error155721=ps,exports.Error155801=ds,exports.Error155802=fs,exports.Error155803=hs,exports.Error155804=ms,exports.Error155805=vs,exports.Error155806=gs,exports.Error155807=xs,exports.Error155808=ys,exports.Error156001=bs,exports.Error156002=Es,exports.Error156003=Cs,exports.Error156004=Ts,exports.Error156005=Ss,exports.Error156006=ws,exports.Error156007=As,exports.Error156008=Is,exports.Error156009=Bs,exports.Error156010=ks,exports.Error156011=Rs,exports.Error156012=_s,exports.Error156013=Us,exports.Error156014=Ns,exports.Error156015=Ls,exports.Error156016=Ps,exports.Error156017=Os,exports.Error156018=Ds,exports.Error156019=Fs,exports.Error156020=Vs,exports.Error156021=qs,exports.Error156023=Ms,exports.Error156024=js,exports.Error156025=Ks,exports.Error156026=zs,exports.Error156027=Hs,exports.Error156030=$s,exports.Error156031=Gs,exports.Error156032=Ws,exports.Error175001=Xs,exports.Error175002=Qs,exports.Error175003=Ys,exports.Error175004=Js,exports.Error175005=Zs,exports.Error175006=eo,exports.Error175007=to,exports.Error175008=ro,exports.Error175009=ao,exports.Error175010=no,exports.Error175011=io,exports.Error175012=so,exports.Error175013=oo,exports.Error175201=co,exports.Error175202=lo,exports.Error175203=uo,exports.Error175204=po,exports.Error175205=fo,exports.Error175301=ho,exports.Error175302=mo,exports.Error175303=vo,exports.Error175401=go,exports.Error175402=xo,exports.Error175403=yo,exports.Error175404=bo,exports.Error175405=Eo,exports.Error175406=Co,exports.Error175407=To,exports.Error175408=So,exports.Error175409=wo,exports.Error175410=Ao,exports.Error177001=Io,exports.Error177002=Bo,exports.Error177003=ko,exports.Error177004=Ro,exports.Error177005=_o,exports.Error177006=Uo,exports.Error177007=No,exports.Error177008=Lo,exports.Error177009=Po,exports.Error177010=Oo,exports.Error177011=Do,exports.Error177012=Fo,exports.Error177013=Vo,exports.Error177014=qo,exports.Error177015=Mo,exports.Error177016=jo,exports.Error177017=Ko,exports.Error177018=zo,exports.Error177019=Ho,exports.Error177020=$o,exports.Error177021=Go,exports.Error177022=Wo,exports.Error177023=Xo,exports.Error177024=Qo,exports.Error177025=Yo,exports.Error177026=Jo,exports.Error177301=Zo,exports.Error177302=ec,exports.Error177303=tc,exports.Error177304=rc,exports.Error177305=ac,exports.Error177601=nc,exports.Error177602=ic,exports.Error177603=sc,exports.Error177604=oc,exports.Error177605=cc,exports.Error177606=lc,exports.Error177607=uc,exports.Error177901=pc,exports.ForbiddenError=Ca,exports.GatewayTimeoutError=ka,exports.HostUnreachableError=Da,exports.HttpError=ya,exports.HttpRequestError=Nt,exports.HttpResponseError=E,exports.InternalServerError=wa,exports.NetworkUnreachableError=Pa,exports.NotFoundError=Ta,exports.NotImplementedError=Aa,exports.RatelimitError=Sa,exports.ServiceUnavailableError=Ba,exports.UnauthorizedError=Ea,exports.defaultBaseUrl=mp,exports.fromAxiosError=J,exports.initiateUserControlledWalletsClient=i2;
@@ -40,4 +40,4 @@ import Pa from"util";import Ut,{Readable as th}from"stream";import gp from"path"
40
40
  Private-Lines: `+c+`\r
41
41
  `,s+=u;var b=yl("putty-private-key-file-mac-key",t),C=Qe.util.createBuffer();rr(C,a),rr(C,n),rr(C,r),C.putInt32(i.length()),C.putBuffer(i),C.putInt32(l.length()),C.putBuffer(l);var I=Qe.hmac.create();return I.start("sha1",b),I.update(C.bytes()),s+=`\r
42
42
  Private-MAC: `+I.digest().toHex()+`\r
43
- `,s},xl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Qe.util.createBuffer();return rr(a,r),Jt(a,e.e),Jt(a,e.n),r+" "+Qe.util.encode64(a.bytes())+" "+t},xl.privateKeyToOpenSSH=function(e,t){return t?Qe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Qe.pki.privateKeyToPem(e)},xl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Qe.md.md5.create(),a="ssh-rsa",n=Qe.util.createBuffer();rr(n,a),Jt(n,e.e),Jt(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 Jt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Qe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function rr(e,t){e.putInt32(t.length),e.putString(t)}function yl(){for(var e=Qe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}const _t=()=>rh(),CT=({configurationsClient:e})=>async t=>{try{return await e.Faucet.requestTestnetTokens(void 0,t)}catch(r){throw ee(r)?J(r):r}};var Y0="10.0.1";const J0=({client:e})=>async({xRequestId:t,...r})=>{try{return ae(await e.PINAuthentication.getUserToken({...r},t))}catch(a){throw ee(a)?J(a):a}},Ke=async(e,t,r=!1)=>{let a;return e.storage&&(a=await e.storage.get("userToken:"+t)),(!a||a.expirationTime<=Date.now()||r)&&a?.userToken===void 0?await TT(e,t):a.userToken};async function TT(e,t){const r=await J0(e)({userId:t});if(!r.data?.userToken)throw new Error("Could not fetch user token");return e.storage&&await e.storage.set("userToken:"+t,{...r.data,expirationTime:Date.now()+50*60*1e3}),r.data.userToken}const ST=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},wT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Users.createUserWithPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},AT=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinRestoreChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},IT=e=>async({userToken:t,userId:r,idempotencyKey:a})=>{try{return ae(await e.client.PINAuthentication.updateUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()}))}catch(n){throw ee(n)?J(n):n}},BT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserMessage(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},kT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTransaction(t??await Ke(e,r),{...n},a))}catch(s){throw ee(s)?J(s):s}},RT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTypedData(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},_T=({client:e})=>async({id:t})=>{try{return ae(await e.TokenLookup.getTokenId(t))}catch(r){throw ee(r)?J(r):r}},UT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionAccelerateChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},NT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionCancelChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},LT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionTransferChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},PT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionContractExecutionChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},OT=e=>async({userId:t,userToken:r,source:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransactionEstimateFee(r??await Ke(e,t),{...s,...a},n))}catch(i){throw ee(i)?J(i):i}},DT=e=>async({userToken:t,userId:r,amount:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransferEstimateFee(t??await Ke(e,r),{amounts:a,...s},n))}catch(i){throw ee(i)?J(i):i}},FT=e=>async({id:t,userToken:r,userId:a,txType:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.getTransaction(t,r??await Ke(e,a),n,s))}catch(i){throw ee(i)?J(i):i}},VT=({client:e})=>async({blockchain:t,address:r,walletId:a,xRequestId:n}={})=>{try{return ae(await e.Transactions.getLowestNonceTransaction(t,r,a,{headers:n?{"X-Request-Id":n}:void 0}))}catch(s){throw ee(s)?J(s):s}},MT=e=>async({userToken:t,blockchain:r,destinationAddress:a,includeAll:n,operation:s,state:i,txHash:o,txType:c,userId:l,walletIds:u,from:p,pageAfter:d,pageBefore:x,pageSize:h,to:y,order:b,xRequestId:C})=>{try{return ae(await e.client.Transactions.listTransactions(t??await Ke(e,l),r,a,n,s,i,o,c,l,u?.join(","),p,y,x,d,h,b,C))}catch(I){throw ee(I)?J(I):I}},qT=({client:e})=>async t=>{try{return ae(await e.Transactions.createValidateAddress(t))}catch(r){throw ee(r)?J(r):r}},jT=({client:e})=>async({...t})=>{try{return ae(await e.PINAuthentication.createUser({...t}))}catch(r){throw ee(r)?J(r):r}},KT=e=>async({userToken:t,idempotencyKey:r,userId:a,xRequestId:n,...s})=>{try{return ae(await e.client.SocialEmailAuthentication.resendOTP(t??await Ke(e,a),{idempotencyKey:r??_t(),...s},n))}catch(i){throw ee(i)?J(i):i}},zT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenEmailLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},HT=({client:e})=>async({userId:t,xRequestId:r})=>{try{return ae(await e.Users.getUser(t,r))}catch(a){throw ee(a)?J(a):a}},$T=({client:e})=>async({userToken:t,xRequestId:r})=>{try{return ae(await e.Users.getUserByToken(t,r))}catch(a){throw ee(a)?J(a):a}},GT=({client:e})=>async({userToken:t,challengeId:r,xRequestId:a})=>{try{return ae(await e.Users.getUserChallenge(t,r,a))}catch(n){throw ee(n)?J(n):n}},WT=({client:e})=>async({pinStatus:t,securityQuestionStatus:r,from:a,to:n,pageBefore:s,pageAfter:i,pageSize:o,order:c,xRequestId:l}={})=>{try{return ae(await e.Users.listUsers(t,r,a,n,s,i,o,c,l))}catch(u){throw ee(u)?J(u):u}},XT=({client:e})=>async({userToken:t,challengeStatus:r,xRequestId:a})=>{try{return ae(await e.Users.listUserChallenges(t,r,a))}catch(n){throw ee(n)?J(n):n}},QT=e=>async({userId:t,userToken:r,deviceId:a,idempotencyKey:n,refreshToken:s,xRequestId:i})=>{try{return ae(await e.client.SocialEmailAuthentication.refreshUserToken(r??await Ke(e,t),{idempotencyKey:n??_t(),refreshToken:s,deviceId:a},i))}catch(o){throw ee(o)?J(o):o}},YT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenSocialLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},JT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Wallets.createUserWallet(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},ZT=e=>async({id:t,userToken:r,userId:a,xRequestId:n})=>{try{return ae(await e.client.Wallets.getWallet(t,r??await Ke(e,a),n))}catch(s){throw ee(s)?J(s):s}},e2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletNfts(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},t2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletBalance(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},a2=e=>async({userId:t,userToken:r,address:a,blockchain:n,from:s,pageAfter:i,pageBefore:o,pageSize:c,to:l,walletSetId:u,refId:p,scaCore:d,order:x,xRequestId:h})=>{try{return ae(await e.client.Wallets.listWallets(r??await Ke(e,t),a,n,d,u,p,s,l,o,i,c,x,h))}catch(y){throw ee(y)?J(y):y}},r2=e=>async({id:t,name:r,refId:a,userToken:n,userId:s})=>{try{return ae(await e.client.Wallets.updateWallet(t,n??await Ke(e,s),{name:r,refId:a}))}catch(i){throw ee(i)?J(i):i}};var n2=Object.defineProperty,i2=(e,t,r)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s2=(e,t,r)=>i2(e,typeof t!="symbol"?t+"":t,r);const mp="https://api.circle.com";class Z0{constructor(t){s2(this,"params");const{apiKey:r,baseUrl:a,storage:n,userAgent:s,headers:i}=t;this.params={client:new Ey(a??mp,{apiKey:r,version:Y0,userAgent:s},i),configurationsClient:new $x(a??mp,{apiKey:r,version:Y0,userAgent:s},i),storage:n??new P1}}createUserPin(t){return ST(this.params)(t)}createUserPinWithWallets(t){return wT(this.params)(t)}updateUserPin(t){return IT(this.params)(t)}restoreUserPin(t){return AT(this.params)(t)}createDeviceTokenForEmailLogin(t){return zT(this.params)(t)}createDeviceTokenForSocialLogin(t){return YT(this.params)(t)}refreshUserToken(t){return QT(this.params)(t)}resendOTP(t){return KT(this.params)(t)}createWallet(t){return JT(this.params)(t)}listWallets(t){return a2(this.params)(t)}getWallet(t){return ZT(this.params)(t)}updateWallet(t){return r2(this.params)(t)}getWalletTokenBalance(t){return t2(this.params)(t)}getWalletNFTBalance(t){return e2(this.params)(t)}accelerateTransaction(t){return UT(this.params)(t)}createTransaction(t){return LT(this.params)(t)}cancelTransaction(t){return NT(this.params)(t)}getTransaction(t){return FT(this.params)(t)}listTransactions(t){return MT(this.params)(t)}estimateContractExecutionFee(t){return OT(this.params)(t)}createUserTransactionContractExecutionChallenge(t){return PT(this.params)(t)}estimateTransferFee(t){return DT(this.params)(t)}validateAddress(t){return qT(this.params)(t)}getLowestNonceTransaction(t){return VT(this.params)(t)}createUser(t){return jT(this.params)(t)}getUser(t){return HT(this.params)(t)}getUserStatus(t){return $T(this.params)(t)}listUsers(t){return WT(this.params)(t)}createUserToken(t){return J0(this.params)(t)}getUserChallenge(t){return GT(this.params)(t)}listUserChallenges(t){return XT(this.params)(t)}getToken(t){return _T(this.params)(t)}signMessage(t){return BT(this.params)(t)}signTransaction(t){return kT(this.params)(t)}signTypedData(t){return RT(this.params)(t)}requestTestnetTokens(t){return CT(this.params)(t)}createMonitoredTokens(t){return E1(this.params)(t)}updateMonitoredTokens(t){return S1(this.params)(t)}listMonitoredTokens(t){return T1(this.params)(t)}deleteMonitoredTokens(t){return C1(this.params)(t)}updateMonitoredTokensScope(t){return w1(this.params)(t)}createSubscription(t){return A1(this.params)(t)}deleteSubscription(t){return I1(this.params)(t)}getSubscription(t){return B1(this.params)(t)}getNotificationSignature(t){return k1(this.params)(t)}listSubscriptions(){return R1(this.params)()}updateSubscription(t){return _1(this.params)(t)}}function o2(e){return new Z0(e)}export{Ir as BadGatewayError,br as BadRequestError,xy as Blockchain,Z0 as CircleUserControlledWalletsClient,Ur as ConnectionAbortedError,Rr as ConnectionRefusedError,Or as ConnectionResetError,_r as ConnectionTimeoutError,Nr as DNSNotFoundError,Lr as DNSTimeoutError,Su as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Fr as Error155101,Vr as Error155102,Mr as Error155103,qr as Error155104,jr as Error155105,Kr as Error155106,zr as Error155107,Hr as Error155108,$r as Error155109,Gr as Error155110,Wr as Error155111,Xr as Error155112,Qr as Error155113,Yr as Error155114,Jr as Error155115,Zr as Error155116,en as Error155117,tn as Error155118,an as Error155119,rn as Error155120,nn as Error155121,sn as Error155122,on as Error155123,cn as Error155124,ln as Error155130,un as Error155131,pn as Error155132,dn as Error155133,fn as Error155134,hn as Error155135,mn as Error155136,vn as Error155137,gn as Error155138,xn as Error155139,yn as Error155140,bn as Error155141,En as Error155142,Cn as Error155143,Tn as Error155144,Sn as Error155145,wn as Error155146,An as Error155150,In as Error155151,Bn as Error155152,kn as Error155154,Rn as Error155155,_n as Error155156,Un as Error155157,Nn as Error155158,Ln as Error155159,Pn as Error155160,On as Error155201,Dn as Error155202,Fn as Error155203,Vn as Error155204,Mn as Error155205,qn as Error155206,jn as Error155207,Kn as Error155208,zn as Error155209,Hn as Error155210,$n as Error155211,Gn as Error155215,Wn as Error155218,Xn as Error155219,Qn as Error155220,Yn as Error155221,Jn as Error155222,Zn as Error155223,ei as Error155224,ti as Error155225,ai as Error155226,ri as Error155227,ni as Error155228,ii as Error155229,si as Error155230,oi as Error155231,ci as Error155232,li as Error155233,ui as Error155234,pi as Error155235,di as Error155236,fi as Error155237,hi as Error155238,mi as Error155239,vi as Error155240,gi as Error155241,xi as Error155242,yi as Error155243,bi as Error155244,Ei as Error155245,Ci as Error155247,Ti as Error155254,Si as Error155257,wi as Error155258,Ai as Error155262,Ii as Error155264,Bi as Error155501,ki as Error155502,Ri as Error155503,_i as Error155504,Ui as Error155505,Ni as Error155506,Li as Error155507,Pi as Error155508,Oi as Error155509,Di as Error155510,Fi as Error155511,Vi as Error155512,Mi as Error155514,qi as Error155515,ji as Error155516,Ki as Error155517,zi as Error155601,Hi as Error155701,$i as Error155702,Gi as Error155703,Wi as Error155704,Xi as Error155705,Qi as Error155706,Yi as Error155707,Ji as Error155708,Zi as Error155709,es as Error155710,ts as Error155711,as as Error155712,rs as Error155713,ns as Error155714,is as Error155715,ss as Error155716,os as Error155717,cs as Error155718,ls as Error155719,us as Error155720,ps as Error155721,ds as Error155801,fs as Error155802,hs as Error155803,ms as Error155804,vs as Error155805,gs as Error155806,xs as Error155807,ys as Error155808,bs as Error156001,Es as Error156002,Cs as Error156003,Ts as Error156004,Ss as Error156005,ws as Error156006,As as Error156007,Is as Error156008,Bs as Error156009,ks as Error156010,Rs as Error156011,_s as Error156012,Us as Error156013,Ns as Error156014,Ls as Error156015,Ps as Error156016,Os as Error156017,Ds as Error156018,Fs as Error156019,Vs as Error156020,Ms as Error156021,qs as Error156023,js as Error156024,Ks as Error156025,zs as Error156026,Hs as Error156027,$s as Error156030,Gs as Error156031,Ws as Error156032,Xs as Error175001,Qs as Error175002,Ys as Error175003,Js as Error175004,Zs as Error175005,eo as Error175006,to as Error175007,ao as Error175008,ro as Error175009,no as Error175010,io as Error175011,so as Error175012,oo as Error175013,co as Error175201,lo as Error175202,uo as Error175203,po as Error175204,fo as Error175205,ho as Error175301,mo as Error175302,vo as Error175303,go as Error175401,xo as Error175402,yo as Error175403,bo as Error175404,Eo as Error175405,Co as Error175406,To as Error175407,So as Error175408,wo as Error175409,Ao as Error175410,Io as Error177001,Bo as Error177002,ko as Error177003,Ro as Error177004,_o as Error177005,Uo as Error177006,No as Error177007,Lo as Error177008,Po as Error177009,Oo as Error177010,Do as Error177011,Fo as Error177012,Vo as Error177013,Mo as Error177014,qo as Error177015,jo as Error177016,Ko as Error177017,zo as Error177018,Ho as Error177019,$o as Error177020,Go as Error177021,Wo as Error177022,Xo as Error177023,Qo as Error177024,Yo as Error177025,Jo as Error177026,Zo as Error177301,ec as Error177302,tc as Error177303,ac as Error177304,rc as Error177305,nc as Error177601,ic as Error177602,sc as Error177603,oc as Error177604,cc as Error177605,lc as Error177606,uc as Error177607,pc as Error177901,Cr as ForbiddenError,kr as GatewayTimeoutError,Dr as HostUnreachableError,yr as HttpError,Nt as HttpRequestError,E as HttpResponseError,wr as InternalServerError,Pr as NetworkUnreachableError,Tr as NotFoundError,Ar as NotImplementedError,Sr as RatelimitError,Br as ServiceUnavailableError,Er as UnauthorizedError,mp as defaultBaseUrl,J as fromAxiosError,o2 as initiateUserControlledWalletsClient};
43
+ `,s},xl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Qe.util.createBuffer();return rr(a,r),Jt(a,e.e),Jt(a,e.n),r+" "+Qe.util.encode64(a.bytes())+" "+t},xl.privateKeyToOpenSSH=function(e,t){return t?Qe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Qe.pki.privateKeyToPem(e)},xl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Qe.md.md5.create(),a="ssh-rsa",n=Qe.util.createBuffer();rr(n,a),Jt(n,e.e),Jt(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 Jt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Qe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function rr(e,t){e.putInt32(t.length),e.putString(t)}function yl(){for(var e=Qe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}const _t=()=>rh(),CT=({configurationsClient:e})=>async t=>{try{return await e.Faucet.requestTestnetTokens(void 0,t)}catch(r){throw ee(r)?J(r):r}};var Y0="10.1.0";const J0=({client:e})=>async({xRequestId:t,...r})=>{try{return ae(await e.PINAuthentication.getUserToken({...r},t))}catch(a){throw ee(a)?J(a):a}},Ke=async(e,t,r=!1)=>{let a;return e.storage&&(a=await e.storage.get("userToken:"+t)),(!a||a.expirationTime<=Date.now()||r)&&a?.userToken===void 0?await TT(e,t):a.userToken};async function TT(e,t){const r=await J0(e)({userId:t});if(!r.data?.userToken)throw new Error("Could not fetch user token");return e.storage&&await e.storage.set("userToken:"+t,{...r.data,expirationTime:Date.now()+50*60*1e3}),r.data.userToken}const ST=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},wT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Users.createUserWithPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},AT=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinRestoreChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},IT=e=>async({userToken:t,userId:r,idempotencyKey:a})=>{try{return ae(await e.client.PINAuthentication.updateUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()}))}catch(n){throw ee(n)?J(n):n}},BT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserMessage(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},kT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTransaction(t??await Ke(e,r),{...n},a))}catch(s){throw ee(s)?J(s):s}},RT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTypedData(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},_T=({client:e})=>async({id:t})=>{try{return ae(await e.TokenLookup.getTokenId(t))}catch(r){throw ee(r)?J(r):r}},UT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionAccelerateChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},NT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionCancelChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},LT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionTransferChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},PT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionContractExecutionChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},OT=e=>async({userId:t,userToken:r,source:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransactionEstimateFee(r??await Ke(e,t),{...s,...a},n))}catch(i){throw ee(i)?J(i):i}},DT=e=>async({userToken:t,userId:r,amount:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransferEstimateFee(t??await Ke(e,r),{amounts:a,...s},n))}catch(i){throw ee(i)?J(i):i}},FT=e=>async({id:t,userToken:r,userId:a,txType:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.getTransaction(t,r??await Ke(e,a),n,s))}catch(i){throw ee(i)?J(i):i}},VT=({client:e})=>async({blockchain:t,address:r,walletId:a,xRequestId:n}={})=>{try{return ae(await e.Transactions.getLowestNonceTransaction(t,r,a,{headers:n?{"X-Request-Id":n}:void 0}))}catch(s){throw ee(s)?J(s):s}},MT=e=>async({userToken:t,blockchain:r,destinationAddress:a,includeAll:n,operation:s,state:i,txHash:o,txType:c,userId:l,walletIds:u,from:p,pageAfter:d,pageBefore:x,pageSize:h,to:y,order:b,xRequestId:C})=>{try{return ae(await e.client.Transactions.listTransactions(t??await Ke(e,l),r,a,n,s,i,o,c,l,u?.join(","),p,y,x,d,h,b,C))}catch(I){throw ee(I)?J(I):I}},qT=({client:e})=>async t=>{try{return ae(await e.Transactions.createValidateAddress(t))}catch(r){throw ee(r)?J(r):r}},jT=({client:e})=>async({...t})=>{try{return ae(await e.PINAuthentication.createUser({...t}))}catch(r){throw ee(r)?J(r):r}},KT=e=>async({userToken:t,idempotencyKey:r,userId:a,xRequestId:n,...s})=>{try{return ae(await e.client.SocialEmailAuthentication.resendOTP(t??await Ke(e,a),{idempotencyKey:r??_t(),...s},n))}catch(i){throw ee(i)?J(i):i}},zT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenEmailLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},HT=({client:e})=>async({userId:t,xRequestId:r})=>{try{return ae(await e.Users.getUser(t,r))}catch(a){throw ee(a)?J(a):a}},$T=({client:e})=>async({userToken:t,xRequestId:r})=>{try{return ae(await e.Users.getUserByToken(t,r))}catch(a){throw ee(a)?J(a):a}},GT=({client:e})=>async({userToken:t,challengeId:r,xRequestId:a})=>{try{return ae(await e.Users.getUserChallenge(t,r,a))}catch(n){throw ee(n)?J(n):n}},WT=({client:e})=>async({pinStatus:t,securityQuestionStatus:r,from:a,to:n,pageBefore:s,pageAfter:i,pageSize:o,order:c,xRequestId:l}={})=>{try{return ae(await e.Users.listUsers(t,r,a,n,s,i,o,c,l))}catch(u){throw ee(u)?J(u):u}},XT=({client:e})=>async({userToken:t,challengeStatus:r,xRequestId:a})=>{try{return ae(await e.Users.listUserChallenges(t,r,a))}catch(n){throw ee(n)?J(n):n}},QT=e=>async({userId:t,userToken:r,deviceId:a,idempotencyKey:n,refreshToken:s,xRequestId:i})=>{try{return ae(await e.client.SocialEmailAuthentication.refreshUserToken(r??await Ke(e,t),{idempotencyKey:n??_t(),refreshToken:s,deviceId:a},i))}catch(o){throw ee(o)?J(o):o}},YT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenSocialLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},JT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Wallets.createUserWallet(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},ZT=e=>async({id:t,userToken:r,userId:a,xRequestId:n})=>{try{return ae(await e.client.Wallets.getWallet(t,r??await Ke(e,a),n))}catch(s){throw ee(s)?J(s):s}},e2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletNfts(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},t2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletBalance(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},a2=e=>async({userId:t,userToken:r,address:a,blockchain:n,from:s,pageAfter:i,pageBefore:o,pageSize:c,to:l,walletSetId:u,refId:p,scaCore:d,order:x,xRequestId:h})=>{try{return ae(await e.client.Wallets.listWallets(r??await Ke(e,t),a,n,d,u,p,s,l,o,i,c,x,h))}catch(y){throw ee(y)?J(y):y}},r2=e=>async({id:t,name:r,refId:a,userToken:n,userId:s})=>{try{return ae(await e.client.Wallets.updateWallet(t,n??await Ke(e,s),{name:r,refId:a}))}catch(i){throw ee(i)?J(i):i}};var n2=Object.defineProperty,i2=(e,t,r)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s2=(e,t,r)=>i2(e,typeof t!="symbol"?t+"":t,r);const mp="https://api.circle.com";class Z0{constructor(t){s2(this,"params");const{apiKey:r,baseUrl:a,storage:n,userAgent:s,headers:i}=t;this.params={client:new Ey(a??mp,{apiKey:r,version:Y0,userAgent:s},i),configurationsClient:new $x(a??mp,{apiKey:r,version:Y0,userAgent:s},i),storage:n??new P1}}createUserPin(t){return ST(this.params)(t)}createUserPinWithWallets(t){return wT(this.params)(t)}updateUserPin(t){return IT(this.params)(t)}restoreUserPin(t){return AT(this.params)(t)}createDeviceTokenForEmailLogin(t){return zT(this.params)(t)}createDeviceTokenForSocialLogin(t){return YT(this.params)(t)}refreshUserToken(t){return QT(this.params)(t)}resendOTP(t){return KT(this.params)(t)}createWallet(t){return JT(this.params)(t)}listWallets(t){return a2(this.params)(t)}getWallet(t){return ZT(this.params)(t)}updateWallet(t){return r2(this.params)(t)}getWalletTokenBalance(t){return t2(this.params)(t)}getWalletNFTBalance(t){return e2(this.params)(t)}accelerateTransaction(t){return UT(this.params)(t)}createTransaction(t){return LT(this.params)(t)}cancelTransaction(t){return NT(this.params)(t)}getTransaction(t){return FT(this.params)(t)}listTransactions(t){return MT(this.params)(t)}estimateContractExecutionFee(t){return OT(this.params)(t)}createUserTransactionContractExecutionChallenge(t){return PT(this.params)(t)}estimateTransferFee(t){return DT(this.params)(t)}validateAddress(t){return qT(this.params)(t)}getLowestNonceTransaction(t){return VT(this.params)(t)}createUser(t){return jT(this.params)(t)}getUser(t){return HT(this.params)(t)}getUserStatus(t){return $T(this.params)(t)}listUsers(t){return WT(this.params)(t)}createUserToken(t){return J0(this.params)(t)}getUserChallenge(t){return GT(this.params)(t)}listUserChallenges(t){return XT(this.params)(t)}getToken(t){return _T(this.params)(t)}signMessage(t){return BT(this.params)(t)}signTransaction(t){return kT(this.params)(t)}signTypedData(t){return RT(this.params)(t)}requestTestnetTokens(t){return CT(this.params)(t)}createMonitoredTokens(t){return E1(this.params)(t)}updateMonitoredTokens(t){return S1(this.params)(t)}listMonitoredTokens(t){return T1(this.params)(t)}deleteMonitoredTokens(t){return C1(this.params)(t)}updateMonitoredTokensScope(t){return w1(this.params)(t)}createSubscription(t){return A1(this.params)(t)}deleteSubscription(t){return I1(this.params)(t)}getSubscription(t){return B1(this.params)(t)}getNotificationSignature(t){return k1(this.params)(t)}listSubscriptions(){return R1(this.params)()}updateSubscription(t){return _1(this.params)(t)}}function o2(e){return new Z0(e)}export{Ir as BadGatewayError,br as BadRequestError,xy as Blockchain,Z0 as CircleUserControlledWalletsClient,Ur as ConnectionAbortedError,Rr as ConnectionRefusedError,Or as ConnectionResetError,_r as ConnectionTimeoutError,Nr as DNSNotFoundError,Lr as DNSTimeoutError,Su as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Fr as Error155101,Vr as Error155102,Mr as Error155103,qr as Error155104,jr as Error155105,Kr as Error155106,zr as Error155107,Hr as Error155108,$r as Error155109,Gr as Error155110,Wr as Error155111,Xr as Error155112,Qr as Error155113,Yr as Error155114,Jr as Error155115,Zr as Error155116,en as Error155117,tn as Error155118,an as Error155119,rn as Error155120,nn as Error155121,sn as Error155122,on as Error155123,cn as Error155124,ln as Error155130,un as Error155131,pn as Error155132,dn as Error155133,fn as Error155134,hn as Error155135,mn as Error155136,vn as Error155137,gn as Error155138,xn as Error155139,yn as Error155140,bn as Error155141,En as Error155142,Cn as Error155143,Tn as Error155144,Sn as Error155145,wn as Error155146,An as Error155150,In as Error155151,Bn as Error155152,kn as Error155154,Rn as Error155155,_n as Error155156,Un as Error155157,Nn as Error155158,Ln as Error155159,Pn as Error155160,On as Error155201,Dn as Error155202,Fn as Error155203,Vn as Error155204,Mn as Error155205,qn as Error155206,jn as Error155207,Kn as Error155208,zn as Error155209,Hn as Error155210,$n as Error155211,Gn as Error155215,Wn as Error155218,Xn as Error155219,Qn as Error155220,Yn as Error155221,Jn as Error155222,Zn as Error155223,ei as Error155224,ti as Error155225,ai as Error155226,ri as Error155227,ni as Error155228,ii as Error155229,si as Error155230,oi as Error155231,ci as Error155232,li as Error155233,ui as Error155234,pi as Error155235,di as Error155236,fi as Error155237,hi as Error155238,mi as Error155239,vi as Error155240,gi as Error155241,xi as Error155242,yi as Error155243,bi as Error155244,Ei as Error155245,Ci as Error155247,Ti as Error155254,Si as Error155257,wi as Error155258,Ai as Error155262,Ii as Error155264,Bi as Error155501,ki as Error155502,Ri as Error155503,_i as Error155504,Ui as Error155505,Ni as Error155506,Li as Error155507,Pi as Error155508,Oi as Error155509,Di as Error155510,Fi as Error155511,Vi as Error155512,Mi as Error155514,qi as Error155515,ji as Error155516,Ki as Error155517,zi as Error155601,Hi as Error155701,$i as Error155702,Gi as Error155703,Wi as Error155704,Xi as Error155705,Qi as Error155706,Yi as Error155707,Ji as Error155708,Zi as Error155709,es as Error155710,ts as Error155711,as as Error155712,rs as Error155713,ns as Error155714,is as Error155715,ss as Error155716,os as Error155717,cs as Error155718,ls as Error155719,us as Error155720,ps as Error155721,ds as Error155801,fs as Error155802,hs as Error155803,ms as Error155804,vs as Error155805,gs as Error155806,xs as Error155807,ys as Error155808,bs as Error156001,Es as Error156002,Cs as Error156003,Ts as Error156004,Ss as Error156005,ws as Error156006,As as Error156007,Is as Error156008,Bs as Error156009,ks as Error156010,Rs as Error156011,_s as Error156012,Us as Error156013,Ns as Error156014,Ls as Error156015,Ps as Error156016,Os as Error156017,Ds as Error156018,Fs as Error156019,Vs as Error156020,Ms as Error156021,qs as Error156023,js as Error156024,Ks as Error156025,zs as Error156026,Hs as Error156027,$s as Error156030,Gs as Error156031,Ws as Error156032,Xs as Error175001,Qs as Error175002,Ys as Error175003,Js as Error175004,Zs as Error175005,eo as Error175006,to as Error175007,ao as Error175008,ro as Error175009,no as Error175010,io as Error175011,so as Error175012,oo as Error175013,co as Error175201,lo as Error175202,uo as Error175203,po as Error175204,fo as Error175205,ho as Error175301,mo as Error175302,vo as Error175303,go as Error175401,xo as Error175402,yo as Error175403,bo as Error175404,Eo as Error175405,Co as Error175406,To as Error175407,So as Error175408,wo as Error175409,Ao as Error175410,Io as Error177001,Bo as Error177002,ko as Error177003,Ro as Error177004,_o as Error177005,Uo as Error177006,No as Error177007,Lo as Error177008,Po as Error177009,Oo as Error177010,Do as Error177011,Fo as Error177012,Vo as Error177013,Mo as Error177014,qo as Error177015,jo as Error177016,Ko as Error177017,zo as Error177018,Ho as Error177019,$o as Error177020,Go as Error177021,Wo as Error177022,Xo as Error177023,Qo as Error177024,Yo as Error177025,Jo as Error177026,Zo as Error177301,ec as Error177302,tc as Error177303,ac as Error177304,rc as Error177305,nc as Error177601,ic as Error177602,sc as Error177603,oc as Error177604,cc as Error177605,lc as Error177606,uc as Error177607,pc as Error177901,Cr as ForbiddenError,kr as GatewayTimeoutError,Dr as HostUnreachableError,yr as HttpError,Nt as HttpRequestError,E as HttpResponseError,wr as InternalServerError,Pr as NetworkUnreachableError,Tr as NotFoundError,Ar as NotImplementedError,Sr as RatelimitError,Br as ServiceUnavailableError,Er as UnauthorizedError,mp as defaultBaseUrl,J as fromAxiosError,o2 as initiateUserControlledWalletsClient};
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": "*",