@ichidao/ichi-vaults-sdk 0.0.59 → 0.0.61
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/README.md +12 -10
- package/dist/src/functions/deposit.d.ts +1 -1
- package/dist/src/functions/deposit.js +6 -11
- package/dist/src/functions/deposit.js.map +1 -1
- package/dist/src/functions/withdraw.d.ts +1 -1
- package/dist/src/functions/withdraw.js +16 -29
- package/dist/src/functions/withdraw.js.map +1 -1
- package/dist/src/graphql/constants.js +56 -49
- package/dist/src/graphql/constants.js.map +1 -1
- package/dist/src/index.cjs.js +1 -1
- package/dist/src/index.esm.js +1 -1
- package/dist/src/src/functions/deposit.d.ts +1 -1
- package/dist/src/src/functions/withdraw.d.ts +1 -1
- package/dist/src/src/types/index.d.ts +2 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/utils/config/addresses.js +60 -49
- package/dist/src/utils/config/addresses.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -62,7 +62,7 @@ This SDK uses subgraphs to obtain information about ICHI vaults. The subgraphs a
|
|
62
62
|
| vaultAddress | string | - | true |
|
63
63
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
64
64
|
| dex | SupportedDex | - | true |
|
65
|
-
| amount | string \| number | undefined | false |
|
65
|
+
| amount | string \| number \| BigNumber | undefined | false |
|
66
66
|
| overrides | [Overrides](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/contracts/lib/index.d.ts#L7) | undefined | false
|
67
67
|
|
68
68
|
<br/>
|
@@ -99,8 +99,8 @@ await txnDetails.wait();
|
|
99
99
|
| param | type | default | required
|
100
100
|
| -------- | -------- | -------- | --------
|
101
101
|
| accountAddress | string | - | true
|
102
|
-
| amount0 | string \| number | - | true
|
103
|
-
| amount1 | string \| number | - | true
|
102
|
+
| amount0 | string \| number \| BigNumber | - | true
|
103
|
+
| amount1 | string \| number \| BigNumber | - | true
|
104
104
|
| vaultAddress | string | - | true
|
105
105
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
106
106
|
| dex | SupportedDex | - | true
|
@@ -140,8 +140,8 @@ const txnDetails = await deposit(
|
|
140
140
|
| param | type | default | required
|
141
141
|
| -------- | -------- | -------- | --------
|
142
142
|
| accountAddress | string | - | true
|
143
|
-
| amount0 | string \| number | - | true
|
144
|
-
| amount1 | string \| number | - | true
|
143
|
+
| amount0 | string \| number \| BigNumber | - | true
|
144
|
+
| amount1 | string \| number \| BigNumber | - | true
|
145
145
|
| vaultAddress | string | - | true
|
146
146
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
147
147
|
| dex | SupportedDex | - | true
|
@@ -184,7 +184,7 @@ const txnDetails = await depositNativeToken(
|
|
184
184
|
| vaultAddress | string | - | true |
|
185
185
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
186
186
|
| dex | SupportedDex | - | true |
|
187
|
-
| shares | string \| number | undefined | false |
|
187
|
+
| shares | string \| number \| BigNumber | undefined | false |
|
188
188
|
| overrides | [Overrides](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/contracts/lib/index.d.ts#L7) | undefined | false
|
189
189
|
|
190
190
|
<br/>
|
@@ -219,7 +219,7 @@ await txnDetails.wait();
|
|
219
219
|
| param | type | default | required
|
220
220
|
| -------- | -------- | -------- | --------
|
221
221
|
| accountAddress | string | - | true
|
222
|
-
| shares | string \| number, | - | true |
|
222
|
+
| shares | string \| number \| BigNumber, | - | true |
|
223
223
|
| vaultAddress | string | - | true |
|
224
224
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
225
225
|
| dex | SupportedDex | - | true |
|
@@ -253,7 +253,7 @@ const isApproved: boolean = await isVaultTokenApproved(
|
|
253
253
|
| param | type | default | required
|
254
254
|
| -------- | -------- | -------- | --------
|
255
255
|
| accountAddress | string | - | true
|
256
|
-
| shares | string \| number | - | true
|
256
|
+
| shares | string \| number \| BigNumber | - | true
|
257
257
|
| vaultAddress | string | - | true
|
258
258
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
259
259
|
| dex | SupportedDex | - | true
|
@@ -294,7 +294,7 @@ const txnDetails = await withdraw(
|
|
294
294
|
| param | type | default | required
|
295
295
|
| -------- | -------- | -------- | --------
|
296
296
|
| accountAddress | string | - | true
|
297
|
-
| shares | string \| number | - | true
|
297
|
+
| shares | string \| number \| BigNumber | - | true
|
298
298
|
| vaultAddress | string | - | true
|
299
299
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
300
300
|
| dex | SupportedDex | - | true
|
@@ -336,7 +336,7 @@ const txnDetails = await withdraw(
|
|
336
336
|
| param | type | default | required
|
337
337
|
| -------- | -------- | -------- | --------
|
338
338
|
| accountAddress | string | - | true
|
339
|
-
| shares | string \| number | - | true
|
339
|
+
| shares | string \| number \| BigNumber | - | true
|
340
340
|
| vaultAddress | string | - | true
|
341
341
|
| jsonProvider | [JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/providers/src.ts/json-rpc-provider.ts#L393) | - | true
|
342
342
|
| dex | SupportedDex | - | true
|
@@ -1043,6 +1043,7 @@ enum SupportedChainId {
|
|
1043
1043
|
eon = 7332,
|
1044
1044
|
evmos = 9001,
|
1045
1045
|
fantom = 250,
|
1046
|
+
flare = 14,
|
1046
1047
|
fuse = 122,
|
1047
1048
|
hedera_testnet = 296,
|
1048
1049
|
kava = 2222,
|
@@ -1084,6 +1085,7 @@ enum SupportedDex {
|
|
1084
1085
|
Ramses = 'Ramses',
|
1085
1086
|
Retro = 'Retro',
|
1086
1087
|
SaucerSwap = 'SaucerSwap',
|
1088
|
+
SparkDex = 'SparkDex',
|
1087
1089
|
SpiritSwap = 'SpiritSwap',
|
1088
1090
|
Sushiswap = 'SushiSwap',
|
1089
1091
|
Thena = 'Thena',
|
@@ -3,7 +3,7 @@ import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { BigNumber } from 'ethers';
|
4
4
|
import { SupportedDex } from '../types';
|
5
5
|
export declare function isTokenAllowed(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
-
export declare function isDepositTokenApproved(accountAddress: string, tokenIdx: 0 | 1, amount: string | number, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
+
export declare function isDepositTokenApproved(accountAddress: string, tokenIdx: 0 | 1, amount: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
7
7
|
export declare function approveDepositToken(accountAddress: string, tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, amount?: string | number | BigNumber, overrides?: Overrides): Promise<ContractTransaction>;
|
8
8
|
export declare function _getMaxDepositAmount(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider): Promise<BigNumber>;
|
9
9
|
export declare function getMaxDepositAmount(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<BigNumber>;
|
@@ -57,7 +57,6 @@ var contracts_1 = require("../contracts");
|
|
57
57
|
var parseBigInt_1 = __importDefault(require("../utils/parseBigInt"));
|
58
58
|
var types_1 = require("../types");
|
59
59
|
var calculateGasMargin_1 = require("../types/calculateGasMargin");
|
60
|
-
var formatBigInt_1 = __importDefault(require("../utils/formatBigInt"));
|
61
60
|
// eslint-disable-next-line import/no-cycle
|
62
61
|
var vault_1 = require("./vault");
|
63
62
|
var addresses_1 = __importDefault(require("../utils/config/addresses"));
|
@@ -91,7 +90,7 @@ exports.isTokenAllowed = isTokenAllowed;
|
|
91
90
|
function _isDepositTokenApproved(accountAddress, tokenIdx, amount, vault, chainId, jsonProvider, dex) {
|
92
91
|
var _a, _b;
|
93
92
|
return __awaiter(this, void 0, void 0, function () {
|
94
|
-
var token, tokenContract, depositGuardAddress, currentAllowanceBN, tokenDecimals,
|
93
|
+
var token, tokenContract, depositGuardAddress, currentAllowanceBN, tokenDecimals, amountBN;
|
95
94
|
return __generator(this, function (_c) {
|
96
95
|
switch (_c.label) {
|
97
96
|
case 0:
|
@@ -104,8 +103,8 @@ function _isDepositTokenApproved(accountAddress, tokenIdx, amount, vault, chainI
|
|
104
103
|
return [4 /*yield*/, tokenContract.decimals()];
|
105
104
|
case 2:
|
106
105
|
tokenDecimals = _c.sent();
|
107
|
-
|
108
|
-
return [2 /*return*/,
|
106
|
+
amountBN = amount instanceof ethers_1.BigNumber ? amount : (0, parseBigInt_1.default)(amount, tokenDecimals);
|
107
|
+
return [2 /*return*/, currentAllowanceBN.gt(ethers_1.BigNumber.from(0)) && currentAllowanceBN.gte(amountBN)];
|
109
108
|
}
|
110
109
|
});
|
111
110
|
});
|
@@ -193,7 +192,7 @@ function deposit(accountAddress, amount0, amount1, vaultAddress, jsonProvider, d
|
|
193
192
|
var _a, _b, _c;
|
194
193
|
if (percentSlippage === void 0) { percentSlippage = 1; }
|
195
194
|
return __awaiter(this, void 0, void 0, function () {
|
196
|
-
var _d, chainId, vault, signer, vaultDeployerAddress, token0, token1, isToken0Allowed, isToken1Allowed, token0Decimals, token1Decimals, amount0BN, amount1BN, depositAmount, depositToken,
|
195
|
+
var _d, chainId, vault, signer, vaultDeployerAddress, token0, token1, isToken0Allowed, isToken1Allowed, token0Decimals, token1Decimals, amount0BN, amount1BN, depositAmount, depositToken, tokenIndex, amountBN, isApproved, tokenContract, userTokenBalance, maxDeposit0, maxDeposit1, depositGuardAddress, depositGuardContract, maxGasLimit, lpAmount, gasLimit, _e, _f, tx;
|
197
196
|
return __generator(this, function (_g) {
|
198
197
|
switch (_g.label) {
|
199
198
|
case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
|
@@ -221,18 +220,14 @@ function deposit(accountAddress, amount0, amount1, vaultAddress, jsonProvider, d
|
|
221
220
|
}
|
222
221
|
depositAmount = amount0BN;
|
223
222
|
depositToken = token0;
|
224
|
-
depositTokenDecimals = token0Decimals;
|
225
223
|
tokenIndex = 0;
|
226
224
|
if (amount1BN.gt(ethers_1.BigNumber.from(0))) {
|
227
225
|
depositAmount = amount1BN;
|
228
226
|
depositToken = token1;
|
229
227
|
tokenIndex = 1;
|
230
|
-
depositTokenDecimals = token1Decimals;
|
231
228
|
}
|
232
|
-
|
233
|
-
|
234
|
-
amount = (0, formatBigInt_1.default)(amount, depositTokenDecimals);
|
235
|
-
return [4 /*yield*/, _isDepositTokenApproved(accountAddress, tokenIndex, amount, vault, chainId, jsonProvider, dex)];
|
229
|
+
amountBN = isToken0Allowed ? amount0BN : amount1BN;
|
230
|
+
return [4 /*yield*/, _isDepositTokenApproved(accountAddress, tokenIndex, amountBN, vault, chainId, jsonProvider, dex)];
|
236
231
|
case 4:
|
237
232
|
isApproved = _g.sent();
|
238
233
|
if (!isApproved) {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,CAAC,CAAC;qBACxF;oBAEK,WAAW,GAAG,IAAA,gCAAW,EAAC,OAAO,CAAC,CAAC;oBAO1B,qBAAM,oBAAoB,CAAC,UAAU,CAAC,+BAA+B,CAClF,YAAY,EACZ,oBAAoB,EACpB,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EACjB,cAAc,EACd;4BACE,KAAK,EAAE,aAAa;4BACpB,QAAQ,EAAE,WAAW;yBACtB,CACF,EAAA;;oBATG,QAAQ,GAAG,SASd;oBAED,6EAA6E;oBAC7E,IAAI,eAAe,GAAG,IAAI;wBAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;oBACtF,IAAI,eAAe,GAAG,GAAG;wBAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;oBACpF,QAAQ,GAAG,IAAA,4BAAkB,EAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;gCAGvD,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ;;;;oBACnB,KAAA,uCAAkB,CAAA;oBAChB,qBAAM,oBAAoB,CAAC,WAAW,CAAC,+BAA+B,CACpE,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,cAAc,EACd;4BACE,KAAK,EAAE,aAAa;yBACrB,CACF,EAAA;;oBATH,KAAA,kBACE,SAQC,EACF,CAAA;;;oBAZG,QAAQ,KAYX;oBAGQ,qBAAM,oBAAoB,CAAC,+BAA+B,CACnE,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,cAAc,sBAEZ,KAAK,EAAE,aAAa,IACjB,SAAS,KACZ,QAAQ,UAAA,IAEX,EAAA;;oBAVK,EAAE,GAAG,SAUV;oBAED,sBAAO,EAAE,EAAC;;;;CACX;AA9GD,gDA8GC"}
|
@@ -3,7 +3,7 @@ import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { BigNumber } from 'ethers';
|
4
4
|
import { SupportedDex } from '../types';
|
5
5
|
export declare function approveVaultToken(accountAddress: string, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, shares?: string | number | BigNumber, overrides?: Overrides): Promise<ContractTransaction>;
|
6
|
-
export declare function isVaultTokenApproved(accountAddress: string, shares: string | number, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
+
export declare function isVaultTokenApproved(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
7
7
|
export declare function withdraw(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, overrides?: Overrides): Promise<ContractTransaction>;
|
8
8
|
export declare function withdrawWithSlippage(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, percentSlippage?: number, overrides?: Overrides): Promise<ContractTransaction>;
|
9
9
|
export declare function withdrawNativeToken(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, percentSlippage?: number, overrides?: Overrides): Promise<ContractTransaction>;
|
@@ -62,48 +62,38 @@ var calculateGasMargin_1 = require("../types/calculateGasMargin");
|
|
62
62
|
var vault_1 = require("./vault");
|
63
63
|
var addresses_1 = __importDefault(require("../utils/config/addresses"));
|
64
64
|
var amountWithSlippage_1 = __importDefault(require("../utils/amountWithSlippage"));
|
65
|
-
var formatBigInt_1 = __importDefault(require("../utils/formatBigInt"));
|
66
65
|
var userBalances_1 = require("./userBalances");
|
67
66
|
var vaultBasics_1 = __importDefault(require("./vaultBasics"));
|
68
67
|
function approveVaultToken(accountAddress, vaultAddress, jsonProvider, dex, shares, overrides) {
|
69
68
|
var _a, _b;
|
70
69
|
return __awaiter(this, void 0, void 0, function () {
|
71
|
-
var chainId, signer,
|
70
|
+
var chainId, signer, vaultTokenContract, sharesBN, depositGuardAddress, gasLimit, _c, _d;
|
72
71
|
return __generator(this, function (_e) {
|
73
72
|
switch (_e.label) {
|
74
|
-
case 0: return [4 /*yield*/,
|
73
|
+
case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
|
75
74
|
case 1:
|
76
75
|
chainId = (_e.sent()).chainId;
|
77
|
-
if (!Object.values(types_1.SupportedChainId).includes(chainId)) {
|
78
|
-
throw new Error("Unsupported chainId: ".concat(chainId));
|
79
|
-
}
|
80
76
|
signer = jsonProvider.getSigner(accountAddress);
|
81
|
-
return [4 /*yield*/, (0, vault_1.getIchiVaultInfo)(chainId, dex, vaultAddress, jsonProvider)];
|
82
|
-
case 2:
|
83
|
-
vault = _e.sent();
|
84
|
-
if (!vault)
|
85
|
-
throw new Error("Vault ".concat(vaultAddress, " not found on chain ").concat(chainId, " and dex ").concat(dex));
|
86
77
|
vaultTokenContract = (0, contracts_1.getERC20Contract)(vaultAddress, signer);
|
87
|
-
vaultTokenDecimals = types_1.ichiVaultDecimals;
|
88
78
|
sharesBN = shares
|
89
79
|
? shares instanceof ethers_1.BigNumber
|
90
80
|
? shares
|
91
|
-
: (0, parseBigInt_1.default)(shares,
|
81
|
+
: (0, parseBigInt_1.default)(shares, types_1.ichiVaultDecimals)
|
92
82
|
: constants_1.MaxUint256;
|
93
83
|
depositGuardAddress = (_a = addresses_1.default[chainId][dex]) === null || _a === void 0 ? void 0 : _a.depositGuard.address;
|
94
84
|
if (!depositGuardAddress) {
|
95
85
|
throw new Error("Deposit Guard for vault ".concat(vaultAddress, " not found on chain ").concat(chainId, " and dex ").concat(dex));
|
96
86
|
}
|
97
|
-
if (!((_b = overrides === null || overrides === void 0 ? void 0 : overrides.gasLimit) !== null && _b !== void 0)) return [3 /*break*/,
|
87
|
+
if (!((_b = overrides === null || overrides === void 0 ? void 0 : overrides.gasLimit) !== null && _b !== void 0)) return [3 /*break*/, 2];
|
98
88
|
_c = _b;
|
99
|
-
return [3 /*break*/,
|
100
|
-
case
|
89
|
+
return [3 /*break*/, 4];
|
90
|
+
case 2:
|
101
91
|
_d = calculateGasMargin_1.calculateGasMargin;
|
102
92
|
return [4 /*yield*/, vaultTokenContract.estimateGas.approve(depositGuardAddress, sharesBN)];
|
103
|
-
case
|
93
|
+
case 3:
|
104
94
|
_c = _d.apply(void 0, [_e.sent()]);
|
105
|
-
_e.label =
|
106
|
-
case
|
95
|
+
_e.label = 4;
|
96
|
+
case 4:
|
107
97
|
gasLimit = _c;
|
108
98
|
return [2 /*return*/, vaultTokenContract.approve(depositGuardAddress, sharesBN, { gasLimit: gasLimit })];
|
109
99
|
}
|
@@ -115,7 +105,7 @@ exports.approveVaultToken = approveVaultToken;
|
|
115
105
|
function _isVaultTokenApproved(accountAddress, shares, vault, chainId, jsonProvider, dex) {
|
116
106
|
var _a;
|
117
107
|
return __awaiter(this, void 0, void 0, function () {
|
118
|
-
var signer, vaultTokenContract, depositGuardAddress, currentAllowanceBN,
|
108
|
+
var signer, vaultTokenContract, depositGuardAddress, currentAllowanceBN, sharesBN;
|
119
109
|
return __generator(this, function (_b) {
|
120
110
|
switch (_b.label) {
|
121
111
|
case 0:
|
@@ -128,9 +118,8 @@ function _isVaultTokenApproved(accountAddress, shares, vault, chainId, jsonProvi
|
|
128
118
|
return [4 /*yield*/, vaultTokenContract.allowance(accountAddress, depositGuardAddress)];
|
129
119
|
case 1:
|
130
120
|
currentAllowanceBN = _b.sent();
|
131
|
-
|
132
|
-
|
133
|
-
return [2 /*return*/, currentAllowance !== 0 && currentAllowance >= +(shares !== null && shares !== void 0 ? shares : 0)];
|
121
|
+
sharesBN = shares instanceof ethers_1.BigNumber ? shares : (0, parseBigInt_1.default)(shares, types_1.ichiVaultDecimals);
|
122
|
+
return [2 /*return*/, currentAllowanceBN.gt(ethers_1.BigNumber.from(0)) && currentAllowanceBN.gte(sharesBN)];
|
134
123
|
}
|
135
124
|
});
|
136
125
|
});
|
@@ -194,7 +183,7 @@ function withdrawWithSlippage(accountAddress, shares, vaultAddress, jsonProvider
|
|
194
183
|
var _a, _b, _c;
|
195
184
|
if (percentSlippage === void 0) { percentSlippage = 1; }
|
196
185
|
return __awaiter(this, void 0, void 0, function () {
|
197
|
-
var _d, chainId, vault, signer, vaultDeployerAddress, depositGuardAddress, userShares, withdrawShares,
|
186
|
+
var _d, chainId, vault, signer, vaultDeployerAddress, depositGuardAddress, userShares, withdrawShares, isApproved, depositGuardContract, maxGasLimit, amounts, gasLimit, _e, _f, tx;
|
198
187
|
return __generator(this, function (_g) {
|
199
188
|
switch (_g.label) {
|
200
189
|
case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
|
@@ -216,8 +205,7 @@ function withdrawWithSlippage(accountAddress, shares, vaultAddress, jsonProvider
|
|
216
205
|
if ((_g.sent()).lt(withdrawShares)) {
|
217
206
|
throw new Error("Withdraw amount exceeds user shares amount in vault ".concat(vaultAddress, " on chain ").concat(chainId, " and dex ").concat(dex));
|
218
207
|
}
|
219
|
-
|
220
|
-
return [4 /*yield*/, _isVaultTokenApproved(accountAddress, strShares, vault, chainId, jsonProvider, dex)];
|
208
|
+
return [4 /*yield*/, _isVaultTokenApproved(accountAddress, withdrawShares, vault, chainId, jsonProvider, dex)];
|
221
209
|
case 3:
|
222
210
|
isApproved = _g.sent();
|
223
211
|
if (!isApproved) {
|
@@ -265,7 +253,7 @@ function withdrawNativeToken(accountAddress, shares, vaultAddress, jsonProvider,
|
|
265
253
|
var _a, _b, _c;
|
266
254
|
if (percentSlippage === void 0) { percentSlippage = 1; }
|
267
255
|
return __awaiter(this, void 0, void 0, function () {
|
268
|
-
var _d, chainId, vault, signer, vaultDeployerAddress, userShares, withdrawShares,
|
256
|
+
var _d, chainId, vault, signer, vaultDeployerAddress, userShares, withdrawShares, isApproved, depositGuardAddress, depositGuardContract, wrappedNative, maxGasLimit, amounts, gasLimit, _e, _f, tx;
|
269
257
|
return __generator(this, function (_g) {
|
270
258
|
switch (_g.label) {
|
271
259
|
case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
|
@@ -283,8 +271,7 @@ function withdrawNativeToken(accountAddress, shares, vaultAddress, jsonProvider,
|
|
283
271
|
if ((_g.sent()).lt(withdrawShares)) {
|
284
272
|
throw new Error("Withdraw amount exceeds user shares amount in vault ".concat(vaultAddress, " on chain ").concat(chainId, " and dex ").concat(dex));
|
285
273
|
}
|
286
|
-
|
287
|
-
return [4 /*yield*/, _isVaultTokenApproved(accountAddress, strShares, vault, chainId, jsonProvider, dex)];
|
274
|
+
return [4 /*yield*/, _isVaultTokenApproved(accountAddress, withdrawShares, vault, chainId, jsonProvider, dex)];
|
288
275
|
case 3:
|
289
276
|
isApproved = _g.sent();
|
290
277
|
if (!isApproved) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withdraw.js","sourceRoot":"","sources":["../../../src/functions/withdraw.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjD,iCAAmC;AACnC,sDAAsD;AACtD,0CAA+F;AAC/F,qEAA+C;AAC/C,kCAAwF;AACxF,kEAA8E;AAC9E,2CAA2C;AAC3C,
|
1
|
+
{"version":3,"file":"withdraw.js","sourceRoot":"","sources":["../../../src/functions/withdraw.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjD,iCAAmC;AACnC,sDAAsD;AACtD,0CAA+F;AAC/F,qEAA+C;AAC/C,kCAAwF;AACxF,kEAA8E;AAC9E,2CAA2C;AAC3C,iCAA4C;AAC5C,wEAAsD;AACtD,mFAA6D;AAC7D,+CAAgD;AAChD,8DAA6C;AAE7C,SAAsB,iBAAiB,CACrC,cAAsB,EACtB,YAAoB,EACpB,YAA6B,EAC7B,GAAiB,EACjB,MAAoC,EACpC,SAAqB;;;;;;wBAED,qBAAM,IAAA,yBAAiB,EAAC,YAAY,EAAE,YAAY,EAAE,GAAG,CAAC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B,cAAc,EACd,cAAc,EACd,OAAO,CAAC,CAAC,CAAC,EACV,OAAO,CAAC,CAAC,CAAC,wBAEL,SAAS,KACZ,QAAQ,UAAA,IAEX,EAAA;;oBAXK,EAAE,GAAG,SAWV;oBAED,sBAAO,EAAE,EAAC;;;;CACX;AArGD,kDAqGC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.graphUrls = void 0;
|
5
5
|
/* eslint-disable import/prefer-default-export */
|
@@ -157,144 +157,151 @@ exports.graphUrls = (_a = {},
|
|
157
157
|
supportsCollectFees: true,
|
158
158
|
},
|
159
159
|
_p),
|
160
|
-
_a[types_1.SupportedChainId.
|
161
|
-
_q[types_1.SupportedDex.
|
160
|
+
_a[types_1.SupportedChainId.flare] = (_q = {},
|
161
|
+
_q[types_1.SupportedDex.SparkDex] = {
|
162
|
+
url: 'https://api.goldsky.com/api/public/project_clynrq1h8gam301xx6vgngo9p/subgraphs/ichi-org/flare-v1-sparkdex/gn',
|
163
|
+
publishedUrl: 'https://api.goldsky.com/api/public/project_clynrq1h8gam301xx6vgngo9p/subgraphs/ichi-org/flare-v1-sparkdex/gn',
|
164
|
+
supportsCollectFees: true,
|
165
|
+
},
|
166
|
+
_q),
|
167
|
+
_a[types_1.SupportedChainId.fuse] = (_r = {},
|
168
|
+
_r[types_1.SupportedDex.Voltage] = {
|
162
169
|
url: 'https://api.studio.thegraph.com/query/61136/fuse-v1-voltage/version/latest',
|
163
170
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/A27v7wyriyz87hEM6bpJBCTR2gZMA5mZsJH8WbCZWbWU',
|
164
171
|
supportsCollectFees: true,
|
165
172
|
},
|
166
|
-
|
173
|
+
_r),
|
167
174
|
// [SupportedChainId.hedera]: {
|
168
175
|
// [SupportedDex.SaucerSwap]: { url: 'none', supportsCollectFees: false },
|
169
176
|
// },
|
170
|
-
_a[types_1.SupportedChainId.hedera_testnet] = (
|
171
|
-
|
177
|
+
_a[types_1.SupportedChainId.hedera_testnet] = (_s = {},
|
178
|
+
_s[types_1.SupportedDex.SaucerSwap] = {
|
172
179
|
url: 'none',
|
173
180
|
publishedUrl: 'none',
|
174
181
|
supportsCollectFees: false,
|
175
182
|
},
|
176
|
-
|
177
|
-
_a[types_1.SupportedChainId.kava] = (
|
178
|
-
|
183
|
+
_s),
|
184
|
+
_a[types_1.SupportedChainId.kava] = (_t = {},
|
185
|
+
_t[types_1.SupportedDex.Kinetix] = {
|
179
186
|
url: 'https://the-graph.kava.io/subgraphs/name/ichi-org/kava-v1-kinetix',
|
180
187
|
publishedUrl: 'https://the-graph.kava.io/subgraphs/name/ichi-org/kava-v1-kinetix',
|
181
188
|
supportsCollectFees: true,
|
182
189
|
},
|
183
|
-
|
184
|
-
_a[types_1.SupportedChainId.linea] = (
|
185
|
-
|
190
|
+
_t),
|
191
|
+
_a[types_1.SupportedChainId.linea] = (_u = {},
|
192
|
+
_u[types_1.SupportedDex.Linehub] = {
|
186
193
|
url: 'https://api.studio.thegraph.com/query/61136/linea-v1-linehub/version/latest',
|
187
194
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/GY8TjJW25MxkEPmJ399wBg8qdwUUmbULDAZFxqxWtDz3',
|
188
195
|
supportsCollectFees: true,
|
189
196
|
},
|
190
|
-
|
197
|
+
_u[types_1.SupportedDex.Lynex] = {
|
191
198
|
url: 'https://api.studio.thegraph.com/query/61136/linea-v1-lynex/version/latest',
|
192
199
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/Hr9iv3AXy53vnVU4gQZvrGtp3Pzpz5pNMzJJdtFh9taW',
|
193
200
|
supportsCollectFees: true,
|
194
201
|
},
|
195
|
-
|
202
|
+
_u[types_1.SupportedDex.Metavault] = {
|
196
203
|
url: 'https://api.studio.thegraph.com/query/61136/linea-v1-metavault/version/latest',
|
197
204
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/CW4wL8snqnUg7aZwvPFBuVJjmRRd7ukWZiFFxQ6qH4dG',
|
198
205
|
supportsCollectFees: true,
|
199
206
|
},
|
200
|
-
|
207
|
+
_u[types_1.SupportedDex.Nile] = {
|
201
208
|
url: 'https://api.studio.thegraph.com/query/61136/linea-v1-nile/version/latest',
|
202
209
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/DqGb2w82miUS3Npic8t7ijiHe7y1VgrigdMdv1D5Jknh',
|
203
210
|
supportsCollectFees: true,
|
204
211
|
},
|
205
|
-
|
212
|
+
_u[types_1.SupportedDex.UniswapV3] = {
|
206
213
|
url: 'https://api.studio.thegraph.com/query/61136/linea-v1/version/latest',
|
207
214
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/6PLcFmVCMoqu71tXJvjaW1czgvtDyLGzU3622YEhdkJr',
|
208
215
|
supportsCollectFees: true,
|
209
216
|
},
|
210
|
-
|
211
|
-
_a[types_1.SupportedChainId.mantle] = (
|
212
|
-
|
217
|
+
_u),
|
218
|
+
_a[types_1.SupportedChainId.mantle] = (_v = {},
|
219
|
+
_v[types_1.SupportedDex.Agni] = {
|
213
220
|
url: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-agni',
|
214
221
|
publishedUrl: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-agni',
|
215
222
|
supportsCollectFees: true,
|
216
223
|
},
|
217
|
-
|
224
|
+
_v[types_1.SupportedDex.Cleo] = {
|
218
225
|
url: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-cleo',
|
219
226
|
publishedUrl: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-cleo',
|
220
227
|
supportsCollectFees: true,
|
221
228
|
},
|
222
|
-
|
229
|
+
_v[types_1.SupportedDex.Crust] = {
|
223
230
|
url: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-crust',
|
224
231
|
publishedUrl: 'https://subgraph-api.mantle.xyz/subgraphs/name/ichi-org/mantle-v1-crust',
|
225
232
|
supportsCollectFees: true,
|
226
233
|
},
|
227
|
-
|
228
|
-
_a[types_1.SupportedChainId.polygon_zkevm] = (
|
229
|
-
|
234
|
+
_v),
|
235
|
+
_a[types_1.SupportedChainId.polygon_zkevm] = (_w = {},
|
236
|
+
_w[types_1.SupportedDex.Pancakeswap] = {
|
230
237
|
url: 'https://api.studio.thegraph.com/query/61136/zkevm-v1-pancakeswap/version/latest',
|
231
238
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/B3R76fRBFf39PjqnxH1urJ8tQRtkFab4UpK6HZN8ErzB',
|
232
239
|
supportsCollectFees: true,
|
233
240
|
},
|
234
|
-
|
241
|
+
_w[types_1.SupportedDex.Quickswap] = {
|
235
242
|
url: 'https://api.studio.thegraph.com/query/61136/zkevm-v1-quickswap/version/latest',
|
236
243
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/GdAYLjNLKDmdXKrHbZzYcLs85cWpgVug4DPPmskLMcey',
|
237
244
|
supportsCollectFees: true,
|
238
245
|
},
|
239
|
-
|
240
|
-
_a[types_1.SupportedChainId.scroll] = (
|
241
|
-
|
246
|
+
_w),
|
247
|
+
_a[types_1.SupportedChainId.scroll] = (_x = {},
|
248
|
+
_x[types_1.SupportedDex.Metavault] = {
|
242
249
|
url: 'https://api.studio.thegraph.com/query/61136/scroll-v1-metavault/version/latest',
|
243
250
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/7W9m4cYsnrAkAuXoyqGxCYjBTM7vAAQ1ogxfR4VJf8Ga',
|
244
251
|
supportsCollectFees: true,
|
245
252
|
},
|
246
|
-
|
253
|
+
_x[types_1.SupportedDex.UniswapV3] = {
|
247
254
|
url: 'https://api.studio.thegraph.com/query/61136/scroll-v1/version/latest',
|
248
255
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/7BxUZZoz7ngExxf9C7Hzohxu3MBxpjJvYA8ThJhe8Snt',
|
249
256
|
supportsCollectFees: true,
|
250
257
|
},
|
251
|
-
|
252
|
-
_a[types_1.SupportedChainId.skale_europa] = (
|
253
|
-
|
258
|
+
_x),
|
259
|
+
_a[types_1.SupportedChainId.skale_europa] = (_y = {},
|
260
|
+
_y[types_1.SupportedDex.Sushiswap] = {
|
254
261
|
url: 'https://elated-tan-skat-graph.skalenodes.com:8000/subgraphs/name/ichi-org/skale-europa-v1-sushiswap',
|
255
262
|
publishedUrl: 'https://elated-tan-skat-graph.skalenodes.com:8000/subgraphs/name/ichi-org/skale-europa-v1-sushiswap',
|
256
263
|
supportsCollectFees: true,
|
257
264
|
},
|
258
|
-
|
259
|
-
_a[types_1.SupportedChainId.taiko] = (
|
260
|
-
|
265
|
+
_y),
|
266
|
+
_a[types_1.SupportedChainId.taiko] = (_z = {},
|
267
|
+
_z[types_1.SupportedDex.Henjin] = {
|
261
268
|
url: 'https://api.goldsky.com/api/public/project_clvwe2yydw1n701uh6yple20i/subgraphs/henjin-ichi/1.0.0/gn',
|
262
269
|
publishedUrl: 'https://api.goldsky.com/api/public/project_clvwe2yydw1n701uh6yple20i/subgraphs/henjin-ichi/1.0.0/gn',
|
263
270
|
supportsCollectFees: true,
|
264
271
|
},
|
265
|
-
|
266
|
-
_a[types_1.SupportedChainId.taiko_hekla] = (
|
267
|
-
|
272
|
+
_z),
|
273
|
+
_a[types_1.SupportedChainId.taiko_hekla] = (_0 = {},
|
274
|
+
_0[types_1.SupportedDex.Henjin] = {
|
268
275
|
url: 'https://api.goldsky.com/api/public/project_clvwe2yydw1n701uh6yple20i/subgraphs/ichi-subgraph/1.0.1/gn',
|
269
276
|
publishedUrl: 'https://api.goldsky.com/api/public/project_clvwe2yydw1n701uh6yple20i/subgraphs/ichi-subgraph/1.0.1/gn',
|
270
277
|
supportsCollectFees: true,
|
271
278
|
},
|
272
|
-
|
273
|
-
_a[types_1.SupportedChainId.x_layer_testnet] = (
|
274
|
-
|
279
|
+
_0),
|
280
|
+
_a[types_1.SupportedChainId.x_layer_testnet] = (_1 = {},
|
281
|
+
_1[types_1.SupportedDex.XSwap] = {
|
275
282
|
url: 'https://api.studio.thegraph.com/query/61136/xlayer-sepolia-v1-xswap/version/latest',
|
276
283
|
publishedUrl: 'https://api.studio.thegraph.com/query/61136/xlayer-sepolia-v1-xswap/version/latest',
|
277
284
|
supportsCollectFees: true,
|
278
285
|
},
|
279
|
-
|
280
|
-
_a[types_1.SupportedChainId.zksync_era] = (
|
281
|
-
|
286
|
+
_1),
|
287
|
+
_a[types_1.SupportedChainId.zksync_era] = (_2 = {},
|
288
|
+
_2[types_1.SupportedDex.Pancakeswap] = {
|
282
289
|
url: 'https://api.studio.thegraph.com/query/61136/zksync-v1-pancakeswap/version/latest',
|
283
290
|
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/J11rANzPQ2WPE4zHu4yFUyLyH9Ze3HRgVPdRer1rwFZb',
|
284
291
|
supportsCollectFees: true,
|
285
292
|
},
|
286
|
-
|
293
|
+
_2[types_1.SupportedDex.Velocore] = {
|
287
294
|
url: 'https://api.studio.thegraph.com/query/61136/zksync-v1-velocore/version/latest',
|
288
295
|
publishedUrl: 'https://api.studio.thegraph.com/query/61136/zksync-v1-velocore/version/latest',
|
289
296
|
supportsCollectFees: false,
|
290
297
|
},
|
291
|
-
|
292
|
-
_a[types_1.SupportedChainId.zksync_era_testnet] = (
|
293
|
-
|
298
|
+
_2),
|
299
|
+
_a[types_1.SupportedChainId.zksync_era_testnet] = (_3 = {},
|
300
|
+
_3[types_1.SupportedDex.Velocore] = {
|
294
301
|
url: 'https://api.thegraph.com/subgraphs/name/ichi-org/era-testnet-v1-velocore',
|
295
302
|
publishedUrl: 'https://api.thegraph.com/subgraphs/name/ichi-org/era-testnet-v1-velocore',
|
296
303
|
supportsCollectFees: true,
|
297
304
|
},
|
298
|
-
|
305
|
+
_3),
|
299
306
|
_a);
|
300
307
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/graphql/constants.ts"],"names":[],"mappings":";;;;AAAA,iDAAiD;AACjD,kCAA0D;AAY1D,2DAA2D;AAC9C,QAAA,SAAS;IACpB,GAAC,wBAAgB,CAAC,QAAQ;QACxB,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,wEAAwE;YAC7E,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;QACD,GAAC,oBAAY,CAAC,MAAM,IAAG;YACrB,GAAG,EAAE,+EAA+E;YACpF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;QACD,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,kFAAkF;YACvF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;WACF;IACD,GAAC,wBAAgB,CAAC,OAAO;QACvB,GAAC,oBAAY,CAAC,OAAO,IAAG;YACtB,GAAG,EAAE,8DAA8D;YACnE,YAAY,EAAE,8DAA8D;YAC5E,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,eAAe;QAC/B,GAAC,oBAAY,CAAC,OAAO,IAAG;YACtB,GAAG,EAAE,mEAAmE;YACxE,YAAY,EAAE,mEAAmE;YACjF,mBAA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uH;YACzH,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,YAAY;QAC5B,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,qGAAqG;YAC1G,YAAY,EACV,qGAAqG;YACvG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,KAAK;QACrB,GAAC,oBAAY,CAAC,MAAM,IAAG;YACrB,GAAG,EAAE,qGAAqG;YAC1G,YAAY,EACV,qGAAqG;YACvG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,WAAW;QAC3B,GAAC,oBAAY,CAAC,MAAM,IAAG;YACrB,GAAG,EAAE,uGAAuG;YAC5G,YAAY,EACV,uGAAuG;YACzG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,eAAe;QAC/B,GAAC,oBAAY,CAAC,KAAK,IAAG;YACpB,GAAG,EAAE,oFAAoF;YACzF,YAAY,EAAE,oFAAoF;YAClG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,UAAU;QAC1B,GAAC,oBAAY,CAAC,WAAW,IAAG;YAC1B,GAAG,EAAE,kFAAkF;YACvF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,IAAI;SAC1B;QACD,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,+EAA+E;YACpF,YAAY,EAAE,+EAA+E;YAC7F,mBAAmB,EAAE,KAAK;SAC3B;WACF;IACD,GAAC,wBAAgB,CAAC,kBAAkB;QAClC,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,0EAA0E;YAC/E,YAAY,EAAE,0EAA0E;YACxF,mBAAmB,EAAE,IAAI;SAC1B;WACF;QACD"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/graphql/constants.ts"],"names":[],"mappings":";;;;AAAA,iD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qGAAqG;YACvG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,WAAW;QAC3B,GAAC,oBAAY,CAAC,MAAM,IAAG;YACrB,GAAG,EAAE,uGAAuG;YAC5G,YAAY,EACV,uGAAuG;YACzG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,eAAe;QAC/B,GAAC,oBAAY,CAAC,KAAK,IAAG;YACpB,GAAG,EAAE,oFAAoF;YACzF,YAAY,EAAE,oFAAoF;YAClG,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,UAAU;QAC1B,GAAC,oBAAY,CAAC,WAAW,IAAG;YAC1B,GAAG,EAAE,kFAAkF;YACvF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,IAAI;SAC1B;QACD,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,+EAA+E;YACpF,YAAY,EAAE,+EAA+E;YAC7F,mBAAmB,EAAE,KAAK;SAC3B;WACF;IACD,GAAC,wBAAgB,CAAC,kBAAkB;QAClC,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,0EAA0E;YAC/E,YAAY,EAAE,0EAA0E;YACxF,mBAAmB,EAAE,IAAI;SAC1B;WACF;QACD"}
|
package/dist/src/index.cjs.js
CHANGED
package/dist/src/index.esm.js
CHANGED
@@ -3,7 +3,7 @@ import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { BigNumber } from 'ethers';
|
4
4
|
import { SupportedDex } from '../types';
|
5
5
|
export declare function isTokenAllowed(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
-
export declare function isDepositTokenApproved(accountAddress: string, tokenIdx: 0 | 1, amount: string | number, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
+
export declare function isDepositTokenApproved(accountAddress: string, tokenIdx: 0 | 1, amount: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
7
7
|
export declare function approveDepositToken(accountAddress: string, tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, amount?: string | number | BigNumber, overrides?: Overrides): Promise<ContractTransaction>;
|
8
8
|
export declare function _getMaxDepositAmount(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider): Promise<BigNumber>;
|
9
9
|
export declare function getMaxDepositAmount(tokenIdx: 0 | 1, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<BigNumber>;
|
@@ -3,7 +3,7 @@ import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { BigNumber } from 'ethers';
|
4
4
|
import { SupportedDex } from '../types';
|
5
5
|
export declare function approveVaultToken(accountAddress: string, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, shares?: string | number | BigNumber, overrides?: Overrides): Promise<ContractTransaction>;
|
6
|
-
export declare function isVaultTokenApproved(accountAddress: string, shares: string | number, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
6
|
+
export declare function isVaultTokenApproved(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<boolean>;
|
7
7
|
export declare function withdraw(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, overrides?: Overrides): Promise<ContractTransaction>;
|
8
8
|
export declare function withdrawWithSlippage(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, percentSlippage?: number, overrides?: Overrides): Promise<ContractTransaction>;
|
9
9
|
export declare function withdrawNativeToken(accountAddress: string, shares: string | number | BigNumber, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, percentSlippage?: number, overrides?: Overrides): Promise<ContractTransaction>;
|
@@ -14,6 +14,7 @@ export declare enum SupportedChainId {
|
|
14
14
|
eon = 7332,
|
15
15
|
evmos = 9001,
|
16
16
|
fantom = 250,
|
17
|
+
flare = 14,
|
17
18
|
fuse = 122,
|
18
19
|
hedera_testnet = 296,
|
19
20
|
kava = 2222,
|
@@ -50,6 +51,7 @@ export declare enum SupportedDex {
|
|
50
51
|
Ramses = "Ramses",
|
51
52
|
Retro = "Retro",
|
52
53
|
SaucerSwap = "SaucerSwap",
|
54
|
+
SparkDex = "SparkDex",
|
53
55
|
SpiritSwap = "SpiritSwap",
|
54
56
|
Sushiswap = "SushiSwap",
|
55
57
|
Thena = "Thena",
|
@@ -14,6 +14,7 @@ export declare enum SupportedChainId {
|
|
14
14
|
eon = 7332,
|
15
15
|
evmos = 9001,
|
16
16
|
fantom = 250,
|
17
|
+
flare = 14,
|
17
18
|
fuse = 122,
|
18
19
|
hedera_testnet = 296,
|
19
20
|
kava = 2222,
|
@@ -50,6 +51,7 @@ export declare enum SupportedDex {
|
|
50
51
|
Ramses = "Ramses",
|
51
52
|
Retro = "Retro",
|
52
53
|
SaucerSwap = "SaucerSwap",
|
54
|
+
SparkDex = "SparkDex",
|
53
55
|
SpiritSwap = "SpiritSwap",
|
54
56
|
Sushiswap = "SushiSwap",
|
55
57
|
Thena = "Thena",
|
package/dist/src/types/index.js
CHANGED
@@ -14,6 +14,7 @@ var SupportedChainId;
|
|
14
14
|
SupportedChainId[SupportedChainId["eon"] = 7332] = "eon";
|
15
15
|
SupportedChainId[SupportedChainId["evmos"] = 9001] = "evmos";
|
16
16
|
SupportedChainId[SupportedChainId["fantom"] = 250] = "fantom";
|
17
|
+
SupportedChainId[SupportedChainId["flare"] = 14] = "flare";
|
17
18
|
SupportedChainId[SupportedChainId["fuse"] = 122] = "fuse";
|
18
19
|
// hedera = 295,
|
19
20
|
SupportedChainId[SupportedChainId["hedera_testnet"] = 296] = "hedera_testnet";
|
@@ -52,6 +53,7 @@ var SupportedDex;
|
|
52
53
|
SupportedDex["Ramses"] = "Ramses";
|
53
54
|
SupportedDex["Retro"] = "Retro";
|
54
55
|
SupportedDex["SaucerSwap"] = "SaucerSwap";
|
56
|
+
SupportedDex["SparkDex"] = "SparkDex";
|
55
57
|
SupportedDex["SpiritSwap"] = "SpiritSwap";
|
56
58
|
SupportedDex["Sushiswap"] = "SushiSwap";
|
57
59
|
SupportedDex["Thena"] = "Thena";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAQA,IAAY,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAQA,IAAY,gBA6BX;AA7BD,WAAY,gBAAgB;IAC1B,mEAAgB,CAAA;IAChB,iEAAe,CAAA;IACf,iFAAuB,CAAA;IACvB,0DAAW,CAAA;IACX,6DAAa,CAAA;IACb,iGAAiC,CAAA;IACjC,sDAAQ,CAAA;IACR,2DAAY,CAAA;IACZ,wDAAU,CAAA;IACV,4DAAY,CAAA;IACZ,6DAAY,CAAA;IACZ,0DAAU,CAAA;IACV,yDAAU,CAAA;IACV,gBAAgB;IAChB,6EAAoB,CAAA;IACpB,0DAAW,CAAA;IACX,6DAAa,CAAA;IACb,6DAAW,CAAA;IACX,8DAAa,CAAA;IACb,+DAAa,CAAA;IACb,4EAAoB,CAAA;IACpB,gEAAe,CAAA;IACf,gFAAyB,CAAA;IACzB,8DAAc,CAAA;IACd,0EAAoB,CAAA;IACpB,+EAAqB,CAAA;IACrB,qFAAwB,CAAA;IACxB,qEAAgB,CAAA;AAClB,CAAC,EA7BW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA6B3B;AAED,IAAY,YA8BX;AA9BD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,wCAAwB,CAAA;IACxB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EA9BW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QA8BvB;AAEY,QAAA,iBAAiB,GAAG,EAAE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
var types_1 = require("../../types");
|
5
5
|
var addressConfig = (_a = {},
|
@@ -259,8 +259,19 @@ var addressConfig = (_a = {},
|
|
259
259
|
ammVersion: 'algebraIntegral',
|
260
260
|
},
|
261
261
|
_p),
|
262
|
-
_a[types_1.SupportedChainId.
|
263
|
-
_q[types_1.SupportedDex.
|
262
|
+
_a[types_1.SupportedChainId.flare] = (_q = {},
|
263
|
+
_q[types_1.SupportedDex.SparkDex] = {
|
264
|
+
factoryAddress: '0x9FAb4bdD4E05f5C023CCC85D2071b49791D7418F',
|
265
|
+
depositGuard: {
|
266
|
+
address: '0xbb7A3d439abf42Cf39837f9102F987bab3Ee2e73',
|
267
|
+
version: 2,
|
268
|
+
},
|
269
|
+
vaultDeployerAddress: '0x2d1918dBa43d55B9F0E2596aecC74826BbB7d668',
|
270
|
+
isAlgebra: false,
|
271
|
+
},
|
272
|
+
_q),
|
273
|
+
_a[types_1.SupportedChainId.fuse] = (_r = {},
|
274
|
+
_r[types_1.SupportedDex.Voltage] = {
|
264
275
|
factoryAddress: '0xfBf38920cCbCFF7268Ad714ae5F9Fad6dF607065',
|
265
276
|
depositGuard: {
|
266
277
|
address: '0xADDA3A15EA71c223a82Af86d4578EF2B076035F1',
|
@@ -269,7 +280,7 @@ var addressConfig = (_a = {},
|
|
269
280
|
vaultDeployerAddress: '0x9f99f94B6AF33a04684Ab3c9578608a2Ae1706AA',
|
270
281
|
isAlgebra: false,
|
271
282
|
},
|
272
|
-
|
283
|
+
_r),
|
273
284
|
// [SupportedChainId.hedera]: {
|
274
285
|
// [SupportedDex.SaucerSwap]: {
|
275
286
|
// factoryAddress: '0xb62399d23d1c81f08ea445a42d7f15cc12090a71',
|
@@ -281,8 +292,8 @@ var addressConfig = (_a = {},
|
|
281
292
|
// isAlgebra: false,
|
282
293
|
// },
|
283
294
|
// },
|
284
|
-
_a[types_1.SupportedChainId.hedera_testnet] = (
|
285
|
-
|
295
|
+
_a[types_1.SupportedChainId.hedera_testnet] = (_s = {},
|
296
|
+
_s[types_1.SupportedDex.SaucerSwap] = {
|
286
297
|
factoryAddress: '0x3DfD6dd38F055188adCb2332C2926DDA28d318bD',
|
287
298
|
depositGuard: {
|
288
299
|
address: '0x16Dd62dB239DF67786F0AB7596C445aCDe81a16F',
|
@@ -291,9 +302,9 @@ var addressConfig = (_a = {},
|
|
291
302
|
vaultDeployerAddress: '0xEc7428cB95cD92e7556172FfBe735c6D48f6DEB7',
|
292
303
|
isAlgebra: false,
|
293
304
|
},
|
294
|
-
|
295
|
-
_a[types_1.SupportedChainId.kava] = (
|
296
|
-
|
305
|
+
_s),
|
306
|
+
_a[types_1.SupportedChainId.kava] = (_t = {},
|
307
|
+
_t[types_1.SupportedDex.Kinetix] = {
|
297
308
|
factoryAddress: '0x2d2c72C4dC71AA32D64e5142e336741131A73fc0',
|
298
309
|
depositGuard: {
|
299
310
|
address: '0xADDA3A15EA71c223a82Af86d4578EF2B076035F1',
|
@@ -302,9 +313,9 @@ var addressConfig = (_a = {},
|
|
302
313
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
303
314
|
isAlgebra: false,
|
304
315
|
},
|
305
|
-
|
306
|
-
_a[types_1.SupportedChainId.linea] = (
|
307
|
-
|
316
|
+
_t),
|
317
|
+
_a[types_1.SupportedChainId.linea] = (_u = {},
|
318
|
+
_u[types_1.SupportedDex.Linehub] = {
|
308
319
|
factoryAddress: '0xb0e7871d53BE1b1d746bBfD9511e2eF3cD70a6E7',
|
309
320
|
depositGuard: {
|
310
321
|
address: '0x60f50858953dBf1A699B88037D9dce235b8c505D',
|
@@ -313,7 +324,7 @@ var addressConfig = (_a = {},
|
|
313
324
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
314
325
|
isAlgebra: false,
|
315
326
|
},
|
316
|
-
|
327
|
+
_u[types_1.SupportedDex.Lynex] = {
|
317
328
|
factoryAddress: '0x0248b992ac2a75294b05286E9DD3A2bD3C9CFE4B',
|
318
329
|
depositGuard: {
|
319
330
|
address: '0x57C9d919AEA56171506cfb62B60ce76be0A079DF',
|
@@ -322,7 +333,7 @@ var addressConfig = (_a = {},
|
|
322
333
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
323
334
|
isAlgebra: true,
|
324
335
|
},
|
325
|
-
|
336
|
+
_u[types_1.SupportedDex.Metavault] = {
|
326
337
|
factoryAddress: '0x2592686212C164C1851dF2f62c5d5EC50600195E',
|
327
338
|
depositGuard: {
|
328
339
|
address: '0x92Bce3972916C2CEDA46c4EEbC9684aC26EFfe5B',
|
@@ -331,7 +342,7 @@ var addressConfig = (_a = {},
|
|
331
342
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
332
343
|
isAlgebra: false,
|
333
344
|
},
|
334
|
-
|
345
|
+
_u[types_1.SupportedDex.Nile] = {
|
335
346
|
factoryAddress: '0xa29F3D5403D50Ea1BF597E2Ef01791A1Ce4F544E',
|
336
347
|
depositGuard: {
|
337
348
|
address: '0x19227E17944FAF42419F019Dcc8762C400fE50A7',
|
@@ -340,7 +351,7 @@ var addressConfig = (_a = {},
|
|
340
351
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
341
352
|
isAlgebra: false,
|
342
353
|
},
|
343
|
-
|
354
|
+
_u[types_1.SupportedDex.UniswapV3] = {
|
344
355
|
factoryAddress: '0x6E3eB904966B0158833852cAFD1200c171772b53',
|
345
356
|
depositGuard: {
|
346
357
|
address: '0xCf99c2b3D1a9588A9a9A34eab25cD6f425FA8801',
|
@@ -349,9 +360,9 @@ var addressConfig = (_a = {},
|
|
349
360
|
vaultDeployerAddress: '0x75178e0a2829B73E3AE4C21eE64F4B684085392a',
|
350
361
|
isAlgebra: false,
|
351
362
|
},
|
352
|
-
|
353
|
-
_a[types_1.SupportedChainId.mantle] = (
|
354
|
-
|
363
|
+
_u),
|
364
|
+
_a[types_1.SupportedChainId.mantle] = (_v = {},
|
365
|
+
_v[types_1.SupportedDex.Agni] = {
|
355
366
|
factoryAddress: '0x92Bce3972916C2CEDA46c4EEbC9684aC26EFfe5B',
|
356
367
|
depositGuard: {
|
357
368
|
address: '0x2121AA95a8B05d9C1Db90368B60C6867618814b8',
|
@@ -360,7 +371,7 @@ var addressConfig = (_a = {},
|
|
360
371
|
vaultDeployerAddress: '0xC4183bCcBa1D825A8aC971e13E698368b744F43C',
|
361
372
|
isAlgebra: false,
|
362
373
|
},
|
363
|
-
|
374
|
+
_v[types_1.SupportedDex.Cleo] = {
|
364
375
|
factoryAddress: '0xbBB97d634460DACCA0d41E249510Bb741ef46ad3',
|
365
376
|
depositGuard: {
|
366
377
|
address: '0xADDA3A15EA71c223a82Af86d4578EF2B076035F1',
|
@@ -369,7 +380,7 @@ var addressConfig = (_a = {},
|
|
369
380
|
vaultDeployerAddress: '0xC4183bCcBa1D825A8aC971e13E698368b744F43C',
|
370
381
|
isAlgebra: false,
|
371
382
|
},
|
372
|
-
|
383
|
+
_v[types_1.SupportedDex.Crust] = {
|
373
384
|
factoryAddress: '0x797ebB6A84367B0409094FEA0D10aC7516432433',
|
374
385
|
depositGuard: {
|
375
386
|
address: '0x15Ea9A2a0FfBaA8Ad51a10a9bda84E60585Ba0De',
|
@@ -378,9 +389,9 @@ var addressConfig = (_a = {},
|
|
378
389
|
vaultDeployerAddress: '0xC4183bCcBa1D825A8aC971e13E698368b744F43C',
|
379
390
|
isAlgebra: false,
|
380
391
|
},
|
381
|
-
|
382
|
-
_a[types_1.SupportedChainId.polygon_zkevm] = (
|
383
|
-
|
392
|
+
_v),
|
393
|
+
_a[types_1.SupportedChainId.polygon_zkevm] = (_w = {},
|
394
|
+
_w[types_1.SupportedDex.Pancakeswap] = {
|
384
395
|
factoryAddress: '0xe8532Db60408f2d47693dA5b9093D71580B8C23F',
|
385
396
|
depositGuard: {
|
386
397
|
address: '0x71338eAcdE9eF818d4F5ff979e0E727b90Dd5F59',
|
@@ -389,7 +400,7 @@ var addressConfig = (_a = {},
|
|
389
400
|
vaultDeployerAddress: '0xCAE2d9760B852861e1A552b35e48c263047Fbc0f',
|
390
401
|
isAlgebra: false,
|
391
402
|
},
|
392
|
-
|
403
|
+
_w[types_1.SupportedDex.Quickswap] = {
|
393
404
|
factoryAddress: '0x1721cB3ff3cAF70a79bDE9d771B27646ed8115b1',
|
394
405
|
depositGuard: {
|
395
406
|
address: '0xC030BEf30EDE8ebd7Fd319361ceBa54c81754AD3',
|
@@ -398,9 +409,9 @@ var addressConfig = (_a = {},
|
|
398
409
|
vaultDeployerAddress: '0xCAE2d9760B852861e1A552b35e48c263047Fbc0f',
|
399
410
|
isAlgebra: true,
|
400
411
|
},
|
401
|
-
|
402
|
-
_a[types_1.SupportedChainId.scroll] = (
|
403
|
-
|
412
|
+
_w),
|
413
|
+
_a[types_1.SupportedChainId.scroll] = (_x = {},
|
414
|
+
_x[types_1.SupportedDex.UniswapV3] = {
|
404
415
|
factoryAddress: '0x9FAb4bdD4E05f5C023CCC85D2071b49791D7418F',
|
405
416
|
depositGuard: {
|
406
417
|
address: '0xb62399d23d1c81f08eA445A42d7F15cC12090A71',
|
@@ -409,7 +420,7 @@ var addressConfig = (_a = {},
|
|
409
420
|
vaultDeployerAddress: '0x596643Ce4fe8b2e72F340584cec02Ab99dA866c1',
|
410
421
|
isAlgebra: false,
|
411
422
|
},
|
412
|
-
|
423
|
+
_x[types_1.SupportedDex.Metavault] = {
|
413
424
|
factoryAddress: '0xb42D5956cDe4386B65C087CfCD16910aB6114F15',
|
414
425
|
depositGuard: {
|
415
426
|
address: '0x131c03ca881B7cC66d7a5120A9273ebf675C241D',
|
@@ -418,9 +429,9 @@ var addressConfig = (_a = {},
|
|
418
429
|
vaultDeployerAddress: '0x596643Ce4fe8b2e72F340584cec02Ab99dA866c1',
|
419
430
|
isAlgebra: false,
|
420
431
|
},
|
421
|
-
|
422
|
-
_a[types_1.SupportedChainId.skale_europa] = (
|
423
|
-
|
432
|
+
_x),
|
433
|
+
_a[types_1.SupportedChainId.skale_europa] = (_y = {},
|
434
|
+
_y[types_1.SupportedDex.Sushiswap] = {
|
424
435
|
factoryAddress: '0x1B0ef045830466171D617dD0F1142aD699A4Cd63',
|
425
436
|
depositGuard: {
|
426
437
|
address: '0x860F3881aCBbF05D48a324C5b8ca9004D31A146C',
|
@@ -429,9 +440,9 @@ var addressConfig = (_a = {},
|
|
429
440
|
vaultDeployerAddress: '0xED0A10A7db58d9dB23DDfB7EEbFE1Fe863ef67aA',
|
430
441
|
isAlgebra: false,
|
431
442
|
},
|
432
|
-
|
433
|
-
_a[types_1.SupportedChainId.taiko] = (
|
434
|
-
|
443
|
+
_y),
|
444
|
+
_a[types_1.SupportedChainId.taiko] = (_z = {},
|
445
|
+
_z[types_1.SupportedDex.Henjin] = {
|
435
446
|
factoryAddress: '0x9FAb4bdD4E05f5C023CCC85D2071b49791D7418F',
|
436
447
|
depositGuard: {
|
437
448
|
address: '0x2E76A8D053f839A04235341dF1f25235437fEDd6',
|
@@ -441,9 +452,9 @@ var addressConfig = (_a = {},
|
|
441
452
|
isAlgebra: true,
|
442
453
|
ammVersion: 'algebraIntegral',
|
443
454
|
},
|
444
|
-
|
445
|
-
_a[types_1.SupportedChainId.taiko_hekla] = (
|
446
|
-
|
455
|
+
_z),
|
456
|
+
_a[types_1.SupportedChainId.taiko_hekla] = (_0 = {},
|
457
|
+
_0[types_1.SupportedDex.Henjin] = {
|
447
458
|
factoryAddress: '0x7C6389714719C68cAAc8Ae06baE6E878B3605f6D',
|
448
459
|
depositGuard: {
|
449
460
|
address: '0xF8b3f6727e44abb211C0049FC849FbB091Ff765E',
|
@@ -453,9 +464,9 @@ var addressConfig = (_a = {},
|
|
453
464
|
isAlgebra: true,
|
454
465
|
ammVersion: 'algebraIntegral',
|
455
466
|
},
|
456
|
-
|
457
|
-
_a[types_1.SupportedChainId.x_layer_testnet] = (
|
458
|
-
|
467
|
+
_0),
|
468
|
+
_a[types_1.SupportedChainId.x_layer_testnet] = (_1 = {},
|
469
|
+
_1[types_1.SupportedDex.XSwap] = {
|
459
470
|
factoryAddress: '0xADDA3A15EA71c223a82Af86d4578EF2B076035F1',
|
460
471
|
depositGuard: {
|
461
472
|
address: '0xe573920139a208989d83C57ea48837C6285F2cd3',
|
@@ -465,9 +476,9 @@ var addressConfig = (_a = {},
|
|
465
476
|
isAlgebra: true,
|
466
477
|
ammVersion: 'algebraIntegral',
|
467
478
|
},
|
468
|
-
|
469
|
-
_a[types_1.SupportedChainId.zksync_era] = (
|
470
|
-
|
479
|
+
_1),
|
480
|
+
_a[types_1.SupportedChainId.zksync_era] = (_2 = {},
|
481
|
+
_2[types_1.SupportedDex.Pancakeswap] = {
|
471
482
|
factoryAddress: '0x8a76c26E0089111989C14EF56b9733aa38B94148',
|
472
483
|
depositGuard: {
|
473
484
|
address: '0x5997487384CDae95E1AED6eAab1bb827180E1154',
|
@@ -476,7 +487,7 @@ var addressConfig = (_a = {},
|
|
476
487
|
isAlgebra: false,
|
477
488
|
vaultDeployerAddress: '0x12C1F03a443A5B893870ea6cBDb2362f666275Da',
|
478
489
|
},
|
479
|
-
|
490
|
+
_2[types_1.SupportedDex.Velocore] = {
|
480
491
|
factoryAddress: '0x1Cd7f4a2E9e7EFb23E27CFB9eF3a2F3CFAf27675',
|
481
492
|
depositGuard: {
|
482
493
|
address: '0x01292A32a0b8F8f56fBb8DB90d3756a0EF06C666',
|
@@ -485,9 +496,9 @@ var addressConfig = (_a = {},
|
|
485
496
|
vaultDeployerAddress: '0x12C1F03a443A5B893870ea6cBDb2362f666275Da',
|
486
497
|
isAlgebra: true,
|
487
498
|
},
|
488
|
-
|
489
|
-
_a[types_1.SupportedChainId.zksync_era_testnet] = (
|
490
|
-
|
499
|
+
_2),
|
500
|
+
_a[types_1.SupportedChainId.zksync_era_testnet] = (_3 = {},
|
501
|
+
_3[types_1.SupportedDex.Velocore] = {
|
491
502
|
factoryAddress: '0x0227f2b783b610107349da9b9DF516b8d476aB4F',
|
492
503
|
depositGuard: {
|
493
504
|
address: '0x7570c7b58c68d95F0663f89C228B7b13d05c15e6',
|
@@ -496,7 +507,7 @@ var addressConfig = (_a = {},
|
|
496
507
|
vaultDeployerAddress: '0x451Efff92a3a1471b7af9DDc1369D9D157E6475A',
|
497
508
|
isAlgebra: true,
|
498
509
|
},
|
499
|
-
|
510
|
+
_3),
|
500
511
|
_a);
|
501
512
|
exports.default = addressConfig;
|
502
513
|
//# sourceMappingURL=addresses.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot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c,EAAE,4CAA4C;YAC5D,YAAY,EAAE;gBACZ,OAAO,EAAE,4CAA4C;gBACrD,OAAO,EAAE,CAAC;aACX;YACD,oBAAoB,EAAE,4CAA4C;YAClE,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,iBAAiB;SAC9B;WACF;IACD,GAAC,wBAAgB,CAAC,UAAU;QAC1B,GAAC,oBAAY,CAAC,WAAW,IAAG;YAC1B,cAAc,EAAE,4CAA4C;YAC5D,YAAY,EAAE;gBACZ,OAAO,EAAE,4CAA4C;gBACrD,OAAO,EAAE,CAAC;aACX;YACD,SAAS,EAAE,KAAK;YAChB,oBAAoB,EAAE,4CAA4C;SACnE;QACD,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,cAAc,EAAE,4CAA4C;YAC5D,YAAY,EAAE;gBACZ,OAAO,EAAE,4CAA4C;gBACrD,OAAO,EAAE,CAAC;aACX;YACD,oBAAoB,EAAE,4CAA4C;YAClE,SAAS,EAAE,IAAI;SAChB;WACF;IACD,GAAC,wBAAgB,CAAC,kBAAkB;QAClC,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,cAAc,EAAE,4CAA4C;YAC5D,YAAY,EAAE;gBACZ,OAAO,EAAE,4CAA4C;gBACrD,OAAO,EAAE,CAAC;aACX;YACD,oBAAoB,EAAE,4CAA4C;YAClE,SAAS,EAAE,IAAI;SAChB;WACF;OACF,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../src/utils/config/addresses.ts"],"names":[],"mappings":";;;AAAA,qCAA6D;AAiB7D,IAAM,aAAa;IACjB,GAAC,wBAAgB,CAAC,QAAQ;QACxB,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,cAAc,EAAE,4CAA4C;YAC5D,YAAY,EAAE;gBACZ,OAAO,EAAE,4CAA4C;gBACrD,OAAO,EAAE,CAAC;aACX;YACD,oBAAoB,EAAE,4CAA4C;YAClE,SAAS,EAAE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