@sabaaa1/common 0.0.12 → 0.0.14
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.
- package/assets/{snarkjsWorkerLauncher-Bi0P4lHT.js → snarkjsWorkerLauncher-C7k0eivz.js} +1 -1
- package/assets/{snarkjsWorkerLogic-B_n9w-4s.js → snarkjsWorkerLogic-BO6Ynqjj.js} +16295 -14960
- package/assets/{utxoWorkerLauncher-CEvVVrNi.js → utxoWorkerLauncher-BUSzpnDL.js} +1 -1
- package/assets/{utxoWorkerLogic-mwtuZoYE.js → utxoWorkerLogic-DEqWaadT.js} +19143 -23643
- package/assets/{zkProofWorkerLauncher-DqyUe_-v.js → zkProofWorkerLauncher-CoKmCKjC.js} +1 -1
- package/assets/{zkProofWorkerLogic-6exMzAHW.js → zkProofWorkerLogic-DB9cbXu-.js} +19380 -24522
- package/data-structures/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.mjs +18 -19
- package/data-structures/index.d.ts +0 -1
- package/data-structures/tor/TorClient.cjs +1 -1
- package/data-structures/tor/TorClient.mjs +65 -67
- package/index.cjs +1 -1
- package/index.mjs +473 -479
- package/package.json +1 -1
- package/providers/WagmiProviderAdapter.cjs +1 -1
- package/providers/WagmiProviderAdapter.mjs +85 -78
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
- package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +2 -2
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
- package/assets/index-B4znXaQD.js +0 -1377
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("ethers"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("ethers"),P=require("libsodium-wrappers"),u=require("../../constants/protocol.constants.cjs"),K=require("../../crypto/babyJub.cjs"),c=require("../../crypto/poseidon.cjs"),l=require("./keyUtils.cjs"),d=require("../cacheDevices/AttachableMemoryCacheDevice.cjs"),h=require("ethers-v6h"),v=require("../../constants/chains.constants.cjs"),g=new d.AttachableMemoryCacheDevice,y=new d.AttachableMemoryCacheDevice,b={privateKey:"",publicKey:""};class m{signature;constructor(e){this.signature=e}getSignature(){return this.requireSignature(),this.signature}setSignature(e){this.signature=e}requireSignature(){if(!this.signature)throw Error("No signature provided")}verifyMessage(e){return this.requireSignature(),a.utils.verifyMessage(e,this.signature)}getShieldedPrivateKey=()=>(this.requireSignature(),a.ethers.utils.keccak256(this.signature));getShieldedPublicKey=()=>(this.requireSignature(),c.poseidonHash(this.getShieldedPrivateKey()));getAccessKey=()=>(this.requireSignature(),c.poseidonHash(this.getShieldedPrivateKey(),this.getShieldedPublicKey()));static getSignerAddressFromPrivateKey(e){return new h.ethers.Wallet(e).address}static deriveSignerFromNonce(e,t){const s=c.poseidonHash(t,e.getShieldedPrivateKey(),e.getShieldedPublicKey()),i=a.utils.keccak256(a.utils.toUtf8Bytes(s));return new h.ethers.Wallet(i)}static async signMessageFromPrivateKey(e,t){const s=new h.ethers.Wallet(e),i=a.utils.isHexString(t)?a.utils.arrayify(t):t;return s.signMessage(i)}static signTypedDataFromPrivateKey(e,t,s,i){return new h.ethers.Wallet(e).signTypedData(t,s,i)}static async authorizeDelegationFromPrivateKey(e,t,s,i){const n=new h.ethers.Wallet(e),r=new h.ethers.JsonRpcProvider(v.networkRegistry[t].fetchRpcUrl);return n.connect(r).authorize({address:s,...i!==void 0&&{nonce:i}})}getWalletSalt=e=>(this.requireSignature(),c.poseidonHash(this.getShieldedPublicKey(),this.getShieldedPrivateKey(),e));getInHinkalAddress=e=>{this.requireSignature();const t=c.poseidonHash(this.getShieldedPrivateKey(),e);return BigInt(t)};getBackendToken=()=>(this.requireSignature(),c.poseidonHash(this.getAccessKey(),this.getShieldedPublicKey()));static getRandomizedStealthPair=g.attach((e,t)=>{const s=K.babyJubInstance(),i=BigInt(t)%u.CIRCOM_P,n=e*i%u.CIRCOM_P,r=s.mulPointEscalar(s.Base8,e),o=s.mulPointEscalar(s.Base8,n),S=[BigInt(s.F.toString(r[0])),BigInt(s.F.toString(r[1]))],p=[BigInt(s.F.toString(o[0])),BigInt(s.F.toString(o[1]))];return{H0:S,H1:p}});static getStealthAddressCompressedPoints=(e,t)=>{const{H0:s,H1:i}=this.getRandomizedStealthPair(e,t),[n,r]=[s,i].map(o=>BigInt(o[1])+2n**255n*l.getCircomSign(o[0]));return{h0:n,h1:r}};static getStealthAddress=y.attach((e,t)=>{const{H0:s,H1:i}=this.getRandomizedStealthPair(e,t),r=[2n*l.getCircomSign(s[0])+l.getCircomSign(i[0]),s[1],i[1]];return c.poseidonHash(...r)});static getStealthAddressWithEKey=(e,t)=>({stealthAddress:this.getStealthAddress(e,t),encryptionKey:this.getEncryptionKeyPair(t).publicKey});static checkSignature=(e,t,s,i)=>{const{h0:n,h1:r}=this.getStealthAddressCompressedPoints(e,i);return t===n&&s===r};static getEncryptionKeyPair=e=>{const t=P.crypto_box_seed_keypair(a.ethers.utils.arrayify(e));return{privateKey:a.ethers.utils.hexlify(t.privateKey),publicKey:a.ethers.utils.hexlify(t.publicKey)}}}exports.EncryptionKeyPairDefaultValue=b;exports.UserKeys=m;exports.stealthAddressCacheDevice=y;exports.stealthPairCacheDevice=g;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { utils as
|
|
1
|
+
import { utils as g, ethers as h } from "ethers";
|
|
2
2
|
import m from "libsodium-wrappers";
|
|
3
3
|
import { CIRCOM_P as d } from "../../constants/protocol.constants.mjs";
|
|
4
4
|
import { babyJubInstance as p } from "../../crypto/babyJub.mjs";
|
|
5
5
|
import { poseidonHash as a } from "../../crypto/poseidon.mjs";
|
|
6
6
|
import { getCircomSign as l } from "./keyUtils.mjs";
|
|
7
7
|
import { AttachableMemoryCacheDevice as u } from "../cacheDevices/AttachableMemoryCacheDevice.mjs";
|
|
8
|
-
import { keccak256 as K, toUtf8Bytes as P } from "ethers/lib/utils";
|
|
9
8
|
import { ethers as c } from "ethers-v6h";
|
|
10
|
-
import { networkRegistry as
|
|
11
|
-
const
|
|
9
|
+
import { networkRegistry as K } from "../../constants/chains.constants.mjs";
|
|
10
|
+
const P = new u(), v = new u(), C = {
|
|
12
11
|
privateKey: "",
|
|
13
12
|
publicKey: ""
|
|
14
13
|
};
|
|
15
|
-
class
|
|
14
|
+
class D {
|
|
16
15
|
signature;
|
|
17
16
|
constructor(e) {
|
|
18
17
|
this.signature = e;
|
|
@@ -28,14 +27,14 @@ class W {
|
|
|
28
27
|
throw Error("No signature provided");
|
|
29
28
|
}
|
|
30
29
|
verifyMessage(e) {
|
|
31
|
-
return this.requireSignature(),
|
|
30
|
+
return this.requireSignature(), g.verifyMessage(e, this.signature);
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
34
33
|
* get shielded private key from message signature used to login to the application,
|
|
35
34
|
* this private key is used to generate encryption keypairs as well as public key
|
|
36
35
|
* @retuns 0x-prefixed shielded private key
|
|
37
36
|
*/
|
|
38
|
-
getShieldedPrivateKey = () => (this.requireSignature(),
|
|
37
|
+
getShieldedPrivateKey = () => (this.requireSignature(), h.utils.keccak256(this.signature));
|
|
39
38
|
/**
|
|
40
39
|
* generate shielded public key from private key
|
|
41
40
|
* @param privateKey the key used to generate the shielded public key, this should be the signature
|
|
@@ -52,18 +51,18 @@ class W {
|
|
|
52
51
|
return new c.Wallet(e).address;
|
|
53
52
|
}
|
|
54
53
|
static deriveSignerFromNonce(e, t) {
|
|
55
|
-
const r = a(t, e.getShieldedPrivateKey(), e.getShieldedPublicKey()), i =
|
|
54
|
+
const r = a(t, e.getShieldedPrivateKey(), e.getShieldedPublicKey()), i = g.keccak256(g.toUtf8Bytes(r));
|
|
56
55
|
return new c.Wallet(i);
|
|
57
56
|
}
|
|
58
57
|
static async signMessageFromPrivateKey(e, t) {
|
|
59
|
-
const r = new c.Wallet(e), i =
|
|
58
|
+
const r = new c.Wallet(e), i = g.isHexString(t) ? g.arrayify(t) : t;
|
|
60
59
|
return r.signMessage(i);
|
|
61
60
|
}
|
|
62
61
|
static signTypedDataFromPrivateKey(e, t, r, i) {
|
|
63
62
|
return new c.Wallet(e).signTypedData(t, r, i);
|
|
64
63
|
}
|
|
65
64
|
static async authorizeDelegationFromPrivateKey(e, t, r, i) {
|
|
66
|
-
const n = new c.Wallet(e), s = new c.JsonRpcProvider(
|
|
65
|
+
const n = new c.Wallet(e), s = new c.JsonRpcProvider(K[t].fetchRpcUrl);
|
|
67
66
|
return n.connect(s).authorize({
|
|
68
67
|
address: r,
|
|
69
68
|
...i !== void 0 && { nonce: i }
|
|
@@ -84,7 +83,7 @@ class W {
|
|
|
84
83
|
* @returns accessKey in hexstring with 0x prefixed
|
|
85
84
|
*/
|
|
86
85
|
getBackendToken = () => (this.requireSignature(), a(this.getAccessKey(), this.getShieldedPublicKey()));
|
|
87
|
-
static getRandomizedStealthPair =
|
|
86
|
+
static getRandomizedStealthPair = P.attach(
|
|
88
87
|
(e, t) => {
|
|
89
88
|
const r = p(), i = BigInt(t) % d, n = e * i % d, s = r.mulPointEscalar(r.Base8, e), o = r.mulPointEscalar(r.Base8, n), y = [BigInt(r.F.toString(s[0])), BigInt(r.F.toString(s[1]))], S = [BigInt(r.F.toString(o[0])), BigInt(r.F.toString(o[1]))];
|
|
90
89
|
return { H0: y, H1: S };
|
|
@@ -94,7 +93,7 @@ class W {
|
|
|
94
93
|
const { H0: r, H1: i } = this.getRandomizedStealthPair(e, t), [n, s] = [r, i].map((o) => BigInt(o[1]) + 2n ** 255n * l(o[0]));
|
|
95
94
|
return { h0: n, h1: s };
|
|
96
95
|
};
|
|
97
|
-
static getStealthAddress =
|
|
96
|
+
static getStealthAddress = v.attach((e, t) => {
|
|
98
97
|
const { H0: r, H1: i } = this.getRandomizedStealthPair(e, t), s = [2n * l(r[0]) + l(i[0]), r[1], i[1]];
|
|
99
98
|
return a(...s);
|
|
100
99
|
});
|
|
@@ -109,16 +108,16 @@ class W {
|
|
|
109
108
|
* and must correspond to 32 bytes
|
|
110
109
|
*/
|
|
111
110
|
static getEncryptionKeyPair = (e) => {
|
|
112
|
-
const t = m.crypto_box_seed_keypair(
|
|
111
|
+
const t = m.crypto_box_seed_keypair(h.utils.arrayify(e));
|
|
113
112
|
return {
|
|
114
|
-
privateKey:
|
|
115
|
-
publicKey:
|
|
113
|
+
privateKey: h.utils.hexlify(t.privateKey),
|
|
114
|
+
publicKey: h.utils.hexlify(t.publicKey)
|
|
116
115
|
};
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
C as EncryptionKeyPairDefaultValue,
|
|
120
|
+
D as UserKeys,
|
|
121
|
+
v as stealthAddressCacheDevice,
|
|
122
|
+
P as stealthPairCacheDevice
|
|
124
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("@hazae41/echalote"),m=require("@hazae41/cadenas"),S=require("@hazae41/fleche"),p=require("@hazae41/ed25519"),b=require("@hazae41/x25519"),g=require("@hazae41/chacha20poly1305"),y=require("@hazae41/sha1"),u=require("@brumewallet/wallet.wasm"),E=require("./WebSocketDuplex.cjs"),a=require("../../error-handling/logger.cjs");require("../../types/circom-data.types.cjs");require("../../types/transactions.types.cjs");require("../../types/activities.types.cjs");const _=require("../../types/routing.types.cjs"),x=require("../../functions/utils/serialize.utils.cjs"),k=require("buffer");typeof globalThis.Buffer>"u"&&(globalThis.Buffer=k.Buffer);class w{static initializationPromise;cryptoInitialized=!1;socket;tor;consensus;abortController;middles=[];exits=[];circuits=[];circuitIndex=0;CIRCUIT_POOL_SIZE=5;TOP_RELAY_COUNT=50;static async create(){return this.initializationPromise?this.initializationPromise:(this.initializationPromise=(async()=>{try{const e=new w;return await e.initialize(),e}catch(e){throw this.initializationPromise=void 0,e}})(),this.initializationPromise)}async initialize(){await this.initializeCryptoOrThrow(),this.socket=await this.createSnowflakeSocketOrThrow(),this.tor=await this.createTorClientOrThrow(this.socket),await this.loadConsensus();const e=Array(this.CIRCUIT_POOL_SIZE).fill(null).map((i,r)=>this.createNewCircuit().catch(s=>(a.Logger.error(`Failed to build initial circuit ${r}`,s),null))),t=await Promise.all(e);if(this.circuits=t.filter(i=>i!==null),this.circuits.length===0)throw new Error("Failed to build any circuits")}async initializeCryptoOrThrow(){this.cryptoInitialized||(await u.WalletWasm.initBundled(),y.Sha1.set(y.Sha1.fromWasm(u.WalletWasm)),p.Ed25519.set(await p.Ed25519.fromNativeOrWasm(u.WalletWasm)),b.X25519.set(b.X25519.fromWasm(u.WalletWasm)),g.ChaCha20Poly1305.set(g.ChaCha20Poly1305.fromWasm(u.WalletWasm)),this.cryptoInitialized=!0)}async createSnowflakeSocketOrThrow(){const e=new WebSocket("wss://snowflake.torproject.net/");return e.binaryType="arraybuffer",await new Promise((t,i)=>{e.onopen=t,e.onerror=i}),e}async createTorClientOrThrow(e){const t=new E.WebSocketDuplex(e),i=h.createSnowflakeStream(t),r=new h.TorClientDuplex;return this.abortController=new AbortController,i.outer.readable.pipeTo(r.inner.writable,{signal:this.abortController.signal}).catch(s=>{a.Logger.error("Pipe to Tor failed:",s)}),r.inner.readable.pipeTo(i.outer.writable,{signal:this.abortController.signal}).catch(s=>{a.Logger.error("Pipe to TCP failed:",s)}),await r.waitOrThrow(),r}async loadConsensus(){if(!this.tor)throw new Error("Tor client not initialized");const e=await this.tor.createOrThrow();if(this.consensus=await h.Consensus.fetchOrThrow(e),this.middles=this.consensus.microdescs.filter(t=>t.flags.includes("Fast")&&t.flags.includes("Stable")&&t.flags.includes("V2Dir")),this.middles.sort((t,i)=>{const r=Number(t.bandwidth?.Bandwidth)||0;return(Number(i.bandwidth?.Bandwidth)||0)-r}),this.middles=this.middles.slice(0,this.TOP_RELAY_COUNT),this.exits=this.consensus.microdescs.filter(t=>t.flags.includes("Fast")&&t.flags.includes("Stable")&&t.flags.includes("Exit")&&!t.flags.includes("BadExit")),this.exits.sort((t,i)=>{const r=Number(t.bandwidth?.Bandwidth)||0;return(Number(i.bandwidth?.Bandwidth)||0)-r}),this.exits=this.exits.slice(0,this.TOP_RELAY_COUNT),this.middles.length===0||this.exits.length===0)throw new Error("No suitable relays found")}async createNewCircuit(){if(!this.tor)throw new Error("Tor client not initialized");const e=await this.tor.createOrThrow();try{const t=this.middles[Math.floor(Math.random()*this.middles.length)];if(!t)throw new Error("No middle relays available");const i=await h.Consensus.Microdesc.fetchOrThrow(e,t);await e.extendOrThrow(i);const r=this.exits[Math.floor(Math.random()*this.exits.length)];if(!r)throw new Error("No exit relays available");const s=await h.Consensus.Microdesc.fetchOrThrow(e,r);return await e.extendOrThrow(s),e}catch(t){throw a.Logger.error("Failed to build circuit",t),t}}async openTlsConnectionOrThrow(e,t,i=443){const r=await e.openOrThrow(t,i),s=[m.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,m.Ciphers.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384],n=new m.TlsClientDuplex({host_name:t,ciphers:s});return r.outer.readable.pipeTo(n.inner.writable).catch(()=>{}),n.inner.readable.pipeTo(r.outer.writable).catch(()=>{}),n.outer}async fetchViaTor(e,t,i,r){if(this.circuits.length===0)throw new Error("Circuit pool is empty, client may be closed or failed to init.");const s=new URL(t),n=this.circuits.length;let C;for(let f=0;f<n;f+=1){const c=(this.circuitIndex+f)%n,T=this.circuits[c];if(T)try{const d=await this.openTlsConnectionOrThrow(T,s.hostname,443),o={Host:s.hostname,Connection:"keep-alive",...r},l={method:e,stream:d,headers:o};i&&e!==_.HttpMethod.GET&&(l.body=typeof i=="string"?i:x.CustomJSONStringify(i),!o["Content-Type"]&&!o["content-type"]&&(o["Content-Type"]="application/json"));const O=await S.fetch(t,l);return this.circuitIndex=c,O}catch(d){C=d;const o=d.message?.toLowerCase()||"";a.Logger.error(`[TorClient] Circuit ${c} failed:`,o),(o.includes("circuit")||o.includes("destroyed")||o.includes("closed"))&&this.createNewCircuit().then(l=>{this.circuits[c]=l,a.Logger.log(`[TorClient] Replaced circuit ${c}`)}).catch(l=>{a.Logger.error(`[TorClient] Failed to replace circuit ${c}`,l)})}}throw new Error(`[TorClient] All ${n} circuits failed. Last error: ${C?.message||"unknown"}`)}async close(){this.abortController&&this.abortController.abort(),this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)&&this.socket.close(),this.circuits=[],this.socket=void 0,this.tor=void 0,this.consensus=void 0,this.abortController=void 0,w.initializationPromise=void 0}}exports.TorClient=w;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { createSnowflakeStream as
|
|
2
|
-
import { Ciphers as
|
|
3
|
-
import { fetch as
|
|
4
|
-
import { Ed25519 as
|
|
5
|
-
import { X25519 as
|
|
6
|
-
import { ChaCha20Poly1305 as
|
|
7
|
-
import { Sha1 as
|
|
8
|
-
import {
|
|
1
|
+
import { createSnowflakeStream as S, TorClientDuplex as E, Consensus as u } from "@hazae41/echalote";
|
|
2
|
+
import { Ciphers as T, TlsClientDuplex as _ } from "@hazae41/cadenas";
|
|
3
|
+
import { fetch as x } from "@hazae41/fleche";
|
|
4
|
+
import { Ed25519 as C } from "@hazae41/ed25519";
|
|
5
|
+
import { X25519 as b } from "@hazae41/x25519";
|
|
6
|
+
import { ChaCha20Poly1305 as y } from "@hazae41/chacha20poly1305";
|
|
7
|
+
import { Sha1 as O } from "@hazae41/sha1";
|
|
8
|
+
import { WalletWasm as h } from "@brumewallet/wallet.wasm";
|
|
9
|
+
import { WebSocketDuplex as k } from "./WebSocketDuplex.mjs";
|
|
9
10
|
import { Logger as a } from "../../error-handling/logger.mjs";
|
|
10
11
|
import "../../types/circom-data.types.mjs";
|
|
11
12
|
import "../../types/transactions.types.mjs";
|
|
12
13
|
import "../../types/activities.types.mjs";
|
|
13
|
-
import { HttpMethod as
|
|
14
|
-
import { CustomJSONStringify as
|
|
15
|
-
import { Buffer as
|
|
16
|
-
typeof globalThis.Buffer > "u" && (globalThis.Buffer =
|
|
17
|
-
class
|
|
14
|
+
import { HttpMethod as P } from "../../types/routing.types.mjs";
|
|
15
|
+
import { CustomJSONStringify as N } from "../../functions/utils/serialize.utils.mjs";
|
|
16
|
+
import { Buffer as z } from "buffer";
|
|
17
|
+
typeof globalThis.Buffer > "u" && (globalThis.Buffer = z);
|
|
18
|
+
class m {
|
|
18
19
|
static initializationPromise;
|
|
19
20
|
cryptoInitialized = !1;
|
|
20
21
|
socket;
|
|
@@ -30,35 +31,32 @@ class u {
|
|
|
30
31
|
static async create() {
|
|
31
32
|
return this.initializationPromise ? this.initializationPromise : (this.initializationPromise = (async () => {
|
|
32
33
|
try {
|
|
33
|
-
const
|
|
34
|
-
return await
|
|
35
|
-
} catch (
|
|
36
|
-
throw this.initializationPromise = void 0,
|
|
34
|
+
const i = new m();
|
|
35
|
+
return await i.initialize(), i;
|
|
36
|
+
} catch (i) {
|
|
37
|
+
throw this.initializationPromise = void 0, i;
|
|
37
38
|
}
|
|
38
39
|
})(), this.initializationPromise);
|
|
39
40
|
}
|
|
40
41
|
async initialize() {
|
|
41
42
|
await this.initializeCryptoOrThrow(), this.socket = await this.createSnowflakeSocketOrThrow(), this.tor = await this.createTorClientOrThrow(this.socket), await this.loadConsensus();
|
|
42
|
-
const
|
|
43
|
+
const i = Array(this.CIRCUIT_POOL_SIZE).fill(null).map(
|
|
43
44
|
(r, e) => this.createNewCircuit().catch((o) => (a.error(`Failed to build initial circuit ${e}`, o), null))
|
|
44
|
-
),
|
|
45
|
-
if (this.circuits =
|
|
45
|
+
), t = await Promise.all(i);
|
|
46
|
+
if (this.circuits = t.filter((r) => r !== null), this.circuits.length === 0)
|
|
46
47
|
throw new Error("Failed to build any circuits");
|
|
47
48
|
}
|
|
48
49
|
async initializeCryptoOrThrow() {
|
|
49
|
-
|
|
50
|
-
return;
|
|
51
|
-
const { WalletWasm: t } = await import("@brumewallet/wallet.wasm");
|
|
52
|
-
await t.initBundled(), y.set(y.fromWasm(t)), T.set(await T.fromNativeOrWasm(t)), C.set(C.fromWasm(t)), b.set(b.fromWasm(t)), this.cryptoInitialized = !0;
|
|
50
|
+
this.cryptoInitialized || (await h.initBundled(), O.set(O.fromWasm(h)), C.set(await C.fromNativeOrWasm(h)), b.set(b.fromWasm(h)), y.set(y.fromWasm(h)), this.cryptoInitialized = !0);
|
|
53
51
|
}
|
|
54
52
|
async createSnowflakeSocketOrThrow() {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
}),
|
|
53
|
+
const i = new WebSocket("wss://snowflake.torproject.net/");
|
|
54
|
+
return i.binaryType = "arraybuffer", await new Promise((t, r) => {
|
|
55
|
+
i.onopen = t, i.onerror = r;
|
|
56
|
+
}), i;
|
|
59
57
|
}
|
|
60
|
-
async createTorClientOrThrow(
|
|
61
|
-
const
|
|
58
|
+
async createTorClientOrThrow(i) {
|
|
59
|
+
const t = new k(i), r = S(t), e = new E();
|
|
62
60
|
return this.abortController = new AbortController(), r.outer.readable.pipeTo(e.inner.writable, { signal: this.abortController.signal }).catch((o) => {
|
|
63
61
|
a.error("Pipe to Tor failed:", o);
|
|
64
62
|
}), e.inner.readable.pipeTo(r.outer.writable, { signal: this.abortController.signal }).catch((o) => {
|
|
@@ -68,16 +66,16 @@ class u {
|
|
|
68
66
|
async loadConsensus() {
|
|
69
67
|
if (!this.tor)
|
|
70
68
|
throw new Error("Tor client not initialized");
|
|
71
|
-
const
|
|
72
|
-
if (this.consensus = await
|
|
73
|
-
(
|
|
74
|
-
), this.middles.sort((
|
|
75
|
-
const e = Number(
|
|
69
|
+
const i = await this.tor.createOrThrow();
|
|
70
|
+
if (this.consensus = await u.fetchOrThrow(i), this.middles = this.consensus.microdescs.filter(
|
|
71
|
+
(t) => t.flags.includes("Fast") && t.flags.includes("Stable") && t.flags.includes("V2Dir")
|
|
72
|
+
), this.middles.sort((t, r) => {
|
|
73
|
+
const e = Number(t.bandwidth?.Bandwidth) || 0;
|
|
76
74
|
return (Number(r.bandwidth?.Bandwidth) || 0) - e;
|
|
77
75
|
}), this.middles = this.middles.slice(0, this.TOP_RELAY_COUNT), this.exits = this.consensus.microdescs.filter(
|
|
78
|
-
(
|
|
79
|
-
), this.exits.sort((
|
|
80
|
-
const e = Number(
|
|
76
|
+
(t) => t.flags.includes("Fast") && t.flags.includes("Stable") && t.flags.includes("Exit") && !t.flags.includes("BadExit")
|
|
77
|
+
), this.exits.sort((t, r) => {
|
|
78
|
+
const e = Number(t.bandwidth?.Bandwidth) || 0;
|
|
81
79
|
return (Number(r.bandwidth?.Bandwidth) || 0) - e;
|
|
82
80
|
}), this.exits = this.exits.slice(0, this.TOP_RELAY_COUNT), this.middles.length === 0 || this.exits.length === 0)
|
|
83
81
|
throw new Error("No suitable relays found");
|
|
@@ -85,52 +83,52 @@ class u {
|
|
|
85
83
|
async createNewCircuit() {
|
|
86
84
|
if (!this.tor)
|
|
87
85
|
throw new Error("Tor client not initialized");
|
|
88
|
-
const
|
|
86
|
+
const i = await this.tor.createOrThrow();
|
|
89
87
|
try {
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
88
|
+
const t = this.middles[Math.floor(Math.random() * this.middles.length)];
|
|
89
|
+
if (!t)
|
|
92
90
|
throw new Error("No middle relays available");
|
|
93
|
-
const r = await
|
|
94
|
-
await
|
|
91
|
+
const r = await u.Microdesc.fetchOrThrow(i, t);
|
|
92
|
+
await i.extendOrThrow(r);
|
|
95
93
|
const e = this.exits[Math.floor(Math.random() * this.exits.length)];
|
|
96
94
|
if (!e)
|
|
97
95
|
throw new Error("No exit relays available");
|
|
98
|
-
const o = await
|
|
99
|
-
return await
|
|
100
|
-
} catch (
|
|
101
|
-
throw a.error("Failed to build circuit",
|
|
96
|
+
const o = await u.Microdesc.fetchOrThrow(i, e);
|
|
97
|
+
return await i.extendOrThrow(o), i;
|
|
98
|
+
} catch (t) {
|
|
99
|
+
throw a.error("Failed to build circuit", t), t;
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
|
-
async openTlsConnectionOrThrow(
|
|
105
|
-
const e = await
|
|
102
|
+
async openTlsConnectionOrThrow(i, t, r = 443) {
|
|
103
|
+
const e = await i.openOrThrow(t, r), o = [T.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, T.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384], n = new _({ host_name: t, ciphers: o });
|
|
106
104
|
return e.outer.readable.pipeTo(n.inner.writable).catch(() => {
|
|
107
105
|
}), n.inner.readable.pipeTo(e.outer.writable).catch(() => {
|
|
108
106
|
}), n.outer;
|
|
109
107
|
}
|
|
110
|
-
async fetchViaTor(
|
|
108
|
+
async fetchViaTor(i, t, r, e) {
|
|
111
109
|
if (this.circuits.length === 0)
|
|
112
110
|
throw new Error("Circuit pool is empty, client may be closed or failed to init.");
|
|
113
|
-
const o = new URL(
|
|
114
|
-
let
|
|
115
|
-
for (let
|
|
116
|
-
const c = (this.circuitIndex +
|
|
117
|
-
if (
|
|
111
|
+
const o = new URL(t), n = this.circuits.length;
|
|
112
|
+
let f;
|
|
113
|
+
for (let w = 0; w < n; w += 1) {
|
|
114
|
+
const c = (this.circuitIndex + w) % n, p = this.circuits[c];
|
|
115
|
+
if (p)
|
|
118
116
|
try {
|
|
119
|
-
const
|
|
117
|
+
const d = await this.openTlsConnectionOrThrow(p, o.hostname, 443), s = {
|
|
120
118
|
Host: o.hostname,
|
|
121
119
|
Connection: "keep-alive",
|
|
122
120
|
...e
|
|
123
121
|
}, l = {
|
|
124
|
-
method:
|
|
125
|
-
stream:
|
|
122
|
+
method: i,
|
|
123
|
+
stream: d,
|
|
126
124
|
headers: s
|
|
127
125
|
};
|
|
128
|
-
r &&
|
|
129
|
-
const
|
|
130
|
-
return this.circuitIndex = c,
|
|
131
|
-
} catch (
|
|
132
|
-
|
|
133
|
-
const s =
|
|
126
|
+
r && i !== P.GET && (l.body = typeof r == "string" ? r : N(r), !s["Content-Type"] && !s["content-type"] && (s["Content-Type"] = "application/json"));
|
|
127
|
+
const g = await x(t, l);
|
|
128
|
+
return this.circuitIndex = c, g;
|
|
129
|
+
} catch (d) {
|
|
130
|
+
f = d;
|
|
131
|
+
const s = d.message?.toLowerCase() || "";
|
|
134
132
|
a.error(`[TorClient] Circuit ${c} failed:`, s), (s.includes("circuit") || s.includes("destroyed") || s.includes("closed")) && this.createNewCircuit().then((l) => {
|
|
135
133
|
this.circuits[c] = l, a.log(`[TorClient] Replaced circuit ${c}`);
|
|
136
134
|
}).catch((l) => {
|
|
@@ -138,12 +136,12 @@ class u {
|
|
|
138
136
|
});
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
|
-
throw new Error(`[TorClient] All ${n} circuits failed. Last error: ${
|
|
139
|
+
throw new Error(`[TorClient] All ${n} circuits failed. Last error: ${f?.message || "unknown"}`);
|
|
142
140
|
}
|
|
143
141
|
async close() {
|
|
144
|
-
this.abortController && this.abortController.abort(), this.socket && (this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING) && this.socket.close(), this.circuits = [], this.socket = void 0, this.tor = void 0, this.consensus = void 0, this.abortController = void 0,
|
|
142
|
+
this.abortController && this.abortController.abort(), this.socket && (this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING) && this.socket.close(), this.circuits = [], this.socket = void 0, this.tor = void 0, this.consensus = void 0, this.abortController = void 0, m.initializationPromise = void 0;
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
export {
|
|
148
|
-
|
|
146
|
+
m as TorClient
|
|
149
147
|
};
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./API/getServerURL.cjs"),q=require("./API/getCoingeckoPrice.cjs"),be=require("./API/callOneInchAPI.cjs"),Me=require("./API/callRelayer.cjs"),Fe=require("./API/getGasEstimates.cjs"),Y=require("./API/getTokenPrice.cjs"),fe=require("./API/checkRisk.cjs"),xe=require("./API/relayCalls.cjs"),He=require("./API/API.cjs"),Ve=require("./API/getRelayerURL.cjs"),we=require("./API/duneAPI.cjs"),C=require("./API/tenderly.api.cjs"),We=require("./API/token-calls.cjs"),Ge=require("./API/callLifiAPI.cjs"),re=require("./API/getLifiStatus.cjs"),oe=require("./API/generate-trading-points.cjs"),p=require("./API/brotherhoodCalls.cjs"),K=require("./API/getWebsiteURL.cjs"),I=require("./API/mysteryBoxesCalls.cjs"),Ye=require("./constants/assets.constants.cjs"),o=require("./constants/token-data/index.cjs"),Ke=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Xe=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),ze=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),Ze=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),je=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),Je=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),Qe=require("./constants/deploy-data/deploy-data-base.json.cjs"),$e=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),et=require("./constants/deploy-data/deploy-data-arcTestnet.json.cjs"),a=require("./constants/chains.constants.cjs"),ae=require("./constants/fees.constants.cjs"),m=require("./constants/contracts.constants.cjs"),d=require("./constants/kyc.constants.cjs"),t=require("./constants/server.constants.cjs"),u=require("./constants/vite.constants.cjs"),e=require("./constants/protocol.constants.cjs"),s=require("./constants/coingecko.constants.cjs"),se=require("./constants/backend.constants.cjs"),n=require("./constants/rewards.constants.cjs"),tt=require("./constants/reorg-depths.constants.cjs"),rt=require("./constants/mediaUrls.constants.cjs"),P=require("./constants/permit2.constants.cjs"),h=require("./constants/addresses.constants.cjs"),ot=require("./constants/conversion.constants.cjs"),ne=require("./constants/token.limits.constants.cjs"),at=require("./constants/balance.constants.cjs"),st=require("./constants/bridging.constants.cjs"),ie=require("./constants/wallet.constants.cjs"),ce=require("./constants/presale.constants.cjs"),nt=require("./constants/lifi.constants.cjs"),it=require("./constants/oauthUrls.constants.cjs"),S=require("./constants/mystery-boxes.constants.cjs"),ct=require("./constants/activity.constants.cjs"),y=require("./constants/tasks.constants.cjs"),lt=require("./constants/events.constants.cjs"),k=require("./constants/function-signatures.constants.cjs"),X=require("./crypto/poseidon.cjs"),le=require("./crypto/babyJub.cjs"),ut=require("./crypto/preProcessing.cjs"),St=require("./data-structures/ValueCache/ValueCache.cjs"),v=require("./data-structures/crypto-keys/decodeUTXO.cjs"),z=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),B=require("./data-structures/crypto-keys/keys.cjs"),ue=require("./data-structures/crypto-keys/keyUtils.cjs"),Tt=require("./data-structures/Hinkal/Hinkal.cjs"),Se=require("./data-structures/Hinkal/hinkalDeposit.cjs"),At=require("./data-structures/Hinkal/hinkalSwap.cjs"),pt=require("./data-structures/Hinkal/hinkalTransfer.cjs"),dt=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),gt=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),Et=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),_t=require("./data-structures/Hinkal/hinkalProxySwap.cjs"),Rt=require("./data-structures/merkle-tree/MerkleTree.cjs"),It=require("./data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs"),Pt=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),Ct=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),mt=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),ht=require("./data-structures/event-service/AbstractApprovalsSnapshotService.cjs"),yt=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),kt=require("./data-structures/event-service/AbstractSnapshotService.cjs"),Dt=require("./data-structures/event-service/AbstractEventService.cjs"),Ot=require("./data-structures/event-service/BlockchainEventEmitter.cjs"),Nt=require("./data-structures/utxo/Utxo.cjs"),Ut=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),Lt=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),qt=require("./data-structures/transactions-manager/history/history.types.cjs"),vt=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),Bt=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),bt=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),Mt=require("./data-structures/IndexedDB/activity-db.cjs"),Ft=require("./data-structures/IndexedDB/balances-db.cjs"),ft=require("./data-structures/IndexedDB/private-balances-db.cjs"),xt=require("./data-structures/IndexedDB/prices-db.cjs"),Ht=require("./data-structures/IndexedDB/contact-db.cjs"),Vt=require("./data-structures/IndexedDB/signatures-db.cjs"),Te=require("./data-structures/TokenDBs/PrivateTokensDB.cjs"),Ae=require("./data-structures/TokenDBs/PublicTokensDB.cjs"),wt=require("./data-structures/TokenDBs/token-visibility-db.cjs"),pe=require("./data-structures/TokenDBs/ArcPublicTokensDB.cjs"),Wt=require("./data-structures/presale/PresaleContractWrapper.cjs"),Gt=require("./data-structures/snapshot/SnapshotFetcherService.cjs"),Yt=require("./data-structures/tor/TorClient.cjs"),Kt=require("./data-structures/tor/WebSocketDuplex.cjs"),Xt=require("./data-structures/tor/HttpClient.cjs"),de=require("./data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs"),zt=require("./error-handling/customErrors/ErrorWithAmount.cjs"),Zt=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),ge=require("./error-handling/customErrors/customErrors.helpers.cjs"),jt=require("./error-handling/customErrors/SimulationFailureError.cjs"),Jt=require("./error-handling/customErrors/ErrorWithTx.cjs"),D=require("./error-handling/error-codes.constants.cjs"),Z=require("./error-handling/get-error.message.cjs"),Qt=require("./error-handling/handleErrorRestore.cjs"),$t=require("./error-handling/logError.cjs"),er=require("./error-handling/types.cjs"),tr=require("./error-handling/logger.cjs"),g=require("./externalABIs/index.cjs"),Ee=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),rr=require("./functions/kyc/passportHelper.cjs"),or=require("./functions/kyc/openDefaultPassportWindow.cjs"),r=require("./functions/utils/amounts.utils.cjs"),T=require("./functions/utils/cacheFunctions.cjs"),_e=require("./functions/utils/create-provider.cjs"),Re=require("./functions/utils/external-action.utils.cjs"),A=require("./functions/utils/erc20tokenFunctions.cjs"),ar=require("./functions/utils/requireEnv.cjs"),j=require("./functions/utils/resolve-sync.utils.cjs"),sr=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),nr=require("./functions/pre-transaction/interaction-to-action.cjs"),ir=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),cr=require("./functions/pre-transaction/process-gas-estimates.cjs"),lr=require("./functions/pre-transaction/getFlatFees.cjs"),Ie=require("./functions/pre-transaction/outputApprovalDataProcessing.cjs"),ur=require("./functions/pre-transaction/getVolatileTransferAmount.cjs"),Sr=require("./functions/pre-transaction/constructAdminData.cjs"),Pe=require("./functions/utils/evmNetworkFunctions.cjs"),Ce=require("./functions/utils/userAgent.cjs"),J=require("./functions/utils/getDataFromTransaction.cjs"),Tr=require("./functions/utils/reloadPage.cjs"),E=require("./functions/utils/string.utils.cjs"),Ar=require("./functions/utils/nickname.utils.cjs"),Q=require("./functions/utils/caseInsensitive.utils.cjs"),i=require("./functions/utils/time.utils.cjs"),pr=require("./functions/utils/cacheDevice.utils.cjs"),me=require("./functions/utils/process.utils.cjs"),dr=require("./functions/utils/getBlockExplorerUrl.cjs"),he=require("./functions/utils/involves-permit2-op.cjs"),gr=require("./functions/utils/upToDateState.cjs"),ye=require("./functions/utils/serialize.utils.cjs"),ke=require("./functions/utils/processUseApprovalUtxoData.cjs"),Er=require("./functions/utils/convertEmporiumOpToCallInfo.cjs"),De=require("./functions/utils/getRecipientInfoFromUserKeys.cjs"),b=require("./functions/utils/publicBalance.utils.cjs"),_r=require("./functions/utils/rpc-int-encode.cjs"),Rr=require("./functions/utils/token-check.utils.cjs"),Ir=require("./functions/utils/arraysMatch.cjs"),M=require("./functions/utils/addresses.cjs"),Pr=require("./functions/utils/trimFieldValues.cjs"),F=require("./functions/utils/walletBalances.utils.cjs"),Cr=require("./functions/utils/mutexes.utils.cjs"),mr=require("./functions/utils/ethers-formatter.utils.cjs"),hr=require("./functions/utils/nftTokenFunctions.cjs"),yr=require("./functions/utils/inLogicMetadata.cjs"),kr=require("./functions/utils/networks.utils.cjs"),Dr=require("./functions/utils/is-valid-url.cjs"),Or=require("./functions/utils/get-hinkal-approvals.cjs"),f=require("./functions/utils/mystery-box-auction.utils.cjs"),Nr=require("./functions/utils/postToOffscreen.cjs"),Ur=require("./functions/utils/get-signature-header.cjs"),_=require("./functions/web3/etherFunctions.cjs"),x=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),Oe=require("./functions/web3/events/getShieldedBalance.cjs"),Ne=require("./functions/web3/events/web3RetrieveEvents.cjs"),Lr=require("./functions/web3/events/balanceChangedHandler.cjs"),qr=require("./functions/web3/events/balanceChangedCustomHandler.cjs"),H=require("./functions/web3/events/getApprovedBalance.cjs"),vr=require("./functions/web3/events/getTransactionLogEvents.cjs"),V=require("./functions/web3/uniswapAPI.cjs"),Br=require("./functions/web3/odosAPI.cjs"),br=require("./functions/web3/oneInchAPI.cjs"),Mr=require("./functions/web3/lifiAPI.cjs"),Fr=require("./functions/web3/runContractFunction.cjs"),fr=require("./functions/web3/getTokenHolder.cjs"),$=require("./functions/web3/EIP-712.cjs"),xr=require("./functions/snarkjs/constructGeneralZkProof.cjs"),Hr=require("./functions/snarkjs/constructEmporiumProof.cjs"),c=require("./functions/snarkjs/common.snarkjs.cjs"),Vr=require("./functions/snarkjs/generateZkProof.cjs"),O=require("./functions/staking/index.cjs"),l=require("./functions/private-wallet/emporium.helpers.cjs"),Ue=require("./functions/private-wallet/opProducer.cjs"),w=require("./functions/private-wallet/emporium.swap.helpers.cjs"),wr=require("./types/approvals.types.cjs"),W=require("./types/circom-data.types.cjs"),Wr=require("./types/ethereum-network.types.cjs"),Gr=require("./types/external-action.types.cjs"),R=require("./types/hinkal.types.cjs"),N=require("./types/kyc.types.cjs"),Yr=require("./types/token.types.cjs"),Kr=require("./types/slippage.types.cjs"),ee=require("./types/transactions.types.cjs"),Le=require("./types/rewards.types.cjs"),Xr=require("./types/hinkal.stake.types.cjs"),zr=require("./types/admin.types.cjs"),U=require("./types/activities.types.cjs"),Zr=require("./types/sandbox.types.cjs"),jr=require("./types/balances.types.cjs"),Jr=require("./types/cache.types.cjs"),Qr=require("./types/token-prices.types.cjs"),G=require("./types/new-rewards.type.cjs"),qe=require("./types/RewardUserEnums.cjs"),ve=require("./types/generatePoints.cjs"),$r=require("./types/eip5792.types.cjs"),te=require("./types/mystery-boxes.types.cjs"),eo=require("./types/merch-order.types.cjs"),to=require("./types/routing.types.cjs"),ro=require("./types/confirmation-request.types.cjs"),oo=require("./types/offscreen.types.cjs"),ao=require("./mutexes/mutex.cjs"),Be=require("./constants/token-data/ERC20Registry.cjs"),so=require("./constants/token-data/popularTokens.constants.cjs"),no=require("./externalABIs/amToken.cjs"),io=require("./externalABIs/USDC.cjs"),co=require("./externalABIs/DAI.cjs"),lo=require("./externalABIs/USDR.cjs"),uo=require("./externalABIs/USDR3CRV.cjs"),So=require("./externalABIs/USDT.cjs"),To=require("./externalABIs/WETH.cjs"),Ao=require("./externalABIs/BUSD.cjs"),po=require("./externalABIs/SanctionsList.cjs"),go=require("./externalABIs/OptimismGasPriceOracle.json.cjs"),Eo=require("./externalABIs/NodeInterfaceABI.json.cjs");exports.DATA_SERVER_URL=L.DATA_SERVER_URL;exports.getDataServerURL=L.getDataServerURL;exports.getServerURL=L.getServerURL;exports.getSnapshotServerURL=L.getSnapshotServerURL;exports.getCoingeckoPrice=q.getCoingeckoPrice;exports.getCoingeckoPrice2=q.getCoingeckoPrice2;exports.getCoingeckoPrices=q.getCoingeckoPrices;exports.getCoingeckoTokenList=q.getCoingeckoTokenList;exports.callOneInchAPI=be.callOneInchAPI;exports.callRelayerTransactAPI=Me.callRelayerTransactAPI;exports.getGasEstimates=Fe.getGasEstimates;exports.getTokenPrice=Y.getTokenPrice;exports.getTokenPriceEth=Y.getTokenPriceEth;exports.getTokenPrices=Y.getTokenPrices;exports.checkRisk=fe.checkRisk;exports.getIdleRelay=xe.getIdleRelay;exports.API=He.API;exports.getRelayerURL=Ve.getRelayerURL;exports.getPublicWalletBalance=we.getPublicWalletBalance;exports.WALLET_API=C.WALLET_API;exports.rpcGetStorageChanges=C.rpcGetStorageChanges;exports.rpcSimulateBundle=C.rpcSimulateBundle;exports.rpcSimulateTransaction=C.rpcSimulateTransaction;exports.simulateTx=C.simulateTx;exports.tenderlyRpcLinks=C.tenderlyRpcLinks;exports.tokensInfoCall=We.tokensInfoCall;exports.callLifiAPI=Ge.callLifiAPI;exports.LifiStatus=re.LifiStatus;exports.getLifiStatus=re.getLifiStatus;exports.generateAumPoints=oe.generateAumPoints;exports.generateTradingPoints=oe.generateTradingPoints;exports.createBrotherhood=p.createBrotherhood;exports.editBrotherhood=p.editBrotherhood;exports.getBrotherhood=p.getBrotherhood;exports.getBrotherhoodUsers=p.getBrotherhoodUsers;exports.getCurrentUserBrotherhood=p.getCurrentUserBrotherhood;exports.getCurrentUserBrotherhoodUsers=p.getCurrentUserBrotherhoodUsers;exports.getPublicBrotherhoods=p.getPublicBrotherhoods;exports.joinBrotherhood=p.joinBrotherhood;exports.leaveBrotherhood=p.leaveBrotherhood;exports.getHinkalLandingURL=K.getHinkalLandingURL;exports.getRewardsURL=K.getRewardsURL;exports.getWalletOnboardingURL=K.getWalletOnboardingURL;exports.claimMerchItem=I.claimMerchItem;exports.createOrUpdateMerchAddress=I.createOrUpdateMerchAddress;exports.getCurrentAuctionsInfo=I.getCurrentAuctionsInfo;exports.getCurrentDayBoxPrizeCounts=I.getCurrentDayBoxPrizeCounts;exports.getMerchOrders=I.getMerchOrders;exports.getMysteryBoxesHistory=I.getMysteryBoxesHistory;exports.getServerUtc=I.getServerUtc;exports.openMysteryBox=I.openMysteryBox;exports.IMAGE_PATHS=Ye.IMAGE_PATHS;exports.arbMainnetRegistry=o.arbMainnetRegistry;exports.arbMainnetRegistryFixed=o.arbMainnetRegistryFixed;exports.arcTestnetRegistry=o.arcTestnetRegistry;exports.avalancheRegistry=o.avalancheRegistry;exports.avalancheRegistryFixed=o.avalancheRegistryFixed;exports.baseRegistry=o.baseRegistry;exports.baseRegistryFixed=o.baseRegistryFixed;exports.bnbMainnetRegistry=o.bnbMainnetRegistry;exports.bnbMainnetRegistryFixed=o.bnbMainnetRegistryFixed;exports.ethMainnetRegistry=o.ethMainnetRegistry;exports.ethMainnetRegistryFixed=o.ethMainnetRegistryFixed;exports.localhostRegistry=o.localhostRegistry;exports.optimismRegistry=o.optimismRegistry;exports.optimismRegistryFixed=o.optimismRegistryFixed;exports.polygonRegistry=o.polygonRegistry;exports.polygonRegistryFixed=o.polygonRegistryFixed;exports.bnbMainnetData=Ke.default;exports.arbMainnetData=Xe.default;exports.ethMainnetData=ze.default;exports.optimismData=Ze.default;exports.polygonData=je.default;exports.avalancheData=Je.default;exports.baseData=Qe.default;exports.localhostData=$e.default;exports.arcTestnetData=et.default;exports.ALCHEMY_API_KEY=a.ALCHEMY_API_KEY;exports.ALCHEMY_TEST_KEY=a.ALCHEMY_TEST_KEY;exports.EthereumNetworkType=a.EthereumNetworkType;exports.WALLET_INITIAL_CHAIN_ID=a.WALLET_INITIAL_CHAIN_ID;exports.WALLET_SUPPORTED_CHAINS=a.WALLET_SUPPORTED_CHAINS;exports.chainIds=a.chainIds;exports.chainIdsByType=a.chainIdsByType;exports.getNonLocalhostChainId=a.getNonLocalhostChainId;exports.isLocalNetwork=a.isLocalNetwork;exports.isOptimismLike=a.isOptimismLike;exports.localhostNetwork=a.localhostNetwork;exports.networkRegistry=a.networkRegistry;exports.NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS=ae.NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS;exports.defaultFeeToken=ae.defaultFeeToken;exports.contractMetadataMapping=m.contractMetadataMapping;exports.getHinkalParameters=m.getHinkalParameters;exports.uniswapV2PoolData=m.uniswapV2PoolData;exports.uniswapV3FactoryData=m.uniswapV3FactoryData;exports.uniswapV3PoolData=m.uniswapV3PoolData;exports.uniswapV3QuoterData=m.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=d.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=d.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=d.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=d.ReclaimPassports;exports.StandardPassports=d.StandardPassports;exports.SupportedPassports=d.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=d.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=d.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=d.supportedPassportLinks;exports.API_CONFIG=t.API_CONFIG;exports.DATA_SERVER_CONFIG=t.DATA_SERVER_CONFIG;exports.DATA_SERVER_URL_ENDPOINT=t.DATA_SERVER_URL_ENDPOINT;exports.DATA_SERVER_URL_LOCAL=t.DATA_SERVER_URL_LOCAL;exports.PLAYGROUND_RELAYER_URLS=t.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=t.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_SNAPSHOT_SERVER_URLS=t.PLAYGROUND_SNAPSHOT_SERVER_URLS;exports.PLAYGROUND_URL=t.PLAYGROUND_URL;exports.PRODUCTION_RELAYER_URLS=t.PRODUCTION_RELAYER_URLS;exports.PRODUCTION_SERVER_URLS=t.PRODUCTION_SERVER_URLS;exports.PRODUCTION_SNAPSHOT_SERVER_URLS=t.PRODUCTION_SNAPSHOT_SERVER_URLS;exports.PRODUCTION_URL=t.PRODUCTION_URL;exports.RELAYER_CONFIG=t.RELAYER_CONFIG;exports.STAGING_RELAYER_URLS=t.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=t.STAGING_SERVER_URLS;exports.STAGING_SNAPSHOT_SERVER_URLS=t.STAGING_SNAPSHOT_SERVER_URLS;exports.STAGING_URL=t.STAGING_URL;exports.VERIFICATION_ROUTES=t.VERIFICATION_ROUTES;exports.WALLET_TASK_VERIFICATION_TYPES=t.WALLET_TASK_VERIFICATION_TYPES;exports.DEPLOYMENT_MODE=u.DEPLOYMENT_MODE;exports.deploymentMode=u.deploymentMode;exports.isDevelopment=u.isDevelopment;exports.isExtension=u.isExtension;exports.isNode=u.isNode;exports.isNotClientProduction=u.isNotClientProduction;exports.isNotProduction=u.isNotProduction;exports.isPlayground=u.isPlayground;exports.isSandbox=u.isSandbox;exports.isStaging=u.isStaging;exports.isWebpack=u.isWebpack;exports.ARC_TESTNET_USDC_ADDRESS=e.ARC_TESTNET_USDC_ADDRESS;exports.AssetChangeType=e.AssetChangeType;exports.CIRCOM_MERKLE_LENGTH=e.CIRCOM_MERKLE_LENGTH;exports.CIRCOM_P=e.CIRCOM_P;exports.CIRCOM_P_HALF=e.CIRCOM_P_HALF;exports.EIP1271_FAILURE=e.EIP1271_FAILURE;exports.EIP1271_SUCCESS=e.EIP1271_SUCCESS;exports.HINKAL_PRIVATE_SEND_VARIABLE_RATE=e.HINKAL_PRIVATE_SEND_VARIABLE_RATE;exports.HINKAL_SWAP_VARIABLE_RATE=e.HINKAL_SWAP_VARIABLE_RATE;exports.MERKLE_LEVELS=e.MERKLE_LEVELS;exports.NFT_1155_TRANSACTION_TYPE=e.NFT_1155_TRANSACTION_TYPE;exports.NFT_721_TRANSACTION_TYPE=e.NFT_721_TRANSACTION_TYPE;exports.NFT_TRANSACTION_TYPES=e.NFT_TRANSACTION_TYPES;exports.RELAYERS_ARRAY=e.RELAYERS_ARRAY;exports.RELAYER_ADDRESS1=e.RELAYER_ADDRESS1;exports.RELAYER_ADDRESS2=e.RELAYER_ADDRESS2;exports.RELAYER_ADDRESS3=e.RELAYER_ADDRESS3;exports.TOKEN_VALUE_UNLIMITED_THRESHOLD=e.TOKEN_VALUE_UNLIMITED_THRESHOLD;exports.TokenType=e.TokenType;exports.defaultSignatureData=e.defaultSignatureData;exports.ethVolatileAddress=e.ethVolatileAddress;exports.hinkalSimulationAddress=e.hinkalSimulationAddress;exports.oneInchZeroAddress=e.oneInchZeroAddress;exports.ownerPublicKey=e.ownerPublicKey;exports.permitSignatureValidFor=e.permitSignatureValidFor;exports.signaturePhrase=e.signaturePhrase;exports.zeroAddress=e.zeroAddress;exports.COINGECKO_API_KEY=s.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=s.CoinGeckoChainLabels;exports.coingeckoPriceUrl=s.coingeckoPriceUrl;exports.coingeckoPriceUrl2=s.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=s.coingeckoTokenListUrl;exports.getCoinByAddress=s.getCoinByAddress;exports.getCoinById=s.getCoinById;exports.getCoingeckoIdForNativeTokens=s.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=s.getCoingeckoPlatform;exports.proCoingeckoUrl=s.proCoingeckoUrl;exports.proHeader=s.proHeader;exports.searchBySymbol=s.searchBySymbol;exports.NETWORKS=se.NETWORKS;exports.getGasStationUrl=se.getGasStationUrl;exports.ACCESS_TOKEN_MINTING_POINTS=n.ACCESS_TOKEN_MINTING_POINTS;exports.ACCESS_TOKEN_RECLAIM_POINTS=n.ACCESS_TOKEN_RECLAIM_POINTS;exports.CERTIFICATION_DISABLE_WEEK=n.CERTIFICATION_DISABLE_WEEK;exports.REWARDS_ENCRYPTION_PASSWORD=n.REWARDS_ENCRYPTION_PASSWORD;exports.REWARDS_MESSAGE_TO_SIGN=n.REWARDS_MESSAGE_TO_SIGN;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=n.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.boostAmounts=n.boostAmounts;exports.lpLink=n.lpLink;exports.lpProgramStartWeek=n.lpProgramStartWeek;exports.pointsLink=n.pointsLink;exports.raffleProgramStartWeek=n.raffleProgramStartWeek;exports.referralLink=n.referralLink;exports.blockReorgDepth=tt.blockReorgDepth;exports.mediaUrls=rt.mediaUrls;exports.allowanceHolder=P.allowanceHolder;exports.pancaceSwapPermit2Address=P.pancaceSwapPermit2Address;exports.permit2Address=P.permit2Address;exports.permit2Addresses=P.permit2Addresses;exports.uniswap2Manager=P.uniswap2Manager;exports.uniswap3Manager=P.uniswap3Manager;exports.uniswapApprovalExtraCallData=P.uniswapApprovalExtraCallData;exports.uniswapWorkaroundAddresses=P.uniswapWorkaroundAddresses;exports.HETH_ERC20_TOKEN_ADDRESS=h.HETH_ERC20_TOKEN_ADDRESS;exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=h.NATIVE_TOKEN_WRAPPER_ADDRESSES;exports.SWAP_FEE_TAKER_ADDRESSES=h.SWAP_FEE_TAKER_ADDRESSES;exports.SWAP_ROUTER_ADDRESSES=h.SWAP_ROUTER_ADDRESSES;exports.WETH_ERC20_TOKEN_ADDRESS=h.WETH_ERC20_TOKEN_ADDRESS;exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=h.WRAPPER_TOKEN_EXCHANGE_ADDRESSES;exports.APPROVED_UTXO_CONVERSION_COUNT=ot.APPROVED_UTXO_CONVERSION_COUNT;exports.TOKEN_LIMITS=ne.TOKEN_LIMITS;exports.getTokensLimits=ne.getTokensLimits;exports.MAX_DISPLAY_DECIMALS=at.MAX_DISPLAY_DECIMALS;exports.BRIDGING_URLS=st.BRIDGING_URLS;exports.UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES=ie.UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES;exports.UNSUPPORTED_WALLET_IDS=ie.UNSUPPORTED_WALLET_IDS;exports.presaleABI=ce.presaleABI;exports.presaleContractInfoByChain=ce.presaleContractInfoByChain;exports.LIFISCAN_URL=nt.LIFISCAN_URL;exports.oauthUrls=it.oauthUrls;exports.BOX_AUCTION_DURATIONS_MINUTES=S.BOX_AUCTION_DURATIONS_MINUTES;exports.BOX_DAILY_CLAIM_LIMIT=S.BOX_DAILY_CLAIM_LIMIT;exports.BOX_ENDING_PRICES=S.BOX_ENDING_PRICES;exports.BOX_STARTING_PRICES=S.BOX_STARTING_PRICES;exports.BRONZE_MYSTERY_BOX_ITEMS=S.BRONZE_MYSTERY_BOX_ITEMS;exports.GOLD_MYSTERY_BOX_ITEMS=S.GOLD_MYSTERY_BOX_ITEMS;exports.MYSTERY_BOX_ITEMS=S.MYSTERY_BOX_ITEMS;exports.MYSTERY_BOX_ITEM_BY_ID=S.MYSTERY_BOX_ITEM_BY_ID;exports.MYSTERY_BOX_ITEM_BY_RANK=S.MYSTERY_BOX_ITEM_BY_RANK;exports.MysteryBoxItemId=S.MysteryBoxItemId;exports.SILVER_MYSTERY_BOX_ITEMS=S.SILVER_MYSTERY_BOX_ITEMS;exports.TVL_CHANGER_ACTIVITY_TYPES=ct.TVL_CHANGER_ACTIVITY_TYPES;exports.ACHIEVEMENTS=y.ACHIEVEMENTS;exports.BROTHERHOOD_TASKS=y.BROTHERHOOD_TASKS;exports.DAILY_TASKS=y.DAILY_TASKS;exports.POINTS_BOOST_TASKS=y.POINTS_BOOST_TASKS;exports.REWARDS_TASKS=y.REWARDS_TASKS;exports.WELCOME_TASKS=y.WELCOME_TASKS;exports.EVENTS_INITIAL_BLOCKS=lt.EVENTS_INITIAL_BLOCKS;exports.APPROVE_FUNCTION_SIGNATURE=k.APPROVE_FUNCTION_SIGNATURE;exports.NFT_APPROVE_FUNCTION_SIGNATURE=k.NFT_APPROVE_FUNCTION_SIGNATURE;exports.NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE=k.NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE;exports.PERMIT2_APPROVE_FUNCTION_SIGNATURE=k.PERMIT2_APPROVE_FUNCTION_SIGNATURE;exports.TRANSFER_FUNCTION_SIGNATURE=k.TRANSFER_FUNCTION_SIGNATURE;exports.poseidonFunction=X.poseidonFunction;exports.poseidonHash=X.poseidonHash;exports.poseidonHolder=X.poseidonHolder;exports.babyJubInstance=le.babyJubInstance;exports.jubHolder=le.jubHolder;exports.preProcessing=ut.preProcessing;exports.ValueCache=St.ValueCache;exports.abiDecodeUtxo=v.abiDecodeUtxo;exports.checkUtxoSignature=v.checkUtxoSignature;exports.decodeUtxo=v.decodeUtxo;exports.decodeUtxoConstructorArgs=v.decodeUtxoConstructorArgs;exports.decryptUtxo=z.decryptUtxo;exports.decryptUtxoConstructorArgs=z.decryptUtxoConstructorArgs;exports.encryptUtxo=z.encryptUtxo;exports.EncryptionKeyPairDefaultValue=B.EncryptionKeyPairDefaultValue;exports.UserKeys=B.UserKeys;exports.stealthAddressCacheDevice=B.stealthAddressCacheDevice;exports.stealthPairCacheDevice=B.stealthPairCacheDevice;exports.getCircomSign=ue.getCircomSign;exports.isCircomNegative=ue.isCircomNegative;exports.Hinkal=Tt.Hinkal;exports.hinkalDeposit=Se.hinkalDeposit;exports.hinkalDepositForOther=Se.hinkalDepositForOther;exports.hinkalSwap=At.hinkalSwap;exports.hinkalTransfer=pt.hinkalTransfer;exports.hinkalWithdraw=dt.hinkalWithdraw;exports.hinkalPrivateWallet=gt.hinkalPrivateWallet;exports.resetMerkleTrees=Et.resetMerkleTrees;exports.hinkalProxySwap=_t.hinkalProxySwap;exports.MerkleTree=Rt.MerkleTree;exports.getPatchedAccessTokenMerkleTree=It.getPatchedAccessTokenMerkleTree;exports.MerkleTreeIncompleteError=Pt.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=Ct.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=mt.AbstractCommitmentsSnapshotService;exports.AbstractApprovalsSnapshotService=ht.AbstractApprovalsSnapshotService;exports.AbstractNullifierSnapshotService=yt.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=kt.AbstractSnapshotService;exports.AbstractEventService=Dt.AbstractEventService;exports.BlockchainEventEmitter=Ot.BlockchainEventEmitter;exports.Utxo=Nt.Utxo;exports.customTokenRegistry=Ut.customTokenRegistry;exports.TokenChecker=Lt.TokenChecker;exports.TransactionType=qt.TransactionType;exports.MultiThreadedUtxoUtils=vt.MultiThreadedUtxoUtils;exports.FileCacheDevice=Bt.FileCacheDevice;exports.LocalStorageCacheDevice=bt.LocalStorageCacheDevice;exports.activityStorage=Mt.activityStorage;exports.publicBalancesStorage=Ft.publicBalancesStorage;exports.privateBalancesStorage=ft.privateBalancesStorage;exports.pricesStorage=xt.pricesStorage;exports.contactStorage=Ht.contactStorage;exports.signedMessagesStorage=Vt.signedMessagesStorage;exports.PrivateTokensDB=Te.PrivateTokensDB;exports.privateTokensDB=Te.privateTokensDB;exports.PublicTokensDB=Ae.PublicTokensDB;exports.publicTokensDB=Ae.publicTokensDB;exports.tokenVisibilityStorage=wt.tokenVisibilityStorage;exports.ArcPublicTokensDB=pe.ArcPublicTokensDB;exports.arcPublicTokensDB=pe.arcPublicTokensDB;exports.PresaleContractWrapper=Wt.PresaleContractWrapper;exports.SnapshotFetcherService=Gt.SnapshotFetcherService;exports.TorClient=Yt.TorClient;exports.WebSocketDuplex=Kt.WebSocketDuplex;exports.httpClient=Xt.httpClient;exports.EventsPublicApprovalsDB=de.EventsPublicApprovalsDB;exports.eventsPublicApprovalsDB=de.eventsPublicApprovalsDB;exports.ErrorWithAmount=zt.ErrorWithAmount;exports.FeeOverTransactionValueError=Zt.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=ge.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=ge.rethrowKnownGasErrorIfPossible;exports.SimulationFailureError=jt.SimulationFailureError;exports.ErrorWithRelayerTransaction=Jt.ErrorWithRelayerTransaction;exports.UserFriendlyErrorCodes=D.UserFriendlyErrorCodes;exports.gasErrorCodes=D.gasErrorCodes;exports.insufficientResourcesErrorCodes=D.insufficientResourcesErrorCodes;exports.transactionErrorCodes=D.transactionErrorCodes;exports.walletConnectErrorCodes=D.walletConnectErrorCodes;exports.extractMessage=Z.extractMessage;exports.getErrorMessage=Z.getErrorMessage;exports.getErrorMessageFromSandboxRequest=Z.getErrorMessageFromSandboxRequest;exports.checkErrorForSnapshotRestore=Qt.checkErrorForSnapshotRestore;exports.logError=$t.logError;exports.ErrorCategory=er.ErrorCategory;exports.Logger=tr.Logger;exports.BabABI=g.BabABI;exports.ERC1155ABI=g.ERC1155ABI;exports.ERC20ABI=g.ERC20ABI;exports.ERC721ABI=g.ERC721ABI;exports.GalxeABI=g.GalxeABI;exports.ISwapRouterABI=g.ISwapRouterABI;exports.factoryABI=g.factoryABI;exports.quoterV2ABI=g.quoterV2ABI;exports.transactionProverABI=g.transactionProverABI;exports.checkHinkalAccessToken=Ee.checkHinkalAccessToken;exports.mintAccessToken=Ee.mintAccessToken;exports.openPassportWindow=rr.openPassportWindow;exports.openDefaultPassportWindow=or.openDefaultPassportWindow;exports.absBigInt=r.absBigInt;exports.beepsToPercentage=r.beepsToPercentage;exports.bigintApplySugar=r.bigintApplySugar;exports.bigintMax=r.bigintMax;exports.calculateAmountUsingBeeps=r.calculateAmountUsingBeeps;exports.calculateBigIntSum=r.calculateBigIntSum;exports.calculateSum=r.calculateSum;exports.countTotalAmountInUtxos=r.countTotalAmountInUtxos;exports.fixDecimalsAmount=r.fixDecimalsAmount;exports.getValueFirstNDigit=r.getValueFirstNDigit;exports.maxBigInt=r.maxBigInt;exports.minBigInt=r.minBigInt;exports.toBigInt=r.toBigInt;exports.toBigIntOrUndefined=r.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=r.toCommaSeparatedNumberString;exports.toInt=r.toInt;exports.toNumberOrUndefined=r.toNumberOrUndefined;exports.trimLeadingZeros=r.trimLeadingZeros;exports.truncateToDecimalPlaces=r.truncateToDecimalPlaces;exports.getFilePath=T.getFilePath;exports.getHinkalCache=T.getHinkalCache;exports.getInHinkalAddressesCache=T.getInHinkalAddressesCache;exports.getInHinkalAddressesFilePath=T.getInHinkalAddressesFilePath;exports.loadTxsCache=T.loadTxsCache;exports.resetCache=T.resetCache;exports.resetInHinkalAddressesCache=T.resetInHinkalAddressesCache;exports.saveTxsCache=T.saveTxsCache;exports.setHinkalCache=T.setHinkalCache;exports.setInHinkalAddressesCache=T.setInHinkalAddressesCache;exports.createProvider=_e.createProvider;exports.createTorRpcProvider=_e.createTorRpcProvider;exports.getExternalActionIdFromNumber=Re.getExternalActionIdFromNumber;exports.getExternalActionIdHash=Re.getExternalActionIdHash;exports.aggregateTokenChanges=A.aggregateTokenChanges;exports.formatTokenChangesList=A.formatTokenChangesList;exports.getERC20Token=A.getERC20Token;exports.getERC20TokenBySymbol=A.getERC20TokenBySymbol;exports.getErc20TokensForChain=A.getErc20TokensForChain;exports.getHToken=A.getHToken;exports.isArcNativeToken=A.isArcNativeToken;exports.isNFTToken=A.isNFTToken;exports.searchCompareFunction=A.searchCompareFunction;exports.sortTokens=A.sortTokens;exports.requireEnv=ar.requireEnv;exports.getSequence=j.getSequence;exports.promisify=j.promisify;exports.resolveSync=j.resolveSync;exports.convertIntegrationProviderToExternalActionId=sr.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=nr.getInteractionFromAction;exports.outputUtxoProcessing=ir.outputUtxoProcessing;exports.processGasEstimates=cr.processGasEstimates;exports.getFlatFees=lr.getFlatFees;exports.outputApprovalDataProcessing=Ie.outputApprovalDataProcessing;exports.outputApprovalDataProcessingForHinkalApprove=Ie.outputApprovalDataProcessingForHinkalApprove;exports.modifyVolatileTokenAmountChanges=ur.modifyVolatileTokenAmountChanges;exports.constructAdminData=Sr.constructAdminData;exports.getNetworkObject=Pe.getNetworkObject;exports.getNetworkType=Pe.getNetworkType;exports.browserSupported=Ce.browserSupported;exports.walletSupported=Ce.walletSupported;exports.decodeTxInput=J.decodeTxInput;exports.deserializeDecodedTxs=J.deserializeDecodedTxs;exports.serializeDecodedTxs=J.serializeDecodedTxs;exports.reloadPage=Tr.reloadPage;exports.capitalizeFirstLetter=E.capitalizeFirstLetter;exports.capitalizeName=E.capitalizeName;exports.getChainIdFromStateKey=E.getChainIdFromStateKey;exports.getStateKey=E.getStateKey;exports.hexToUtf8=E.hexToUtf8;exports.isNullOrEmpty=E.isNullOrEmpty;exports.replaceAllInstances=E.replaceAllInstances;exports.toTitleCase=E.toTitleCase;exports.validateEmail=E.validateEmail;exports.isNicknameValid=Ar.isNicknameValid;exports.caseInsensitiveEqual=Q.caseInsensitiveEqual;exports.lowerCaseIncludes=Q.lowerCaseIncludes;exports.lowerCaseStartsWith=Q.lowerCaseStartsWith;exports.formatDate=i.formatDate;exports.getCurrentDayStart=i.getCurrentDayStart;exports.getCurrentTimeInSeconds=i.getCurrentTimeInSeconds;exports.getCurrentWeekStart=i.getCurrentWeekStart;exports.getEffectiveMonthStart=i.getEffectiveMonthStart;exports.getEffectiveSevenDaysAgo=i.getEffectiveSevenDaysAgo;exports.getEffectiveToday=i.getEffectiveToday;exports.getNextDayDelay=i.getNextDayDelay;exports.getNextDayISO=i.getNextDayISO;exports.getPreviousWeekStart=i.getPreviousWeekStart;exports.msToISOString=i.msToISOString;exports.waitLittle=i.waitLittle;exports.createCacheDevice=pr.createCacheDevice;exports.debounce=me.debounce;exports.wait=me.wait;exports.getBlockExplorerUrl=dr.getBlockExplorerUrl;exports.isPermit2Tx=he.isPermit2Tx;exports.uniswapWorkaround=he.uniswapWorkaround;exports.checkChainOrAddressNotUpdated=gr.checkChainOrAddressNotUpdated;exports.CustomJSONParse=ye.CustomJSONParse;exports.CustomJSONStringify=ye.CustomJSONStringify;exports.isUseApprovalDataEmpty=ke.isUseApprovalDataEmpty;exports.padUseApprovalUtxoData=ke.padUseApprovalUtxoData;exports.convertEmporiumOpToCallInfo=Er.convertEmporiumOpToCallInfo;exports.getExtendedRecipientInfoFromUserKeys=De.getExtendedRecipientInfoFromUserKeys;exports.getRecipientInfoFromUserKeys=De.getRecipientInfoFromUserKeys;exports.getPublicBalance=b.getPublicBalance;exports.getPublicBalanceByTokenAddress=b.getPublicBalanceByTokenAddress;exports.getPublicBalancesOfTokens=b.getPublicBalancesOfTokens;exports.getPublicTransactionCount=b.getPublicTransactionCount;exports.rpcIntEncode=_r.rpcIntEncode;exports.checkTokensForShielding=Rr.checkTokensForShielding;exports.arraysMatch=Ir.arraysMatch;exports.constructStealthAddressStructure=M.constructStealthAddressStructure;exports.hashEthereumAddress=M.hashEthereumAddress;exports.isValidExtendedPrivateAddress=M.isValidExtendedPrivateAddress;exports.isValidPrivateAddress=M.isValidPrivateAddress;exports.trimFieldValues=Pr.trimFieldValues;exports.getNecessaryApprovalChangesData=F.getNecessaryApprovalChangesData;exports.getNecessaryAssetsForFunding=F.getNecessaryAssetsForFunding;exports.getNecessaryAssetsForFundingFromBalance=F.getNecessaryAssetsForFundingFromBalance;exports.hasEnoughBalance=F.hasEnoughBalance;exports.balanceFetchingMutex=Cr.balanceFetchingMutex;exports.convertV6ReceiptToRelayer=mr.convertV6ReceiptToRelayer;exports.extractTokenIdsFromAssetChanges=hr.extractTokenIdsFromAssetChanges;exports.encodeParsedInLogicMetadata=yr.encodeParsedInLogicMetadata;exports.getNetworkName=kr.getNetworkName;exports.isValidUrl=Dr.isValidUrl;exports.getHinkalApprovals=Or.getHinkalApprovals;exports.getAuctionTime=f.getAuctionTime;exports.getCurrentAuctionIntervalStartUTC=f.getCurrentAuctionIntervalStartUTC;exports.getLinearPrice=f.getLinearPrice;exports.parseAuctionTime=f.parseAuctionTime;exports.postToOffscreen=Nr.postToOffscreen;exports.getSignatureHeader=Ur.getSignatureHeader;exports.calculateDollarValue=_.calculateDollarValue;exports.ethToWei=_.ethToWei;exports.getAmountInToken=_.getAmountInToken;exports.getAmountInWei=_.getAmountInWei;exports.getAmountInWeiOrZero=_.getAmountInWeiOrZero;exports.getAmountWithPrecision=_.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=_.getAmountWithPrecisionOrZero;exports.randomBigInt=_.randomBigInt;exports.toBigIntWithDecimals=_.toBigIntWithDecimals;exports.attemptGetInputUtxosRemotely=x.attemptGetInputUtxosRemotely;exports.getInputUtxoAndBalance=x.getInputUtxoAndBalance;exports.getInputUtxoAndBalancePerToken=x.getInputUtxoAndBalancePerToken;exports.getInputUtxosRemotely=x.getInputUtxosRemotely;exports.addPaddingToUtxos=Oe.addPaddingToUtxos;exports.getShieldedBalance=Oe.getShieldedBalance;exports.getDepositEvents=Ne.getDepositEvents;exports.retrieveEvents=Ne.retrieveEvents;exports.balanceChangedHandler=Lr.balanceChangedHandler;exports.balanceChangedCustomHandler=qr.balanceChangedCustomHandler;exports.getApprovedBalance=H.getApprovedBalance;exports.getApprovedUtxos=H.getApprovedUtxos;exports.getApprovedUtxosForToken=H.getApprovedUtxosForToken;exports.getMyApprovalAmountForInteraction=H.getMyApprovalAmountForInteraction;exports.getTransactionLogEvents=vr.getTransactionLogEvents;exports.getUniswapFee=V.getUniswapFee;exports.getUniswapPrice=V.getUniswapPrice;exports.getUniswapPriceHelper=V.getUniswapPriceHelper;exports.searchPoolAndFee=V.searchPoolAndFee;exports.getOdosPrice=Br.getOdosPrice;exports.getOneInchPrice=br.getOneInchPrice;exports.getLifiPrice=Mr.getLifiPrice;exports.runContractFunction=Fr.runContractFunction;exports.getTokenHolder=fr.getTokenHolder;exports.decodeMessage=$.decodeMessage;exports.getDecodedMessage=$.getDecodedMessage;exports.getPermitInfo=$.getPermitInfo;exports.constructZkProof=xr.constructZkProof;exports.constructEmporiumProof=Hr.constructEmporiumProof;exports.buildInNullifiers=c.buildInNullifiers;exports.buildOutCommitments=c.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=c.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=c.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=c.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=c.calcEncryptedOutputs;exports.calcPublicSignalCount=c.calcPublicSignalCount;exports.calcStealthAddressStructure=c.calcStealthAddressStructure;exports.createCallDataHash=c.createCallDataHash;exports.deserializeCircomData=c.deserializeCircomData;exports.getSlippageValues=c.getSlippageValues;exports.serializeCircomData=c.serializeCircomData;exports.generateZkProof=Vr.generateZkProof;exports.calculateStakeNullifier=O.calculateStakeNullifier;exports.createStakeCommitment=O.createStakeCommitment;exports.decryptStake=O.decryptStake;exports.encodeHStakeMetadata=O.encodeHStakeMetadata;exports.encryptStake=O.encryptStake;exports.checkEOAWithDelegation=l.checkEOAWithDelegation;exports.createApproveEmporiumOp=l.createApproveEmporiumOp;exports.createTransaferEmporiumOpsBatch=l.createTransaferEmporiumOpsBatch;exports.createTransferToEmporiumOp=l.createTransferToEmporiumOp;exports.emporiumOp=l.emporiumOp;exports.encodeEmporiumMetadata=l.encodeEmporiumMetadata;exports.generateFundAndApproveOps=l.generateFundAndApproveOps;exports.generateFundApproveAndTransactOps=l.generateFundApproveAndTransactOps;exports.getAuthorizationDataIfNeeded=l.getAuthorizationDataIfNeeded;exports.modifyDataForProxy=l.modifyDataForProxy;exports.modifyDataForProxyWithPrivateKey=l.modifyDataForProxyWithPrivateKey;exports.recoverAuthorizationData=l.recoverAuthorizationData;exports.OpType=Ue.OpType;exports.produceOp=Ue.produceOp;exports.createSwapToEmporiumOpForUniswap=w.createSwapToEmporiumOpForUniswap;exports.createSwapToEmporiumOpFromData=w.createSwapToEmporiumOpFromData;exports.createSwapToEmporiumOps=w.createSwapToEmporiumOps;exports.nullifyApprovalBeforeSwap=w.nullifyApprovalBeforeSwap;exports.RevokeType=wr.RevokeType;exports.defaultHookData=W.defaultHookData;exports.defaultHookDataArray=W.defaultHookDataArray;exports.defaultStealthAddressStructure=W.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=W.emptyStealthAddressStructure;exports.ContractType=Wr.ContractType;exports.ExternalActionId=Gr.ExternalActionId;exports.EventType=R.EventType;exports.HinkalLogicAction=R.HinkalLogicAction;exports.HinkalStakeAction=R.HinkalStakeAction;exports.INTERACTION=R.INTERACTION;exports.IntegrationProvider=R.IntegrationProvider;exports.UserProgress=R.UserProgress;exports.defaultFeeStructure=R.defaultFeeStructure;exports.defaultHinkalLogicArgs=R.defaultHinkalLogicArgs;exports.defaultUseApprovalUTXOData=R.defaultUseApprovalUTXOData;exports.KycVerificationResult=N.KycVerificationResult;exports.KycVerificationStatus=N.KycVerificationStatus;exports.Passports=N.Passports;exports.VERIFICATION_TYPE=N.VERIFICATION_TYPE;exports.VerificationTypes=N.VerificationTypes;exports.ApprovalType=Yr.ApprovalType;exports.SlippageType=Kr.SlippageType;exports.TransactionAction=ee.TransactionAction;exports.TransactionStatus=ee.TransactionStatus;exports.emptyDecodedTx=ee.emptyDecodedTx;exports.OldPointType=Le.OldPointType;exports.RafflePrizeType=Le.RafflePrizeType;exports.HinkalStakeMode=Xr.HinkalStakeMode;exports.AdminTransactionType=zr.AdminTransactionType;exports.ActivityStatus=U.ActivityStatus;exports.ActivityTypes=U.ActivityTypes;exports.DexProviders=U.DexProviders;exports.IntegrationProviderNames=U.IntegrationProviderNames;exports.TokenChangeType=U.TokenChangeType;exports.SandboxRequestType=Zr.SandboxRequestType;exports.PrivateBalanceUpdateType=jr.PrivateBalanceUpdateType;exports.StorageKeys=Jr.StorageKeys;exports.TOKEN_PRICE_STATUS=Qr.TOKEN_PRICE_STATUS;exports.AchievementTiers=G.AchievementTiers;exports.BrotherhoodTaskTypes=G.BrotherhoodTaskTypes;exports.TaskCategory=G.TaskCategory;exports.TaskTypes=G.TaskTypes;exports.MemberStatus=qe.MemberStatus;exports.Rank=qe.Rank;exports.PointsType=ve.PointsType;exports.TradingType=ve.TradingType;exports.GetCallsStatusCode=$r.GetCallsStatusCode;exports.MysteryBoxItemFrequency=te.MysteryBoxItemFrequency;exports.MysteryBoxItemRewardType=te.MysteryBoxItemRewardType;exports.MysteryBoxRewardStatus=te.MysteryBoxRewardStatus;exports.MerchOrderStatus=eo.MerchOrderStatus;exports.HttpMethod=to.HttpMethod;exports.ConfirmationRequestType=ro.ConfirmationRequestType;exports.MessagesFromOffscreen=oo.MessagesFromOffscreen;exports.resetStateMutex=ao.resetStateMutex;exports.getERC20Registry=Be.getERC20Registry;exports.getFixedRegistry=Be.getFixedRegistry;exports.PopularTokenSymbols=so.PopularTokenSymbols;exports.AmTokenABI=no.abi;exports.USDCABI=io.abi;exports.daiABI=co.abi;exports.USDRABI=lo.abi;exports.USDR3CRVABI=uo.abi;exports.USDTABI=So.abi;exports.WETHABI=To.abi;exports.BUSDABI=Ao.abi;exports.sanctionsListABI=po.abi;exports.optimismGasPriceOracleAbi=go;exports.NodeInterfaceABI=Eo;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./API/getServerURL.cjs"),q=require("./API/getCoingeckoPrice.cjs"),Me=require("./API/callOneInchAPI.cjs"),be=require("./API/callRelayer.cjs"),Fe=require("./API/getGasEstimates.cjs"),Y=require("./API/getTokenPrice.cjs"),fe=require("./API/checkRisk.cjs"),xe=require("./API/relayCalls.cjs"),Ve=require("./API/API.cjs"),He=require("./API/getRelayerURL.cjs"),we=require("./API/duneAPI.cjs"),m=require("./API/tenderly.api.cjs"),We=require("./API/token-calls.cjs"),Ge=require("./API/callLifiAPI.cjs"),re=require("./API/getLifiStatus.cjs"),oe=require("./API/generate-trading-points.cjs"),d=require("./API/brotherhoodCalls.cjs"),K=require("./API/getWebsiteURL.cjs"),I=require("./API/mysteryBoxesCalls.cjs"),Ye=require("./constants/assets.constants.cjs"),o=require("./constants/token-data/index.cjs"),Ke=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Xe=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),ze=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),Ze=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),je=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),Je=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),Qe=require("./constants/deploy-data/deploy-data-base.json.cjs"),$e=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),et=require("./constants/deploy-data/deploy-data-arcTestnet.json.cjs"),a=require("./constants/chains.constants.cjs"),ae=require("./constants/fees.constants.cjs"),C=require("./constants/contracts.constants.cjs"),p=require("./constants/kyc.constants.cjs"),t=require("./constants/server.constants.cjs"),u=require("./constants/vite.constants.cjs"),e=require("./constants/protocol.constants.cjs"),s=require("./constants/coingecko.constants.cjs"),se=require("./constants/backend.constants.cjs"),n=require("./constants/rewards.constants.cjs"),tt=require("./constants/reorg-depths.constants.cjs"),rt=require("./constants/mediaUrls.constants.cjs"),P=require("./constants/permit2.constants.cjs"),y=require("./constants/addresses.constants.cjs"),ot=require("./constants/conversion.constants.cjs"),ne=require("./constants/token.limits.constants.cjs"),at=require("./constants/balance.constants.cjs"),st=require("./constants/bridging.constants.cjs"),ie=require("./constants/wallet.constants.cjs"),ce=require("./constants/presale.constants.cjs"),nt=require("./constants/lifi.constants.cjs"),it=require("./constants/oauthUrls.constants.cjs"),S=require("./constants/mystery-boxes.constants.cjs"),ct=require("./constants/activity.constants.cjs"),h=require("./constants/tasks.constants.cjs"),lt=require("./constants/events.constants.cjs"),k=require("./constants/function-signatures.constants.cjs"),X=require("./crypto/poseidon.cjs"),le=require("./crypto/babyJub.cjs"),ut=require("./crypto/preProcessing.cjs"),St=require("./data-structures/ValueCache/ValueCache.cjs"),v=require("./data-structures/crypto-keys/decodeUTXO.cjs"),z=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),B=require("./data-structures/crypto-keys/keys.cjs"),ue=require("./data-structures/crypto-keys/keyUtils.cjs"),Tt=require("./data-structures/Hinkal/Hinkal.cjs"),Se=require("./data-structures/Hinkal/hinkalDeposit.cjs"),At=require("./data-structures/Hinkal/hinkalSwap.cjs"),dt=require("./data-structures/Hinkal/hinkalTransfer.cjs"),pt=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),gt=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),Et=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),_t=require("./data-structures/Hinkal/hinkalProxySwap.cjs"),Rt=require("./data-structures/merkle-tree/MerkleTree.cjs"),It=require("./data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs"),Pt=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),mt=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),Ct=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),yt=require("./data-structures/event-service/AbstractApprovalsSnapshotService.cjs"),ht=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),kt=require("./data-structures/event-service/AbstractSnapshotService.cjs"),Dt=require("./data-structures/event-service/AbstractEventService.cjs"),Ot=require("./data-structures/event-service/BlockchainEventEmitter.cjs"),Nt=require("./data-structures/utxo/Utxo.cjs"),Ut=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),Lt=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),qt=require("./data-structures/transactions-manager/history/history.types.cjs"),vt=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),Bt=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),Mt=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),bt=require("./data-structures/IndexedDB/activity-db.cjs"),Ft=require("./data-structures/IndexedDB/balances-db.cjs"),ft=require("./data-structures/IndexedDB/private-balances-db.cjs"),xt=require("./data-structures/IndexedDB/prices-db.cjs"),Vt=require("./data-structures/IndexedDB/contact-db.cjs"),Ht=require("./data-structures/IndexedDB/signatures-db.cjs"),Te=require("./data-structures/TokenDBs/PrivateTokensDB.cjs"),Ae=require("./data-structures/TokenDBs/PublicTokensDB.cjs"),wt=require("./data-structures/TokenDBs/token-visibility-db.cjs"),de=require("./data-structures/TokenDBs/ArcPublicTokensDB.cjs"),Wt=require("./data-structures/presale/PresaleContractWrapper.cjs"),Gt=require("./data-structures/snapshot/SnapshotFetcherService.cjs"),pe=require("./data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs"),Yt=require("./error-handling/customErrors/ErrorWithAmount.cjs"),Kt=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),ge=require("./error-handling/customErrors/customErrors.helpers.cjs"),Xt=require("./error-handling/customErrors/SimulationFailureError.cjs"),zt=require("./error-handling/customErrors/ErrorWithTx.cjs"),D=require("./error-handling/error-codes.constants.cjs"),Z=require("./error-handling/get-error.message.cjs"),Zt=require("./error-handling/handleErrorRestore.cjs"),jt=require("./error-handling/logError.cjs"),Jt=require("./error-handling/types.cjs"),Qt=require("./error-handling/logger.cjs"),g=require("./externalABIs/index.cjs"),Ee=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),$t=require("./functions/kyc/passportHelper.cjs"),er=require("./functions/kyc/openDefaultPassportWindow.cjs"),r=require("./functions/utils/amounts.utils.cjs"),T=require("./functions/utils/cacheFunctions.cjs"),_e=require("./functions/utils/create-provider.cjs"),Re=require("./functions/utils/external-action.utils.cjs"),A=require("./functions/utils/erc20tokenFunctions.cjs"),tr=require("./functions/utils/requireEnv.cjs"),j=require("./functions/utils/resolve-sync.utils.cjs"),rr=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),or=require("./functions/pre-transaction/interaction-to-action.cjs"),ar=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),sr=require("./functions/pre-transaction/process-gas-estimates.cjs"),nr=require("./functions/pre-transaction/getFlatFees.cjs"),Ie=require("./functions/pre-transaction/outputApprovalDataProcessing.cjs"),ir=require("./functions/pre-transaction/getVolatileTransferAmount.cjs"),cr=require("./functions/pre-transaction/constructAdminData.cjs"),Pe=require("./functions/utils/evmNetworkFunctions.cjs"),me=require("./functions/utils/userAgent.cjs"),J=require("./functions/utils/getDataFromTransaction.cjs"),lr=require("./functions/utils/reloadPage.cjs"),E=require("./functions/utils/string.utils.cjs"),ur=require("./functions/utils/nickname.utils.cjs"),Q=require("./functions/utils/caseInsensitive.utils.cjs"),i=require("./functions/utils/time.utils.cjs"),Sr=require("./functions/utils/cacheDevice.utils.cjs"),Ce=require("./functions/utils/process.utils.cjs"),Tr=require("./functions/utils/getBlockExplorerUrl.cjs"),ye=require("./functions/utils/involves-permit2-op.cjs"),Ar=require("./functions/utils/upToDateState.cjs"),he=require("./functions/utils/serialize.utils.cjs"),ke=require("./functions/utils/processUseApprovalUtxoData.cjs"),dr=require("./functions/utils/convertEmporiumOpToCallInfo.cjs"),De=require("./functions/utils/getRecipientInfoFromUserKeys.cjs"),M=require("./functions/utils/publicBalance.utils.cjs"),pr=require("./functions/utils/rpc-int-encode.cjs"),gr=require("./functions/utils/token-check.utils.cjs"),Er=require("./functions/utils/arraysMatch.cjs"),b=require("./functions/utils/addresses.cjs"),_r=require("./functions/utils/trimFieldValues.cjs"),F=require("./functions/utils/walletBalances.utils.cjs"),Rr=require("./functions/utils/mutexes.utils.cjs"),Ir=require("./functions/utils/ethers-formatter.utils.cjs"),Pr=require("./functions/utils/nftTokenFunctions.cjs"),mr=require("./functions/utils/inLogicMetadata.cjs"),Cr=require("./functions/utils/networks.utils.cjs"),yr=require("./functions/utils/is-valid-url.cjs"),hr=require("./functions/utils/get-hinkal-approvals.cjs"),f=require("./functions/utils/mystery-box-auction.utils.cjs"),kr=require("./functions/utils/postToOffscreen.cjs"),Dr=require("./functions/utils/get-signature-header.cjs"),_=require("./functions/web3/etherFunctions.cjs"),x=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),Oe=require("./functions/web3/events/getShieldedBalance.cjs"),Ne=require("./functions/web3/events/web3RetrieveEvents.cjs"),Or=require("./functions/web3/events/balanceChangedHandler.cjs"),Nr=require("./functions/web3/events/balanceChangedCustomHandler.cjs"),V=require("./functions/web3/events/getApprovedBalance.cjs"),Ur=require("./functions/web3/events/getTransactionLogEvents.cjs"),H=require("./functions/web3/uniswapAPI.cjs"),Lr=require("./functions/web3/odosAPI.cjs"),qr=require("./functions/web3/oneInchAPI.cjs"),vr=require("./functions/web3/lifiAPI.cjs"),Br=require("./functions/web3/runContractFunction.cjs"),Mr=require("./functions/web3/getTokenHolder.cjs"),$=require("./functions/web3/EIP-712.cjs"),br=require("./functions/snarkjs/constructGeneralZkProof.cjs"),Fr=require("./functions/snarkjs/constructEmporiumProof.cjs"),c=require("./functions/snarkjs/common.snarkjs.cjs"),fr=require("./functions/snarkjs/generateZkProof.cjs"),O=require("./functions/staking/index.cjs"),l=require("./functions/private-wallet/emporium.helpers.cjs"),Ue=require("./functions/private-wallet/opProducer.cjs"),w=require("./functions/private-wallet/emporium.swap.helpers.cjs"),xr=require("./types/approvals.types.cjs"),W=require("./types/circom-data.types.cjs"),Vr=require("./types/ethereum-network.types.cjs"),Hr=require("./types/external-action.types.cjs"),R=require("./types/hinkal.types.cjs"),N=require("./types/kyc.types.cjs"),wr=require("./types/token.types.cjs"),Wr=require("./types/slippage.types.cjs"),ee=require("./types/transactions.types.cjs"),Le=require("./types/rewards.types.cjs"),Gr=require("./types/hinkal.stake.types.cjs"),Yr=require("./types/admin.types.cjs"),U=require("./types/activities.types.cjs"),Kr=require("./types/sandbox.types.cjs"),Xr=require("./types/balances.types.cjs"),zr=require("./types/cache.types.cjs"),Zr=require("./types/token-prices.types.cjs"),G=require("./types/new-rewards.type.cjs"),qe=require("./types/RewardUserEnums.cjs"),ve=require("./types/generatePoints.cjs"),jr=require("./types/eip5792.types.cjs"),te=require("./types/mystery-boxes.types.cjs"),Jr=require("./types/merch-order.types.cjs"),Qr=require("./types/routing.types.cjs"),$r=require("./types/confirmation-request.types.cjs"),eo=require("./types/offscreen.types.cjs"),to=require("./mutexes/mutex.cjs"),Be=require("./constants/token-data/ERC20Registry.cjs"),ro=require("./constants/token-data/popularTokens.constants.cjs"),oo=require("./externalABIs/amToken.cjs"),ao=require("./externalABIs/USDC.cjs"),so=require("./externalABIs/DAI.cjs"),no=require("./externalABIs/USDR.cjs"),io=require("./externalABIs/USDR3CRV.cjs"),co=require("./externalABIs/USDT.cjs"),lo=require("./externalABIs/WETH.cjs"),uo=require("./externalABIs/BUSD.cjs"),So=require("./externalABIs/SanctionsList.cjs"),To=require("./externalABIs/OptimismGasPriceOracle.json.cjs"),Ao=require("./externalABIs/NodeInterfaceABI.json.cjs");exports.DATA_SERVER_URL=L.DATA_SERVER_URL;exports.getDataServerURL=L.getDataServerURL;exports.getServerURL=L.getServerURL;exports.getSnapshotServerURL=L.getSnapshotServerURL;exports.getCoingeckoPrice=q.getCoingeckoPrice;exports.getCoingeckoPrice2=q.getCoingeckoPrice2;exports.getCoingeckoPrices=q.getCoingeckoPrices;exports.getCoingeckoTokenList=q.getCoingeckoTokenList;exports.callOneInchAPI=Me.callOneInchAPI;exports.callRelayerTransactAPI=be.callRelayerTransactAPI;exports.getGasEstimates=Fe.getGasEstimates;exports.getTokenPrice=Y.getTokenPrice;exports.getTokenPriceEth=Y.getTokenPriceEth;exports.getTokenPrices=Y.getTokenPrices;exports.checkRisk=fe.checkRisk;exports.getIdleRelay=xe.getIdleRelay;exports.API=Ve.API;exports.getRelayerURL=He.getRelayerURL;exports.getPublicWalletBalance=we.getPublicWalletBalance;exports.WALLET_API=m.WALLET_API;exports.rpcGetStorageChanges=m.rpcGetStorageChanges;exports.rpcSimulateBundle=m.rpcSimulateBundle;exports.rpcSimulateTransaction=m.rpcSimulateTransaction;exports.simulateTx=m.simulateTx;exports.tenderlyRpcLinks=m.tenderlyRpcLinks;exports.tokensInfoCall=We.tokensInfoCall;exports.callLifiAPI=Ge.callLifiAPI;exports.LifiStatus=re.LifiStatus;exports.getLifiStatus=re.getLifiStatus;exports.generateAumPoints=oe.generateAumPoints;exports.generateTradingPoints=oe.generateTradingPoints;exports.createBrotherhood=d.createBrotherhood;exports.editBrotherhood=d.editBrotherhood;exports.getBrotherhood=d.getBrotherhood;exports.getBrotherhoodUsers=d.getBrotherhoodUsers;exports.getCurrentUserBrotherhood=d.getCurrentUserBrotherhood;exports.getCurrentUserBrotherhoodUsers=d.getCurrentUserBrotherhoodUsers;exports.getPublicBrotherhoods=d.getPublicBrotherhoods;exports.joinBrotherhood=d.joinBrotherhood;exports.leaveBrotherhood=d.leaveBrotherhood;exports.getHinkalLandingURL=K.getHinkalLandingURL;exports.getRewardsURL=K.getRewardsURL;exports.getWalletOnboardingURL=K.getWalletOnboardingURL;exports.claimMerchItem=I.claimMerchItem;exports.createOrUpdateMerchAddress=I.createOrUpdateMerchAddress;exports.getCurrentAuctionsInfo=I.getCurrentAuctionsInfo;exports.getCurrentDayBoxPrizeCounts=I.getCurrentDayBoxPrizeCounts;exports.getMerchOrders=I.getMerchOrders;exports.getMysteryBoxesHistory=I.getMysteryBoxesHistory;exports.getServerUtc=I.getServerUtc;exports.openMysteryBox=I.openMysteryBox;exports.IMAGE_PATHS=Ye.IMAGE_PATHS;exports.arbMainnetRegistry=o.arbMainnetRegistry;exports.arbMainnetRegistryFixed=o.arbMainnetRegistryFixed;exports.arcTestnetRegistry=o.arcTestnetRegistry;exports.avalancheRegistry=o.avalancheRegistry;exports.avalancheRegistryFixed=o.avalancheRegistryFixed;exports.baseRegistry=o.baseRegistry;exports.baseRegistryFixed=o.baseRegistryFixed;exports.bnbMainnetRegistry=o.bnbMainnetRegistry;exports.bnbMainnetRegistryFixed=o.bnbMainnetRegistryFixed;exports.ethMainnetRegistry=o.ethMainnetRegistry;exports.ethMainnetRegistryFixed=o.ethMainnetRegistryFixed;exports.localhostRegistry=o.localhostRegistry;exports.optimismRegistry=o.optimismRegistry;exports.optimismRegistryFixed=o.optimismRegistryFixed;exports.polygonRegistry=o.polygonRegistry;exports.polygonRegistryFixed=o.polygonRegistryFixed;exports.bnbMainnetData=Ke.default;exports.arbMainnetData=Xe.default;exports.ethMainnetData=ze.default;exports.optimismData=Ze.default;exports.polygonData=je.default;exports.avalancheData=Je.default;exports.baseData=Qe.default;exports.localhostData=$e.default;exports.arcTestnetData=et.default;exports.ALCHEMY_API_KEY=a.ALCHEMY_API_KEY;exports.ALCHEMY_TEST_KEY=a.ALCHEMY_TEST_KEY;exports.EthereumNetworkType=a.EthereumNetworkType;exports.WALLET_INITIAL_CHAIN_ID=a.WALLET_INITIAL_CHAIN_ID;exports.WALLET_SUPPORTED_CHAINS=a.WALLET_SUPPORTED_CHAINS;exports.chainIds=a.chainIds;exports.chainIdsByType=a.chainIdsByType;exports.getNonLocalhostChainId=a.getNonLocalhostChainId;exports.isLocalNetwork=a.isLocalNetwork;exports.isOptimismLike=a.isOptimismLike;exports.localhostNetwork=a.localhostNetwork;exports.networkRegistry=a.networkRegistry;exports.NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS=ae.NON_NATIVE_GAS_COST_TOKEN_SYMBOL_OPTIONS;exports.defaultFeeToken=ae.defaultFeeToken;exports.contractMetadataMapping=C.contractMetadataMapping;exports.getHinkalParameters=C.getHinkalParameters;exports.uniswapV2PoolData=C.uniswapV2PoolData;exports.uniswapV3FactoryData=C.uniswapV3FactoryData;exports.uniswapV3PoolData=C.uniswapV3PoolData;exports.uniswapV3QuoterData=C.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=p.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=p.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=p.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=p.ReclaimPassports;exports.StandardPassports=p.StandardPassports;exports.SupportedPassports=p.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=p.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=p.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=p.supportedPassportLinks;exports.API_CONFIG=t.API_CONFIG;exports.DATA_SERVER_CONFIG=t.DATA_SERVER_CONFIG;exports.DATA_SERVER_URL_ENDPOINT=t.DATA_SERVER_URL_ENDPOINT;exports.DATA_SERVER_URL_LOCAL=t.DATA_SERVER_URL_LOCAL;exports.PLAYGROUND_RELAYER_URLS=t.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=t.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_SNAPSHOT_SERVER_URLS=t.PLAYGROUND_SNAPSHOT_SERVER_URLS;exports.PLAYGROUND_URL=t.PLAYGROUND_URL;exports.PRODUCTION_RELAYER_URLS=t.PRODUCTION_RELAYER_URLS;exports.PRODUCTION_SERVER_URLS=t.PRODUCTION_SERVER_URLS;exports.PRODUCTION_SNAPSHOT_SERVER_URLS=t.PRODUCTION_SNAPSHOT_SERVER_URLS;exports.PRODUCTION_URL=t.PRODUCTION_URL;exports.RELAYER_CONFIG=t.RELAYER_CONFIG;exports.STAGING_RELAYER_URLS=t.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=t.STAGING_SERVER_URLS;exports.STAGING_SNAPSHOT_SERVER_URLS=t.STAGING_SNAPSHOT_SERVER_URLS;exports.STAGING_URL=t.STAGING_URL;exports.VERIFICATION_ROUTES=t.VERIFICATION_ROUTES;exports.WALLET_TASK_VERIFICATION_TYPES=t.WALLET_TASK_VERIFICATION_TYPES;exports.DEPLOYMENT_MODE=u.DEPLOYMENT_MODE;exports.deploymentMode=u.deploymentMode;exports.isDevelopment=u.isDevelopment;exports.isExtension=u.isExtension;exports.isNode=u.isNode;exports.isNotClientProduction=u.isNotClientProduction;exports.isNotProduction=u.isNotProduction;exports.isPlayground=u.isPlayground;exports.isSandbox=u.isSandbox;exports.isStaging=u.isStaging;exports.isWebpack=u.isWebpack;exports.ARC_TESTNET_USDC_ADDRESS=e.ARC_TESTNET_USDC_ADDRESS;exports.AssetChangeType=e.AssetChangeType;exports.CIRCOM_MERKLE_LENGTH=e.CIRCOM_MERKLE_LENGTH;exports.CIRCOM_P=e.CIRCOM_P;exports.CIRCOM_P_HALF=e.CIRCOM_P_HALF;exports.EIP1271_FAILURE=e.EIP1271_FAILURE;exports.EIP1271_SUCCESS=e.EIP1271_SUCCESS;exports.HINKAL_PRIVATE_SEND_VARIABLE_RATE=e.HINKAL_PRIVATE_SEND_VARIABLE_RATE;exports.HINKAL_SWAP_VARIABLE_RATE=e.HINKAL_SWAP_VARIABLE_RATE;exports.MERKLE_LEVELS=e.MERKLE_LEVELS;exports.NFT_1155_TRANSACTION_TYPE=e.NFT_1155_TRANSACTION_TYPE;exports.NFT_721_TRANSACTION_TYPE=e.NFT_721_TRANSACTION_TYPE;exports.NFT_TRANSACTION_TYPES=e.NFT_TRANSACTION_TYPES;exports.RELAYERS_ARRAY=e.RELAYERS_ARRAY;exports.RELAYER_ADDRESS1=e.RELAYER_ADDRESS1;exports.RELAYER_ADDRESS2=e.RELAYER_ADDRESS2;exports.RELAYER_ADDRESS3=e.RELAYER_ADDRESS3;exports.TOKEN_VALUE_UNLIMITED_THRESHOLD=e.TOKEN_VALUE_UNLIMITED_THRESHOLD;exports.TokenType=e.TokenType;exports.defaultSignatureData=e.defaultSignatureData;exports.ethVolatileAddress=e.ethVolatileAddress;exports.hinkalSimulationAddress=e.hinkalSimulationAddress;exports.oneInchZeroAddress=e.oneInchZeroAddress;exports.ownerPublicKey=e.ownerPublicKey;exports.permitSignatureValidFor=e.permitSignatureValidFor;exports.signaturePhrase=e.signaturePhrase;exports.zeroAddress=e.zeroAddress;exports.COINGECKO_API_KEY=s.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=s.CoinGeckoChainLabels;exports.coingeckoPriceUrl=s.coingeckoPriceUrl;exports.coingeckoPriceUrl2=s.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=s.coingeckoTokenListUrl;exports.getCoinByAddress=s.getCoinByAddress;exports.getCoinById=s.getCoinById;exports.getCoingeckoIdForNativeTokens=s.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=s.getCoingeckoPlatform;exports.proCoingeckoUrl=s.proCoingeckoUrl;exports.proHeader=s.proHeader;exports.searchBySymbol=s.searchBySymbol;exports.NETWORKS=se.NETWORKS;exports.getGasStationUrl=se.getGasStationUrl;exports.ACCESS_TOKEN_MINTING_POINTS=n.ACCESS_TOKEN_MINTING_POINTS;exports.ACCESS_TOKEN_RECLAIM_POINTS=n.ACCESS_TOKEN_RECLAIM_POINTS;exports.CERTIFICATION_DISABLE_WEEK=n.CERTIFICATION_DISABLE_WEEK;exports.REWARDS_ENCRYPTION_PASSWORD=n.REWARDS_ENCRYPTION_PASSWORD;exports.REWARDS_MESSAGE_TO_SIGN=n.REWARDS_MESSAGE_TO_SIGN;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=n.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.boostAmounts=n.boostAmounts;exports.lpLink=n.lpLink;exports.lpProgramStartWeek=n.lpProgramStartWeek;exports.pointsLink=n.pointsLink;exports.raffleProgramStartWeek=n.raffleProgramStartWeek;exports.referralLink=n.referralLink;exports.blockReorgDepth=tt.blockReorgDepth;exports.mediaUrls=rt.mediaUrls;exports.allowanceHolder=P.allowanceHolder;exports.pancaceSwapPermit2Address=P.pancaceSwapPermit2Address;exports.permit2Address=P.permit2Address;exports.permit2Addresses=P.permit2Addresses;exports.uniswap2Manager=P.uniswap2Manager;exports.uniswap3Manager=P.uniswap3Manager;exports.uniswapApprovalExtraCallData=P.uniswapApprovalExtraCallData;exports.uniswapWorkaroundAddresses=P.uniswapWorkaroundAddresses;exports.HETH_ERC20_TOKEN_ADDRESS=y.HETH_ERC20_TOKEN_ADDRESS;exports.NATIVE_TOKEN_WRAPPER_ADDRESSES=y.NATIVE_TOKEN_WRAPPER_ADDRESSES;exports.SWAP_FEE_TAKER_ADDRESSES=y.SWAP_FEE_TAKER_ADDRESSES;exports.SWAP_ROUTER_ADDRESSES=y.SWAP_ROUTER_ADDRESSES;exports.WETH_ERC20_TOKEN_ADDRESS=y.WETH_ERC20_TOKEN_ADDRESS;exports.WRAPPER_TOKEN_EXCHANGE_ADDRESSES=y.WRAPPER_TOKEN_EXCHANGE_ADDRESSES;exports.APPROVED_UTXO_CONVERSION_COUNT=ot.APPROVED_UTXO_CONVERSION_COUNT;exports.TOKEN_LIMITS=ne.TOKEN_LIMITS;exports.getTokensLimits=ne.getTokensLimits;exports.MAX_DISPLAY_DECIMALS=at.MAX_DISPLAY_DECIMALS;exports.BRIDGING_URLS=st.BRIDGING_URLS;exports.UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES=ie.UNSUPPORTED_WALLETS_WALLETCONNECT_NAMES;exports.UNSUPPORTED_WALLET_IDS=ie.UNSUPPORTED_WALLET_IDS;exports.presaleABI=ce.presaleABI;exports.presaleContractInfoByChain=ce.presaleContractInfoByChain;exports.LIFISCAN_URL=nt.LIFISCAN_URL;exports.oauthUrls=it.oauthUrls;exports.BOX_AUCTION_DURATIONS_MINUTES=S.BOX_AUCTION_DURATIONS_MINUTES;exports.BOX_DAILY_CLAIM_LIMIT=S.BOX_DAILY_CLAIM_LIMIT;exports.BOX_ENDING_PRICES=S.BOX_ENDING_PRICES;exports.BOX_STARTING_PRICES=S.BOX_STARTING_PRICES;exports.BRONZE_MYSTERY_BOX_ITEMS=S.BRONZE_MYSTERY_BOX_ITEMS;exports.GOLD_MYSTERY_BOX_ITEMS=S.GOLD_MYSTERY_BOX_ITEMS;exports.MYSTERY_BOX_ITEMS=S.MYSTERY_BOX_ITEMS;exports.MYSTERY_BOX_ITEM_BY_ID=S.MYSTERY_BOX_ITEM_BY_ID;exports.MYSTERY_BOX_ITEM_BY_RANK=S.MYSTERY_BOX_ITEM_BY_RANK;exports.MysteryBoxItemId=S.MysteryBoxItemId;exports.SILVER_MYSTERY_BOX_ITEMS=S.SILVER_MYSTERY_BOX_ITEMS;exports.TVL_CHANGER_ACTIVITY_TYPES=ct.TVL_CHANGER_ACTIVITY_TYPES;exports.ACHIEVEMENTS=h.ACHIEVEMENTS;exports.BROTHERHOOD_TASKS=h.BROTHERHOOD_TASKS;exports.DAILY_TASKS=h.DAILY_TASKS;exports.POINTS_BOOST_TASKS=h.POINTS_BOOST_TASKS;exports.REWARDS_TASKS=h.REWARDS_TASKS;exports.WELCOME_TASKS=h.WELCOME_TASKS;exports.EVENTS_INITIAL_BLOCKS=lt.EVENTS_INITIAL_BLOCKS;exports.APPROVE_FUNCTION_SIGNATURE=k.APPROVE_FUNCTION_SIGNATURE;exports.NFT_APPROVE_FUNCTION_SIGNATURE=k.NFT_APPROVE_FUNCTION_SIGNATURE;exports.NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE=k.NFT_APPROVE_SINGLE_FUNCTION_SIGNATURE;exports.PERMIT2_APPROVE_FUNCTION_SIGNATURE=k.PERMIT2_APPROVE_FUNCTION_SIGNATURE;exports.TRANSFER_FUNCTION_SIGNATURE=k.TRANSFER_FUNCTION_SIGNATURE;exports.poseidonFunction=X.poseidonFunction;exports.poseidonHash=X.poseidonHash;exports.poseidonHolder=X.poseidonHolder;exports.babyJubInstance=le.babyJubInstance;exports.jubHolder=le.jubHolder;exports.preProcessing=ut.preProcessing;exports.ValueCache=St.ValueCache;exports.abiDecodeUtxo=v.abiDecodeUtxo;exports.checkUtxoSignature=v.checkUtxoSignature;exports.decodeUtxo=v.decodeUtxo;exports.decodeUtxoConstructorArgs=v.decodeUtxoConstructorArgs;exports.decryptUtxo=z.decryptUtxo;exports.decryptUtxoConstructorArgs=z.decryptUtxoConstructorArgs;exports.encryptUtxo=z.encryptUtxo;exports.EncryptionKeyPairDefaultValue=B.EncryptionKeyPairDefaultValue;exports.UserKeys=B.UserKeys;exports.stealthAddressCacheDevice=B.stealthAddressCacheDevice;exports.stealthPairCacheDevice=B.stealthPairCacheDevice;exports.getCircomSign=ue.getCircomSign;exports.isCircomNegative=ue.isCircomNegative;exports.Hinkal=Tt.Hinkal;exports.hinkalDeposit=Se.hinkalDeposit;exports.hinkalDepositForOther=Se.hinkalDepositForOther;exports.hinkalSwap=At.hinkalSwap;exports.hinkalTransfer=dt.hinkalTransfer;exports.hinkalWithdraw=pt.hinkalWithdraw;exports.hinkalPrivateWallet=gt.hinkalPrivateWallet;exports.resetMerkleTrees=Et.resetMerkleTrees;exports.hinkalProxySwap=_t.hinkalProxySwap;exports.MerkleTree=Rt.MerkleTree;exports.getPatchedAccessTokenMerkleTree=It.getPatchedAccessTokenMerkleTree;exports.MerkleTreeIncompleteError=Pt.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=mt.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=Ct.AbstractCommitmentsSnapshotService;exports.AbstractApprovalsSnapshotService=yt.AbstractApprovalsSnapshotService;exports.AbstractNullifierSnapshotService=ht.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=kt.AbstractSnapshotService;exports.AbstractEventService=Dt.AbstractEventService;exports.BlockchainEventEmitter=Ot.BlockchainEventEmitter;exports.Utxo=Nt.Utxo;exports.customTokenRegistry=Ut.customTokenRegistry;exports.TokenChecker=Lt.TokenChecker;exports.TransactionType=qt.TransactionType;exports.MultiThreadedUtxoUtils=vt.MultiThreadedUtxoUtils;exports.FileCacheDevice=Bt.FileCacheDevice;exports.LocalStorageCacheDevice=Mt.LocalStorageCacheDevice;exports.activityStorage=bt.activityStorage;exports.publicBalancesStorage=Ft.publicBalancesStorage;exports.privateBalancesStorage=ft.privateBalancesStorage;exports.pricesStorage=xt.pricesStorage;exports.contactStorage=Vt.contactStorage;exports.signedMessagesStorage=Ht.signedMessagesStorage;exports.PrivateTokensDB=Te.PrivateTokensDB;exports.privateTokensDB=Te.privateTokensDB;exports.PublicTokensDB=Ae.PublicTokensDB;exports.publicTokensDB=Ae.publicTokensDB;exports.tokenVisibilityStorage=wt.tokenVisibilityStorage;exports.ArcPublicTokensDB=de.ArcPublicTokensDB;exports.arcPublicTokensDB=de.arcPublicTokensDB;exports.PresaleContractWrapper=Wt.PresaleContractWrapper;exports.SnapshotFetcherService=Gt.SnapshotFetcherService;exports.EventsPublicApprovalsDB=pe.EventsPublicApprovalsDB;exports.eventsPublicApprovalsDB=pe.eventsPublicApprovalsDB;exports.ErrorWithAmount=Yt.ErrorWithAmount;exports.FeeOverTransactionValueError=Kt.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=ge.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=ge.rethrowKnownGasErrorIfPossible;exports.SimulationFailureError=Xt.SimulationFailureError;exports.ErrorWithRelayerTransaction=zt.ErrorWithRelayerTransaction;exports.UserFriendlyErrorCodes=D.UserFriendlyErrorCodes;exports.gasErrorCodes=D.gasErrorCodes;exports.insufficientResourcesErrorCodes=D.insufficientResourcesErrorCodes;exports.transactionErrorCodes=D.transactionErrorCodes;exports.walletConnectErrorCodes=D.walletConnectErrorCodes;exports.extractMessage=Z.extractMessage;exports.getErrorMessage=Z.getErrorMessage;exports.getErrorMessageFromSandboxRequest=Z.getErrorMessageFromSandboxRequest;exports.checkErrorForSnapshotRestore=Zt.checkErrorForSnapshotRestore;exports.logError=jt.logError;exports.ErrorCategory=Jt.ErrorCategory;exports.Logger=Qt.Logger;exports.BabABI=g.BabABI;exports.ERC1155ABI=g.ERC1155ABI;exports.ERC20ABI=g.ERC20ABI;exports.ERC721ABI=g.ERC721ABI;exports.GalxeABI=g.GalxeABI;exports.ISwapRouterABI=g.ISwapRouterABI;exports.factoryABI=g.factoryABI;exports.quoterV2ABI=g.quoterV2ABI;exports.transactionProverABI=g.transactionProverABI;exports.checkHinkalAccessToken=Ee.checkHinkalAccessToken;exports.mintAccessToken=Ee.mintAccessToken;exports.openPassportWindow=$t.openPassportWindow;exports.openDefaultPassportWindow=er.openDefaultPassportWindow;exports.absBigInt=r.absBigInt;exports.beepsToPercentage=r.beepsToPercentage;exports.bigintApplySugar=r.bigintApplySugar;exports.bigintMax=r.bigintMax;exports.calculateAmountUsingBeeps=r.calculateAmountUsingBeeps;exports.calculateBigIntSum=r.calculateBigIntSum;exports.calculateSum=r.calculateSum;exports.countTotalAmountInUtxos=r.countTotalAmountInUtxos;exports.fixDecimalsAmount=r.fixDecimalsAmount;exports.getValueFirstNDigit=r.getValueFirstNDigit;exports.maxBigInt=r.maxBigInt;exports.minBigInt=r.minBigInt;exports.toBigInt=r.toBigInt;exports.toBigIntOrUndefined=r.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=r.toCommaSeparatedNumberString;exports.toInt=r.toInt;exports.toNumberOrUndefined=r.toNumberOrUndefined;exports.trimLeadingZeros=r.trimLeadingZeros;exports.truncateToDecimalPlaces=r.truncateToDecimalPlaces;exports.getFilePath=T.getFilePath;exports.getHinkalCache=T.getHinkalCache;exports.getInHinkalAddressesCache=T.getInHinkalAddressesCache;exports.getInHinkalAddressesFilePath=T.getInHinkalAddressesFilePath;exports.loadTxsCache=T.loadTxsCache;exports.resetCache=T.resetCache;exports.resetInHinkalAddressesCache=T.resetInHinkalAddressesCache;exports.saveTxsCache=T.saveTxsCache;exports.setHinkalCache=T.setHinkalCache;exports.setInHinkalAddressesCache=T.setInHinkalAddressesCache;exports.createProvider=_e.createProvider;exports.createTorRpcProvider=_e.createTorRpcProvider;exports.getExternalActionIdFromNumber=Re.getExternalActionIdFromNumber;exports.getExternalActionIdHash=Re.getExternalActionIdHash;exports.aggregateTokenChanges=A.aggregateTokenChanges;exports.formatTokenChangesList=A.formatTokenChangesList;exports.getERC20Token=A.getERC20Token;exports.getERC20TokenBySymbol=A.getERC20TokenBySymbol;exports.getErc20TokensForChain=A.getErc20TokensForChain;exports.getHToken=A.getHToken;exports.isArcNativeToken=A.isArcNativeToken;exports.isNFTToken=A.isNFTToken;exports.searchCompareFunction=A.searchCompareFunction;exports.sortTokens=A.sortTokens;exports.requireEnv=tr.requireEnv;exports.getSequence=j.getSequence;exports.promisify=j.promisify;exports.resolveSync=j.resolveSync;exports.convertIntegrationProviderToExternalActionId=rr.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=or.getInteractionFromAction;exports.outputUtxoProcessing=ar.outputUtxoProcessing;exports.processGasEstimates=sr.processGasEstimates;exports.getFlatFees=nr.getFlatFees;exports.outputApprovalDataProcessing=Ie.outputApprovalDataProcessing;exports.outputApprovalDataProcessingForHinkalApprove=Ie.outputApprovalDataProcessingForHinkalApprove;exports.modifyVolatileTokenAmountChanges=ir.modifyVolatileTokenAmountChanges;exports.constructAdminData=cr.constructAdminData;exports.getNetworkObject=Pe.getNetworkObject;exports.getNetworkType=Pe.getNetworkType;exports.browserSupported=me.browserSupported;exports.walletSupported=me.walletSupported;exports.decodeTxInput=J.decodeTxInput;exports.deserializeDecodedTxs=J.deserializeDecodedTxs;exports.serializeDecodedTxs=J.serializeDecodedTxs;exports.reloadPage=lr.reloadPage;exports.capitalizeFirstLetter=E.capitalizeFirstLetter;exports.capitalizeName=E.capitalizeName;exports.getChainIdFromStateKey=E.getChainIdFromStateKey;exports.getStateKey=E.getStateKey;exports.hexToUtf8=E.hexToUtf8;exports.isNullOrEmpty=E.isNullOrEmpty;exports.replaceAllInstances=E.replaceAllInstances;exports.toTitleCase=E.toTitleCase;exports.validateEmail=E.validateEmail;exports.isNicknameValid=ur.isNicknameValid;exports.caseInsensitiveEqual=Q.caseInsensitiveEqual;exports.lowerCaseIncludes=Q.lowerCaseIncludes;exports.lowerCaseStartsWith=Q.lowerCaseStartsWith;exports.formatDate=i.formatDate;exports.getCurrentDayStart=i.getCurrentDayStart;exports.getCurrentTimeInSeconds=i.getCurrentTimeInSeconds;exports.getCurrentWeekStart=i.getCurrentWeekStart;exports.getEffectiveMonthStart=i.getEffectiveMonthStart;exports.getEffectiveSevenDaysAgo=i.getEffectiveSevenDaysAgo;exports.getEffectiveToday=i.getEffectiveToday;exports.getNextDayDelay=i.getNextDayDelay;exports.getNextDayISO=i.getNextDayISO;exports.getPreviousWeekStart=i.getPreviousWeekStart;exports.msToISOString=i.msToISOString;exports.waitLittle=i.waitLittle;exports.createCacheDevice=Sr.createCacheDevice;exports.debounce=Ce.debounce;exports.wait=Ce.wait;exports.getBlockExplorerUrl=Tr.getBlockExplorerUrl;exports.isPermit2Tx=ye.isPermit2Tx;exports.uniswapWorkaround=ye.uniswapWorkaround;exports.checkChainOrAddressNotUpdated=Ar.checkChainOrAddressNotUpdated;exports.CustomJSONParse=he.CustomJSONParse;exports.CustomJSONStringify=he.CustomJSONStringify;exports.isUseApprovalDataEmpty=ke.isUseApprovalDataEmpty;exports.padUseApprovalUtxoData=ke.padUseApprovalUtxoData;exports.convertEmporiumOpToCallInfo=dr.convertEmporiumOpToCallInfo;exports.getExtendedRecipientInfoFromUserKeys=De.getExtendedRecipientInfoFromUserKeys;exports.getRecipientInfoFromUserKeys=De.getRecipientInfoFromUserKeys;exports.getPublicBalance=M.getPublicBalance;exports.getPublicBalanceByTokenAddress=M.getPublicBalanceByTokenAddress;exports.getPublicBalancesOfTokens=M.getPublicBalancesOfTokens;exports.getPublicTransactionCount=M.getPublicTransactionCount;exports.rpcIntEncode=pr.rpcIntEncode;exports.checkTokensForShielding=gr.checkTokensForShielding;exports.arraysMatch=Er.arraysMatch;exports.constructStealthAddressStructure=b.constructStealthAddressStructure;exports.hashEthereumAddress=b.hashEthereumAddress;exports.isValidExtendedPrivateAddress=b.isValidExtendedPrivateAddress;exports.isValidPrivateAddress=b.isValidPrivateAddress;exports.trimFieldValues=_r.trimFieldValues;exports.getNecessaryApprovalChangesData=F.getNecessaryApprovalChangesData;exports.getNecessaryAssetsForFunding=F.getNecessaryAssetsForFunding;exports.getNecessaryAssetsForFundingFromBalance=F.getNecessaryAssetsForFundingFromBalance;exports.hasEnoughBalance=F.hasEnoughBalance;exports.balanceFetchingMutex=Rr.balanceFetchingMutex;exports.convertV6ReceiptToRelayer=Ir.convertV6ReceiptToRelayer;exports.extractTokenIdsFromAssetChanges=Pr.extractTokenIdsFromAssetChanges;exports.encodeParsedInLogicMetadata=mr.encodeParsedInLogicMetadata;exports.getNetworkName=Cr.getNetworkName;exports.isValidUrl=yr.isValidUrl;exports.getHinkalApprovals=hr.getHinkalApprovals;exports.getAuctionTime=f.getAuctionTime;exports.getCurrentAuctionIntervalStartUTC=f.getCurrentAuctionIntervalStartUTC;exports.getLinearPrice=f.getLinearPrice;exports.parseAuctionTime=f.parseAuctionTime;exports.postToOffscreen=kr.postToOffscreen;exports.getSignatureHeader=Dr.getSignatureHeader;exports.calculateDollarValue=_.calculateDollarValue;exports.ethToWei=_.ethToWei;exports.getAmountInToken=_.getAmountInToken;exports.getAmountInWei=_.getAmountInWei;exports.getAmountInWeiOrZero=_.getAmountInWeiOrZero;exports.getAmountWithPrecision=_.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=_.getAmountWithPrecisionOrZero;exports.randomBigInt=_.randomBigInt;exports.toBigIntWithDecimals=_.toBigIntWithDecimals;exports.attemptGetInputUtxosRemotely=x.attemptGetInputUtxosRemotely;exports.getInputUtxoAndBalance=x.getInputUtxoAndBalance;exports.getInputUtxoAndBalancePerToken=x.getInputUtxoAndBalancePerToken;exports.getInputUtxosRemotely=x.getInputUtxosRemotely;exports.addPaddingToUtxos=Oe.addPaddingToUtxos;exports.getShieldedBalance=Oe.getShieldedBalance;exports.getDepositEvents=Ne.getDepositEvents;exports.retrieveEvents=Ne.retrieveEvents;exports.balanceChangedHandler=Or.balanceChangedHandler;exports.balanceChangedCustomHandler=Nr.balanceChangedCustomHandler;exports.getApprovedBalance=V.getApprovedBalance;exports.getApprovedUtxos=V.getApprovedUtxos;exports.getApprovedUtxosForToken=V.getApprovedUtxosForToken;exports.getMyApprovalAmountForInteraction=V.getMyApprovalAmountForInteraction;exports.getTransactionLogEvents=Ur.getTransactionLogEvents;exports.getUniswapFee=H.getUniswapFee;exports.getUniswapPrice=H.getUniswapPrice;exports.getUniswapPriceHelper=H.getUniswapPriceHelper;exports.searchPoolAndFee=H.searchPoolAndFee;exports.getOdosPrice=Lr.getOdosPrice;exports.getOneInchPrice=qr.getOneInchPrice;exports.getLifiPrice=vr.getLifiPrice;exports.runContractFunction=Br.runContractFunction;exports.getTokenHolder=Mr.getTokenHolder;exports.decodeMessage=$.decodeMessage;exports.getDecodedMessage=$.getDecodedMessage;exports.getPermitInfo=$.getPermitInfo;exports.constructZkProof=br.constructZkProof;exports.constructEmporiumProof=Fr.constructEmporiumProof;exports.buildInNullifiers=c.buildInNullifiers;exports.buildOutCommitments=c.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=c.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=c.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=c.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=c.calcEncryptedOutputs;exports.calcPublicSignalCount=c.calcPublicSignalCount;exports.calcStealthAddressStructure=c.calcStealthAddressStructure;exports.createCallDataHash=c.createCallDataHash;exports.deserializeCircomData=c.deserializeCircomData;exports.getSlippageValues=c.getSlippageValues;exports.serializeCircomData=c.serializeCircomData;exports.generateZkProof=fr.generateZkProof;exports.calculateStakeNullifier=O.calculateStakeNullifier;exports.createStakeCommitment=O.createStakeCommitment;exports.decryptStake=O.decryptStake;exports.encodeHStakeMetadata=O.encodeHStakeMetadata;exports.encryptStake=O.encryptStake;exports.checkEOAWithDelegation=l.checkEOAWithDelegation;exports.createApproveEmporiumOp=l.createApproveEmporiumOp;exports.createTransaferEmporiumOpsBatch=l.createTransaferEmporiumOpsBatch;exports.createTransferToEmporiumOp=l.createTransferToEmporiumOp;exports.emporiumOp=l.emporiumOp;exports.encodeEmporiumMetadata=l.encodeEmporiumMetadata;exports.generateFundAndApproveOps=l.generateFundAndApproveOps;exports.generateFundApproveAndTransactOps=l.generateFundApproveAndTransactOps;exports.getAuthorizationDataIfNeeded=l.getAuthorizationDataIfNeeded;exports.modifyDataForProxy=l.modifyDataForProxy;exports.modifyDataForProxyWithPrivateKey=l.modifyDataForProxyWithPrivateKey;exports.recoverAuthorizationData=l.recoverAuthorizationData;exports.OpType=Ue.OpType;exports.produceOp=Ue.produceOp;exports.createSwapToEmporiumOpForUniswap=w.createSwapToEmporiumOpForUniswap;exports.createSwapToEmporiumOpFromData=w.createSwapToEmporiumOpFromData;exports.createSwapToEmporiumOps=w.createSwapToEmporiumOps;exports.nullifyApprovalBeforeSwap=w.nullifyApprovalBeforeSwap;exports.RevokeType=xr.RevokeType;exports.defaultHookData=W.defaultHookData;exports.defaultHookDataArray=W.defaultHookDataArray;exports.defaultStealthAddressStructure=W.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=W.emptyStealthAddressStructure;exports.ContractType=Vr.ContractType;exports.ExternalActionId=Hr.ExternalActionId;exports.EventType=R.EventType;exports.HinkalLogicAction=R.HinkalLogicAction;exports.HinkalStakeAction=R.HinkalStakeAction;exports.INTERACTION=R.INTERACTION;exports.IntegrationProvider=R.IntegrationProvider;exports.UserProgress=R.UserProgress;exports.defaultFeeStructure=R.defaultFeeStructure;exports.defaultHinkalLogicArgs=R.defaultHinkalLogicArgs;exports.defaultUseApprovalUTXOData=R.defaultUseApprovalUTXOData;exports.KycVerificationResult=N.KycVerificationResult;exports.KycVerificationStatus=N.KycVerificationStatus;exports.Passports=N.Passports;exports.VERIFICATION_TYPE=N.VERIFICATION_TYPE;exports.VerificationTypes=N.VerificationTypes;exports.ApprovalType=wr.ApprovalType;exports.SlippageType=Wr.SlippageType;exports.TransactionAction=ee.TransactionAction;exports.TransactionStatus=ee.TransactionStatus;exports.emptyDecodedTx=ee.emptyDecodedTx;exports.OldPointType=Le.OldPointType;exports.RafflePrizeType=Le.RafflePrizeType;exports.HinkalStakeMode=Gr.HinkalStakeMode;exports.AdminTransactionType=Yr.AdminTransactionType;exports.ActivityStatus=U.ActivityStatus;exports.ActivityTypes=U.ActivityTypes;exports.DexProviders=U.DexProviders;exports.IntegrationProviderNames=U.IntegrationProviderNames;exports.TokenChangeType=U.TokenChangeType;exports.SandboxRequestType=Kr.SandboxRequestType;exports.PrivateBalanceUpdateType=Xr.PrivateBalanceUpdateType;exports.StorageKeys=zr.StorageKeys;exports.TOKEN_PRICE_STATUS=Zr.TOKEN_PRICE_STATUS;exports.AchievementTiers=G.AchievementTiers;exports.BrotherhoodTaskTypes=G.BrotherhoodTaskTypes;exports.TaskCategory=G.TaskCategory;exports.TaskTypes=G.TaskTypes;exports.MemberStatus=qe.MemberStatus;exports.Rank=qe.Rank;exports.PointsType=ve.PointsType;exports.TradingType=ve.TradingType;exports.GetCallsStatusCode=jr.GetCallsStatusCode;exports.MysteryBoxItemFrequency=te.MysteryBoxItemFrequency;exports.MysteryBoxItemRewardType=te.MysteryBoxItemRewardType;exports.MysteryBoxRewardStatus=te.MysteryBoxRewardStatus;exports.MerchOrderStatus=Jr.MerchOrderStatus;exports.HttpMethod=Qr.HttpMethod;exports.ConfirmationRequestType=$r.ConfirmationRequestType;exports.MessagesFromOffscreen=eo.MessagesFromOffscreen;exports.resetStateMutex=to.resetStateMutex;exports.getERC20Registry=Be.getERC20Registry;exports.getFixedRegistry=Be.getFixedRegistry;exports.PopularTokenSymbols=ro.PopularTokenSymbols;exports.AmTokenABI=oo.abi;exports.USDCABI=ao.abi;exports.daiABI=so.abi;exports.USDRABI=no.abi;exports.USDR3CRVABI=io.abi;exports.USDTABI=co.abi;exports.WETHABI=lo.abi;exports.BUSDABI=uo.abi;exports.sanctionsListABI=So.abi;exports.optimismGasPriceOracleAbi=To;exports.NodeInterfaceABI=Ao;
|