@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.
Files changed (134) hide show
  1. package/.releaserc.json +8 -3
  2. package/CHANGELOG.md +15 -25
  3. package/contract-config/sepolia.json +2 -2
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/types/contract/BuyoutModel.d.ts +42 -12
  7. package/dist/types/contract/CP.d.ts +214 -50
  8. package/dist/types/contract/CloneFactory.d.ts +1 -1
  9. package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
  10. package/dist/types/contract/CustomERC20.d.ts +75 -20
  11. package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
  12. package/dist/types/contract/D3Proxy.d.ts +33 -13
  13. package/dist/types/contract/D3Vault.d.ts +324 -123
  14. package/dist/types/contract/DODOApprove.d.ts +44 -14
  15. package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
  16. package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
  17. package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
  18. package/dist/types/contract/DODOCpProxy.d.ts +20 -5
  19. package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
  20. package/dist/types/contract/DODODppProxy.d.ts +20 -5
  21. package/dist/types/contract/DODODspProxy.d.ts +27 -7
  22. package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
  23. package/dist/types/contract/DODOIncentive.d.ts +75 -26
  24. package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
  25. package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
  26. package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
  27. package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
  28. package/dist/types/contract/DODONFT.d.ts +95 -25
  29. package/dist/types/contract/DODONFT1155.d.ts +56 -16
  30. package/dist/types/contract/DODONFTApprove.d.ts +47 -17
  31. package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
  32. package/dist/types/contract/DODONFTProxy.d.ts +84 -24
  33. package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
  34. package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
  35. package/dist/types/contract/DODOSellHelper.d.ts +12 -2
  36. package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
  37. package/dist/types/contract/DODOV1.d.ts +269 -77
  38. package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
  39. package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
  40. package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
  41. package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
  42. package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
  43. package/dist/types/contract/DPPAdvanced.d.ts +172 -69
  44. package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
  45. package/dist/types/contract/DPPFactory.d.ts +97 -30
  46. package/dist/types/contract/DSP.d.ts +221 -78
  47. package/dist/types/contract/DSPFactory.d.ts +73 -21
  48. package/dist/types/contract/DVM.d.ts +203 -71
  49. package/dist/types/contract/DVMFactory.d.ts +73 -21
  50. package/dist/types/contract/ERC20.d.ts +41 -11
  51. package/dist/types/contract/ERC20Helper.d.ts +24 -23
  52. package/dist/types/contract/ERC20MineV3.d.ts +91 -36
  53. package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
  54. package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
  55. package/dist/types/contract/FeeRateModel.d.ts +28 -8
  56. package/dist/types/contract/GSP.d.ts +265 -95
  57. package/dist/types/contract/GSPFactory.d.ts +68 -21
  58. package/dist/types/contract/InitializableERC20.d.ts +46 -11
  59. package/dist/types/contract/LimitOrder.d.ts +71 -21
  60. package/dist/types/contract/LimitOrderBot.d.ts +45 -15
  61. package/dist/types/contract/MulticallWithValid.d.ts +43 -8
  62. package/dist/types/contract/PermissionManager.d.ts +33 -13
  63. package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
  64. package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
  65. package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
  66. package/dist/types/contract/dodoTeam.d.ts +100 -33
  67. package/dist/types/contract/vDODOToken.d.ts +196 -58
  68. package/dist/types/contractRequests.d.ts +1 -1
  69. package/dist/types/index.d.ts +1 -0
  70. package/package.json +1 -1
  71. package/scripts/contract-generate.ts +8 -1
  72. package/src/config/sepolia.ts +1 -1
  73. package/src/contract/BuyoutModel.ts +60 -0
  74. package/src/contract/CP.ts +340 -0
  75. package/src/contract/CrowdPoolingFactory.ts +190 -0
  76. package/src/contract/CustomERC20.ts +110 -0
  77. package/src/contract/CustomMintableERC20.ts +110 -0
  78. package/src/contract/D3Proxy.ts +40 -0
  79. package/src/contract/D3Vault.ts +480 -0
  80. package/src/contract/DODOApprove.ts +60 -0
  81. package/src/contract/DODOApproveProxy.ts +70 -0
  82. package/src/contract/DODOCalleeHelper.ts +10 -0
  83. package/src/contract/DODOCirculationHelper.ts +70 -0
  84. package/src/contract/DODOCpProxy.ts +30 -0
  85. package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
  86. package/src/contract/DODODppProxy.ts +30 -0
  87. package/src/contract/DODODspProxy.ts +40 -0
  88. package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
  89. package/src/contract/DODOIncentive.ts +110 -0
  90. package/src/contract/DODOMineV2Factory.ts +70 -0
  91. package/src/contract/DODOMineV3Proxy.ts +60 -0
  92. package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
  93. package/src/contract/DODOMineV3Registry.ts +60 -0
  94. package/src/contract/DODONFT.ts +140 -0
  95. package/src/contract/DODONFT1155.ts +80 -0
  96. package/src/contract/DODONFTApprove.ts +60 -0
  97. package/src/contract/DODONFTPoolProxy.ts +100 -0
  98. package/src/contract/DODONFTProxy.ts +120 -0
  99. package/src/contract/DODONFTRegistry.ts +70 -0
  100. package/src/contract/DODONFTRouteHelper.ts +20 -0
  101. package/src/contract/DODOSellHelper.ts +20 -0
  102. package/src/contract/DODOStarterProxy.ts +20 -0
  103. package/src/contract/DODOV1.ts +390 -0
  104. package/src/contract/DODOV1Adapter.ts +10 -0
  105. package/src/contract/DODOV1PmmHelper.ts +10 -0
  106. package/src/contract/DODOV1Proxy.ts +10 -0
  107. package/src/contract/DODOV2Proxy02.ts +130 -0
  108. package/src/contract/DODOV2RouteHelper.ts +40 -0
  109. package/src/contract/DPPAdvanced.ts +270 -0
  110. package/src/contract/DPPAdvancedAdmin.ts +70 -0
  111. package/src/contract/DPPFactory.ts +140 -0
  112. package/src/contract/DSP.ts +350 -0
  113. package/src/contract/DSPFactory.ts +110 -0
  114. package/src/contract/DVM.ts +320 -0
  115. package/src/contract/DVMFactory.ts +110 -0
  116. package/src/contract/ERC20.ts +60 -0
  117. package/src/contract/ERC20Helper.ts +40 -0
  118. package/src/contract/ERC20MineV3.ts +130 -0
  119. package/src/contract/ERC20V3Factory.ts +110 -0
  120. package/src/contract/FeeRateDIP3Impl.ts +100 -0
  121. package/src/contract/FeeRateModel.ts +40 -0
  122. package/src/contract/GSP.ts +410 -0
  123. package/src/contract/GSPFactory.ts +100 -0
  124. package/src/contract/InitializableERC20.ts +70 -0
  125. package/src/contract/LimitOrder.ts +100 -0
  126. package/src/contract/LimitOrderBot.ts +60 -0
  127. package/src/contract/MulticallWithValid.ts +70 -0
  128. package/src/contract/PermissionManager.ts +40 -0
  129. package/src/contract/UniswapV2Factory.ts +51 -1
  130. package/src/contract/UniswapV2Pair.ts +190 -0
  131. package/src/contract/UniswapV2Router02.ts +71 -1
  132. package/src/contract/dodoTeam.ts +140 -0
  133. package/src/contract/vDODOToken.ts +300 -0
  134. package/src/index.ts +2 -1
@@ -21,6 +21,16 @@ export function fetchDODOApprove_DODO_PROXY_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xe54c8033', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODOApprove_DODO_PROXY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOApprove_DODO_PROXY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _NEW_OWNER_
@@ -34,6 +44,16 @@ export function fetchDODOApprove_NEW_OWNER_(chainId: number) {
34
44
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
35
45
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
36
46
  }
47
+ export function getFetchDODOApprove_NEW_OWNER_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchDODOApprove_NEW_OWNER_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _OWNER_
@@ -47,6 +67,16 @@ export function fetchDODOApprove_OWNER_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODOApprove_OWNER_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODOApprove_OWNER_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _PENDING_DODO_PROXY_
@@ -60,6 +90,16 @@ export function fetchDODOApprove_PENDING_DODO_PROXY_(chainId: number) {
60
90
  const __data = hexlify(concat(['0x93773aec', __encodeData]));
61
91
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
62
92
  }
93
+ export function getFetchDODOApprove_PENDING_DODO_PROXY_QueryOptions(chainId: number | undefined) {
94
+ return {
95
+ queryKey: ['contract-request', chainId],
96
+ enabled: [chainId !== undefined && chainId !== null],
97
+ queryFn: () => {
98
+ // @ts-ignore
99
+ return fetchDODOApprove_PENDING_DODO_PROXY_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * fetch _TIMELOCK_
@@ -73,6 +113,16 @@ export function fetchDODOApprove_TIMELOCK_(chainId: number) {
73
113
  const __data = hexlify(concat(['0xb75dbf68', __encodeData]));
74
114
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
75
115
  }
116
+ export function getFetchDODOApprove_TIMELOCK_QueryOptions(chainId: number | undefined) {
117
+ return {
118
+ queryKey: ['contract-request', chainId],
119
+ enabled: [chainId !== undefined && chainId !== null],
120
+ queryFn: () => {
121
+ // @ts-ignore
122
+ return fetchDODOApprove_TIMELOCK_(chainId);
123
+ }
124
+ }
125
+ }
76
126
 
77
127
  /**
78
128
  * fetch getDODOProxy
@@ -86,6 +136,16 @@ export function fetchDODOApproveGetDODOProxy(chainId: number) {
86
136
  const __data = hexlify(concat(['0x31fa1319', __encodeData]));
87
137
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
88
138
  }
139
+ export function getFetchDODOApproveGetDODOProxyQueryOptions(chainId: number | undefined) {
140
+ return {
141
+ queryKey: ['contract-request', chainId],
142
+ enabled: [chainId !== undefined && chainId !== null],
143
+ queryFn: () => {
144
+ // @ts-ignore
145
+ return fetchDODOApproveGetDODOProxy(chainId);
146
+ }
147
+ }
148
+ }
89
149
 
90
150
  /**
91
151
  * encode claimOwnership
@@ -21,6 +21,16 @@ export function fetchDODOApproveProxy_DODO_APPROVE_(chainId: number) {
21
21
  const __data = hexlify(concat(['0x46e74298', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODOApproveProxy_DODO_APPROVE_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOApproveProxy_DODO_APPROVE_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _IS_ALLOWED_PROXY_
@@ -35,6 +45,16 @@ export function fetchDODOApproveProxy_IS_ALLOWED_PROXY_(chainId: number, __input
35
45
  const __data = hexlify(concat(['0x3b2f27bb', __encodeData]));
36
46
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
37
47
  }
48
+ export function getFetchDODOApproveProxy_IS_ALLOWED_PROXY_QueryOptions(chainId: number | undefined, __input1: string | undefined) {
49
+ return {
50
+ queryKey: ['contract-request', chainId, __input1],
51
+ enabled: [chainId !== undefined && chainId !== null, __input1 !== undefined && __input1 !== null],
52
+ queryFn: () => {
53
+ // @ts-ignore
54
+ return fetchDODOApproveProxy_IS_ALLOWED_PROXY_(chainId, __input1);
55
+ }
56
+ }
57
+ }
38
58
 
39
59
  /**
40
60
  * fetch _NEW_OWNER_
@@ -48,6 +68,16 @@ export function fetchDODOApproveProxy_NEW_OWNER_(chainId: number) {
48
68
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
49
69
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
50
70
  }
71
+ export function getFetchDODOApproveProxy_NEW_OWNER_QueryOptions(chainId: number | undefined) {
72
+ return {
73
+ queryKey: ['contract-request', chainId],
74
+ enabled: [chainId !== undefined && chainId !== null],
75
+ queryFn: () => {
76
+ // @ts-ignore
77
+ return fetchDODOApproveProxy_NEW_OWNER_(chainId);
78
+ }
79
+ }
80
+ }
51
81
 
52
82
  /**
53
83
  * fetch _OWNER_
@@ -61,6 +91,16 @@ export function fetchDODOApproveProxy_OWNER_(chainId: number) {
61
91
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
62
92
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
63
93
  }
94
+ export function getFetchDODOApproveProxy_OWNER_QueryOptions(chainId: number | undefined) {
95
+ return {
96
+ queryKey: ['contract-request', chainId],
97
+ enabled: [chainId !== undefined && chainId !== null],
98
+ queryFn: () => {
99
+ // @ts-ignore
100
+ return fetchDODOApproveProxy_OWNER_(chainId);
101
+ }
102
+ }
103
+ }
64
104
 
65
105
  /**
66
106
  * fetch _PENDING_ADD_DODO_PROXY_
@@ -74,6 +114,16 @@ export function fetchDODOApproveProxy_PENDING_ADD_DODO_PROXY_(chainId: number) {
74
114
  const __data = hexlify(concat(['0xcc646ed4', __encodeData]));
75
115
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
76
116
  }
117
+ export function getFetchDODOApproveProxy_PENDING_ADD_DODO_PROXY_QueryOptions(chainId: number | undefined) {
118
+ return {
119
+ queryKey: ['contract-request', chainId],
120
+ enabled: [chainId !== undefined && chainId !== null],
121
+ queryFn: () => {
122
+ // @ts-ignore
123
+ return fetchDODOApproveProxy_PENDING_ADD_DODO_PROXY_(chainId);
124
+ }
125
+ }
126
+ }
77
127
 
78
128
  /**
79
129
  * fetch _TIMELOCK_
@@ -87,6 +137,16 @@ export function fetchDODOApproveProxy_TIMELOCK_(chainId: number) {
87
137
  const __data = hexlify(concat(['0xb75dbf68', __encodeData]));
88
138
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
89
139
  }
140
+ export function getFetchDODOApproveProxy_TIMELOCK_QueryOptions(chainId: number | undefined) {
141
+ return {
142
+ queryKey: ['contract-request', chainId],
143
+ enabled: [chainId !== undefined && chainId !== null],
144
+ queryFn: () => {
145
+ // @ts-ignore
146
+ return fetchDODOApproveProxy_TIMELOCK_(chainId);
147
+ }
148
+ }
149
+ }
90
150
 
91
151
  /**
92
152
  * fetch isAllowedProxy
@@ -101,6 +161,16 @@ export function fetchDODOApproveProxyIsAllowedProxy(chainId: number, _proxy: str
101
161
  const __data = hexlify(concat(['0x48a4f993', __encodeData]));
102
162
  return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
103
163
  }
164
+ export function getFetchDODOApproveProxyIsAllowedProxyQueryOptions(chainId: number | undefined, _proxy: string | undefined) {
165
+ return {
166
+ queryKey: ['contract-request', chainId, _proxy],
167
+ enabled: [chainId !== undefined && chainId !== null, _proxy !== undefined && _proxy !== null],
168
+ queryFn: () => {
169
+ // @ts-ignore
170
+ return fetchDODOApproveProxyIsAllowedProxy(chainId, _proxy);
171
+ }
172
+ }
173
+ }
104
174
 
105
175
  /**
106
176
  * encode addDODOProxy
@@ -21,6 +21,16 @@ export function fetchDODOCalleeHelper_WETH_(chainId: number) {
21
21
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address payable","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODOCalleeHelper_WETH_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOCalleeHelper_WETH_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * encode CPCancelCall
@@ -21,6 +21,16 @@ export function fetchDODOCirculationHelper_MAX_PENALTY_RATIO_(chainId: number) {
21
21
  const __data = hexlify(concat(['0x48afb913', __encodeData]));
22
22
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
23
23
  }
24
+ export function getFetchDODOCirculationHelper_MAX_PENALTY_RATIO_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOCirculationHelper_MAX_PENALTY_RATIO_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _MIN_PENALTY_RATIO_
@@ -34,6 +44,16 @@ export function fetchDODOCirculationHelper_MIN_PENALTY_RATIO_(chainId: number) {
34
44
  const __data = hexlify(concat(['0xd549e74e', __encodeData]));
35
45
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
36
46
  }
47
+ export function getFetchDODOCirculationHelper_MIN_PENALTY_RATIO_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchDODOCirculationHelper_MIN_PENALTY_RATIO_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _NEW_OWNER_
@@ -47,6 +67,16 @@ export function fetchDODOCirculationHelper_NEW_OWNER_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x8456db15', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODOCirculationHelper_NEW_OWNER_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODOCirculationHelper_NEW_OWNER_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _OWNER_
@@ -60,6 +90,16 @@ export function fetchDODOCirculationHelper_OWNER_(chainId: number) {
60
90
  const __data = hexlify(concat(['0x16048bc4', __encodeData]));
61
91
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
62
92
  }
93
+ export function getFetchDODOCirculationHelper_OWNER_QueryOptions(chainId: number | undefined) {
94
+ return {
95
+ queryKey: ['contract-request', chainId],
96
+ enabled: [chainId !== undefined && chainId !== null],
97
+ queryFn: () => {
98
+ // @ts-ignore
99
+ return fetchDODOCirculationHelper_OWNER_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * fetch geRatioValue
@@ -74,6 +114,16 @@ export function fetchDODOCirculationHelperGeRatioValue(chainId: number, input: n
74
114
  const __data = hexlify(concat(['0x2358dbc0', __encodeData]));
75
115
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
76
116
  }
117
+ export function getFetchDODOCirculationHelperGeRatioValueQueryOptions(chainId: number | undefined, input: number | undefined) {
118
+ return {
119
+ queryKey: ['contract-request', chainId, input],
120
+ enabled: [chainId !== undefined && chainId !== null, input !== undefined && input !== null],
121
+ queryFn: () => {
122
+ // @ts-ignore
123
+ return fetchDODOCirculationHelperGeRatioValue(chainId, input);
124
+ }
125
+ }
126
+ }
77
127
 
78
128
  /**
79
129
  * fetch getCirculation
@@ -87,6 +137,16 @@ export function fetchDODOCirculationHelperGetCirculation(chainId: number) {
87
137
  const __data = hexlify(concat(['0xbf151cb8', __encodeData]));
88
138
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"circulation","type":"uint256"}])
89
139
  }
140
+ export function getFetchDODOCirculationHelperGetCirculationQueryOptions(chainId: number | undefined) {
141
+ return {
142
+ queryKey: ['contract-request', chainId],
143
+ enabled: [chainId !== undefined && chainId !== null],
144
+ queryFn: () => {
145
+ // @ts-ignore
146
+ return fetchDODOCirculationHelperGetCirculation(chainId);
147
+ }
148
+ }
149
+ }
90
150
 
91
151
  /**
92
152
  * fetch getDodoWithdrawFeeRatio
@@ -100,6 +160,16 @@ export function fetchDODOCirculationHelperGetDodoWithdrawFeeRatio(chainId: numbe
100
160
  const __data = hexlify(concat(['0xdef0d15d', __encodeData]));
101
161
  return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"ratio","type":"uint256"}])
102
162
  }
163
+ export function getFetchDODOCirculationHelperGetDodoWithdrawFeeRatioQueryOptions(chainId: number | undefined) {
164
+ return {
165
+ queryKey: ['contract-request', chainId],
166
+ enabled: [chainId !== undefined && chainId !== null],
167
+ queryFn: () => {
168
+ // @ts-ignore
169
+ return fetchDODOCirculationHelperGetDodoWithdrawFeeRatio(chainId);
170
+ }
171
+ }
172
+ }
103
173
 
104
174
  /**
105
175
  * encode addLockedContractAddress
@@ -21,6 +21,16 @@ export function fetchDODOCpProxy_CP_FACTORY_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xfaa980e4', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODOCpProxy_CP_FACTORY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOCpProxy_CP_FACTORY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _DODO_APPROVE_PROXY_
@@ -34,6 +44,16 @@ export function fetchDODOCpProxy_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 getFetchDODOCpProxy_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 fetchDODOCpProxy_DODO_APPROVE_PROXY_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _WETH_
@@ -47,6 +67,16 @@ export function fetchDODOCpProxy_WETH_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODOCpProxy_WETH_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODOCpProxy_WETH_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * encode bid
@@ -21,6 +21,16 @@ export function fetchDODOCpProxyWithoutGlobalQuota_CP_FACTORY_(chainId: number)
21
21
  const __data = hexlify(concat(['0xfaa980e4', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODOCpProxyWithoutGlobalQuota_CP_FACTORY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODOCpProxyWithoutGlobalQuota_CP_FACTORY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _DODO_APPROVE_PROXY_
@@ -34,6 +44,16 @@ export function fetchDODOCpProxyWithoutGlobalQuota_DODO_APPROVE_PROXY_(chainId:
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 getFetchDODOCpProxyWithoutGlobalQuota_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 fetchDODOCpProxyWithoutGlobalQuota_DODO_APPROVE_PROXY_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _WETH_
@@ -47,6 +67,16 @@ export function fetchDODOCpProxyWithoutGlobalQuota_WETH_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODOCpProxyWithoutGlobalQuota_WETH_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODOCpProxyWithoutGlobalQuota_WETH_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * encode bid
@@ -21,6 +21,16 @@ export function fetchDODODppProxy_DODO_APPROVE_PROXY_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xeb99be12', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODODppProxy_DODO_APPROVE_PROXY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODODppProxy_DODO_APPROVE_PROXY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _DPP_FACTORY_
@@ -34,6 +44,16 @@ export function fetchDODODppProxy_DPP_FACTORY_(chainId: number) {
34
44
  const __data = hexlify(concat(['0xb730d150', __encodeData]));
35
45
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
36
46
  }
47
+ export function getFetchDODODppProxy_DPP_FACTORY_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchDODODppProxy_DPP_FACTORY_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _WETH_
@@ -47,6 +67,16 @@ export function fetchDODODppProxy_WETH_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODODppProxy_WETH_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODODppProxy_WETH_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * encode createDODOPrivatePool
@@ -21,6 +21,16 @@ export function fetchDODODspProxy_DODO_APPROVE_PROXY_(chainId: number) {
21
21
  const __data = hexlify(concat(['0xeb99be12', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODODspProxy_DODO_APPROVE_PROXY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODODspProxy_DODO_APPROVE_PROXY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _DSP_FACTORY_
@@ -34,6 +44,16 @@ export function fetchDODODspProxy_DSP_FACTORY_(chainId: number) {
34
44
  const __data = hexlify(concat(['0xfc382437', __encodeData]));
35
45
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
36
46
  }
47
+ export function getFetchDODODspProxy_DSP_FACTORY_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchDODODspProxy_DSP_FACTORY_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _GSP_FACTORY_
@@ -47,6 +67,16 @@ export function fetchDODODspProxy_GSP_FACTORY_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x6c35d94e', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODODspProxy_GSP_FACTORY_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODODspProxy_GSP_FACTORY_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * fetch _WETH_
@@ -60,6 +90,16 @@ export function fetchDODODspProxy_WETH_(chainId: number) {
60
90
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
61
91
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
62
92
  }
93
+ export function getFetchDODODspProxy_WETH_QueryOptions(chainId: number | undefined) {
94
+ return {
95
+ queryKey: ['contract-request', chainId],
96
+ enabled: [chainId !== undefined && chainId !== null],
97
+ queryFn: () => {
98
+ // @ts-ignore
99
+ return fetchDODODspProxy_WETH_(chainId);
100
+ }
101
+ }
102
+ }
63
103
 
64
104
  /**
65
105
  * encode addDSPLiquidity
@@ -21,6 +21,16 @@ export function fetchDODODspProxyWithoutGSP_DODO_APPROVE_PROXY_(chainId: number)
21
21
  const __data = hexlify(concat(['0xeb99be12', __encodeData]));
22
22
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
23
23
  }
24
+ export function getFetchDODODspProxyWithoutGSP_DODO_APPROVE_PROXY_QueryOptions(chainId: number | undefined) {
25
+ return {
26
+ queryKey: ['contract-request', chainId],
27
+ enabled: [chainId !== undefined && chainId !== null],
28
+ queryFn: () => {
29
+ // @ts-ignore
30
+ return fetchDODODspProxyWithoutGSP_DODO_APPROVE_PROXY_(chainId);
31
+ }
32
+ }
33
+ }
24
34
 
25
35
  /**
26
36
  * fetch _DSP_FACTORY_
@@ -34,6 +44,16 @@ export function fetchDODODspProxyWithoutGSP_DSP_FACTORY_(chainId: number) {
34
44
  const __data = hexlify(concat(['0xfc382437', __encodeData]));
35
45
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
36
46
  }
47
+ export function getFetchDODODspProxyWithoutGSP_DSP_FACTORY_QueryOptions(chainId: number | undefined) {
48
+ return {
49
+ queryKey: ['contract-request', chainId],
50
+ enabled: [chainId !== undefined && chainId !== null],
51
+ queryFn: () => {
52
+ // @ts-ignore
53
+ return fetchDODODspProxyWithoutGSP_DSP_FACTORY_(chainId);
54
+ }
55
+ }
56
+ }
37
57
 
38
58
  /**
39
59
  * fetch _WETH_
@@ -47,6 +67,16 @@ export function fetchDODODspProxyWithoutGSP_WETH_(chainId: number) {
47
67
  const __data = hexlify(concat(['0x0d4eec8f', __encodeData]));
48
68
  return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
49
69
  }
70
+ export function getFetchDODODspProxyWithoutGSP_WETH_QueryOptions(chainId: number | undefined) {
71
+ return {
72
+ queryKey: ['contract-request', chainId],
73
+ enabled: [chainId !== undefined && chainId !== null],
74
+ queryFn: () => {
75
+ // @ts-ignore
76
+ return fetchDODODspProxyWithoutGSP_WETH_(chainId);
77
+ }
78
+ }
79
+ }
50
80
 
51
81
  /**
52
82
  * encode addDSPLiquidity