@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/common40.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const t = "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1", d = "0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908", e = "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0", s = "0xae7ab96520de3a18e5e111b5eaab095312d7fe84", a = "0x60a91E2B7A1568f0848f3D43353C453730082E46", o = "0x9ee91f9f426fa633d227f7a9b000e28b9dfd8599", c = "ETH", f = "MATIC", b = "wstETH", n = "stMATIC";
|
|
2
|
+
export {
|
|
3
|
+
c as ethSymbol,
|
|
4
|
+
s as lidoStEthContractAddress,
|
|
5
|
+
o as lidoStMaticAddress,
|
|
6
|
+
d as lidoStakeManagerAddress,
|
|
7
|
+
t as lidoWithdrawalQueueERC721Address,
|
|
8
|
+
e as lidoWstEthContractAddress,
|
|
9
|
+
f as maticSymbol,
|
|
10
|
+
a as poLidoNftAddress,
|
|
11
|
+
n as stMaticSymbol,
|
|
12
|
+
b as wstEthSymbol
|
|
13
|
+
};
|
package/common41.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./common157.mjs";
|
|
2
|
+
import "./common164.mjs";
|
|
3
|
+
import { RafflePrizeType as t } from "./common166.mjs";
|
|
4
|
+
import "./common168.mjs";
|
|
5
|
+
const i = ["USDC"], a = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program", n = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points", l = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program", p = 3, k = 9, m = {
|
|
6
|
+
10: 2,
|
|
7
|
+
// if in the top 10
|
|
8
|
+
50: 1.6,
|
|
9
|
+
// if in top 50 but not in top 10
|
|
10
|
+
100: 1.2
|
|
11
|
+
// and so on
|
|
12
|
+
}, E = 7, c = 1e3, S = {
|
|
13
|
+
[t.Silver]: 1e4,
|
|
14
|
+
[t.Gold]: 2e4
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as ACCESS_TOKEN_MINTING_POINTS,
|
|
18
|
+
E as CERTIFICATION_DISABLE_WEEK,
|
|
19
|
+
i as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
20
|
+
S as RafflePrizePoints,
|
|
21
|
+
m as boostAmounts,
|
|
22
|
+
l as lpLink,
|
|
23
|
+
p as lpProgramStartWeek,
|
|
24
|
+
n as pointsLink,
|
|
25
|
+
k as raffleProgramStartWeek,
|
|
26
|
+
a as referralLink
|
|
27
|
+
};
|
package/common42.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { chainIds as a } from "./common28.mjs";
|
|
2
|
+
const o = {
|
|
3
|
+
[a.ethMainnet]: 3,
|
|
4
|
+
[a.bnbMainnet]: 10,
|
|
5
|
+
[a.polygon]: 32,
|
|
6
|
+
[a.avalanche]: 1,
|
|
7
|
+
[a.arbMainnet]: 1,
|
|
8
|
+
[a.optimism]: 1,
|
|
9
|
+
[a.base]: 1,
|
|
10
|
+
[a.blast]: 1,
|
|
11
|
+
[a.localhost]: 1
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
o as blockReorgDepth
|
|
15
|
+
};
|
package/common43.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { chainIds as t } from "./common28.mjs";
|
|
2
|
+
const o = [
|
|
3
|
+
{
|
|
4
|
+
name: "silo-weeth-eth",
|
|
5
|
+
beefyBoost: "0xC0dD9F05511Eec7f3C9C755816E4A25caECde47a",
|
|
6
|
+
mooToken: "0x0E5F3a47122901D3eE047d2C7e1B36b419Ede5FE"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "curve-veth-boost",
|
|
10
|
+
beefyBoost: "0x9Db900bFD1D13112dE2239418eb3D8673B6F1878",
|
|
11
|
+
mooToken: "0xAE0bFfc3110e69DA8993F11C1CBd9a6eA3d16daF"
|
|
12
|
+
}
|
|
13
|
+
], n = (e) => {
|
|
14
|
+
switch (e) {
|
|
15
|
+
case t.ethMainnet:
|
|
16
|
+
return o;
|
|
17
|
+
default:
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
o as ethBeefyRegistry,
|
|
23
|
+
n as getBeefyRegistryWithChainId
|
|
24
|
+
};
|
package/common44.mjs
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { caseInsensitiveEqual as r } from "./common134.mjs";
|
|
2
|
+
import { chainIds as c, getNonLocalhostChainId as C } from "./common28.mjs";
|
|
3
|
+
const s = [
|
|
4
|
+
{
|
|
5
|
+
name: "Pendle-WEETH-JUNE2024",
|
|
6
|
+
// ether.fi eEth Pool
|
|
7
|
+
SY: "0xAC0047886a985071476a1186bE89222659970d65",
|
|
8
|
+
YT: "0xfb35Fd0095dD1096b1Ca49AD44d8C5812A201677",
|
|
9
|
+
PT: "0xc69Ad9baB1dEE23F4605a82b3354F8E40d1E5966",
|
|
10
|
+
market: "0xF32e58F92e60f4b0A37A69b95d642A471365EAe8",
|
|
11
|
+
expiry: 1719446400,
|
|
12
|
+
decimals: 18,
|
|
13
|
+
version: 1,
|
|
14
|
+
rewardTokens: []
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Pendle-RSETH-KELP-JUNE2024",
|
|
18
|
+
// Kelp Dao
|
|
19
|
+
SY: "0x730A5E2AcEbccAA5e9095723B3CB862739DA793c",
|
|
20
|
+
YT: "0x0ED3A1D45DfdCf85BCc6C7BAFDC0170A357B974C",
|
|
21
|
+
PT: "0xB05cABCd99cf9a73b19805edefC5f67CA5d1895E",
|
|
22
|
+
market: "0x4f43c77872Db6BA177c270986CD30c3381AF37Ee",
|
|
23
|
+
expiry: 1719446400,
|
|
24
|
+
decimals: 18,
|
|
25
|
+
version: 1,
|
|
26
|
+
rewardTokens: []
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "Pendle-PUFETH-JUNE2024",
|
|
30
|
+
// Puffer
|
|
31
|
+
SY: "0x253008ba4aE2f3E6488DC998a5321D4EB1a0c905",
|
|
32
|
+
YT: "0x391B570e81e354a85a496952b66ADc831715f54f",
|
|
33
|
+
PT: "0xC58aa33Ce619c7f7Ac4929DF357D0Ef762edbD23",
|
|
34
|
+
market: "0x17BE998a578fD97687b24E83954FEc86Dc20c979",
|
|
35
|
+
expiry: 1719446400,
|
|
36
|
+
decimals: 18,
|
|
37
|
+
version: 1,
|
|
38
|
+
rewardTokens: []
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "Pendle-ZIRCUIT-EZETH-JUNE2024",
|
|
42
|
+
// Zircuit ezEth (Renzo)
|
|
43
|
+
SY: "0x7a493be5c2ce014cd049bf178a1ac0db1b434744",
|
|
44
|
+
YT: "0x98601E27d41ccff643da9d981dc708cf9eF1F150",
|
|
45
|
+
PT: "0xDDFD5e912C1949B4bDb12579002c44B7A83F9E88",
|
|
46
|
+
market: "0xd7E0809998693fD87E81D51dE1619fd0EE658031",
|
|
47
|
+
expiry: 1719446400,
|
|
48
|
+
decimals: 18,
|
|
49
|
+
version: 1,
|
|
50
|
+
rewardTokens: []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "Pendle-ZIRCUIT-EETH-JUN2024",
|
|
54
|
+
// Zircuit eEth (ether.fi)
|
|
55
|
+
SY: "0xD7DF7E085214743530afF339aFC420c7c720BFa7",
|
|
56
|
+
YT: "0x7C2D26182adeEf96976035986cF56474feC03bDa",
|
|
57
|
+
PT: "0x4AE5411F3863CdB640309e84CEDf4B08B8b33FfF",
|
|
58
|
+
market: "0xe26D7f9409581f606242300fbFE63f56789F2169",
|
|
59
|
+
expiry: 1719446400,
|
|
60
|
+
decimals: 18,
|
|
61
|
+
version: 1,
|
|
62
|
+
rewardTokens: []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "Pendle-ZIRCUIT-RSETH-JUN2024",
|
|
66
|
+
// Zircuit Kelp Dao
|
|
67
|
+
SY: "0x34349c5569e7b846c3558961552d2202760a9789",
|
|
68
|
+
YT: "0x029aad400f6092dc735a65be95102efcc2fe64bf",
|
|
69
|
+
PT: "0x094be6bd31d7b860f7d2c1f280fd09f0463d7e67",
|
|
70
|
+
market: "0x445d25a1c31445fb29e65d12da8e0eea38174176",
|
|
71
|
+
expiry: 1719446400,
|
|
72
|
+
decimals: 18,
|
|
73
|
+
version: 1,
|
|
74
|
+
rewardTokens: []
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "Pendle-SUSDE-MAINNET-SEP2024",
|
|
78
|
+
SY: "0x4139cDC6345aFFbaC0692b43bed4D059Df3e6d65",
|
|
79
|
+
YT: "0xdc02b77a3986da62C7A78FED73949C9767850809",
|
|
80
|
+
PT: "0x6c9f097e044506712B58EAC670c9a5fd4BCceF13",
|
|
81
|
+
market: "0xd1D7D99764f8a52Aff007b7831cc02748b2013b5",
|
|
82
|
+
expiry: 1727308800,
|
|
83
|
+
decimals: 18,
|
|
84
|
+
version: 1,
|
|
85
|
+
rewardTokens: []
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "Pendle-WEETH-DEC2024",
|
|
89
|
+
SY: "0xAC0047886a985071476a1186bE89222659970d65",
|
|
90
|
+
YT: "0x129e6B5DBC0Ecc12F9e486C5BC9cDF1a6A80bc6A",
|
|
91
|
+
PT: "0x6ee2b5E19ECBa773a352E5B21415Dc419A700d1d",
|
|
92
|
+
market: "0x7d372819240D14fB477f17b964f95F33BeB4c704",
|
|
93
|
+
expiry: 1735171200,
|
|
94
|
+
decimals: 18,
|
|
95
|
+
version: 1,
|
|
96
|
+
rewardTokens: []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "Pendle-EZETH-DEC2024",
|
|
100
|
+
SY: "0x22E12A50e3ca49FB183074235cB1db84Fe4C716D",
|
|
101
|
+
YT: "0x7749F5Ed1e356EDc63D469c2fcaC9adEB56d1C2b",
|
|
102
|
+
PT: "0xf7906F274c174A52d444175729E3fa98f9bde285",
|
|
103
|
+
market: "0xD8F12bCDE578c653014F27379a6114F67F0e445f",
|
|
104
|
+
expiry: 1735171200,
|
|
105
|
+
decimals: 18,
|
|
106
|
+
version: 1,
|
|
107
|
+
rewardTokens: []
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "Pendle-PUFETH-MAINNET-SEP2024",
|
|
111
|
+
SY: "0x253008ba4aE2f3E6488DC998a5321D4EB1a0c905",
|
|
112
|
+
YT: "0x1a65eB80a2ac3ea6E41D456DdD6E9cC5728BEf7C",
|
|
113
|
+
PT: "0xd4e75971eAF78a8d93D96df530f1FFf5f9F53288",
|
|
114
|
+
market: "0xA54FC268101c8b97DE19eF3141d34751a11996B2",
|
|
115
|
+
expiry: 1727308800,
|
|
116
|
+
decimals: 18,
|
|
117
|
+
version: 1,
|
|
118
|
+
rewardTokens: []
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "Pendle-WEETH-MAINNET-SEP2024",
|
|
122
|
+
SY: "0xAC0047886a985071476a1186bE89222659970d65",
|
|
123
|
+
YT: "0xA54Df645A042D24121a737dAA89a57EbF8E0b71c",
|
|
124
|
+
PT: "0x1c085195437738d73d75DC64bC5A3E098b7f93b1",
|
|
125
|
+
market: "0xC8eDd52D0502Aa8b4D5C77361D4B3D300e8fC81c",
|
|
126
|
+
expiry: 1727308800,
|
|
127
|
+
decimals: 18,
|
|
128
|
+
version: 1,
|
|
129
|
+
rewardTokens: []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "Pendle-STETH-25DEC2025",
|
|
133
|
+
SY: "0xcbC72d92b2dc8187414F6734718563898740C0BC",
|
|
134
|
+
YT: "0xf3aBC972A0f537c1119C990d422463b93227Cd83",
|
|
135
|
+
PT: "0xf99985822fb361117FCf3768D34a6353E6022F5F",
|
|
136
|
+
market: "0xC374f7eC85F8C7DE3207a10bB1978bA104bdA3B2",
|
|
137
|
+
expiry: 1766620800,
|
|
138
|
+
decimals: 18,
|
|
139
|
+
version: 1,
|
|
140
|
+
rewardTokens: []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "Pendle-ZIRCUIT-WEETH-MAINNET-AUG2024",
|
|
144
|
+
SY: "0xD7DF7E085214743530afF339aFC420c7c720BFa7",
|
|
145
|
+
YT: "0x323DA63d354c9d79DF927fd21CE5B97aDD3a50d9",
|
|
146
|
+
PT: "0x7131eD1994BA1A2a5392FE4D99e579f49F5eD48F",
|
|
147
|
+
market: "0x6c269DFc142259c52773430b3c78503CC994a93E",
|
|
148
|
+
expiry: 1724284800,
|
|
149
|
+
version: 1,
|
|
150
|
+
decimals: 18,
|
|
151
|
+
rewardTokens: []
|
|
152
|
+
}
|
|
153
|
+
], D = [
|
|
154
|
+
{
|
|
155
|
+
name: "Pendle-ANKRBNB-26JUN2025.",
|
|
156
|
+
SY: "0x58732F1C1243A0D5876a601FB8D1Ee508B21580D",
|
|
157
|
+
YT: "0x269f3E230C90C0a29140106D4cFB5860aF6F6827",
|
|
158
|
+
PT: "0x04eb6B56ff53f457c8E857ca8D4fbC8d9a531c0C",
|
|
159
|
+
market: "0xEDa1D0e1681D59dea451702963d6287b844Cb94C",
|
|
160
|
+
expiry: 1750896e3,
|
|
161
|
+
decimals: 18,
|
|
162
|
+
version: 2,
|
|
163
|
+
rewardTokens: []
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "Pendle-WBETH-DEC2024",
|
|
167
|
+
SY: "0x96F77F24b3d17166FcaF3a9E3B8330fF38B966F9",
|
|
168
|
+
YT: "0x429c77E193Ff7e6c6c3B2e1f00877B91792e87ee",
|
|
169
|
+
PT: "0x70c1138B54ba212776d3A9d29b6160C54C31cd5d",
|
|
170
|
+
market: "0x080f52A881ba96EEE2268682733C857c560e5dd4",
|
|
171
|
+
expiry: 1735171200,
|
|
172
|
+
decimals: 18,
|
|
173
|
+
version: 2,
|
|
174
|
+
rewardTokens: []
|
|
175
|
+
}
|
|
176
|
+
], x = [
|
|
177
|
+
{
|
|
178
|
+
name: "Pendle-RETH-OPTIMISM-JUNE2024",
|
|
179
|
+
SY: "0x9D6d509C0354ACA187aAC6beA7d063D3Ef68e2A0",
|
|
180
|
+
YT: "0xE8F0cf61598E0d7D20f99b978BdeFF4D4222FeB8",
|
|
181
|
+
PT: "0xAA92Ea52612fA5ee5aba5510682485c19750CB82",
|
|
182
|
+
market: "0x0C485Feb9E6fee816652Ea8f3beD2A8f59296E40",
|
|
183
|
+
expiry: 1719446400,
|
|
184
|
+
decimals: 18,
|
|
185
|
+
version: 2,
|
|
186
|
+
rewardTokens: []
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "Pendle-WSTETH-OPTIMISM-SEP2024",
|
|
190
|
+
SY: "0x96A528f4414aC3CcD21342996c93f2EcdEc24286",
|
|
191
|
+
YT: "0x1DFe41cc7F7860BA7f1076ca6d0fedD707c87A00",
|
|
192
|
+
PT: "0xF4225F061E5E01aA59DE5E615729A9180301EB07",
|
|
193
|
+
market: "0x24fB77c8C776C75F869BC65e6856AF56f57d919F",
|
|
194
|
+
expiry: 1727308800,
|
|
195
|
+
decimals: 18,
|
|
196
|
+
version: 2,
|
|
197
|
+
rewardTokens: []
|
|
198
|
+
}
|
|
199
|
+
], F = [
|
|
200
|
+
{
|
|
201
|
+
name: "Pendle-AAVE-USDC-JUNE2024",
|
|
202
|
+
SY: "0x50288c30c37FA1Ec6167a31E575EA8632645dE20",
|
|
203
|
+
YT: "0xA1c32EF8d3c4c30cB596bAb8647e11daF0FA5C94",
|
|
204
|
+
PT: "0xb72b988CAF33f3d8A6d816974fE8cAA199E5E86c",
|
|
205
|
+
market: "0x8621c587059357d6C669f72dA3Bfe1398fc0D0B5",
|
|
206
|
+
expiry: 1719446400,
|
|
207
|
+
decimals: 6,
|
|
208
|
+
version: 1,
|
|
209
|
+
rewardTokens: []
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "Pendle-HLP-JUN2024.",
|
|
213
|
+
SY: "0xF18011766Cf11D905e93ed5626838d44c7FA14B7",
|
|
214
|
+
YT: "0x9D090Ef4Aafd0ACB821113a7689d5794e50bD047",
|
|
215
|
+
PT: "0xC595c9c28D78bb347C8177dFbB820484e2D99A66",
|
|
216
|
+
market: "0x0F249f735647992572eEa231fc24b35F7B6b34e1",
|
|
217
|
+
expiry: 1719446400,
|
|
218
|
+
decimals: 18,
|
|
219
|
+
version: 2,
|
|
220
|
+
rewardTokens: []
|
|
221
|
+
}
|
|
222
|
+
], n = (e) => {
|
|
223
|
+
switch (e) {
|
|
224
|
+
case c.ethMainnet:
|
|
225
|
+
return s;
|
|
226
|
+
case c.bnbMainnet:
|
|
227
|
+
return D;
|
|
228
|
+
case c.optimism:
|
|
229
|
+
return x;
|
|
230
|
+
case c.arbMainnet:
|
|
231
|
+
return F;
|
|
232
|
+
default:
|
|
233
|
+
return [];
|
|
234
|
+
}
|
|
235
|
+
}, b = (e) => {
|
|
236
|
+
const a = C(e);
|
|
237
|
+
return n(a).map((d) => d.YT.toLowerCase());
|
|
238
|
+
}, T = (e, a) => b(e).some((E) => r(E, a)), o = (e, a) => {
|
|
239
|
+
const d = n(e).find((f) => r(f.YT, a))?.SY;
|
|
240
|
+
if (!d)
|
|
241
|
+
throw Error(`Sy Address for ${a} not found`);
|
|
242
|
+
return d;
|
|
243
|
+
};
|
|
244
|
+
export {
|
|
245
|
+
F as arbPendleRegistry,
|
|
246
|
+
D as bnbPendleRegistry,
|
|
247
|
+
s as ethPendleRegistry,
|
|
248
|
+
o as findSyAddress,
|
|
249
|
+
n as getPendleRegistryWithChainId,
|
|
250
|
+
b as getYtTokensWithChainId,
|
|
251
|
+
T as isYtToken,
|
|
252
|
+
x as optimismPendleRegistry
|
|
253
|
+
};
|
package/common45.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { buildPoseidon as t } from "circomlibjs";
|
|
2
|
+
import { BigNumber as e } from "ethers";
|
|
3
|
+
import { toBigInt as s } from "./common114.mjs";
|
|
4
|
+
class r {
|
|
5
|
+
poseidon = void 0;
|
|
6
|
+
async init() {
|
|
7
|
+
this.poseidon = await t();
|
|
8
|
+
}
|
|
9
|
+
getPoseidon() {
|
|
10
|
+
return this.poseidon;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const i = new r();
|
|
14
|
+
function g(...n) {
|
|
15
|
+
const o = i.getPoseidon();
|
|
16
|
+
return s(o.F.toString(o(n)));
|
|
17
|
+
}
|
|
18
|
+
const m = (...n) => {
|
|
19
|
+
const o = i.getPoseidon();
|
|
20
|
+
return e.from(o.F.toString(o([...n]))).toHexString();
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
g as poseidonFunction,
|
|
24
|
+
m as poseidonHash,
|
|
25
|
+
i as poseidonHolder
|
|
26
|
+
};
|
package/common46.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { buildBabyjub as b } from "circomlibjs";
|
|
2
|
+
class t {
|
|
3
|
+
babyjub = void 0;
|
|
4
|
+
async init() {
|
|
5
|
+
this.babyjub = await b();
|
|
6
|
+
}
|
|
7
|
+
getJub() {
|
|
8
|
+
return this.babyjub;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const u = new t(), n = () => u.getJub();
|
|
12
|
+
export {
|
|
13
|
+
n as babyJubInstance,
|
|
14
|
+
u as jubHolder
|
|
15
|
+
};
|
package/common47.mjs
ADDED
package/common48.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
class e {
|
|
2
|
+
constructor(t) {
|
|
3
|
+
this.timeoutInMs = t, this.setTimer();
|
|
4
|
+
}
|
|
5
|
+
timeoutInMs;
|
|
6
|
+
values = {};
|
|
7
|
+
setTimer() {
|
|
8
|
+
if (this.timeoutInMs > 0) {
|
|
9
|
+
const t = this;
|
|
10
|
+
setInterval(() => {
|
|
11
|
+
t.onTimeout();
|
|
12
|
+
}, this.timeoutInMs);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
// clear cache when times-up
|
|
16
|
+
onTimeout() {
|
|
17
|
+
this.clear();
|
|
18
|
+
}
|
|
19
|
+
clear() {
|
|
20
|
+
this.values = {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
e as ValueCache
|
|
25
|
+
};
|
package/common49.mjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ethers as m } from "ethers";
|
|
2
|
+
import { Utxo as g } from "./common71.mjs";
|
|
3
|
+
import { UserKeys as x } from "./common51.mjs";
|
|
4
|
+
const c = (o) => {
|
|
5
|
+
const t = m.utils.defaultAbiCoder.decode(
|
|
6
|
+
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
7
|
+
o
|
|
8
|
+
), e = t[0].toBigInt(), r = t[1], s = t[2][0].toBigInt(), n = t[2][1].toHexString(), i = t[2][2].toBigInt(), d = t[2][3].toBigInt(), u = t[3].toString(), a = t[4].toNumber();
|
|
9
|
+
return {
|
|
10
|
+
amount: e,
|
|
11
|
+
erc20TokenAddress: r,
|
|
12
|
+
randomization: s,
|
|
13
|
+
stealthAddress: n,
|
|
14
|
+
H0: i,
|
|
15
|
+
H1: d,
|
|
16
|
+
timeStamp: u,
|
|
17
|
+
tokenId: a
|
|
18
|
+
};
|
|
19
|
+
}, U = (o, t) => {
|
|
20
|
+
const { amount: e, erc20TokenAddress: r, timeStamp: s, tokenId: n, randomization: i } = c(o);
|
|
21
|
+
return {
|
|
22
|
+
amount: e,
|
|
23
|
+
erc20TokenAddress: r,
|
|
24
|
+
timeStamp: s,
|
|
25
|
+
tokenId: n,
|
|
26
|
+
randomization: i,
|
|
27
|
+
shieldedPrivateKey: t
|
|
28
|
+
};
|
|
29
|
+
}, k = (o, t) => new g(U(o, t)), I = (o, t) => {
|
|
30
|
+
const { randomization: e, H0: r, H1: s } = c(o), n = x.checkSignature(e, r, s, t);
|
|
31
|
+
if (!n)
|
|
32
|
+
throw new Error("UTXO doesn't belong to user");
|
|
33
|
+
return n;
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
c as abiDecodeUtxo,
|
|
37
|
+
I as checkUtxoSignature,
|
|
38
|
+
k as decodeUtxo,
|
|
39
|
+
U as decodeUtxoConstructorArgs
|
|
40
|
+
};
|
package/common5.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import m from "axios";
|
|
2
|
+
import "./common28.mjs";
|
|
3
|
+
import "./common157.mjs";
|
|
4
|
+
import "./common164.mjs";
|
|
5
|
+
import "./common168.mjs";
|
|
6
|
+
import "ethers";
|
|
7
|
+
import "circomlibjs";
|
|
8
|
+
import "./common51.mjs";
|
|
9
|
+
import { getServerURL as e } from "./common2.mjs";
|
|
10
|
+
import "./common50.mjs";
|
|
11
|
+
import "./common139.mjs";
|
|
12
|
+
import "./common191.mjs";
|
|
13
|
+
import "./common117.mjs";
|
|
14
|
+
import "./common72.mjs";
|
|
15
|
+
import "./common121.mjs";
|
|
16
|
+
import "./common35.mjs";
|
|
17
|
+
import { API_CONFIG as a } from "./common32.mjs";
|
|
18
|
+
import "./common33.mjs";
|
|
19
|
+
import "./common129.mjs";
|
|
20
|
+
import "./common42.mjs";
|
|
21
|
+
import "./common31.mjs";
|
|
22
|
+
import "./common77.mjs";
|
|
23
|
+
import "libsodium-wrappers";
|
|
24
|
+
import "./common30.mjs";
|
|
25
|
+
import "./common36.mjs";
|
|
26
|
+
import "./common41.mjs";
|
|
27
|
+
const E = async (t, r, o, i = "apys") => {
|
|
28
|
+
const p = {
|
|
29
|
+
id: t,
|
|
30
|
+
datePeriod: r,
|
|
31
|
+
dataType: i
|
|
32
|
+
};
|
|
33
|
+
return await m.post(`${e(o)}${a.ROUTES.beefyGraphAPI}`, p);
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
E as getBeefyHistoricalChartData
|
|
37
|
+
};
|
package/common50.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ethers as t } from "ethers";
|
|
2
|
+
import a from "libsodium-wrappers";
|
|
3
|
+
import { Utxo as d } from "./common71.mjs";
|
|
4
|
+
import { UserKeys as l } from "./common51.mjs";
|
|
5
|
+
(async () => await a.ready)();
|
|
6
|
+
const B = (e, i) => {
|
|
7
|
+
const o = [
|
|
8
|
+
Buffer.from(t.utils.hexlify(i ? 0n : e.amount)),
|
|
9
|
+
Buffer.from(t.utils.hexlify(e.erc20TokenAddress)),
|
|
10
|
+
Buffer.from(t.utils.hexlify(e.randomization)),
|
|
11
|
+
Buffer.from(e.getStealthAddress()),
|
|
12
|
+
Buffer.from(t.utils.hexlify(BigInt(e.timeStamp)))
|
|
13
|
+
];
|
|
14
|
+
e.tokenId > 0 && o.push(Buffer.from(t.utils.hexlify(e.tokenId)));
|
|
15
|
+
const n = Buffer.concat(o);
|
|
16
|
+
return a.crypto_box_seal(n, t.utils.arrayify(e.getEncryptionKey()));
|
|
17
|
+
}, m = (e, i) => {
|
|
18
|
+
const { publicKey: o, privateKey: n } = l.getEncryptionKeyPair(i.getShieldedPrivateKey()), y = a.crypto_box_seal_open(
|
|
19
|
+
e,
|
|
20
|
+
t.utils.arrayify(o),
|
|
21
|
+
t.utils.arrayify(n)
|
|
22
|
+
), r = Buffer.from(y).toString("utf-8").split("0x").filter((f) => f.length !== 0).map((f, c) => {
|
|
23
|
+
let s;
|
|
24
|
+
return [0, 2, 4, 5].includes(c) ? s = BigInt(`0x${f}`) : [1, 3].includes(c) && (s = `0x${f}`), s;
|
|
25
|
+
});
|
|
26
|
+
return {
|
|
27
|
+
amount: r[0],
|
|
28
|
+
erc20TokenAddress: r[1],
|
|
29
|
+
randomization: r[2],
|
|
30
|
+
stealthAddress: r[3],
|
|
31
|
+
shieldedPrivateKey: i.getShieldedPrivateKey(),
|
|
32
|
+
timeStamp: r[4].toString(),
|
|
33
|
+
tokenId: r[5] ? Number(r[5]) : 0
|
|
34
|
+
// tokenId
|
|
35
|
+
};
|
|
36
|
+
}, x = (e, i) => new d(m(e, i));
|
|
37
|
+
export {
|
|
38
|
+
x as decryptUtxo,
|
|
39
|
+
m as decryptUtxoConstructorArgs,
|
|
40
|
+
B as encryptUtxo
|
|
41
|
+
};
|
package/common51.mjs
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { utils as S, ethers as o } from "ethers";
|
|
2
|
+
import d from "libsodium-wrappers";
|
|
3
|
+
import { CIRCOM_P as h } from "./common34.mjs";
|
|
4
|
+
import { babyJubInstance as m } from "./common46.mjs";
|
|
5
|
+
import { poseidonHash as u } from "./common45.mjs";
|
|
6
|
+
import { memoizeFunc as c } from "./common222.mjs";
|
|
7
|
+
import { getCircomSign as g } from "./common52.mjs";
|
|
8
|
+
(async () => await d.ready)();
|
|
9
|
+
const q = {
|
|
10
|
+
privateKey: "",
|
|
11
|
+
publicKey: ""
|
|
12
|
+
};
|
|
13
|
+
class H {
|
|
14
|
+
signature;
|
|
15
|
+
constructor(t) {
|
|
16
|
+
this.signature = t;
|
|
17
|
+
}
|
|
18
|
+
getSignature() {
|
|
19
|
+
return this.requireSignature(), this.signature;
|
|
20
|
+
}
|
|
21
|
+
setSignature(t) {
|
|
22
|
+
this.signature = t;
|
|
23
|
+
}
|
|
24
|
+
requireSignature() {
|
|
25
|
+
if (!this.signature)
|
|
26
|
+
throw Error("No signature provided");
|
|
27
|
+
}
|
|
28
|
+
verifyMessage(t) {
|
|
29
|
+
return this.requireSignature(), S.verifyMessage(t, this.signature);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* get shielded private key from message signature used to login to the application,
|
|
33
|
+
* this private key is used to generate encryption keypairs as well as public key
|
|
34
|
+
* @retuns 0x-prefixed shielded private key
|
|
35
|
+
*/
|
|
36
|
+
getShieldedPrivateKey = () => (this.requireSignature(), o.utils.keccak256(this.signature));
|
|
37
|
+
/**
|
|
38
|
+
* generate shielded public key from private key
|
|
39
|
+
* @param privateKey the key used to generate the shielded public key, this should be the signature
|
|
40
|
+
* that the user provided
|
|
41
|
+
* @retuns shielded public key in hexstring with 0x prefixed
|
|
42
|
+
*/
|
|
43
|
+
getShieldedPublicKey = () => (this.requireSignature(), u(this.getShieldedPrivateKey()));
|
|
44
|
+
/**
|
|
45
|
+
* generate access token, this accessKey is what should be sent to the server for signing
|
|
46
|
+
* @returns accessKey in hexstring with 0x prefixed
|
|
47
|
+
*/
|
|
48
|
+
getAccessKey = () => (this.requireSignature(), u(this.getShieldedPrivateKey(), this.getShieldedPublicKey()));
|
|
49
|
+
getWalletSalt = (t) => (this.requireSignature(), u(this.getShieldedPublicKey(), this.getShieldedPrivateKey(), t));
|
|
50
|
+
/**
|
|
51
|
+
* generate backend token, which is used for access control on backend
|
|
52
|
+
* @returns accessKey in hexstring with 0x prefixed
|
|
53
|
+
*/
|
|
54
|
+
getBackendToken = () => (this.requireSignature(), u(this.getAccessKey(), this.getShieldedPublicKey()));
|
|
55
|
+
static getRandomizedStealthPair = c(
|
|
56
|
+
(t, i) => {
|
|
57
|
+
const e = m(), r = BigInt(i) % h, n = t * r % h, s = e.mulPointEscalar(e.Base8, t), a = e.mulPointEscalar(e.Base8, n), l = [BigInt(e.F.toString(s[0])), BigInt(e.F.toString(s[1]))], y = [BigInt(e.F.toString(a[0])), BigInt(e.F.toString(a[1]))];
|
|
58
|
+
return { H0: l, H1: y };
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
static getStealthAddressCompressedPoints = (t, i) => {
|
|
62
|
+
const { H0: e, H1: r } = this.getRandomizedStealthPair(t, i), [n, s] = [e, r].map((a) => BigInt(a[1]) + 2n ** 255n * g(a[0]));
|
|
63
|
+
return { h0: n, h1: s };
|
|
64
|
+
};
|
|
65
|
+
static getStealthAddress = c((t, i) => {
|
|
66
|
+
const { H0: e, H1: r } = this.getRandomizedStealthPair(t, i), s = [2n * g(e[0]) + g(r[0]), e[1], r[1]];
|
|
67
|
+
return u(...s);
|
|
68
|
+
});
|
|
69
|
+
static getStealthAddressWithEKey = (t, i) => ({ stealthAddress: this.getStealthAddress(t, i), encryptionKey: this.getEncryptionKeyPair(i).publicKey });
|
|
70
|
+
static checkSignature = (t, i, e, r) => {
|
|
71
|
+
const { h0: n, h1: s } = this.getStealthAddressCompressedPoints(t, r);
|
|
72
|
+
return i === n && e === s;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* generate private and public keypair
|
|
76
|
+
* @param seed seed to use to deterministically generate key, must be in DataHexString format
|
|
77
|
+
* and must correspond to 32 bytes
|
|
78
|
+
*/
|
|
79
|
+
static getEncryptionKeyPair = (t) => {
|
|
80
|
+
const i = d.crypto_box_seed_keypair(o.utils.arrayify(t));
|
|
81
|
+
return {
|
|
82
|
+
privateKey: o.utils.hexlify(i.privateKey),
|
|
83
|
+
publicKey: o.utils.hexlify(i.publicKey)
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
q as EncryptionKeyPairDefaultValue,
|
|
89
|
+
H as UserKeys
|
|
90
|
+
};
|
package/common52.mjs
ADDED