@dodoex/dodo-contract-request 1.5.0 → 1.6.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/.releaserc.json +8 -3
- package/CHANGELOG.md +15 -25
- package/contract-config/sepolia.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +42 -12
- package/dist/types/contract/CP.d.ts +214 -50
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
- package/dist/types/contract/CustomERC20.d.ts +75 -20
- package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
- package/dist/types/contract/D3Proxy.d.ts +33 -13
- package/dist/types/contract/D3Vault.d.ts +324 -123
- package/dist/types/contract/DODOApprove.d.ts +44 -14
- package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
- package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
- package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
- package/dist/types/contract/DODOCpProxy.d.ts +20 -5
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
- package/dist/types/contract/DODODppProxy.d.ts +20 -5
- package/dist/types/contract/DODODspProxy.d.ts +27 -7
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
- package/dist/types/contract/DODOIncentive.d.ts +75 -26
- package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
- package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
- package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
- package/dist/types/contract/DODONFT.d.ts +95 -25
- package/dist/types/contract/DODONFT1155.d.ts +56 -16
- package/dist/types/contract/DODONFTApprove.d.ts +47 -17
- package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
- package/dist/types/contract/DODONFTProxy.d.ts +84 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
- package/dist/types/contract/DODOSellHelper.d.ts +12 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
- package/dist/types/contract/DODOV1.d.ts +269 -77
- package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
- package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
- package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
- package/dist/types/contract/DPPAdvanced.d.ts +172 -69
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
- package/dist/types/contract/DPPFactory.d.ts +97 -30
- package/dist/types/contract/DSP.d.ts +221 -78
- package/dist/types/contract/DSPFactory.d.ts +73 -21
- package/dist/types/contract/DVM.d.ts +203 -71
- package/dist/types/contract/DVMFactory.d.ts +73 -21
- package/dist/types/contract/ERC20.d.ts +41 -11
- package/dist/types/contract/ERC20Helper.d.ts +24 -23
- package/dist/types/contract/ERC20MineV3.d.ts +91 -36
- package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
- package/dist/types/contract/FeeRateModel.d.ts +28 -8
- package/dist/types/contract/GSP.d.ts +265 -95
- package/dist/types/contract/GSPFactory.d.ts +68 -21
- package/dist/types/contract/InitializableERC20.d.ts +46 -11
- package/dist/types/contract/LimitOrder.d.ts +71 -21
- package/dist/types/contract/LimitOrderBot.d.ts +45 -15
- package/dist/types/contract/MulticallWithValid.d.ts +43 -8
- package/dist/types/contract/PermissionManager.d.ts +33 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
- package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
- package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
- package/dist/types/contract/dodoTeam.d.ts +100 -33
- package/dist/types/contract/vDODOToken.d.ts +196 -58
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +8 -1
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +60 -0
- package/src/contract/CP.ts +340 -0
- package/src/contract/CrowdPoolingFactory.ts +190 -0
- package/src/contract/CustomERC20.ts +110 -0
- package/src/contract/CustomMintableERC20.ts +110 -0
- package/src/contract/D3Proxy.ts +40 -0
- package/src/contract/D3Vault.ts +480 -0
- package/src/contract/DODOApprove.ts +60 -0
- package/src/contract/DODOApproveProxy.ts +70 -0
- package/src/contract/DODOCalleeHelper.ts +10 -0
- package/src/contract/DODOCirculationHelper.ts +70 -0
- package/src/contract/DODOCpProxy.ts +30 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
- package/src/contract/DODODppProxy.ts +30 -0
- package/src/contract/DODODspProxy.ts +40 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
- package/src/contract/DODOIncentive.ts +110 -0
- package/src/contract/DODOMineV2Factory.ts +70 -0
- package/src/contract/DODOMineV3Proxy.ts +60 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
- package/src/contract/DODOMineV3Registry.ts +60 -0
- package/src/contract/DODONFT.ts +140 -0
- package/src/contract/DODONFT1155.ts +80 -0
- package/src/contract/DODONFTApprove.ts +60 -0
- package/src/contract/DODONFTPoolProxy.ts +100 -0
- package/src/contract/DODONFTProxy.ts +120 -0
- package/src/contract/DODONFTRegistry.ts +70 -0
- package/src/contract/DODONFTRouteHelper.ts +20 -0
- package/src/contract/DODOSellHelper.ts +20 -0
- package/src/contract/DODOStarterProxy.ts +20 -0
- package/src/contract/DODOV1.ts +390 -0
- package/src/contract/DODOV1Adapter.ts +10 -0
- package/src/contract/DODOV1PmmHelper.ts +10 -0
- package/src/contract/DODOV1Proxy.ts +10 -0
- package/src/contract/DODOV2Proxy02.ts +130 -0
- package/src/contract/DODOV2RouteHelper.ts +40 -0
- package/src/contract/DPPAdvanced.ts +270 -0
- package/src/contract/DPPAdvancedAdmin.ts +70 -0
- package/src/contract/DPPFactory.ts +140 -0
- package/src/contract/DSP.ts +350 -0
- package/src/contract/DSPFactory.ts +110 -0
- package/src/contract/DVM.ts +320 -0
- package/src/contract/DVMFactory.ts +110 -0
- package/src/contract/ERC20.ts +60 -0
- package/src/contract/ERC20Helper.ts +40 -0
- package/src/contract/ERC20MineV3.ts +130 -0
- package/src/contract/ERC20V3Factory.ts +110 -0
- package/src/contract/FeeRateDIP3Impl.ts +100 -0
- package/src/contract/FeeRateModel.ts +40 -0
- package/src/contract/GSP.ts +410 -0
- package/src/contract/GSPFactory.ts +100 -0
- package/src/contract/InitializableERC20.ts +70 -0
- package/src/contract/LimitOrder.ts +100 -0
- package/src/contract/LimitOrderBot.ts +60 -0
- package/src/contract/MulticallWithValid.ts +70 -0
- package/src/contract/PermissionManager.ts +40 -0
- package/src/contract/UniswapV2Factory.ts +51 -1
- package/src/contract/UniswapV2Pair.ts +190 -0
- package/src/contract/UniswapV2Router02.ts +71 -1
- package/src/contract/dodoTeam.ts +140 -0
- package/src/contract/vDODOToken.ts +300 -0
- package/src/index.ts +2 -1
|
@@ -4,98 +4,168 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - bytes32
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDVMDOMAIN_SEPARATOR(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchDVMDOMAIN_SEPARATOR(chainId: number, __to: string): any;
|
|
8
|
+
export declare function getFetchDVMDOMAIN_SEPARATORQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean[];
|
|
11
|
+
queryFn: () => any;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* fetch PERMIT_TYPEHASH
|
|
10
15
|
* @param {number} chainId - number
|
|
11
16
|
* @param {string} __to - string
|
|
12
17
|
* @returns {string} __output0 - bytes32
|
|
13
18
|
*/
|
|
14
|
-
export declare function fetchDVMPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
19
|
+
export declare function fetchDVMPERMIT_TYPEHASH(chainId: number, __to: string): any;
|
|
20
|
+
export declare function getFetchDVMPERMIT_TYPEHASHQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
21
|
+
queryKey: (string | number | undefined)[];
|
|
22
|
+
enabled: boolean[];
|
|
23
|
+
queryFn: () => any;
|
|
24
|
+
};
|
|
15
25
|
/**
|
|
16
26
|
* fetch _BASE_PRICE_CUMULATIVE_LAST_
|
|
17
27
|
* @param {number} chainId - number
|
|
18
28
|
* @param {string} __to - string
|
|
19
29
|
* @returns {bigint} __output0 - uint256
|
|
20
30
|
*/
|
|
21
|
-
export declare function fetchDVM_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string):
|
|
31
|
+
export declare function fetchDVM_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): any;
|
|
32
|
+
export declare function getFetchDVM_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
33
|
+
queryKey: (string | number | undefined)[];
|
|
34
|
+
enabled: boolean[];
|
|
35
|
+
queryFn: () => any;
|
|
36
|
+
};
|
|
22
37
|
/**
|
|
23
38
|
* fetch _BASE_RESERVE_
|
|
24
39
|
* @param {number} chainId - number
|
|
25
40
|
* @param {string} __to - string
|
|
26
41
|
* @returns {bigint} __output0 - uint112
|
|
27
42
|
*/
|
|
28
|
-
export declare function fetchDVM_BASE_RESERVE_(chainId: number, __to: string):
|
|
43
|
+
export declare function fetchDVM_BASE_RESERVE_(chainId: number, __to: string): any;
|
|
44
|
+
export declare function getFetchDVM_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
45
|
+
queryKey: (string | number | undefined)[];
|
|
46
|
+
enabled: boolean[];
|
|
47
|
+
queryFn: () => any;
|
|
48
|
+
};
|
|
29
49
|
/**
|
|
30
50
|
* fetch _BASE_TOKEN_
|
|
31
51
|
* @param {number} chainId - number
|
|
32
52
|
* @param {string} __to - string
|
|
33
53
|
* @returns {string} __output0 - address
|
|
34
54
|
*/
|
|
35
|
-
export declare function fetchDVM_BASE_TOKEN_(chainId: number, __to: string):
|
|
55
|
+
export declare function fetchDVM_BASE_TOKEN_(chainId: number, __to: string): any;
|
|
56
|
+
export declare function getFetchDVM_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
57
|
+
queryKey: (string | number | undefined)[];
|
|
58
|
+
enabled: boolean[];
|
|
59
|
+
queryFn: () => any;
|
|
60
|
+
};
|
|
36
61
|
/**
|
|
37
62
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
38
63
|
* @param {number} chainId - number
|
|
39
64
|
* @param {string} __to - string
|
|
40
65
|
* @returns {bigint} __output0 - uint32
|
|
41
66
|
*/
|
|
42
|
-
export declare function fetchDVM_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string):
|
|
67
|
+
export declare function fetchDVM_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): any;
|
|
68
|
+
export declare function getFetchDVM_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
69
|
+
queryKey: (string | number | undefined)[];
|
|
70
|
+
enabled: boolean[];
|
|
71
|
+
queryFn: () => any;
|
|
72
|
+
};
|
|
43
73
|
/**
|
|
44
74
|
* fetch _IS_OPEN_TWAP_
|
|
45
75
|
* @param {number} chainId - number
|
|
46
76
|
* @param {string} __to - string
|
|
47
77
|
* @returns {boolean} __output0 - bool
|
|
48
78
|
*/
|
|
49
|
-
export declare function fetchDVM_IS_OPEN_TWAP_(chainId: number, __to: string):
|
|
79
|
+
export declare function fetchDVM_IS_OPEN_TWAP_(chainId: number, __to: string): any;
|
|
80
|
+
export declare function getFetchDVM_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
81
|
+
queryKey: (string | number | undefined)[];
|
|
82
|
+
enabled: boolean[];
|
|
83
|
+
queryFn: () => any;
|
|
84
|
+
};
|
|
50
85
|
/**
|
|
51
86
|
* fetch _I_
|
|
52
87
|
* @param {number} chainId - number
|
|
53
88
|
* @param {string} __to - string
|
|
54
89
|
* @returns {bigint} __output0 - uint256
|
|
55
90
|
*/
|
|
56
|
-
export declare function fetchDVM_I_(chainId: number, __to: string):
|
|
91
|
+
export declare function fetchDVM_I_(chainId: number, __to: string): any;
|
|
92
|
+
export declare function getFetchDVM_I_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
93
|
+
queryKey: (string | number | undefined)[];
|
|
94
|
+
enabled: boolean[];
|
|
95
|
+
queryFn: () => any;
|
|
96
|
+
};
|
|
57
97
|
/**
|
|
58
98
|
* fetch _K_
|
|
59
99
|
* @param {number} chainId - number
|
|
60
100
|
* @param {string} __to - string
|
|
61
101
|
* @returns {bigint} __output0 - uint256
|
|
62
102
|
*/
|
|
63
|
-
export declare function fetchDVM_K_(chainId: number, __to: string):
|
|
103
|
+
export declare function fetchDVM_K_(chainId: number, __to: string): any;
|
|
104
|
+
export declare function getFetchDVM_K_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
105
|
+
queryKey: (string | number | undefined)[];
|
|
106
|
+
enabled: boolean[];
|
|
107
|
+
queryFn: () => any;
|
|
108
|
+
};
|
|
64
109
|
/**
|
|
65
110
|
* fetch _LP_FEE_RATE_
|
|
66
111
|
* @param {number} chainId - number
|
|
67
112
|
* @param {string} __to - string
|
|
68
113
|
* @returns {bigint} __output0 - uint256
|
|
69
114
|
*/
|
|
70
|
-
export declare function fetchDVM_LP_FEE_RATE_(chainId: number, __to: string):
|
|
115
|
+
export declare function fetchDVM_LP_FEE_RATE_(chainId: number, __to: string): any;
|
|
116
|
+
export declare function getFetchDVM_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
117
|
+
queryKey: (string | number | undefined)[];
|
|
118
|
+
enabled: boolean[];
|
|
119
|
+
queryFn: () => any;
|
|
120
|
+
};
|
|
71
121
|
/**
|
|
72
122
|
* fetch _MAINTAINER_
|
|
73
123
|
* @param {number} chainId - number
|
|
74
124
|
* @param {string} __to - string
|
|
75
125
|
* @returns {string} __output0 - address
|
|
76
126
|
*/
|
|
77
|
-
export declare function fetchDVM_MAINTAINER_(chainId: number, __to: string):
|
|
127
|
+
export declare function fetchDVM_MAINTAINER_(chainId: number, __to: string): any;
|
|
128
|
+
export declare function getFetchDVM_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
129
|
+
queryKey: (string | number | undefined)[];
|
|
130
|
+
enabled: boolean[];
|
|
131
|
+
queryFn: () => any;
|
|
132
|
+
};
|
|
78
133
|
/**
|
|
79
134
|
* fetch _MT_FEE_RATE_MODEL_
|
|
80
135
|
* @param {number} chainId - number
|
|
81
136
|
* @param {string} __to - string
|
|
82
137
|
* @returns {string} __output0 - address
|
|
83
138
|
*/
|
|
84
|
-
export declare function fetchDVM_MT_FEE_RATE_MODEL_(chainId: number, __to: string):
|
|
139
|
+
export declare function fetchDVM_MT_FEE_RATE_MODEL_(chainId: number, __to: string): any;
|
|
140
|
+
export declare function getFetchDVM_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
141
|
+
queryKey: (string | number | undefined)[];
|
|
142
|
+
enabled: boolean[];
|
|
143
|
+
queryFn: () => any;
|
|
144
|
+
};
|
|
85
145
|
/**
|
|
86
146
|
* fetch _QUOTE_RESERVE_
|
|
87
147
|
* @param {number} chainId - number
|
|
88
148
|
* @param {string} __to - string
|
|
89
149
|
* @returns {bigint} __output0 - uint112
|
|
90
150
|
*/
|
|
91
|
-
export declare function fetchDVM_QUOTE_RESERVE_(chainId: number, __to: string):
|
|
151
|
+
export declare function fetchDVM_QUOTE_RESERVE_(chainId: number, __to: string): any;
|
|
152
|
+
export declare function getFetchDVM_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
153
|
+
queryKey: (string | number | undefined)[];
|
|
154
|
+
enabled: boolean[];
|
|
155
|
+
queryFn: () => any;
|
|
156
|
+
};
|
|
92
157
|
/**
|
|
93
158
|
* fetch _QUOTE_TOKEN_
|
|
94
159
|
* @param {number} chainId - number
|
|
95
160
|
* @param {string} __to - string
|
|
96
161
|
* @returns {string} __output0 - address
|
|
97
162
|
*/
|
|
98
|
-
export declare function fetchDVM_QUOTE_TOKEN_(chainId: number, __to: string):
|
|
163
|
+
export declare function fetchDVM_QUOTE_TOKEN_(chainId: number, __to: string): any;
|
|
164
|
+
export declare function getFetchDVM_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
165
|
+
queryKey: (string | number | undefined)[];
|
|
166
|
+
enabled: boolean[];
|
|
167
|
+
queryFn: () => any;
|
|
168
|
+
};
|
|
99
169
|
/**
|
|
100
170
|
* fetch addressToShortString
|
|
101
171
|
* @param {number} chainId - number
|
|
@@ -103,7 +173,12 @@ export declare function fetchDVM_QUOTE_TOKEN_(chainId: number, __to: string): Pr
|
|
|
103
173
|
* @param {string} _addr - address
|
|
104
174
|
* @returns {string} __output0 - string
|
|
105
175
|
*/
|
|
106
|
-
export declare function fetchDVMAddressToShortString(chainId: number, __to: string, _addr: string):
|
|
176
|
+
export declare function fetchDVMAddressToShortString(chainId: number, __to: string, _addr: string): any;
|
|
177
|
+
export declare function getFetchDVMAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined): {
|
|
178
|
+
queryKey: (string | number | undefined)[];
|
|
179
|
+
enabled: boolean[];
|
|
180
|
+
queryFn: () => any;
|
|
181
|
+
};
|
|
107
182
|
/**
|
|
108
183
|
* fetch allowance
|
|
109
184
|
* @param {number} chainId - number
|
|
@@ -112,7 +187,12 @@ export declare function fetchDVMAddressToShortString(chainId: number, __to: stri
|
|
|
112
187
|
* @param {string} spender - address
|
|
113
188
|
* @returns {bigint} __output0 - uint256
|
|
114
189
|
*/
|
|
115
|
-
export declare function fetchDVMAllowance(chainId: number, __to: string, owner: string, spender: string):
|
|
190
|
+
export declare function fetchDVMAllowance(chainId: number, __to: string, owner: string, spender: string): any;
|
|
191
|
+
export declare function getFetchDVMAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined): {
|
|
192
|
+
queryKey: (string | number | undefined)[];
|
|
193
|
+
enabled: boolean[];
|
|
194
|
+
queryFn: () => any;
|
|
195
|
+
};
|
|
116
196
|
/**
|
|
117
197
|
* fetch balanceOf
|
|
118
198
|
* @param {number} chainId - number
|
|
@@ -120,43 +200,60 @@ export declare function fetchDVMAllowance(chainId: number, __to: string, owner:
|
|
|
120
200
|
* @param {string} owner - address
|
|
121
201
|
* @returns {bigint} balance - uint256
|
|
122
202
|
*/
|
|
123
|
-
export declare function fetchDVMBalanceOf(chainId: number, __to: string, owner: string):
|
|
203
|
+
export declare function fetchDVMBalanceOf(chainId: number, __to: string, owner: string): any;
|
|
204
|
+
export declare function getFetchDVMBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined): {
|
|
205
|
+
queryKey: (string | number | undefined)[];
|
|
206
|
+
enabled: boolean[];
|
|
207
|
+
queryFn: () => any;
|
|
208
|
+
};
|
|
124
209
|
/**
|
|
125
210
|
* fetch decimals
|
|
126
211
|
* @param {number} chainId - number
|
|
127
212
|
* @param {string} __to - string
|
|
128
213
|
* @returns {bigint} __output0 - uint8
|
|
129
214
|
*/
|
|
130
|
-
export declare function fetchDVMDecimals(chainId: number, __to: string):
|
|
215
|
+
export declare function fetchDVMDecimals(chainId: number, __to: string): any;
|
|
216
|
+
export declare function getFetchDVMDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
217
|
+
queryKey: (string | number | undefined)[];
|
|
218
|
+
enabled: boolean[];
|
|
219
|
+
queryFn: () => any;
|
|
220
|
+
};
|
|
131
221
|
/**
|
|
132
222
|
* fetch getBaseInput
|
|
133
223
|
* @param {number} chainId - number
|
|
134
224
|
* @param {string} __to - string
|
|
135
225
|
* @returns {bigint} input - uint256
|
|
136
226
|
*/
|
|
137
|
-
export declare function fetchDVMGetBaseInput(chainId: number, __to: string):
|
|
227
|
+
export declare function fetchDVMGetBaseInput(chainId: number, __to: string): any;
|
|
228
|
+
export declare function getFetchDVMGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
229
|
+
queryKey: (string | number | undefined)[];
|
|
230
|
+
enabled: boolean[];
|
|
231
|
+
queryFn: () => any;
|
|
232
|
+
};
|
|
138
233
|
/**
|
|
139
234
|
* fetch getMidPrice
|
|
140
235
|
* @param {number} chainId - number
|
|
141
236
|
* @param {string} __to - string
|
|
142
237
|
* @returns {bigint} midPrice - uint256
|
|
143
238
|
*/
|
|
144
|
-
export declare function fetchDVMGetMidPrice(chainId: number, __to: string):
|
|
239
|
+
export declare function fetchDVMGetMidPrice(chainId: number, __to: string): any;
|
|
240
|
+
export declare function getFetchDVMGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
241
|
+
queryKey: (string | number | undefined)[];
|
|
242
|
+
enabled: boolean[];
|
|
243
|
+
queryFn: () => any;
|
|
244
|
+
};
|
|
145
245
|
/**
|
|
146
246
|
* fetch getPMMState
|
|
147
247
|
* @param {number} chainId - number
|
|
148
248
|
* @param {string} __to - string
|
|
149
249
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
150
250
|
*/
|
|
151
|
-
export declare function fetchDVMGetPMMState(chainId: number, __to: string):
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Q0: bigint;
|
|
158
|
-
R: bigint;
|
|
159
|
-
}>;
|
|
251
|
+
export declare function fetchDVMGetPMMState(chainId: number, __to: string): any;
|
|
252
|
+
export declare function getFetchDVMGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
253
|
+
queryKey: (string | number | undefined)[];
|
|
254
|
+
enabled: boolean[];
|
|
255
|
+
queryFn: () => any;
|
|
256
|
+
};
|
|
160
257
|
/**
|
|
161
258
|
* fetch getPMMStateForCall
|
|
162
259
|
* @param {number} chainId - number
|
|
@@ -169,22 +266,24 @@ export declare function fetchDVMGetPMMState(chainId: number, __to: string): Prom
|
|
|
169
266
|
* @returns {bigint} Q0 - uint256
|
|
170
267
|
* @returns {bigint} R - uint256
|
|
171
268
|
*/
|
|
172
|
-
export declare function fetchDVMGetPMMStateForCall(chainId: number, __to: string):
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Q0: bigint;
|
|
179
|
-
R: bigint;
|
|
180
|
-
}>;
|
|
269
|
+
export declare function fetchDVMGetPMMStateForCall(chainId: number, __to: string): any;
|
|
270
|
+
export declare function getFetchDVMGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
271
|
+
queryKey: (string | number | undefined)[];
|
|
272
|
+
enabled: boolean[];
|
|
273
|
+
queryFn: () => any;
|
|
274
|
+
};
|
|
181
275
|
/**
|
|
182
276
|
* fetch getQuoteInput
|
|
183
277
|
* @param {number} chainId - number
|
|
184
278
|
* @param {string} __to - string
|
|
185
279
|
* @returns {bigint} input - uint256
|
|
186
280
|
*/
|
|
187
|
-
export declare function fetchDVMGetQuoteInput(chainId: number, __to: string):
|
|
281
|
+
export declare function fetchDVMGetQuoteInput(chainId: number, __to: string): any;
|
|
282
|
+
export declare function getFetchDVMGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
283
|
+
queryKey: (string | number | undefined)[];
|
|
284
|
+
enabled: boolean[];
|
|
285
|
+
queryFn: () => any;
|
|
286
|
+
};
|
|
188
287
|
/**
|
|
189
288
|
* fetch getUserFeeRate
|
|
190
289
|
* @param {number} chainId - number
|
|
@@ -193,10 +292,12 @@ export declare function fetchDVMGetQuoteInput(chainId: number, __to: string): Pr
|
|
|
193
292
|
* @returns {bigint} lpFeeRate - uint256
|
|
194
293
|
* @returns {bigint} mtFeeRate - uint256
|
|
195
294
|
*/
|
|
196
|
-
export declare function fetchDVMGetUserFeeRate(chainId: number, __to: string, user: string):
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
295
|
+
export declare function fetchDVMGetUserFeeRate(chainId: number, __to: string, user: string): any;
|
|
296
|
+
export declare function getFetchDVMGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
|
|
297
|
+
queryKey: (string | number | undefined)[];
|
|
298
|
+
enabled: boolean[];
|
|
299
|
+
queryFn: () => any;
|
|
300
|
+
};
|
|
200
301
|
/**
|
|
201
302
|
* fetch getVaultReserve
|
|
202
303
|
* @param {number} chainId - number
|
|
@@ -204,17 +305,24 @@ export declare function fetchDVMGetUserFeeRate(chainId: number, __to: string, us
|
|
|
204
305
|
* @returns {bigint} baseReserve - uint256
|
|
205
306
|
* @returns {bigint} quoteReserve - uint256
|
|
206
307
|
*/
|
|
207
|
-
export declare function fetchDVMGetVaultReserve(chainId: number, __to: string):
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
308
|
+
export declare function fetchDVMGetVaultReserve(chainId: number, __to: string): any;
|
|
309
|
+
export declare function getFetchDVMGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
310
|
+
queryKey: (string | number | undefined)[];
|
|
311
|
+
enabled: boolean[];
|
|
312
|
+
queryFn: () => any;
|
|
313
|
+
};
|
|
211
314
|
/**
|
|
212
315
|
* fetch name
|
|
213
316
|
* @param {number} chainId - number
|
|
214
317
|
* @param {string} __to - string
|
|
215
318
|
* @returns {string} __output0 - string
|
|
216
319
|
*/
|
|
217
|
-
export declare function fetchDVMName(chainId: number, __to: string):
|
|
320
|
+
export declare function fetchDVMName(chainId: number, __to: string): any;
|
|
321
|
+
export declare function getFetchDVMNameQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
322
|
+
queryKey: (string | number | undefined)[];
|
|
323
|
+
enabled: boolean[];
|
|
324
|
+
queryFn: () => any;
|
|
325
|
+
};
|
|
218
326
|
/**
|
|
219
327
|
* fetch nonces
|
|
220
328
|
* @param {number} chainId - number
|
|
@@ -222,7 +330,12 @@ export declare function fetchDVMName(chainId: number, __to: string): Promise<str
|
|
|
222
330
|
* @param {string} __input1 - address
|
|
223
331
|
* @returns {bigint} __output0 - uint256
|
|
224
332
|
*/
|
|
225
|
-
export declare function fetchDVMNonces(chainId: number, __to: string, __input1: string):
|
|
333
|
+
export declare function fetchDVMNonces(chainId: number, __to: string, __input1: string): any;
|
|
334
|
+
export declare function getFetchDVMNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
335
|
+
queryKey: (string | number | undefined)[];
|
|
336
|
+
enabled: boolean[];
|
|
337
|
+
queryFn: () => any;
|
|
338
|
+
};
|
|
226
339
|
/**
|
|
227
340
|
* fetch querySellBase
|
|
228
341
|
* @param {number} chainId - number
|
|
@@ -232,10 +345,12 @@ export declare function fetchDVMNonces(chainId: number, __to: string, __input1:
|
|
|
232
345
|
* @returns {bigint} receiveQuoteAmount - uint256
|
|
233
346
|
* @returns {bigint} mtFee - uint256
|
|
234
347
|
*/
|
|
235
|
-
export declare function fetchDVMQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number):
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
348
|
+
export declare function fetchDVMQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): any;
|
|
349
|
+
export declare function getFetchDVMQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined): {
|
|
350
|
+
queryKey: (string | number | undefined)[];
|
|
351
|
+
enabled: boolean[];
|
|
352
|
+
queryFn: () => any;
|
|
353
|
+
};
|
|
239
354
|
/**
|
|
240
355
|
* fetch querySellQuote
|
|
241
356
|
* @param {number} chainId - number
|
|
@@ -245,44 +360,61 @@ export declare function fetchDVMQuerySellBase(chainId: number, __to: string, tra
|
|
|
245
360
|
* @returns {bigint} receiveBaseAmount - uint256
|
|
246
361
|
* @returns {bigint} mtFee - uint256
|
|
247
362
|
*/
|
|
248
|
-
export declare function fetchDVMQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number):
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
363
|
+
export declare function fetchDVMQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): any;
|
|
364
|
+
export declare function getFetchDVMQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined): {
|
|
365
|
+
queryKey: (string | number | undefined)[];
|
|
366
|
+
enabled: boolean[];
|
|
367
|
+
queryFn: () => any;
|
|
368
|
+
};
|
|
252
369
|
/**
|
|
253
370
|
* fetch symbol
|
|
254
371
|
* @param {number} chainId - number
|
|
255
372
|
* @param {string} __to - string
|
|
256
373
|
* @returns {string} __output0 - string
|
|
257
374
|
*/
|
|
258
|
-
export declare function fetchDVMSymbol(chainId: number, __to: string):
|
|
375
|
+
export declare function fetchDVMSymbol(chainId: number, __to: string): any;
|
|
376
|
+
export declare function getFetchDVMSymbolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
377
|
+
queryKey: (string | number | undefined)[];
|
|
378
|
+
enabled: boolean[];
|
|
379
|
+
queryFn: () => any;
|
|
380
|
+
};
|
|
259
381
|
/**
|
|
260
382
|
* fetch totalSupply
|
|
261
383
|
* @param {number} chainId - number
|
|
262
384
|
* @param {string} __to - string
|
|
263
385
|
* @returns {bigint} __output0 - uint256
|
|
264
386
|
*/
|
|
265
|
-
export declare function fetchDVMTotalSupply(chainId: number, __to: string):
|
|
387
|
+
export declare function fetchDVMTotalSupply(chainId: number, __to: string): any;
|
|
388
|
+
export declare function getFetchDVMTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
389
|
+
queryKey: (string | number | undefined)[];
|
|
390
|
+
enabled: boolean[];
|
|
391
|
+
queryFn: () => any;
|
|
392
|
+
};
|
|
266
393
|
/**
|
|
267
394
|
* fetch version
|
|
268
395
|
* @param {number} chainId - number
|
|
269
396
|
* @param {string} __to - string
|
|
270
397
|
* @returns {string} __output0 - string
|
|
271
398
|
*/
|
|
272
|
-
export declare function fetchDVMVersion(chainId: number, __to: string):
|
|
399
|
+
export declare function fetchDVMVersion(chainId: number, __to: string): any;
|
|
400
|
+
export declare function getFetchDVMVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
401
|
+
queryKey: (string | number | undefined)[];
|
|
402
|
+
enabled: boolean[];
|
|
403
|
+
queryFn: () => any;
|
|
404
|
+
};
|
|
273
405
|
/**
|
|
274
406
|
* encode approve
|
|
275
407
|
* @param {string} spender - address
|
|
276
408
|
* @param {string | number} amount - uint256
|
|
277
409
|
* @returns {string} encode data
|
|
278
410
|
*/
|
|
279
|
-
export declare function encodeDVMApprove(spender: string, amount: string | number):
|
|
411
|
+
export declare function encodeDVMApprove(spender: string, amount: string | number): any;
|
|
280
412
|
/**
|
|
281
413
|
* encode buyShares
|
|
282
414
|
* @param {string} to - address
|
|
283
415
|
* @returns {string} encode data
|
|
284
416
|
*/
|
|
285
|
-
export declare function encodeDVMBuyShares(to: string):
|
|
417
|
+
export declare function encodeDVMBuyShares(to: string): any;
|
|
286
418
|
/**
|
|
287
419
|
* encode flashLoan
|
|
288
420
|
* @param {string | number} baseAmount - uint256
|
|
@@ -291,7 +423,7 @@ export declare function encodeDVMBuyShares(to: string): string;
|
|
|
291
423
|
* @param {string} data - bytes
|
|
292
424
|
* @returns {string} encode data
|
|
293
425
|
*/
|
|
294
|
-
export declare function encodeDVMFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string):
|
|
426
|
+
export declare function encodeDVMFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string): any;
|
|
295
427
|
/**
|
|
296
428
|
* encode init
|
|
297
429
|
* @param {string} maintainer - address
|
|
@@ -304,7 +436,7 @@ export declare function encodeDVMFlashLoan(baseAmount: string | number, quoteAmo
|
|
|
304
436
|
* @param {boolean} isOpenTWAP - bool
|
|
305
437
|
* @returns {string} encode data
|
|
306
438
|
*/
|
|
307
|
-
export declare function encodeDVMInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRateModel: string, i: string | number, k: string | number, isOpenTWAP: boolean):
|
|
439
|
+
export declare function encodeDVMInit(maintainer: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRateModel: string, i: string | number, k: string | number, isOpenTWAP: boolean): any;
|
|
308
440
|
/**
|
|
309
441
|
* encode permit
|
|
310
442
|
* @param {string} owner - address
|
|
@@ -316,19 +448,19 @@ export declare function encodeDVMInit(maintainer: string, baseTokenAddress: stri
|
|
|
316
448
|
* @param {string} s - bytes32
|
|
317
449
|
* @returns {string} encode data
|
|
318
450
|
*/
|
|
319
|
-
export declare function encodeDVMPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string):
|
|
451
|
+
export declare function encodeDVMPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string): any;
|
|
320
452
|
/**
|
|
321
453
|
* encode sellBase
|
|
322
454
|
* @param {string} to - address
|
|
323
455
|
* @returns {string} encode data
|
|
324
456
|
*/
|
|
325
|
-
export declare function encodeDVMSellBase(to: string):
|
|
457
|
+
export declare function encodeDVMSellBase(to: string): any;
|
|
326
458
|
/**
|
|
327
459
|
* encode sellQuote
|
|
328
460
|
* @param {string} to - address
|
|
329
461
|
* @returns {string} encode data
|
|
330
462
|
*/
|
|
331
|
-
export declare function encodeDVMSellQuote(to: string):
|
|
463
|
+
export declare function encodeDVMSellQuote(to: string): any;
|
|
332
464
|
/**
|
|
333
465
|
* encode sellShares
|
|
334
466
|
* @param {string | number} shareAmount - uint256
|
|
@@ -339,20 +471,20 @@ export declare function encodeDVMSellQuote(to: string): string;
|
|
|
339
471
|
* @param {string | number} deadline - uint256
|
|
340
472
|
* @returns {string} encode data
|
|
341
473
|
*/
|
|
342
|
-
export declare function encodeDVMSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number):
|
|
474
|
+
export declare function encodeDVMSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number): any;
|
|
343
475
|
/**
|
|
344
476
|
* encode sync
|
|
345
477
|
|
|
346
478
|
* @returns {string} encode data
|
|
347
479
|
*/
|
|
348
|
-
export declare function encodeDVMSync():
|
|
480
|
+
export declare function encodeDVMSync(): any;
|
|
349
481
|
/**
|
|
350
482
|
* encode transfer
|
|
351
483
|
* @param {string} to - address
|
|
352
484
|
* @param {string | number} amount - uint256
|
|
353
485
|
* @returns {string} encode data
|
|
354
486
|
*/
|
|
355
|
-
export declare function encodeDVMTransfer(to: string, amount: string | number):
|
|
487
|
+
export declare function encodeDVMTransfer(to: string, amount: string | number): any;
|
|
356
488
|
/**
|
|
357
489
|
* encode transferFrom
|
|
358
490
|
* @param {string} from - address
|
|
@@ -360,4 +492,4 @@ export declare function encodeDVMTransfer(to: string, amount: string | number):
|
|
|
360
492
|
* @param {string | number} amount - uint256
|
|
361
493
|
* @returns {string} encode data
|
|
362
494
|
*/
|
|
363
|
-
export declare function encodeDVMTransferFrom(from: string, to: string, amount: string | number):
|
|
495
|
+
export declare function encodeDVMTransferFrom(from: string, to: string, amount: string | number): any;
|