@hinkal/common 0.2.6 → 0.2.8
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/API/rewardsPointsCalls.d.ts +3 -0
- package/README.md +61 -0
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +1 -0
- package/constants/server.constants.mjs +5 -4
- package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -1
- package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +4 -4
- package/index.cjs +1 -1
- package/index.mjs +239 -238
- package/package.json +1 -1
- package/types/hinkal.types.cjs +1 -1
- package/types/hinkal.types.d.ts +6 -0
- package/types/hinkal.types.mjs +10 -9
|
@@ -7,4 +7,7 @@ export declare const getNickname: (chainId: number, ethereumAddress: string) =>
|
|
|
7
7
|
export declare const points: (ethereumAddress: string, chainId: number, week?: number) => Promise<LeaderBoardItem[]>;
|
|
8
8
|
export declare const leaderboard: (chainId: number, week?: number) => Promise<LeaderboardEntry[]>;
|
|
9
9
|
export declare const seasonLeaderboard: (chainId: number) => Promise<LeaderboardEntry[]>;
|
|
10
|
+
export declare const getLastCertifyTime: (chainId: number, ethereumAddress: string) => Promise<{
|
|
11
|
+
lastCertifyTime: Date;
|
|
12
|
+
}>;
|
|
10
13
|
export {};
|
package/README.md
CHANGED
|
@@ -74,6 +74,67 @@ function actionPrivateWallet(
|
|
|
74
74
|
|
|
75
75
|
where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array contains encoded user operations.
|
|
76
76
|
|
|
77
|
+
##### User operations
|
|
78
|
+
|
|
79
|
+
To generate user operations (`ops`) you will need the `emporiumOp` function.
|
|
80
|
+
```typescript
|
|
81
|
+
import {emporiumOp} from "@hinkal/common";
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The function accepts the following arguments:
|
|
85
|
+
1. `endpoint` *(required)* - target address or contract instance (with address). The contract instance will be used to properly encode the call function, if any, in the custom operation.
|
|
86
|
+
2. `func` *(optional)* - the name of the function to be called on the target address.
|
|
87
|
+
3. `args` *(optional)* - arguments of the function to be called on the target address.
|
|
88
|
+
4. `invokeWallet` *(optional)* - bool flag that determines the type of transaction. There are two types: stateful and stateless interaction. The default is false (stateless).
|
|
89
|
+
5. `value` *(optional)* - the amount of native currency to transfer to the target address.
|
|
90
|
+
|
|
91
|
+
The `emporiumOp` function will generate data for subsequent calls, supporting both stateful interaction (with state preservation) and stateless interaction (without state preservation). This is determined by the `invokeWallet` flag.
|
|
92
|
+
|
|
93
|
+
To execute on a smart contract, the user operation will be received in the following format:
|
|
94
|
+
```solidity
|
|
95
|
+
(address endpoint, bool invokeWallet, uint256 value, bytes data)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
This will make it possible to make that kind of call:
|
|
99
|
+
```solidity
|
|
100
|
+
(bool success, bytes memory err) = endpoint.call{value: value}(data);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
##### Stateless and stateful
|
|
104
|
+
|
|
105
|
+
The best way to demonstrate how this works is with an example.
|
|
106
|
+
|
|
107
|
+
**Stateless interaction**
|
|
108
|
+
|
|
109
|
+
Let's say we need to exchange USDC for ETH using DEX.
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
const operations = [
|
|
113
|
+
emporiumOp(usdcContractInstance, 'approve', [swapRouterAddress, amountIn]),
|
|
114
|
+
emporiumOp(swapRouterContractInstance, 'exactInputSingle', [swapSingleParams]),
|
|
115
|
+
emporiumOp(wethContractInstance, 'withdraw', [amountOut]),
|
|
116
|
+
];
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
To perform a DEX swap, DEX does not need to know historical data about the calling party (e.g. when and what swaps have been performed from this account in the past). It only needs the current token balance for the exchange.
|
|
120
|
+
|
|
121
|
+
In this case it will be **stateless interaction**, so there is no need to change the default value of the `invokeWallet` flag.
|
|
122
|
+
|
|
123
|
+
**Stateful interaction**
|
|
124
|
+
|
|
125
|
+
Another example is when the protocol with which an account interacts needs to know what actions this account has done before, for example, to gain rewards. In this case, some account state will be required.
|
|
126
|
+
|
|
127
|
+
Let's imagine that you already have Curve LP tokens and need to make a stake.
|
|
128
|
+
|
|
129
|
+
```solidity
|
|
130
|
+
const operations = [
|
|
131
|
+
emporiumOp(lpTokenInstance, 'approve', [gaugeAddressInstance, amount]), // without flag, because is's stateless interaction
|
|
132
|
+
emporiumOp(gaugeAddressInstance, 'deposit', [amount, invokeWalletAddress], true), // with flag, because it's stateful interaction
|
|
133
|
+
];
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
As you can see, in this case `approve` is a stateless interaction, but `deposit` is a stateful interaction, because under the hood Curve will record this address and timestamp in order to calculate the checkpoint correctly in the future.
|
|
137
|
+
|
|
77
138
|
### Access Tokens
|
|
78
139
|
|
|
79
140
|
Before interacting with Hinkal smart contracts, users need to mint an access token after passing compliance checks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,n)=>`${e}${n!==void 0?`?week=${n}`:""}`,l={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startReclaimVerification:"/start-reclaim-verification",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getCommitmentsSnapshot:"/snapshots/commitments",getAccessTokenSnapshot:"/snapshots/access-tokens",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",getOdosPriceForToken:e=>`/getOdosPriceForToken/${e}`,getNullifiers:"/snapshots/nullifiers",axelarGasEstimate:(e,n,i,o)=>`/axelarGasEstimate/${e}/${n}/${i}/${o}`,userHasAccessToken:e=>`/user-has-access-token/${e}`,afterKycCall:"/after-kyc-callback",restoreSnapshots:"/snapshots/restore",beefyGraphAPI:"/BeefyGraphData",monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,userVerifyTransactions:"/user-verify-transactions",userGetLatestCertifiedHashes:e=>`/user-get-latest-certified-hashes/${e}`,userGetHasCerified:e=>`/user-get-has-certified/${e}`,userGetTransactions:(e,n,i)=>`/user-get-transactions/${e}/${n}/${i}`,getActiveCode:e=>`/get-active-code/${e}`,updateActiveCode:"/update-active-code",getWeeklyReferralCodes:(e,n)=>`/get-weekly-referral-codes/${e}/${n}`,getReferralCodes:e=>s(`/get-referral-codes/${e}`),getRewardsHistory:e=>`/get-rewards-history/${e}`,addReferralCode:"/update-referral-code",getLpProgram:e=>s(`/getLpProgram/${e}`),points:(e,n)=>`/points/${e}/${n}`,leaderboard:e=>`/leaderboard/${e}`,setRewardsReceivingData:"/set-user-rewards-receiving-data",getRewardsReceivingData:e=>`/get-user-rewards-receiving-data/${e}`,seasonLeaderboard:"/season-leaderboard",getUserAnonymityStakingPoints:e=>`/hinkal-points/${e}`,getLimitedAnonymityStakingPoints:e=>`/hinkal-points/limited/${e}`,getUserAnonymityStakingReferralPoints:e=>`/hinkal-referral-codes-info/${e}`,userHasPassword:e=>`/user-has-password/${e}`,userRegisterPassword:"/user-register-password",getNickname:e=>`/get-nickname/${e}`,addNickname:"/update-nickname",getLidoDefiData:"lido/defi",getLidoStats:"lido/stats",getLidoEthStats:"lido/eth-stats",getLidoDiscount:"lido/discount",getLidoRequestTime:"lido/request-time",getLidoMaticReward:"lido/matic-rewards",pendleAddLiquiditySingleToken:"pendle/addLiquiditySingleToken",pendleAddLiquiditySingleSy:"pendle/addLiquiditySingleSy",pendleAddLiquiditySinglePt:"pendle/addLiquiditySinglePt",pendleAddLiquidityDualTokenAndPt:"pendle/addLiquidityDualTokenAndPt",pendleAddLiquidityDualSyAndPt:"pendle/addLiquidityDualSyAndPt",pendleAddLiquiditySingleTokenKeepYt:"pendle/addLiquiditySingleTokenKeepYt",pendleRemoveLiquiditySingleToken:"pendle/removeLiquiditySingleToken",pendleRemoveLiquiditySingleSy:"pendle/removeLiquiditySingleSy",pendleRemoveLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleRemoveLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",pendleRemoveLiquidityDualSyAndPt:"pendle/removeLiquidityDualSyAndPt",pendleMintPyFromToken:"pendle/mintPyFromToken",pendlRedeemPyToToken:"pendle/redeemPyToToken",removeLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",removeLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleSwapExactTokenForYT:"pendle/swapExactTokenForYt",pendleSwapExactTokenForPt:"pendle/swapExactTokenForPt",pendleSwapExactPtForToken:"pendle/swapExactPtForToken",pendleSwapExactPtForYt:"pendle/swapExactPtForYt",pendleSwapExactYtForToken:"pendle/swapExactYtForToken",pendleSwapExactYtForPt:"pendle/swapExactYtForPt",pendleSyTokenInOut:"pendle/syTokenInOut",connextReceiveFee:(e,n)=>`/connextEstimateReceive/${e}/${n}`,stakedYield:"/staked-yield",getPublicWalletInformation:e=>`/get-public-wallet-data/${e}`}},d={getGasEstimate:(e,n,i,o,r)=>`/gas-estimation/${e}/${o}/${n}/${i}/${r}`,getTokenPrice:"/get-token-price",getTokenPriceEth:e=>`/get-token-price-in-eth/${e}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",getIdleRelay:"/get-idle-relay"},p={getUserPoints:e=>`/user-points/${e}`},t="http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com",a="http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com",c="https://ethMainnet-data-server.hinkal.pro",R="http://localhost",h=7090,g={polygon:"https://polygon.server.hinkal.pro",arbMainnet:"https://arbMainnet.server.hinkal.pro",ethMainnet:"https://ethMainnet.server.hinkal.pro",bnbMainnet:"https://bnbMainnet.server.hinkal.pro",avalanche:"https://avalanche.server.hinkal.pro",optimism:"https://optimism.server.hinkal.pro",base:"https://base.server.hinkal.pro",localhost:"http://localhost:7072"},k={polygon:`${t}:7072`,arbMainnet:`${t}:7070`,ethMainnet:`${t}:7080`,bnbMainnet:`${t}:7076`,avalanche:`${t}:7078`,optimism:`${t}:7082`,base:`${t}:7084`,localhost:"http://localhost:7072"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(e,n)=>`${e}${n!==void 0?`?week=${n}`:""}`,l={ROUTES:{checkKycStatus:"/check-kyc-status",getUserSignature:"/signature-request",startReclaimVerification:"/start-reclaim-verification",startUserVerification:"/start-aiprise-verification",zkMeAccessToken:"/zkMeAccessToken",getCommitmentsSnapshot:"/snapshots/commitments",getAccessTokenSnapshot:"/snapshots/access-tokens",callOdosAPI:"/OdosSwapData",callOneInchAPI:"/OneInchSwapData",getOdosPriceForToken:e=>`/getOdosPriceForToken/${e}`,getNullifiers:"/snapshots/nullifiers",axelarGasEstimate:(e,n,i,o)=>`/axelarGasEstimate/${e}/${n}/${i}/${o}`,userHasAccessToken:e=>`/user-has-access-token/${e}`,afterKycCall:"/after-kyc-callback",restoreSnapshots:"/snapshots/restore",beefyGraphAPI:"/BeefyGraphData",monitor:"/monitor",checkRisk:e=>`/check-risk/${e}`,userVerifyTransactions:"/user-verify-transactions",userGetLatestCertifiedHashes:e=>`/user-get-latest-certified-hashes/${e}`,userGetHasCerified:e=>`/user-get-has-certified/${e}`,userGetTransactions:(e,n,i)=>`/user-get-transactions/${e}/${n}/${i}`,getActiveCode:e=>`/get-active-code/${e}`,updateActiveCode:"/update-active-code",getWeeklyReferralCodes:(e,n)=>`/get-weekly-referral-codes/${e}/${n}`,getReferralCodes:e=>s(`/get-referral-codes/${e}`),getRewardsHistory:e=>`/get-rewards-history/${e}`,addReferralCode:"/update-referral-code",getLpProgram:e=>s(`/getLpProgram/${e}`),points:(e,n)=>`/points/${e}/${n}`,leaderboard:e=>`/leaderboard/${e}`,setRewardsReceivingData:"/set-user-rewards-receiving-data",getRewardsReceivingData:e=>`/get-user-rewards-receiving-data/${e}`,seasonLeaderboard:"/season-leaderboard",getUserAnonymityStakingPoints:e=>`/hinkal-points/${e}`,getLimitedAnonymityStakingPoints:e=>`/hinkal-points/limited/${e}`,getUserAnonymityStakingReferralPoints:e=>`/hinkal-referral-codes-info/${e}`,userHasPassword:e=>`/user-has-password/${e}`,userRegisterPassword:"/user-register-password",getNickname:e=>`/get-nickname/${e}`,addNickname:"/update-nickname",getLastCertifyTime:e=>`/get-last-certify-time/${e}`,getLidoDefiData:"lido/defi",getLidoStats:"lido/stats",getLidoEthStats:"lido/eth-stats",getLidoDiscount:"lido/discount",getLidoRequestTime:"lido/request-time",getLidoMaticReward:"lido/matic-rewards",pendleAddLiquiditySingleToken:"pendle/addLiquiditySingleToken",pendleAddLiquiditySingleSy:"pendle/addLiquiditySingleSy",pendleAddLiquiditySinglePt:"pendle/addLiquiditySinglePt",pendleAddLiquidityDualTokenAndPt:"pendle/addLiquidityDualTokenAndPt",pendleAddLiquidityDualSyAndPt:"pendle/addLiquidityDualSyAndPt",pendleAddLiquiditySingleTokenKeepYt:"pendle/addLiquiditySingleTokenKeepYt",pendleRemoveLiquiditySingleToken:"pendle/removeLiquiditySingleToken",pendleRemoveLiquiditySingleSy:"pendle/removeLiquiditySingleSy",pendleRemoveLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleRemoveLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",pendleRemoveLiquidityDualSyAndPt:"pendle/removeLiquidityDualSyAndPt",pendleMintPyFromToken:"pendle/mintPyFromToken",pendlRedeemPyToToken:"pendle/redeemPyToToken",removeLiquidityDualTokenAndPt:"pendle/removeLiquidityDualTokenAndPt",removeLiquiditySinglePt:"pendle/removeLiquiditySinglePt",pendleSwapExactTokenForYT:"pendle/swapExactTokenForYt",pendleSwapExactTokenForPt:"pendle/swapExactTokenForPt",pendleSwapExactPtForToken:"pendle/swapExactPtForToken",pendleSwapExactPtForYt:"pendle/swapExactPtForYt",pendleSwapExactYtForToken:"pendle/swapExactYtForToken",pendleSwapExactYtForPt:"pendle/swapExactYtForPt",pendleSyTokenInOut:"pendle/syTokenInOut",connextReceiveFee:(e,n)=>`/connextEstimateReceive/${e}/${n}`,stakedYield:"/staked-yield",getPublicWalletInformation:e=>`/get-public-wallet-data/${e}`}},d={getGasEstimate:(e,n,i,o,r)=>`/gas-estimation/${e}/${o}/${n}/${i}/${r}`,getTokenPrice:"/get-token-price",getTokenPriceEth:e=>`/get-token-price-in-eth/${e}`,getTokenPrices:"/get-token-prices",TRANSACT:"/general-transact",getIdleRelay:"/get-idle-relay"},p={getUserPoints:e=>`/user-points/${e}`},t="http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com",a="http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com",c="https://ethMainnet-data-server.hinkal.pro",R="http://localhost",h=7090,g={polygon:"https://polygon.server.hinkal.pro",arbMainnet:"https://arbMainnet.server.hinkal.pro",ethMainnet:"https://ethMainnet.server.hinkal.pro",bnbMainnet:"https://bnbMainnet.server.hinkal.pro",avalanche:"https://avalanche.server.hinkal.pro",optimism:"https://optimism.server.hinkal.pro",base:"https://base.server.hinkal.pro",localhost:"http://localhost:7072"},k={polygon:`${t}:7072`,arbMainnet:`${t}:7070`,ethMainnet:`${t}:7080`,bnbMainnet:`${t}:7076`,avalanche:`${t}:7078`,optimism:`${t}:7082`,base:`${t}:7084`,localhost:"http://localhost:7072"},y={polygon:`${a}:7072`,arbMainnet:`${a}:7070`,ethMainnet:`${a}:7080`,bnbMainnet:`${a}:7076`,avalanche:`${a}:7078`,optimism:`${a}:7082`,base:`${a}:7084`,localhost:"http://localhost:7072"},u={polygon:"https://polygon.relayer.hinkal.pro",arbMainnet:"https://arbMainnet.relayer.hinkal.pro",ethMainnet:"https://ethMainnet.relayer.hinkal.pro",bnbMainnet:"https://bnbMainnet.relayer.hinkal.pro",avalanche:"https://avalanche.relayer.hinkal.pro",optimism:"https://optimism.relayer.hinkal.pro",base:"https://base.relayer.hinkal.pro",localhost:"http://localhost:7073"},S={polygon:`${t}:7073`,arbMainnet:`${t}:7071`,ethMainnet:`${t}:7081`,bnbMainnet:`${t}:7077`,avalanche:`${t}:7079`,optimism:`${t}:7083`,base:`${t}:7085`,localhost:"http://localhost:7073"},L={polygon:`${a}:7073`,arbMainnet:`${a}:7071`,ethMainnet:`${a}:7081`,bnbMainnet:`${a}:7077`,avalanche:`${a}:7079`,optimism:`${a}:7083`,base:`${a}:7085`,localhost:"http://localhost:7073"};exports.API_CONFIG=l;exports.DATA_SERVER_CONFIG=p;exports.DATA_SERVER_PORT=h;exports.DATA_SERVER_URL_LOCAL=R;exports.DATA_SERVER_URL_PRODUCTION=c;exports.PLAYGROUND_RELAYER_URLS=L;exports.PLAYGROUND_SERVER_URLS=y;exports.PLAYGROUND_URL=a;exports.RELAYER_CONFIG=d;exports.RELAYER_URLS=u;exports.SERVER_URLS=g;exports.STAGING_RELAYER_URLS=S;exports.STAGING_SERVER_URLS=k;exports.STAGING_URL=t;
|
|
@@ -42,6 +42,7 @@ export declare const API_CONFIG: {
|
|
|
42
42
|
userRegisterPassword: string;
|
|
43
43
|
getNickname: (ethereumAddress: string) => string;
|
|
44
44
|
addNickname: string;
|
|
45
|
+
getLastCertifyTime: (ethereumAddress: string) => string;
|
|
45
46
|
getLidoDefiData: string;
|
|
46
47
|
getLidoStats: string;
|
|
47
48
|
getLidoEthStats: string;
|
|
@@ -41,6 +41,7 @@ const s = (e, t) => `${e}${t !== void 0 ? `?week=${t}` : ""}`, l = {
|
|
|
41
41
|
userRegisterPassword: "/user-register-password",
|
|
42
42
|
getNickname: (e) => `/get-nickname/${e}`,
|
|
43
43
|
addNickname: "/update-nickname",
|
|
44
|
+
getLastCertifyTime: (e) => `/get-last-certify-time/${e}`,
|
|
44
45
|
getLidoDefiData: "lido/defi",
|
|
45
46
|
getLidoStats: "lido/stats",
|
|
46
47
|
getLidoEthStats: "lido/eth-stats",
|
|
@@ -91,7 +92,7 @@ const s = (e, t) => `${e}${t !== void 0 ? `?week=${t}` : ""}`, l = {
|
|
|
91
92
|
optimism: "https://optimism.server.hinkal.pro",
|
|
92
93
|
base: "https://base.server.hinkal.pro",
|
|
93
94
|
localhost: "http://localhost:7072"
|
|
94
|
-
},
|
|
95
|
+
}, y = {
|
|
95
96
|
polygon: `${a}:7072`,
|
|
96
97
|
arbMainnet: `${a}:7070`,
|
|
97
98
|
ethMainnet: `${a}:7080`,
|
|
@@ -100,7 +101,7 @@ const s = (e, t) => `${e}${t !== void 0 ? `?week=${t}` : ""}`, l = {
|
|
|
100
101
|
optimism: `${a}:7082`,
|
|
101
102
|
base: `${a}:7084`,
|
|
102
103
|
localhost: "http://localhost:7072"
|
|
103
|
-
},
|
|
104
|
+
}, u = {
|
|
104
105
|
polygon: `${n}:7072`,
|
|
105
106
|
arbMainnet: `${n}:7070`,
|
|
106
107
|
ethMainnet: `${n}:7080`,
|
|
@@ -144,12 +145,12 @@ export {
|
|
|
144
145
|
h as DATA_SERVER_URL_LOCAL,
|
|
145
146
|
c as DATA_SERVER_URL_PRODUCTION,
|
|
146
147
|
R as PLAYGROUND_RELAYER_URLS,
|
|
147
|
-
|
|
148
|
+
u as PLAYGROUND_SERVER_URLS,
|
|
148
149
|
n as PLAYGROUND_URL,
|
|
149
150
|
d as RELAYER_CONFIG,
|
|
150
151
|
m as RELAYER_URLS,
|
|
151
152
|
k as SERVER_URLS,
|
|
152
153
|
$ as STAGING_RELAYER_URLS,
|
|
153
|
-
|
|
154
|
+
y as STAGING_SERVER_URLS,
|
|
154
155
|
a as STAGING_URL
|
|
155
156
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../utxo/Utxo.cjs");require("ethers");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../constants/protocol.constants.cjs"),d=require("../utxo/Utxo.cjs");require("ethers");const a=require("../crypto-keys/keys.cjs");require("libsodium-wrappers");const u=e=>{if(!e)throw Error("No hinkal provided");const{userKeys:s}=e,t=s.getShieldedPrivateKey(),r=a.UserKeys.getEncryptionKeyPair(t).publicKey,o=new d.Utxo({amount:0n,erc20TokenAddress:c.zeroAddress,shieldedPrivateKey:t}),{randomization:n}=o,i=o.getStealthAddress();if(!n||!i||!r)throw Error("Cannot get recipient information");return`${n},${i},${r}`};exports.getRecipientInfo=u;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { zeroAddress as d } from "../../constants/protocol.constants.mjs";
|
|
2
|
+
import { Utxo as c } from "../utxo/Utxo.mjs";
|
|
2
3
|
import "ethers";
|
|
3
|
-
import { UserKeys as
|
|
4
|
+
import { UserKeys as p } from "../crypto-keys/keys.mjs";
|
|
4
5
|
import "libsodium-wrappers";
|
|
5
|
-
import { zeroAddress as p } from "../../node_modules/viem/_esm/constants/address.mjs";
|
|
6
6
|
const h = (e) => {
|
|
7
7
|
if (!e)
|
|
8
8
|
throw Error("No hinkal provided");
|
|
9
|
-
const { userKeys: s } = e, t = s.getShieldedPrivateKey(), r =
|
|
9
|
+
const { userKeys: s } = e, t = s.getShieldedPrivateKey(), r = p.getEncryptionKeyPair(t).publicKey, o = new c({ amount: 0n, erc20TokenAddress: d, shieldedPrivateKey: t }), { randomization: n } = o, i = o.getStealthAddress();
|
|
10
10
|
if (!n || !i || !r)
|
|
11
11
|
throw Error("Cannot get recipient information");
|
|
12
12
|
return `${n},${i},${r}`;
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./API/getServerURL.cjs"),q=require("./API/getCoingeckoPrice.cjs"),ue=require("./API/callOneInchAPI.cjs"),ge=require("./API/callBeefyGraphAPI.cjs"),pe=require("./API/callRelayer.cjs"),Ae=require("./API/getAxelarGasEstimate.cjs"),ye=require("./API/getGasEstimates.cjs"),f=require("./API/getTokenPrice.cjs"),Pe=require("./API/checkRisk.cjs"),Te=require("./API/relayCalls.cjs"),ke=require("./API/API.cjs"),S=require("./API/callCurveAPI.cjs"),me=require("./API/getRelayerURL.cjs"),Re=require("./API/duneAPI.cjs"),he=require("./constants/assets.constants.cjs"),r=require("./constants/token-data/index.cjs"),Se=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Ce=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),Ee=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),Ie=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),be=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),qe=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),_e=require("./constants/deploy-data/deploy-data-base.json.cjs"),ve=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),De=require("./constants/deploy-data/deploy-data-axelar1.json.cjs"),xe=require("./constants/deploy-data/deploy-data-axelar2.json.cjs"),c=require("./constants/chains.constants.cjs"),d=require("./constants/fees.constants.cjs"),R=require("./constants/contracts.constants.cjs"),A=require("./constants/kyc.constants.cjs"),i=require("./constants/server.constants.cjs"),y=require("./constants/vite.constants.cjs"),n=require("./constants/protocol.constants.cjs"),P=require("./constants/coingecko.constants.cjs"),Le=require("./constants/axelar.constants.cjs"),H=require("./constants/backend.constants.cjs"),m=require("./constants/crvCvx.registry.cjs"),fe=require("./constants/crvDynamic.registry.cjs"),u=require("./constants/lido.constants.cjs"),g=require("./constants/rewards.constants.cjs"),Fe=require("./constants/reorg-depths.constants.cjs"),G=require("./constants/beefy.registry.cjs"),k=require("./constants/pendle.registry.cjs"),F=require("./crypto/poseidon.cjs"),K=require("./crypto/babyJub.cjs"),Ue=require("./crypto/preProcessing.cjs"),Me=require("./data-structures/ValueCache/ValueCache.cjs"),_=require("./data-structures/crypto-keys/decodeUTXO.cjs"),U=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),Y=require("./data-structures/crypto-keys/keys.cjs"),Z=require("./data-structures/crypto-keys/keyUtils.cjs"),Oe=require("./data-structures/Hinkal/Hinkal.cjs"),Ne=require("./data-structures/Hinkal/hinkalActionBeefy.cjs"),Be=require("./data-structures/Hinkal/hinkalActionConvex.cjs"),we=require("./data-structures/Hinkal/hinkalActionCurve.cjs"),Ve=require("./data-structures/Hinkal/hinkalActionPendle.cjs"),z=require("./data-structures/Hinkal/hinkalDeposit.cjs"),We=require("./data-structures/Hinkal/hinkalSwap.cjs"),He=require("./data-structures/Hinkal/hinkalTransfer.cjs"),Ge=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),Ke=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),Ye=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),Ze=require("./data-structures/merkle-tree/MerkleTree.cjs"),ze=require("./data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs"),je=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),Qe=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),Xe=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),Je=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),$e=require("./data-structures/event-service/AbstractSnapshotService.cjs"),et=require("./data-structures/event-service/AbstractEventService.cjs"),tt=require("./data-structures/utxo/Utxo.cjs"),rt=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),ot=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),it=require("./data-structures/transactions-manager/TransactionsManager.cjs"),j=require("./data-structures/transactions-manager/history/history.types.cjs"),nt=require("./data-structures/volatile-helper/VolatileHelper.cjs"),at=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),st=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),ct=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),lt=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),Q=require("./error-handling/customErrors/customErrors.helpers.cjs"),X=require("./error-handling/error-codes.constants.cjs"),J=require("./error-handling/get-error.message.cjs"),dt=require("./error-handling/handleErrorRestore.cjs"),ut=require("./error-handling/logError.cjs"),gt=require("./error-handling/types.cjs"),p=require("./externalABIs/index.cjs"),M=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),pt=require("./functions/kyc/passportHelper.cjs"),At=require("./functions/kyc/openDefaultPassportWindow.cjs"),e=require("./functions/utils/amounts.utils.cjs"),h=require("./functions/utils/cacheFunctions.cjs"),yt=require("./functions/utils/create-provider.cjs"),C=require("./functions/utils/external-action.utils.cjs"),O=require("./functions/utils/erc20tokenFunctions.cjs"),Pt=require("./functions/utils/requireEnv.cjs"),N=require("./functions/utils/resolve-sync.utils.cjs"),Tt=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),kt=require("./functions/pre-transaction/interaction-to-action.cjs"),mt=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),Rt=require("./functions/pre-transaction/process-gas-estimates.cjs"),ht=require("./functions/pre-transaction/processAmountChanges.cjs"),St=require("./functions/pre-transaction/getFlatFees.cjs"),$=require("./functions/utils/evmNetworkFunctions.cjs"),Ct=require("./functions/utils/axelar.utils.cjs"),ee=require("./functions/utils/userAgent.cjs"),v=require("./functions/utils/getDataFromTransaction.cjs"),Et=require("./functions/utils/reloadPage.cjs"),B=require("./functions/utils/string.utils.cjs"),It=require("./functions/utils/nickname.utils.cjs"),w=require("./functions/utils/caseInsensitive.utils.cjs"),bt=require("./functions/utils/time.utils.cjs"),qt=require("./functions/utils/volatile-patcher.utils.cjs"),_t=require("./functions/utils/cacheDevice.utils.cjs"),te=require("./functions/utils/process.utils.cjs"),T=require("./functions/web3/etherFunctions.cjs"),re=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),oe=require("./functions/web3/events/getShieldedBalance.cjs"),ie=require("./functions/web3/events/web3RetrieveEvents.cjs"),vt=require("./functions/web3/events/balanceChangedHandler.cjs"),D=require("./functions/web3/uniswapAPI.cjs"),Dt=require("./functions/web3/odosAPI.cjs"),xt=require("./functions/web3/oneInchAPI.cjs"),Lt=require("./functions/web3/runContractFunction.cjs"),ft=require("./functions/snarkjs/constructGeneralZkProof.cjs"),Ft=require("./functions/snarkjs/constructEmporiumProof.cjs"),l=require("./functions/snarkjs/common.snarkjs.cjs"),Ut=require("./functions/snarkjs/generateZkProof.cjs"),Mt=require("./functions/protocols/curve.protocols.cjs"),Ot=require("./functions/protocols/convex.protocols.cjs"),E=require("./functions/protocols/pendle.helpers.cjs"),I=require("./functions/staking/index.cjs"),ne=require("./functions/private-wallet/emporium.helpers.cjs"),ae=require("./functions/private-wallet/opProducer.cjs"),se=require("./types/beefy.types.cjs"),x=require("./types/circom-data.types.cjs"),Nt=require("./types/ethereum-network.types.cjs"),Bt=require("./types/external-action.types.cjs"),a=require("./types/hinkal.types.cjs"),b=require("./types/kyc.types.cjs"),wt=require("./types/token.types.cjs"),ce=require("./types/slippage.types.cjs"),Vt=require("./types/transactions.types.cjs"),o=require("./types/time.types.cjs"),t=require("./types/rewards.types.cjs"),s=require("./types/pendle.types.cjs"),L=require("./types/curve.types.cjs"),Wt=require("./types/hinkal.stake.types.cjs"),le=require("./types/admin.types.cjs"),de=require("./constants/token-data/ERC20Registry.cjs"),V=require("./constants/token-data/tokenPricing.consts.cjs"),Ht=require("./constants/token-data/popularTokens.constants.cjs"),Gt=require("./externalABIs/amToken.cjs"),Kt=require("./externalABIs/USDC.cjs"),Yt=require("./externalABIs/DAI.cjs"),Zt=require("./externalABIs/USDR.cjs"),zt=require("./externalABIs/USDR3CRV.cjs"),jt=require("./externalABIs/USDT.cjs"),Qt=require("./externalABIs/WETH.cjs"),Xt=require("./externalABIs/BUSD.cjs"),Jt=require("./externalABIs/SanctionsList.cjs"),$t=require("./externalABIs/LidoStEthAbi.json.cjs"),er=require("./externalABIs/LidoStMaticAbi.json.cjs"),tr=require("./externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),rr=require("./externalABIs/LidoWstEthAbi.json.cjs"),or=require("./externalABIs/PoLidoNftAbi.json.cjs"),ir=require("./externalABIs/LidoStakeManagerAbi.json.cjs"),nr=require("./externalABIs/OptimismGasPriceOracle.json.cjs");exports.getDataServerURL=W.getDataServerURL;exports.getServerURL=W.getServerURL;exports.getCoingeckoPrice=q.getCoingeckoPrice;exports.getCoingeckoPrice2=q.getCoingeckoPrice2;exports.getCoingeckoPrices=q.getCoingeckoPrices;exports.getCoingeckoTokenList=q.getCoingeckoTokenList;exports.callOneInchAPI=ue.callOneInchAPI;exports.getBeefyHistoricalChartData=ge.getBeefyHistoricalChartData;exports.callRelayerTransactAPI=pe.callRelayerTransactAPI;exports.getAxelarGasEstimate=Ae.getAxelarGasEstimate;exports.getGasEstimates=ye.getGasEstimates;exports.getTokenPrice=f.getTokenPrice;exports.getTokenPriceEth=f.getTokenPriceEth;exports.getTokenPrices=f.getTokenPrices;exports.checkRisk=Pe.checkRisk;exports.getIdleRelay=Te.getIdleRelay;exports.API=ke.API;exports.getCurvePools=S.getCurvePools;exports.getCurvePoolsforPriceFetching=S.getCurvePoolsforPriceFetching;exports.getExtendedPoolInfo=S.getExtendedPoolInfo;exports.lpTokens=S.lpTokens;exports.lpTokensToBasePool=S.lpTokensToBasePool;exports.getRelayerURL=me.getRelayerURL;exports.getPublicWalletBalance=Re.getPublicWalletBalance;exports.IMAGE_PATHS=he.IMAGE_PATHS;exports.arbMainnetRegistry=r.arbMainnetRegistry;exports.arbMainnetRegistryFixed=r.arbMainnetRegistryFixed;exports.avalancheRegistry=r.avalancheRegistry;exports.avalancheRegistryFixed=r.avalancheRegistryFixed;exports.baseRegistry=r.baseRegistry;exports.baseRegistryFixed=r.baseRegistryFixed;exports.bnbMainnetRegistry=r.bnbMainnetRegistry;exports.bnbMainnetRegistryFixed=r.bnbMainnetRegistryFixed;exports.ethMainnetRegistry=r.ethMainnetRegistry;exports.ethMainnetRegistryFixed=r.ethMainnetRegistryFixed;exports.localhostRegistry=r.localhostRegistry;exports.optimismRegistry=r.optimismRegistry;exports.optimismRegistryFixed=r.optimismRegistryFixed;exports.polygonRegistry=r.polygonRegistry;exports.polygonRegistryFixed=r.polygonRegistryFixed;exports.bnbMainnetData=Se.default;exports.arbMainnetData=Ce.default;exports.ethMainnetData=Ee.default;exports.optimismData=Ie.default;exports.polygonData=be.default;exports.avalancheData=qe.default;exports.baseData=_e.default;exports.localhostData=ve.default;exports.axelar1Data=De.default;exports.axelar2Data=xe.default;exports.EthereumNetworkType=c.EthereumNetworkType;exports.chainIds=c.chainIds;exports.chainIdsByType=c.chainIdsByType;exports.crossChainAccessTokenNetworks=c.crossChainAccessTokenNetworks;exports.getNonLocalhostChainId=c.getNonLocalhostChainId;exports.isLocalNetwork=c.isLocalNetwork;exports.isOptimismBedrockLike=c.isOptimismBedrockLike;exports.isOptimismEcotoneLike=c.isOptimismEcotoneLike;exports.isOptimismLike=c.isOptimismLike;exports.localhostNetwork=c.localhostNetwork;exports.networkRegistry=c.networkRegistry;exports.HINKAL_EXTERNAL_ACTION_FEE=d.HINKAL_EXTERNAL_ACTION_FEE;exports.HINKAL_UNIVERSAL_FEE=d.HINKAL_UNIVERSAL_FEE;exports.getAmountAfterRelayAndFlatFees=d.getAmountAfterRelayAndFlatFees;exports.getAmountAfterRelayAndFlatFeesAndSlippage=d.getAmountAfterRelayAndFlatFeesAndSlippage;exports.getAmountAfterRelayFee=d.getAmountAfterRelayFee;exports.getAmountAfterSlippage=d.getAmountAfterSlippage;exports.getAmountWithoutFee=d.getAmountWithoutFee;exports.getHinkalFeeRateInBeeps=d.getHinkalFeeRateInBeeps;exports.getRelayFee=d.getRelayFee;exports.getSlippageFee=d.getSlippageFee;exports.contractMetadataMapping=R.contractMetadataMapping;exports.getHinkalParameters=R.getHinkalParameters;exports.uniswapV2PoolData=R.uniswapV2PoolData;exports.uniswapV3FactoryData=R.uniswapV3FactoryData;exports.uniswapV3PoolData=R.uniswapV3PoolData;exports.uniswapV3QuoterData=R.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=A.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=A.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=A.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=A.ReclaimPassports;exports.StandardPassports=A.StandardPassports;exports.SupportedPassports=A.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=A.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=A.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=A.supportedPassportLinks;exports.API_CONFIG=i.API_CONFIG;exports.DATA_SERVER_CONFIG=i.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=i.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=i.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=i.DATA_SERVER_URL_PRODUCTION;exports.PLAYGROUND_RELAYER_URLS=i.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=i.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=i.PLAYGROUND_URL;exports.RELAYER_CONFIG=i.RELAYER_CONFIG;exports.RELAYER_URLS=i.RELAYER_URLS;exports.SERVER_URLS=i.SERVER_URLS;exports.STAGING_RELAYER_URLS=i.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=i.STAGING_SERVER_URLS;exports.STAGING_URL=i.STAGING_URL;exports.DEPLOYMENT_MODE=y.DEPLOYMENT_MODE;exports.deploymentMode=y.deploymentMode;exports.isDevelopment=y.isDevelopment;exports.isNode=y.isNode;exports.isNotClientProduction=y.isNotClientProduction;exports.isNotProduction=y.isNotProduction;exports.isPlayground=y.isPlayground;exports.isStaging=y.isStaging;exports.isWebpack=y.isWebpack;exports.CIRCOM_P=n.CIRCOM_P;exports.CIRCOM_P_HALF=n.CIRCOM_P_HALF;exports.beefyChainIds=n.beefyChainIds;exports.crvSymbol=n.crvSymbol;exports.curveWithdrawGasTokenAddress=n.curveWithdrawGasTokenAddress;exports.curveZeroAddress=n.curveZeroAddress;exports.cvxSymbol=n.cvxSymbol;exports.ethVolatileAddress=n.ethVolatileAddress;exports.oneInchZeroAddress=n.oneInchZeroAddress;exports.ownerPublicKey=n.ownerPublicKey;exports.permitSignatureValidFor=n.permitSignatureValidFor;exports.signaturePhrase=n.signaturePhrase;exports.threePoolSymbol=n.threePoolSymbol;exports.zeroAddress=n.zeroAddress;exports.COINGECKO_API_KEY=P.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=P.CoinGeckoChainLabels;exports.coingeckoPriceUrl=P.coingeckoPriceUrl;exports.coingeckoPriceUrl2=P.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=P.coingeckoTokenListUrl;exports.getCoingeckoIdForNativeTokens=P.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=P.getCoingeckoPlatform;exports.proCoingeckoUrl=P.proCoingeckoUrl;exports.proHeader=P.proHeader;exports.AxelarRegistry=Le.AxelarRegistry;exports.NETWORKS=H.NETWORKS;exports.getGasStationUrl=H.getGasStationUrl;exports.arbMainnetCrvCvxRegistry=m.arbMainnetCrvCvxRegistry;exports.avalancheCrvCvxRegistry=m.avalancheCrvCvxRegistry;exports.baseCrvCvxRegistry=m.baseCrvCvxRegistry;exports.ethCrvCvxRegistry=m.ethCrvCvxRegistry;exports.getCrvCvxWithChainId=m.getCrvCvxWithChainId;exports.optimismCrvCvxRegistry=m.optimismCrvCvxRegistry;exports.polygonCrvCvxRegistry=m.polygonCrvCvxRegistry;exports.getCalcTokenAmountWithDynamicArray=fe.getCalcTokenAmountWithDynamicArray;exports.ethSymbol=u.ethSymbol;exports.lidoStEthContractAddress=u.lidoStEthContractAddress;exports.lidoStMaticAddress=u.lidoStMaticAddress;exports.lidoStakeManagerAddress=u.lidoStakeManagerAddress;exports.lidoWithdrawalQueueERC721Address=u.lidoWithdrawalQueueERC721Address;exports.lidoWstEthContractAddress=u.lidoWstEthContractAddress;exports.maticSymbol=u.maticSymbol;exports.poLidoNftAddress=u.poLidoNftAddress;exports.stMaticSymbol=u.stMaticSymbol;exports.wstEthSymbol=u.wstEthSymbol;exports.ACCESS_TOKEN_MINTING_POINTS=g.ACCESS_TOKEN_MINTING_POINTS;exports.CERTIFICATION_DISABLE_WEEK=g.CERTIFICATION_DISABLE_WEEK;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=g.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.RafflePrizePoints=g.RafflePrizePoints;exports.boostAmounts=g.boostAmounts;exports.lpLink=g.lpLink;exports.lpProgramStartWeek=g.lpProgramStartWeek;exports.pointsLink=g.pointsLink;exports.raffleProgramStartWeek=g.raffleProgramStartWeek;exports.referralLink=g.referralLink;exports.blockReorgDepth=Fe.blockReorgDepth;exports.ethBeefyRegistry=G.ethBeefyRegistry;exports.getBeefyRegistryWithChainId=G.getBeefyRegistryWithChainId;exports.arbPendleRegistry=k.arbPendleRegistry;exports.bnbPendleRegistry=k.bnbPendleRegistry;exports.ethPendleRegistry=k.ethPendleRegistry;exports.findSyAddress=k.findSyAddress;exports.getPendleRegistryWithChainId=k.getPendleRegistryWithChainId;exports.getYtTokensWithChainId=k.getYtTokensWithChainId;exports.isYtToken=k.isYtToken;exports.optimismPendleRegistry=k.optimismPendleRegistry;exports.poseidonFunction=F.poseidonFunction;exports.poseidonHash=F.poseidonHash;exports.poseidonHolder=F.poseidonHolder;exports.babyJubInstance=K.babyJubInstance;exports.jubHolder=K.jubHolder;exports.preProcessing=Ue.preProcessing;exports.ValueCache=Me.ValueCache;exports.abiDecodeUtxo=_.abiDecodeUtxo;exports.checkUtxoSignature=_.checkUtxoSignature;exports.decodeUtxo=_.decodeUtxo;exports.decodeUtxoConstructorArgs=_.decodeUtxoConstructorArgs;exports.decryptUtxo=U.decryptUtxo;exports.decryptUtxoConstructorArgs=U.decryptUtxoConstructorArgs;exports.encryptUtxo=U.encryptUtxo;exports.EncryptionKeyPairDefaultValue=Y.EncryptionKeyPairDefaultValue;exports.UserKeys=Y.UserKeys;exports.getCircomSign=Z.getCircomSign;exports.isCircomNegative=Z.isCircomNegative;exports.Hinkal=Oe.Hinkal;exports.hinkalActionBeefy=Ne.hinkalActionBeefy;exports.hinkalActionConvex=Be.hinkalActionConvex;exports.hinkalActionCurve=we.hinkalActionCurve;exports.hinkalActionPendle=Ve.hinkalActionPendle;exports.hinkalDeposit=z.hinkalDeposit;exports.hinkalDepositForOther=z.hinkalDepositForOther;exports.hinkalSwap=We.hinkalSwap;exports.hinkalTransfer=He.hinkalTransfer;exports.hinkalWithdraw=Ge.hinkalWithdraw;exports.hinkalPrivateWallet=Ke.hinkalPrivateWallet;exports.resetMerkleTrees=Ye.resetMerkleTrees;exports.MerkleTree=Ze.MerkleTree;exports.getPatchedAccessTokenMerkleTree=ze.getPatchedAccessTokenMerkleTree;exports.MerkleTreeIncompleteError=je.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=Qe.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=Xe.AbstractCommitmentsSnapshotService;exports.AbstractNullifierSnapshotService=Je.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=$e.AbstractSnapshotService;exports.AbstractEventService=et.AbstractEventService;exports.Utxo=tt.Utxo;exports.customTokenRegistry=rt.customTokenRegistry;exports.TokenChecker=ot.TokenChecker;exports.TransactionsManager=it.TransactionsManager;exports.TransactionType=j.TransactionType;exports.externalActionToTransactionType=j.externalActionToTransactionType;exports.VolatileHelper=nt.VolatileHelper;exports.MultiThreadedUtxoUtils=at.MultiThreadedUtxoUtils;exports.FileCacheDevice=st.FileCacheDevice;exports.LocalStorageCacheDevice=ct.LocalStorageCacheDevice;exports.FeeOverTransactionValueError=lt.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=Q.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=Q.rethrowKnownGasErrorIfPossible;exports.UserFriendlyErrorCodes=X.UserFriendlyErrorCodes;exports.transactionErrorCodes=X.transactionErrorCodes;exports.extractMessage=J.extractMessage;exports.getErrorMessage=J.getErrorMessage;exports.checkErrorForSnapshotRestore=dt.checkErrorForSnapshotRestore;exports.logError=ut.logError;exports.ErrorCategory=gt.ErrorCategory;exports.BabABI=p.BabABI;exports.BeefyVaultABI=p.BeefyVaultABI;exports.CurveReadingWrapperABI=p.CurveReadingWrapperABI;exports.CurveWrappedMainPoolABI=p.CurveWrappedMainPoolABI;exports.ERC20ABI=p.ERC20ABI;exports.GalxeABI=p.GalxeABI;exports.ISwapRouterABI=p.ISwapRouterABI;exports.factoryABI=p.factoryABI;exports.quoterV2ABI=p.quoterV2ABI;exports.transactionProverABI=p.transactionProverABI;exports.checkHinkalAccessToken=M.checkHinkalAccessToken;exports.mintAccessToken=M.mintAccessToken;exports.mintTokenCrossChain=M.mintTokenCrossChain;exports.openPassportWindow=pt.openPassportWindow;exports.openDefaultPassportWindow=At.openDefaultPassportWindow;exports.absBigInt=e.absBigInt;exports.beepsToPercentage=e.beepsToPercentage;exports.bigintApplySugar=e.bigintApplySugar;exports.bigintMax=e.bigintMax;exports.calculateAmountUsingBeeps=e.calculateAmountUsingBeeps;exports.calculateSum=e.calculateSum;exports.fixDecimalsAmount=e.fixDecimalsAmount;exports.getValueFirstNDigit=e.getValueFirstNDigit;exports.minBigInt=e.minBigInt;exports.toBigInt=e.toBigInt;exports.toBigIntOrUndefined=e.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=e.toCommaSeparatedNumberString;exports.toInt=e.toInt;exports.toNumberOrUndefined=e.toNumberOrUndefined;exports.trimLeadingZeros=e.trimLeadingZeros;exports.truncateTo18DecimalPlaces=e.truncateTo18DecimalPlaces;exports.getFilePath=h.getFilePath;exports.getHinkalCache=h.getHinkalCache;exports.loadTxsCache=h.loadTxsCache;exports.resetCache=h.resetCache;exports.saveTxsCache=h.saveTxsCache;exports.setHinkalCache=h.setHinkalCache;exports.createProvider=yt.createProvider;exports.decodeMetadata=C.decodeMetadata;exports.getActionFromMetadata=C.getActionFromMetadata;exports.getExternalActionIdFromNumber=C.getExternalActionIdFromNumber;exports.getExternalActionIdHash=C.getExternalActionIdHash;exports.getExternalMetadataHash=C.getExternalMetadataHash;exports.getERC20Token=O.getERC20Token;exports.getERC20TokenBySymbol=O.getERC20TokenBySymbol;exports.getHToken=O.getHToken;exports.requireEnv=Pt.requireEnv;exports.getSequence=N.getSequence;exports.promisify=N.promisify;exports.resolveSync=N.resolveSync;exports.convertIntegrationProviderToExternalActionId=Tt.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=kt.getInteractionFromAction;exports.outputUtxoProcessing=mt.outputUtxoProcessing;exports.processGasEstimates=Rt.processGasEstimates;exports.processAmountChanges=ht.processAmountChanges;exports.getFlatFees=St.getFlatFees;exports.getNetworkObject=$.getNetworkObject;exports.getNetworkType=$.getNetworkType;exports.getAxelarMigrationInfo=Ct.getAxelarMigrationInfo;exports.browserSupported=ee.browserSupported;exports.walletSupported=ee.walletSupported;exports.decodeTxInput=v.decodeTxInput;exports.decodeTxLogs=v.decodeTxLogs;exports.deserializeDecodedTxs=v.deserializeDecodedTxs;exports.serializeDecodedTxs=v.serializeDecodedTxs;exports.reloadPage=Et.reloadPage;exports.capitalizeFirstLetter=B.capitalizeFirstLetter;exports.isNullOrEmpty=B.isNullOrEmpty;exports.toTitleCase=B.toTitleCase;exports.isNicknameValid=It.isNicknameValid;exports.caseInsensitiveEqual=w.caseInsensitiveEqual;exports.lowerCaseIncludes=w.lowerCaseIncludes;exports.lowerCaseStartsWith=w.lowerCaseStartsWith;exports.waitLittle=bt.waitLittle;exports.patchRegistry=qt.patchRegistry;exports.createCacheDevice=_t.createCacheDevice;exports.debounce=te.debounce;exports.wait=te.wait;exports.calculateDollarValue=T.calculateDollarValue;exports.ethToWei=T.ethToWei;exports.getAmountInToken=T.getAmountInToken;exports.getAmountInWei=T.getAmountInWei;exports.getAmountInWeiOrZero=T.getAmountInWeiOrZero;exports.getAmountWithPrecision=T.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=T.getAmountWithPrecisionOrZero;exports.randomBigInt=T.randomBigInt;exports.toBigIntWithDecimals=T.toBigIntWithDecimals;exports.getInputUtxoAndBalance=re.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=re.getInputUtxosFromEncryptedOutputs;exports.addPaddingToUtxos=oe.addPaddingToUtxos;exports.getShieldedBalance=oe.getShieldedBalance;exports.getDepositEvents=ie.getDepositEvents;exports.retrieveEvents=ie.retrieveEvents;exports.balanceChangedHandler=vt.balanceChangedHandler;exports.getUniswapFee=D.getUniswapFee;exports.getUniswapPrice=D.getUniswapPrice;exports.getUniswapPriceHelper=D.getUniswapPriceHelper;exports.searchPoolAndFee=D.searchPoolAndFee;exports.getOdosPrice=Dt.getOdosPrice;exports.getOneInchPrice=xt.getOneInchPrice;exports.runContractFunction=Lt.runContractFunction;exports.constructZkProof=ft.constructZkProof;exports.constructEmporiumProof=Ft.constructEmporiumProof;exports.buildInNullifiers=l.buildInNullifiers;exports.buildOutCommitments=l.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=l.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=l.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=l.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=l.calcEncryptedOutputs;exports.calcPublicSignalCount=l.calcPublicSignalCount;exports.calcStealthAddressStructure=l.calcStealthAddressStructure;exports.createCallDataHash=l.createCallDataHash;exports.deserializeCircomData=l.deserializeCircomData;exports.serializeCircomData=l.serializeCircomData;exports.generateZkProof=Ut.generateZkProof;exports.getCRV=Mt.getCRV;exports.getCVX=Ot.getCVX;exports.determinePendleSwapType=E.determinePendleSwapType;exports.determinePendleSwapTypeApiRoute=E.determinePendleSwapTypeApiRoute;exports.erc20TokenFromPendleAsset=E.erc20TokenFromPendleAsset;exports.getAssetTypeFromPendleMarket=E.getAssetTypeFromPendleMarket;exports.getTokenIndexForPendleFlatFee=E.getTokenIndexForPendleFlatFee;exports.calculateStakeNullifier=I.calculateStakeNullifier;exports.createStakeCommitment=I.createStakeCommitment;exports.decryptStake=I.decryptStake;exports.encodeHStakeMetadata=I.encodeHStakeMetadata;exports.encryptStake=I.encryptStake;exports.emporiumOp=ne.emporiumOp;exports.encodeEmporiumMetadata=ne.encodeEmporiumMetadata;exports.OpType=ae.OpType;exports.produceOp=ae.produceOp;exports.dataBeefyApiConfig=se.dataBeefyApiConfig;exports.isBeefyDeposit=se.isBeefyDeposit;exports.defaultHookData=x.defaultHookData;exports.defaultHookDataArray=x.defaultHookDataArray;exports.defaultStealthAddressStructure=x.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=x.emptyStealthAddressStructure;exports.ContractType=Nt.ContractType;exports.ExternalActionId=Bt.ExternalActionId;exports.BeefyAction=a.BeefyAction;exports.ConvexAction=a.ConvexAction;exports.CurveAction=a.CurveAction;exports.EventType=a.EventType;exports.HinkalStakeAction=a.HinkalStakeAction;exports.INTERACTION=a.INTERACTION;exports.IntegrationProvider=a.IntegrationProvider;exports.LidoAction=a.LidoAction;exports.LidoVariant=a.LidoVariant;exports.PendleAction=a.PendleAction;exports.PendleLPAction=a.PendleLPAction;exports.StakeProvider=a.StakeProvider;exports.VolatileAction=a.VolatileAction;exports.KycVerificationResult=b.KycVerificationResult;exports.KycVerificationStatus=b.KycVerificationStatus;exports.Passports=b.Passports;exports.VERIFICATION_TYPE=b.VERIFICATION_TYPE;exports.VerificationTypes=b.VerificationTypes;exports.ApprovalType=wt.ApprovalType;exports.SlippageType=ce.SlippageType;exports.slippageLevels=ce.slippageLevels;exports.emptyDecodedTx=Vt.emptyDecodedTx;exports.MONTHS=o.MONTHS;exports.dayInMilliseconds=o.dayInMilliseconds;exports.divideMonthOnIntervals=o.divideMonthOnIntervals;exports.getCurrentWeek=o.getCurrentWeek;exports.getDateFromWeek=o.getDateFromWeek;exports.getNextDay=o.getNextDay;exports.getWeekTimestamps=o.getWeekTimestamps;exports.hasCertificationPeriodExpired=o.hasCertificationPeriodExpired;exports.hourInMilliseconds=o.hourInMilliseconds;exports.isWeekCurrent=o.isWeekCurrent;exports.minuteInMilliseconds=o.minuteInMilliseconds;exports.parseWeek=o.parseWeek;exports.secondInMilliseconds=o.secondInMilliseconds;exports.toDateString=o.toDateString;exports.weekInMilliseconds=o.weekInMilliseconds;exports.BonusType=t.BonusType;exports.CertifyType=t.CertifyType;exports.LP_TIER=t.LP_TIER;exports.PaymentStatus=t.PaymentStatus;exports.PointType=t.PointType;exports.RafflePrizeType=t.RafflePrizeType;exports.RewardPage=t.RewardPage;exports.RewardsHistoryDistribution=t.RewardsHistoryDistribution;exports.RewardsHistoryEligibility=t.RewardsHistoryEligibility;exports.RewardsHistorySnapshots=t.RewardsHistorySnapshots;exports.RewardsHistoryStatuses=t.RewardsHistoryStatuses;exports.RewardsPageTabs=t.RewardsPageTabs;exports.TIER_LEVEL=t.TIER_LEVEL;exports.Timeline=t.Timeline;exports.emptyUserPointsBreakdown=t.emptyUserPointsBreakdown;exports.emptyUserPointsResponse=t.emptyUserPointsResponse;exports.PendleAssetType=s.PendleAssetType;exports.PendleChains=s.PendleChains;exports.PendleDashboardTabs=s.PendleDashboardTabs;exports.PendleEarnTabs=s.PendleEarnTabs;exports.PendleMarketTransactionTypes=s.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=s.PendlePoolManualTabs;exports.PendlePoolTabs=s.PendlePoolTabs;exports.PendlePoolZapTabs=s.PendlePoolZapTabs;exports.PendleSwapType=s.PendleSwapType;exports.PendleTabs=s.PendleTabs;exports.PendleTradeGeneralTabs=s.PendleTradeGeneralTabs;exports.PendleTradeTabs=s.PendleTradeTabs;exports.StatType=L.StatType;exports.UpperTabPossibleValues=L.UpperTabPossibleValues;exports.curveNetworkNames=L.curveNetworkNames;exports.curvePools=L.curvePools;exports.HinkalStakeMode=Wt.HinkalStakeMode;exports.AdminActionType=le.AdminActionType;exports.AdminDetailedActionType=le.AdminDetailedActionType;exports.getERC20Registry=de.getERC20Registry;exports.getFixedRegistry=de.getFixedRegistry;exports.urlForBeefyVaultTokens=V.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=V.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=V.urlForRegularTokenPricesInBeefy;exports.PopularTokenSymbols=Ht.PopularTokenSymbols;exports.AmTokenABI=Gt.abi;exports.USDCABI=Kt.abi;exports.daiABI=Yt.abi;exports.USDRABI=Zt.abi;exports.USDR3CRVABI=zt.abi;exports.USDTABI=jt.abi;exports.WETHABI=Qt.abi;exports.BUSDABI=Xt.abi;exports.sanctionsListABI=Jt.abi;exports.lidoStEthAbi=$t;exports.lidoStMaticAbi=er;exports.lidoWithdrawalQueueERC721Abi=tr;exports.lidoWstEthAbi=rr;exports.poLidoNftAbi=or;exports.lidoStakeManagerAbi=ir;exports.optimismGasPriceOracleAbi=nr;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./API/getServerURL.cjs"),q=require("./API/getCoingeckoPrice.cjs"),ue=require("./API/callOneInchAPI.cjs"),ge=require("./API/callBeefyGraphAPI.cjs"),pe=require("./API/callRelayer.cjs"),Ae=require("./API/getAxelarGasEstimate.cjs"),ye=require("./API/getGasEstimates.cjs"),f=require("./API/getTokenPrice.cjs"),Pe=require("./API/checkRisk.cjs"),Te=require("./API/relayCalls.cjs"),ke=require("./API/API.cjs"),S=require("./API/callCurveAPI.cjs"),me=require("./API/getRelayerURL.cjs"),Re=require("./API/duneAPI.cjs"),he=require("./constants/assets.constants.cjs"),r=require("./constants/token-data/index.cjs"),Se=require("./constants/deploy-data/deploy-data-bnbMainnet.json.cjs"),Ce=require("./constants/deploy-data/deploy-data-arbMainnet.json.cjs"),Ee=require("./constants/deploy-data/deploy-data-ethMainnet.json.cjs"),Ie=require("./constants/deploy-data/deploy-data-optimism.json.cjs"),be=require("./constants/deploy-data/deploy-data-polygon.json.cjs"),qe=require("./constants/deploy-data/deploy-data-avalanche.json.cjs"),_e=require("./constants/deploy-data/deploy-data-base.json.cjs"),ve=require("./constants/deploy-data/deploy-data-localhost.json.cjs"),De=require("./constants/deploy-data/deploy-data-axelar1.json.cjs"),xe=require("./constants/deploy-data/deploy-data-axelar2.json.cjs"),c=require("./constants/chains.constants.cjs"),d=require("./constants/fees.constants.cjs"),R=require("./constants/contracts.constants.cjs"),A=require("./constants/kyc.constants.cjs"),i=require("./constants/server.constants.cjs"),y=require("./constants/vite.constants.cjs"),n=require("./constants/protocol.constants.cjs"),P=require("./constants/coingecko.constants.cjs"),Le=require("./constants/axelar.constants.cjs"),H=require("./constants/backend.constants.cjs"),m=require("./constants/crvCvx.registry.cjs"),fe=require("./constants/crvDynamic.registry.cjs"),u=require("./constants/lido.constants.cjs"),g=require("./constants/rewards.constants.cjs"),Fe=require("./constants/reorg-depths.constants.cjs"),G=require("./constants/beefy.registry.cjs"),k=require("./constants/pendle.registry.cjs"),F=require("./crypto/poseidon.cjs"),K=require("./crypto/babyJub.cjs"),Ue=require("./crypto/preProcessing.cjs"),Me=require("./data-structures/ValueCache/ValueCache.cjs"),_=require("./data-structures/crypto-keys/decodeUTXO.cjs"),U=require("./data-structures/crypto-keys/encryptDecryptUtxo.cjs"),Y=require("./data-structures/crypto-keys/keys.cjs"),Z=require("./data-structures/crypto-keys/keyUtils.cjs"),Oe=require("./data-structures/Hinkal/Hinkal.cjs"),Ne=require("./data-structures/Hinkal/hinkalActionBeefy.cjs"),Be=require("./data-structures/Hinkal/hinkalActionConvex.cjs"),we=require("./data-structures/Hinkal/hinkalActionCurve.cjs"),Ve=require("./data-structures/Hinkal/hinkalActionPendle.cjs"),z=require("./data-structures/Hinkal/hinkalDeposit.cjs"),We=require("./data-structures/Hinkal/hinkalSwap.cjs"),He=require("./data-structures/Hinkal/hinkalTransfer.cjs"),Ge=require("./data-structures/Hinkal/hinkalWithdraw.cjs"),Ke=require("./data-structures/Hinkal/hinkalPrivateWallet.cjs"),Ye=require("./data-structures/Hinkal/resetMerkleTrees.cjs"),Ze=require("./data-structures/merkle-tree/MerkleTree.cjs"),ze=require("./data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs"),je=require("./data-structures/merkle-tree/MerkleTreeIncompleteError.cjs"),Qe=require("./data-structures/event-service/AbstractAccessTokenSnapshotService.cjs"),Xe=require("./data-structures/event-service/AbstractCommitmentsSnapshotService.cjs"),Je=require("./data-structures/event-service/AbstractNullifierSnapshotService.cjs"),$e=require("./data-structures/event-service/AbstractSnapshotService.cjs"),et=require("./data-structures/event-service/AbstractEventService.cjs"),tt=require("./data-structures/utxo/Utxo.cjs"),rt=require("./data-structures/custom-token-registry/CustomTokenRegistry.cjs"),ot=require("./data-structures/token-price-fetcher/TokenChecker.cjs"),it=require("./data-structures/transactions-manager/TransactionsManager.cjs"),j=require("./data-structures/transactions-manager/history/history.types.cjs"),nt=require("./data-structures/volatile-helper/VolatileHelper.cjs"),at=require("./data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs"),st=require("./data-structures/cacheDevices/FileCacheDevice.cjs"),ct=require("./data-structures/cacheDevices/LocalStorageCacheDevice.cjs"),lt=require("./error-handling/customErrors/FeeOverTransactionValueError.cjs"),Q=require("./error-handling/customErrors/customErrors.helpers.cjs"),X=require("./error-handling/error-codes.constants.cjs"),J=require("./error-handling/get-error.message.cjs"),dt=require("./error-handling/handleErrorRestore.cjs"),ut=require("./error-handling/logError.cjs"),gt=require("./error-handling/types.cjs"),p=require("./externalABIs/index.cjs"),M=require("./functions/web3/functionCalls/accessTokenCalls.cjs"),pt=require("./functions/kyc/passportHelper.cjs"),At=require("./functions/kyc/openDefaultPassportWindow.cjs"),e=require("./functions/utils/amounts.utils.cjs"),h=require("./functions/utils/cacheFunctions.cjs"),yt=require("./functions/utils/create-provider.cjs"),C=require("./functions/utils/external-action.utils.cjs"),O=require("./functions/utils/erc20tokenFunctions.cjs"),Pt=require("./functions/utils/requireEnv.cjs"),N=require("./functions/utils/resolve-sync.utils.cjs"),Tt=require("./functions/utils/convertIntegrationProviderToExternalActionId.cjs"),kt=require("./functions/pre-transaction/interaction-to-action.cjs"),mt=require("./functions/pre-transaction/outputUtxoProcessing.cjs"),Rt=require("./functions/pre-transaction/process-gas-estimates.cjs"),ht=require("./functions/pre-transaction/processAmountChanges.cjs"),St=require("./functions/pre-transaction/getFlatFees.cjs"),$=require("./functions/utils/evmNetworkFunctions.cjs"),Ct=require("./functions/utils/axelar.utils.cjs"),ee=require("./functions/utils/userAgent.cjs"),v=require("./functions/utils/getDataFromTransaction.cjs"),Et=require("./functions/utils/reloadPage.cjs"),B=require("./functions/utils/string.utils.cjs"),It=require("./functions/utils/nickname.utils.cjs"),w=require("./functions/utils/caseInsensitive.utils.cjs"),bt=require("./functions/utils/time.utils.cjs"),qt=require("./functions/utils/volatile-patcher.utils.cjs"),_t=require("./functions/utils/cacheDevice.utils.cjs"),te=require("./functions/utils/process.utils.cjs"),T=require("./functions/web3/etherFunctions.cjs"),re=require("./functions/web3/events/getInputUtxoAndBalance.cjs"),oe=require("./functions/web3/events/getShieldedBalance.cjs"),ie=require("./functions/web3/events/web3RetrieveEvents.cjs"),vt=require("./functions/web3/events/balanceChangedHandler.cjs"),D=require("./functions/web3/uniswapAPI.cjs"),Dt=require("./functions/web3/odosAPI.cjs"),xt=require("./functions/web3/oneInchAPI.cjs"),Lt=require("./functions/web3/runContractFunction.cjs"),ft=require("./functions/snarkjs/constructGeneralZkProof.cjs"),Ft=require("./functions/snarkjs/constructEmporiumProof.cjs"),l=require("./functions/snarkjs/common.snarkjs.cjs"),Ut=require("./functions/snarkjs/generateZkProof.cjs"),Mt=require("./functions/protocols/curve.protocols.cjs"),Ot=require("./functions/protocols/convex.protocols.cjs"),E=require("./functions/protocols/pendle.helpers.cjs"),I=require("./functions/staking/index.cjs"),ne=require("./functions/private-wallet/emporium.helpers.cjs"),ae=require("./functions/private-wallet/opProducer.cjs"),se=require("./types/beefy.types.cjs"),x=require("./types/circom-data.types.cjs"),Nt=require("./types/ethereum-network.types.cjs"),Bt=require("./types/external-action.types.cjs"),a=require("./types/hinkal.types.cjs"),b=require("./types/kyc.types.cjs"),wt=require("./types/token.types.cjs"),ce=require("./types/slippage.types.cjs"),Vt=require("./types/transactions.types.cjs"),o=require("./types/time.types.cjs"),t=require("./types/rewards.types.cjs"),s=require("./types/pendle.types.cjs"),L=require("./types/curve.types.cjs"),Wt=require("./types/hinkal.stake.types.cjs"),le=require("./types/admin.types.cjs"),de=require("./constants/token-data/ERC20Registry.cjs"),V=require("./constants/token-data/tokenPricing.consts.cjs"),Ht=require("./constants/token-data/popularTokens.constants.cjs"),Gt=require("./externalABIs/amToken.cjs"),Kt=require("./externalABIs/USDC.cjs"),Yt=require("./externalABIs/DAI.cjs"),Zt=require("./externalABIs/USDR.cjs"),zt=require("./externalABIs/USDR3CRV.cjs"),jt=require("./externalABIs/USDT.cjs"),Qt=require("./externalABIs/WETH.cjs"),Xt=require("./externalABIs/BUSD.cjs"),Jt=require("./externalABIs/SanctionsList.cjs"),$t=require("./externalABIs/LidoStEthAbi.json.cjs"),er=require("./externalABIs/LidoStMaticAbi.json.cjs"),tr=require("./externalABIs/LidoWithdrawalQueueERC721Abi.json.cjs"),rr=require("./externalABIs/LidoWstEthAbi.json.cjs"),or=require("./externalABIs/PoLidoNftAbi.json.cjs"),ir=require("./externalABIs/LidoStakeManagerAbi.json.cjs"),nr=require("./externalABIs/OptimismGasPriceOracle.json.cjs");exports.getDataServerURL=W.getDataServerURL;exports.getServerURL=W.getServerURL;exports.getCoingeckoPrice=q.getCoingeckoPrice;exports.getCoingeckoPrice2=q.getCoingeckoPrice2;exports.getCoingeckoPrices=q.getCoingeckoPrices;exports.getCoingeckoTokenList=q.getCoingeckoTokenList;exports.callOneInchAPI=ue.callOneInchAPI;exports.getBeefyHistoricalChartData=ge.getBeefyHistoricalChartData;exports.callRelayerTransactAPI=pe.callRelayerTransactAPI;exports.getAxelarGasEstimate=Ae.getAxelarGasEstimate;exports.getGasEstimates=ye.getGasEstimates;exports.getTokenPrice=f.getTokenPrice;exports.getTokenPriceEth=f.getTokenPriceEth;exports.getTokenPrices=f.getTokenPrices;exports.checkRisk=Pe.checkRisk;exports.getIdleRelay=Te.getIdleRelay;exports.API=ke.API;exports.getCurvePools=S.getCurvePools;exports.getCurvePoolsforPriceFetching=S.getCurvePoolsforPriceFetching;exports.getExtendedPoolInfo=S.getExtendedPoolInfo;exports.lpTokens=S.lpTokens;exports.lpTokensToBasePool=S.lpTokensToBasePool;exports.getRelayerURL=me.getRelayerURL;exports.getPublicWalletBalance=Re.getPublicWalletBalance;exports.IMAGE_PATHS=he.IMAGE_PATHS;exports.arbMainnetRegistry=r.arbMainnetRegistry;exports.arbMainnetRegistryFixed=r.arbMainnetRegistryFixed;exports.avalancheRegistry=r.avalancheRegistry;exports.avalancheRegistryFixed=r.avalancheRegistryFixed;exports.baseRegistry=r.baseRegistry;exports.baseRegistryFixed=r.baseRegistryFixed;exports.bnbMainnetRegistry=r.bnbMainnetRegistry;exports.bnbMainnetRegistryFixed=r.bnbMainnetRegistryFixed;exports.ethMainnetRegistry=r.ethMainnetRegistry;exports.ethMainnetRegistryFixed=r.ethMainnetRegistryFixed;exports.localhostRegistry=r.localhostRegistry;exports.optimismRegistry=r.optimismRegistry;exports.optimismRegistryFixed=r.optimismRegistryFixed;exports.polygonRegistry=r.polygonRegistry;exports.polygonRegistryFixed=r.polygonRegistryFixed;exports.bnbMainnetData=Se.default;exports.arbMainnetData=Ce.default;exports.ethMainnetData=Ee.default;exports.optimismData=Ie.default;exports.polygonData=be.default;exports.avalancheData=qe.default;exports.baseData=_e.default;exports.localhostData=ve.default;exports.axelar1Data=De.default;exports.axelar2Data=xe.default;exports.EthereumNetworkType=c.EthereumNetworkType;exports.chainIds=c.chainIds;exports.chainIdsByType=c.chainIdsByType;exports.crossChainAccessTokenNetworks=c.crossChainAccessTokenNetworks;exports.getNonLocalhostChainId=c.getNonLocalhostChainId;exports.isLocalNetwork=c.isLocalNetwork;exports.isOptimismBedrockLike=c.isOptimismBedrockLike;exports.isOptimismEcotoneLike=c.isOptimismEcotoneLike;exports.isOptimismLike=c.isOptimismLike;exports.localhostNetwork=c.localhostNetwork;exports.networkRegistry=c.networkRegistry;exports.HINKAL_EXTERNAL_ACTION_FEE=d.HINKAL_EXTERNAL_ACTION_FEE;exports.HINKAL_UNIVERSAL_FEE=d.HINKAL_UNIVERSAL_FEE;exports.getAmountAfterRelayAndFlatFees=d.getAmountAfterRelayAndFlatFees;exports.getAmountAfterRelayAndFlatFeesAndSlippage=d.getAmountAfterRelayAndFlatFeesAndSlippage;exports.getAmountAfterRelayFee=d.getAmountAfterRelayFee;exports.getAmountAfterSlippage=d.getAmountAfterSlippage;exports.getAmountWithoutFee=d.getAmountWithoutFee;exports.getHinkalFeeRateInBeeps=d.getHinkalFeeRateInBeeps;exports.getRelayFee=d.getRelayFee;exports.getSlippageFee=d.getSlippageFee;exports.contractMetadataMapping=R.contractMetadataMapping;exports.getHinkalParameters=R.getHinkalParameters;exports.uniswapV2PoolData=R.uniswapV2PoolData;exports.uniswapV3FactoryData=R.uniswapV3FactoryData;exports.uniswapV3PoolData=R.uniswapV3PoolData;exports.uniswapV3QuoterData=R.uniswapV3QuoterData;exports.AIPRISE_KYB_TEMPLATE_ID_PROD=A.AIPRISE_KYB_TEMPLATE_ID_PROD;exports.AIPRISE_KYC_TEMPLATE_ID_PROD=A.AIPRISE_KYC_TEMPLATE_ID_PROD;exports.RECLAIM_MESSAGE_TO_SIGN=A.RECLAIM_MESSAGE_TO_SIGN;exports.ReclaimPassports=A.ReclaimPassports;exports.StandardPassports=A.StandardPassports;exports.SupportedPassports=A.SupportedPassports;exports.aipriseBaseOnboardingProductionUrl=A.aipriseBaseOnboardingProductionUrl;exports.aipriseBaseOnboardingSandboxUrl=A.aipriseBaseOnboardingSandboxUrl;exports.supportedPassportLinks=A.supportedPassportLinks;exports.API_CONFIG=i.API_CONFIG;exports.DATA_SERVER_CONFIG=i.DATA_SERVER_CONFIG;exports.DATA_SERVER_PORT=i.DATA_SERVER_PORT;exports.DATA_SERVER_URL_LOCAL=i.DATA_SERVER_URL_LOCAL;exports.DATA_SERVER_URL_PRODUCTION=i.DATA_SERVER_URL_PRODUCTION;exports.PLAYGROUND_RELAYER_URLS=i.PLAYGROUND_RELAYER_URLS;exports.PLAYGROUND_SERVER_URLS=i.PLAYGROUND_SERVER_URLS;exports.PLAYGROUND_URL=i.PLAYGROUND_URL;exports.RELAYER_CONFIG=i.RELAYER_CONFIG;exports.RELAYER_URLS=i.RELAYER_URLS;exports.SERVER_URLS=i.SERVER_URLS;exports.STAGING_RELAYER_URLS=i.STAGING_RELAYER_URLS;exports.STAGING_SERVER_URLS=i.STAGING_SERVER_URLS;exports.STAGING_URL=i.STAGING_URL;exports.DEPLOYMENT_MODE=y.DEPLOYMENT_MODE;exports.deploymentMode=y.deploymentMode;exports.isDevelopment=y.isDevelopment;exports.isNode=y.isNode;exports.isNotClientProduction=y.isNotClientProduction;exports.isNotProduction=y.isNotProduction;exports.isPlayground=y.isPlayground;exports.isStaging=y.isStaging;exports.isWebpack=y.isWebpack;exports.CIRCOM_P=n.CIRCOM_P;exports.CIRCOM_P_HALF=n.CIRCOM_P_HALF;exports.beefyChainIds=n.beefyChainIds;exports.crvSymbol=n.crvSymbol;exports.curveWithdrawGasTokenAddress=n.curveWithdrawGasTokenAddress;exports.curveZeroAddress=n.curveZeroAddress;exports.cvxSymbol=n.cvxSymbol;exports.ethVolatileAddress=n.ethVolatileAddress;exports.oneInchZeroAddress=n.oneInchZeroAddress;exports.ownerPublicKey=n.ownerPublicKey;exports.permitSignatureValidFor=n.permitSignatureValidFor;exports.signaturePhrase=n.signaturePhrase;exports.threePoolSymbol=n.threePoolSymbol;exports.zeroAddress=n.zeroAddress;exports.COINGECKO_API_KEY=P.COINGECKO_API_KEY;exports.CoinGeckoChainLabels=P.CoinGeckoChainLabels;exports.coingeckoPriceUrl=P.coingeckoPriceUrl;exports.coingeckoPriceUrl2=P.coingeckoPriceUrl2;exports.coingeckoTokenListUrl=P.coingeckoTokenListUrl;exports.getCoingeckoIdForNativeTokens=P.getCoingeckoIdForNativeTokens;exports.getCoingeckoPlatform=P.getCoingeckoPlatform;exports.proCoingeckoUrl=P.proCoingeckoUrl;exports.proHeader=P.proHeader;exports.AxelarRegistry=Le.AxelarRegistry;exports.NETWORKS=H.NETWORKS;exports.getGasStationUrl=H.getGasStationUrl;exports.arbMainnetCrvCvxRegistry=m.arbMainnetCrvCvxRegistry;exports.avalancheCrvCvxRegistry=m.avalancheCrvCvxRegistry;exports.baseCrvCvxRegistry=m.baseCrvCvxRegistry;exports.ethCrvCvxRegistry=m.ethCrvCvxRegistry;exports.getCrvCvxWithChainId=m.getCrvCvxWithChainId;exports.optimismCrvCvxRegistry=m.optimismCrvCvxRegistry;exports.polygonCrvCvxRegistry=m.polygonCrvCvxRegistry;exports.getCalcTokenAmountWithDynamicArray=fe.getCalcTokenAmountWithDynamicArray;exports.ethSymbol=u.ethSymbol;exports.lidoStEthContractAddress=u.lidoStEthContractAddress;exports.lidoStMaticAddress=u.lidoStMaticAddress;exports.lidoStakeManagerAddress=u.lidoStakeManagerAddress;exports.lidoWithdrawalQueueERC721Address=u.lidoWithdrawalQueueERC721Address;exports.lidoWstEthContractAddress=u.lidoWstEthContractAddress;exports.maticSymbol=u.maticSymbol;exports.poLidoNftAddress=u.poLidoNftAddress;exports.stMaticSymbol=u.stMaticSymbol;exports.wstEthSymbol=u.wstEthSymbol;exports.ACCESS_TOKEN_MINTING_POINTS=g.ACCESS_TOKEN_MINTING_POINTS;exports.CERTIFICATION_DISABLE_WEEK=g.CERTIFICATION_DISABLE_WEEK;exports.REWARD_RECEIVABLE_TOKEN_SYMBOLS=g.REWARD_RECEIVABLE_TOKEN_SYMBOLS;exports.RafflePrizePoints=g.RafflePrizePoints;exports.boostAmounts=g.boostAmounts;exports.lpLink=g.lpLink;exports.lpProgramStartWeek=g.lpProgramStartWeek;exports.pointsLink=g.pointsLink;exports.raffleProgramStartWeek=g.raffleProgramStartWeek;exports.referralLink=g.referralLink;exports.blockReorgDepth=Fe.blockReorgDepth;exports.ethBeefyRegistry=G.ethBeefyRegistry;exports.getBeefyRegistryWithChainId=G.getBeefyRegistryWithChainId;exports.arbPendleRegistry=k.arbPendleRegistry;exports.bnbPendleRegistry=k.bnbPendleRegistry;exports.ethPendleRegistry=k.ethPendleRegistry;exports.findSyAddress=k.findSyAddress;exports.getPendleRegistryWithChainId=k.getPendleRegistryWithChainId;exports.getYtTokensWithChainId=k.getYtTokensWithChainId;exports.isYtToken=k.isYtToken;exports.optimismPendleRegistry=k.optimismPendleRegistry;exports.poseidonFunction=F.poseidonFunction;exports.poseidonHash=F.poseidonHash;exports.poseidonHolder=F.poseidonHolder;exports.babyJubInstance=K.babyJubInstance;exports.jubHolder=K.jubHolder;exports.preProcessing=Ue.preProcessing;exports.ValueCache=Me.ValueCache;exports.abiDecodeUtxo=_.abiDecodeUtxo;exports.checkUtxoSignature=_.checkUtxoSignature;exports.decodeUtxo=_.decodeUtxo;exports.decodeUtxoConstructorArgs=_.decodeUtxoConstructorArgs;exports.decryptUtxo=U.decryptUtxo;exports.decryptUtxoConstructorArgs=U.decryptUtxoConstructorArgs;exports.encryptUtxo=U.encryptUtxo;exports.EncryptionKeyPairDefaultValue=Y.EncryptionKeyPairDefaultValue;exports.UserKeys=Y.UserKeys;exports.getCircomSign=Z.getCircomSign;exports.isCircomNegative=Z.isCircomNegative;exports.Hinkal=Oe.Hinkal;exports.hinkalActionBeefy=Ne.hinkalActionBeefy;exports.hinkalActionConvex=Be.hinkalActionConvex;exports.hinkalActionCurve=we.hinkalActionCurve;exports.hinkalActionPendle=Ve.hinkalActionPendle;exports.hinkalDeposit=z.hinkalDeposit;exports.hinkalDepositForOther=z.hinkalDepositForOther;exports.hinkalSwap=We.hinkalSwap;exports.hinkalTransfer=He.hinkalTransfer;exports.hinkalWithdraw=Ge.hinkalWithdraw;exports.hinkalPrivateWallet=Ke.hinkalPrivateWallet;exports.resetMerkleTrees=Ye.resetMerkleTrees;exports.MerkleTree=Ze.MerkleTree;exports.getPatchedAccessTokenMerkleTree=ze.getPatchedAccessTokenMerkleTree;exports.MerkleTreeIncompleteError=je.MerkleTreeIncompleteError;exports.AbstractAccessTokenSnapshotService=Qe.AbstractAccessTokenSnapshotService;exports.AbstractCommitmentsSnapshotService=Xe.AbstractCommitmentsSnapshotService;exports.AbstractNullifierSnapshotService=Je.AbstractNullifierSnapshotService;exports.AbstractSnapshotService=$e.AbstractSnapshotService;exports.AbstractEventService=et.AbstractEventService;exports.Utxo=tt.Utxo;exports.customTokenRegistry=rt.customTokenRegistry;exports.TokenChecker=ot.TokenChecker;exports.TransactionsManager=it.TransactionsManager;exports.TransactionType=j.TransactionType;exports.externalActionToTransactionType=j.externalActionToTransactionType;exports.VolatileHelper=nt.VolatileHelper;exports.MultiThreadedUtxoUtils=at.MultiThreadedUtxoUtils;exports.FileCacheDevice=st.FileCacheDevice;exports.LocalStorageCacheDevice=ct.LocalStorageCacheDevice;exports.FeeOverTransactionValueError=lt.FeeOverTransactionValueError;exports.getGenericFeeOverTransactionValueErrorMessage=Q.getGenericFeeOverTransactionValueErrorMessage;exports.rethrowKnownGasErrorIfPossible=Q.rethrowKnownGasErrorIfPossible;exports.UserFriendlyErrorCodes=X.UserFriendlyErrorCodes;exports.transactionErrorCodes=X.transactionErrorCodes;exports.extractMessage=J.extractMessage;exports.getErrorMessage=J.getErrorMessage;exports.checkErrorForSnapshotRestore=dt.checkErrorForSnapshotRestore;exports.logError=ut.logError;exports.ErrorCategory=gt.ErrorCategory;exports.BabABI=p.BabABI;exports.BeefyVaultABI=p.BeefyVaultABI;exports.CurveReadingWrapperABI=p.CurveReadingWrapperABI;exports.CurveWrappedMainPoolABI=p.CurveWrappedMainPoolABI;exports.ERC20ABI=p.ERC20ABI;exports.GalxeABI=p.GalxeABI;exports.ISwapRouterABI=p.ISwapRouterABI;exports.factoryABI=p.factoryABI;exports.quoterV2ABI=p.quoterV2ABI;exports.transactionProverABI=p.transactionProverABI;exports.checkHinkalAccessToken=M.checkHinkalAccessToken;exports.mintAccessToken=M.mintAccessToken;exports.mintTokenCrossChain=M.mintTokenCrossChain;exports.openPassportWindow=pt.openPassportWindow;exports.openDefaultPassportWindow=At.openDefaultPassportWindow;exports.absBigInt=e.absBigInt;exports.beepsToPercentage=e.beepsToPercentage;exports.bigintApplySugar=e.bigintApplySugar;exports.bigintMax=e.bigintMax;exports.calculateAmountUsingBeeps=e.calculateAmountUsingBeeps;exports.calculateSum=e.calculateSum;exports.fixDecimalsAmount=e.fixDecimalsAmount;exports.getValueFirstNDigit=e.getValueFirstNDigit;exports.minBigInt=e.minBigInt;exports.toBigInt=e.toBigInt;exports.toBigIntOrUndefined=e.toBigIntOrUndefined;exports.toCommaSeparatedNumberString=e.toCommaSeparatedNumberString;exports.toInt=e.toInt;exports.toNumberOrUndefined=e.toNumberOrUndefined;exports.trimLeadingZeros=e.trimLeadingZeros;exports.truncateTo18DecimalPlaces=e.truncateTo18DecimalPlaces;exports.getFilePath=h.getFilePath;exports.getHinkalCache=h.getHinkalCache;exports.loadTxsCache=h.loadTxsCache;exports.resetCache=h.resetCache;exports.saveTxsCache=h.saveTxsCache;exports.setHinkalCache=h.setHinkalCache;exports.createProvider=yt.createProvider;exports.decodeMetadata=C.decodeMetadata;exports.getActionFromMetadata=C.getActionFromMetadata;exports.getExternalActionIdFromNumber=C.getExternalActionIdFromNumber;exports.getExternalActionIdHash=C.getExternalActionIdHash;exports.getExternalMetadataHash=C.getExternalMetadataHash;exports.getERC20Token=O.getERC20Token;exports.getERC20TokenBySymbol=O.getERC20TokenBySymbol;exports.getHToken=O.getHToken;exports.requireEnv=Pt.requireEnv;exports.getSequence=N.getSequence;exports.promisify=N.promisify;exports.resolveSync=N.resolveSync;exports.convertIntegrationProviderToExternalActionId=Tt.convertIntegrationProviderToExternalActionId;exports.getInteractionFromAction=kt.getInteractionFromAction;exports.outputUtxoProcessing=mt.outputUtxoProcessing;exports.processGasEstimates=Rt.processGasEstimates;exports.processAmountChanges=ht.processAmountChanges;exports.getFlatFees=St.getFlatFees;exports.getNetworkObject=$.getNetworkObject;exports.getNetworkType=$.getNetworkType;exports.getAxelarMigrationInfo=Ct.getAxelarMigrationInfo;exports.browserSupported=ee.browserSupported;exports.walletSupported=ee.walletSupported;exports.decodeTxInput=v.decodeTxInput;exports.decodeTxLogs=v.decodeTxLogs;exports.deserializeDecodedTxs=v.deserializeDecodedTxs;exports.serializeDecodedTxs=v.serializeDecodedTxs;exports.reloadPage=Et.reloadPage;exports.capitalizeFirstLetter=B.capitalizeFirstLetter;exports.isNullOrEmpty=B.isNullOrEmpty;exports.toTitleCase=B.toTitleCase;exports.isNicknameValid=It.isNicknameValid;exports.caseInsensitiveEqual=w.caseInsensitiveEqual;exports.lowerCaseIncludes=w.lowerCaseIncludes;exports.lowerCaseStartsWith=w.lowerCaseStartsWith;exports.waitLittle=bt.waitLittle;exports.patchRegistry=qt.patchRegistry;exports.createCacheDevice=_t.createCacheDevice;exports.debounce=te.debounce;exports.wait=te.wait;exports.calculateDollarValue=T.calculateDollarValue;exports.ethToWei=T.ethToWei;exports.getAmountInToken=T.getAmountInToken;exports.getAmountInWei=T.getAmountInWei;exports.getAmountInWeiOrZero=T.getAmountInWeiOrZero;exports.getAmountWithPrecision=T.getAmountWithPrecision;exports.getAmountWithPrecisionOrZero=T.getAmountWithPrecisionOrZero;exports.randomBigInt=T.randomBigInt;exports.toBigIntWithDecimals=T.toBigIntWithDecimals;exports.getInputUtxoAndBalance=re.getInputUtxoAndBalance;exports.getInputUtxosFromEncryptedOutputs=re.getInputUtxosFromEncryptedOutputs;exports.addPaddingToUtxos=oe.addPaddingToUtxos;exports.getShieldedBalance=oe.getShieldedBalance;exports.getDepositEvents=ie.getDepositEvents;exports.retrieveEvents=ie.retrieveEvents;exports.balanceChangedHandler=vt.balanceChangedHandler;exports.getUniswapFee=D.getUniswapFee;exports.getUniswapPrice=D.getUniswapPrice;exports.getUniswapPriceHelper=D.getUniswapPriceHelper;exports.searchPoolAndFee=D.searchPoolAndFee;exports.getOdosPrice=Dt.getOdosPrice;exports.getOneInchPrice=xt.getOneInchPrice;exports.runContractFunction=Lt.runContractFunction;exports.constructZkProof=ft.constructZkProof;exports.constructEmporiumProof=Ft.constructEmporiumProof;exports.buildInNullifiers=l.buildInNullifiers;exports.buildOutCommitments=l.buildOutCommitments;exports.calcAccessTokenSiblingsAndSides=l.calcAccessTokenSiblingsAndSides;exports.calcAmountChanges=l.calcAmountChanges;exports.calcCommitmentsSiblingAndSides=l.calcCommitmentsSiblingAndSides;exports.calcEncryptedOutputs=l.calcEncryptedOutputs;exports.calcPublicSignalCount=l.calcPublicSignalCount;exports.calcStealthAddressStructure=l.calcStealthAddressStructure;exports.createCallDataHash=l.createCallDataHash;exports.deserializeCircomData=l.deserializeCircomData;exports.serializeCircomData=l.serializeCircomData;exports.generateZkProof=Ut.generateZkProof;exports.getCRV=Mt.getCRV;exports.getCVX=Ot.getCVX;exports.determinePendleSwapType=E.determinePendleSwapType;exports.determinePendleSwapTypeApiRoute=E.determinePendleSwapTypeApiRoute;exports.erc20TokenFromPendleAsset=E.erc20TokenFromPendleAsset;exports.getAssetTypeFromPendleMarket=E.getAssetTypeFromPendleMarket;exports.getTokenIndexForPendleFlatFee=E.getTokenIndexForPendleFlatFee;exports.calculateStakeNullifier=I.calculateStakeNullifier;exports.createStakeCommitment=I.createStakeCommitment;exports.decryptStake=I.decryptStake;exports.encodeHStakeMetadata=I.encodeHStakeMetadata;exports.encryptStake=I.encryptStake;exports.emporiumOp=ne.emporiumOp;exports.encodeEmporiumMetadata=ne.encodeEmporiumMetadata;exports.OpType=ae.OpType;exports.produceOp=ae.produceOp;exports.dataBeefyApiConfig=se.dataBeefyApiConfig;exports.isBeefyDeposit=se.isBeefyDeposit;exports.defaultHookData=x.defaultHookData;exports.defaultHookDataArray=x.defaultHookDataArray;exports.defaultStealthAddressStructure=x.defaultStealthAddressStructure;exports.emptyStealthAddressStructure=x.emptyStealthAddressStructure;exports.ContractType=Nt.ContractType;exports.ExternalActionId=Bt.ExternalActionId;exports.BeefyAction=a.BeefyAction;exports.ConvexAction=a.ConvexAction;exports.CurveAction=a.CurveAction;exports.EventType=a.EventType;exports.HinkalStakeAction=a.HinkalStakeAction;exports.INTERACTION=a.INTERACTION;exports.IntegrationProvider=a.IntegrationProvider;exports.LidoAction=a.LidoAction;exports.LidoVariant=a.LidoVariant;exports.PendleAction=a.PendleAction;exports.PendleLPAction=a.PendleLPAction;exports.StakeProvider=a.StakeProvider;exports.UserProgress=a.UserProgress;exports.VolatileAction=a.VolatileAction;exports.KycVerificationResult=b.KycVerificationResult;exports.KycVerificationStatus=b.KycVerificationStatus;exports.Passports=b.Passports;exports.VERIFICATION_TYPE=b.VERIFICATION_TYPE;exports.VerificationTypes=b.VerificationTypes;exports.ApprovalType=wt.ApprovalType;exports.SlippageType=ce.SlippageType;exports.slippageLevels=ce.slippageLevels;exports.emptyDecodedTx=Vt.emptyDecodedTx;exports.MONTHS=o.MONTHS;exports.dayInMilliseconds=o.dayInMilliseconds;exports.divideMonthOnIntervals=o.divideMonthOnIntervals;exports.getCurrentWeek=o.getCurrentWeek;exports.getDateFromWeek=o.getDateFromWeek;exports.getNextDay=o.getNextDay;exports.getWeekTimestamps=o.getWeekTimestamps;exports.hasCertificationPeriodExpired=o.hasCertificationPeriodExpired;exports.hourInMilliseconds=o.hourInMilliseconds;exports.isWeekCurrent=o.isWeekCurrent;exports.minuteInMilliseconds=o.minuteInMilliseconds;exports.parseWeek=o.parseWeek;exports.secondInMilliseconds=o.secondInMilliseconds;exports.toDateString=o.toDateString;exports.weekInMilliseconds=o.weekInMilliseconds;exports.BonusType=t.BonusType;exports.CertifyType=t.CertifyType;exports.LP_TIER=t.LP_TIER;exports.PaymentStatus=t.PaymentStatus;exports.PointType=t.PointType;exports.RafflePrizeType=t.RafflePrizeType;exports.RewardPage=t.RewardPage;exports.RewardsHistoryDistribution=t.RewardsHistoryDistribution;exports.RewardsHistoryEligibility=t.RewardsHistoryEligibility;exports.RewardsHistorySnapshots=t.RewardsHistorySnapshots;exports.RewardsHistoryStatuses=t.RewardsHistoryStatuses;exports.RewardsPageTabs=t.RewardsPageTabs;exports.TIER_LEVEL=t.TIER_LEVEL;exports.Timeline=t.Timeline;exports.emptyUserPointsBreakdown=t.emptyUserPointsBreakdown;exports.emptyUserPointsResponse=t.emptyUserPointsResponse;exports.PendleAssetType=s.PendleAssetType;exports.PendleChains=s.PendleChains;exports.PendleDashboardTabs=s.PendleDashboardTabs;exports.PendleEarnTabs=s.PendleEarnTabs;exports.PendleMarketTransactionTypes=s.PendleMarketTransactionTypes;exports.PendlePoolManualTabs=s.PendlePoolManualTabs;exports.PendlePoolTabs=s.PendlePoolTabs;exports.PendlePoolZapTabs=s.PendlePoolZapTabs;exports.PendleSwapType=s.PendleSwapType;exports.PendleTabs=s.PendleTabs;exports.PendleTradeGeneralTabs=s.PendleTradeGeneralTabs;exports.PendleTradeTabs=s.PendleTradeTabs;exports.StatType=L.StatType;exports.UpperTabPossibleValues=L.UpperTabPossibleValues;exports.curveNetworkNames=L.curveNetworkNames;exports.curvePools=L.curvePools;exports.HinkalStakeMode=Wt.HinkalStakeMode;exports.AdminActionType=le.AdminActionType;exports.AdminDetailedActionType=le.AdminDetailedActionType;exports.getERC20Registry=de.getERC20Registry;exports.getFixedRegistry=de.getFixedRegistry;exports.urlForBeefyVaultTokens=V.urlForBeefyVaultTokens;exports.urlForBeefyVaultTotalInUSD=V.urlForBeefyVaultTotalInUSD;exports.urlForRegularTokenPricesInBeefy=V.urlForRegularTokenPricesInBeefy;exports.PopularTokenSymbols=Ht.PopularTokenSymbols;exports.AmTokenABI=Gt.abi;exports.USDCABI=Kt.abi;exports.daiABI=Yt.abi;exports.USDRABI=Zt.abi;exports.USDR3CRVABI=zt.abi;exports.USDTABI=jt.abi;exports.WETHABI=Qt.abi;exports.BUSDABI=Xt.abi;exports.sanctionsListABI=Jt.abi;exports.lidoStEthAbi=$t;exports.lidoStMaticAbi=er;exports.lidoWithdrawalQueueERC721Abi=tr;exports.lidoWstEthAbi=rr;exports.poLidoNftAbi=or;exports.lidoStakeManagerAbi=ir;exports.optimismGasPriceOracleAbi=nr;
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDataServerURL as
|
|
1
|
+
import { getDataServerURL as o, getServerURL as t } from "./API/getServerURL.mjs";
|
|
2
2
|
import { getCoingeckoPrice as i, getCoingeckoPrice2 as n, getCoingeckoPrices as s, getCoingeckoTokenList as p } from "./API/getCoingeckoPrice.mjs";
|
|
3
3
|
import { callOneInchAPI as m } from "./API/callOneInchAPI.mjs";
|
|
4
4
|
import { getBeefyHistoricalChartData as d } from "./API/callBeefyGraphAPI.mjs";
|
|
@@ -13,7 +13,7 @@ import { getCurvePools as v, getCurvePoolsforPriceFetching as L, getExtendedPool
|
|
|
13
13
|
import { getRelayerURL as B } from "./API/getRelayerURL.mjs";
|
|
14
14
|
import { getPublicWalletBalance as O } from "./API/duneAPI.mjs";
|
|
15
15
|
import { IMAGE_PATHS as V } from "./constants/assets.constants.mjs";
|
|
16
|
-
import { arbMainnetRegistry as H, arbMainnetRegistryFixed as G, avalancheRegistry as K, avalancheRegistryFixed as Y, baseRegistry as z, baseRegistryFixed as Z, bnbMainnetRegistry as q, bnbMainnetRegistryFixed as Q, ethMainnetRegistry as j, ethMainnetRegistryFixed as X, localhostRegistry as J, optimismRegistry as $, optimismRegistryFixed as ee, polygonRegistry as re, polygonRegistryFixed as
|
|
16
|
+
import { arbMainnetRegistry as H, arbMainnetRegistryFixed as G, avalancheRegistry as K, avalancheRegistryFixed as Y, baseRegistry as z, baseRegistryFixed as Z, bnbMainnetRegistry as q, bnbMainnetRegistryFixed as Q, ethMainnetRegistry as j, ethMainnetRegistryFixed as X, localhostRegistry as J, optimismRegistry as $, optimismRegistryFixed as ee, polygonRegistry as re, polygonRegistryFixed as oe } from "./constants/token-data/index.mjs";
|
|
17
17
|
import { default as ae } from "./constants/deploy-data/deploy-data-bnbMainnet.json.mjs";
|
|
18
18
|
import { default as ne } from "./constants/deploy-data/deploy-data-arbMainnet.json.mjs";
|
|
19
19
|
import { default as pe } from "./constants/deploy-data/deploy-data-ethMainnet.json.mjs";
|
|
@@ -27,42 +27,42 @@ import { default as Se } from "./constants/deploy-data/deploy-data-axelar2.json.
|
|
|
27
27
|
import { EthereumNetworkType as ke, chainIds as Ie, chainIdsByType as Ee, crossChainAccessTokenNetworks as he, getNonLocalhostChainId as be, isLocalNetwork as De, isOptimismBedrockLike as ve, isOptimismEcotoneLike as Le, isOptimismLike as _e, localhostNetwork as Fe, networkRegistry as Me } from "./constants/chains.constants.mjs";
|
|
28
28
|
import { HINKAL_EXTERNAL_ACTION_FEE as Be, HINKAL_UNIVERSAL_FEE as Ne, getAmountAfterRelayAndFlatFees as Oe, getAmountAfterRelayAndFlatFeesAndSlippage as we, getAmountAfterRelayFee as Ve, getAmountAfterSlippage as We, getAmountWithoutFee as He, getHinkalFeeRateInBeeps as Ge, getRelayFee as Ke, getSlippageFee as Ye } from "./constants/fees.constants.mjs";
|
|
29
29
|
import { contractMetadataMapping as Ze, getHinkalParameters as qe, uniswapV2PoolData as Qe, uniswapV3FactoryData as je, uniswapV3PoolData as Xe, uniswapV3QuoterData as Je } from "./constants/contracts.constants.mjs";
|
|
30
|
-
import { AIPRISE_KYB_TEMPLATE_ID_PROD as er, AIPRISE_KYC_TEMPLATE_ID_PROD as rr, RECLAIM_MESSAGE_TO_SIGN as
|
|
30
|
+
import { AIPRISE_KYB_TEMPLATE_ID_PROD as er, AIPRISE_KYC_TEMPLATE_ID_PROD as rr, RECLAIM_MESSAGE_TO_SIGN as or, ReclaimPassports as tr, StandardPassports as ar, SupportedPassports as ir, aipriseBaseOnboardingProductionUrl as nr, aipriseBaseOnboardingSandboxUrl as sr, supportedPassportLinks as pr } from "./constants/kyc.constants.mjs";
|
|
31
31
|
import { API_CONFIG as mr, DATA_SERVER_CONFIG as cr, DATA_SERVER_PORT as dr, DATA_SERVER_URL_LOCAL as fr, DATA_SERVER_URL_PRODUCTION as xr, PLAYGROUND_RELAYER_URLS as gr, PLAYGROUND_SERVER_URLS as Ar, PLAYGROUND_URL as ur, RELAYER_CONFIG as yr, RELAYER_URLS as Tr, SERVER_URLS as Pr, STAGING_RELAYER_URLS as Rr, STAGING_SERVER_URLS as Sr, STAGING_URL as Cr } from "./constants/server.constants.mjs";
|
|
32
32
|
import { DEPLOYMENT_MODE as Ir, deploymentMode as Er, isDevelopment as hr, isNode as br, isNotClientProduction as Dr, isNotProduction as vr, isPlayground as Lr, isStaging as _r, isWebpack as Fr } from "./constants/vite.constants.mjs";
|
|
33
33
|
import { CIRCOM_P as Ur, CIRCOM_P_HALF as Br, beefyChainIds as Nr, crvSymbol as Or, curveWithdrawGasTokenAddress as wr, curveZeroAddress as Vr, cvxSymbol as Wr, ethVolatileAddress as Hr, oneInchZeroAddress as Gr, ownerPublicKey as Kr, permitSignatureValidFor as Yr, signaturePhrase as zr, threePoolSymbol as Zr, zeroAddress as qr } from "./constants/protocol.constants.mjs";
|
|
34
|
-
import { COINGECKO_API_KEY as jr, CoinGeckoChainLabels as Xr, coingeckoPriceUrl as Jr, coingeckoPriceUrl2 as $r, coingeckoTokenListUrl as
|
|
35
|
-
import { AxelarRegistry as
|
|
36
|
-
import { NETWORKS as
|
|
37
|
-
import { arbMainnetCrvCvxRegistry as
|
|
38
|
-
import { getCalcTokenAmountWithDynamicArray as
|
|
39
|
-
import { ethSymbol as
|
|
40
|
-
import { ACCESS_TOKEN_MINTING_POINTS as
|
|
41
|
-
import { blockReorgDepth as
|
|
42
|
-
import { ethBeefyRegistry as
|
|
43
|
-
import { arbPendleRegistry as
|
|
44
|
-
import { poseidonFunction as
|
|
45
|
-
import { babyJubInstance as
|
|
46
|
-
import { preProcessing as
|
|
47
|
-
import { ValueCache as
|
|
48
|
-
import { abiDecodeUtxo as
|
|
49
|
-
import { decryptUtxo as
|
|
50
|
-
import { EncryptionKeyPairDefaultValue as
|
|
51
|
-
import { getCircomSign as
|
|
52
|
-
import { Hinkal as
|
|
53
|
-
import { hinkalActionBeefy as
|
|
54
|
-
import { hinkalActionConvex as
|
|
55
|
-
import { hinkalActionCurve as
|
|
56
|
-
import { hinkalActionPendle as
|
|
57
|
-
import { hinkalDeposit as
|
|
58
|
-
import { hinkalSwap as
|
|
59
|
-
import { hinkalTransfer as
|
|
60
|
-
import { hinkalWithdraw as
|
|
61
|
-
import { hinkalPrivateWallet as
|
|
62
|
-
import { resetMerkleTrees as
|
|
63
|
-
import { MerkleTree as $
|
|
34
|
+
import { COINGECKO_API_KEY as jr, CoinGeckoChainLabels as Xr, coingeckoPriceUrl as Jr, coingeckoPriceUrl2 as $r, coingeckoTokenListUrl as eo, getCoingeckoIdForNativeTokens as ro, getCoingeckoPlatform as oo, proCoingeckoUrl as to, proHeader as ao } from "./constants/coingecko.constants.mjs";
|
|
35
|
+
import { AxelarRegistry as no } from "./constants/axelar.constants.mjs";
|
|
36
|
+
import { NETWORKS as po, getGasStationUrl as lo } from "./constants/backend.constants.mjs";
|
|
37
|
+
import { arbMainnetCrvCvxRegistry as co, avalancheCrvCvxRegistry as fo, baseCrvCvxRegistry as xo, ethCrvCvxRegistry as go, getCrvCvxWithChainId as Ao, optimismCrvCvxRegistry as uo, polygonCrvCvxRegistry as yo } from "./constants/crvCvx.registry.mjs";
|
|
38
|
+
import { getCalcTokenAmountWithDynamicArray as Po } from "./constants/crvDynamic.registry.mjs";
|
|
39
|
+
import { ethSymbol as So, lidoStEthContractAddress as Co, lidoStMaticAddress as ko, lidoStakeManagerAddress as Io, lidoWithdrawalQueueERC721Address as Eo, lidoWstEthContractAddress as ho, maticSymbol as bo, poLidoNftAddress as Do, stMaticSymbol as vo, wstEthSymbol as Lo } from "./constants/lido.constants.mjs";
|
|
40
|
+
import { ACCESS_TOKEN_MINTING_POINTS as Fo, CERTIFICATION_DISABLE_WEEK as Mo, REWARD_RECEIVABLE_TOKEN_SYMBOLS as Uo, RafflePrizePoints as Bo, boostAmounts as No, lpLink as Oo, lpProgramStartWeek as wo, pointsLink as Vo, raffleProgramStartWeek as Wo, referralLink as Ho } from "./constants/rewards.constants.mjs";
|
|
41
|
+
import { blockReorgDepth as Ko } from "./constants/reorg-depths.constants.mjs";
|
|
42
|
+
import { ethBeefyRegistry as zo, getBeefyRegistryWithChainId as Zo } from "./constants/beefy.registry.mjs";
|
|
43
|
+
import { arbPendleRegistry as Qo, bnbPendleRegistry as jo, ethPendleRegistry as Xo, findSyAddress as Jo, getPendleRegistryWithChainId as $o, getYtTokensWithChainId as et, isYtToken as rt, optimismPendleRegistry as ot } from "./constants/pendle.registry.mjs";
|
|
44
|
+
import { poseidonFunction as at, poseidonHash as it, poseidonHolder as nt } from "./crypto/poseidon.mjs";
|
|
45
|
+
import { babyJubInstance as pt, jubHolder as lt } from "./crypto/babyJub.mjs";
|
|
46
|
+
import { preProcessing as ct } from "./crypto/preProcessing.mjs";
|
|
47
|
+
import { ValueCache as ft } from "./data-structures/ValueCache/ValueCache.mjs";
|
|
48
|
+
import { abiDecodeUtxo as gt, checkUtxoSignature as At, decodeUtxo as ut, decodeUtxoConstructorArgs as yt } from "./data-structures/crypto-keys/decodeUTXO.mjs";
|
|
49
|
+
import { decryptUtxo as Pt, decryptUtxoConstructorArgs as Rt, encryptUtxo as St } from "./data-structures/crypto-keys/encryptDecryptUtxo.mjs";
|
|
50
|
+
import { EncryptionKeyPairDefaultValue as kt, UserKeys as It } from "./data-structures/crypto-keys/keys.mjs";
|
|
51
|
+
import { getCircomSign as ht, isCircomNegative as bt } from "./data-structures/crypto-keys/keyUtils.mjs";
|
|
52
|
+
import { Hinkal as vt } from "./data-structures/Hinkal/Hinkal.mjs";
|
|
53
|
+
import { hinkalActionBeefy as _t } from "./data-structures/Hinkal/hinkalActionBeefy.mjs";
|
|
54
|
+
import { hinkalActionConvex as Mt } from "./data-structures/Hinkal/hinkalActionConvex.mjs";
|
|
55
|
+
import { hinkalActionCurve as Bt } from "./data-structures/Hinkal/hinkalActionCurve.mjs";
|
|
56
|
+
import { hinkalActionPendle as Ot } from "./data-structures/Hinkal/hinkalActionPendle.mjs";
|
|
57
|
+
import { hinkalDeposit as Vt, hinkalDepositForOther as Wt } from "./data-structures/Hinkal/hinkalDeposit.mjs";
|
|
58
|
+
import { hinkalSwap as Gt } from "./data-structures/Hinkal/hinkalSwap.mjs";
|
|
59
|
+
import { hinkalTransfer as Yt } from "./data-structures/Hinkal/hinkalTransfer.mjs";
|
|
60
|
+
import { hinkalWithdraw as Zt } from "./data-structures/Hinkal/hinkalWithdraw.mjs";
|
|
61
|
+
import { hinkalPrivateWallet as Qt } from "./data-structures/Hinkal/hinkalPrivateWallet.mjs";
|
|
62
|
+
import { resetMerkleTrees as Xt } from "./data-structures/Hinkal/resetMerkleTrees.mjs";
|
|
63
|
+
import { MerkleTree as $t } from "./data-structures/merkle-tree/MerkleTree.mjs";
|
|
64
64
|
import { getPatchedAccessTokenMerkleTree as ra } from "./data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs";
|
|
65
|
-
import { MerkleTreeIncompleteError as
|
|
65
|
+
import { MerkleTreeIncompleteError as ta } from "./data-structures/merkle-tree/MerkleTreeIncompleteError.mjs";
|
|
66
66
|
import { AbstractAccessTokenSnapshotService as ia } from "./data-structures/event-service/AbstractAccessTokenSnapshotService.mjs";
|
|
67
67
|
import { AbstractCommitmentsSnapshotService as sa } from "./data-structures/event-service/AbstractCommitmentsSnapshotService.mjs";
|
|
68
68
|
import { AbstractNullifierSnapshotService as la } from "./data-structures/event-service/AbstractNullifierSnapshotService.mjs";
|
|
@@ -84,7 +84,7 @@ import { extractMessage as Ha, getErrorMessage as Ga } from "./error-handling/ge
|
|
|
84
84
|
import { checkErrorForSnapshotRestore as Ya } from "./error-handling/handleErrorRestore.mjs";
|
|
85
85
|
import { logError as Za } from "./error-handling/logError.mjs";
|
|
86
86
|
import { ErrorCategory as Qa } from "./error-handling/types.mjs";
|
|
87
|
-
import { BabABI as Xa, BeefyVaultABI as Ja, CurveReadingWrapperABI as $a, CurveWrappedMainPoolABI as ei, ERC20ABI as ri, GalxeABI as
|
|
87
|
+
import { BabABI as Xa, BeefyVaultABI as Ja, CurveReadingWrapperABI as $a, CurveWrappedMainPoolABI as ei, ERC20ABI as ri, GalxeABI as oi, ISwapRouterABI as ti, factoryABI as ai, quoterV2ABI as ii, transactionProverABI as ni } from "./externalABIs/index.mjs";
|
|
88
88
|
import { checkHinkalAccessToken as pi, mintAccessToken as li, mintTokenCrossChain as mi } from "./functions/web3/functionCalls/accessTokenCalls.mjs";
|
|
89
89
|
import { openPassportWindow as di } from "./functions/kyc/passportHelper.mjs";
|
|
90
90
|
import { openDefaultPassportWindow as xi } from "./functions/kyc/openDefaultPassportWindow.mjs";
|
|
@@ -94,7 +94,7 @@ import { createProvider as Vi } from "./functions/utils/create-provider.mjs";
|
|
|
94
94
|
import { decodeMetadata as Hi, getActionFromMetadata as Gi, getExternalActionIdFromNumber as Ki, getExternalActionIdHash as Yi, getExternalMetadataHash as zi } from "./functions/utils/external-action.utils.mjs";
|
|
95
95
|
import { getERC20Token as qi, getERC20TokenBySymbol as Qi, getHToken as ji } from "./functions/utils/erc20tokenFunctions.mjs";
|
|
96
96
|
import { requireEnv as Ji } from "./functions/utils/requireEnv.mjs";
|
|
97
|
-
import { getSequence as en, promisify as rn, resolveSync as
|
|
97
|
+
import { getSequence as en, promisify as rn, resolveSync as on } from "./functions/utils/resolve-sync.utils.mjs";
|
|
98
98
|
import { convertIntegrationProviderToExternalActionId as an } from "./functions/utils/convertIntegrationProviderToExternalActionId.mjs";
|
|
99
99
|
import { getInteractionFromAction as sn } from "./functions/pre-transaction/interaction-to-action.mjs";
|
|
100
100
|
import { outputUtxoProcessing as ln } from "./functions/pre-transaction/outputUtxoProcessing.mjs";
|
|
@@ -113,7 +113,7 @@ import { waitLittle as Hn } from "./functions/utils/time.utils.mjs";
|
|
|
113
113
|
import { patchRegistry as Kn } from "./functions/utils/volatile-patcher.utils.mjs";
|
|
114
114
|
import { createCacheDevice as zn } from "./functions/utils/cacheDevice.utils.mjs";
|
|
115
115
|
import { debounce as qn, wait as Qn } from "./functions/utils/process.utils.mjs";
|
|
116
|
-
import { calculateDollarValue as Xn, ethToWei as Jn, getAmountInToken as $n, getAmountInWei as es, getAmountInWeiOrZero as rs, getAmountWithPrecision as
|
|
116
|
+
import { calculateDollarValue as Xn, ethToWei as Jn, getAmountInToken as $n, getAmountInWei as es, getAmountInWeiOrZero as rs, getAmountWithPrecision as os, getAmountWithPrecisionOrZero as ts, randomBigInt as as, toBigIntWithDecimals as is } from "./functions/web3/etherFunctions.mjs";
|
|
117
117
|
import { getInputUtxoAndBalance as ss, getInputUtxosFromEncryptedOutputs as ps } from "./functions/web3/events/getInputUtxoAndBalance.mjs";
|
|
118
118
|
import { addPaddingToUtxos as ms, getShieldedBalance as cs } from "./functions/web3/events/getShieldedBalance.mjs";
|
|
119
119
|
import { getDepositEvents as fs, retrieveEvents as xs } from "./functions/web3/events/web3RetrieveEvents.mjs";
|
|
@@ -129,45 +129,45 @@ import { generateZkProof as Ys } from "./functions/snarkjs/generateZkProof.mjs";
|
|
|
129
129
|
import { getCRV as Zs } from "./functions/protocols/curve.protocols.mjs";
|
|
130
130
|
import { getCVX as Qs } from "./functions/protocols/convex.protocols.mjs";
|
|
131
131
|
import { determinePendleSwapType as Xs, determinePendleSwapTypeApiRoute as Js, erc20TokenFromPendleAsset as $s, getAssetTypeFromPendleMarket as ep, getTokenIndexForPendleFlatFee as rp } from "./functions/protocols/pendle.helpers.mjs";
|
|
132
|
-
import { calculateStakeNullifier as
|
|
132
|
+
import { calculateStakeNullifier as tp, createStakeCommitment as ap, decryptStake as ip, encodeHStakeMetadata as np, encryptStake as sp } from "./functions/staking/index.mjs";
|
|
133
133
|
import { emporiumOp as lp, encodeEmporiumMetadata as mp } from "./functions/private-wallet/emporium.helpers.mjs";
|
|
134
134
|
import { OpType as dp, produceOp as fp } from "./functions/private-wallet/opProducer.mjs";
|
|
135
135
|
import { dataBeefyApiConfig as gp, isBeefyDeposit as Ap } from "./types/beefy.types.mjs";
|
|
136
136
|
import { defaultHookData as yp, defaultHookDataArray as Tp, defaultStealthAddressStructure as Pp, emptyStealthAddressStructure as Rp } from "./types/circom-data.types.mjs";
|
|
137
137
|
import { ContractType as Cp } from "./types/ethereum-network.types.mjs";
|
|
138
138
|
import { ExternalActionId as Ip } from "./types/external-action.types.mjs";
|
|
139
|
-
import { BeefyAction as hp, ConvexAction as bp, CurveAction as Dp, EventType as vp, HinkalStakeAction as Lp, INTERACTION as _p, IntegrationProvider as Fp, LidoAction as Mp, LidoVariant as Up, PendleAction as Bp, PendleLPAction as Np, StakeProvider as Op,
|
|
140
|
-
import { KycVerificationResult as
|
|
141
|
-
import { ApprovalType as
|
|
142
|
-
import { SlippageType as
|
|
143
|
-
import { emptyDecodedTx as
|
|
144
|
-
import { MONTHS as
|
|
145
|
-
import { BonusType as
|
|
146
|
-
import { PendleAssetType as
|
|
147
|
-
import { StatType as
|
|
148
|
-
import { HinkalStakeMode as
|
|
149
|
-
import { AdminActionType as
|
|
150
|
-
import { getERC20Registry as tm, getFixedRegistry as
|
|
151
|
-
import { urlForBeefyVaultTokens as
|
|
152
|
-
import { PopularTokenSymbols as
|
|
153
|
-
import { abi as
|
|
154
|
-
import { abi as
|
|
155
|
-
import { abi as
|
|
156
|
-
import { abi as
|
|
157
|
-
import { abi as
|
|
158
|
-
import { abi as
|
|
159
|
-
import { abi as
|
|
160
|
-
import { abi as
|
|
161
|
-
import { abi as
|
|
162
|
-
import { default as
|
|
163
|
-
import { default as
|
|
164
|
-
import { default as
|
|
165
|
-
import { default as
|
|
166
|
-
import { default as
|
|
167
|
-
import { default as
|
|
168
|
-
import { default as
|
|
139
|
+
import { BeefyAction as hp, ConvexAction as bp, CurveAction as Dp, EventType as vp, HinkalStakeAction as Lp, INTERACTION as _p, IntegrationProvider as Fp, LidoAction as Mp, LidoVariant as Up, PendleAction as Bp, PendleLPAction as Np, StakeProvider as Op, UserProgress as wp, VolatileAction as Vp } from "./types/hinkal.types.mjs";
|
|
140
|
+
import { KycVerificationResult as Hp, KycVerificationStatus as Gp, Passports as Kp, VERIFICATION_TYPE as Yp, VerificationTypes as zp } from "./types/kyc.types.mjs";
|
|
141
|
+
import { ApprovalType as qp } from "./types/token.types.mjs";
|
|
142
|
+
import { SlippageType as jp, slippageLevels as Xp } from "./types/slippage.types.mjs";
|
|
143
|
+
import { emptyDecodedTx as $p } from "./types/transactions.types.mjs";
|
|
144
|
+
import { MONTHS as rl, dayInMilliseconds as ol, divideMonthOnIntervals as tl, getCurrentWeek as al, getDateFromWeek as il, getNextDay as nl, getWeekTimestamps as sl, hasCertificationPeriodExpired as pl, hourInMilliseconds as ll, isWeekCurrent as ml, minuteInMilliseconds as cl, parseWeek as dl, secondInMilliseconds as fl, toDateString as xl, weekInMilliseconds as gl } from "./types/time.types.mjs";
|
|
145
|
+
import { BonusType as ul, CertifyType as yl, LP_TIER as Tl, PaymentStatus as Pl, PointType as Rl, RafflePrizeType as Sl, RewardPage as Cl, RewardsHistoryDistribution as kl, RewardsHistoryEligibility as Il, RewardsHistorySnapshots as El, RewardsHistoryStatuses as hl, RewardsPageTabs as bl, TIER_LEVEL as Dl, Timeline as vl, emptyUserPointsBreakdown as Ll, emptyUserPointsResponse as _l } from "./types/rewards.types.mjs";
|
|
146
|
+
import { PendleAssetType as Ml, PendleChains as Ul, PendleDashboardTabs as Bl, PendleEarnTabs as Nl, PendleMarketTransactionTypes as Ol, PendlePoolManualTabs as wl, PendlePoolTabs as Vl, PendlePoolZapTabs as Wl, PendleSwapType as Hl, PendleTabs as Gl, PendleTradeGeneralTabs as Kl, PendleTradeTabs as Yl } from "./types/pendle.types.mjs";
|
|
147
|
+
import { StatType as Zl, UpperTabPossibleValues as ql, curveNetworkNames as Ql, curvePools as jl } from "./types/curve.types.mjs";
|
|
148
|
+
import { HinkalStakeMode as Jl } from "./types/hinkal.stake.types.mjs";
|
|
149
|
+
import { AdminActionType as em, AdminDetailedActionType as rm } from "./types/admin.types.mjs";
|
|
150
|
+
import { getERC20Registry as tm, getFixedRegistry as am } from "./constants/token-data/ERC20Registry.mjs";
|
|
151
|
+
import { urlForBeefyVaultTokens as nm, urlForBeefyVaultTotalInUSD as sm, urlForRegularTokenPricesInBeefy as pm } from "./constants/token-data/tokenPricing.consts.mjs";
|
|
152
|
+
import { PopularTokenSymbols as mm } from "./constants/token-data/popularTokens.constants.mjs";
|
|
153
|
+
import { abi as dm } from "./externalABIs/amToken.mjs";
|
|
154
|
+
import { abi as xm } from "./externalABIs/USDC.mjs";
|
|
155
|
+
import { abi as Am } from "./externalABIs/DAI.mjs";
|
|
156
|
+
import { abi as ym } from "./externalABIs/USDR.mjs";
|
|
157
|
+
import { abi as Pm } from "./externalABIs/USDR3CRV.mjs";
|
|
158
|
+
import { abi as Sm } from "./externalABIs/USDT.mjs";
|
|
159
|
+
import { abi as km } from "./externalABIs/WETH.mjs";
|
|
160
|
+
import { abi as Em } from "./externalABIs/BUSD.mjs";
|
|
161
|
+
import { abi as bm } from "./externalABIs/SanctionsList.mjs";
|
|
162
|
+
import { default as vm } from "./externalABIs/LidoStEthAbi.json.mjs";
|
|
163
|
+
import { default as _m } from "./externalABIs/LidoStMaticAbi.json.mjs";
|
|
164
|
+
import { default as Mm } from "./externalABIs/LidoWithdrawalQueueERC721Abi.json.mjs";
|
|
165
|
+
import { default as Bm } from "./externalABIs/LidoWstEthAbi.json.mjs";
|
|
166
|
+
import { default as Om } from "./externalABIs/PoLidoNftAbi.json.mjs";
|
|
167
|
+
import { default as Vm } from "./externalABIs/LidoStakeManagerAbi.json.mjs";
|
|
168
|
+
import { default as Hm } from "./externalABIs/OptimismGasPriceOracle.json.mjs";
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
Fo as ACCESS_TOKEN_MINTING_POINTS,
|
|
171
171
|
er as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
|
172
172
|
rr as AIPRISE_KYC_TEMPLATE_ID_PROD,
|
|
173
173
|
b as API,
|
|
@@ -177,21 +177,21 @@ export {
|
|
|
177
177
|
fa as AbstractEventService,
|
|
178
178
|
la as AbstractNullifierSnapshotService,
|
|
179
179
|
ca as AbstractSnapshotService,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
em as AdminActionType,
|
|
181
|
+
rm as AdminDetailedActionType,
|
|
182
|
+
dm as AmTokenABI,
|
|
183
|
+
qp as ApprovalType,
|
|
184
|
+
no as AxelarRegistry,
|
|
185
|
+
Em as BUSDABI,
|
|
186
186
|
Xa as BabABI,
|
|
187
187
|
hp as BeefyAction,
|
|
188
188
|
Ja as BeefyVaultABI,
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
ul as BonusType,
|
|
190
|
+
Mo as CERTIFICATION_DISABLE_WEEK,
|
|
191
191
|
Ur as CIRCOM_P,
|
|
192
192
|
Br as CIRCOM_P_HALF,
|
|
193
193
|
jr as COINGECKO_API_KEY,
|
|
194
|
-
|
|
194
|
+
yl as CertifyType,
|
|
195
195
|
Xr as CoinGeckoChainLabels,
|
|
196
196
|
Cp as ContractType,
|
|
197
197
|
bp as ConvexAction,
|
|
@@ -204,116 +204,117 @@ export {
|
|
|
204
204
|
xr as DATA_SERVER_URL_PRODUCTION,
|
|
205
205
|
Ir as DEPLOYMENT_MODE,
|
|
206
206
|
ri as ERC20ABI,
|
|
207
|
-
|
|
207
|
+
kt as EncryptionKeyPairDefaultValue,
|
|
208
208
|
Qa as ErrorCategory,
|
|
209
209
|
ke as EthereumNetworkType,
|
|
210
210
|
vp as EventType,
|
|
211
211
|
Ip as ExternalActionId,
|
|
212
212
|
Ma as FeeOverTransactionValueError,
|
|
213
213
|
va as FileCacheDevice,
|
|
214
|
-
|
|
214
|
+
oi as GalxeABI,
|
|
215
215
|
Be as HINKAL_EXTERNAL_ACTION_FEE,
|
|
216
216
|
Ne as HINKAL_UNIVERSAL_FEE,
|
|
217
|
-
|
|
217
|
+
vt as Hinkal,
|
|
218
218
|
Lp as HinkalStakeAction,
|
|
219
|
-
|
|
219
|
+
Jl as HinkalStakeMode,
|
|
220
220
|
V as IMAGE_PATHS,
|
|
221
221
|
_p as INTERACTION,
|
|
222
|
-
|
|
222
|
+
ti as ISwapRouterABI,
|
|
223
223
|
Fp as IntegrationProvider,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
Hp as KycVerificationResult,
|
|
225
|
+
Gp as KycVerificationStatus,
|
|
226
|
+
Tl as LP_TIER,
|
|
227
227
|
Mp as LidoAction,
|
|
228
228
|
Up as LidoVariant,
|
|
229
229
|
_a as LocalStorageCacheDevice,
|
|
230
|
-
|
|
231
|
-
$
|
|
232
|
-
|
|
230
|
+
rl as MONTHS,
|
|
231
|
+
$t as MerkleTree,
|
|
232
|
+
ta as MerkleTreeIncompleteError,
|
|
233
233
|
ba as MultiThreadedUtxoUtils,
|
|
234
|
-
|
|
234
|
+
po as NETWORKS,
|
|
235
235
|
dp as OpType,
|
|
236
236
|
gr as PLAYGROUND_RELAYER_URLS,
|
|
237
237
|
Ar as PLAYGROUND_SERVER_URLS,
|
|
238
238
|
ur as PLAYGROUND_URL,
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
Kp as Passports,
|
|
240
|
+
Pl as PaymentStatus,
|
|
241
241
|
Bp as PendleAction,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
Ml as PendleAssetType,
|
|
243
|
+
Ul as PendleChains,
|
|
244
|
+
Bl as PendleDashboardTabs,
|
|
245
|
+
Nl as PendleEarnTabs,
|
|
246
246
|
Np as PendleLPAction,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
247
|
+
Ol as PendleMarketTransactionTypes,
|
|
248
|
+
wl as PendlePoolManualTabs,
|
|
249
|
+
Vl as PendlePoolTabs,
|
|
250
|
+
Wl as PendlePoolZapTabs,
|
|
251
|
+
Hl as PendleSwapType,
|
|
252
|
+
Gl as PendleTabs,
|
|
253
|
+
Kl as PendleTradeGeneralTabs,
|
|
254
|
+
Yl as PendleTradeTabs,
|
|
255
|
+
Rl as PointType,
|
|
256
|
+
mm as PopularTokenSymbols,
|
|
257
|
+
or as RECLAIM_MESSAGE_TO_SIGN,
|
|
258
258
|
yr as RELAYER_CONFIG,
|
|
259
259
|
Tr as RELAYER_URLS,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
260
|
+
Uo as REWARD_RECEIVABLE_TOKEN_SYMBOLS,
|
|
261
|
+
Bo as RafflePrizePoints,
|
|
262
|
+
Sl as RafflePrizeType,
|
|
263
|
+
tr as ReclaimPassports,
|
|
264
|
+
Cl as RewardPage,
|
|
265
|
+
kl as RewardsHistoryDistribution,
|
|
266
|
+
Il as RewardsHistoryEligibility,
|
|
267
|
+
El as RewardsHistorySnapshots,
|
|
268
|
+
hl as RewardsHistoryStatuses,
|
|
269
|
+
bl as RewardsPageTabs,
|
|
270
270
|
Pr as SERVER_URLS,
|
|
271
271
|
Rr as STAGING_RELAYER_URLS,
|
|
272
272
|
Sr as STAGING_SERVER_URLS,
|
|
273
273
|
Cr as STAGING_URL,
|
|
274
|
-
|
|
274
|
+
jp as SlippageType,
|
|
275
275
|
Op as StakeProvider,
|
|
276
276
|
ar as StandardPassports,
|
|
277
|
-
|
|
277
|
+
Zl as StatType,
|
|
278
278
|
ir as SupportedPassports,
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
Dl as TIER_LEVEL,
|
|
280
|
+
vl as Timeline,
|
|
281
281
|
Ta as TokenChecker,
|
|
282
282
|
Ca as TransactionType,
|
|
283
283
|
Ra as TransactionsManager,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
xm as USDCABI,
|
|
285
|
+
Pm as USDR3CRVABI,
|
|
286
|
+
ym as USDRABI,
|
|
287
|
+
Sm as USDTABI,
|
|
288
|
+
ql as UpperTabPossibleValues,
|
|
289
289
|
wa as UserFriendlyErrorCodes,
|
|
290
|
-
|
|
290
|
+
It as UserKeys,
|
|
291
|
+
wp as UserProgress,
|
|
291
292
|
ga as Utxo,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
Yp as VERIFICATION_TYPE,
|
|
294
|
+
ft as ValueCache,
|
|
295
|
+
zp as VerificationTypes,
|
|
296
|
+
Vp as VolatileAction,
|
|
296
297
|
Ea as VolatileHelper,
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
km as WETHABI,
|
|
299
|
+
gt as abiDecodeUtxo,
|
|
299
300
|
Ai as absBigInt,
|
|
300
301
|
ms as addPaddingToUtxos,
|
|
301
302
|
nr as aipriseBaseOnboardingProductionUrl,
|
|
302
303
|
sr as aipriseBaseOnboardingSandboxUrl,
|
|
303
|
-
|
|
304
|
+
co as arbMainnetCrvCvxRegistry,
|
|
304
305
|
ne as arbMainnetData,
|
|
305
306
|
H as arbMainnetRegistry,
|
|
306
307
|
G as arbMainnetRegistryFixed,
|
|
307
|
-
|
|
308
|
-
|
|
308
|
+
Qo as arbPendleRegistry,
|
|
309
|
+
fo as avalancheCrvCvxRegistry,
|
|
309
310
|
xe as avalancheData,
|
|
310
311
|
K as avalancheRegistry,
|
|
311
312
|
Y as avalancheRegistryFixed,
|
|
312
313
|
Pe as axelar1Data,
|
|
313
314
|
Se as axelar2Data,
|
|
314
|
-
|
|
315
|
+
pt as babyJubInstance,
|
|
315
316
|
As as balanceChangedHandler,
|
|
316
|
-
|
|
317
|
+
xo as baseCrvCvxRegistry,
|
|
317
318
|
Ae as baseData,
|
|
318
319
|
z as baseRegistry,
|
|
319
320
|
Z as baseRegistryFixed,
|
|
@@ -321,12 +322,12 @@ export {
|
|
|
321
322
|
ui as beepsToPercentage,
|
|
322
323
|
yi as bigintApplySugar,
|
|
323
324
|
Ti as bigintMax,
|
|
324
|
-
|
|
325
|
+
Ko as blockReorgDepth,
|
|
325
326
|
ae as bnbMainnetData,
|
|
326
327
|
q as bnbMainnetRegistry,
|
|
327
328
|
Q as bnbMainnetRegistryFixed,
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
jo as bnbPendleRegistry,
|
|
330
|
+
No as boostAmounts,
|
|
330
331
|
Sn as browserSupported,
|
|
331
332
|
Fs as buildInNullifiers,
|
|
332
333
|
Ms as buildOutCommitments,
|
|
@@ -338,7 +339,7 @@ export {
|
|
|
338
339
|
Vs as calcStealthAddressStructure,
|
|
339
340
|
Pi as calculateAmountUsingBeeps,
|
|
340
341
|
Xn as calculateDollarValue,
|
|
341
|
-
|
|
342
|
+
tp as calculateStakeNullifier,
|
|
342
343
|
Ri as calculateSum,
|
|
343
344
|
m as callOneInchAPI,
|
|
344
345
|
x as callRelayerTransactAPI,
|
|
@@ -349,10 +350,10 @@ export {
|
|
|
349
350
|
Ya as checkErrorForSnapshotRestore,
|
|
350
351
|
pi as checkHinkalAccessToken,
|
|
351
352
|
k as checkRisk,
|
|
352
|
-
|
|
353
|
+
At as checkUtxoSignature,
|
|
353
354
|
Jr as coingeckoPriceUrl,
|
|
354
355
|
$r as coingeckoPriceUrl2,
|
|
355
|
-
|
|
356
|
+
eo as coingeckoTokenListUrl,
|
|
356
357
|
Ls as constructEmporiumProof,
|
|
357
358
|
Ds as constructZkProof,
|
|
358
359
|
Ze as contractMetadataMapping,
|
|
@@ -363,24 +364,24 @@ export {
|
|
|
363
364
|
ap as createStakeCommitment,
|
|
364
365
|
he as crossChainAccessTokenNetworks,
|
|
365
366
|
Or as crvSymbol,
|
|
366
|
-
|
|
367
|
-
|
|
367
|
+
Ql as curveNetworkNames,
|
|
368
|
+
jl as curvePools,
|
|
368
369
|
wr as curveWithdrawGasTokenAddress,
|
|
369
370
|
Vr as curveZeroAddress,
|
|
370
371
|
ua as customTokenRegistry,
|
|
371
372
|
Wr as cvxSymbol,
|
|
372
|
-
|
|
373
|
+
Am as daiABI,
|
|
373
374
|
gp as dataBeefyApiConfig,
|
|
374
|
-
|
|
375
|
+
ol as dayInMilliseconds,
|
|
375
376
|
qn as debounce,
|
|
376
377
|
Hi as decodeMetadata,
|
|
377
378
|
In as decodeTxInput,
|
|
378
379
|
En as decodeTxLogs,
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
ut as decodeUtxo,
|
|
381
|
+
yt as decodeUtxoConstructorArgs,
|
|
381
382
|
ip as decryptStake,
|
|
382
|
-
|
|
383
|
-
|
|
383
|
+
Pt as decryptUtxo,
|
|
384
|
+
Rt as decryptUtxoConstructorArgs,
|
|
384
385
|
yp as defaultHookData,
|
|
385
386
|
Tp as defaultHookDataArray,
|
|
386
387
|
Pp as defaultStealthAddressStructure,
|
|
@@ -391,28 +392,28 @@ export {
|
|
|
391
392
|
Js as determinePendleSwapTypeApiRoute,
|
|
392
393
|
tl as divideMonthOnIntervals,
|
|
393
394
|
lp as emporiumOp,
|
|
394
|
-
|
|
395
|
+
$p as emptyDecodedTx,
|
|
395
396
|
Rp as emptyStealthAddressStructure,
|
|
396
|
-
|
|
397
|
-
|
|
397
|
+
Ll as emptyUserPointsBreakdown,
|
|
398
|
+
_l as emptyUserPointsResponse,
|
|
398
399
|
mp as encodeEmporiumMetadata,
|
|
399
400
|
np as encodeHStakeMetadata,
|
|
400
401
|
sp as encryptStake,
|
|
401
|
-
|
|
402
|
+
St as encryptUtxo,
|
|
402
403
|
$s as erc20TokenFromPendleAsset,
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
zo as ethBeefyRegistry,
|
|
405
|
+
go as ethCrvCvxRegistry,
|
|
405
406
|
pe as ethMainnetData,
|
|
406
407
|
j as ethMainnetRegistry,
|
|
407
408
|
X as ethMainnetRegistryFixed,
|
|
408
|
-
|
|
409
|
-
|
|
409
|
+
Xo as ethPendleRegistry,
|
|
410
|
+
So as ethSymbol,
|
|
410
411
|
Jn as ethToWei,
|
|
411
412
|
Hr as ethVolatileAddress,
|
|
412
413
|
ka as externalActionToTransactionType,
|
|
413
414
|
Ha as extractMessage,
|
|
414
415
|
ai as factoryABI,
|
|
415
|
-
|
|
416
|
+
Jo as findSyAddress,
|
|
416
417
|
Si as fixDecimalsAmount,
|
|
417
418
|
Ys as generateZkProof,
|
|
418
419
|
Gi as getActionFromMetadata,
|
|
@@ -423,30 +424,30 @@ export {
|
|
|
423
424
|
$n as getAmountInToken,
|
|
424
425
|
es as getAmountInWei,
|
|
425
426
|
rs as getAmountInWeiOrZero,
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
os as getAmountWithPrecision,
|
|
428
|
+
ts as getAmountWithPrecisionOrZero,
|
|
428
429
|
He as getAmountWithoutFee,
|
|
429
430
|
ep as getAssetTypeFromPendleMarket,
|
|
430
431
|
A as getAxelarGasEstimate,
|
|
431
432
|
Pn as getAxelarMigrationInfo,
|
|
432
433
|
d as getBeefyHistoricalChartData,
|
|
433
|
-
|
|
434
|
+
Zo as getBeefyRegistryWithChainId,
|
|
434
435
|
Zs as getCRV,
|
|
435
436
|
Qs as getCVX,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
437
|
+
Po as getCalcTokenAmountWithDynamicArray,
|
|
438
|
+
ht as getCircomSign,
|
|
439
|
+
ro as getCoingeckoIdForNativeTokens,
|
|
440
|
+
oo as getCoingeckoPlatform,
|
|
440
441
|
i as getCoingeckoPrice,
|
|
441
442
|
n as getCoingeckoPrice2,
|
|
442
443
|
s as getCoingeckoPrices,
|
|
443
444
|
p as getCoingeckoTokenList,
|
|
444
|
-
|
|
445
|
-
|
|
445
|
+
Ao as getCrvCvxWithChainId,
|
|
446
|
+
al as getCurrentWeek,
|
|
446
447
|
v as getCurvePools,
|
|
447
448
|
L as getCurvePoolsforPriceFetching,
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
o as getDataServerURL,
|
|
450
|
+
il as getDateFromWeek,
|
|
450
451
|
fs as getDepositEvents,
|
|
451
452
|
tm as getERC20Registry,
|
|
452
453
|
qi as getERC20Token,
|
|
@@ -457,10 +458,10 @@ export {
|
|
|
457
458
|
Yi as getExternalActionIdHash,
|
|
458
459
|
zi as getExternalMetadataHash,
|
|
459
460
|
Fi as getFilePath,
|
|
460
|
-
|
|
461
|
+
am as getFixedRegistry,
|
|
461
462
|
gn as getFlatFees,
|
|
462
463
|
y as getGasEstimates,
|
|
463
|
-
|
|
464
|
+
lo as getGasStationUrl,
|
|
464
465
|
Ba as getGenericFeeOverTransactionValueErrorMessage,
|
|
465
466
|
ji as getHToken,
|
|
466
467
|
Mi as getHinkalCache,
|
|
@@ -472,17 +473,17 @@ export {
|
|
|
472
473
|
sn as getInteractionFromAction,
|
|
473
474
|
un as getNetworkObject,
|
|
474
475
|
yn as getNetworkType,
|
|
475
|
-
|
|
476
|
+
nl as getNextDay,
|
|
476
477
|
be as getNonLocalhostChainId,
|
|
477
478
|
Cs as getOdosPrice,
|
|
478
479
|
Is as getOneInchPrice,
|
|
479
480
|
ra as getPatchedAccessTokenMerkleTree,
|
|
480
|
-
|
|
481
|
+
$o as getPendleRegistryWithChainId,
|
|
481
482
|
O as getPublicWalletBalance,
|
|
482
483
|
Ke as getRelayFee,
|
|
483
484
|
B as getRelayerURL,
|
|
484
485
|
en as getSequence,
|
|
485
|
-
|
|
486
|
+
t as getServerURL,
|
|
486
487
|
cs as getShieldedBalance,
|
|
487
488
|
Ye as getSlippageFee,
|
|
488
489
|
rp as getTokenIndexForPendleFlatFee,
|
|
@@ -493,22 +494,22 @@ export {
|
|
|
493
494
|
Ts as getUniswapPrice,
|
|
494
495
|
Ps as getUniswapPriceHelper,
|
|
495
496
|
Ci as getValueFirstNDigit,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
497
|
+
sl as getWeekTimestamps,
|
|
498
|
+
et as getYtTokensWithChainId,
|
|
499
|
+
pl as hasCertificationPeriodExpired,
|
|
500
|
+
_t as hinkalActionBeefy,
|
|
501
|
+
Mt as hinkalActionConvex,
|
|
502
|
+
Bt as hinkalActionCurve,
|
|
503
|
+
Ot as hinkalActionPendle,
|
|
504
|
+
Vt as hinkalDeposit,
|
|
505
|
+
Wt as hinkalDepositForOther,
|
|
506
|
+
Qt as hinkalPrivateWallet,
|
|
507
|
+
Gt as hinkalSwap,
|
|
508
|
+
Yt as hinkalTransfer,
|
|
509
|
+
Zt as hinkalWithdraw,
|
|
510
|
+
ll as hourInMilliseconds,
|
|
510
511
|
Ap as isBeefyDeposit,
|
|
511
|
-
|
|
512
|
+
bt as isCircomNegative,
|
|
512
513
|
hr as isDevelopment,
|
|
513
514
|
De as isLocalNetwork,
|
|
514
515
|
Bn as isNicknameValid,
|
|
@@ -522,19 +523,19 @@ export {
|
|
|
522
523
|
Lr as isPlayground,
|
|
523
524
|
_r as isStaging,
|
|
524
525
|
Fr as isWebpack,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
526
|
+
ml as isWeekCurrent,
|
|
527
|
+
rt as isYtToken,
|
|
528
|
+
lt as jubHolder,
|
|
529
|
+
vm as lidoStEthAbi,
|
|
530
|
+
Co as lidoStEthContractAddress,
|
|
531
|
+
_m as lidoStMaticAbi,
|
|
532
|
+
ko as lidoStMaticAddress,
|
|
533
|
+
Vm as lidoStakeManagerAbi,
|
|
534
|
+
Io as lidoStakeManagerAddress,
|
|
535
|
+
Mm as lidoWithdrawalQueueERC721Abi,
|
|
536
|
+
Eo as lidoWithdrawalQueueERC721Address,
|
|
537
|
+
Bm as lidoWstEthAbi,
|
|
538
|
+
ho as lidoWstEthContractAddress,
|
|
538
539
|
Ui as loadTxsCache,
|
|
539
540
|
ye as localhostData,
|
|
540
541
|
Fe as localhostNetwork,
|
|
@@ -542,76 +543,76 @@ export {
|
|
|
542
543
|
Za as logError,
|
|
543
544
|
wn as lowerCaseIncludes,
|
|
544
545
|
Vn as lowerCaseStartsWith,
|
|
545
|
-
|
|
546
|
-
|
|
546
|
+
Oo as lpLink,
|
|
547
|
+
wo as lpProgramStartWeek,
|
|
547
548
|
F as lpTokens,
|
|
548
549
|
M as lpTokensToBasePool,
|
|
549
|
-
|
|
550
|
+
bo as maticSymbol,
|
|
550
551
|
ki as minBigInt,
|
|
551
552
|
li as mintAccessToken,
|
|
552
553
|
mi as mintTokenCrossChain,
|
|
553
|
-
|
|
554
|
+
cl as minuteInMilliseconds,
|
|
554
555
|
Me as networkRegistry,
|
|
555
556
|
Gr as oneInchZeroAddress,
|
|
556
557
|
xi as openDefaultPassportWindow,
|
|
557
558
|
di as openPassportWindow,
|
|
558
|
-
|
|
559
|
+
uo as optimismCrvCvxRegistry,
|
|
559
560
|
me as optimismData,
|
|
560
|
-
|
|
561
|
-
|
|
561
|
+
Hm as optimismGasPriceOracleAbi,
|
|
562
|
+
ot as optimismPendleRegistry,
|
|
562
563
|
$ as optimismRegistry,
|
|
563
564
|
ee as optimismRegistryFixed,
|
|
564
565
|
ln as outputUtxoProcessing,
|
|
565
566
|
Kr as ownerPublicKey,
|
|
566
|
-
|
|
567
|
+
dl as parseWeek,
|
|
567
568
|
Kn as patchRegistry,
|
|
568
569
|
Yr as permitSignatureValidFor,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
570
|
+
Om as poLidoNftAbi,
|
|
571
|
+
Do as poLidoNftAddress,
|
|
572
|
+
Vo as pointsLink,
|
|
573
|
+
yo as polygonCrvCvxRegistry,
|
|
573
574
|
de as polygonData,
|
|
574
575
|
re as polygonRegistry,
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
576
|
+
oe as polygonRegistryFixed,
|
|
577
|
+
at as poseidonFunction,
|
|
578
|
+
it as poseidonHash,
|
|
579
|
+
nt as poseidonHolder,
|
|
580
|
+
ct as preProcessing,
|
|
581
|
+
to as proCoingeckoUrl,
|
|
582
|
+
ao as proHeader,
|
|
582
583
|
fn as processAmountChanges,
|
|
583
584
|
cn as processGasEstimates,
|
|
584
585
|
fp as produceOp,
|
|
585
586
|
rn as promisify,
|
|
586
587
|
ii as quoterV2ABI,
|
|
587
|
-
|
|
588
|
+
Wo as raffleProgramStartWeek,
|
|
588
589
|
as as randomBigInt,
|
|
589
|
-
|
|
590
|
+
Ho as referralLink,
|
|
590
591
|
vn as reloadPage,
|
|
591
592
|
Ji as requireEnv,
|
|
592
593
|
Bi as resetCache,
|
|
593
|
-
|
|
594
|
-
|
|
594
|
+
Xt as resetMerkleTrees,
|
|
595
|
+
on as resolveSync,
|
|
595
596
|
Na as rethrowKnownGasErrorIfPossible,
|
|
596
597
|
xs as retrieveEvents,
|
|
597
598
|
hs as runContractFunction,
|
|
598
|
-
|
|
599
|
+
bm as sanctionsListABI,
|
|
599
600
|
Ni as saveTxsCache,
|
|
600
601
|
Rs as searchPoolAndFee,
|
|
601
|
-
|
|
602
|
+
fl as secondInMilliseconds,
|
|
602
603
|
Gs as serializeCircomData,
|
|
603
604
|
bn as serializeDecodedTxs,
|
|
604
605
|
Oi as setHinkalCache,
|
|
605
606
|
zr as signaturePhrase,
|
|
606
|
-
|
|
607
|
-
|
|
607
|
+
Xp as slippageLevels,
|
|
608
|
+
vo as stMaticSymbol,
|
|
608
609
|
pr as supportedPassportLinks,
|
|
609
610
|
Zr as threePoolSymbol,
|
|
610
611
|
Ii as toBigInt,
|
|
611
612
|
Ei as toBigIntOrUndefined,
|
|
612
613
|
is as toBigIntWithDecimals,
|
|
613
614
|
hi as toCommaSeparatedNumberString,
|
|
614
|
-
|
|
615
|
+
xl as toDateString,
|
|
615
616
|
bi as toInt,
|
|
616
617
|
Di as toNumberOrUndefined,
|
|
617
618
|
Mn as toTitleCase,
|
|
@@ -623,13 +624,13 @@ export {
|
|
|
623
624
|
je as uniswapV3FactoryData,
|
|
624
625
|
Xe as uniswapV3PoolData,
|
|
625
626
|
Je as uniswapV3QuoterData,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
627
|
+
nm as urlForBeefyVaultTokens,
|
|
628
|
+
sm as urlForBeefyVaultTotalInUSD,
|
|
629
|
+
pm as urlForRegularTokenPricesInBeefy,
|
|
629
630
|
Qn as wait,
|
|
630
631
|
Hn as waitLittle,
|
|
631
632
|
Cn as walletSupported,
|
|
632
|
-
|
|
633
|
-
|
|
633
|
+
gl as weekInMilliseconds,
|
|
634
|
+
Lo as wstEthSymbol,
|
|
634
635
|
qr as zeroAddress
|
|
635
636
|
};
|
package/package.json
CHANGED
package/types/hinkal.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(a=>(a.BalanceChange="BalanceChange",a.NetworkChange="NetworkChange",a.KycNeeded="KycNeeded",a.AccountChanged="AccountChanged",a.ShowConnect="ShowConnect",a.ShowNetworkPopup="ShowNetworkPopup",a.MerkleTreeUpdated="MerkleTreeUpdated",a.MerkleTreeResetStarted="MerkleTreeResetStarted",a.MerkleTreeResetFinished="MerkleTreeResetFinished",a))(E||{}),D=(a=>(a[a.UNISWAP=1]="UNISWAP",a[a.ODOS=2]="ODOS",a[a.ONEINCH=3]="ONEINCH",a[a.PENDLE=4]="PENDLE",a[a.ALL=5]="ALL",a[a.NONE=6]="NONE",a))(D||{}),S=(a=>(a[a.CurveAavePool=0]="CurveAavePool",a))(S||{}),_=(a=>(a[a.Deposit=0]="Deposit",a[a.WithdrawInt=11]="WithdrawInt",a[a.WithdrawUint=12]="WithdrawUint",a[a.WithdrawImbalance=13]="WithdrawImbalance",a[a.Stake=2]="Stake",a[a.Unstake=3]="Unstake",a[a.GetCRV=4]="GetCRV",a))(_||{}),L=(a=>(a[a.StakeLP=0]="StakeLP",a[a.UnStakeLP=1]="UnStakeLP",a[a.ClaimRewardsLP=2]="ClaimRewardsLP",a))(L||{}),h=(a=>(a[a.Deposit=0]="Deposit",a[a.DepositRegular=1]="DepositRegular",a[a.DepositOneInchSingle=2]="DepositOneInchSingle",a[a.DepositOneInchUniswap=3]="DepositOneInchUniswap",a[a.DepositOneInchSolidly=4]="DepositOneInchSolidly",a[a.Withdraw=5]="Withdraw",a[a.WithdrawRegular=6]="WithdrawRegular",a[a.WithdrawOneInchSingle=7]="WithdrawOneInchSingle",a[a.WithdrawOneInchUniswapAndSolidly=8]="WithdrawOneInchUniswapAndSolidly",a[a.WithdrawBoth=9]="WithdrawBoth",a[a.Stake=10]="Stake",a[a.Unstake=11]="Unstake",a[a.GetRewards=12]="GetRewards",a))(h||{}),W=(a=>(a.Ethereum="Ethereum",a.Polygon="Polygon",a))(W||{}),r=(a=>(a[a.Stake=0]="Stake",a[a.Request=1]="Request",a[a.Claim=2]="Claim",a))(r||{}),w=(a=>(a[a.Deposit=0]="Deposit",a[a.Withdraw=1]="Withdraw",a[a.SwapFromYt=2]="SwapFromYt",a[a.SwapToYt=3]="SwapToYt",a[a.SwapPt=4]="SwapPt",a[a.Mint=5]="Mint",a[a.Redeem=6]="Redeem",a[a.Checkpoint=7]="Checkpoint",a[a.PoolRemove=8]="PoolRemove",a))(w||{}),p=(a=>(a[a.AddOrRemoveLiquidity=0]="AddOrRemoveLiquidity",a[a.Checkpoint=1]="Checkpoint",a[a.Invalid=99]="Invalid",a))(p||{}),k=(a=>(a[a.Persist=0]="Persist",a[a.Deposit=1]="Deposit",a[a.Withdraw=2]="Withdraw",a[a.Swap=3]="Swap",a))(k||{}),s=(a=>(a[a.DepositOrStake=0]="DepositOrStake",a[a.Unstake=1]="Unstake",a))(s||{}),U=(a=>(a.WITHDRAW="WITHDRAW",a.SWAP="SWAP",a.CURVE_DEPOSIT="CURVE_DEPOSIT",a.CURVE_WITHDRAW="CURVE_WITHDRAW",a.CURVE_WITHDRAW_INBALANCED="CURVE_WITHDRAW_INBALANCED",a.STAKING="STAKING",a.UNSTAKING="UNSTAKING",a.CLAIMING="CLAIMING",a.BEEFY="BEEFY",a.BEEFY_STAKE="BEEFY_STAKE",a.BEEFY_UNSTAKE="BEEFY_UNSTAKE",a.BEEFY_GET_REWARDS="BEEFY_GET_REWARDS",a.LIDO_STAKE="LIDO_STAKE",a.LIDO_REQUEST="LIDO_REQUEST",a.LIDO_CLAIM="LIDO_CLAIM",a.PENDLE_TRANSACT="PENDLE_TRANSACT",a.PENDLE_YT_IN_SWAP="PENDLE_YT_IN_SWAP",a.PENDLE_YT_OUT_SWAP="PENDLE_YT_OUT_SWAP",a.PENDLE_PT_SWAP="PENDLE_PT_SWAP",a.PENDLE_MINT="PENDLE_MINT",a.PENDLE_REDEEM="PENDLE_REDEEM",a.PENDLE_CLAIM="PENDLE_CLAIM",a.PENDLE_LP="PENDLE_LP",a.PENDLE_LP_CLAIM="PENDLE_LP_CLAIM",a.VOLATILE_WITHDRAW="VOLATILE_WITHDRAW",a.VOLATILE_SWAP="VOLATILE_SWAP",a.EMPORIUM="EMPORIUM",a.NONE="NONE",a))(U||{}),M=(a=>(a[a.NOT_STARTED=0]="NOT_STARTED",a[a.CONNECTED=1]="CONNECTED",a[a.KYC=2]="KYC",a[a.COMPLETED=3]="COMPLETED",a))(M||{});exports.BeefyAction=h;exports.ConvexAction=L;exports.CurveAction=_;exports.EventType=E;exports.HinkalStakeAction=s;exports.INTERACTION=U;exports.IntegrationProvider=D;exports.LidoAction=r;exports.LidoVariant=W;exports.PendleAction=w;exports.PendleLPAction=p;exports.StakeProvider=S;exports.UserProgress=M;exports.VolatileAction=k;
|
package/types/hinkal.types.d.ts
CHANGED
package/types/hinkal.types.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((E) => (E.BalanceChange = "BalanceChange", E.NetworkChange = "NetworkChange", E.KycNeeded = "KycNeeded", E.AccountChanged = "AccountChanged", E.ShowConnect = "ShowConnect", E.ShowNetworkPopup = "ShowNetworkPopup", E.MerkleTreeUpdated = "MerkleTreeUpdated", E.MerkleTreeResetStarted = "MerkleTreeResetStarted", E.MerkleTreeResetFinished = "MerkleTreeResetFinished", E))(a || {}), D = /* @__PURE__ */ ((E) => (E[E.UNISWAP = 1] = "UNISWAP", E[E.ODOS = 2] = "ODOS", E[E.ONEINCH = 3] = "ONEINCH", E[E.PENDLE = 4] = "PENDLE", E[E.ALL = 5] = "ALL", E[E.NONE = 6] = "NONE", E))(D || {}), S = /* @__PURE__ */ ((E) => (E[E.CurveAavePool = 0] = "CurveAavePool", E))(S || {}), _ = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.WithdrawInt = 11] = "WithdrawInt", E[E.WithdrawUint = 12] = "WithdrawUint", E[E.WithdrawImbalance = 13] = "WithdrawImbalance", E[E.Stake = 2] = "Stake", E[E.Unstake = 3] = "Unstake", E[E.GetCRV = 4] = "GetCRV", E))(_ || {}), L = /* @__PURE__ */ ((E) => (E[E.StakeLP = 0] = "StakeLP", E[E.UnStakeLP = 1] = "UnStakeLP", E[E.ClaimRewardsLP = 2] = "ClaimRewardsLP", E))(L || {}), h = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.DepositRegular = 1] = "DepositRegular", E[E.DepositOneInchSingle = 2] = "DepositOneInchSingle", E[E.DepositOneInchUniswap = 3] = "DepositOneInchUniswap", E[E.DepositOneInchSolidly = 4] = "DepositOneInchSolidly", E[E.Withdraw = 5] = "Withdraw", E[E.WithdrawRegular = 6] = "WithdrawRegular", E[E.WithdrawOneInchSingle = 7] = "WithdrawOneInchSingle", E[E.WithdrawOneInchUniswapAndSolidly = 8] = "WithdrawOneInchUniswapAndSolidly", E[E.WithdrawBoth = 9] = "WithdrawBoth", E[E.Stake = 10] = "Stake", E[E.Unstake = 11] = "Unstake", E[E.GetRewards = 12] = "GetRewards", E))(h || {}), W = /* @__PURE__ */ ((E) => (E.Ethereum = "Ethereum", E.Polygon = "Polygon", E))(W || {}), w = /* @__PURE__ */ ((E) => (E[E.Stake = 0] = "Stake", E[E.Request = 1] = "Request", E[E.Claim = 2] = "Claim", E))(w || {}), p = /* @__PURE__ */ ((E) => (E[E.Deposit = 0] = "Deposit", E[E.Withdraw = 1] = "Withdraw", E[E.SwapFromYt = 2] = "SwapFromYt", E[E.SwapToYt = 3] = "SwapToYt", E[E.SwapPt = 4] = "SwapPt", E[E.Mint = 5] = "Mint", E[E.Redeem = 6] = "Redeem", E[E.Checkpoint = 7] = "Checkpoint", E[E.PoolRemove = 8] = "PoolRemove", E))(p || {}), r = /* @__PURE__ */ ((E) => (E[E.AddOrRemoveLiquidity = 0] = "AddOrRemoveLiquidity", E[E.Checkpoint = 1] = "Checkpoint", E[E.Invalid = 99] = "Invalid", E))(r || {}), U = /* @__PURE__ */ ((E) => (E[E.Persist = 0] = "Persist", E[E.Deposit = 1] = "Deposit", E[E.Withdraw = 2] = "Withdraw", E[E.Swap = 3] = "Swap", E))(U || {}), M = /* @__PURE__ */ ((E) => (E[E.DepositOrStake = 0] = "DepositOrStake", E[E.Unstake = 1] = "Unstake", E))(M || {}), k = /* @__PURE__ */ ((E) => (E.WITHDRAW = "WITHDRAW", E.SWAP = "SWAP", E.CURVE_DEPOSIT = "CURVE_DEPOSIT", E.CURVE_WITHDRAW = "CURVE_WITHDRAW", E.CURVE_WITHDRAW_INBALANCED = "CURVE_WITHDRAW_INBALANCED", E.STAKING = "STAKING", E.UNSTAKING = "UNSTAKING", E.CLAIMING = "CLAIMING", E.BEEFY = "BEEFY", E.BEEFY_STAKE = "BEEFY_STAKE", E.BEEFY_UNSTAKE = "BEEFY_UNSTAKE", E.BEEFY_GET_REWARDS = "BEEFY_GET_REWARDS", E.LIDO_STAKE = "LIDO_STAKE", E.LIDO_REQUEST = "LIDO_REQUEST", E.LIDO_CLAIM = "LIDO_CLAIM", E.PENDLE_TRANSACT = "PENDLE_TRANSACT", E.PENDLE_YT_IN_SWAP = "PENDLE_YT_IN_SWAP", E.PENDLE_YT_OUT_SWAP = "PENDLE_YT_OUT_SWAP", E.PENDLE_PT_SWAP = "PENDLE_PT_SWAP", E.PENDLE_MINT = "PENDLE_MINT", E.PENDLE_REDEEM = "PENDLE_REDEEM", E.PENDLE_CLAIM = "PENDLE_CLAIM", E.PENDLE_LP = "PENDLE_LP", E.PENDLE_LP_CLAIM = "PENDLE_LP_CLAIM", E.VOLATILE_WITHDRAW = "VOLATILE_WITHDRAW", E.VOLATILE_SWAP = "VOLATILE_SWAP", E.EMPORIUM = "EMPORIUM", E.NONE = "NONE", E))(k || {}), s = /* @__PURE__ */ ((E) => (E[E.NOT_STARTED = 0] = "NOT_STARTED", E[E.CONNECTED = 1] = "CONNECTED", E[E.KYC = 2] = "KYC", E[E.COMPLETED = 3] = "COMPLETED", E))(s || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
h as BeefyAction,
|
|
4
|
+
L as ConvexAction,
|
|
5
5
|
_ as CurveAction,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a as EventType,
|
|
7
|
+
M as HinkalStakeAction,
|
|
8
8
|
k as INTERACTION,
|
|
9
9
|
D as IntegrationProvider,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
w as LidoAction,
|
|
11
|
+
W as LidoVariant,
|
|
12
|
+
p as PendleAction,
|
|
13
|
+
r as PendleLPAction,
|
|
14
14
|
S as StakeProvider,
|
|
15
|
+
s as UserProgress,
|
|
15
16
|
U as VolatileAction
|
|
16
17
|
};
|