@paraswap/dex-lib 3.7.5 → 3.7.6
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/.vscode/launch.json +53 -0
- package/.vscode/settings.json +2 -0
- package/.vscode/tasks.json +15 -0
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
- package/build/abi/{idle-dao/idle-cdo.json → wombat/pool.json} +588 -544
- package/build/dex/aave-v1/aave-v1.js +1 -0
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/aave-v2/tokens-avalanche.json +44 -0
- package/build/dex/aave-v2/tokens-mainnet.json +188 -0
- package/build/dex/aave-v2/tokens-polygon.json +44 -0
- package/build/dex/bProtocol.d.ts +18 -0
- package/build/dex/bProtocol.js +39 -0
- package/build/dex/bProtocol.js.map +1 -0
- package/build/dex/bancor.d.ts +26 -0
- package/build/dex/bancor.js +58 -0
- package/build/dex/bancor.js.map +1 -0
- package/build/dex/compound.d.ts +18 -0
- package/build/dex/compound.js +46 -0
- package/build/dex/compound.js.map +1 -0
- package/build/dex/curve-v2.d.ts +58 -0
- package/build/dex/curve-v2.js +180 -0
- package/build/dex/curve-v2.js.map +1 -0
- package/build/dex/dodo-v1.d.ts +33 -0
- package/build/dex/dodo-v1.js +63 -0
- package/build/dex/dodo-v1.js.map +1 -0
- package/build/dex/lido.d.ts +19 -0
- package/build/dex/lido.js +42 -0
- package/build/dex/lido.js.map +1 -0
- package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +185 -0
- package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
- package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
- package/build/dex/maverick-v2/maverick-v2-pool.d.ts +1 -0
- package/build/dex/maverick-v2/maverick-v2-pool.js +14 -0
- package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -1
- package/build/dex/maverick-v2/maverick-v2.js +1 -1
- package/build/dex/maverick-v2/maverick-v2.js.map +1 -1
- package/build/dex/onebit.d.ts +25 -0
- package/build/dex/onebit.js +42 -0
- package/build/dex/onebit.js.map +1 -0
- package/build/dex/platypus/platypus.js +17 -3
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/smoothy.d.ts +26 -0
- package/build/dex/smoothy.js +48 -0
- package/build/dex/smoothy.js.map +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
- package/build/dex/stable-pool.d.ts +28 -0
- package/build/dex/stable-pool.js +55 -0
- package/build/dex/stable-pool.js.map +1 -0
- package/build/dex/swaap-v1/swaap-v1.js +4 -0
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/trader-joe-v2.1.d.ts +43 -0
- package/build/dex/trader-joe-v2.1.js +79 -0
- package/build/dex/trader-joe-v2.1.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
- package/package.json +1 -1
- package/src/dex/maverick-v2/maverick-v2-pool.ts +23 -0
- package/src/dex/maverick-v2/maverick-v2.ts +2 -3
- package/build/abi/idle-dao/idle-cdo-factory.json +0 -38
- package/build/dex/idle-dao/config.d.ts +0 -6
- package/build/dex/idle-dao/config.js +0 -307
- package/build/dex/idle-dao/config.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
- package/build/dex/idle-dao/idle-dao-pool.js +0 -176
- package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
- package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
- package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
- package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
- package/build/dex/idle-dao/idle-dao.d.ts +0 -41
- package/build/dex/idle-dao/idle-dao.js +0 -240
- package/build/dex/idle-dao/idle-dao.js.map +0 -1
- package/build/dex/idle-dao/scripts.d.ts +0 -9
- package/build/dex/idle-dao/scripts.js +0 -552
- package/build/dex/idle-dao/scripts.js.map +0 -1
- package/build/dex/idle-dao/tokens.d.ts +0 -9
- package/build/dex/idle-dao/tokens.js +0 -65
- package/build/dex/idle-dao/tokens.js.map +0 -1
- package/build/dex/idle-dao/types.d.ts +0 -35
- package/build/dex/idle-dao/types.js +0 -11
- package/build/dex/idle-dao/types.js.map +0 -1
- package/build/dex/idle-dao/utils.d.ts +0 -8
- package/build/dex/idle-dao/utils.js +0 -148
- package/build/dex/idle-dao/utils.js.map +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Address } from '@paraswap/core';
|
|
2
|
-
import { Contract } from 'web3-eth-contract';
|
|
3
|
-
export declare type DexParams = {
|
|
4
|
-
lendingGasCost: number;
|
|
5
|
-
factoryAddress: Address;
|
|
6
|
-
};
|
|
7
|
-
export declare type IdleToken = {
|
|
8
|
-
idleDecimals: number;
|
|
9
|
-
idleSymbol: string;
|
|
10
|
-
idleAddress: string;
|
|
11
|
-
cdoAddress: string;
|
|
12
|
-
cdoContract?: Contract;
|
|
13
|
-
tokenType: 'AA' | 'BB';
|
|
14
|
-
blockNumber: number;
|
|
15
|
-
address: string;
|
|
16
|
-
decimals: number;
|
|
17
|
-
};
|
|
18
|
-
export declare type TrancheToken = {
|
|
19
|
-
idleAddress: IdleToken['idleAddress'];
|
|
20
|
-
cdoAddress: IdleToken['cdoAddress'];
|
|
21
|
-
tokenType: IdleToken['tokenType'];
|
|
22
|
-
};
|
|
23
|
-
export declare type IdleDaoData = {
|
|
24
|
-
idleToken: Pick<IdleToken, 'cdoAddress' | 'tokenType'>;
|
|
25
|
-
fromIdleToken: boolean;
|
|
26
|
-
};
|
|
27
|
-
export declare type Deposit = [amount: string, referral?: string];
|
|
28
|
-
export declare type Withdraw = [amount: string];
|
|
29
|
-
export declare type Param = Deposit | Withdraw;
|
|
30
|
-
export declare enum PoolFunctions {
|
|
31
|
-
withdrawAA = "withdrawAA",
|
|
32
|
-
depositAA = "depositAARef",
|
|
33
|
-
withdrawBB = "withdrawBB",
|
|
34
|
-
depositBB = "depositBBRef"
|
|
35
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PoolFunctions = void 0;
|
|
4
|
-
var PoolFunctions;
|
|
5
|
-
(function (PoolFunctions) {
|
|
6
|
-
PoolFunctions["withdrawAA"] = "withdrawAA";
|
|
7
|
-
PoolFunctions["depositAA"] = "depositAARef";
|
|
8
|
-
PoolFunctions["withdrawBB"] = "withdrawBB";
|
|
9
|
-
PoolFunctions["depositBB"] = "depositBBRef";
|
|
10
|
-
})(PoolFunctions = exports.PoolFunctions || (exports.PoolFunctions = {}));
|
|
11
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/dex/idle-dao/types.ts"],"names":[],"mappings":";;;AAqCA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,0CAAyB,CAAA;IACzB,2CAA0B,CAAA;IAC1B,0CAAyB,CAAA;IACzB,2CAA0B,CAAA;AAC5B,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { Interface } from '@ethersproject/abi';
|
|
3
|
-
import { MultiWrapper } from '../../lib/multi-wrapper';
|
|
4
|
-
import { IdleToken } from './types';
|
|
5
|
-
import { Network } from '../../constants';
|
|
6
|
-
import { IDexHelper } from '../../dex-helper';
|
|
7
|
-
export declare const BNify: (s: any) => BigNumber;
|
|
8
|
-
export declare const fetchTokenList_api: (network: Network, dexHelper: IDexHelper, blockNumber: number, cdoInterface: Interface, erc20Interface: Interface, multiWrapper: MultiWrapper, token: string) => Promise<IdleToken[]>;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.fetchTokenList_api = exports.BNify = void 0;
|
|
7
|
-
const config_1 = require("./config");
|
|
8
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
9
|
-
const decoders_1 = require("../../lib/decoders");
|
|
10
|
-
const axios_1 = __importDefault(require("axios"));
|
|
11
|
-
const BNify = (s) => new bignumber_js_1.default(typeof s === 'object' ? s : String(s));
|
|
12
|
-
exports.BNify = BNify;
|
|
13
|
-
async function _getIdleTokenSymbols(blockNumber, idleTokens, erc20Interface, multiWrapper) {
|
|
14
|
-
let calls = [];
|
|
15
|
-
for (const idleAddress of idleTokens) {
|
|
16
|
-
calls.push({
|
|
17
|
-
target: idleAddress,
|
|
18
|
-
callData: erc20Interface.encodeFunctionData('symbol', []),
|
|
19
|
-
decodeFunction: (result) => {
|
|
20
|
-
return {
|
|
21
|
-
idleAddress,
|
|
22
|
-
idleSymbol: (0, decoders_1.stringDecode)(result),
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const results = await multiWrapper.aggregate(calls, blockNumber);
|
|
28
|
-
return results.reduce((output, item) => {
|
|
29
|
-
return {
|
|
30
|
-
...output,
|
|
31
|
-
[item.idleAddress]: item.idleSymbol,
|
|
32
|
-
};
|
|
33
|
-
}, {});
|
|
34
|
-
}
|
|
35
|
-
async function _getIdleTokenDecimals(blockNumber, underlyingTokens, erc20Interface, multiWrapper) {
|
|
36
|
-
let calls = [];
|
|
37
|
-
for (const address of underlyingTokens) {
|
|
38
|
-
calls.push({
|
|
39
|
-
target: address,
|
|
40
|
-
callData: erc20Interface.encodeFunctionData('decimals', []),
|
|
41
|
-
decodeFunction: (result) => {
|
|
42
|
-
return {
|
|
43
|
-
address,
|
|
44
|
-
decimals: (0, decoders_1.uint8ToNumber)(result),
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
const results = await multiWrapper.aggregate(calls, blockNumber);
|
|
50
|
-
return results.reduce((output, item) => {
|
|
51
|
-
return {
|
|
52
|
-
...output,
|
|
53
|
-
[item.address]: item.decimals,
|
|
54
|
-
};
|
|
55
|
-
}, {});
|
|
56
|
-
}
|
|
57
|
-
const getDataWithAuth = async (endpoint, token, error_callback) => {
|
|
58
|
-
const config = {
|
|
59
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
60
|
-
};
|
|
61
|
-
const data = await axios_1.default.post(endpoint, {}, config).catch(err => {
|
|
62
|
-
if (typeof error_callback === 'function') {
|
|
63
|
-
error_callback(err);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
return data?.data;
|
|
67
|
-
};
|
|
68
|
-
const fetchTokenList_api = async (network, dexHelper, blockNumber, cdoInterface, erc20Interface, multiWrapper, token) => {
|
|
69
|
-
const data = await getDataWithAuth(config_1.endpoints[network], token);
|
|
70
|
-
// Fetch tokenslist from static file
|
|
71
|
-
if (!data) {
|
|
72
|
-
return config_1.TOKEN_LISTS;
|
|
73
|
-
}
|
|
74
|
-
const deployedContract = data
|
|
75
|
-
.filter((d) => !!d.cdoAddress)
|
|
76
|
-
.reduce((acc, d) => {
|
|
77
|
-
if (acc.includes(d.cdoAddress))
|
|
78
|
-
return acc;
|
|
79
|
-
return [...acc, d.cdoAddress];
|
|
80
|
-
}, []);
|
|
81
|
-
const calls = deployedContract.reduce((calls, cdoAddress) => {
|
|
82
|
-
calls.push({
|
|
83
|
-
target: cdoAddress,
|
|
84
|
-
callData: cdoInterface.encodeFunctionData('AATranche', []),
|
|
85
|
-
decodeFunction: (result) => {
|
|
86
|
-
return {
|
|
87
|
-
cdoAddress,
|
|
88
|
-
tokenType: 'AA',
|
|
89
|
-
idleAddress: (0, decoders_1.addressDecode)(result),
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
calls.push({
|
|
94
|
-
target: cdoAddress,
|
|
95
|
-
callData: cdoInterface.encodeFunctionData('BBTranche', []),
|
|
96
|
-
decodeFunction: (result) => {
|
|
97
|
-
return {
|
|
98
|
-
cdoAddress,
|
|
99
|
-
tokenType: 'BB',
|
|
100
|
-
idleAddress: (0, decoders_1.addressDecode)(result),
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
calls.push({
|
|
105
|
-
target: cdoAddress,
|
|
106
|
-
callData: cdoInterface.encodeFunctionData('token', []),
|
|
107
|
-
decodeFunction: (result) => {
|
|
108
|
-
return {
|
|
109
|
-
cdoAddress,
|
|
110
|
-
address: (0, decoders_1.addressDecode)(result),
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
return calls;
|
|
115
|
-
}, []);
|
|
116
|
-
const results = await multiWrapper.aggregate(calls, blockNumber);
|
|
117
|
-
const cdosUnderlying = results.reduce((cdosUnderlying, result) => {
|
|
118
|
-
if (!result.address)
|
|
119
|
-
return cdosUnderlying;
|
|
120
|
-
return {
|
|
121
|
-
...cdosUnderlying,
|
|
122
|
-
[result.cdoAddress]: result.address,
|
|
123
|
-
};
|
|
124
|
-
}, {});
|
|
125
|
-
const idleTokenSymbolsList = await _getIdleTokenSymbols(blockNumber, results
|
|
126
|
-
.filter(result => !!result.tokenType)
|
|
127
|
-
.map(result => result.idleAddress), erc20Interface, multiWrapper);
|
|
128
|
-
const idleTokenDecimals = await _getIdleTokenDecimals(blockNumber, results.filter(result => !result.tokenType).map(result => result.address), erc20Interface, multiWrapper);
|
|
129
|
-
const output = [];
|
|
130
|
-
for (const result of results) {
|
|
131
|
-
if (result.tokenType) {
|
|
132
|
-
const idleToken = {
|
|
133
|
-
blockNumber: 0,
|
|
134
|
-
idleDecimals: 18,
|
|
135
|
-
cdoAddress: result.cdoAddress,
|
|
136
|
-
idleAddress: result.idleAddress,
|
|
137
|
-
address: cdosUnderlying[result.cdoAddress],
|
|
138
|
-
idleSymbol: idleTokenSymbolsList[result.idleAddress],
|
|
139
|
-
tokenType: result.tokenType,
|
|
140
|
-
decimals: idleTokenDecimals[cdosUnderlying[result.cdoAddress]],
|
|
141
|
-
};
|
|
142
|
-
output.push(idleToken);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return output;
|
|
146
|
-
};
|
|
147
|
-
exports.fetchTokenList_api = fetchTokenList_api;
|
|
148
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/dex/idle-dao/utils.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAkD;AAElD,gEAAqC;AAErC,iDAAgF;AAOhF,kDAA0B;AAInB,MAAM,KAAK,GAAG,CAAC,CAAM,EAAa,EAAE,CACzC,IAAI,sBAAS,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAD1C,QAAA,KAAK,SACqC;AAEvD,KAAK,UAAU,oBAAoB,CACjC,WAAmB,EACnB,UAAoB,EACpB,cAAyB,EACzB,YAA0B;IAE1B,IAAI,KAAK,GAA2B,EAAE,CAAC;IAEvC,KAAK,MAAM,WAAW,IAAI,UAAU,EAAE;QACpC,KAAK,CAAC,IAA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