@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
|
@@ -15,6 +15,16 @@ export function fetchDPPAdvanced_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __
|
|
|
15
15
|
const __data = hexlify(concat(['0xfe24cb7f', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
17
17
|
}
|
|
18
|
+
export function getFetchDPPAdvanced_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
19
|
+
return {
|
|
20
|
+
queryKey: ['contract-request', chainId, __to],
|
|
21
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
22
|
+
queryFn: () => {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
return fetchDPPAdvanced_BASE_PRICE_CUMULATIVE_LAST_(chainId, __to);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* fetch _BASE_RESERVE_
|
|
@@ -27,6 +37,16 @@ export function fetchDPPAdvanced_BASE_RESERVE_(chainId: number, __to: string) {
|
|
|
27
37
|
const __data = hexlify(concat(['0x7d721504', __encodeData]));
|
|
28
38
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
29
39
|
}
|
|
40
|
+
export function getFetchDPPAdvanced_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
41
|
+
return {
|
|
42
|
+
queryKey: ['contract-request', chainId, __to],
|
|
43
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
44
|
+
queryFn: () => {
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
return fetchDPPAdvanced_BASE_RESERVE_(chainId, __to);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
52
|
* fetch _BASE_TARGET_
|
|
@@ -39,6 +59,16 @@ export function fetchDPPAdvanced_BASE_TARGET_(chainId: number, __to: string) {
|
|
|
39
59
|
const __data = hexlify(concat(['0xe539ef49', __encodeData]));
|
|
40
60
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
41
61
|
}
|
|
62
|
+
export function getFetchDPPAdvanced_BASE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
63
|
+
return {
|
|
64
|
+
queryKey: ['contract-request', chainId, __to],
|
|
65
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
66
|
+
queryFn: () => {
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
return fetchDPPAdvanced_BASE_TARGET_(chainId, __to);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
42
72
|
|
|
43
73
|
/**
|
|
44
74
|
* fetch _BASE_TOKEN_
|
|
@@ -51,6 +81,16 @@ export function fetchDPPAdvanced_BASE_TOKEN_(chainId: number, __to: string) {
|
|
|
51
81
|
const __data = hexlify(concat(['0x4a248d2a', __encodeData]));
|
|
52
82
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
53
83
|
}
|
|
84
|
+
export function getFetchDPPAdvanced_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
85
|
+
return {
|
|
86
|
+
queryKey: ['contract-request', chainId, __to],
|
|
87
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
88
|
+
queryFn: () => {
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
return fetchDPPAdvanced_BASE_TOKEN_(chainId, __to);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
54
94
|
|
|
55
95
|
/**
|
|
56
96
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
@@ -63,6 +103,16 @@ export function fetchDPPAdvanced_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: st
|
|
|
63
103
|
const __data = hexlify(concat(['0x880a4d87', __encodeData]));
|
|
64
104
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
65
105
|
}
|
|
106
|
+
export function getFetchDPPAdvanced_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
107
|
+
return {
|
|
108
|
+
queryKey: ['contract-request', chainId, __to],
|
|
109
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
110
|
+
queryFn: () => {
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
return fetchDPPAdvanced_BLOCK_TIMESTAMP_LAST_(chainId, __to);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
66
116
|
|
|
67
117
|
/**
|
|
68
118
|
* fetch _IS_OPEN_TWAP_
|
|
@@ -75,6 +125,16 @@ export function fetchDPPAdvanced_IS_OPEN_TWAP_(chainId: number, __to: string) {
|
|
|
75
125
|
const __data = hexlify(concat(['0x2df6cb48', __encodeData]));
|
|
76
126
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
77
127
|
}
|
|
128
|
+
export function getFetchDPPAdvanced_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
129
|
+
return {
|
|
130
|
+
queryKey: ['contract-request', chainId, __to],
|
|
131
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
132
|
+
queryFn: () => {
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
return fetchDPPAdvanced_IS_OPEN_TWAP_(chainId, __to);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
78
138
|
|
|
79
139
|
/**
|
|
80
140
|
* fetch _I_
|
|
@@ -87,6 +147,16 @@ export function fetchDPPAdvanced_I_(chainId: number, __to: string) {
|
|
|
87
147
|
const __data = hexlify(concat(['0xf811d692', __encodeData]));
|
|
88
148
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint128","name":"","type":"uint128"}])
|
|
89
149
|
}
|
|
150
|
+
export function getFetchDPPAdvanced_I_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
151
|
+
return {
|
|
152
|
+
queryKey: ['contract-request', chainId, __to],
|
|
153
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
154
|
+
queryFn: () => {
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
return fetchDPPAdvanced_I_(chainId, __to);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
90
160
|
|
|
91
161
|
/**
|
|
92
162
|
* fetch _K_
|
|
@@ -99,6 +169,16 @@ export function fetchDPPAdvanced_K_(chainId: number, __to: string) {
|
|
|
99
169
|
const __data = hexlify(concat(['0xec2fd46d', __encodeData]));
|
|
100
170
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint64","name":"","type":"uint64"}])
|
|
101
171
|
}
|
|
172
|
+
export function getFetchDPPAdvanced_K_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
173
|
+
return {
|
|
174
|
+
queryKey: ['contract-request', chainId, __to],
|
|
175
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
176
|
+
queryFn: () => {
|
|
177
|
+
// @ts-ignore
|
|
178
|
+
return fetchDPPAdvanced_K_(chainId, __to);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
102
182
|
|
|
103
183
|
/**
|
|
104
184
|
* fetch _LP_FEE_RATE_
|
|
@@ -111,6 +191,16 @@ export function fetchDPPAdvanced_LP_FEE_RATE_(chainId: number, __to: string) {
|
|
|
111
191
|
const __data = hexlify(concat(['0xab44a7a3', __encodeData]));
|
|
112
192
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint64","name":"","type":"uint64"}])
|
|
113
193
|
}
|
|
194
|
+
export function getFetchDPPAdvanced_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
195
|
+
return {
|
|
196
|
+
queryKey: ['contract-request', chainId, __to],
|
|
197
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
198
|
+
queryFn: () => {
|
|
199
|
+
// @ts-ignore
|
|
200
|
+
return fetchDPPAdvanced_LP_FEE_RATE_(chainId, __to);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
114
204
|
|
|
115
205
|
/**
|
|
116
206
|
* fetch _MAINTAINER_
|
|
@@ -123,6 +213,16 @@ export function fetchDPPAdvanced_MAINTAINER_(chainId: number, __to: string) {
|
|
|
123
213
|
const __data = hexlify(concat(['0x4322ec83', __encodeData]));
|
|
124
214
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
125
215
|
}
|
|
216
|
+
export function getFetchDPPAdvanced_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
217
|
+
return {
|
|
218
|
+
queryKey: ['contract-request', chainId, __to],
|
|
219
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
220
|
+
queryFn: () => {
|
|
221
|
+
// @ts-ignore
|
|
222
|
+
return fetchDPPAdvanced_MAINTAINER_(chainId, __to);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
126
226
|
|
|
127
227
|
/**
|
|
128
228
|
* fetch _MT_FEE_RATE_MODEL_
|
|
@@ -135,6 +235,16 @@ export function fetchDPPAdvanced_MT_FEE_RATE_MODEL_(chainId: number, __to: strin
|
|
|
135
235
|
const __data = hexlify(concat(['0xf6b06e70', __encodeData]));
|
|
136
236
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IFeeRateModel","name":"","type":"address"}])
|
|
137
237
|
}
|
|
238
|
+
export function getFetchDPPAdvanced_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
239
|
+
return {
|
|
240
|
+
queryKey: ['contract-request', chainId, __to],
|
|
241
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
242
|
+
queryFn: () => {
|
|
243
|
+
// @ts-ignore
|
|
244
|
+
return fetchDPPAdvanced_MT_FEE_RATE_MODEL_(chainId, __to);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
138
248
|
|
|
139
249
|
/**
|
|
140
250
|
* fetch _NEW_OWNER_
|
|
@@ -147,6 +257,16 @@ export function fetchDPPAdvanced_NEW_OWNER_(chainId: number, __to: string) {
|
|
|
147
257
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
148
258
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
149
259
|
}
|
|
260
|
+
export function getFetchDPPAdvanced_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
261
|
+
return {
|
|
262
|
+
queryKey: ['contract-request', chainId, __to],
|
|
263
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
264
|
+
queryFn: () => {
|
|
265
|
+
// @ts-ignore
|
|
266
|
+
return fetchDPPAdvanced_NEW_OWNER_(chainId, __to);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
150
270
|
|
|
151
271
|
/**
|
|
152
272
|
* fetch _OWNER_
|
|
@@ -159,6 +279,16 @@ export function fetchDPPAdvanced_OWNER_(chainId: number, __to: string) {
|
|
|
159
279
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
160
280
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
161
281
|
}
|
|
282
|
+
export function getFetchDPPAdvanced_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
283
|
+
return {
|
|
284
|
+
queryKey: ['contract-request', chainId, __to],
|
|
285
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
286
|
+
queryFn: () => {
|
|
287
|
+
// @ts-ignore
|
|
288
|
+
return fetchDPPAdvanced_OWNER_(chainId, __to);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
162
292
|
|
|
163
293
|
/**
|
|
164
294
|
* fetch _QUOTE_RESERVE_
|
|
@@ -171,6 +301,16 @@ export function fetchDPPAdvanced_QUOTE_RESERVE_(chainId: number, __to: string) {
|
|
|
171
301
|
const __data = hexlify(concat(['0xbbf5ce78', __encodeData]));
|
|
172
302
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
173
303
|
}
|
|
304
|
+
export function getFetchDPPAdvanced_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
305
|
+
return {
|
|
306
|
+
queryKey: ['contract-request', chainId, __to],
|
|
307
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
308
|
+
queryFn: () => {
|
|
309
|
+
// @ts-ignore
|
|
310
|
+
return fetchDPPAdvanced_QUOTE_RESERVE_(chainId, __to);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
174
314
|
|
|
175
315
|
/**
|
|
176
316
|
* fetch _QUOTE_TARGET_
|
|
@@ -183,6 +323,16 @@ export function fetchDPPAdvanced_QUOTE_TARGET_(chainId: number, __to: string) {
|
|
|
183
323
|
const __data = hexlify(concat(['0x77f58657', __encodeData]));
|
|
184
324
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
185
325
|
}
|
|
326
|
+
export function getFetchDPPAdvanced_QUOTE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
327
|
+
return {
|
|
328
|
+
queryKey: ['contract-request', chainId, __to],
|
|
329
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
330
|
+
queryFn: () => {
|
|
331
|
+
// @ts-ignore
|
|
332
|
+
return fetchDPPAdvanced_QUOTE_TARGET_(chainId, __to);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
186
336
|
|
|
187
337
|
/**
|
|
188
338
|
* fetch _QUOTE_TOKEN_
|
|
@@ -195,6 +345,16 @@ export function fetchDPPAdvanced_QUOTE_TOKEN_(chainId: number, __to: string) {
|
|
|
195
345
|
const __data = hexlify(concat(['0xd4b97046', __encodeData]));
|
|
196
346
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"contract IERC20","name":"","type":"address"}])
|
|
197
347
|
}
|
|
348
|
+
export function getFetchDPPAdvanced_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
349
|
+
return {
|
|
350
|
+
queryKey: ['contract-request', chainId, __to],
|
|
351
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
352
|
+
queryFn: () => {
|
|
353
|
+
// @ts-ignore
|
|
354
|
+
return fetchDPPAdvanced_QUOTE_TOKEN_(chainId, __to);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
198
358
|
|
|
199
359
|
/**
|
|
200
360
|
* fetch _RState_
|
|
@@ -207,6 +367,16 @@ export function fetchDPPAdvanced_RState_(chainId: number, __to: string) {
|
|
|
207
367
|
const __data = hexlify(concat(['0xbf357dae', __encodeData]));
|
|
208
368
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
209
369
|
}
|
|
370
|
+
export function getFetchDPPAdvanced_RState_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
371
|
+
return {
|
|
372
|
+
queryKey: ['contract-request', chainId, __to],
|
|
373
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
374
|
+
queryFn: () => {
|
|
375
|
+
// @ts-ignore
|
|
376
|
+
return fetchDPPAdvanced_RState_(chainId, __to);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
210
380
|
|
|
211
381
|
/**
|
|
212
382
|
* fetch getBaseInput
|
|
@@ -219,6 +389,16 @@ export function fetchDPPAdvancedGetBaseInput(chainId: number, __to: string) {
|
|
|
219
389
|
const __data = hexlify(concat(['0x65f6fcbb', __encodeData]));
|
|
220
390
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
|
|
221
391
|
}
|
|
392
|
+
export function getFetchDPPAdvancedGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
393
|
+
return {
|
|
394
|
+
queryKey: ['contract-request', chainId, __to],
|
|
395
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
396
|
+
queryFn: () => {
|
|
397
|
+
// @ts-ignore
|
|
398
|
+
return fetchDPPAdvancedGetBaseInput(chainId, __to);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
222
402
|
|
|
223
403
|
/**
|
|
224
404
|
* fetch getMidPrice
|
|
@@ -231,6 +411,16 @@ export function fetchDPPAdvancedGetMidPrice(chainId: number, __to: string) {
|
|
|
231
411
|
const __data = hexlify(concat(['0xee27c689', __encodeData]));
|
|
232
412
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"midPrice","type":"uint256"}])
|
|
233
413
|
}
|
|
414
|
+
export function getFetchDPPAdvancedGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
415
|
+
return {
|
|
416
|
+
queryKey: ['contract-request', chainId, __to],
|
|
417
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
418
|
+
queryFn: () => {
|
|
419
|
+
// @ts-ignore
|
|
420
|
+
return fetchDPPAdvancedGetMidPrice(chainId, __to);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
234
424
|
|
|
235
425
|
/**
|
|
236
426
|
* fetch getPMMState
|
|
@@ -243,6 +433,16 @@ export function fetchDPPAdvancedGetPMMState(chainId: number, __to: string) {
|
|
|
243
433
|
const __data = hexlify(concat(['0xa382d1b9', __encodeData]));
|
|
244
434
|
return contractRequests.batchCall<{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}>(chainId, __to, __data, [{"components":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"K","type":"uint256"},{"internalType":"uint256","name":"B","type":"uint256"},{"internalType":"uint256","name":"Q","type":"uint256"},{"internalType":"uint256","name":"B0","type":"uint256"},{"internalType":"uint256","name":"Q0","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"R","type":"uint8"}],"internalType":"struct PMMPricing.PMMState","name":"state","type":"tuple"}])
|
|
245
435
|
}
|
|
436
|
+
export function getFetchDPPAdvancedGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
437
|
+
return {
|
|
438
|
+
queryKey: ['contract-request', chainId, __to],
|
|
439
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
440
|
+
queryFn: () => {
|
|
441
|
+
// @ts-ignore
|
|
442
|
+
return fetchDPPAdvancedGetPMMState(chainId, __to);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
246
446
|
|
|
247
447
|
/**
|
|
248
448
|
* fetch getPMMStateForCall
|
|
@@ -269,6 +469,16 @@ export function fetchDPPAdvancedGetPMMStateForCall(chainId: number, __to: string
|
|
|
269
469
|
R: bigint;
|
|
270
470
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"K","type":"uint256"},{"internalType":"uint256","name":"B","type":"uint256"},{"internalType":"uint256","name":"Q","type":"uint256"},{"internalType":"uint256","name":"B0","type":"uint256"},{"internalType":"uint256","name":"Q0","type":"uint256"},{"internalType":"uint256","name":"R","type":"uint256"}])
|
|
271
471
|
}
|
|
472
|
+
export function getFetchDPPAdvancedGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
473
|
+
return {
|
|
474
|
+
queryKey: ['contract-request', chainId, __to],
|
|
475
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
476
|
+
queryFn: () => {
|
|
477
|
+
// @ts-ignore
|
|
478
|
+
return fetchDPPAdvancedGetPMMStateForCall(chainId, __to);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
272
482
|
|
|
273
483
|
/**
|
|
274
484
|
* fetch getQuoteInput
|
|
@@ -281,6 +491,16 @@ export function fetchDPPAdvancedGetQuoteInput(chainId: number, __to: string) {
|
|
|
281
491
|
const __data = hexlify(concat(['0x71f9100c', __encodeData]));
|
|
282
492
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"input","type":"uint256"}])
|
|
283
493
|
}
|
|
494
|
+
export function getFetchDPPAdvancedGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
495
|
+
return {
|
|
496
|
+
queryKey: ['contract-request', chainId, __to],
|
|
497
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
498
|
+
queryFn: () => {
|
|
499
|
+
// @ts-ignore
|
|
500
|
+
return fetchDPPAdvancedGetQuoteInput(chainId, __to);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
284
504
|
|
|
285
505
|
/**
|
|
286
506
|
* fetch getUserFeeRate
|
|
@@ -298,6 +518,16 @@ export function fetchDPPAdvancedGetUserFeeRate(chainId: number, __to: string, us
|
|
|
298
518
|
mtFeeRate: bigint;
|
|
299
519
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"lpFeeRate","type":"uint256"},{"internalType":"uint256","name":"mtFeeRate","type":"uint256"}])
|
|
300
520
|
}
|
|
521
|
+
export function getFetchDPPAdvancedGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined) {
|
|
522
|
+
return {
|
|
523
|
+
queryKey: ['contract-request', chainId, __to, user],
|
|
524
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, user !== undefined && user !== null],
|
|
525
|
+
queryFn: () => {
|
|
526
|
+
// @ts-ignore
|
|
527
|
+
return fetchDPPAdvancedGetUserFeeRate(chainId, __to, user);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
301
531
|
|
|
302
532
|
/**
|
|
303
533
|
* fetch getVaultReserve
|
|
@@ -314,6 +544,16 @@ export function fetchDPPAdvancedGetVaultReserve(chainId: number, __to: string) {
|
|
|
314
544
|
quoteReserve: bigint;
|
|
315
545
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"baseReserve","type":"uint256"},{"internalType":"uint256","name":"quoteReserve","type":"uint256"}])
|
|
316
546
|
}
|
|
547
|
+
export function getFetchDPPAdvancedGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
548
|
+
return {
|
|
549
|
+
queryKey: ['contract-request', chainId, __to],
|
|
550
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
551
|
+
queryFn: () => {
|
|
552
|
+
// @ts-ignore
|
|
553
|
+
return fetchDPPAdvancedGetVaultReserve(chainId, __to);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
317
557
|
|
|
318
558
|
/**
|
|
319
559
|
* fetch querySellBase
|
|
@@ -336,6 +576,16 @@ export function fetchDPPAdvancedQuerySellBase(chainId: number, __to: string, tra
|
|
|
336
576
|
newBaseTarget: bigint;
|
|
337
577
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"receiveQuoteAmount","type":"uint256"},{"internalType":"uint256","name":"mtFee","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"newRState","type":"uint8"},{"internalType":"uint256","name":"newBaseTarget","type":"uint256"}])
|
|
338
578
|
}
|
|
579
|
+
export function getFetchDPPAdvancedQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined) {
|
|
580
|
+
return {
|
|
581
|
+
queryKey: ['contract-request', chainId, __to, trader, payBaseAmount],
|
|
582
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payBaseAmount !== undefined && payBaseAmount !== null],
|
|
583
|
+
queryFn: () => {
|
|
584
|
+
// @ts-ignore
|
|
585
|
+
return fetchDPPAdvancedQuerySellBase(chainId, __to, trader, payBaseAmount);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
339
589
|
|
|
340
590
|
/**
|
|
341
591
|
* fetch querySellQuote
|
|
@@ -358,6 +608,16 @@ export function fetchDPPAdvancedQuerySellQuote(chainId: number, __to: string, tr
|
|
|
358
608
|
newQuoteTarget: bigint;
|
|
359
609
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"receiveBaseAmount","type":"uint256"},{"internalType":"uint256","name":"mtFee","type":"uint256"},{"internalType":"enum PMMPricing.RState","name":"newRState","type":"uint8"},{"internalType":"uint256","name":"newQuoteTarget","type":"uint256"}])
|
|
360
610
|
}
|
|
611
|
+
export function getFetchDPPAdvancedQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined) {
|
|
612
|
+
return {
|
|
613
|
+
queryKey: ['contract-request', chainId, __to, trader, payQuoteAmount],
|
|
614
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null, trader !== undefined && trader !== null, payQuoteAmount !== undefined && payQuoteAmount !== null],
|
|
615
|
+
queryFn: () => {
|
|
616
|
+
// @ts-ignore
|
|
617
|
+
return fetchDPPAdvancedQuerySellQuote(chainId, __to, trader, payQuoteAmount);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
361
621
|
|
|
362
622
|
/**
|
|
363
623
|
* fetch version
|
|
@@ -370,6 +630,16 @@ export function fetchDPPAdvancedVersion(chainId: number, __to: string) {
|
|
|
370
630
|
const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
|
|
371
631
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
372
632
|
}
|
|
633
|
+
export function getFetchDPPAdvancedVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
634
|
+
return {
|
|
635
|
+
queryKey: ['contract-request', chainId, __to],
|
|
636
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
637
|
+
queryFn: () => {
|
|
638
|
+
// @ts-ignore
|
|
639
|
+
return fetchDPPAdvancedVersion(chainId, __to);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
373
643
|
|
|
374
644
|
/**
|
|
375
645
|
* encode claimOwnership
|
|
@@ -15,6 +15,16 @@ export function fetchDPPAdvancedAdmin_DODO_APPROVE_PROXY_(chainId: number, __to:
|
|
|
15
15
|
const __data = hexlify(concat(['0xeb99be12', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
17
17
|
}
|
|
18
|
+
export function getFetchDPPAdvancedAdmin_DODO_APPROVE_PROXY_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
19
|
+
return {
|
|
20
|
+
queryKey: ['contract-request', chainId, __to],
|
|
21
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
22
|
+
queryFn: () => {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
return fetchDPPAdvancedAdmin_DODO_APPROVE_PROXY_(chainId, __to);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* fetch _DPP_
|
|
@@ -27,6 +37,16 @@ export function fetchDPPAdvancedAdmin_DPP_(chainId: number, __to: string) {
|
|
|
27
37
|
const __data = hexlify(concat(['0xcaef11ad', __encodeData]));
|
|
28
38
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
29
39
|
}
|
|
40
|
+
export function getFetchDPPAdvancedAdmin_DPP_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
41
|
+
return {
|
|
42
|
+
queryKey: ['contract-request', chainId, __to],
|
|
43
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
44
|
+
queryFn: () => {
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
return fetchDPPAdvancedAdmin_DPP_(chainId, __to);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
52
|
* fetch _FREEZE_TIMESTAMP_
|
|
@@ -39,6 +59,16 @@ export function fetchDPPAdvancedAdmin_FREEZE_TIMESTAMP_(chainId: number, __to: s
|
|
|
39
59
|
const __data = hexlify(concat(['0x201f5084', __encodeData]));
|
|
40
60
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
41
61
|
}
|
|
62
|
+
export function getFetchDPPAdvancedAdmin_FREEZE_TIMESTAMP_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
63
|
+
return {
|
|
64
|
+
queryKey: ['contract-request', chainId, __to],
|
|
65
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
66
|
+
queryFn: () => {
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
return fetchDPPAdvancedAdmin_FREEZE_TIMESTAMP_(chainId, __to);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
42
72
|
|
|
43
73
|
/**
|
|
44
74
|
* fetch _NEW_OWNER_
|
|
@@ -51,6 +81,16 @@ export function fetchDPPAdvancedAdmin_NEW_OWNER_(chainId: number, __to: string)
|
|
|
51
81
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
52
82
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
53
83
|
}
|
|
84
|
+
export function getFetchDPPAdvancedAdmin_NEW_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
85
|
+
return {
|
|
86
|
+
queryKey: ['contract-request', chainId, __to],
|
|
87
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
88
|
+
queryFn: () => {
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
return fetchDPPAdvancedAdmin_NEW_OWNER_(chainId, __to);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
54
94
|
|
|
55
95
|
/**
|
|
56
96
|
* fetch _OPERATOR_
|
|
@@ -63,6 +103,16 @@ export function fetchDPPAdvancedAdmin_OPERATOR_(chainId: number, __to: string) {
|
|
|
63
103
|
const __data = hexlify(concat(['0xf54c7a6c', __encodeData]));
|
|
64
104
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
65
105
|
}
|
|
106
|
+
export function getFetchDPPAdvancedAdmin_OPERATOR_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
107
|
+
return {
|
|
108
|
+
queryKey: ['contract-request', chainId, __to],
|
|
109
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
110
|
+
queryFn: () => {
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
return fetchDPPAdvancedAdmin_OPERATOR_(chainId, __to);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
66
116
|
|
|
67
117
|
/**
|
|
68
118
|
* fetch _OWNER_
|
|
@@ -75,6 +125,16 @@ export function fetchDPPAdvancedAdmin_OWNER_(chainId: number, __to: string) {
|
|
|
75
125
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
76
126
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
77
127
|
}
|
|
128
|
+
export function getFetchDPPAdvancedAdmin_OWNER_QueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
129
|
+
return {
|
|
130
|
+
queryKey: ['contract-request', chainId, __to],
|
|
131
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
132
|
+
queryFn: () => {
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
return fetchDPPAdvancedAdmin_OWNER_(chainId, __to);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
78
138
|
|
|
79
139
|
/**
|
|
80
140
|
* fetch version
|
|
@@ -87,6 +147,16 @@ export function fetchDPPAdvancedAdminVersion(chainId: number, __to: string) {
|
|
|
87
147
|
const __data = hexlify(concat(['0x54fd4d50', __encodeData]));
|
|
88
148
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
89
149
|
}
|
|
150
|
+
export function getFetchDPPAdvancedAdminVersionQueryOptions(chainId: number | undefined, __to: string | undefined) {
|
|
151
|
+
return {
|
|
152
|
+
queryKey: ['contract-request', chainId, __to],
|
|
153
|
+
enabled: [chainId !== undefined && chainId !== null, __to !== undefined && __to !== null],
|
|
154
|
+
queryFn: () => {
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
return fetchDPPAdvancedAdminVersion(chainId, __to);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
90
160
|
|
|
91
161
|
/**
|
|
92
162
|
* encode claimOwnership
|