@paraswap/dex-lib 2.28.10-ramses-v2 → 2.28.10
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/uniswap-v3/UniswapV3QuoterV2.abi.json +155 -0
- package/build/dex/index.js +0 -2
- package/build/dex/index.js.map +1 -1
- package/build/dex/uniswap-v3/config.js +0 -22
- package/build/dex/uniswap-v3/config.js.map +1 -1
- package/build/dex/uniswap-v3/types.d.ts +1 -6
- package/build/dex/uniswap-v3/types.js.map +1 -1
- package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +2 -3
- package/build/dex/uniswap-v3/uniswap-v3-pool.js +2 -5
- package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
- package/build/dex/uniswap-v3/uniswap-v3.js +5 -9
- package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
- package/build/lib/multi-wrapper.js +3 -5
- package/build/lib/multi-wrapper.js.map +1 -1
- package/package.json +1 -1
- package/src/dex/index.ts +0 -2
- package/src/dex/uniswap-v3/config.ts +0 -22
- package/src/dex/uniswap-v3/types.ts +1 -7
- package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +354 -445
- package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +3 -26
- package/src/dex/uniswap-v3/uniswap-v3-pool.ts +4 -9
- package/src/dex/uniswap-v3/uniswap-v3.ts +4 -9
- package/src/lib/multi-wrapper.ts +4 -4
- package/tests/constants-e2e.ts +5 -1
- package/src/abi/RamsesV2Pool.abi.json +0 -1554
- package/src/abi/RamsesV2StateMulticall.abi.json +0 -891
- package/src/dex/ramses-v2/config.ts +0 -31
- package/src/dex/ramses-v2/constants.ts +0 -41
- package/src/dex/ramses-v2/contract-math/BitMath.ts +0 -90
- package/src/dex/ramses-v2/contract-math/FixedPoint128.ts +0 -3
- package/src/dex/ramses-v2/contract-math/FixedPoint96.ts +0 -4
- package/src/dex/ramses-v2/contract-math/FullMath.ts +0 -30
- package/src/dex/ramses-v2/contract-math/LiquidityMath.ts +0 -17
- package/src/dex/ramses-v2/contract-math/Oracle.ts +0 -226
- package/src/dex/ramses-v2/contract-math/SqrtPriceMath.ts +0 -226
- package/src/dex/ramses-v2/contract-math/SwapMath.ts +0 -139
- package/src/dex/ramses-v2/contract-math/Tick.ts +0 -82
- package/src/dex/ramses-v2/contract-math/TickBitMap.ts +0 -128
- package/src/dex/ramses-v2/contract-math/TickMath.ts +0 -211
- package/src/dex/ramses-v2/contract-math/UnsafeMath.ts +0 -5
- package/src/dex/ramses-v2/contract-math/uniswap-v3-math.ts +0 -666
- package/src/dex/ramses-v2/contract-math/utils.ts +0 -11
- package/src/dex/ramses-v2/ramses-v2-e2e.test.ts +0 -100
- package/src/dex/ramses-v2/ramses-v2-events.test.ts +0 -182
- package/src/dex/ramses-v2/ramses-v2-integration.test.ts +0 -462
- package/src/dex/ramses-v2/ramses-v2-pool.ts +0 -513
- package/src/dex/ramses-v2/ramses-v2.ts +0 -1136
- package/src/dex/ramses-v2/types.ts +0 -177
- package/src/dex/ramses-v2/utils.ts +0 -90
- package/src/dex/uniswap-v3/forks/ramses-v2/utils.ts +0 -72
package/package.json
CHANGED
package/src/dex/index.ts
CHANGED
|
@@ -69,7 +69,6 @@ import { SwaapV2 } from './swaap-v2/swaap-v2';
|
|
|
69
69
|
import { SpiritSwapV3 } from './quickswap/spiritswap-v3';
|
|
70
70
|
import { TraderJoeV21 } from './trader-joe-v2.1';
|
|
71
71
|
import { PancakeswapV3 } from './pancakeswap-v3/pancakeswap-v3';
|
|
72
|
-
// import { RamsesV2 } from './ramses-v2/ramses-v2';
|
|
73
72
|
import { Algebra } from './algebra/algebra';
|
|
74
73
|
|
|
75
74
|
const LegacyDexes = [
|
|
@@ -138,7 +137,6 @@ const Dexes = [
|
|
|
138
137
|
MaverickV1,
|
|
139
138
|
Camelot,
|
|
140
139
|
SwaapV2,
|
|
141
|
-
// RamsesV2,
|
|
142
140
|
];
|
|
143
141
|
|
|
144
142
|
export type LegacyDexConstructor = new (dexHelper: IDexHelper) => IDexTxBuilder<
|
|
@@ -2,9 +2,6 @@ import { DexParams } from './types';
|
|
|
2
2
|
import { DexConfigMap, AdapterMappings } from '../../types';
|
|
3
3
|
import { Network, SwapSide } from '../../constants';
|
|
4
4
|
import { Address } from '../../types';
|
|
5
|
-
import RamsesV2StateMulticallABI from '../../abi/RamsesV2StateMulticall.abi.json';
|
|
6
|
-
import { AbiItem } from 'web3-utils';
|
|
7
|
-
import { decodeStateMultiCallResultWithRelativeBitmaps } from './forks/ramses-v2/utils';
|
|
8
5
|
|
|
9
6
|
const SUPPORTED_FEES = [10000n, 3000n, 500n, 100n];
|
|
10
7
|
|
|
@@ -107,25 +104,6 @@ export const UniswapV3Config: DexConfigMap<DexParams> = {
|
|
|
107
104
|
'https://api.thegraph.com/subgraphs/name/lynnshaoyu/uniswap-v3-avax',
|
|
108
105
|
},
|
|
109
106
|
},
|
|
110
|
-
RamsesV2: {
|
|
111
|
-
[Network.ARBITRUM]: {
|
|
112
|
-
factory: '0xAA2cd7477c451E703f3B9Ba5663334914763edF8',
|
|
113
|
-
deployer: '0xb3e423ab9cE6C03D98326A3A2a0D7D96b0829f22',
|
|
114
|
-
quoter: '0xAA20EFF7ad2F523590dE6c04918DaAE0904E3b20',
|
|
115
|
-
router: '0xAA23611badAFB62D37E7295A682D21960ac85A90',
|
|
116
|
-
supportedFees: SUPPORTED_FEES,
|
|
117
|
-
stateMulticall: '0x50EE4112Cab9c79812F23bE079aB3911395ACc8e',
|
|
118
|
-
stateMultiCallAbi: RamsesV2StateMulticallABI as AbiItem[],
|
|
119
|
-
uniswapMulticall: '0x1F98415757620B543A52E61c46B32eB19261F984',
|
|
120
|
-
chunksCount: 10,
|
|
121
|
-
initRetryFrequency: 10,
|
|
122
|
-
decodeStateMultiCallResultWithRelativeBitmaps,
|
|
123
|
-
initHash:
|
|
124
|
-
'0x1565b129f2d1790f12d45301b9b084335626f0c92410bc43130763b69971135d',
|
|
125
|
-
subgraphURL:
|
|
126
|
-
'https://api.thegraph.com/subgraphs/name/ramsesexchange/concentrated-liquidity-graph',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
107
|
'QuickSwapV3.1': {
|
|
130
108
|
[Network.ZKEVM]: {
|
|
131
109
|
factory: '0xD9a2AD9E927Bd7014116CC5c7328f028D4318178',
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { BigNumber
|
|
1
|
+
import { BigNumber } from 'ethers';
|
|
2
2
|
import { NumberAsString } from '../../types';
|
|
3
3
|
import { Address } from '../../types';
|
|
4
|
-
import { AbiItem } from 'web3-utils';
|
|
5
|
-
import { MultiResult } from '../../lib/multi-wrapper';
|
|
6
4
|
|
|
7
5
|
export type OracleObservation = {
|
|
8
6
|
blockTimestamp: bigint;
|
|
@@ -62,8 +60,6 @@ export type UniswapV3Data = {
|
|
|
62
60
|
isApproved?: boolean;
|
|
63
61
|
};
|
|
64
62
|
|
|
65
|
-
export type DecodeStateMultiCallFunc = (result: MultiResult<BytesLike> | BytesLike) => DecodedStateMultiCallResultWithRelativeBitmaps;
|
|
66
|
-
|
|
67
63
|
export type DexParams = {
|
|
68
64
|
router: Address;
|
|
69
65
|
quoter: Address;
|
|
@@ -76,8 +72,6 @@ export type DexParams = {
|
|
|
76
72
|
deployer?: Address;
|
|
77
73
|
subgraphURL: string;
|
|
78
74
|
initHash: string;
|
|
79
|
-
stateMultiCallAbi?: AbiItem[];
|
|
80
|
-
decodeStateMultiCallResultWithRelativeBitmaps? : DecodeStateMultiCallFunc,
|
|
81
75
|
};
|
|
82
76
|
|
|
83
77
|
export type UniswapV3SimpleSwapSellParam = {
|