@dodoex/dodo-contract-request 1.3.0 → 1.3.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/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +53 -47
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +42 -39
- 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 +144 -105
- 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 -13
- 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 +29 -23
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -19
- 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 +17 -14
- 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 +100 -97
- 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 +82 -50
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +33 -30
- package/dist/types/contract/DSP.d.ts +93 -61
- package/dist/types/contract/DSPFactory.d.ts +24 -21
- package/dist/types/contract/DVM.d.ts +86 -58
- package/dist/types/contract/DVMFactory.d.ts +24 -21
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +23 -4
- package/dist/types/contract/ERC20MineV3.d.ts +48 -38
- package/dist/types/contract/ERC20V3Factory.d.ts +37 -33
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +34 -25
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +117 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -23
- 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 +11 -11
- package/dist/types/contract/UniswapV2Pair.d.ts +45 -41
- package/dist/types/contract/UniswapV2Router02.d.ts +103 -103
- package/dist/types/contract/dodoTeam.d.ts +49 -46
- package/dist/types/contract/vDODOToken.d.ts +67 -55
- package/dist/types/contractRequests.d.ts +1 -1
- package/package.json +1 -1
- package/src/contract/BuyoutModel.ts +16 -16
- package/src/contract/CP.ts +39 -39
- package/src/contract/CrowdPoolingFactory.ts +34 -34
- package/src/contract/CustomERC20.ts +22 -22
- package/src/contract/CustomMintableERC20.ts +26 -26
- package/src/contract/D3Proxy.ts +24 -24
- package/src/contract/D3Vault.ts +79 -79
- package/src/contract/DODOApprove.ts +8 -8
- package/src/contract/DODOApproveProxy.ts +9 -9
- package/src/contract/DODOCalleeHelper.ts +12 -12
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +13 -13
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +12 -12
- package/src/contract/DODODppProxy.ts +17 -17
- package/src/contract/DODODspProxy.ts +27 -27
- package/src/contract/DODODspProxyWithoutGSP.ts +17 -17
- package/src/contract/DODOIncentive.ts +17 -17
- package/src/contract/DODOMineV2Factory.ts +11 -11
- package/src/contract/DODOMineV3Proxy.ts +15 -15
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +14 -14
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +24 -24
- package/src/contract/DODONFT1155.ts +19 -19
- package/src/contract/DODONFTApprove.ts +14 -14
- package/src/contract/DODONFTPoolProxy.ts +34 -34
- package/src/contract/DODONFTProxy.ts +18 -18
- package/src/contract/DODONFTRegistry.ts +7 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +6 -6
- package/src/contract/DODOV1.ts +80 -80
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +11 -11
- package/src/contract/DODOV2Proxy02.ts +88 -88
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +44 -44
- package/src/contract/DPPAdvancedAdmin.ts +19 -19
- package/src/contract/DPPFactory.ts +18 -18
- package/src/contract/DSP.ts +57 -57
- package/src/contract/DSPFactory.ts +15 -15
- package/src/contract/DVM.ts +54 -54
- package/src/contract/DVMFactory.ts +15 -15
- package/src/contract/ERC20.ts +14 -14
- package/src/contract/ERC20Helper.ts +4 -4
- package/src/contract/ERC20MineV3.ts +32 -32
- package/src/contract/ERC20V3Factory.ts +26 -26
- package/src/contract/FeeRateDIP3Impl.ts +18 -18
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +75 -75
- package/src/contract/GSPFactory.ts +16 -16
- package/src/contract/InitializableERC20.ts +16 -16
- package/src/contract/LimitOrder.ts +19 -19
- package/src/contract/LimitOrderBot.ts +11 -11
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +9 -9
- package/src/contract/UniswapV2Pair.ts +36 -36
- package/src/contract/UniswapV2Router02.ts +91 -91
- package/src/contract/dodoTeam.ts +38 -38
- package/src/contract/vDODOToken.ts +48 -48
|
@@ -4,101 +4,101 @@ export declare function getD3ProxyContractAddressByChainId(chainId: number): str
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchD3Proxy_D3_VAULT_(chainId: number):
|
|
7
|
+
export declare function fetchD3Proxy_D3_VAULT_(chainId: number): Promise<string>;
|
|
8
8
|
/**
|
|
9
9
|
* fetch _DODO_APPROVE_PROXY_
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @returns {string} __output0 - address
|
|
12
12
|
*/
|
|
13
|
-
export declare function fetchD3Proxy_DODO_APPROVE_PROXY_(chainId: number):
|
|
13
|
+
export declare function fetchD3Proxy_DODO_APPROVE_PROXY_(chainId: number): Promise<string>;
|
|
14
14
|
/**
|
|
15
15
|
* fetch _ETH_ADDRESS_
|
|
16
16
|
* @param {number} chainId - number
|
|
17
17
|
* @returns {string} __output0 - address
|
|
18
18
|
*/
|
|
19
|
-
export declare function fetchD3Proxy_ETH_ADDRESS_(chainId: number):
|
|
19
|
+
export declare function fetchD3Proxy_ETH_ADDRESS_(chainId: number): Promise<string>;
|
|
20
20
|
/**
|
|
21
21
|
* fetch _WETH_
|
|
22
22
|
* @param {number} chainId - number
|
|
23
23
|
* @returns {string} __output0 - address
|
|
24
24
|
*/
|
|
25
|
-
export declare function fetchD3Proxy_WETH_(chainId: number):
|
|
25
|
+
export declare function fetchD3Proxy_WETH_(chainId: number): Promise<string>;
|
|
26
26
|
/**
|
|
27
27
|
* encode buyTokens
|
|
28
28
|
* @param {string} pool - address
|
|
29
29
|
* @param {string} to - address
|
|
30
30
|
* @param {string} fromToken - address
|
|
31
31
|
* @param {string} toToken - address
|
|
32
|
-
* @param {string} quoteAmount - uint256
|
|
33
|
-
* @param {string} maxPayAmount - uint256
|
|
32
|
+
* @param {string | number} quoteAmount - uint256
|
|
33
|
+
* @param {string | number} maxPayAmount - uint256
|
|
34
34
|
* @param {string} data - bytes
|
|
35
|
-
* @param {string} deadLine - uint256
|
|
35
|
+
* @param {string | number} deadLine - uint256
|
|
36
36
|
* @returns {string} encode data
|
|
37
37
|
*/
|
|
38
|
-
export declare function encodeD3ProxyBuyTokens(pool: string, to: string, fromToken: string, toToken: string, quoteAmount: string, maxPayAmount: string, data: string, deadLine: string):
|
|
38
|
+
export declare function encodeD3ProxyBuyTokens(pool: string, to: string, fromToken: string, toToken: string, quoteAmount: string | number, maxPayAmount: string | number, data: string, deadLine: string | number): string;
|
|
39
39
|
/**
|
|
40
40
|
* encode d3MMSwapCallBack
|
|
41
41
|
* @param {string} token - address
|
|
42
|
-
* @param {string} value - uint256
|
|
42
|
+
* @param {string | number} value - uint256
|
|
43
43
|
* @param {string} _data - bytes
|
|
44
44
|
* @returns {string} encode data
|
|
45
45
|
*/
|
|
46
|
-
export declare function encodeD3ProxyD3MMSwapCallBack(token: string, value: string, _data: string):
|
|
46
|
+
export declare function encodeD3ProxyD3MMSwapCallBack(token: string, value: string | number, _data: string): string;
|
|
47
47
|
/**
|
|
48
48
|
* encode makerDeposit
|
|
49
49
|
* @param {string} pool - address
|
|
50
50
|
* @param {string} token - address
|
|
51
|
-
* @param {string} amount - uint256
|
|
51
|
+
* @param {string | number} amount - uint256
|
|
52
52
|
* @returns {string} encode data
|
|
53
53
|
*/
|
|
54
|
-
export declare function encodeD3ProxyMakerDeposit(pool: string, token: string, amount: string):
|
|
54
|
+
export declare function encodeD3ProxyMakerDeposit(pool: string, token: string, amount: string | number): string;
|
|
55
55
|
/**
|
|
56
56
|
* encode multicall
|
|
57
57
|
* @param {Array<string>} data - bytes[]
|
|
58
58
|
* @returns {string} encode data
|
|
59
59
|
*/
|
|
60
|
-
export declare function encodeD3ProxyMulticall(data: Array<string>):
|
|
60
|
+
export declare function encodeD3ProxyMulticall(data: Array<string>): string;
|
|
61
61
|
/**
|
|
62
62
|
* encode refundETH
|
|
63
63
|
|
|
64
64
|
* @returns {string} encode data
|
|
65
65
|
*/
|
|
66
|
-
export declare function encodeD3ProxyRefundETH():
|
|
66
|
+
export declare function encodeD3ProxyRefundETH(): string;
|
|
67
67
|
/**
|
|
68
68
|
* encode sellTokens
|
|
69
69
|
* @param {string} pool - address
|
|
70
70
|
* @param {string} to - address
|
|
71
71
|
* @param {string} fromToken - address
|
|
72
72
|
* @param {string} toToken - address
|
|
73
|
-
* @param {string} fromAmount - uint256
|
|
74
|
-
* @param {string} minReceiveAmount - uint256
|
|
73
|
+
* @param {string | number} fromAmount - uint256
|
|
74
|
+
* @param {string | number} minReceiveAmount - uint256
|
|
75
75
|
* @param {string} data - bytes
|
|
76
|
-
* @param {string} deadLine - uint256
|
|
76
|
+
* @param {string | number} deadLine - uint256
|
|
77
77
|
* @returns {string} encode data
|
|
78
78
|
*/
|
|
79
|
-
export declare function encodeD3ProxySellTokens(pool: string, to: string, fromToken: string, toToken: string, fromAmount: string, minReceiveAmount: string, data: string, deadLine: string):
|
|
79
|
+
export declare function encodeD3ProxySellTokens(pool: string, to: string, fromToken: string, toToken: string, fromAmount: string | number, minReceiveAmount: string | number, data: string, deadLine: string | number): string;
|
|
80
80
|
/**
|
|
81
81
|
* encode userDeposit
|
|
82
82
|
* @param {string} user - address
|
|
83
83
|
* @param {string} token - address
|
|
84
|
-
* @param {string} amount - uint256
|
|
85
|
-
* @param {string} minDtokenAmount - uint256
|
|
84
|
+
* @param {string | number} amount - uint256
|
|
85
|
+
* @param {string | number} minDtokenAmount - uint256
|
|
86
86
|
* @returns {string} encode data
|
|
87
87
|
*/
|
|
88
|
-
export declare function encodeD3ProxyUserDeposit(user: string, token: string, amount: string, minDtokenAmount: string):
|
|
88
|
+
export declare function encodeD3ProxyUserDeposit(user: string, token: string, amount: string | number, minDtokenAmount: string | number): string;
|
|
89
89
|
/**
|
|
90
90
|
* encode userWithdraw
|
|
91
91
|
* @param {string} to - address
|
|
92
92
|
* @param {string} token - address
|
|
93
|
-
* @param {string} dTokenAmount - uint256
|
|
94
|
-
* @param {string} minReceiveAmount - uint256
|
|
93
|
+
* @param {string | number} dTokenAmount - uint256
|
|
94
|
+
* @param {string | number} minReceiveAmount - uint256
|
|
95
95
|
* @returns {string} encode data
|
|
96
96
|
*/
|
|
97
|
-
export declare function encodeD3ProxyUserWithdraw(to: string, token: string, dTokenAmount: string, minReceiveAmount: string):
|
|
97
|
+
export declare function encodeD3ProxyUserWithdraw(to: string, token: string, dTokenAmount: string | number, minReceiveAmount: string | number): string;
|
|
98
98
|
/**
|
|
99
99
|
* encode withdrawWETH
|
|
100
100
|
* @param {string} to - address
|
|
101
|
-
* @param {string} minAmount - uint256
|
|
101
|
+
* @param {string | number} minAmount - uint256
|
|
102
102
|
* @returns {string} encode data
|
|
103
103
|
*/
|
|
104
|
-
export declare function encodeD3ProxyWithdrawWETH(to: string, minAmount: string):
|
|
104
|
+
export declare function encodeD3ProxyWithdrawWETH(to: string, minAmount: string | number): string;
|