@dodoex/dodo-contract-request 1.6.0 → 1.7.0-alpha.2
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/.cache/contract-info/UniswapV2FactoryFixedFee.json +1 -0
- package/.cache/contract-info/UniswapV2Router02FixedFee.json +1 -0
- package/CHANGELOG.md +65 -19
- package/contract-config/plume.json +67 -0
- package/contract-config/sepolia.json +5 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config/index.d.ts +31 -0
- package/dist/types/config/plume.d.ts +31 -0
- package/dist/types/config/sepolia.d.ts +2 -0
- package/dist/types/contract/UniswapV2FactoryFixedFee.d.ts +78 -0
- package/dist/types/contract/UniswapV2Router02FixedFee.d.ts +282 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/src/config/index.ts +5 -1
- package/src/config/plume.ts +4 -0
- package/src/config/sepolia.ts +1 -1
- package/src/contract/CrowdPoolingFactory.ts +1 -1
- package/src/contract/DODOApprove.ts +1 -1
- package/src/contract/DODOApproveProxy.ts +1 -1
- package/src/contract/DODOCalleeHelper.ts +1 -1
- package/src/contract/DODOCpProxy.ts +1 -1
- package/src/contract/DODODppProxy.ts +1 -1
- package/src/contract/DODODspProxyWithoutGSP.ts +1 -1
- package/src/contract/DODOMineV2Factory.ts +1 -1
- package/src/contract/DODOMineV3Proxy.ts +1 -1
- package/src/contract/DODOMineV3Registry.ts +1 -1
- package/src/contract/DODOSellHelper.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV2Proxy02.ts +1 -1
- package/src/contract/DODOV2RouteHelper.ts +1 -1
- package/src/contract/DPPFactory.ts +1 -1
- package/src/contract/DSPFactory.ts +1 -1
- package/src/contract/DVMFactory.ts +1 -1
- package/src/contract/ERC20Helper.ts +1 -1
- package/src/contract/ERC20V3Factory.ts +1 -1
- package/src/contract/GSPFactory.ts +1 -1
- package/src/contract/MulticallWithValid.ts +1 -1
- package/src/contract/UniswapV2FactoryFixedFee.ts +154 -0
- package/src/contract/UniswapV2Router02FixedFee.ts +436 -0
- package/src/index.ts +2 -0
|
@@ -132,6 +132,35 @@ export declare function getConfig(chainId: number): {
|
|
|
132
132
|
DODOMineV3ProxyWithoutPlatform: string;
|
|
133
133
|
D3Proxy: string;
|
|
134
134
|
D3Vault: string;
|
|
135
|
+
} | {
|
|
136
|
+
Multicall: string;
|
|
137
|
+
MulticallWithValid: string;
|
|
138
|
+
DODOSellHelper: string;
|
|
139
|
+
DODOSwapCalcHelper: string;
|
|
140
|
+
ERC20Helper: string;
|
|
141
|
+
DODOCalleeHelper: string;
|
|
142
|
+
DODOV1PmmHelper: string;
|
|
143
|
+
DODOV2RouteHelper: string;
|
|
144
|
+
DVMFactory: string;
|
|
145
|
+
DSPFactory: string;
|
|
146
|
+
GSPFactory: string;
|
|
147
|
+
DPPFactory: string;
|
|
148
|
+
CrowdPoolingFactory: string;
|
|
149
|
+
ERC20V3Factory: string;
|
|
150
|
+
DODOMineV2Factory: string;
|
|
151
|
+
DODOMineV3Registry: string;
|
|
152
|
+
UniswapV2FactoryFixedFee: string;
|
|
153
|
+
DODOApprove: string;
|
|
154
|
+
DODOApproveProxy: string;
|
|
155
|
+
DODOV2Adapter: string;
|
|
156
|
+
DODOV2Proxy02: string;
|
|
157
|
+
DODODspProxyWithoutGSP: string;
|
|
158
|
+
DODOCpProxy: string;
|
|
159
|
+
DODODppProxy: string;
|
|
160
|
+
DODOMineV3Proxy: string;
|
|
161
|
+
DODOFeeRouteProxy1: string;
|
|
162
|
+
DODOFeeRouteProxy2: string;
|
|
163
|
+
UniswapV2Router02FixedFee: string;
|
|
135
164
|
} | null;
|
|
136
165
|
export { default as arbitrum } from './arbitrum';
|
|
137
166
|
export { default as aurora } from './aurora';
|
|
@@ -147,6 +176,7 @@ export { default as manta } from './manta';
|
|
|
147
176
|
export { default as mantle } from './mantle';
|
|
148
177
|
export { default as morph } from './morph';
|
|
149
178
|
export { default as optimism } from './optimism';
|
|
179
|
+
export { default as plume } from './plume';
|
|
150
180
|
export { default as polygon } from './polygon';
|
|
151
181
|
export { default as scroll } from './scroll';
|
|
152
182
|
export { default as sepolia } from './sepolia';
|
|
@@ -170,6 +200,7 @@ export declare const multiCallAddressList: {
|
|
|
170
200
|
"48900": string;
|
|
171
201
|
"59144": string;
|
|
172
202
|
"80084": string;
|
|
203
|
+
"98865": string;
|
|
173
204
|
"167000": string;
|
|
174
205
|
"200901": string;
|
|
175
206
|
"534352": string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const CONTRACT_CONFIG: {
|
|
2
|
+
Multicall: string;
|
|
3
|
+
MulticallWithValid: string;
|
|
4
|
+
DODOSellHelper: string;
|
|
5
|
+
DODOSwapCalcHelper: string;
|
|
6
|
+
ERC20Helper: string;
|
|
7
|
+
DODOCalleeHelper: string;
|
|
8
|
+
DODOV1PmmHelper: string;
|
|
9
|
+
DODOV2RouteHelper: string;
|
|
10
|
+
DVMFactory: string;
|
|
11
|
+
DSPFactory: string;
|
|
12
|
+
GSPFactory: string;
|
|
13
|
+
DPPFactory: string;
|
|
14
|
+
CrowdPoolingFactory: string;
|
|
15
|
+
ERC20V3Factory: string;
|
|
16
|
+
DODOMineV2Factory: string;
|
|
17
|
+
DODOMineV3Registry: string;
|
|
18
|
+
UniswapV2FactoryFixedFee: string;
|
|
19
|
+
DODOApprove: string;
|
|
20
|
+
DODOApproveProxy: string;
|
|
21
|
+
DODOV2Adapter: string;
|
|
22
|
+
DODOV2Proxy02: string;
|
|
23
|
+
DODODspProxyWithoutGSP: string;
|
|
24
|
+
DODOCpProxy: string;
|
|
25
|
+
DODODppProxy: string;
|
|
26
|
+
DODOMineV3Proxy: string;
|
|
27
|
+
DODOFeeRouteProxy1: string;
|
|
28
|
+
DODOFeeRouteProxy2: string;
|
|
29
|
+
UniswapV2Router02FixedFee: string;
|
|
30
|
+
};
|
|
31
|
+
export default CONTRACT_CONFIG;
|
|
@@ -14,6 +14,7 @@ declare const CONTRACT_CONFIG: {
|
|
|
14
14
|
DODOMineV2Factory: string;
|
|
15
15
|
DODOMineV3Registry: string;
|
|
16
16
|
UniswapV2Factory: string;
|
|
17
|
+
UniswapV2FactoryFixedFee: string;
|
|
17
18
|
DODOApprove: string;
|
|
18
19
|
DODOApproveProxy: string;
|
|
19
20
|
DODOV2Proxy02: string;
|
|
@@ -23,6 +24,7 @@ declare const CONTRACT_CONFIG: {
|
|
|
23
24
|
DODODppProxy: string;
|
|
24
25
|
DODOMineV3Proxy: string;
|
|
25
26
|
UniswapV2Router02: string;
|
|
27
|
+
UniswapV2Router02FixedFee: string;
|
|
26
28
|
D3Proxy: string;
|
|
27
29
|
D3Vault: string;
|
|
28
30
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare function getUniswapV2FactoryFixedFeeContractAddressByChainId(chainId: number): string;
|
|
2
|
+
/**
|
|
3
|
+
* fetch allPairs
|
|
4
|
+
* @param {number} chainId - number
|
|
5
|
+
* @param {number} __input1 - uint256
|
|
6
|
+
* @returns {string} __output0 - address
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchUniswapV2FactoryFixedFeeAllPairs(chainId: number, __input1: number): Promise<string>;
|
|
9
|
+
export declare function getFetchUniswapV2FactoryFixedFeeAllPairsQueryOptions(chainId: number | undefined, __input1: number | undefined): {
|
|
10
|
+
queryKey: (string | number | undefined)[];
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
queryFn: () => Promise<string>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* fetch allPairsLength
|
|
16
|
+
* @param {number} chainId - number
|
|
17
|
+
* @returns {bigint} __output0 - uint256
|
|
18
|
+
*/
|
|
19
|
+
export declare function fetchUniswapV2FactoryFixedFeeAllPairsLength(chainId: number): Promise<bigint>;
|
|
20
|
+
export declare function getFetchUniswapV2FactoryFixedFeeAllPairsLengthQueryOptions(chainId: number | undefined): {
|
|
21
|
+
queryKey: (string | number | undefined)[];
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
queryFn: () => Promise<bigint>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* fetch feeTo
|
|
27
|
+
* @param {number} chainId - number
|
|
28
|
+
* @returns {string} __output0 - address
|
|
29
|
+
*/
|
|
30
|
+
export declare function fetchUniswapV2FactoryFixedFeeFeeTo(chainId: number): Promise<string>;
|
|
31
|
+
export declare function getFetchUniswapV2FactoryFixedFeeFeeToQueryOptions(chainId: number | undefined): {
|
|
32
|
+
queryKey: (string | number | undefined)[];
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
queryFn: () => Promise<string>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* fetch feeToSetter
|
|
38
|
+
* @param {number} chainId - number
|
|
39
|
+
* @returns {string} __output0 - address
|
|
40
|
+
*/
|
|
41
|
+
export declare function fetchUniswapV2FactoryFixedFeeFeeToSetter(chainId: number): Promise<string>;
|
|
42
|
+
export declare function getFetchUniswapV2FactoryFixedFeeFeeToSetterQueryOptions(chainId: number | undefined): {
|
|
43
|
+
queryKey: (string | number | undefined)[];
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
queryFn: () => Promise<string>;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* fetch getPair
|
|
49
|
+
* @param {number} chainId - number
|
|
50
|
+
* @param {string} __input1 - address
|
|
51
|
+
* @param {string} __input2 - address
|
|
52
|
+
* @returns {string} __output0 - address
|
|
53
|
+
*/
|
|
54
|
+
export declare function fetchUniswapV2FactoryFixedFeeGetPair(chainId: number, __input1: string, __input2: string): Promise<string>;
|
|
55
|
+
export declare function getFetchUniswapV2FactoryFixedFeeGetPairQueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: string | undefined): {
|
|
56
|
+
queryKey: (string | number | undefined)[];
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
queryFn: () => Promise<string>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* encode createPair
|
|
62
|
+
* @param {string} tokenA - address
|
|
63
|
+
* @param {string} tokenB - address
|
|
64
|
+
* @returns {string} encode data
|
|
65
|
+
*/
|
|
66
|
+
export declare function encodeUniswapV2FactoryFixedFeeCreatePair(tokenA: string, tokenB: string): any;
|
|
67
|
+
/**
|
|
68
|
+
* encode setFeeTo
|
|
69
|
+
* @param {string} _feeTo - address
|
|
70
|
+
* @returns {string} encode data
|
|
71
|
+
*/
|
|
72
|
+
export declare function encodeUniswapV2FactoryFixedFeeSetFeeTo(_feeTo: string): any;
|
|
73
|
+
/**
|
|
74
|
+
* encode setFeeToSetter
|
|
75
|
+
* @param {string} _feeToSetter - address
|
|
76
|
+
* @returns {string} encode data
|
|
77
|
+
*/
|
|
78
|
+
export declare function encodeUniswapV2FactoryFixedFeeSetFeeToSetter(_feeToSetter: string): any;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
export declare function getUniswapV2Router02FixedFeeContractAddressByChainId(chainId: number): string;
|
|
2
|
+
/**
|
|
3
|
+
* fetch WETH
|
|
4
|
+
* @param {number} chainId - number
|
|
5
|
+
* @returns {string} __output0 - address
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchUniswapV2Router02FixedFeeWETH(chainId: number): Promise<string>;
|
|
8
|
+
export declare function getFetchUniswapV2Router02FixedFeeWETHQueryOptions(chainId: number | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
queryFn: () => Promise<string>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* fetch factory
|
|
15
|
+
* @param {number} chainId - number
|
|
16
|
+
* @returns {string} __output0 - address
|
|
17
|
+
*/
|
|
18
|
+
export declare function fetchUniswapV2Router02FixedFeeFactory(chainId: number): Promise<string>;
|
|
19
|
+
export declare function getFetchUniswapV2Router02FixedFeeFactoryQueryOptions(chainId: number | undefined): {
|
|
20
|
+
queryKey: (string | number | undefined)[];
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
queryFn: () => Promise<string>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* fetch getAmountIn
|
|
26
|
+
* @param {number} chainId - number
|
|
27
|
+
* @param {number} amountOut - uint256
|
|
28
|
+
* @param {number} reserveIn - uint256
|
|
29
|
+
* @param {number} reserveOut - uint256
|
|
30
|
+
* @returns {bigint} amountIn - uint256
|
|
31
|
+
*/
|
|
32
|
+
export declare function fetchUniswapV2Router02FixedFeeGetAmountIn(chainId: number, amountOut: number, reserveIn: number, reserveOut: number): Promise<bigint>;
|
|
33
|
+
export declare function getFetchUniswapV2Router02FixedFeeGetAmountInQueryOptions(chainId: number | undefined, amountOut: number | undefined, reserveIn: number | undefined, reserveOut: number | undefined): {
|
|
34
|
+
queryKey: (string | number | undefined)[];
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
queryFn: () => Promise<bigint>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* fetch getAmountOut
|
|
40
|
+
* @param {number} chainId - number
|
|
41
|
+
* @param {number} amountIn - uint256
|
|
42
|
+
* @param {number} reserveIn - uint256
|
|
43
|
+
* @param {number} reserveOut - uint256
|
|
44
|
+
* @returns {bigint} amountOut - uint256
|
|
45
|
+
*/
|
|
46
|
+
export declare function fetchUniswapV2Router02FixedFeeGetAmountOut(chainId: number, amountIn: number, reserveIn: number, reserveOut: number): Promise<bigint>;
|
|
47
|
+
export declare function getFetchUniswapV2Router02FixedFeeGetAmountOutQueryOptions(chainId: number | undefined, amountIn: number | undefined, reserveIn: number | undefined, reserveOut: number | undefined): {
|
|
48
|
+
queryKey: (string | number | undefined)[];
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
queryFn: () => Promise<bigint>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* fetch getAmountsIn
|
|
54
|
+
* @param {number} chainId - number
|
|
55
|
+
* @param {number} amountOut - uint256
|
|
56
|
+
* @param {Array<string>} path - address[]
|
|
57
|
+
* @returns {Array<bigint>} amounts - uint256[]
|
|
58
|
+
*/
|
|
59
|
+
export declare function fetchUniswapV2Router02FixedFeeGetAmountsIn(chainId: number, amountOut: number, path: Array<string>): Promise<Array<bigint>>;
|
|
60
|
+
export declare function getFetchUniswapV2Router02FixedFeeGetAmountsInQueryOptions(chainId: number | undefined, amountOut: number | undefined, path: Array<string> | undefined): {
|
|
61
|
+
queryKey: (string | number | string[] | undefined)[];
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
queryFn: () => Promise<bigint[]>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* fetch getAmountsOut
|
|
67
|
+
* @param {number} chainId - number
|
|
68
|
+
* @param {number} amountIn - uint256
|
|
69
|
+
* @param {Array<string>} path - address[]
|
|
70
|
+
* @returns {Array<bigint>} amounts - uint256[]
|
|
71
|
+
*/
|
|
72
|
+
export declare function fetchUniswapV2Router02FixedFeeGetAmountsOut(chainId: number, amountIn: number, path: Array<string>): Promise<Array<bigint>>;
|
|
73
|
+
export declare function getFetchUniswapV2Router02FixedFeeGetAmountsOutQueryOptions(chainId: number | undefined, amountIn: number | undefined, path: Array<string> | undefined): {
|
|
74
|
+
queryKey: (string | number | string[] | undefined)[];
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
queryFn: () => Promise<bigint[]>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* fetch quote
|
|
80
|
+
* @param {number} chainId - number
|
|
81
|
+
* @param {number} amountA - uint256
|
|
82
|
+
* @param {number} reserveA - uint256
|
|
83
|
+
* @param {number} reserveB - uint256
|
|
84
|
+
* @returns {bigint} amountB - uint256
|
|
85
|
+
*/
|
|
86
|
+
export declare function fetchUniswapV2Router02FixedFeeQuote(chainId: number, amountA: number, reserveA: number, reserveB: number): Promise<bigint>;
|
|
87
|
+
export declare function getFetchUniswapV2Router02FixedFeeQuoteQueryOptions(chainId: number | undefined, amountA: number | undefined, reserveA: number | undefined, reserveB: number | undefined): {
|
|
88
|
+
queryKey: (string | number | undefined)[];
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
queryFn: () => Promise<bigint>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* encode addLiquidity
|
|
94
|
+
* @param {string} tokenA - address
|
|
95
|
+
* @param {string} tokenB - address
|
|
96
|
+
* @param {string | number} amountADesired - uint256
|
|
97
|
+
* @param {string | number} amountBDesired - uint256
|
|
98
|
+
* @param {string | number} amountAMin - uint256
|
|
99
|
+
* @param {string | number} amountBMin - uint256
|
|
100
|
+
* @param {string} to - address
|
|
101
|
+
* @param {string | number} deadline - uint256
|
|
102
|
+
* @returns {string} encode data
|
|
103
|
+
*/
|
|
104
|
+
export declare function encodeUniswapV2Router02FixedFeeAddLiquidity(tokenA: string, tokenB: string, amountADesired: string | number, amountBDesired: string | number, amountAMin: string | number, amountBMin: string | number, to: string, deadline: string | number): any;
|
|
105
|
+
/**
|
|
106
|
+
* encode addLiquidityETH
|
|
107
|
+
* @param {string} token - address
|
|
108
|
+
* @param {string | number} amountTokenDesired - uint256
|
|
109
|
+
* @param {string | number} amountTokenMin - uint256
|
|
110
|
+
* @param {string | number} amountETHMin - uint256
|
|
111
|
+
* @param {string} to - address
|
|
112
|
+
* @param {string | number} deadline - uint256
|
|
113
|
+
* @returns {string} encode data
|
|
114
|
+
*/
|
|
115
|
+
export declare function encodeUniswapV2Router02FixedFeeAddLiquidityETH(token: string, amountTokenDesired: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): any;
|
|
116
|
+
/**
|
|
117
|
+
* encode removeLiquidity
|
|
118
|
+
* @param {string} tokenA - address
|
|
119
|
+
* @param {string} tokenB - address
|
|
120
|
+
* @param {string | number} liquidity - uint256
|
|
121
|
+
* @param {string | number} amountAMin - uint256
|
|
122
|
+
* @param {string | number} amountBMin - uint256
|
|
123
|
+
* @param {string} to - address
|
|
124
|
+
* @param {string | number} deadline - uint256
|
|
125
|
+
* @returns {string} encode data
|
|
126
|
+
*/
|
|
127
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidity(tokenA: string, tokenB: string, liquidity: string | number, amountAMin: string | number, amountBMin: string | number, to: string, deadline: string | number): any;
|
|
128
|
+
/**
|
|
129
|
+
* encode removeLiquidityETH
|
|
130
|
+
* @param {string} token - address
|
|
131
|
+
* @param {string | number} liquidity - uint256
|
|
132
|
+
* @param {string | number} amountTokenMin - uint256
|
|
133
|
+
* @param {string | number} amountETHMin - uint256
|
|
134
|
+
* @param {string} to - address
|
|
135
|
+
* @param {string | number} deadline - uint256
|
|
136
|
+
* @returns {string} encode data
|
|
137
|
+
*/
|
|
138
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidityETH(token: string, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): any;
|
|
139
|
+
/**
|
|
140
|
+
* encode removeLiquidityETHSupportingFeeOnTransferTokens
|
|
141
|
+
* @param {string} token - address
|
|
142
|
+
* @param {string | number} liquidity - uint256
|
|
143
|
+
* @param {string | number} amountTokenMin - uint256
|
|
144
|
+
* @param {string | number} amountETHMin - uint256
|
|
145
|
+
* @param {string} to - address
|
|
146
|
+
* @param {string | number} deadline - uint256
|
|
147
|
+
* @returns {string} encode data
|
|
148
|
+
*/
|
|
149
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidityETHSupportingFeeOnTransferTokens(token: string, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number): any;
|
|
150
|
+
/**
|
|
151
|
+
* encode removeLiquidityETHWithPermit
|
|
152
|
+
* @param {string} token - address
|
|
153
|
+
* @param {string | number} liquidity - uint256
|
|
154
|
+
* @param {string | number} amountTokenMin - uint256
|
|
155
|
+
* @param {string | number} amountETHMin - uint256
|
|
156
|
+
* @param {string} to - address
|
|
157
|
+
* @param {string | number} deadline - uint256
|
|
158
|
+
* @param {boolean} approveMax - bool
|
|
159
|
+
* @param {string | number} v - uint8
|
|
160
|
+
* @param {string} r - bytes32
|
|
161
|
+
* @param {string} s - bytes32
|
|
162
|
+
* @returns {string} encode data
|
|
163
|
+
*/
|
|
164
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidityETHWithPermit(token: string, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number, approveMax: boolean, v: string | number, r: string, s: string): any;
|
|
165
|
+
/**
|
|
166
|
+
* encode removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
|
|
167
|
+
* @param {string} token - address
|
|
168
|
+
* @param {string | number} liquidity - uint256
|
|
169
|
+
* @param {string | number} amountTokenMin - uint256
|
|
170
|
+
* @param {string | number} amountETHMin - uint256
|
|
171
|
+
* @param {string} to - address
|
|
172
|
+
* @param {string | number} deadline - uint256
|
|
173
|
+
* @param {boolean} approveMax - bool
|
|
174
|
+
* @param {string | number} v - uint8
|
|
175
|
+
* @param {string} r - bytes32
|
|
176
|
+
* @param {string} s - bytes32
|
|
177
|
+
* @returns {string} encode data
|
|
178
|
+
*/
|
|
179
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: string, liquidity: string | number, amountTokenMin: string | number, amountETHMin: string | number, to: string, deadline: string | number, approveMax: boolean, v: string | number, r: string, s: string): any;
|
|
180
|
+
/**
|
|
181
|
+
* encode removeLiquidityWithPermit
|
|
182
|
+
* @param {string} tokenA - address
|
|
183
|
+
* @param {string} tokenB - address
|
|
184
|
+
* @param {string | number} liquidity - uint256
|
|
185
|
+
* @param {string | number} amountAMin - uint256
|
|
186
|
+
* @param {string | number} amountBMin - uint256
|
|
187
|
+
* @param {string} to - address
|
|
188
|
+
* @param {string | number} deadline - uint256
|
|
189
|
+
* @param {boolean} approveMax - bool
|
|
190
|
+
* @param {string | number} v - uint8
|
|
191
|
+
* @param {string} r - bytes32
|
|
192
|
+
* @param {string} s - bytes32
|
|
193
|
+
* @returns {string} encode data
|
|
194
|
+
*/
|
|
195
|
+
export declare function encodeUniswapV2Router02FixedFeeRemoveLiquidityWithPermit(tokenA: string, tokenB: string, liquidity: string | number, amountAMin: string | number, amountBMin: string | number, to: string, deadline: string | number, approveMax: boolean, v: string | number, r: string, s: string): any;
|
|
196
|
+
/**
|
|
197
|
+
* encode swapETHForExactTokens
|
|
198
|
+
* @param {string | number} amountOut - uint256
|
|
199
|
+
* @param {Array<string>} path - address[]
|
|
200
|
+
* @param {string} to - address
|
|
201
|
+
* @param {string | number} deadline - uint256
|
|
202
|
+
* @returns {string} encode data
|
|
203
|
+
*/
|
|
204
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapETHForExactTokens(amountOut: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
205
|
+
/**
|
|
206
|
+
* encode swapExactETHForTokens
|
|
207
|
+
* @param {string | number} amountOutMin - uint256
|
|
208
|
+
* @param {Array<string>} path - address[]
|
|
209
|
+
* @param {string} to - address
|
|
210
|
+
* @param {string | number} deadline - uint256
|
|
211
|
+
* @returns {string} encode data
|
|
212
|
+
*/
|
|
213
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactETHForTokens(amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
214
|
+
/**
|
|
215
|
+
* encode swapExactETHForTokensSupportingFeeOnTransferTokens
|
|
216
|
+
* @param {string | number} amountOutMin - uint256
|
|
217
|
+
* @param {Array<string>} path - address[]
|
|
218
|
+
* @param {string} to - address
|
|
219
|
+
* @param {string | number} deadline - uint256
|
|
220
|
+
* @returns {string} encode data
|
|
221
|
+
*/
|
|
222
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
223
|
+
/**
|
|
224
|
+
* encode swapExactTokensForETH
|
|
225
|
+
* @param {string | number} amountIn - uint256
|
|
226
|
+
* @param {string | number} amountOutMin - uint256
|
|
227
|
+
* @param {Array<string>} path - address[]
|
|
228
|
+
* @param {string} to - address
|
|
229
|
+
* @param {string | number} deadline - uint256
|
|
230
|
+
* @returns {string} encode data
|
|
231
|
+
*/
|
|
232
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactTokensForETH(amountIn: string | number, amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
233
|
+
/**
|
|
234
|
+
* encode swapExactTokensForETHSupportingFeeOnTransferTokens
|
|
235
|
+
* @param {string | number} amountIn - uint256
|
|
236
|
+
* @param {string | number} amountOutMin - uint256
|
|
237
|
+
* @param {Array<string>} path - address[]
|
|
238
|
+
* @param {string} to - address
|
|
239
|
+
* @param {string | number} deadline - uint256
|
|
240
|
+
* @returns {string} encode data
|
|
241
|
+
*/
|
|
242
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn: string | number, amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
243
|
+
/**
|
|
244
|
+
* encode swapExactTokensForTokens
|
|
245
|
+
* @param {string | number} amountIn - uint256
|
|
246
|
+
* @param {string | number} amountOutMin - uint256
|
|
247
|
+
* @param {Array<string>} path - address[]
|
|
248
|
+
* @param {string} to - address
|
|
249
|
+
* @param {string | number} deadline - uint256
|
|
250
|
+
* @returns {string} encode data
|
|
251
|
+
*/
|
|
252
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactTokensForTokens(amountIn: string | number, amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
253
|
+
/**
|
|
254
|
+
* encode swapExactTokensForTokensSupportingFeeOnTransferTokens
|
|
255
|
+
* @param {string | number} amountIn - uint256
|
|
256
|
+
* @param {string | number} amountOutMin - uint256
|
|
257
|
+
* @param {Array<string>} path - address[]
|
|
258
|
+
* @param {string} to - address
|
|
259
|
+
* @param {string | number} deadline - uint256
|
|
260
|
+
* @returns {string} encode data
|
|
261
|
+
*/
|
|
262
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: string | number, amountOutMin: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
263
|
+
/**
|
|
264
|
+
* encode swapTokensForExactETH
|
|
265
|
+
* @param {string | number} amountOut - uint256
|
|
266
|
+
* @param {string | number} amountInMax - uint256
|
|
267
|
+
* @param {Array<string>} path - address[]
|
|
268
|
+
* @param {string} to - address
|
|
269
|
+
* @param {string | number} deadline - uint256
|
|
270
|
+
* @returns {string} encode data
|
|
271
|
+
*/
|
|
272
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapTokensForExactETH(amountOut: string | number, amountInMax: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
|
273
|
+
/**
|
|
274
|
+
* encode swapTokensForExactTokens
|
|
275
|
+
* @param {string | number} amountOut - uint256
|
|
276
|
+
* @param {string | number} amountInMax - uint256
|
|
277
|
+
* @param {Array<string>} path - address[]
|
|
278
|
+
* @param {string} to - address
|
|
279
|
+
* @param {string | number} deadline - uint256
|
|
280
|
+
* @returns {string} encode data
|
|
281
|
+
*/
|
|
282
|
+
export declare function encodeUniswapV2Router02FixedFeeSwapTokensForExactTokens(amountOut: string | number, amountInMax: string | number, path: Array<string>, to: string, deadline: string | number): any;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -59,7 +59,9 @@ export * from './contract/LimitOrderBot';
|
|
|
59
59
|
export * from './contract/MulticallWithValid';
|
|
60
60
|
export * from './contract/PermissionManager';
|
|
61
61
|
export * from './contract/UniswapV2Factory';
|
|
62
|
+
export * from './contract/UniswapV2FactoryFixedFee';
|
|
62
63
|
export * from './contract/UniswapV2Pair';
|
|
63
64
|
export * from './contract/UniswapV2Router02';
|
|
65
|
+
export * from './contract/UniswapV2Router02FixedFee';
|
|
64
66
|
export * from './contract/dodoTeam';
|
|
65
67
|
export * from './contract/vDODOToken';
|
package/package.json
CHANGED
package/src/config/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { default as manta } from './manta'
|
|
|
12
12
|
import { default as mantle } from './mantle'
|
|
13
13
|
import { default as morph } from './morph'
|
|
14
14
|
import { default as optimism } from './optimism'
|
|
15
|
+
import { default as plume } from './plume'
|
|
15
16
|
import { default as polygon } from './polygon'
|
|
16
17
|
import { default as scroll } from './scroll'
|
|
17
18
|
import { default as sepolia } from './sepolia'
|
|
@@ -52,6 +53,8 @@ export function getConfig(chainId: number) {
|
|
|
52
53
|
return linea;
|
|
53
54
|
case 80084:
|
|
54
55
|
return berachainTestnet;
|
|
56
|
+
case 98865:
|
|
57
|
+
return plume;
|
|
55
58
|
case 167000:
|
|
56
59
|
return taiko;
|
|
57
60
|
case 200901:
|
|
@@ -84,6 +87,7 @@ export { default as manta } from './manta'
|
|
|
84
87
|
export { default as mantle } from './mantle'
|
|
85
88
|
export { default as morph } from './morph'
|
|
86
89
|
export { default as optimism } from './optimism'
|
|
90
|
+
export { default as plume } from './plume'
|
|
87
91
|
export { default as polygon } from './polygon'
|
|
88
92
|
export { default as scroll } from './scroll'
|
|
89
93
|
export { default as sepolia } from './sepolia'
|
|
@@ -92,4 +96,4 @@ export { default as xLayer } from './x-layer'
|
|
|
92
96
|
export { default as zeroMainnet } from './zero-mainnet'
|
|
93
97
|
export { default as zircuitMainnet } from './zircuit-mainnet'
|
|
94
98
|
|
|
95
|
-
export const multiCallAddressList = {"1":"0x0Cd61B78fF75701eA23fCaec5a22D464F7E1Dc1e","10":"0x9b5f2020a3121684bed861e7b5C64D2AF3f33841","56":"0xdcd53616CFf1Aec6342d8C813Ee393c1eC7D7807","137":"0xBd2456637cb7621984e1B7E60189a9856aA60813","196":"0xdf45fe87c36616a5ffdfe05d54a63f29afe91d9f","1030":"0x44023441f2bad375b6b5c6354b03c3e9ad01e269","2818":"0x388371233439cF57bB8C9f2e4835954841cfCb15","5000":"0x65934e2f228Fde069A6255F46E6A15Bc9DE38545","8453":"0xee7210fc88E1FFdB6aFb305E8F68b4f1d20FEdAd","10169":"0x6D3bd005A8a75d6522C9cFE7d309BB1Cf9650e03","42161":"0x3b49d23C0322ecD24D01c7b35f26a57Ec7cF7901","43114":"0xbcd2FDC3B884Cf0dfD932f55Ec2Fe1fB7e8c62Da","48900":"0xDF45Fe87c36616a5fFDFe05D54A63f29AfE91d9f","59144":"0x1172035A744Ea18161497e94f0bbCe244d51de9F","80084":"0x701855ae3a8b2A989DC8ACCf02Dd2b96f8B21671","167000":"0x388371233439cF57bB8C9f2e4835954841cfCb15","200901":"0xd5cf3f9dfcfc1c3f8b476d881f2f7e79142e319b","534352":"0x6433407a29706Bbdd43b36cd402a53A174f066a1","543210":"0x12Bea73C7117feC468Ae1Dd97923d0b3E41d6928","11155111":"0x1fC8EC204549C865a17b4059A57decA66A4Bd4cC","1313161554":"0x5a0C840a7089aa222c4458b3BE0947fe5a5006DE"}
|
|
99
|
+
export const multiCallAddressList = {"1":"0x0Cd61B78fF75701eA23fCaec5a22D464F7E1Dc1e","10":"0x9b5f2020a3121684bed861e7b5C64D2AF3f33841","56":"0xdcd53616CFf1Aec6342d8C813Ee393c1eC7D7807","137":"0xBd2456637cb7621984e1B7E60189a9856aA60813","196":"0xdf45fe87c36616a5ffdfe05d54a63f29afe91d9f","1030":"0x44023441f2bad375b6b5c6354b03c3e9ad01e269","2818":"0x388371233439cF57bB8C9f2e4835954841cfCb15","5000":"0x65934e2f228Fde069A6255F46E6A15Bc9DE38545","8453":"0xee7210fc88E1FFdB6aFb305E8F68b4f1d20FEdAd","10169":"0x6D3bd005A8a75d6522C9cFE7d309BB1Cf9650e03","42161":"0x3b49d23C0322ecD24D01c7b35f26a57Ec7cF7901","43114":"0xbcd2FDC3B884Cf0dfD932f55Ec2Fe1fB7e8c62Da","48900":"0xDF45Fe87c36616a5fFDFe05D54A63f29AfE91d9f","59144":"0x1172035A744Ea18161497e94f0bbCe244d51de9F","80084":"0x701855ae3a8b2A989DC8ACCf02Dd2b96f8B21671","98865":"0xa672BeB656f3cEAF33222bc4805aac71142344FD","167000":"0x388371233439cF57bB8C9f2e4835954841cfCb15","200901":"0xd5cf3f9dfcfc1c3f8b476d881f2f7e79142e319b","534352":"0x6433407a29706Bbdd43b36cd402a53A174f066a1","543210":"0x12Bea73C7117feC468Ae1Dd97923d0b3E41d6928","11155111":"0x1fC8EC204549C865a17b4059A57decA66A4Bd4cC","1313161554":"0x5a0C840a7089aa222c4458b3BE0947fe5a5006DE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
const CONTRACT_CONFIG = {"Multicall":"0x388371233439cF57bB8C9f2e4835954841cfCb15","MulticallWithValid":"0xa672BeB656f3cEAF33222bc4805aac71142344FD","DODOSellHelper":"0x814473c0F2A32c57b98585157B78EA02A41f70Fb","DODOSwapCalcHelper":"0x0c76F95a2952DC171B26b152f2b30cA8968e79D5","ERC20Helper":"0x94B66F3156353a12A6004d098A16F2fCfF9E8348","DODOCalleeHelper":"0x187210CE04F5B3179F0e483FCf292c34BA7568Dd","DODOV1PmmHelper":"0xC60Ac5B8bDd9DBD1830E3f43252B7b0d50DFEea3","DODOV2RouteHelper":"0xfcd8EF54A4dA96dE6B2DDF67C6265C7405a3A9c6","DVMFactory":"0xd0de7cA3298fff085E2cb82F8a861a0254256BA0","DSPFactory":"0x2235bB894b7600F1a370fc595Ee5477999A30441","GSPFactory":"0x297A4885a7da4AaeF340FABEd119e7a6E3f2BCe8","DPPFactory":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","CrowdPoolingFactory":"0x8Ebbfe204E7EdA4be46b9d09c5dfa8b3e1500462","ERC20V3Factory":"0x5e8807fd1C80F7A43362CeBEFcB2Becedfc731Dc","DODOMineV2Factory":"0x3Cdf6B62D042179FAa21745b074a688BB4979FB7","DODOMineV3Registry":"0xC7EaBEc77Be175432DC20c0056Cce4c2C78B84F3","UniswapV2FactoryFixedFee":"0x8b09DB11ea380d6454D2592D334FFC319ce6EF3E","DODOApprove":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","DODOApproveProxy":"0x1909B6842964030aF3897bdf8ba760bD91439463","DODOV2Adapter":"0x6694eebf40924e04c952EA8F1626d19E7a656Bb7","DODOV2Proxy02":"0x928e9762B5223d5A2ac1F5b13E8A61907aCaa9Bd","DODODspProxyWithoutGSP":"0x7386F6F2375a38FBD1F4dA1d3eb39cd8dD8d1b40","DODOCpProxy":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","DODODppProxy":"0x1dFd36964e21a2eb633991f0B95b4241c20e1db3","DODOMineV3Proxy":"0xcBF3378D432CB181aae32a6A80AA94CF8e00f534","DODOFeeRouteProxy1":"0xE59d098c36916397Cc14AB42Bb0F00093BDA9f04","DODOFeeRouteProxy2":"0x79A273d00bBF7B73B92d6938b973f0197b734Acc","UniswapV2Router02FixedFee":"0x2Da0855f04919D402Af88D0D04AbB38177FE47fa"};
|
|
3
|
+
export default CONTRACT_CONFIG;
|
|
4
|
+
|
package/src/config/sepolia.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
const CONTRACT_CONFIG = {"MulticallWithValid":"0x1fC8EC204549C865a17b4059A57decA66A4Bd4cC","DODOSellHelper":"0xa1609A1fa7DC16c025feA194c02b2822441b8c10","ERC20Helper":"0x297da061D1dE0132D241Fafed224288B34d81005","DODOCalleeHelper":"0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48","DODOV1PmmHelper":"0x3dD629473A2eD7f3C6299FFD9F3e0C283d073f11","DODOV2RouteHelper":"0x03e89fC55A5ad0531576E5a502c4CA52c8bf391B","FeeRateDIP3Impl":"0x89872650fA1A391f58B4E144222bB02e44db7e3B","DVMFactory":"0x2F86652dAEF5f1728c54191C955F065Ec3C188c7","DSPFactory":"0xe7979E2F3e77196Bb2AB206eaa67Ea278A3E33A2","DPPFactory":"0x0B1467f71c082D8d410aF4376C685D9A6893cF36","CrowdPoolingFactory":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","ERC20V3Factory":"0x4CAD0052524648A7Fa2cfE279997b00239295F33","DODOMineV2Factory":"0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414","DODOMineV3Registry":"0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2","UniswapV2Factory":"0xf553a3EA6ecc758ed6f05F62C831b1D71bA7e09c","DODOApprove":"0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC","DODOApproveProxy":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","DODOV2Proxy02":"0x6292e8f7647b3b9dDf5795b1Fb77D0187e30E0F9","DODODspProxyWithoutGSP":"0x987bFBE33c9cF18cAA665B792Db66339a9c16D32","DODODspProxy":"0x64C15d15711586C34B9Ff86cFedB7ce09ff38C6E","DODOCpProxy":"0xA376762070F7fCE8f3646AAe90e6e375e6daF128","DODODppProxy":"0x5e1251f4873248a030e1c92FFEB133AF1513277f","DODOMineV3Proxy":"0xBbD59b9316eE65526DbBdEc2A748Cc05A285d54C","UniswapV2Router02":"0x78F661c4a883064018c6FA2F2815c0c8b1d35327","D3Proxy":"0xF0a6A2cEb71Ed90b4E61f15BB36751d9a21eBfB6","D3Vault":"0x63D34E9bA393a21f2aD9F3e24Ba4607D21BB365D"};
|
|
2
|
+
const CONTRACT_CONFIG = {"MulticallWithValid":"0x1fC8EC204549C865a17b4059A57decA66A4Bd4cC","DODOSellHelper":"0xa1609A1fa7DC16c025feA194c02b2822441b8c10","ERC20Helper":"0x297da061D1dE0132D241Fafed224288B34d81005","DODOCalleeHelper":"0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48","DODOV1PmmHelper":"0x3dD629473A2eD7f3C6299FFD9F3e0C283d073f11","DODOV2RouteHelper":"0x03e89fC55A5ad0531576E5a502c4CA52c8bf391B","FeeRateDIP3Impl":"0x89872650fA1A391f58B4E144222bB02e44db7e3B","DVMFactory":"0x2F86652dAEF5f1728c54191C955F065Ec3C188c7","DSPFactory":"0xe7979E2F3e77196Bb2AB206eaa67Ea278A3E33A2","DPPFactory":"0x0B1467f71c082D8d410aF4376C685D9A6893cF36","CrowdPoolingFactory":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","ERC20V3Factory":"0x4CAD0052524648A7Fa2cfE279997b00239295F33","DODOMineV2Factory":"0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414","DODOMineV3Registry":"0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2","UniswapV2Factory":"0xf553a3EA6ecc758ed6f05F62C831b1D71bA7e09c","UniswapV2FactoryFixedFee":"0xF62c03E08ada871A0bEb309762E260a7a6a880E6","DODOApprove":"0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC","DODOApproveProxy":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","DODOV2Proxy02":"0x6292e8f7647b3b9dDf5795b1Fb77D0187e30E0F9","DODODspProxyWithoutGSP":"0x987bFBE33c9cF18cAA665B792Db66339a9c16D32","DODODspProxy":"0x64C15d15711586C34B9Ff86cFedB7ce09ff38C6E","DODOCpProxy":"0xA376762070F7fCE8f3646AAe90e6e375e6daF128","DODODppProxy":"0x5e1251f4873248a030e1c92FFEB133AF1513277f","DODOMineV3Proxy":"0xBbD59b9316eE65526DbBdEc2A748Cc05A285d54C","UniswapV2Router02":"0x78F661c4a883064018c6FA2F2815c0c8b1d35327","UniswapV2Router02FixedFee":"0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3","D3Proxy":"0xF0a6A2cEb71Ed90b4E61f15BB36751d9a21eBfB6","D3Vault":"0x63D34E9bA393a21f2aD9F3e24Ba4607D21BB365D"};
|
|
3
3
|
export default CONTRACT_CONFIG;
|
|
4
4
|
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getCrowdPoolingFactoryContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"1":"0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25","10":"0x424976B3997514aFa7c5122D053b8973f225D9db","56":"0x778DF5B12170e8af8dF94356BfC864E57CE185DC","137":"0x42ddEc68db70F5992eB7AB22dfaD8A57109841C9","196":"0xA312D73C1b537168f1C8588bDcaB9278df98Cd32","1030":"0xe05dd51e4eB5636f4f0E8e7Fbe82eA31a2ecef16","2818":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","5000":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","8453":"0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83","10169":"0xFD2b7994f91c08aAa5e013E899334A2DBb500DF1","42161":"0x6E5f239f729c83E976a7A280F81Dd1685dd89218","43114":"0x25B2f945Fec30F34b05d416C7c0b5c6c51A3ADdC","48900":"0x40b4030129FCFE660B4ecF35354e027260343049","59144":"0x6B9577b87666af89bd0e144b9b64e8Ed166E303d","80084":"0x3eE78C6214D924a54944f8719Df14cAD0C0107B7","167000":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","200901":"0xB3d4823e02A9AB9A9A0Cc1636E776c360B67bED1","534352":"0x4632e6EBd4a01eBF54739A9D71a62CEdb29E9183","543210":"0xeAa57581ea6003E3F128d1425859FD03901dD310","11155111":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","1313161554":"0xc6962a577A3Be5311f9f9Ab9B8b6A69a25bBc817"};
|
|
6
|
+
const contractAddressObject = {"1":"0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25","10":"0x424976B3997514aFa7c5122D053b8973f225D9db","56":"0x778DF5B12170e8af8dF94356BfC864E57CE185DC","137":"0x42ddEc68db70F5992eB7AB22dfaD8A57109841C9","196":"0xA312D73C1b537168f1C8588bDcaB9278df98Cd32","1030":"0xe05dd51e4eB5636f4f0E8e7Fbe82eA31a2ecef16","2818":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","5000":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","8453":"0x97bBF5BB1dcfC93A8c67e97E50Bea19DB3416A83","10169":"0xFD2b7994f91c08aAa5e013E899334A2DBb500DF1","42161":"0x6E5f239f729c83E976a7A280F81Dd1685dd89218","43114":"0x25B2f945Fec30F34b05d416C7c0b5c6c51A3ADdC","48900":"0x40b4030129FCFE660B4ecF35354e027260343049","59144":"0x6B9577b87666af89bd0e144b9b64e8Ed166E303d","80084":"0x3eE78C6214D924a54944f8719Df14cAD0C0107B7","98865":"0x8Ebbfe204E7EdA4be46b9d09c5dfa8b3e1500462","167000":"0xc6F5e5Ff8AbBe6A94A879A1E378c101E2A6bb9e6","200901":"0xB3d4823e02A9AB9A9A0Cc1636E776c360B67bED1","534352":"0x4632e6EBd4a01eBF54739A9D71a62CEdb29E9183","543210":"0xeAa57581ea6003E3F128d1425859FD03901dD310","11155111":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","1313161554":"0xc6962a577A3Be5311f9f9Ab9B8b6A69a25bBc817"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getDODOApproveContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"1":"0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149","10":"0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149","56":"0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1","137":"0x6D310348d5c12009854DFCf72e0DF9027e8cb4f4","196":"0x7Fca409caEb9662751b2D843201033cB1ce4f205","1030":"0x5BaF16d57620Cb361F622232F3cb4090e35F3da2","2818":"0x2629E610dB4AC081c108cCDf8b19ED39D702df43","5000":"0xa71415675F68f29259ddD63215E5518d2735bf0a","8453":"0x89872650fA1A391f58B4E144222bB02e44db7e3B","10169":"0x0226fCE8c969604C3A0AD19c37d1FAFac73e13c2","42161":"0xA867241cDC8d3b0C07C85cC06F25a0cD3b5474d8","43114":"0xCFea63e3DE31De53D68780Dd65675F169439e470","48900":"0x775B68337A5768d1D5cda0A1A598d5dCb92fA8D6","59144":"0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1","80084":"0x09da628Df009Ad300e8e299497eebD8694AfBe95","167000":"0x2629E610dB4AC081c108cCDf8b19ED39D702df43","200901":"0x4c0f6C7AA981099CB7D74E8f08D85832c7FA5640","534352":"0x20E77aD760eC9E922Fd2dA8847ABFbB2471B92CD","543210":"0x00600dde05d74Fd8C7E7208aBcfE08426FA09e85","11155111":"0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC","1313161554":"0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619"};
|
|
6
|
+
const contractAddressObject = {"1":"0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149","10":"0xCB859eA579b28e02B87A1FDE08d087ab9dbE5149","56":"0xa128Ba44B2738A558A1fdC06d6303d52D3Cef8c1","137":"0x6D310348d5c12009854DFCf72e0DF9027e8cb4f4","196":"0x7Fca409caEb9662751b2D843201033cB1ce4f205","1030":"0x5BaF16d57620Cb361F622232F3cb4090e35F3da2","2818":"0x2629E610dB4AC081c108cCDf8b19ED39D702df43","5000":"0xa71415675F68f29259ddD63215E5518d2735bf0a","8453":"0x89872650fA1A391f58B4E144222bB02e44db7e3B","10169":"0x0226fCE8c969604C3A0AD19c37d1FAFac73e13c2","42161":"0xA867241cDC8d3b0C07C85cC06F25a0cD3b5474d8","43114":"0xCFea63e3DE31De53D68780Dd65675F169439e470","48900":"0x775B68337A5768d1D5cda0A1A598d5dCb92fA8D6","59144":"0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1","80084":"0x09da628Df009Ad300e8e299497eebD8694AfBe95","98865":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","167000":"0x2629E610dB4AC081c108cCDf8b19ED39D702df43","200901":"0x4c0f6C7AA981099CB7D74E8f08D85832c7FA5640","534352":"0x20E77aD760eC9E922Fd2dA8847ABFbB2471B92CD","543210":"0x00600dde05d74Fd8C7E7208aBcfE08426FA09e85","11155111":"0x66c45FF040e86DC613F239123A5E21FFdC3A3fEC","1313161554":"0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getDODOApproveProxyContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"1":"0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619","10":"0x8989A6909fe5af076AaA3D7b18BDe53153DbC348","56":"0xB76de21f04F677f07D9881174a1D8E624276314C","137":"0x01FEEA29da5Ae41B0b5F6b10b93EE34752eF80d7","196":"0xfbdEb92D8133cf35633eE2D40Be561476268DcFC","1030":"0xEfD2eC5F9fFe9899515C7032d86F925715eD9D05","2818":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","5000":"0xb546Add98c71D97Bb65De60B91021617AcD1262C","8453":"0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1","10169":"0xa23137871C4A4ce8514f581EE82262CD1A49EEAE","42161":"0x311E670c3305a0BD55184c1C6580eBeA1FA611F0","43114":"0x96a75d73b3de29c009863fA6329D96b2181D3Dc4","48900":"0xcAcb29f0631612552eF50D4Fa02920910513b2B0","59144":"0xCb3dC90E800C961d4a206BeAAFd92A6d2E06495e","80084":"0x8bCcE4CCEEf7e841A2A8A48F3250B9FB3b25B0C3","167000":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","200901":"0xaE38E18D764AdF135A2D8b32A29C603772A7846b","534352":"0x0218E24dd47f9a1D05418eAa5B9cEDB13Ca48492","543210":"0x37B121f370B57059C6fe486440C2ECded71C0eF7","11155111":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","1313161554":"0x6B4Fa0bc61Eddc928e0Df9c7f01e407BfcD3e5EF"};
|
|
6
|
+
const contractAddressObject = {"1":"0x335aC99bb3E51BDbF22025f092Ebc1Cf2c5cC619","10":"0x8989A6909fe5af076AaA3D7b18BDe53153DbC348","56":"0xB76de21f04F677f07D9881174a1D8E624276314C","137":"0x01FEEA29da5Ae41B0b5F6b10b93EE34752eF80d7","196":"0xfbdEb92D8133cf35633eE2D40Be561476268DcFC","1030":"0xEfD2eC5F9fFe9899515C7032d86F925715eD9D05","2818":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","5000":"0xb546Add98c71D97Bb65De60B91021617AcD1262C","8453":"0x6de4d882a84A98f4CCD5D33ea6b3C99A07BAbeB1","10169":"0xa23137871C4A4ce8514f581EE82262CD1A49EEAE","42161":"0x311E670c3305a0BD55184c1C6580eBeA1FA611F0","43114":"0x96a75d73b3de29c009863fA6329D96b2181D3Dc4","48900":"0xcAcb29f0631612552eF50D4Fa02920910513b2B0","59144":"0xCb3dC90E800C961d4a206BeAAFd92A6d2E06495e","80084":"0x8bCcE4CCEEf7e841A2A8A48F3250B9FB3b25B0C3","98865":"0x1909B6842964030aF3897bdf8ba760bD91439463","167000":"0x7fB45a8AcA7DD30a136569B5E3eb7E1F1f0235a0","200901":"0xaE38E18D764AdF135A2D8b32A29C603772A7846b","534352":"0x0218E24dd47f9a1D05418eAa5B9cEDB13Ca48492","543210":"0x37B121f370B57059C6fe486440C2ECded71C0eF7","11155111":"0xE2004eE21f88a7D8e1A5EDc3c9617a0460CC7b99","1313161554":"0x6B4Fa0bc61Eddc928e0Df9c7f01e407BfcD3e5EF"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getDODOCalleeHelperContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"1":"0x45a7E2E9D780613E047f7e78a9d3902ff854B522","10":"0x45a7E2E9D780613E047f7e78a9d3902ff854B522","56":"0x2673E5333620bb22BD1bFB3af9Fc7012008E3b4B","137":"0x261F6cF4dF0e5c1432739cDAFD9299150FEd3dFc","196":"0xD54BE1b50b51BA83e88239024e85EF16Dd973B3B","1030":"0x5B2fd46E6E3Ff1E479d651ec0b210882Aa9871dF","2818":"0x94B66F3156353a12A6004d098A16F2fCfF9E8348","5000":"0x4aAe1d041C01078725dB016BA4D4F72455CaF931","8453":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","10169":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","42161":"0xe3B40F8D8346d428EAB28d9Fd672b784d921cfBD","43114":"0x4EfF1D851366b8cc51d553a87e2d12dA8Da46F2a","48900":"0xD54BE1b50b51BA83e88239024e85EF16Dd973B3B","59144":"0xB5c7BA1EAde74800cD6cf5F56b1c4562De373780","80084":"0x842b59E74Ca9851fF0C35741C5f0923c63825BA8","167000":"0x94B66F3156353a12A6004d098A16F2fCfF9E8348","200901":"0xf2668090476D10445dfd4Bd6aDd1f3294F48029d","534352":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","543210":"0x094867f0713ac77786E0b9c2d74216bE934470F4","11155111":"0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48","1313161554":"0x738Ebf387A0CE0eb46b0eF8Fa5DEa2EaE6B1Df51"};
|
|
6
|
+
const contractAddressObject = {"1":"0x45a7E2E9D780613E047f7e78a9d3902ff854B522","10":"0x45a7E2E9D780613E047f7e78a9d3902ff854B522","56":"0x2673E5333620bb22BD1bFB3af9Fc7012008E3b4B","137":"0x261F6cF4dF0e5c1432739cDAFD9299150FEd3dFc","196":"0xD54BE1b50b51BA83e88239024e85EF16Dd973B3B","1030":"0x5B2fd46E6E3Ff1E479d651ec0b210882Aa9871dF","2818":"0x94B66F3156353a12A6004d098A16F2fCfF9E8348","5000":"0x4aAe1d041C01078725dB016BA4D4F72455CaF931","8453":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","10169":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","42161":"0xe3B40F8D8346d428EAB28d9Fd672b784d921cfBD","43114":"0x4EfF1D851366b8cc51d553a87e2d12dA8Da46F2a","48900":"0xD54BE1b50b51BA83e88239024e85EF16Dd973B3B","59144":"0xB5c7BA1EAde74800cD6cf5F56b1c4562De373780","80084":"0x842b59E74Ca9851fF0C35741C5f0923c63825BA8","98865":"0x187210CE04F5B3179F0e483FCf292c34BA7568Dd","167000":"0x94B66F3156353a12A6004d098A16F2fCfF9E8348","200901":"0xf2668090476D10445dfd4Bd6aDd1f3294F48029d","534352":"0x44023441f2Bad375b6b5C6354B03c3E9AD01E269","543210":"0x094867f0713ac77786E0b9c2d74216bE934470F4","11155111":"0xCD536b4DECFD2fa0443666B6becD145F8aDe2E48","1313161554":"0x738Ebf387A0CE0eb46b0eF8Fa5DEa2EaE6B1Df51"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getDODOCpProxyContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"56":"0x6990254C0Dcae91e2FD93C493D33570cDaBC3dC6","196":"0xe8bD8C45e8D0638d1Bfd39bC3B06534631DB3F13","1030":"0x7dd8c909e1f48a68ffef03492761af17b1496edc","2818":"0x7386F6F2375a38FBD1F4dA1d3eb39cd8dD8d1b40","5000":"0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414","8453":"0x6B9577b87666af89bd0e144b9b64e8Ed166E303d","10169":"0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3","48900":"0xe8bD8C45e8D0638d1Bfd39bC3B06534631DB3F13","59144":"0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3","80084":"0x80465a300299e90132DFa2c7c3Fc3a12424599bB","167000":"0x7386F6F2375a38FBD1F4dA1d3eb39cd8dD8d1b40","200901":"0x8667224C5a4c2954Edbb2abB72FCf2DfA18948D1","534352":"0xc4A1a152812dE96b2B1861E433f42290CDD7f113","543210":"0x4197fd29f757C24627dF590779EE3123B16dbf4D","11155111":"0xA376762070F7fCE8f3646AAe90e6e375e6daF128"};
|
|
6
|
+
const contractAddressObject = {"56":"0x6990254C0Dcae91e2FD93C493D33570cDaBC3dC6","196":"0xe8bD8C45e8D0638d1Bfd39bC3B06534631DB3F13","1030":"0x7dd8c909e1f48a68ffef03492761af17b1496edc","2818":"0x7386F6F2375a38FBD1F4dA1d3eb39cd8dD8d1b40","5000":"0x49186E32fEd50fd6B5604A2618c7B0b03Cd41414","8453":"0x6B9577b87666af89bd0e144b9b64e8Ed166E303d","10169":"0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3","48900":"0xe8bD8C45e8D0638d1Bfd39bC3B06534631DB3F13","59144":"0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3","80084":"0x80465a300299e90132DFa2c7c3Fc3a12424599bB","98865":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","167000":"0x7386F6F2375a38FBD1F4dA1d3eb39cd8dD8d1b40","200901":"0x8667224C5a4c2954Edbb2abB72FCf2DfA18948D1","534352":"0xc4A1a152812dE96b2B1861E433f42290CDD7f113","543210":"0x4197fd29f757C24627dF590779EE3123B16dbf4D","11155111":"0xA376762070F7fCE8f3646AAe90e6e375e6daF128"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|
|
@@ -3,7 +3,7 @@ import { defaultAbiCoder, concat, hexlify } from '@dodoex/contract-request';
|
|
|
3
3
|
import { contractRequests } from '../contractRequests';
|
|
4
4
|
|
|
5
5
|
export function getDODODppProxyContractAddressByChainId(chainId: number) {
|
|
6
|
-
const contractAddressObject = {"1":"0xfF7C8F518e6f1435957ed3d3E0692C94676dAE7a","10":"0x51A70a33655FE1c5fae3286890DcE3bE332E85dD","56":"0x624FC8368fE11BE00D8B2F3fE0B9D0053BEc21b9","137":"0xF6f1A1Ef2f5b56bb289993F75C12Eb41e4abC2f7","196":"0x69a730Fb2724391F875c48CB8950519bc8Fb7b12","1030":"0x99d69565EdA438E3ebAA0627A407968ABD0f755b","2818":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","5000":"0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2","8453":"0x0B1467f71c082D8d410aF4376C685D9A6893cF36","10169":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","42161":"0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25","43114":"0xe44F14BFDe673B7339734a28152cCd6b821753C9","48900":"0x69a730Fb2724391F875c48CB8950519bc8Fb7b12","59144":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","80084":"0x819829e5CF6e19F9fED92F6b4CC1edF45a2cC4A2","167000":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","200901":"0x7542c97254D9f8c7cE1b8D24bf8eB47C950E8b75","534352":"0x99d69565EdA438E3ebAA0627A407968ABD0f755b","543210":"0x6CcfA1b097Be85bB985fa7b49D0fc5B741896Ee8","11155111":"0x5e1251f4873248a030e1c92FFEB133AF1513277f","1313161554":"0x357c5E9cfA8B834EDcef7C7aAbD8F9Db09119d11"};
|
|
6
|
+
const contractAddressObject = {"1":"0xfF7C8F518e6f1435957ed3d3E0692C94676dAE7a","10":"0x51A70a33655FE1c5fae3286890DcE3bE332E85dD","56":"0x624FC8368fE11BE00D8B2F3fE0B9D0053BEc21b9","137":"0xF6f1A1Ef2f5b56bb289993F75C12Eb41e4abC2f7","196":"0x69a730Fb2724391F875c48CB8950519bc8Fb7b12","1030":"0x99d69565EdA438E3ebAA0627A407968ABD0f755b","2818":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","5000":"0xa5fc92Ca57a21C87AA0477b1c8fE8B9Bbf69d6C2","8453":"0x0B1467f71c082D8d410aF4376C685D9A6893cF36","10169":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","42161":"0xE8C9A78725D0451FA19878D5f8A3dC0D55FECF25","43114":"0xe44F14BFDe673B7339734a28152cCd6b821753C9","48900":"0x69a730Fb2724391F875c48CB8950519bc8Fb7b12","59144":"0xCDA4a6cc5997002B87f28D46852F9F0aA0f3c897","80084":"0x819829e5CF6e19F9fED92F6b4CC1edF45a2cC4A2","98865":"0x1dFd36964e21a2eb633991f0B95b4241c20e1db3","167000":"0x38886EDE1Fc92886F9a11C37a1f5e75474858eaa","200901":"0x7542c97254D9f8c7cE1b8D24bf8eB47C950E8b75","534352":"0x99d69565EdA438E3ebAA0627A407968ABD0f755b","543210":"0x6CcfA1b097Be85bB985fa7b49D0fc5B741896Ee8","11155111":"0x5e1251f4873248a030e1c92FFEB133AF1513277f","1313161554":"0x357c5E9cfA8B834EDcef7C7aAbD8F9Db09119d11"};
|
|
7
7
|
const result = contractAddressObject[String(chainId) as keyof typeof contractAddressObject];
|
|
8
8
|
if (!result) throw new Error(`Not support ChainId: ${chainId}.`)
|
|
9
9
|
return result
|