@dodoex/dodo-contract-request 1.0.0 → 1.1.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/.cache/contract-info/UniswapV2Factory.json +1 -0
- package/.cache/contract-info/UniswapV2Router02.json +1 -0
- package/.env.sample +1 -1
- package/.releaserc.json +4 -11
- package/CHANGELOG.md +14 -0
- package/contract-config/sepolia.json +6 -3
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config/sepolia.d.ts +2 -0
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +47 -53
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +39 -42
- package/dist/types/contract/CustomERC20.d.ts +27 -27
- package/dist/types/contract/CustomMintableERC20.d.ts +31 -31
- package/dist/types/contract/D3Proxy.d.ts +26 -26
- package/dist/types/contract/D3Vault.d.ts +105 -144
- package/dist/types/contract/DODOApprove.d.ts +15 -15
- package/dist/types/contract/DODOApproveProxy.d.ts +17 -17
- package/dist/types/contract/DODOCalleeHelper.d.ts +12 -12
- package/dist/types/contract/DODOCirculationHelper.d.ts +12 -12
- package/dist/types/contract/DODOCpProxy.d.ts +13 -12
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +12 -12
- package/dist/types/contract/DODODppProxy.d.ts +17 -17
- package/dist/types/contract/DODODspProxy.d.ts +27 -27
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +17 -17
- package/dist/types/contract/DODOIncentive.d.ts +23 -29
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -18
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Registry.d.ts +13 -13
- package/dist/types/contract/DODONFT.d.ts +30 -30
- package/dist/types/contract/DODONFT1155.d.ts +23 -23
- package/dist/types/contract/DODONFTApprove.d.ts +22 -22
- package/dist/types/contract/DODONFTPoolProxy.d.ts +41 -41
- package/dist/types/contract/DODONFTProxy.d.ts +28 -28
- package/dist/types/contract/DODONFTRegistry.d.ts +14 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +2 -2
- package/dist/types/contract/DODOSellHelper.d.ts +2 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +6 -6
- package/dist/types/contract/DODOV1.d.ts +97 -100
- package/dist/types/contract/DODOV1Adapter.d.ts +3 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +1 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +14 -14
- package/dist/types/contract/DODOV2Proxy02.d.ts +93 -93
- package/dist/types/contract/DODOV2RouteHelper.d.ts +4 -4
- package/dist/types/contract/DPPAdvanced.d.ts +50 -82
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +30 -33
- package/dist/types/contract/DSP.d.ts +61 -93
- package/dist/types/contract/DSPFactory.d.ts +21 -24
- package/dist/types/contract/DVM.d.ts +58 -86
- package/dist/types/contract/DVMFactory.d.ts +21 -24
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +4 -23
- package/dist/types/contract/ERC20MineV3.d.ts +38 -48
- package/dist/types/contract/ERC20V3Factory.d.ts +33 -37
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +25 -34
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +82 -117
- package/dist/types/contract/GSPFactory.d.ts +23 -26
- package/dist/types/contract/InitializableERC20.d.ts +16 -16
- package/dist/types/contract/LimitOrder.d.ts +38 -38
- package/dist/types/contract/LimitOrderBot.d.ts +18 -18
- package/dist/types/contract/MulticallWithValid.d.ts +8 -8
- package/dist/types/contract/PermissionManager.d.ts +13 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +62 -0
- package/dist/types/contract/UniswapV2Router02.d.ts +272 -0
- package/dist/types/contract/dodoTeam.d.ts +46 -49
- package/dist/types/contract/vDODOToken.d.ts +55 -67
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +3 -3
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +10 -10
- package/src/contract/CP.ts +5 -5
- package/src/contract/CrowdPoolingFactory.ts +15 -15
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +15 -15
- package/src/contract/D3Proxy.ts +20 -20
- package/src/contract/D3Vault.ts +31 -31
- package/src/contract/DODOApprove.ts +2 -2
- package/src/contract/DODOApproveProxy.ts +2 -2
- package/src/contract/DODOCalleeHelper.ts +11 -11
- package/src/contract/DODOCpProxy.ts +13 -12
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +9 -9
- package/src/contract/DODODppProxy.ts +14 -14
- package/src/contract/DODODspProxy.ts +23 -23
- package/src/contract/DODODspProxyWithoutGSP.ts +14 -14
- package/src/contract/DODOIncentive.ts +6 -6
- package/src/contract/DODOMineV2Factory.ts +4 -4
- package/src/contract/DODOMineV3Proxy.ts +12 -11
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +8 -8
- package/src/contract/DODONFT.ts +10 -10
- package/src/contract/DODONFT1155.ts +11 -11
- package/src/contract/DODONFTApprove.ts +8 -8
- package/src/contract/DODONFTPoolProxy.ts +24 -24
- package/src/contract/DODONFTProxy.ts +6 -6
- package/src/contract/DODOStarterProxy.ts +4 -4
- package/src/contract/DODOV1.ts +41 -41
- package/src/contract/DODOV1Proxy.ts +10 -10
- package/src/contract/DODOV2Proxy02.ts +75 -75
- package/src/contract/DPPAdvanced.ts +17 -17
- package/src/contract/DPPAdvancedAdmin.ts +12 -12
- package/src/contract/DPPFactory.ts +4 -4
- package/src/contract/DSP.ts +22 -22
- package/src/contract/DSPFactory.ts +4 -4
- package/src/contract/DVM.ts +22 -22
- package/src/contract/DVMFactory.ts +4 -4
- package/src/contract/ERC20.ts +8 -8
- package/src/contract/ERC20MineV3.ts +19 -19
- package/src/contract/ERC20V3Factory.ts +15 -15
- package/src/contract/FeeRateDIP3Impl.ts +8 -8
- package/src/contract/GSP.ts +34 -34
- package/src/contract/GSPFactory.ts +6 -6
- package/src/contract/InitializableERC20.ts +9 -9
- package/src/contract/LimitOrder.ts +9 -9
- package/src/contract/LimitOrderBot.ts +5 -5
- package/src/contract/UniswapV2Factory.ts +122 -0
- package/src/contract/UniswapV2Router02.ts +373 -0
- package/src/contract/dodoTeam.ts +24 -24
- package/src/contract/vDODOToken.ts +18 -18
- package/src/index.ts +2 -0
|
@@ -4,52 +4,52 @@ export declare function getDODOV1ProxyContractAddressByChainId(chainId: number):
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDODOV1ProxyOwner(chainId: number):
|
|
7
|
+
export declare function fetchDODOV1ProxyOwner(chainId: number): any;
|
|
8
8
|
/**
|
|
9
9
|
* encode renounceOwnership
|
|
10
10
|
|
|
11
11
|
* @returns {string} encode data
|
|
12
12
|
*/
|
|
13
|
-
export declare function encodeDODOV1ProxyRenounceOwnership():
|
|
13
|
+
export declare function encodeDODOV1ProxyRenounceOwnership(): any;
|
|
14
14
|
/**
|
|
15
15
|
* encode transferOwnership
|
|
16
16
|
* @param {string} newOwner - address
|
|
17
17
|
* @returns {string} encode data
|
|
18
18
|
*/
|
|
19
|
-
export declare function encodeDODOV1ProxyTransferOwnership(newOwner: string):
|
|
19
|
+
export declare function encodeDODOV1ProxyTransferOwnership(newOwner: string): any;
|
|
20
20
|
/**
|
|
21
21
|
* encode withdrawAllBase
|
|
22
22
|
* @param {string} pool - address
|
|
23
|
-
* @param {
|
|
23
|
+
* @param {string} minReceive - uint256
|
|
24
24
|
* @returns {string} encode data
|
|
25
25
|
*/
|
|
26
|
-
export declare function encodeDODOV1ProxyWithdrawAllBase(pool: string, minReceive:
|
|
26
|
+
export declare function encodeDODOV1ProxyWithdrawAllBase(pool: string, minReceive: string): any;
|
|
27
27
|
/**
|
|
28
28
|
* encode withdrawAllQuote
|
|
29
29
|
* @param {string} pool - address
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {string} minReceive - uint256
|
|
31
31
|
* @returns {string} encode data
|
|
32
32
|
*/
|
|
33
|
-
export declare function encodeDODOV1ProxyWithdrawAllQuote(pool: string, minReceive:
|
|
33
|
+
export declare function encodeDODOV1ProxyWithdrawAllQuote(pool: string, minReceive: string): any;
|
|
34
34
|
/**
|
|
35
35
|
* encode withdrawBase
|
|
36
36
|
* @param {string} pool - address
|
|
37
|
-
* @param {
|
|
38
|
-
* @param {
|
|
37
|
+
* @param {string} amount - uint256
|
|
38
|
+
* @param {string} minReceive - uint256
|
|
39
39
|
* @returns {string} encode data
|
|
40
40
|
*/
|
|
41
|
-
export declare function encodeDODOV1ProxyWithdrawBase(pool: string, amount:
|
|
41
|
+
export declare function encodeDODOV1ProxyWithdrawBase(pool: string, amount: string, minReceive: string): any;
|
|
42
42
|
/**
|
|
43
43
|
* encode withdrawLeftToken
|
|
44
44
|
* @param {string} token - address
|
|
45
45
|
* @returns {string} encode data
|
|
46
46
|
*/
|
|
47
|
-
export declare function encodeDODOV1ProxyWithdrawLeftToken(token: string):
|
|
47
|
+
export declare function encodeDODOV1ProxyWithdrawLeftToken(token: string): any;
|
|
48
48
|
/**
|
|
49
49
|
* encode withdrawQuote
|
|
50
50
|
* @param {string} pool - address
|
|
51
|
-
* @param {
|
|
52
|
-
* @param {
|
|
51
|
+
* @param {string} amount - uint256
|
|
52
|
+
* @param {string} minReceive - uint256
|
|
53
53
|
* @returns {string} encode data
|
|
54
54
|
*/
|
|
55
|
-
export declare function encodeDODOV1ProxyWithdrawQuote(pool: string, amount:
|
|
55
|
+
export declare function encodeDODOV1ProxyWithdrawQuote(pool: string, amount: string, minReceive: string): any;
|
|
@@ -4,277 +4,277 @@ export declare function getDODOV2Proxy02ContractAddressByChainId(chainId: number
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDODOV2Proxy02_CHI_TOKEN_(chainId: number):
|
|
7
|
+
export declare function fetchDODOV2Proxy02_CHI_TOKEN_(chainId: number): any;
|
|
8
8
|
/**
|
|
9
9
|
* fetch _CP_FACTORY_
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @returns {string} __output0 - address
|
|
12
12
|
*/
|
|
13
|
-
export declare function fetchDODOV2Proxy02_CP_FACTORY_(chainId: number):
|
|
13
|
+
export declare function fetchDODOV2Proxy02_CP_FACTORY_(chainId: number): any;
|
|
14
14
|
/**
|
|
15
15
|
* fetch _DODO_APPROVE_PROXY_
|
|
16
16
|
* @param {number} chainId - number
|
|
17
17
|
* @returns {string} __output0 - address
|
|
18
18
|
*/
|
|
19
|
-
export declare function fetchDODOV2Proxy02_DODO_APPROVE_PROXY_(chainId: number):
|
|
19
|
+
export declare function fetchDODOV2Proxy02_DODO_APPROVE_PROXY_(chainId: number): any;
|
|
20
20
|
/**
|
|
21
21
|
* fetch _DODO_INCENTIVE_
|
|
22
22
|
* @param {number} chainId - number
|
|
23
23
|
* @returns {string} __output0 - address
|
|
24
24
|
*/
|
|
25
|
-
export declare function fetchDODOV2Proxy02_DODO_INCENTIVE_(chainId: number):
|
|
25
|
+
export declare function fetchDODOV2Proxy02_DODO_INCENTIVE_(chainId: number): any;
|
|
26
26
|
/**
|
|
27
27
|
* fetch _DODO_SELL_HELPER_
|
|
28
28
|
* @param {number} chainId - number
|
|
29
29
|
* @returns {string} __output0 - address
|
|
30
30
|
*/
|
|
31
|
-
export declare function fetchDODOV2Proxy02_DODO_SELL_HELPER_(chainId: number):
|
|
31
|
+
export declare function fetchDODOV2Proxy02_DODO_SELL_HELPER_(chainId: number): any;
|
|
32
32
|
/**
|
|
33
33
|
* fetch _DPP_FACTORY_
|
|
34
34
|
* @param {number} chainId - number
|
|
35
35
|
* @returns {string} __output0 - address
|
|
36
36
|
*/
|
|
37
|
-
export declare function fetchDODOV2Proxy02_DPP_FACTORY_(chainId: number):
|
|
37
|
+
export declare function fetchDODOV2Proxy02_DPP_FACTORY_(chainId: number): any;
|
|
38
38
|
/**
|
|
39
39
|
* fetch _DVM_FACTORY_
|
|
40
40
|
* @param {number} chainId - number
|
|
41
41
|
* @returns {string} __output0 - address
|
|
42
42
|
*/
|
|
43
|
-
export declare function fetchDODOV2Proxy02_DVM_FACTORY_(chainId: number):
|
|
43
|
+
export declare function fetchDODOV2Proxy02_DVM_FACTORY_(chainId: number): any;
|
|
44
44
|
/**
|
|
45
45
|
* fetch _GAS_DODO_MAX_RETURN_
|
|
46
46
|
* @param {number} chainId - number
|
|
47
47
|
* @returns {bigint} __output0 - uint256
|
|
48
48
|
*/
|
|
49
|
-
export declare function fetchDODOV2Proxy02_GAS_DODO_MAX_RETURN_(chainId: number):
|
|
49
|
+
export declare function fetchDODOV2Proxy02_GAS_DODO_MAX_RETURN_(chainId: number): any;
|
|
50
50
|
/**
|
|
51
51
|
* fetch _GAS_EXTERNAL_RETURN_
|
|
52
52
|
* @param {number} chainId - number
|
|
53
53
|
* @returns {bigint} __output0 - uint256
|
|
54
54
|
*/
|
|
55
|
-
export declare function fetchDODOV2Proxy02_GAS_EXTERNAL_RETURN_(chainId: number):
|
|
55
|
+
export declare function fetchDODOV2Proxy02_GAS_EXTERNAL_RETURN_(chainId: number): any;
|
|
56
56
|
/**
|
|
57
57
|
* fetch _NEW_OWNER_
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export declare function fetchDODOV2Proxy02_NEW_OWNER_(chainId: number):
|
|
61
|
+
export declare function fetchDODOV2Proxy02_NEW_OWNER_(chainId: number): any;
|
|
62
62
|
/**
|
|
63
63
|
* fetch _OWNER_
|
|
64
64
|
* @param {number} chainId - number
|
|
65
65
|
* @returns {string} __output0 - address
|
|
66
66
|
*/
|
|
67
|
-
export declare function fetchDODOV2Proxy02_OWNER_(chainId: number):
|
|
67
|
+
export declare function fetchDODOV2Proxy02_OWNER_(chainId: number): any;
|
|
68
68
|
/**
|
|
69
69
|
* fetch _WETH_
|
|
70
70
|
* @param {number} chainId - number
|
|
71
71
|
* @returns {string} __output0 - address
|
|
72
72
|
*/
|
|
73
|
-
export declare function fetchDODOV2Proxy02_WETH_(chainId: number):
|
|
73
|
+
export declare function fetchDODOV2Proxy02_WETH_(chainId: number): any;
|
|
74
74
|
/**
|
|
75
75
|
* fetch isWhiteListed
|
|
76
76
|
* @param {number} chainId - number
|
|
77
77
|
* @param {string} __input1 - address
|
|
78
78
|
* @returns {boolean} __output0 - bool
|
|
79
79
|
*/
|
|
80
|
-
export declare function fetchDODOV2Proxy02IsWhiteListed(chainId: number, __input1: string):
|
|
80
|
+
export declare function fetchDODOV2Proxy02IsWhiteListed(chainId: number, __input1: string): any;
|
|
81
81
|
/**
|
|
82
82
|
* encode addDVMLiquidity
|
|
83
83
|
* @param {string} dvmAddress - address
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
84
|
+
* @param {string} baseInAmount - uint256
|
|
85
|
+
* @param {string} quoteInAmount - uint256
|
|
86
|
+
* @param {string} baseMinAmount - uint256
|
|
87
|
+
* @param {string} quoteMinAmount - uint256
|
|
88
|
+
* @param {string} flag - uint8
|
|
89
|
+
* @param {string} deadLine - uint256
|
|
90
90
|
* @returns {string} encode data
|
|
91
91
|
*/
|
|
92
|
-
export declare function encodeDODOV2Proxy02AddDVMLiquidity(dvmAddress: string, baseInAmount:
|
|
92
|
+
export declare function encodeDODOV2Proxy02AddDVMLiquidity(dvmAddress: string, baseInAmount: string, quoteInAmount: string, baseMinAmount: string, quoteMinAmount: string, flag: string, deadLine: string): any;
|
|
93
93
|
/**
|
|
94
94
|
* encode addLiquidityToV1
|
|
95
95
|
* @param {string} pair - address
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
96
|
+
* @param {string} baseAmount - uint256
|
|
97
|
+
* @param {string} quoteAmount - uint256
|
|
98
|
+
* @param {string} baseMinShares - uint256
|
|
99
|
+
* @param {string} quoteMinShares - uint256
|
|
100
|
+
* @param {string} flag - uint8
|
|
101
|
+
* @param {string} deadLine - uint256
|
|
102
102
|
* @returns {string} encode data
|
|
103
103
|
*/
|
|
104
|
-
export declare function encodeDODOV2Proxy02AddLiquidityToV1(pair: string, baseAmount:
|
|
104
|
+
export declare function encodeDODOV2Proxy02AddLiquidityToV1(pair: string, baseAmount: string, quoteAmount: string, baseMinShares: string, quoteMinShares: string, flag: string, deadLine: string): any;
|
|
105
105
|
/**
|
|
106
106
|
* encode addWhiteList
|
|
107
107
|
* @param {string} contractAddr - address
|
|
108
108
|
* @returns {string} encode data
|
|
109
109
|
*/
|
|
110
|
-
export declare function encodeDODOV2Proxy02AddWhiteList(contractAddr: string):
|
|
110
|
+
export declare function encodeDODOV2Proxy02AddWhiteList(contractAddr: string): any;
|
|
111
111
|
/**
|
|
112
112
|
* encode bid
|
|
113
113
|
* @param {string} cpAddress - address
|
|
114
|
-
* @param {
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {
|
|
114
|
+
* @param {string} quoteAmount - uint256
|
|
115
|
+
* @param {string} flag - uint8
|
|
116
|
+
* @param {string} deadLine - uint256
|
|
117
117
|
* @returns {string} encode data
|
|
118
118
|
*/
|
|
119
|
-
export declare function encodeDODOV2Proxy02Bid(cpAddress: string, quoteAmount:
|
|
119
|
+
export declare function encodeDODOV2Proxy02Bid(cpAddress: string, quoteAmount: string, flag: string, deadLine: string): any;
|
|
120
120
|
/**
|
|
121
121
|
* encode claimOwnership
|
|
122
122
|
|
|
123
123
|
* @returns {string} encode data
|
|
124
124
|
*/
|
|
125
|
-
export declare function encodeDODOV2Proxy02ClaimOwnership():
|
|
125
|
+
export declare function encodeDODOV2Proxy02ClaimOwnership(): any;
|
|
126
126
|
/**
|
|
127
127
|
* encode createCrowdPooling
|
|
128
128
|
* @param {string} baseToken - address
|
|
129
129
|
* @param {string} quoteToken - address
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {Array<
|
|
132
|
-
* @param {Array<
|
|
130
|
+
* @param {string} baseInAmount - uint256
|
|
131
|
+
* @param {Array<string>} timeLine - uint256[]
|
|
132
|
+
* @param {Array<string>} valueList - uint256[]
|
|
133
133
|
* @param {boolean} isOpenTWAP - bool
|
|
134
|
-
* @param {
|
|
134
|
+
* @param {string} deadLine - uint256
|
|
135
135
|
* @returns {string} encode data
|
|
136
136
|
*/
|
|
137
|
-
export declare function encodeDODOV2Proxy02CreateCrowdPooling(baseToken: string, quoteToken: string, baseInAmount:
|
|
137
|
+
export declare function encodeDODOV2Proxy02CreateCrowdPooling(baseToken: string, quoteToken: string, baseInAmount: string, timeLine: Array<string>, valueList: Array<string>, isOpenTWAP: boolean, deadLine: string): any;
|
|
138
138
|
/**
|
|
139
139
|
* encode createDODOPrivatePool
|
|
140
140
|
* @param {string} baseToken - address
|
|
141
141
|
* @param {string} quoteToken - address
|
|
142
|
-
* @param {
|
|
143
|
-
* @param {
|
|
144
|
-
* @param {
|
|
145
|
-
* @param {
|
|
146
|
-
* @param {
|
|
142
|
+
* @param {string} baseInAmount - uint256
|
|
143
|
+
* @param {string} quoteInAmount - uint256
|
|
144
|
+
* @param {string} lpFeeRate - uint256
|
|
145
|
+
* @param {string} i - uint256
|
|
146
|
+
* @param {string} k - uint256
|
|
147
147
|
* @param {boolean} isOpenTwap - bool
|
|
148
|
-
* @param {
|
|
148
|
+
* @param {string} deadLine - uint256
|
|
149
149
|
* @returns {string} encode data
|
|
150
150
|
*/
|
|
151
|
-
export declare function encodeDODOV2Proxy02CreateDODOPrivatePool(baseToken: string, quoteToken: string, baseInAmount:
|
|
151
|
+
export declare function encodeDODOV2Proxy02CreateDODOPrivatePool(baseToken: string, quoteToken: string, baseInAmount: string, quoteInAmount: string, lpFeeRate: string, i: string, k: string, isOpenTwap: boolean, deadLine: string): any;
|
|
152
152
|
/**
|
|
153
153
|
* encode createDODOVendingMachine
|
|
154
154
|
* @param {string} baseToken - address
|
|
155
155
|
* @param {string} quoteToken - address
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
160
|
-
* @param {
|
|
156
|
+
* @param {string} baseInAmount - uint256
|
|
157
|
+
* @param {string} quoteInAmount - uint256
|
|
158
|
+
* @param {string} lpFeeRate - uint256
|
|
159
|
+
* @param {string} i - uint256
|
|
160
|
+
* @param {string} k - uint256
|
|
161
161
|
* @param {boolean} isOpenTWAP - bool
|
|
162
|
-
* @param {
|
|
162
|
+
* @param {string} deadLine - uint256
|
|
163
163
|
* @returns {string} encode data
|
|
164
164
|
*/
|
|
165
|
-
export declare function encodeDODOV2Proxy02CreateDODOVendingMachine(baseToken: string, quoteToken: string, baseInAmount:
|
|
165
|
+
export declare function encodeDODOV2Proxy02CreateDODOVendingMachine(baseToken: string, quoteToken: string, baseInAmount: string, quoteInAmount: string, lpFeeRate: string, i: string, k: string, isOpenTWAP: boolean, deadLine: string): any;
|
|
166
166
|
/**
|
|
167
167
|
* encode dodoSwapV1
|
|
168
168
|
* @param {string} fromToken - address
|
|
169
169
|
* @param {string} toToken - address
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {
|
|
170
|
+
* @param {string} fromTokenAmount - uint256
|
|
171
|
+
* @param {string} minReturnAmount - uint256
|
|
172
172
|
* @param {Array<string>} dodoPairs - address[]
|
|
173
|
-
* @param {
|
|
173
|
+
* @param {string} directions - uint256
|
|
174
174
|
* @param {boolean} isIncentive - bool
|
|
175
|
-
* @param {
|
|
175
|
+
* @param {string} deadLine - uint256
|
|
176
176
|
* @returns {string} encode data
|
|
177
177
|
*/
|
|
178
|
-
export declare function encodeDODOV2Proxy02DodoSwapV1(fromToken: string, toToken: string, fromTokenAmount:
|
|
178
|
+
export declare function encodeDODOV2Proxy02DodoSwapV1(fromToken: string, toToken: string, fromTokenAmount: string, minReturnAmount: string, dodoPairs: Array<string>, directions: string, isIncentive: boolean, deadLine: string): any;
|
|
179
179
|
/**
|
|
180
180
|
* encode dodoSwapV2ETHToToken
|
|
181
181
|
* @param {string} toToken - address
|
|
182
|
-
* @param {
|
|
182
|
+
* @param {string} minReturnAmount - uint256
|
|
183
183
|
* @param {Array<string>} dodoPairs - address[]
|
|
184
|
-
* @param {
|
|
184
|
+
* @param {string} directions - uint256
|
|
185
185
|
* @param {boolean} isIncentive - bool
|
|
186
|
-
* @param {
|
|
186
|
+
* @param {string} deadLine - uint256
|
|
187
187
|
* @returns {string} encode data
|
|
188
188
|
*/
|
|
189
|
-
export declare function encodeDODOV2Proxy02DodoSwapV2ETHToToken(toToken: string, minReturnAmount:
|
|
189
|
+
export declare function encodeDODOV2Proxy02DodoSwapV2ETHToToken(toToken: string, minReturnAmount: string, dodoPairs: Array<string>, directions: string, isIncentive: boolean, deadLine: string): any;
|
|
190
190
|
/**
|
|
191
191
|
* encode dodoSwapV2TokenToETH
|
|
192
192
|
* @param {string} fromToken - address
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {
|
|
193
|
+
* @param {string} fromTokenAmount - uint256
|
|
194
|
+
* @param {string} minReturnAmount - uint256
|
|
195
195
|
* @param {Array<string>} dodoPairs - address[]
|
|
196
|
-
* @param {
|
|
196
|
+
* @param {string} directions - uint256
|
|
197
197
|
* @param {boolean} isIncentive - bool
|
|
198
|
-
* @param {
|
|
198
|
+
* @param {string} deadLine - uint256
|
|
199
199
|
* @returns {string} encode data
|
|
200
200
|
*/
|
|
201
|
-
export declare function encodeDODOV2Proxy02DodoSwapV2TokenToETH(fromToken: string, fromTokenAmount:
|
|
201
|
+
export declare function encodeDODOV2Proxy02DodoSwapV2TokenToETH(fromToken: string, fromTokenAmount: string, minReturnAmount: string, dodoPairs: Array<string>, directions: string, isIncentive: boolean, deadLine: string): any;
|
|
202
202
|
/**
|
|
203
203
|
* encode dodoSwapV2TokenToToken
|
|
204
204
|
* @param {string} fromToken - address
|
|
205
205
|
* @param {string} toToken - address
|
|
206
|
-
* @param {
|
|
207
|
-
* @param {
|
|
206
|
+
* @param {string} fromTokenAmount - uint256
|
|
207
|
+
* @param {string} minReturnAmount - uint256
|
|
208
208
|
* @param {Array<string>} dodoPairs - address[]
|
|
209
|
-
* @param {
|
|
209
|
+
* @param {string} directions - uint256
|
|
210
210
|
* @param {boolean} isIncentive - bool
|
|
211
|
-
* @param {
|
|
211
|
+
* @param {string} deadLine - uint256
|
|
212
212
|
* @returns {string} encode data
|
|
213
213
|
*/
|
|
214
|
-
export declare function encodeDODOV2Proxy02DodoSwapV2TokenToToken(fromToken: string, toToken: string, fromTokenAmount:
|
|
214
|
+
export declare function encodeDODOV2Proxy02DodoSwapV2TokenToToken(fromToken: string, toToken: string, fromTokenAmount: string, minReturnAmount: string, dodoPairs: Array<string>, directions: string, isIncentive: boolean, deadLine: string): any;
|
|
215
215
|
/**
|
|
216
216
|
* encode externalSwap
|
|
217
217
|
* @param {string} fromToken - address
|
|
218
218
|
* @param {string} toToken - address
|
|
219
219
|
* @param {string} approveTarget - address
|
|
220
220
|
* @param {string} swapTarget - address
|
|
221
|
-
* @param {
|
|
222
|
-
* @param {
|
|
221
|
+
* @param {string} fromTokenAmount - uint256
|
|
222
|
+
* @param {string} minReturnAmount - uint256
|
|
223
223
|
* @param {string} callDataConcat - bytes
|
|
224
224
|
* @param {boolean} isIncentive - bool
|
|
225
|
-
* @param {
|
|
225
|
+
* @param {string} deadLine - uint256
|
|
226
226
|
* @returns {string} encode data
|
|
227
227
|
*/
|
|
228
|
-
export declare function encodeDODOV2Proxy02ExternalSwap(fromToken: string, toToken: string, approveTarget: string, swapTarget: string, fromTokenAmount:
|
|
228
|
+
export declare function encodeDODOV2Proxy02ExternalSwap(fromToken: string, toToken: string, approveTarget: string, swapTarget: string, fromTokenAmount: string, minReturnAmount: string, callDataConcat: string, isIncentive: boolean, deadLine: string): any;
|
|
229
229
|
/**
|
|
230
230
|
* encode initOwner
|
|
231
231
|
* @param {string} newOwner - address
|
|
232
232
|
* @returns {string} encode data
|
|
233
233
|
*/
|
|
234
|
-
export declare function encodeDODOV2Proxy02InitOwner(newOwner: string):
|
|
234
|
+
export declare function encodeDODOV2Proxy02InitOwner(newOwner: string): any;
|
|
235
235
|
/**
|
|
236
236
|
* encode mixSwap
|
|
237
237
|
* @param {string} fromToken - address
|
|
238
238
|
* @param {string} toToken - address
|
|
239
|
-
* @param {
|
|
240
|
-
* @param {
|
|
239
|
+
* @param {string} fromTokenAmount - uint256
|
|
240
|
+
* @param {string} minReturnAmount - uint256
|
|
241
241
|
* @param {Array<string>} mixAdapters - address[]
|
|
242
242
|
* @param {Array<string>} mixPairs - address[]
|
|
243
243
|
* @param {Array<string>} assetTo - address[]
|
|
244
|
-
* @param {
|
|
244
|
+
* @param {string} directions - uint256
|
|
245
245
|
* @param {boolean} isIncentive - bool
|
|
246
|
-
* @param {
|
|
246
|
+
* @param {string} deadLine - uint256
|
|
247
247
|
* @returns {string} encode data
|
|
248
248
|
*/
|
|
249
|
-
export declare function encodeDODOV2Proxy02MixSwap(fromToken: string, toToken: string, fromTokenAmount:
|
|
249
|
+
export declare function encodeDODOV2Proxy02MixSwap(fromToken: string, toToken: string, fromTokenAmount: string, minReturnAmount: string, mixAdapters: Array<string>, mixPairs: Array<string>, assetTo: Array<string>, directions: string, isIncentive: boolean, deadLine: string): any;
|
|
250
250
|
/**
|
|
251
251
|
* encode removeWhiteList
|
|
252
252
|
* @param {string} contractAddr - address
|
|
253
253
|
* @returns {string} encode data
|
|
254
254
|
*/
|
|
255
|
-
export declare function encodeDODOV2Proxy02RemoveWhiteList(contractAddr: string):
|
|
255
|
+
export declare function encodeDODOV2Proxy02RemoveWhiteList(contractAddr: string): any;
|
|
256
256
|
/**
|
|
257
257
|
* encode resetDODOPrivatePool
|
|
258
258
|
* @param {string} dppAddress - address
|
|
259
|
-
* @param {Array<
|
|
260
|
-
* @param {Array<
|
|
261
|
-
* @param {
|
|
262
|
-
* @param {
|
|
263
|
-
* @param {
|
|
264
|
-
* @param {
|
|
259
|
+
* @param {Array<string>} paramList - uint256[]
|
|
260
|
+
* @param {Array<string>} amountList - uint256[]
|
|
261
|
+
* @param {string} flag - uint8
|
|
262
|
+
* @param {string} minBaseReserve - uint256
|
|
263
|
+
* @param {string} minQuoteReserve - uint256
|
|
264
|
+
* @param {string} deadLine - uint256
|
|
265
265
|
* @returns {string} encode data
|
|
266
266
|
*/
|
|
267
|
-
export declare function encodeDODOV2Proxy02ResetDODOPrivatePool(dppAddress: string, paramList: Array<
|
|
267
|
+
export declare function encodeDODOV2Proxy02ResetDODOPrivatePool(dppAddress: string, paramList: Array<string>, amountList: Array<string>, flag: string, minBaseReserve: string, minQuoteReserve: string, deadLine: string): any;
|
|
268
268
|
/**
|
|
269
269
|
* encode transferOwnership
|
|
270
270
|
* @param {string} newOwner - address
|
|
271
271
|
* @returns {string} encode data
|
|
272
272
|
*/
|
|
273
|
-
export declare function encodeDODOV2Proxy02TransferOwnership(newOwner: string):
|
|
273
|
+
export declare function encodeDODOV2Proxy02TransferOwnership(newOwner: string): any;
|
|
274
274
|
/**
|
|
275
275
|
* encode updateGasReturn
|
|
276
|
-
* @param {
|
|
277
|
-
* @param {
|
|
276
|
+
* @param {string} newDodoGasReturn - uint256
|
|
277
|
+
* @param {string} newExternalGasReturn - uint256
|
|
278
278
|
* @returns {string} encode data
|
|
279
279
|
*/
|
|
280
|
-
export declare function encodeDODOV2Proxy02UpdateGasReturn(newDodoGasReturn:
|
|
280
|
+
export declare function encodeDODOV2Proxy02UpdateGasReturn(newDodoGasReturn: string, newExternalGasReturn: string): any;
|
|
@@ -4,19 +4,19 @@ export declare function getDODOV2RouteHelperContractAddressByChainId(chainId: nu
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDODOV2RouteHelper_DPP_FACTORY_(chainId: number):
|
|
7
|
+
export declare function fetchDODOV2RouteHelper_DPP_FACTORY_(chainId: number): any;
|
|
8
8
|
/**
|
|
9
9
|
* fetch _DSP_FACTORY_
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @returns {string} __output0 - address
|
|
12
12
|
*/
|
|
13
|
-
export declare function fetchDODOV2RouteHelper_DSP_FACTORY_(chainId: number):
|
|
13
|
+
export declare function fetchDODOV2RouteHelper_DSP_FACTORY_(chainId: number): any;
|
|
14
14
|
/**
|
|
15
15
|
* fetch _DVM_FACTORY_
|
|
16
16
|
* @param {number} chainId - number
|
|
17
17
|
* @returns {string} __output0 - address
|
|
18
18
|
*/
|
|
19
|
-
export declare function fetchDODOV2RouteHelper_DVM_FACTORY_(chainId: number):
|
|
19
|
+
export declare function fetchDODOV2RouteHelper_DVM_FACTORY_(chainId: number): any;
|
|
20
20
|
/**
|
|
21
21
|
* fetch getPairDetail
|
|
22
22
|
* @param {number} chainId - number
|
|
@@ -25,4 +25,4 @@ export declare function fetchDODOV2RouteHelper_DVM_FACTORY_(chainId: number): Pr
|
|
|
25
25
|
* @param {string} userAddr - address
|
|
26
26
|
* @returns {[bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, string, string, string, bigint]} res - tuple[]
|
|
27
27
|
*/
|
|
28
|
-
export declare function fetchDODOV2RouteHelperGetPairDetail(chainId: number, token0: string, token1: string, userAddr: string):
|
|
28
|
+
export declare function fetchDODOV2RouteHelperGetPairDetail(chainId: number, token0: string, token1: string, userAddr: string): any;
|