@paraswap/dex-lib 2.35.3-base-support.0 → 2.35.3-quick-perps-proxy.1
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/build/abi/api3-proxy.json +7 -0
- package/build/abi/quickPerps/fast-price-events.json +70 -0
- package/build/abi/quickPerps/fast-price-feed.json +748 -0
- package/build/abi/quickPerps/reader.json +313 -0
- package/build/abi/quickPerps/vault-price-feed.json +477 -0
- package/build/abi/quickPerps/vault.json +1953 -0
- package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
- package/build/abi/woo-fi/WooPP.abi.json +548 -0
- package/build/abi/woo-fi/Wooracle.abi.json +260 -0
- package/build/config.js +0 -26
- package/build/config.js.map +1 -1
- package/build/constants.d.ts +1 -2
- package/build/constants.js +0 -1
- package/build/constants.js.map +1 -1
- package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
- package/build/dex/aave-v3/tokens/avalanche.json +74 -0
- package/build/dex/aave-v3/tokens/fantom.json +62 -0
- package/build/dex/aave-v3/tokens/optimism.json +50 -0
- package/build/dex/aave-v3/tokens/polygon.json +116 -0
- package/build/dex/quick-perps/pool.js +21 -6
- package/build/dex/quick-perps/pool.js.map +1 -1
- package/build/dex/quick-perps/quick-perps.js +34 -28
- package/build/dex/quick-perps/quick-perps.js.map +1 -1
- package/build/dex/quickswap/camelot-v3.d.ts +6 -0
- package/build/dex/quickswap/camelot-v3.js +19 -0
- package/build/dex/quickswap/camelot-v3.js.map +1 -0
- package/build/dex/quickswap-v3.d.ts +21 -0
- package/build/dex/quickswap-v3.js +40 -0
- package/build/dex/quickswap-v3.js.map +1 -0
- package/build/dex/test-dex/config.d.ts +4 -0
- package/build/dex/test-dex/config.js +15 -0
- package/build/dex/test-dex/config.js.map +1 -0
- package/build/dex/test-dex/test-dex-pool.d.ts +39 -0
- package/build/dex/test-dex/test-dex-pool.js +63 -0
- package/build/dex/test-dex/test-dex-pool.js.map +1 -0
- package/build/dex/test-dex/test-dex.d.ts +37 -0
- package/build/dex/test-dex/test-dex.js +126 -0
- package/build/dex/test-dex/test-dex.js.map +1 -0
- package/build/dex/test-dex/types.d.ts +6 -0
- package/build/dex/test-dex/types.js +3 -0
- package/build/dex/test-dex/types.js.map +1 -0
- package/build/dex/uniswap-v3/config.js +0 -16
- package/build/dex/uniswap-v3/config.js.map +1 -1
- package/build/dex/weth/config.js +0 -3
- package/build/dex/weth/config.js.map +1 -1
- package/build/dex/woo-fi/config.d.ts +4 -0
- package/build/dex/woo-fi/config.js +141 -0
- package/build/dex/woo-fi/config.js.map +1 -0
- package/build/dex/woo-fi/constants.d.ts +5 -0
- package/build/dex/woo-fi/constants.js +20 -0
- package/build/dex/woo-fi/constants.js.map +1 -0
- package/build/dex/woo-fi/types.d.ts +48 -0
- package/build/dex/woo-fi/types.js +3 -0
- package/build/dex/woo-fi/types.js.map +1 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
- package/build/dex/woo-fi/woo-fi-math.js +300 -0
- package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi.d.ts +65 -0
- package/build/dex/woo-fi/woo-fi.js +480 -0
- package/build/dex/woo-fi/woo-fi.js.map +1 -0
- package/build/dex/woo-fi-v2/woo-fi-math.d.ts +16 -0
- package/build/dex/woo-fi-v2/woo-fi-math.js +137 -0
- package/build/dex/woo-fi-v2/woo-fi-math.js.map +1 -0
- package/build/lib/api3-feed.d.ts +4 -0
- package/build/lib/api3-feed.js +18 -0
- package/build/lib/api3-feed.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/api3-proxy.json +7 -0
- package/src/config.ts +1 -27
- package/src/constants.ts +0 -1
- package/src/dex/quick-perps/pool.ts +42 -7
- package/src/dex/quick-perps/quick-perps-events.test.ts +0 -1
- package/src/dex/quick-perps/quick-perps.ts +45 -35
- package/src/dex/uniswap-v3/config.ts +0 -17
- package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -95
- package/src/dex/weth/config.ts +0 -3
- package/src/lib/api3-feed.ts +35 -0
- package/tests/constants-e2e.ts +0 -17
- package/build/dex/pancakeswap-v3/types.d.ts +0 -137
- package/build/dex/pancakeswap-v3/types.js +0 -9
- package/build/dex/pancakeswap-v3/types.js.map +0 -1
- package/build/web3-provider.d.ts +0 -3
- package/build/web3-provider.js +0 -13
- package/build/web3-provider.js.map +0 -1
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from 'ethers';
|
|
2
|
-
import { NumberAsString } from '../../types';
|
|
3
|
-
import { Address } from '../../types';
|
|
4
|
-
export declare type OracleObservation = {
|
|
5
|
-
blockTimestamp: bigint;
|
|
6
|
-
tickCumulative: bigint;
|
|
7
|
-
secondsPerLiquidityCumulativeX128: bigint;
|
|
8
|
-
initialized: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare type OracleObservationCandidates = {
|
|
11
|
-
beforeOrAt: OracleObservation;
|
|
12
|
-
atOrAfter: OracleObservation;
|
|
13
|
-
};
|
|
14
|
-
export declare type TickInfo = {
|
|
15
|
-
liquidityGross: bigint;
|
|
16
|
-
liquidityNet: bigint;
|
|
17
|
-
tickCumulativeOutside: bigint;
|
|
18
|
-
secondsPerLiquidityOutsideX128: bigint;
|
|
19
|
-
secondsOutside: bigint;
|
|
20
|
-
initialized: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare type Slot0 = {
|
|
23
|
-
sqrtPriceX96: bigint;
|
|
24
|
-
tick: bigint;
|
|
25
|
-
observationIndex: number;
|
|
26
|
-
observationCardinality: number;
|
|
27
|
-
observationCardinalityNext: number;
|
|
28
|
-
feeProtocol: bigint;
|
|
29
|
-
};
|
|
30
|
-
export declare type PoolState = {
|
|
31
|
-
pool: string;
|
|
32
|
-
blockTimestamp: bigint;
|
|
33
|
-
tickSpacing: bigint;
|
|
34
|
-
fee: bigint;
|
|
35
|
-
slot0: Slot0;
|
|
36
|
-
liquidity: bigint;
|
|
37
|
-
maxLiquidityPerTick: bigint;
|
|
38
|
-
tickBitmap: Record<NumberAsString, bigint>;
|
|
39
|
-
ticks: Record<NumberAsString, TickInfo>;
|
|
40
|
-
observations: Record<number, OracleObservation>;
|
|
41
|
-
isValid: boolean;
|
|
42
|
-
startTickBitmap: bigint;
|
|
43
|
-
lowestKnownTick: bigint;
|
|
44
|
-
highestKnownTick: bigint;
|
|
45
|
-
balance0: bigint;
|
|
46
|
-
balance1: bigint;
|
|
47
|
-
};
|
|
48
|
-
export declare type UniswapV3Data = {
|
|
49
|
-
path: {
|
|
50
|
-
tokenIn: Address;
|
|
51
|
-
tokenOut: Address;
|
|
52
|
-
fee: NumberAsString;
|
|
53
|
-
}[];
|
|
54
|
-
};
|
|
55
|
-
export declare type DexParams = {
|
|
56
|
-
router: Address;
|
|
57
|
-
quoter: Address;
|
|
58
|
-
factory: Address;
|
|
59
|
-
stateMulticall: Address;
|
|
60
|
-
uniswapMulticall: Address;
|
|
61
|
-
supportedFees: bigint[];
|
|
62
|
-
chunksCount: number;
|
|
63
|
-
deployer?: Address;
|
|
64
|
-
subgraphURL: string;
|
|
65
|
-
initHash: string;
|
|
66
|
-
};
|
|
67
|
-
export declare type UniswapV3SellParam = {
|
|
68
|
-
path: string;
|
|
69
|
-
recipient: Address;
|
|
70
|
-
deadline: string;
|
|
71
|
-
amountIn: NumberAsString;
|
|
72
|
-
amountOutMinimum: NumberAsString;
|
|
73
|
-
};
|
|
74
|
-
export declare type UniswapV3BuyParam = {
|
|
75
|
-
path: string;
|
|
76
|
-
recipient: Address;
|
|
77
|
-
deadline: string;
|
|
78
|
-
amountOut: NumberAsString;
|
|
79
|
-
amountInMaximum: NumberAsString;
|
|
80
|
-
};
|
|
81
|
-
export declare type UniswapV3Param = UniswapV3SellParam | UniswapV3BuyParam;
|
|
82
|
-
export declare enum UniswapV3Functions {
|
|
83
|
-
exactInput = "exactInput",
|
|
84
|
-
exactOutput = "exactOutput"
|
|
85
|
-
}
|
|
86
|
-
export declare type TickInfoMappings = {
|
|
87
|
-
index: number;
|
|
88
|
-
value: TickInfo;
|
|
89
|
-
};
|
|
90
|
-
export declare type TickBitMapMappings = {
|
|
91
|
-
index: number;
|
|
92
|
-
value: bigint;
|
|
93
|
-
};
|
|
94
|
-
export declare type OutputResult = {
|
|
95
|
-
outputs: bigint[];
|
|
96
|
-
tickCounts: number[];
|
|
97
|
-
};
|
|
98
|
-
export declare type TickBitMapMappingsWithBigNumber = {
|
|
99
|
-
index: number;
|
|
100
|
-
value: BigNumber;
|
|
101
|
-
};
|
|
102
|
-
export declare type TickInfoWithBigNumber = {
|
|
103
|
-
initialized: boolean;
|
|
104
|
-
liquidityGross: BigNumber;
|
|
105
|
-
liquidityNet: BigNumber;
|
|
106
|
-
secondsOutside: number;
|
|
107
|
-
secondsPerLiquidityOutsideX128: BigNumber;
|
|
108
|
-
tickCumulativeOutside: BigNumber;
|
|
109
|
-
};
|
|
110
|
-
export declare type TickInfoMappingsWithBigNumber = {
|
|
111
|
-
index: number;
|
|
112
|
-
value: TickInfoWithBigNumber;
|
|
113
|
-
};
|
|
114
|
-
export declare type DecodedStateMultiCallResultWithRelativeBitmaps = {
|
|
115
|
-
pool: Address;
|
|
116
|
-
blockTimestamp: BigNumber;
|
|
117
|
-
slot0: {
|
|
118
|
-
feeProtocol: number;
|
|
119
|
-
observationCardinality: number;
|
|
120
|
-
observationCardinalityNext: number;
|
|
121
|
-
observationIndex: number;
|
|
122
|
-
sqrtPriceX96: BigNumber;
|
|
123
|
-
tick: number;
|
|
124
|
-
unlocked: boolean;
|
|
125
|
-
};
|
|
126
|
-
liquidity: BigNumber;
|
|
127
|
-
tickSpacing: number;
|
|
128
|
-
maxLiquidityPerTick: BigNumber;
|
|
129
|
-
observation: {
|
|
130
|
-
blockTimestamp: number;
|
|
131
|
-
initialized: boolean;
|
|
132
|
-
secondsPerLiquidityCumulativeX128: BigNumber;
|
|
133
|
-
tickCumulative: BigNumber;
|
|
134
|
-
};
|
|
135
|
-
tickBitmap: TickBitMapMappingsWithBigNumber[];
|
|
136
|
-
ticks: TickInfoMappingsWithBigNumber[];
|
|
137
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UniswapV3Functions = void 0;
|
|
4
|
-
var UniswapV3Functions;
|
|
5
|
-
(function (UniswapV3Functions) {
|
|
6
|
-
UniswapV3Functions["exactInput"] = "exactInput";
|
|
7
|
-
UniswapV3Functions["exactOutput"] = "exactOutput";
|
|
8
|
-
})(UniswapV3Functions = exports.UniswapV3Functions || (exports.UniswapV3Functions = {}));
|
|
9
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/dex/pancakeswap-v3/types.ts"],"names":[],"mappings":";;;AA4FA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
package/build/web3-provider.d.ts
DELETED
package/build/web3-provider.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRpcProvider = void 0;
|
|
4
|
-
const providers_1 = require("@ethersproject/providers");
|
|
5
|
-
const config_1 = require("./config");
|
|
6
|
-
function getRpcProvider(network, url) {
|
|
7
|
-
return new providers_1.StaticJsonRpcProvider({
|
|
8
|
-
url: url ?? (0, config_1.generateConfig)(network).privateHttpProvider,
|
|
9
|
-
allowGzip: true,
|
|
10
|
-
}, network);
|
|
11
|
-
}
|
|
12
|
-
exports.getRpcProvider = getRpcProvider;
|
|
13
|
-
//# sourceMappingURL=web3-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web3-provider.js","sourceRoot":"","sources":["../src/web3-provider.ts"],"names":[],"mappings":";;;AACA,wDAAiE;AACjE,qCAA0C;AAG1C,SAAgB,cAAc,CAAC,OAAgB,EAAE,GAAY;IAC3D,OAAO,IAAI,iCAAqB,CAC9B;QACE,GAAG,EAAE,GAAG,IAAI,IAAA,uBAAc,EAAC,OAAO,CAAC,CAAC,mBAAmB;QACvD,SAAS,EAAE,IAAI;KAChB,EACD,OAAO,CACR,CAAC;AACJ,CAAC;AARD,wCAQC"}
|