@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
|
@@ -21,6 +21,16 @@ export function fetchVDODOToken_CAN_TRANSFER_(chainId: number) {
|
|
|
21
21
|
const __data = hexlify(concat(['0xc39eabf5', __encodeData]));
|
|
22
22
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
23
23
|
}
|
|
24
|
+
export function getFetchVDODOToken_CAN_TRANSFER_QueryOptions(chainId: number | undefined) {
|
|
25
|
+
return {
|
|
26
|
+
queryKey: ['contract-request', chainId],
|
|
27
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
28
|
+
queryFn: () => {
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
return fetchVDODOToken_CAN_TRANSFER_(chainId);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
|
|
25
35
|
/**
|
|
26
36
|
* fetch _DODO_APPROVE_PROXY_
|
|
@@ -34,6 +44,16 @@ export function fetchVDODOToken_DODO_APPROVE_PROXY_(chainId: number) {
|
|
|
34
44
|
const __data = hexlify(concat(['0xeb99be12', __encodeData]));
|
|
35
45
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
36
46
|
}
|
|
47
|
+
export function getFetchVDODOToken_DODO_APPROVE_PROXY_QueryOptions(chainId: number | undefined) {
|
|
48
|
+
return {
|
|
49
|
+
queryKey: ['contract-request', chainId],
|
|
50
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
51
|
+
queryFn: () => {
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
return fetchVDODOToken_DODO_APPROVE_PROXY_(chainId);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
37
57
|
|
|
38
58
|
/**
|
|
39
59
|
* fetch _DODO_CIRCULATION_HELPER_
|
|
@@ -47,6 +67,16 @@ export function fetchVDODOToken_DODO_CIRCULATION_HELPER_(chainId: number) {
|
|
|
47
67
|
const __data = hexlify(concat(['0xeec2cc50', __encodeData]));
|
|
48
68
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
49
69
|
}
|
|
70
|
+
export function getFetchVDODOToken_DODO_CIRCULATION_HELPER_QueryOptions(chainId: number | undefined) {
|
|
71
|
+
return {
|
|
72
|
+
queryKey: ['contract-request', chainId],
|
|
73
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
74
|
+
queryFn: () => {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
return fetchVDODOToken_DODO_CIRCULATION_HELPER_(chainId);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
50
80
|
|
|
51
81
|
/**
|
|
52
82
|
* fetch _DODO_FEE_BURN_RATIO_
|
|
@@ -60,6 +90,16 @@ export function fetchVDODOToken_DODO_FEE_BURN_RATIO_(chainId: number) {
|
|
|
60
90
|
const __data = hexlify(concat(['0xce71b65c', __encodeData]));
|
|
61
91
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
62
92
|
}
|
|
93
|
+
export function getFetchVDODOToken_DODO_FEE_BURN_RATIO_QueryOptions(chainId: number | undefined) {
|
|
94
|
+
return {
|
|
95
|
+
queryKey: ['contract-request', chainId],
|
|
96
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
97
|
+
queryFn: () => {
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
return fetchVDODOToken_DODO_FEE_BURN_RATIO_(chainId);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
63
103
|
|
|
64
104
|
/**
|
|
65
105
|
* fetch _DODO_PER_BLOCK_
|
|
@@ -73,6 +113,16 @@ export function fetchVDODOToken_DODO_PER_BLOCK_(chainId: number) {
|
|
|
73
113
|
const __data = hexlify(concat(['0x74083bbf', __encodeData]));
|
|
74
114
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
75
115
|
}
|
|
116
|
+
export function getFetchVDODOToken_DODO_PER_BLOCK_QueryOptions(chainId: number | undefined) {
|
|
117
|
+
return {
|
|
118
|
+
queryKey: ['contract-request', chainId],
|
|
119
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
120
|
+
queryFn: () => {
|
|
121
|
+
// @ts-ignore
|
|
122
|
+
return fetchVDODOToken_DODO_PER_BLOCK_(chainId);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
76
126
|
|
|
77
127
|
/**
|
|
78
128
|
* fetch _DODO_RATIO_
|
|
@@ -86,6 +136,16 @@ export function fetchVDODOToken_DODO_RATIO_(chainId: number) {
|
|
|
86
136
|
const __data = hexlify(concat(['0xb6617a1a', __encodeData]));
|
|
87
137
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
88
138
|
}
|
|
139
|
+
export function getFetchVDODOToken_DODO_RATIO_QueryOptions(chainId: number | undefined) {
|
|
140
|
+
return {
|
|
141
|
+
queryKey: ['contract-request', chainId],
|
|
142
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
143
|
+
queryFn: () => {
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
return fetchVDODOToken_DODO_RATIO_(chainId);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
89
149
|
|
|
90
150
|
/**
|
|
91
151
|
* fetch _DODO_TEAM_
|
|
@@ -99,6 +159,16 @@ export function fetchVDODOToken_DODO_TEAM_(chainId: number) {
|
|
|
99
159
|
const __data = hexlify(concat(['0xb88c4f33', __encodeData]));
|
|
100
160
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
101
161
|
}
|
|
162
|
+
export function getFetchVDODOToken_DODO_TEAM_QueryOptions(chainId: number | undefined) {
|
|
163
|
+
return {
|
|
164
|
+
queryKey: ['contract-request', chainId],
|
|
165
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
166
|
+
queryFn: () => {
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
return fetchVDODOToken_DODO_TEAM_(chainId);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
102
172
|
|
|
103
173
|
/**
|
|
104
174
|
* fetch _DODO_TOKEN_
|
|
@@ -112,6 +182,16 @@ export function fetchVDODOToken_DODO_TOKEN_(chainId: number) {
|
|
|
112
182
|
const __data = hexlify(concat(['0x34cf1332', __encodeData]));
|
|
113
183
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
114
184
|
}
|
|
185
|
+
export function getFetchVDODOToken_DODO_TOKEN_QueryOptions(chainId: number | undefined) {
|
|
186
|
+
return {
|
|
187
|
+
queryKey: ['contract-request', chainId],
|
|
188
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
189
|
+
queryFn: () => {
|
|
190
|
+
// @ts-ignore
|
|
191
|
+
return fetchVDODOToken_DODO_TOKEN_(chainId);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
115
195
|
|
|
116
196
|
/**
|
|
117
197
|
* fetch _DOOD_GOV_
|
|
@@ -125,6 +205,16 @@ export function fetchVDODOToken_DOOD_GOV_(chainId: number) {
|
|
|
125
205
|
const __data = hexlify(concat(['0x5de65173', __encodeData]));
|
|
126
206
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
127
207
|
}
|
|
208
|
+
export function getFetchVDODOToken_DOOD_GOV_QueryOptions(chainId: number | undefined) {
|
|
209
|
+
return {
|
|
210
|
+
queryKey: ['contract-request', chainId],
|
|
211
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
212
|
+
queryFn: () => {
|
|
213
|
+
// @ts-ignore
|
|
214
|
+
return fetchVDODOToken_DOOD_GOV_(chainId);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
128
218
|
|
|
129
219
|
/**
|
|
130
220
|
* fetch _LAST_REWARD_BLOCK_
|
|
@@ -138,6 +228,16 @@ export function fetchVDODOToken_LAST_REWARD_BLOCK_(chainId: number) {
|
|
|
138
228
|
const __data = hexlify(concat(['0x7cf834e1', __encodeData]));
|
|
139
229
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint32","name":"","type":"uint32"}])
|
|
140
230
|
}
|
|
231
|
+
export function getFetchVDODOToken_LAST_REWARD_BLOCK_QueryOptions(chainId: number | undefined) {
|
|
232
|
+
return {
|
|
233
|
+
queryKey: ['contract-request', chainId],
|
|
234
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
235
|
+
queryFn: () => {
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
return fetchVDODOToken_LAST_REWARD_BLOCK_(chainId);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
141
241
|
|
|
142
242
|
/**
|
|
143
243
|
* fetch _NEW_OWNER_
|
|
@@ -151,6 +251,16 @@ export function fetchVDODOToken_NEW_OWNER_(chainId: number) {
|
|
|
151
251
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
152
252
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
153
253
|
}
|
|
254
|
+
export function getFetchVDODOToken_NEW_OWNER_QueryOptions(chainId: number | undefined) {
|
|
255
|
+
return {
|
|
256
|
+
queryKey: ['contract-request', chainId],
|
|
257
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
258
|
+
queryFn: () => {
|
|
259
|
+
// @ts-ignore
|
|
260
|
+
return fetchVDODOToken_NEW_OWNER_(chainId);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
154
264
|
|
|
155
265
|
/**
|
|
156
266
|
* fetch _OWNER_
|
|
@@ -164,6 +274,16 @@ export function fetchVDODOToken_OWNER_(chainId: number) {
|
|
|
164
274
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
165
275
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
166
276
|
}
|
|
277
|
+
export function getFetchVDODOToken_OWNER_QueryOptions(chainId: number | undefined) {
|
|
278
|
+
return {
|
|
279
|
+
queryKey: ['contract-request', chainId],
|
|
280
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
281
|
+
queryFn: () => {
|
|
282
|
+
// @ts-ignore
|
|
283
|
+
return fetchVDODOToken_OWNER_(chainId);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
167
287
|
|
|
168
288
|
/**
|
|
169
289
|
* fetch _SUPERIOR_RATIO_
|
|
@@ -177,6 +297,16 @@ export function fetchVDODOToken_SUPERIOR_RATIO_(chainId: number) {
|
|
|
177
297
|
const __data = hexlify(concat(['0xd2b5c5dd', __encodeData]));
|
|
178
298
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
179
299
|
}
|
|
300
|
+
export function getFetchVDODOToken_SUPERIOR_RATIO_QueryOptions(chainId: number | undefined) {
|
|
301
|
+
return {
|
|
302
|
+
queryKey: ['contract-request', chainId],
|
|
303
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
304
|
+
queryFn: () => {
|
|
305
|
+
// @ts-ignore
|
|
306
|
+
return fetchVDODOToken_SUPERIOR_RATIO_(chainId);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
180
310
|
|
|
181
311
|
/**
|
|
182
312
|
* fetch _TOTAL_BLOCK_DISTRIBUTION_
|
|
@@ -190,6 +320,16 @@ export function fetchVDODOToken_TOTAL_BLOCK_DISTRIBUTION_(chainId: number) {
|
|
|
190
320
|
const __data = hexlify(concat(['0x54087b21', __encodeData]));
|
|
191
321
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
192
322
|
}
|
|
323
|
+
export function getFetchVDODOToken_TOTAL_BLOCK_DISTRIBUTION_QueryOptions(chainId: number | undefined) {
|
|
324
|
+
return {
|
|
325
|
+
queryKey: ['contract-request', chainId],
|
|
326
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
327
|
+
queryFn: () => {
|
|
328
|
+
// @ts-ignore
|
|
329
|
+
return fetchVDODOToken_TOTAL_BLOCK_DISTRIBUTION_(chainId);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
193
333
|
|
|
194
334
|
/**
|
|
195
335
|
* fetch _TOTAL_BLOCK_REWARD_
|
|
@@ -203,6 +343,16 @@ export function fetchVDODOToken_TOTAL_BLOCK_REWARD_(chainId: number) {
|
|
|
203
343
|
const __data = hexlify(concat(['0x54015ea8', __encodeData]));
|
|
204
344
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
205
345
|
}
|
|
346
|
+
export function getFetchVDODOToken_TOTAL_BLOCK_REWARD_QueryOptions(chainId: number | undefined) {
|
|
347
|
+
return {
|
|
348
|
+
queryKey: ['contract-request', chainId],
|
|
349
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
350
|
+
queryFn: () => {
|
|
351
|
+
// @ts-ignore
|
|
352
|
+
return fetchVDODOToken_TOTAL_BLOCK_REWARD_(chainId);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
206
356
|
|
|
207
357
|
/**
|
|
208
358
|
* fetch _TOTAL_STAKING_POWER_
|
|
@@ -216,6 +366,16 @@ export function fetchVDODOToken_TOTAL_STAKING_POWER_(chainId: number) {
|
|
|
216
366
|
const __data = hexlify(concat(['0x6d401f71', __encodeData]));
|
|
217
367
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
218
368
|
}
|
|
369
|
+
export function getFetchVDODOToken_TOTAL_STAKING_POWER_QueryOptions(chainId: number | undefined) {
|
|
370
|
+
return {
|
|
371
|
+
queryKey: ['contract-request', chainId],
|
|
372
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
373
|
+
queryFn: () => {
|
|
374
|
+
// @ts-ignore
|
|
375
|
+
return fetchVDODOToken_TOTAL_STAKING_POWER_(chainId);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
219
379
|
|
|
220
380
|
/**
|
|
221
381
|
* fetch allowance
|
|
@@ -231,6 +391,16 @@ export function fetchVDODOTokenAllowance(chainId: number, owner: string, spender
|
|
|
231
391
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
232
392
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
233
393
|
}
|
|
394
|
+
export function getFetchVDODOTokenAllowanceQueryOptions(chainId: number | undefined, owner: string | undefined, spender: string | undefined) {
|
|
395
|
+
return {
|
|
396
|
+
queryKey: ['contract-request', chainId, owner, spender],
|
|
397
|
+
enabled: [chainId !== undefined && chainId !== null, owner !== undefined && owner !== null, spender !== undefined && spender !== null],
|
|
398
|
+
queryFn: () => {
|
|
399
|
+
// @ts-ignore
|
|
400
|
+
return fetchVDODOTokenAllowance(chainId, owner, spender);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
234
404
|
|
|
235
405
|
/**
|
|
236
406
|
* fetch alpha
|
|
@@ -244,6 +414,16 @@ export function fetchVDODOTokenAlpha(chainId: number) {
|
|
|
244
414
|
const __data = hexlify(concat(['0xdb1d0fd5', __encodeData]));
|
|
245
415
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint112","name":"","type":"uint112"}])
|
|
246
416
|
}
|
|
417
|
+
export function getFetchVDODOTokenAlphaQueryOptions(chainId: number | undefined) {
|
|
418
|
+
return {
|
|
419
|
+
queryKey: ['contract-request', chainId],
|
|
420
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
421
|
+
queryFn: () => {
|
|
422
|
+
// @ts-ignore
|
|
423
|
+
return fetchVDODOTokenAlpha(chainId);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
247
427
|
|
|
248
428
|
/**
|
|
249
429
|
* fetch availableBalanceOf
|
|
@@ -258,6 +438,16 @@ export function fetchVDODOTokenAvailableBalanceOf(chainId: number, account: stri
|
|
|
258
438
|
const __data = hexlify(concat(['0x25d998bb', __encodeData]));
|
|
259
439
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOAmount","type":"uint256"}])
|
|
260
440
|
}
|
|
441
|
+
export function getFetchVDODOTokenAvailableBalanceOfQueryOptions(chainId: number | undefined, account: string | undefined) {
|
|
442
|
+
return {
|
|
443
|
+
queryKey: ['contract-request', chainId, account],
|
|
444
|
+
enabled: [chainId !== undefined && chainId !== null, account !== undefined && account !== null],
|
|
445
|
+
queryFn: () => {
|
|
446
|
+
// @ts-ignore
|
|
447
|
+
return fetchVDODOTokenAvailableBalanceOf(chainId, account);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
261
451
|
|
|
262
452
|
/**
|
|
263
453
|
* fetch balanceOf
|
|
@@ -272,6 +462,16 @@ export function fetchVDODOTokenBalanceOf(chainId: number, account: string) {
|
|
|
272
462
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
273
463
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOAmount","type":"uint256"}])
|
|
274
464
|
}
|
|
465
|
+
export function getFetchVDODOTokenBalanceOfQueryOptions(chainId: number | undefined, account: string | undefined) {
|
|
466
|
+
return {
|
|
467
|
+
queryKey: ['contract-request', chainId, account],
|
|
468
|
+
enabled: [chainId !== undefined && chainId !== null, account !== undefined && account !== null],
|
|
469
|
+
queryFn: () => {
|
|
470
|
+
// @ts-ignore
|
|
471
|
+
return fetchVDODOTokenBalanceOf(chainId, account);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
275
475
|
|
|
276
476
|
/**
|
|
277
477
|
* fetch decimals
|
|
@@ -285,6 +485,16 @@ export function fetchVDODOTokenDecimals(chainId: number) {
|
|
|
285
485
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
286
486
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
287
487
|
}
|
|
488
|
+
export function getFetchVDODOTokenDecimalsQueryOptions(chainId: number | undefined) {
|
|
489
|
+
return {
|
|
490
|
+
queryKey: ['contract-request', chainId],
|
|
491
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
492
|
+
queryFn: () => {
|
|
493
|
+
// @ts-ignore
|
|
494
|
+
return fetchVDODOTokenDecimals(chainId);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
288
498
|
|
|
289
499
|
/**
|
|
290
500
|
* fetch dodoBalanceOf
|
|
@@ -299,6 +509,16 @@ export function fetchVDODOTokenDodoBalanceOf(chainId: number, account: string) {
|
|
|
299
509
|
const __data = hexlify(concat(['0x96153967', __encodeData]));
|
|
300
510
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"dodoAmount","type":"uint256"}])
|
|
301
511
|
}
|
|
512
|
+
export function getFetchVDODOTokenDodoBalanceOfQueryOptions(chainId: number | undefined, account: string | undefined) {
|
|
513
|
+
return {
|
|
514
|
+
queryKey: ['contract-request', chainId, account],
|
|
515
|
+
enabled: [chainId !== undefined && chainId !== null, account !== undefined && account !== null],
|
|
516
|
+
queryFn: () => {
|
|
517
|
+
// @ts-ignore
|
|
518
|
+
return fetchVDODOTokenDodoBalanceOf(chainId, account);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
302
522
|
|
|
303
523
|
/**
|
|
304
524
|
* fetch getDODOWithdrawFeeRatio
|
|
@@ -312,6 +532,16 @@ export function fetchVDODOTokenGetDODOWithdrawFeeRatio(chainId: number) {
|
|
|
312
532
|
const __data = hexlify(concat(['0xdb90c318', __encodeData]));
|
|
313
533
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"feeRatio","type":"uint256"}])
|
|
314
534
|
}
|
|
535
|
+
export function getFetchVDODOTokenGetDODOWithdrawFeeRatioQueryOptions(chainId: number | undefined) {
|
|
536
|
+
return {
|
|
537
|
+
queryKey: ['contract-request', chainId],
|
|
538
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
539
|
+
queryFn: () => {
|
|
540
|
+
// @ts-ignore
|
|
541
|
+
return fetchVDODOTokenGetDODOWithdrawFeeRatio(chainId);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
315
545
|
|
|
316
546
|
/**
|
|
317
547
|
* fetch getLatestAlpha
|
|
@@ -329,6 +559,16 @@ export function fetchVDODOTokenGetLatestAlpha(chainId: number) {
|
|
|
329
559
|
curDistribution: bigint;
|
|
330
560
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"newAlpha","type":"uint256"},{"internalType":"uint256","name":"curDistribution","type":"uint256"}])
|
|
331
561
|
}
|
|
562
|
+
export function getFetchVDODOTokenGetLatestAlphaQueryOptions(chainId: number | undefined) {
|
|
563
|
+
return {
|
|
564
|
+
queryKey: ['contract-request', chainId],
|
|
565
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
566
|
+
queryFn: () => {
|
|
567
|
+
// @ts-ignore
|
|
568
|
+
return fetchVDODOTokenGetLatestAlpha(chainId);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
332
572
|
|
|
333
573
|
/**
|
|
334
574
|
* fetch getSuperior
|
|
@@ -343,6 +583,16 @@ export function fetchVDODOTokenGetSuperior(chainId: number, account: string) {
|
|
|
343
583
|
const __data = hexlify(concat(['0x443355e5', __encodeData]));
|
|
344
584
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"superior","type":"address"}])
|
|
345
585
|
}
|
|
586
|
+
export function getFetchVDODOTokenGetSuperiorQueryOptions(chainId: number | undefined, account: string | undefined) {
|
|
587
|
+
return {
|
|
588
|
+
queryKey: ['contract-request', chainId, account],
|
|
589
|
+
enabled: [chainId !== undefined && chainId !== null, account !== undefined && account !== null],
|
|
590
|
+
queryFn: () => {
|
|
591
|
+
// @ts-ignore
|
|
592
|
+
return fetchVDODOTokenGetSuperior(chainId, account);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
346
596
|
|
|
347
597
|
/**
|
|
348
598
|
* fetch getWithdrawResult
|
|
@@ -363,6 +613,16 @@ export function fetchVDODOTokenGetWithdrawResult(chainId: number, dodoAmount: nu
|
|
|
363
613
|
withdrawFeeDodoAmount: bigint;
|
|
364
614
|
}>(chainId, __to, __data, [{"internalType":"uint256","name":"dodoReceive","type":"uint256"},{"internalType":"uint256","name":"burnDodoAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawFeeDodoAmount","type":"uint256"}])
|
|
365
615
|
}
|
|
616
|
+
export function getFetchVDODOTokenGetWithdrawResultQueryOptions(chainId: number | undefined, dodoAmount: number | undefined) {
|
|
617
|
+
return {
|
|
618
|
+
queryKey: ['contract-request', chainId, dodoAmount],
|
|
619
|
+
enabled: [chainId !== undefined && chainId !== null, dodoAmount !== undefined && dodoAmount !== null],
|
|
620
|
+
queryFn: () => {
|
|
621
|
+
// @ts-ignore
|
|
622
|
+
return fetchVDODOTokenGetWithdrawResult(chainId, dodoAmount);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
366
626
|
|
|
367
627
|
/**
|
|
368
628
|
* fetch name
|
|
@@ -376,6 +636,16 @@ export function fetchVDODOTokenName(chainId: number) {
|
|
|
376
636
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
377
637
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
378
638
|
}
|
|
639
|
+
export function getFetchVDODOTokenNameQueryOptions(chainId: number | undefined) {
|
|
640
|
+
return {
|
|
641
|
+
queryKey: ['contract-request', chainId],
|
|
642
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
643
|
+
queryFn: () => {
|
|
644
|
+
// @ts-ignore
|
|
645
|
+
return fetchVDODOTokenName(chainId);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
379
649
|
|
|
380
650
|
/**
|
|
381
651
|
* fetch symbol
|
|
@@ -389,6 +659,16 @@ export function fetchVDODOTokenSymbol(chainId: number) {
|
|
|
389
659
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
390
660
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
391
661
|
}
|
|
662
|
+
export function getFetchVDODOTokenSymbolQueryOptions(chainId: number | undefined) {
|
|
663
|
+
return {
|
|
664
|
+
queryKey: ['contract-request', chainId],
|
|
665
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
666
|
+
queryFn: () => {
|
|
667
|
+
// @ts-ignore
|
|
668
|
+
return fetchVDODOTokenSymbol(chainId);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
392
672
|
|
|
393
673
|
/**
|
|
394
674
|
* fetch totalSupply
|
|
@@ -402,6 +682,16 @@ export function fetchVDODOTokenTotalSupply(chainId: number) {
|
|
|
402
682
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
403
683
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"vDODOSupply","type":"uint256"}])
|
|
404
684
|
}
|
|
685
|
+
export function getFetchVDODOTokenTotalSupplyQueryOptions(chainId: number | undefined) {
|
|
686
|
+
return {
|
|
687
|
+
queryKey: ['contract-request', chainId],
|
|
688
|
+
enabled: [chainId !== undefined && chainId !== null],
|
|
689
|
+
queryFn: () => {
|
|
690
|
+
// @ts-ignore
|
|
691
|
+
return fetchVDODOTokenTotalSupply(chainId);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
405
695
|
|
|
406
696
|
/**
|
|
407
697
|
* fetch userInfo
|
|
@@ -424,6 +714,16 @@ export function fetchVDODOTokenUserInfo(chainId: number, __input1: string) {
|
|
|
424
714
|
credit: bigint;
|
|
425
715
|
}>(chainId, __to, __data, [{"internalType":"uint128","name":"stakingPower","type":"uint128"},{"internalType":"uint128","name":"superiorSP","type":"uint128"},{"internalType":"address","name":"superior","type":"address"},{"internalType":"uint256","name":"credit","type":"uint256"}])
|
|
426
716
|
}
|
|
717
|
+
export function getFetchVDODOTokenUserInfoQueryOptions(chainId: number | undefined, __input1: string | undefined) {
|
|
718
|
+
return {
|
|
719
|
+
queryKey: ['contract-request', chainId, __input1],
|
|
720
|
+
enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
|
|
721
|
+
queryFn: () => {
|
|
722
|
+
// @ts-ignore
|
|
723
|
+
return fetchVDODOTokenUserInfo(chainId, __input1);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
427
727
|
|
|
428
728
|
/**
|
|
429
729
|
* encode approve
|
package/src/index.ts
CHANGED