@hinkal/common 0.0.113 → 0.0.115
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-fuD5h_j0.js → snarkjsWorkerLauncher-CaBCnle3.js} +283 -257
- package/assets/snarkjsWorkerLogic-BAbiO5gj.js +17935 -0
- package/assets/snarkjsWorkerLogic-wHJfYCfg.js +15636 -0
- package/assets/{utxoWorkerLogic-CtFLQiAX.js → utxoWorkerLogic-BGFm-Zl2.js} +2 -2
- package/assets/{zkProofWorkerLauncher-J3Ts5_Ba.js → zkProofWorkerLauncher-BteYxRBn.js} +1 -1
- package/assets/{zkProofWorkerLogic-CPNuu61R.js → zkProofWorkerLogic-DiLbAhAo.js} +8354 -8298
- package/common.mjs +644 -0
- package/common10.mjs +30 -0
- package/common100.mjs +156 -0
- package/common101.mjs +568 -0
- package/common102.mjs +1603 -0
- package/common103.mjs +1764 -0
- package/common104.mjs +2030 -0
- package/common105.mjs +701 -0
- package/common106.mjs +480 -0
- package/common107.mjs +2082 -0
- package/common108.mjs +39 -0
- package/common109.mjs +24 -0
- package/common11.mjs +30 -0
- package/common110.mjs +41 -0
- package/common111.mjs +206 -0
- package/common112.mjs +48 -0
- package/common113.mjs +39 -0
- package/common114.mjs +70 -0
- package/common115.mjs +67 -0
- package/common116.mjs +5 -0
- package/common117.mjs +61 -0
- package/common118.mjs +20 -0
- package/common119.mjs +7 -0
- package/common12.mjs +58 -0
- package/common120.mjs +22 -0
- package/common121.mjs +16 -0
- package/common122.mjs +57 -0
- package/common123.mjs +45 -0
- package/common124.mjs +57 -0
- package/common125.mjs +229 -0
- package/common126.mjs +203 -0
- package/common127.mjs +29 -0
- package/common128.mjs +38 -0
- package/common129.mjs +15 -0
- package/common13.mjs +156 -0
- package/common130.mjs +105 -0
- package/common131.mjs +4 -0
- package/common132.mjs +14 -0
- package/common133.mjs +7 -0
- package/common134.mjs +6 -0
- package/common135.mjs +8 -0
- package/common136.mjs +40 -0
- package/common137.mjs +41 -0
- package/common138.mjs +72 -0
- package/common139.mjs +107 -0
- package/common14.mjs +32 -0
- package/common140.mjs +9 -0
- package/common141.mjs +10 -0
- package/common142.mjs +97 -0
- package/common143.mjs +65 -0
- package/common144.mjs +61 -0
- package/common145.mjs +95 -0
- package/common146.mjs +129 -0
- package/common147.mjs +105 -0
- package/common148.mjs +96 -0
- package/common149.mjs +18 -0
- package/common15.mjs +16 -0
- package/common150.mjs +45 -0
- package/common151.mjs +41 -0
- package/common152.mjs +108 -0
- package/common153.mjs +40 -0
- package/common154.mjs +19 -0
- package/common155.mjs +24 -0
- package/common156.mjs +21 -0
- package/common157.mjs +22 -0
- package/common158.mjs +4 -0
- package/common159.mjs +4 -0
- package/common16.mjs +6 -0
- package/common160.mjs +15 -0
- package/common161.mjs +13 -0
- package/common162.mjs +4 -0
- package/common163.mjs +15 -0
- package/common164.mjs +36 -0
- package/common165.mjs +58 -0
- package/common166.mjs +27 -0
- package/common167.mjs +15 -0
- package/common168.mjs +25 -0
- package/common169.mjs +4 -0
- package/common17.mjs +6877 -0
- package/common170.mjs +85 -0
- package/common171.mjs +2251 -0
- package/common172.mjs +856 -0
- package/common173.mjs +973 -0
- package/common174.mjs +1255 -0
- package/common175.mjs +591 -0
- package/common176.mjs +1392 -0
- package/common177.mjs +463 -0
- package/common178.mjs +137 -0
- package/common179.mjs +2700 -0
- package/common18.mjs +7415 -0
- package/common180.mjs +946 -0
- package/common181.mjs +973 -0
- package/common182.mjs +1327 -0
- package/common183.mjs +591 -0
- package/common184.mjs +1455 -0
- package/common185.mjs +490 -0
- package/common186.mjs +137 -0
- package/common187.mjs +2768 -0
- package/common188.mjs +8 -0
- package/common189.mjs +14 -0
- package/common19.mjs +11427 -0
- package/common190.mjs +115623 -0
- package/common191.mjs +42 -0
- package/common192.mjs +1022 -0
- package/common193.mjs +1423 -0
- package/common194.mjs +208 -0
- package/common195.mjs +340 -0
- package/common196.mjs +674 -0
- package/common197.mjs +1002 -0
- package/common198.mjs +883 -0
- package/common199.mjs +262 -0
- package/common2.mjs +67 -0
- package/common20.mjs +7417 -0
- package/common200.mjs +264 -0
- package/common201.mjs +173 -0
- package/common202.mjs +999 -0
- package/common203.mjs +80 -0
- package/common204.mjs +56 -0
- package/common205.mjs +42 -0
- package/common206.mjs +14 -0
- package/common207.mjs +4 -0
- package/common208.mjs +62 -0
- package/common209.mjs +4 -0
- package/common21.mjs +7439 -0
- package/common210.mjs +4 -0
- package/common211.mjs +58 -0
- package/common212.mjs +40 -0
- package/common213.mjs +45 -0
- package/common214.mjs +36 -0
- package/common215.mjs +32 -0
- package/common216.mjs +44 -0
- package/common217.mjs +32 -0
- package/common218.mjs +38 -0
- package/common219.mjs +9 -0
- package/common22.mjs +7411 -0
- package/common220.mjs +32 -0
- package/common221.mjs +47 -0
- package/common222.mjs +14 -0
- package/common223.mjs +30 -0
- package/common224.mjs +91 -0
- package/common225.mjs +112 -0
- package/common226.mjs +96 -0
- package/common227.mjs +30 -0
- package/common228.mjs +138 -0
- package/common229.mjs +18 -0
- package/common23.mjs +8425 -0
- package/common230.mjs +42 -0
- package/common231.mjs +60 -0
- package/common232.mjs +48 -0
- package/common233.mjs +47 -0
- package/common234.mjs +44 -0
- package/common235.mjs +74 -0
- package/common236.mjs +4 -0
- package/common237.mjs +60 -0
- package/common238.mjs +4 -0
- package/common239.mjs +30 -0
- package/common24.mjs +9600 -0
- package/common240.mjs +4 -0
- package/common241.mjs +153 -0
- package/common242.mjs +31 -0
- package/common243.mjs +30 -0
- package/common244.mjs +68 -0
- package/common245.mjs +57 -0
- package/common246.mjs +97 -0
- package/common247.mjs +36 -0
- package/common248.mjs +43 -0
- package/common249.mjs +44 -0
- package/common25.mjs +13283 -0
- package/common250.mjs +59 -0
- package/common251.mjs +75 -0
- package/{snarkjsWorkerLogic-CVna_BW9.mjs → common252.mjs} +1 -1
- package/common253.mjs +66 -0
- package/common254.mjs +70 -0
- package/common255.mjs +211 -0
- package/common256.mjs +8 -0
- package/{workerProxy-BDj498Ht.mjs → common257.mjs} +1 -1
- package/common26.mjs +4329 -0
- package/common27.mjs +4329 -0
- package/common28.mjs +204 -0
- package/common29.mjs +57 -0
- package/common3.mjs +27 -0
- package/common30.mjs +276 -0
- package/common31.mjs +118 -0
- package/common32.mjs +157 -0
- package/common33.mjs +29 -0
- package/common34.mjs +26 -0
- package/common35.mjs +53 -0
- package/common36.mjs +55 -0
- package/common37.mjs +18 -0
- package/common38.mjs +636 -0
- package/common39.mjs +24 -0
- package/common4.mjs +37 -0
- package/common40.mjs +13 -0
- package/common41.mjs +27 -0
- package/common42.mjs +15 -0
- package/common43.mjs +24 -0
- package/common44.mjs +253 -0
- package/common45.mjs +26 -0
- package/common46.mjs +15 -0
- package/common47.mjs +9 -0
- package/common48.mjs +25 -0
- package/common49.mjs +40 -0
- package/common5.mjs +37 -0
- package/common50.mjs +41 -0
- package/common51.mjs +90 -0
- package/common52.mjs +10 -0
- package/common53.mjs +299 -0
- package/common54.mjs +101 -0
- package/common55.mjs +83 -0
- package/common56.mjs +112 -0
- package/common57.mjs +140 -0
- package/common58.mjs +95 -0
- package/common59.mjs +98 -0
- package/common6.mjs +32 -0
- package/common60.mjs +5 -0
- package/common61.mjs +91 -0
- package/common62.mjs +66 -0
- package/common63.mjs +49 -0
- package/common64.mjs +177 -0
- package/common65.mjs +8 -0
- package/common66.mjs +131 -0
- package/common67.mjs +132 -0
- package/common68.mjs +59 -0
- package/common69.mjs +35 -0
- package/common7.mjs +37 -0
- package/common70.mjs +118 -0
- package/common71.mjs +134 -0
- package/common72.mjs +33 -0
- package/common73.mjs +29 -0
- package/common74.mjs +218 -0
- package/common75.mjs +194 -0
- package/common76.mjs +62 -0
- package/common77.mjs +181 -0
- package/common78.mjs +83 -0
- package/common79.mjs +9 -0
- package/common8.mjs +38 -0
- package/common80.mjs +21 -0
- package/common81.mjs +184 -0
- package/common82.mjs +53 -0
- package/common83.mjs +35 -0
- package/common84.mjs +7 -0
- package/common85.mjs +4 -0
- package/common86.mjs +350 -0
- package/common87.mjs +570 -0
- package/common88.mjs +519 -0
- package/common89.mjs +1422 -0
- package/common9.mjs +41 -0
- package/common90.mjs +1136 -0
- package/common91.mjs +334 -0
- package/common92.mjs +291 -0
- package/common93.mjs +205 -0
- package/common94.mjs +201 -0
- package/common95.mjs +89 -0
- package/common96.mjs +721 -0
- package/common97.mjs +346 -0
- package/common98.mjs +542 -0
- package/common99.mjs +393 -0
- package/package.json +4 -4
- package/assets/snarkjsWorkerLogic-B6N4z_eM.js +0 -12136
- package/assets/snarkjsWorkerLogic-Fv0M38Mc.js +0 -12087
- package/index-DXElTGy9.mjs +0 -254449
- package/index.js +0 -457
- package/utxoWorkerLogic-B1Hh-bq4.mjs +0 -64
- package/zkProofWorkerLogic-D9rxuuiK.mjs +0 -60
package/common28.mjs
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import s from "./common17.mjs";
|
|
2
|
+
import o from "./common18.mjs";
|
|
3
|
+
import c from "./common19.mjs";
|
|
4
|
+
import i from "./common20.mjs";
|
|
5
|
+
import p from "./common21.mjs";
|
|
6
|
+
import l from "./common22.mjs";
|
|
7
|
+
import d from "./common23.mjs";
|
|
8
|
+
import b from "./common24.mjs";
|
|
9
|
+
import m from "./common25.mjs";
|
|
10
|
+
import h from "./common26.mjs";
|
|
11
|
+
import f from "./common27.mjs";
|
|
12
|
+
import { isDevelopment as n } from "./common33.mjs";
|
|
13
|
+
const a = {
|
|
14
|
+
polygon: 137,
|
|
15
|
+
arbMainnet: 42161,
|
|
16
|
+
ethMainnet: 1,
|
|
17
|
+
avalanche: 43114,
|
|
18
|
+
bnbMainnet: 56,
|
|
19
|
+
optimism: 10,
|
|
20
|
+
base: 8453,
|
|
21
|
+
blast: 81457,
|
|
22
|
+
bnbTestnet: 97,
|
|
23
|
+
polygonMumbai: 80001,
|
|
24
|
+
mainnetSepolia: 11155111,
|
|
25
|
+
optimismSepolia: 11155420,
|
|
26
|
+
axelar1: 2500,
|
|
27
|
+
axelar2: 2501,
|
|
28
|
+
localhost: 31337,
|
|
29
|
+
hardhat: 31337
|
|
30
|
+
}, r = a.ethMainnet, u = (t) => !![a.axelar1, a.axelar2, a.localhost].includes(t), R = (t) => t ? u(t) ? r : t : r, e = {
|
|
31
|
+
[a.ethMainnet]: {
|
|
32
|
+
name: "Ethereum",
|
|
33
|
+
chainId: a.ethMainnet,
|
|
34
|
+
rpcUrl: "https://rpc.ankr.com/eth",
|
|
35
|
+
fetchRpcUrl: "https://mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
36
|
+
supported: !0,
|
|
37
|
+
contractData: c,
|
|
38
|
+
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
39
|
+
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
40
|
+
accessTokenMintingFee: "0",
|
|
41
|
+
priority: 1,
|
|
42
|
+
privateMempoolRpcUrl: "https://relay.flashbots.net"
|
|
43
|
+
},
|
|
44
|
+
[a.arbMainnet]: {
|
|
45
|
+
name: "Arbitrum",
|
|
46
|
+
chainId: a.arbMainnet,
|
|
47
|
+
rpcUrl: "https://endpoints.omniatech.io/v1/arbitrum/one/public",
|
|
48
|
+
fetchRpcUrl: "https://arbitrum-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
49
|
+
supported: !0,
|
|
50
|
+
contractData: o,
|
|
51
|
+
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
52
|
+
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
53
|
+
accessTokenMintingFee: "0",
|
|
54
|
+
priority: 2
|
|
55
|
+
},
|
|
56
|
+
[a.optimism]: {
|
|
57
|
+
name: "Optimism",
|
|
58
|
+
chainId: a.optimism,
|
|
59
|
+
rpcUrl: "https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
60
|
+
fetchRpcUrl: "https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
61
|
+
supported: !0,
|
|
62
|
+
contractData: i,
|
|
63
|
+
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
64
|
+
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
65
|
+
accessTokenMintingFee: "0",
|
|
66
|
+
priority: 3
|
|
67
|
+
},
|
|
68
|
+
[a.polygon]: {
|
|
69
|
+
name: "Polygon",
|
|
70
|
+
chainId: a.polygon,
|
|
71
|
+
rpcUrl: "https://polygon-rpc.com",
|
|
72
|
+
fetchRpcUrl: "https://polygon-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
73
|
+
supported: !0,
|
|
74
|
+
contractData: p,
|
|
75
|
+
quoterV2Address: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
76
|
+
uniswapV3FactoryAddress: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
|
|
77
|
+
accessTokenMintingFee: "0",
|
|
78
|
+
priority: 4
|
|
79
|
+
},
|
|
80
|
+
[a.avalanche]: {
|
|
81
|
+
name: "Avalanche",
|
|
82
|
+
chainId: a.avalanche,
|
|
83
|
+
rpcUrl: "https://api.avax.network/ext/bc/C/rpc",
|
|
84
|
+
fetchRpcUrl: "https://avalanche-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
85
|
+
supported: !0,
|
|
86
|
+
contractData: l,
|
|
87
|
+
quoterV2Address: "0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",
|
|
88
|
+
uniswapV3FactoryAddress: "0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",
|
|
89
|
+
accessTokenMintingFee: "0",
|
|
90
|
+
priority: 5
|
|
91
|
+
},
|
|
92
|
+
[a.bnbMainnet]: {
|
|
93
|
+
name: "BNB Chain",
|
|
94
|
+
chainId: a.bnbMainnet,
|
|
95
|
+
rpcUrl: "https://bsc-dataseed.binance.org",
|
|
96
|
+
maxPageSize: 1e3,
|
|
97
|
+
fetchRpcUrl: "https://rpc.ankr.com/bsc/e2873adb3a38b045946aab68a342686642e27f1c4740d820075d438ad512f7ac",
|
|
98
|
+
supported: !0,
|
|
99
|
+
contractData: s,
|
|
100
|
+
quoterV2Address: "0x78D78E420Da98ad378D7799bE8f4AF69033EB077",
|
|
101
|
+
uniswapV3FactoryAddress: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",
|
|
102
|
+
accessTokenMintingFee: "0",
|
|
103
|
+
priority: 6
|
|
104
|
+
},
|
|
105
|
+
[a.base]: {
|
|
106
|
+
name: "Base",
|
|
107
|
+
chainId: a.base,
|
|
108
|
+
rpcUrl: "https://mainnet.base.org/",
|
|
109
|
+
// maxPageSize: 1000,
|
|
110
|
+
fetchRpcUrl: "https://base-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903",
|
|
111
|
+
supported: !0,
|
|
112
|
+
contractData: d,
|
|
113
|
+
quoterV2Address: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
114
|
+
uniswapV3FactoryAddress: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
115
|
+
accessTokenMintingFee: "0",
|
|
116
|
+
priority: 7
|
|
117
|
+
},
|
|
118
|
+
[a.blast]: {
|
|
119
|
+
name: "Blast",
|
|
120
|
+
chainId: a.blast,
|
|
121
|
+
rpcUrl: "https://rpc.blast.io/",
|
|
122
|
+
maxPageSize: 1e3,
|
|
123
|
+
fetchRpcUrl: "https://rpc.ankr.com/blast/e2873adb3a38b045946aab68a342686642e27f1c4740d820075d438ad512f7ac",
|
|
124
|
+
supported: !0,
|
|
125
|
+
contractData: b,
|
|
126
|
+
quoterV2Address: "0x6Cdcd65e03c1CEc3730AeeCd45bc140D57A25C77",
|
|
127
|
+
uniswapV3FactoryAddress: "0x792edAdE80af5fC680d96a2eD80A44247D2Cf6Fd",
|
|
128
|
+
accessTokenMintingFee: "0",
|
|
129
|
+
priority: 8
|
|
130
|
+
},
|
|
131
|
+
...n ? {} : {}
|
|
132
|
+
}, F = {
|
|
133
|
+
name: "Localhost",
|
|
134
|
+
chainId: a.localhost,
|
|
135
|
+
rpcUrl: "http://localhost:8545",
|
|
136
|
+
fetchRpcUrl: "http://localhost:8545",
|
|
137
|
+
supported: !0,
|
|
138
|
+
contractData: m,
|
|
139
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
140
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
141
|
+
accessTokenMintingFee: e[r].accessTokenMintingFee,
|
|
142
|
+
priority: 7
|
|
143
|
+
}, A = {
|
|
144
|
+
name: "axelar1",
|
|
145
|
+
chainId: a.axelar1,
|
|
146
|
+
rpcUrl: "http://localhost:8600/0",
|
|
147
|
+
fetchRpcUrl: "http://localhost:8600/0",
|
|
148
|
+
supported: !0,
|
|
149
|
+
contractData: h,
|
|
150
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
151
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
152
|
+
accessTokenMintingFee: e[r].accessTokenMintingFee,
|
|
153
|
+
priority: 8
|
|
154
|
+
}, D = {
|
|
155
|
+
name: "axelar2",
|
|
156
|
+
chainId: a.axelar2,
|
|
157
|
+
rpcUrl: "http://localhost:8600/1",
|
|
158
|
+
fetchRpcUrl: "http://localhost:8600/1",
|
|
159
|
+
supported: !0,
|
|
160
|
+
contractData: f,
|
|
161
|
+
quoterV2Address: e[r].quoterV2Address,
|
|
162
|
+
uniswapV3FactoryAddress: e[r].uniswapV3FactoryAddress,
|
|
163
|
+
accessTokenMintingFee: e[r].accessTokenMintingFee,
|
|
164
|
+
priority: 9
|
|
165
|
+
};
|
|
166
|
+
n && (e[a.localhost] = F, e[a.axelar1] = A, e[a.axelar2] = D);
|
|
167
|
+
const L = [
|
|
168
|
+
a.ethMainnet,
|
|
169
|
+
a.arbMainnet,
|
|
170
|
+
a.avalanche,
|
|
171
|
+
a.bnbMainnet,
|
|
172
|
+
a.polygon,
|
|
173
|
+
a.optimism,
|
|
174
|
+
a.base,
|
|
175
|
+
a.blast
|
|
176
|
+
];
|
|
177
|
+
var M = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet", t.Local = "Local", t))(M || {});
|
|
178
|
+
const N = {
|
|
179
|
+
Mainnet: [
|
|
180
|
+
a.polygon,
|
|
181
|
+
a.arbMainnet,
|
|
182
|
+
a.ethMainnet,
|
|
183
|
+
a.bnbMainnet,
|
|
184
|
+
a.optimism,
|
|
185
|
+
a.avalanche,
|
|
186
|
+
a.base,
|
|
187
|
+
a.blast
|
|
188
|
+
],
|
|
189
|
+
Testnet: [a.bnbTestnet, a.polygonMumbai],
|
|
190
|
+
Local: [a.localhost, a.axelar1, a.axelar2]
|
|
191
|
+
}, y = (t) => [a.optimism, a.base, a.blast].includes(t), x = (t) => !1, O = (t) => y(t) || x();
|
|
192
|
+
export {
|
|
193
|
+
M as EthereumNetworkType,
|
|
194
|
+
a as chainIds,
|
|
195
|
+
N as chainIdsByType,
|
|
196
|
+
L as crossChainAccessTokenNetworks,
|
|
197
|
+
R as getNonLocalhostChainId,
|
|
198
|
+
u as isLocalNetwork,
|
|
199
|
+
x as isOptimismBedrockLike,
|
|
200
|
+
y as isOptimismEcotoneLike,
|
|
201
|
+
O as isOptimismLike,
|
|
202
|
+
r as localhostNetwork,
|
|
203
|
+
e as networkRegistry
|
|
204
|
+
};
|
package/common29.mjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "./common28.mjs";
|
|
2
|
+
import "./common157.mjs";
|
|
3
|
+
import { slippageLevels as A } from "./common163.mjs";
|
|
4
|
+
import "./common164.mjs";
|
|
5
|
+
import "./common168.mjs";
|
|
6
|
+
import { isDevelopment as m } from "./common33.mjs";
|
|
7
|
+
import "./common30.mjs";
|
|
8
|
+
import "./common31.mjs";
|
|
9
|
+
import "./common35.mjs";
|
|
10
|
+
import "./common36.mjs";
|
|
11
|
+
import "./common41.mjs";
|
|
12
|
+
import "./common42.mjs";
|
|
13
|
+
import "ethers";
|
|
14
|
+
import "circomlibjs";
|
|
15
|
+
import { absBigInt as s } from "./common114.mjs";
|
|
16
|
+
import "./common51.mjs";
|
|
17
|
+
import "axios";
|
|
18
|
+
import "./common50.mjs";
|
|
19
|
+
import "./common139.mjs";
|
|
20
|
+
import "./common191.mjs";
|
|
21
|
+
import "./common117.mjs";
|
|
22
|
+
import "./common72.mjs";
|
|
23
|
+
import "./common121.mjs";
|
|
24
|
+
import "./common129.mjs";
|
|
25
|
+
import "./common77.mjs";
|
|
26
|
+
import "libsodium-wrappers";
|
|
27
|
+
const c = 8n, u = 3n, a = (t) => t ? c : u, i = (t, o = !1) => {
|
|
28
|
+
const e = s(t);
|
|
29
|
+
return a(o) * e / 10000n;
|
|
30
|
+
}, g = (t, o) => {
|
|
31
|
+
const e = s(t), n = A[o];
|
|
32
|
+
return BigInt(Math.round(n * 100)) * e / 10000n;
|
|
33
|
+
}, f = (t, o = !1) => {
|
|
34
|
+
const e = s(t), n = i(e, o);
|
|
35
|
+
return e - n;
|
|
36
|
+
}, q = (t, o = !1) => s(t) * 10000n / (10000n - a(o)), F = (t, o, e = !1) => {
|
|
37
|
+
const n = s(t), r = s(o), p = f(n, e) - r;
|
|
38
|
+
return console.log("flatFee", { flatFeesAbs: r, afterFlatFee: p, totalFee: o + i(n, e) }), p;
|
|
39
|
+
}, b = (t, o) => {
|
|
40
|
+
const e = s(t), n = g(e, o);
|
|
41
|
+
return e - n;
|
|
42
|
+
}, z = (t, o, e, n = !1) => {
|
|
43
|
+
const r = s(t), p = s(o), l = b(r, e);
|
|
44
|
+
return F(l, p, n);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
u as HINKAL_EXTERNAL_ACTION_FEE,
|
|
48
|
+
c as HINKAL_UNIVERSAL_FEE,
|
|
49
|
+
F as getAmountAfterRelayAndFlatFees,
|
|
50
|
+
z as getAmountAfterRelayAndFlatFeesAndSlippage,
|
|
51
|
+
f as getAmountAfterRelayFee,
|
|
52
|
+
b as getAmountAfterSlippage,
|
|
53
|
+
q as getAmountWithoutFee,
|
|
54
|
+
a as getHinkalFeeRateInBeeps,
|
|
55
|
+
i as getRelayFee,
|
|
56
|
+
g as getSlippageFee
|
|
57
|
+
};
|
package/common3.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import o from "axios";
|
|
2
|
+
import { coingeckoPriceUrl as c, proHeader as t, COINGECKO_API_KEY as i, coingeckoPriceUrl2 as a, coingeckoTokenListUrl as s } from "./common35.mjs";
|
|
3
|
+
async function u(e) {
|
|
4
|
+
return (await o.get(c(e), {
|
|
5
|
+
headers: { [t]: i || "" }
|
|
6
|
+
})).data[e];
|
|
7
|
+
}
|
|
8
|
+
async function d(e, n) {
|
|
9
|
+
const r = e.toLowerCase();
|
|
10
|
+
return (await o.get(a(r, n), {
|
|
11
|
+
headers: { [t]: i || "" }
|
|
12
|
+
})).data[e];
|
|
13
|
+
}
|
|
14
|
+
async function C(e) {
|
|
15
|
+
return (await o.get(c(e), {
|
|
16
|
+
headers: { [t]: i || "" }
|
|
17
|
+
})).data;
|
|
18
|
+
}
|
|
19
|
+
async function f() {
|
|
20
|
+
return await o.get(s);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
u as getCoingeckoPrice,
|
|
24
|
+
d as getCoingeckoPrice2,
|
|
25
|
+
C as getCoingeckoPrices,
|
|
26
|
+
f as getCoingeckoTokenList
|
|
27
|
+
};
|
package/common30.mjs
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { ethers as t, utils as c } from "ethers";
|
|
2
|
+
import { abi as u } from "./common87.mjs";
|
|
3
|
+
import { abi as b } from "./common89.mjs";
|
|
4
|
+
import { abi as p } from "./common90.mjs";
|
|
5
|
+
import { abi as m } from "./common92.mjs";
|
|
6
|
+
import { abi as A } from "./common93.mjs";
|
|
7
|
+
import { abi as f } from "./common94.mjs";
|
|
8
|
+
import C from "./common102.mjs";
|
|
9
|
+
import k from "./common103.mjs";
|
|
10
|
+
import I from "./common104.mjs";
|
|
11
|
+
import v from "./common105.mjs";
|
|
12
|
+
import x from "./common106.mjs";
|
|
13
|
+
import w from "./common107.mjs";
|
|
14
|
+
import { abi as h } from "./common192.mjs";
|
|
15
|
+
import { abi as B } from "./common193.mjs";
|
|
16
|
+
import { abi as P } from "./common194.mjs";
|
|
17
|
+
import { abi as S } from "./common195.mjs";
|
|
18
|
+
import { abi as W } from "./common196.mjs";
|
|
19
|
+
import { abi as E } from "./common197.mjs";
|
|
20
|
+
import { abi as L } from "./common198.mjs";
|
|
21
|
+
import { abi as T } from "./common199.mjs";
|
|
22
|
+
import { abi as g } from "./common200.mjs";
|
|
23
|
+
import { abi as y } from "./common201.mjs";
|
|
24
|
+
import { abi as $ } from "./common202.mjs";
|
|
25
|
+
import { abi as V } from "./common203.mjs";
|
|
26
|
+
import { networkRegistry as H, getNonLocalhostChainId as _ } from "./common28.mjs";
|
|
27
|
+
import "./common157.mjs";
|
|
28
|
+
import { ContractType as a } from "./common158.mjs";
|
|
29
|
+
import "./common164.mjs";
|
|
30
|
+
import "./common168.mjs";
|
|
31
|
+
import { lidoWstEthContractAddress as M, lidoStEthContractAddress as R, lidoWithdrawalQueueERC721Address as N, poLidoNftAddress as O, lidoStMaticAddress as Q, lidoStakeManagerAddress as U } from "./common40.mjs";
|
|
32
|
+
const G = {
|
|
33
|
+
abi: f
|
|
34
|
+
}, F = {
|
|
35
|
+
abi: $
|
|
36
|
+
}, Z = {
|
|
37
|
+
abi: V
|
|
38
|
+
}, Y = {
|
|
39
|
+
abi: A
|
|
40
|
+
}, J = new t.utils.Interface([
|
|
41
|
+
"function coins(int128 arg0) external view returns (address)"
|
|
42
|
+
]), j = new t.utils.Interface([
|
|
43
|
+
"function balances(int128 arg0) external view returns (uint256)"
|
|
44
|
+
]), n = (e) => new t.utils.Interface([
|
|
45
|
+
`function calc_token_amount(uint256[${e || ""}] _amounts, bool is_deposit) external view returns (uint256)`,
|
|
46
|
+
"function coins(uint256 arg0) external view returns (address)",
|
|
47
|
+
"function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
|
|
48
|
+
"function fee() external view returns (uint256)"
|
|
49
|
+
]), r = (e) => new t.utils.Interface([
|
|
50
|
+
`function calc_token_amount(uint256[${e}] _amounts) external view returns (uint256)`,
|
|
51
|
+
"function coins(uint256 arg0) external view returns (address)",
|
|
52
|
+
"function calc_withdraw_one_coin(uint256 token_amount, uint256 i) external view returns (uint256)",
|
|
53
|
+
"function fee() external view returns (uint256)"
|
|
54
|
+
]), q = new t.utils.Interface([
|
|
55
|
+
"function claimable_tokens(address addr) external view returns (uint256)"
|
|
56
|
+
]), z = new t.utils.Interface([
|
|
57
|
+
"function lockedSupply() external view returns (uint256)"
|
|
58
|
+
]), K = new t.utils.Interface([
|
|
59
|
+
"function checkpoint(uint256 lpBalance, uint256 prevTimeStamp, uint256 currentTimeStamp) external returns (uint256, uint256[] memory)",
|
|
60
|
+
"function claimable(uint256 lpBalance, uint256 prevTimeStamp) external returns (uint256, uint256[] memory)"
|
|
61
|
+
]), ge = {
|
|
62
|
+
[a.HinkalContract]: (e) => ({
|
|
63
|
+
abi: e.hinkalABI,
|
|
64
|
+
address: e.hinkalAddress
|
|
65
|
+
}),
|
|
66
|
+
[a.HinkalHelperContract]: (e) => ({
|
|
67
|
+
abi: e.hinkalHelperABI,
|
|
68
|
+
address: e.hinkalHelperAddress
|
|
69
|
+
}),
|
|
70
|
+
[a.CrossChainAccessTokenContract]: (e) => ({
|
|
71
|
+
abi: e.crossChainAccessTokenABI,
|
|
72
|
+
address: e.crossChainAccessTokenAddress
|
|
73
|
+
}),
|
|
74
|
+
[a.MerkleTreeContract]: () => ({
|
|
75
|
+
abi: new t.utils.Interface(["function getRootHash() public view returns (uint256)"])
|
|
76
|
+
}),
|
|
77
|
+
[a.UniswapV3FactoryContract]: () => ({
|
|
78
|
+
abi: G.abi
|
|
79
|
+
}),
|
|
80
|
+
[a.UniswapV3PoolContract]: () => ({
|
|
81
|
+
abi: F.abi
|
|
82
|
+
}),
|
|
83
|
+
[a.UniswapV2PoolContract]: () => ({
|
|
84
|
+
abi: Z.abi
|
|
85
|
+
}),
|
|
86
|
+
[a.UniswapV3QuoterContract]: () => ({
|
|
87
|
+
abi: Y.abi
|
|
88
|
+
}),
|
|
89
|
+
[a.ERC20Contract]: () => ({
|
|
90
|
+
abi: m
|
|
91
|
+
}),
|
|
92
|
+
[a.WATokenContract]: (e) => ({
|
|
93
|
+
abi: e.waTokenABI
|
|
94
|
+
}),
|
|
95
|
+
[a.ContractWithNonces]: () => ({
|
|
96
|
+
abi: new t.utils.Interface(["function nonces(address owner) external view returns (uint)"])
|
|
97
|
+
}),
|
|
98
|
+
[a.PermitterContract]: (e) => ({
|
|
99
|
+
abi: e.permitterABI,
|
|
100
|
+
address: e.permitterAddress
|
|
101
|
+
}),
|
|
102
|
+
[a.CurveExternalAction]: (e) => ({
|
|
103
|
+
address: e.curveExternalActionInstanceAddress,
|
|
104
|
+
abi: e.curveExternalActionABI
|
|
105
|
+
}),
|
|
106
|
+
[a.WrappedStakedCurveLp]: (e) => ({
|
|
107
|
+
abi: e.wrappedStakedCurveLpABI
|
|
108
|
+
}),
|
|
109
|
+
[a.WrappedStakedRewardsCurveLp]: () => ({
|
|
110
|
+
abi: K
|
|
111
|
+
}),
|
|
112
|
+
[a.CurveWrappedMainPool]: () => ({
|
|
113
|
+
abi: p
|
|
114
|
+
}),
|
|
115
|
+
[a.CurveReadingWrapper]: () => ({
|
|
116
|
+
abi: b
|
|
117
|
+
}),
|
|
118
|
+
// we use curveReadingWrapper has withdraw one coin as uint whereas curveWrappedMainPool has it as int
|
|
119
|
+
[a.CurvePoolLPTokenAmountCalculator2]: () => ({
|
|
120
|
+
abi: n(2)
|
|
121
|
+
}),
|
|
122
|
+
[a.CurvePoolLPTokenAmountCalculator3]: () => ({
|
|
123
|
+
abi: n(3)
|
|
124
|
+
}),
|
|
125
|
+
[a.CurvePoolLPTokenAmountCalculator4]: () => ({
|
|
126
|
+
abi: n(4)
|
|
127
|
+
}),
|
|
128
|
+
[a.CurvePoolLPTokenAmountCalculatorDynamic]: () => ({
|
|
129
|
+
abi: n()
|
|
130
|
+
}),
|
|
131
|
+
[a.CurvePoolLPTokenAmountCalculator2OneArg]: () => ({
|
|
132
|
+
abi: r(2)
|
|
133
|
+
}),
|
|
134
|
+
[a.CurvePoolLPTokenAmountCalculator3OneArg]: () => ({
|
|
135
|
+
abi: r(3)
|
|
136
|
+
}),
|
|
137
|
+
[a.CurvePoolLPTokenAmountCalculator4OneArg]: () => ({
|
|
138
|
+
abi: r(4)
|
|
139
|
+
}),
|
|
140
|
+
[a.CurvePoolWithIntCoins]: () => ({ abi: J }),
|
|
141
|
+
[a.CurvePoolWithIntBalances]: () => ({ abi: j }),
|
|
142
|
+
[a.OneInchExternalActionContract]: (e) => ({
|
|
143
|
+
address: e.oneInchExternalActionInstanceAddress
|
|
144
|
+
}),
|
|
145
|
+
[a.CurveGauge]: () => ({
|
|
146
|
+
abi: q
|
|
147
|
+
}),
|
|
148
|
+
[a.CurveZaps]: () => ({
|
|
149
|
+
abi: T
|
|
150
|
+
}),
|
|
151
|
+
[a.ConvexExternalAction]: (e) => ({
|
|
152
|
+
address: e.convexExternalActionInstanceAddress,
|
|
153
|
+
abi: e.convexExternalActionABI
|
|
154
|
+
}),
|
|
155
|
+
[a.WrappedStakedConvexLp]: (e) => ({ abi: e.wrappedStakedConvexLpABI }),
|
|
156
|
+
[a.ConvexBooster]: () => ({
|
|
157
|
+
abi: W
|
|
158
|
+
}),
|
|
159
|
+
[a.ConvexBoosterMainnet]: () => ({
|
|
160
|
+
abi: E
|
|
161
|
+
}),
|
|
162
|
+
[a.ConvexRewardPool]: () => ({
|
|
163
|
+
abi: L
|
|
164
|
+
}),
|
|
165
|
+
[a.ConvexCvxLocker]: () => ({
|
|
166
|
+
abi: z
|
|
167
|
+
}),
|
|
168
|
+
[a.ConvexStakePool]: () => ({
|
|
169
|
+
abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
|
|
170
|
+
}),
|
|
171
|
+
[a.ConvexCvxCRVWrapper]: () => ({
|
|
172
|
+
abi: new t.utils.Interface(["function totalSupply() external view returns (uint256)"])
|
|
173
|
+
}),
|
|
174
|
+
[a.ConvexCxvCrvUtillities]: () => ({
|
|
175
|
+
abi: g
|
|
176
|
+
}),
|
|
177
|
+
[a.BeefyVault]: () => ({
|
|
178
|
+
abi: u
|
|
179
|
+
}),
|
|
180
|
+
[a.BeefyZap]: () => ({
|
|
181
|
+
abi: P
|
|
182
|
+
}),
|
|
183
|
+
[a.BeefyRouter]: () => ({
|
|
184
|
+
abi: h
|
|
185
|
+
}),
|
|
186
|
+
[a.BeefyZapOneInch]: () => ({
|
|
187
|
+
abi: S
|
|
188
|
+
}),
|
|
189
|
+
[a.BeefyStrategy]: () => ({
|
|
190
|
+
abi: B
|
|
191
|
+
}),
|
|
192
|
+
[a.BeefyExternalAction]: (e) => ({
|
|
193
|
+
abi: e.BeefyExternalActionABI,
|
|
194
|
+
address: e.beefyExternalActionInstanceAddress
|
|
195
|
+
}),
|
|
196
|
+
[a.BeefyStakeExternalAction]: (e) => ({
|
|
197
|
+
abi: e.BeefyStakeExternalActionABI,
|
|
198
|
+
address: e.beefyStakeExternalActionInstanceAddress
|
|
199
|
+
}),
|
|
200
|
+
[a.WrappedStakedBeefyLp]: (e) => ({
|
|
201
|
+
abi: e.WrappedStakedBeefyLpABI
|
|
202
|
+
}),
|
|
203
|
+
[a.LidoWstEther]: () => ({
|
|
204
|
+
abi: x,
|
|
205
|
+
address: M
|
|
206
|
+
}),
|
|
207
|
+
[a.LidoStEther]: () => ({
|
|
208
|
+
abi: C,
|
|
209
|
+
address: R
|
|
210
|
+
}),
|
|
211
|
+
[a.LidoWithdrawalQueueERC721]: () => ({
|
|
212
|
+
abi: I,
|
|
213
|
+
address: N
|
|
214
|
+
}),
|
|
215
|
+
[a.PendleGeneralExternalAction]: (e) => ({
|
|
216
|
+
abi: e.pendleExternalActionABI,
|
|
217
|
+
address: e.pendleExternalActionInstanceAddress
|
|
218
|
+
}),
|
|
219
|
+
[a.WstYtToken]: (e) => ({
|
|
220
|
+
abi: e.WstYtTokenABI
|
|
221
|
+
}),
|
|
222
|
+
[a.WstPendleLPToken]: (e) => ({
|
|
223
|
+
abi: e.WstPendleLPABI
|
|
224
|
+
}),
|
|
225
|
+
[a.PendleRouter]: (e) => ({
|
|
226
|
+
abi: y,
|
|
227
|
+
address: e.pendleExternalActionInstanceAddress
|
|
228
|
+
}),
|
|
229
|
+
[a.PoLidoNFT]: () => ({
|
|
230
|
+
abi: v,
|
|
231
|
+
address: O
|
|
232
|
+
}),
|
|
233
|
+
[a.LidoStMatic]: () => ({
|
|
234
|
+
abi: k,
|
|
235
|
+
address: Q
|
|
236
|
+
}),
|
|
237
|
+
[a.LidoStakeManager]: () => ({
|
|
238
|
+
abi: w,
|
|
239
|
+
address: U
|
|
240
|
+
}),
|
|
241
|
+
[a.VolatileVault]: (e) => ({
|
|
242
|
+
abi: e.VolatileVaultABI,
|
|
243
|
+
address: e.volatileVaultInstanceAddress
|
|
244
|
+
}),
|
|
245
|
+
[a.VolatileTokenAction]: (e) => ({
|
|
246
|
+
abi: e.VolatileTokenActionABI,
|
|
247
|
+
address: e.volatileTokenActionInstanceAddress
|
|
248
|
+
}),
|
|
249
|
+
[a.HinkalWrapper]: (e) => ({
|
|
250
|
+
abi: e.HinkalWrapperABI,
|
|
251
|
+
address: e.hinkalWrapperAddress
|
|
252
|
+
}),
|
|
253
|
+
[a.HinkalWrapper2]: (e) => ({
|
|
254
|
+
// return old one if new one isn't available
|
|
255
|
+
abi: e.HinkalWrapper2ABI ?? e.HinkalWrapperABI,
|
|
256
|
+
address: e.hinkalWrapper2Address ?? e.hinkalWrapperAddress
|
|
257
|
+
}),
|
|
258
|
+
[a.HinkalStakeExternalAction]: (e) => ({
|
|
259
|
+
abi: e.HinkalStakeExternalActionABI,
|
|
260
|
+
address: e.hinkalStakeExternalActionAddress
|
|
261
|
+
}),
|
|
262
|
+
[a.HToken]: (e) => ({
|
|
263
|
+
abi: e.HTokenABI
|
|
264
|
+
})
|
|
265
|
+
}, ye = (e) => {
|
|
266
|
+
const { contractData: o } = H[_(e)], s = JSON.stringify(o.hinkalABI), i = new c.Interface(s), l = i.getSighash("transact"), d = i.getSighash("transactWithExternalAction");
|
|
267
|
+
return { hinkalInterface: i, transactMethodId: l, transactWithExternalActionMethodId: d, NewCommitment: "NewCommitment", NewCommitmentTopic: "0xc2e3bd2d00c3cf4d09298e5a0cfd317cf7a6e5bf15d467cfa805a91e1a4a221d" };
|
|
268
|
+
};
|
|
269
|
+
export {
|
|
270
|
+
ge as contractMetadataMapping,
|
|
271
|
+
ye as getHinkalParameters,
|
|
272
|
+
Z as uniswapV2PoolData,
|
|
273
|
+
G as uniswapV3FactoryData,
|
|
274
|
+
F as uniswapV3PoolData,
|
|
275
|
+
Y as uniswapV3QuoterData
|
|
276
|
+
};
|
package/common31.mjs
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { zkMeKycHandler as r } from "./common204.mjs";
|
|
2
|
+
import { authentoKycHandler as s } from "./common205.mjs";
|
|
3
|
+
import { chainIds as o } from "./common28.mjs";
|
|
4
|
+
const u = "https://onboard.aiprise.com", l = "https://onboard-sandbox.aiprise.com";
|
|
5
|
+
var i = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e))(i || {});
|
|
6
|
+
const n = {
|
|
7
|
+
0: {
|
|
8
|
+
id: 0,
|
|
9
|
+
shortName: "AiPriseKyc",
|
|
10
|
+
fullName: " AiPrice Kyc",
|
|
11
|
+
apiURL: "",
|
|
12
|
+
onboardURL: "",
|
|
13
|
+
supportedChainIds: [],
|
|
14
|
+
supportsAllChains: !0
|
|
15
|
+
},
|
|
16
|
+
1: {
|
|
17
|
+
id: 1,
|
|
18
|
+
shortName: "AiPriseKyb",
|
|
19
|
+
fullName: " AiPrice Kyb",
|
|
20
|
+
apiURL: "",
|
|
21
|
+
onboardURL: "",
|
|
22
|
+
supportedChainIds: [],
|
|
23
|
+
supportsAllChains: !0
|
|
24
|
+
},
|
|
25
|
+
2: {
|
|
26
|
+
id: 2,
|
|
27
|
+
shortName: "Bab",
|
|
28
|
+
fullName: "Bab Token",
|
|
29
|
+
apiURL: "BabPassport",
|
|
30
|
+
onboardURL: "https://www.binance.com/en/BABT",
|
|
31
|
+
supportedChainIds: [o.bnbMainnet]
|
|
32
|
+
},
|
|
33
|
+
3: {
|
|
34
|
+
id: 3,
|
|
35
|
+
shortName: "Galxe",
|
|
36
|
+
fullName: "Galxe Passport",
|
|
37
|
+
apiURL: "GalxePassport",
|
|
38
|
+
onboardURL: "https://galxe.com/passport",
|
|
39
|
+
supportedChainIds: [o.bnbMainnet]
|
|
40
|
+
},
|
|
41
|
+
// [Passports.QuadrataPassport]: {
|
|
42
|
+
// id: Passports.QuadrataPassport,
|
|
43
|
+
// shortName: 'Quadrata',
|
|
44
|
+
// fullName: 'Quadrata Passport',
|
|
45
|
+
// apiURL: 'QuadrataPassport',
|
|
46
|
+
// onboardURL: 'https://quadrata.com/onboard',
|
|
47
|
+
// supportedChainIds: [
|
|
48
|
+
// chainIds.ethMainnet,
|
|
49
|
+
// chainIds.arbMainnet,
|
|
50
|
+
// chainIds.optimism,
|
|
51
|
+
// chainIds.polygon,
|
|
52
|
+
// chainIds.avalanche,
|
|
53
|
+
// ],
|
|
54
|
+
// },
|
|
55
|
+
4: {
|
|
56
|
+
id: 4,
|
|
57
|
+
shortName: "zkMe",
|
|
58
|
+
fullName: "zkMe Passport",
|
|
59
|
+
apiURL: "ZkMePassport",
|
|
60
|
+
onboardURL: "https://widget.zk.me/",
|
|
61
|
+
customHandleKYC: (e, a, t) => r(e, a, t),
|
|
62
|
+
supportedChainIds: [o.polygon],
|
|
63
|
+
params: {
|
|
64
|
+
merchId: "M2023090671844574053042402155408",
|
|
65
|
+
zkChainId: o.polygon
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
5: {
|
|
69
|
+
id: 5,
|
|
70
|
+
shortName: "coinbase",
|
|
71
|
+
fullName: "coinbase Passport",
|
|
72
|
+
apiURL: "coinbasePassport",
|
|
73
|
+
onboardURL: "https://www.coinbase.com/onchain-verify",
|
|
74
|
+
supportedChainIds: [],
|
|
75
|
+
supportsAllChains: !0
|
|
76
|
+
},
|
|
77
|
+
6: {
|
|
78
|
+
id: 6,
|
|
79
|
+
shortName: "Authento",
|
|
80
|
+
fullName: "Authento Passport",
|
|
81
|
+
apiURL: "AuthentoPassport",
|
|
82
|
+
onboardURL: "https://app.authento.io/",
|
|
83
|
+
customHandleKYC: (e, a, t) => s(e, a, t),
|
|
84
|
+
supportedChainIds: [],
|
|
85
|
+
supportsAllChains: !0
|
|
86
|
+
},
|
|
87
|
+
7: {
|
|
88
|
+
id: 7,
|
|
89
|
+
shortName: "Authento",
|
|
90
|
+
fullName: "Authento Passport",
|
|
91
|
+
apiURL: "AuthentoPassport",
|
|
92
|
+
onboardURL: "https://app.authento.io/",
|
|
93
|
+
customHandleKYC: (e, a, t) => s(e, a, t),
|
|
94
|
+
supportedChainIds: [],
|
|
95
|
+
supportsAllChains: !0
|
|
96
|
+
}
|
|
97
|
+
}, c = Object.values(n).filter((e, a) => e.onboardURL?.length > 0 && Object.values(n).indexOf(e) === a).map((e) => e.onboardURL), m = "dbda56e5-31f5-4a37-a895-d4adca6c53fd", b = "96050d8d-23c9-4908-b285-2e6dec4c020b", A = {
|
|
98
|
+
verifyMessageText: "Sign this message to prove your ownership of this address and proceed with the identity verification process.",
|
|
99
|
+
domainName: "Hinkal",
|
|
100
|
+
type: {
|
|
101
|
+
Message: [
|
|
102
|
+
{ name: "content", type: "string" },
|
|
103
|
+
{ name: "for", type: "string" },
|
|
104
|
+
{ name: "timestamp", type: "string" },
|
|
105
|
+
{ name: "nonce", type: "string" }
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
b as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
111
|
+
m as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
112
|
+
A as AUTHENTO,
|
|
113
|
+
i as Passports,
|
|
114
|
+
n as SupportedPassports,
|
|
115
|
+
u as aipriseBaseOnboardingProductionUrl,
|
|
116
|
+
l as aipriseBaseOnboardingSandboxUrl,
|
|
117
|
+
c as supportedPassportLinks
|
|
118
|
+
};
|