@dodoex/dodo-contract-request 1.6.0-alpha.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -27
- package/dist/types/contract/BuyoutModel.d.ts +12 -12
- package/dist/types/contract/CP.d.ts +80 -68
- package/dist/types/contract/CrowdPoolingFactory.d.ts +44 -38
- package/dist/types/contract/CustomERC20.d.ts +22 -22
- package/dist/types/contract/CustomMintableERC20.d.ts +22 -22
- package/dist/types/contract/D3Proxy.d.ts +8 -8
- package/dist/types/contract/D3Vault.d.ts +174 -96
- package/dist/types/contract/DODOApprove.d.ts +12 -12
- package/dist/types/contract/DODOApproveProxy.d.ts +14 -14
- package/dist/types/contract/DODOCalleeHelper.d.ts +2 -2
- package/dist/types/contract/DODOCirculationHelper.d.ts +14 -14
- package/dist/types/contract/DODOCpProxy.d.ts +6 -6
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +6 -6
- package/dist/types/contract/DODODppProxy.d.ts +6 -6
- package/dist/types/contract/DODODspProxy.d.ts +8 -8
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +6 -6
- package/dist/types/contract/DODOIncentive.d.ts +34 -22
- package/dist/types/contract/DODOMineV2Factory.d.ts +14 -14
- package/dist/types/contract/DODOMineV3Proxy.d.ts +12 -12
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +12 -12
- package/dist/types/contract/DODOMineV3Registry.d.ts +12 -12
- package/dist/types/contract/DODONFT.d.ts +28 -28
- package/dist/types/contract/DODONFT1155.d.ts +16 -16
- package/dist/types/contract/DODONFTApprove.d.ts +12 -12
- package/dist/types/contract/DODONFTPoolProxy.d.ts +20 -20
- package/dist/types/contract/DODONFTProxy.d.ts +24 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +20 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +4 -4
- package/dist/types/contract/DODOSellHelper.d.ts +4 -4
- package/dist/types/contract/DODOStarterProxy.d.ts +4 -4
- package/dist/types/contract/DODOV1.d.ts +84 -78
- package/dist/types/contract/DODOV1Adapter.d.ts +2 -2
- package/dist/types/contract/DODOV1PmmHelper.d.ts +2 -2
- package/dist/types/contract/DODOV1Proxy.d.ts +2 -2
- package/dist/types/contract/DODOV2Proxy02.d.ts +26 -26
- package/dist/types/contract/DODOV2RouteHelper.d.ts +8 -8
- package/dist/types/contract/DPPAdvanced.d.ts +118 -54
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +14 -14
- package/dist/types/contract/DPPFactory.d.ts +34 -28
- package/dist/types/contract/DSP.d.ts +134 -70
- package/dist/types/contract/DSPFactory.d.ts +28 -22
- package/dist/types/contract/DVM.d.ts +120 -64
- package/dist/types/contract/DVMFactory.d.ts +28 -22
- package/dist/types/contract/ERC20.d.ts +12 -12
- package/dist/types/contract/ERC20Helper.d.ts +46 -8
- package/dist/types/contract/ERC20MineV3.d.ts +46 -26
- package/dist/types/contract/ERC20V3Factory.d.ts +30 -22
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +38 -20
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +152 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -20
- package/dist/types/contract/InitializableERC20.d.ts +14 -14
- package/dist/types/contract/LimitOrder.d.ts +20 -20
- package/dist/types/contract/LimitOrderBot.d.ts +12 -12
- package/dist/types/contract/MulticallWithValid.d.ts +14 -14
- package/dist/types/contract/PermissionManager.d.ts +8 -8
- package/dist/types/contract/UniswapV2Factory.d.ts +10 -10
- package/dist/types/contract/UniswapV2Pair.d.ts +46 -38
- package/dist/types/contract/UniswapV2Router02.d.ts +14 -14
- package/dist/types/contract/dodoTeam.d.ts +34 -28
- package/dist/types/contract/vDODOToken.d.ts +84 -60
- package/package.json +2 -2
- package/src/contract/BuyoutModel.ts +6 -6
- package/src/contract/CP.ts +40 -34
- package/src/contract/CrowdPoolingFactory.ts +22 -19
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +11 -11
- package/src/contract/D3Proxy.ts +4 -4
- package/src/contract/D3Vault.ts +87 -48
- package/src/contract/DODOApprove.ts +6 -6
- package/src/contract/DODOApproveProxy.ts +7 -7
- package/src/contract/DODOCalleeHelper.ts +1 -1
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +3 -3
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +3 -3
- package/src/contract/DODODppProxy.ts +3 -3
- package/src/contract/DODODspProxy.ts +4 -4
- package/src/contract/DODODspProxyWithoutGSP.ts +3 -3
- package/src/contract/DODOIncentive.ts +17 -11
- package/src/contract/DODOMineV2Factory.ts +7 -7
- package/src/contract/DODOMineV3Proxy.ts +6 -6
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +6 -6
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +14 -14
- package/src/contract/DODONFT1155.ts +8 -8
- package/src/contract/DODONFTApprove.ts +6 -6
- package/src/contract/DODONFTPoolProxy.ts +10 -10
- package/src/contract/DODONFTProxy.ts +12 -12
- package/src/contract/DODONFTRegistry.ts +10 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +2 -2
- package/src/contract/DODOV1.ts +42 -39
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +1 -1
- package/src/contract/DODOV2Proxy02.ts +13 -13
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +51 -27
- package/src/contract/DPPAdvancedAdmin.ts +7 -7
- package/src/contract/DPPFactory.ts +17 -14
- package/src/contract/DSP.ts +59 -35
- package/src/contract/DSPFactory.ts +14 -11
- package/src/contract/DVM.ts +52 -32
- package/src/contract/DVMFactory.ts +14 -11
- package/src/contract/ERC20.ts +6 -6
- package/src/contract/ERC20Helper.ts +23 -4
- package/src/contract/ERC20MineV3.ts +23 -13
- package/src/contract/ERC20V3Factory.ts +15 -11
- package/src/contract/FeeRateDIP3Impl.ts +19 -10
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +68 -41
- package/src/contract/GSPFactory.ts +13 -10
- package/src/contract/InitializableERC20.ts +7 -7
- package/src/contract/LimitOrder.ts +10 -10
- package/src/contract/LimitOrderBot.ts +6 -6
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +5 -5
- package/src/contract/UniswapV2Pair.ts +23 -19
- package/src/contract/UniswapV2Router02.ts +7 -7
- package/src/contract/dodoTeam.ts +17 -14
- package/src/contract/vDODOToken.ts +42 -30
|
@@ -14,7 +14,7 @@ export function getGSPFactoryContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - address
|
|
16
16
|
*/
|
|
17
|
-
export function fetchGSPFactory_CLONE_FACTORY_(chainId: number) {
|
|
17
|
+
export function fetchGSPFactory_CLONE_FACTORY_(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchGSPFactory_CLONE_FACTORY_QueryOptions(chainId: number |
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - address
|
|
38
38
|
*/
|
|
39
|
-
export function fetchGSPFactory_DEFAULT_MAINTAINER_(chainId: number) {
|
|
39
|
+
export function fetchGSPFactory_DEFAULT_MAINTAINER_(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchGSPFactory_DEFAULT_MAINTAINER_QueryOptions(chainId: numb
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchGSPFactory_GSP_TEMPLATE_(chainId: number) {
|
|
61
|
+
export function fetchGSPFactory_GSP_TEMPLATE_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchGSPFactory_GSP_TEMPLATE_QueryOptions(chainId: number | u
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchGSPFactory_NEW_OWNER_(chainId: number) {
|
|
83
|
+
export function fetchGSPFactory_NEW_OWNER_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -102,7 +102,7 @@ export function getFetchGSPFactory_NEW_OWNER_QueryOptions(chainId: number | unde
|
|
|
102
102
|
* @param {number} chainId - number
|
|
103
103
|
* @returns {string} __output0 - address
|
|
104
104
|
*/
|
|
105
|
-
export function fetchGSPFactory_OWNER_(chainId: number) {
|
|
105
|
+
export function fetchGSPFactory_OWNER_(chainId: number): Promise<string> {
|
|
106
106
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
107
107
|
|
|
108
108
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -127,7 +127,7 @@ export function getFetchGSPFactory_OWNER_QueryOptions(chainId: number | undefine
|
|
|
127
127
|
* @param {number} __input3 - uint256
|
|
128
128
|
* @returns {string} __output0 - address
|
|
129
129
|
*/
|
|
130
|
-
export function fetchGSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number) {
|
|
130
|
+
export function fetchGSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number): Promise<string> {
|
|
131
131
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
132
132
|
|
|
133
133
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [__input1,__input2,__input3]);
|
|
@@ -151,7 +151,7 @@ export function getFetchGSPFactory_REGISTRY_QueryOptions(chainId: number | undef
|
|
|
151
151
|
* @param {number} __input2 - uint256
|
|
152
152
|
* @returns {string} __output0 - address
|
|
153
153
|
*/
|
|
154
|
-
export function fetchGSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number) {
|
|
154
|
+
export function fetchGSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number): Promise<string> {
|
|
155
155
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
156
156
|
|
|
157
157
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [__input1,__input2]);
|
|
@@ -175,7 +175,7 @@ export function getFetchGSPFactory_USER_REGISTRY_QueryOptions(chainId: number |
|
|
|
175
175
|
* @param {string} quoteToken - address
|
|
176
176
|
* @returns {Array<string>} machines - address[]
|
|
177
177
|
*/
|
|
178
|
-
export function fetchGSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string) {
|
|
178
|
+
export function fetchGSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string): Promise<Array<string>> {
|
|
179
179
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
180
180
|
|
|
181
181
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [baseToken,quoteToken]);
|
|
@@ -200,7 +200,10 @@ export function getFetchGSPFactoryGetDODOPoolQueryOptions(chainId: number | unde
|
|
|
200
200
|
* @returns {Array<string>} baseToken0Machines - address[]
|
|
201
201
|
* @returns {Array<string>} baseToken1Machines - address[]
|
|
202
202
|
*/
|
|
203
|
-
export function fetchGSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string) {
|
|
203
|
+
export function fetchGSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string): Promise<{
|
|
204
|
+
baseToken0Machines: Array<string>;
|
|
205
|
+
baseToken1Machines: Array<string>;
|
|
206
|
+
}> {
|
|
204
207
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
205
208
|
|
|
206
209
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [token0,token1]);
|
|
@@ -226,7 +229,7 @@ export function getFetchGSPFactoryGetDODOPoolBidirectionQueryOptions(chainId: nu
|
|
|
226
229
|
* @param {string} user - address
|
|
227
230
|
* @returns {Array<string>} machines - address[]
|
|
228
231
|
*/
|
|
229
|
-
export function fetchGSPFactoryGetDODOPoolByUser(chainId: number, user: string) {
|
|
232
|
+
export function fetchGSPFactoryGetDODOPoolByUser(chainId: number, user: string): Promise<Array<string>> {
|
|
230
233
|
const __to = getGSPFactoryContractAddressByChainId(chainId);
|
|
231
234
|
|
|
232
235
|
const __encodeData = defaultAbiCoder.encode(["address"], [user]);
|
|
@@ -12,7 +12,7 @@ import { contractRequests } from '../contractRequests';
|
|
|
12
12
|
* @param {string} spender - address
|
|
13
13
|
* @returns {bigint} __output0 - uint256
|
|
14
14
|
*/
|
|
15
|
-
export function fetchInitializableERC20Allowance(chainId: number, __to: string, owner: string, spender: string) {
|
|
15
|
+
export function fetchInitializableERC20Allowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint> {
|
|
16
16
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [owner,spender]);
|
|
17
17
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
18
18
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -34,7 +34,7 @@ export function getFetchInitializableERC20AllowanceQueryOptions(chainId: number
|
|
|
34
34
|
* @param {string} owner - address
|
|
35
35
|
* @returns {bigint} balance - uint256
|
|
36
36
|
*/
|
|
37
|
-
export function fetchInitializableERC20BalanceOf(chainId: number, __to: string, owner: string) {
|
|
37
|
+
export function fetchInitializableERC20BalanceOf(chainId: number, __to: string, owner: string): Promise<bigint> {
|
|
38
38
|
const __encodeData = defaultAbiCoder.encode(["address"], [owner]);
|
|
39
39
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
40
40
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"balance","type":"uint256"}])
|
|
@@ -55,7 +55,7 @@ export function getFetchInitializableERC20BalanceOfQueryOptions(chainId: number
|
|
|
55
55
|
* @param {string} __to - string
|
|
56
56
|
* @returns {bigint} __output0 - uint8
|
|
57
57
|
*/
|
|
58
|
-
export function fetchInitializableERC20Decimals(chainId: number, __to: string) {
|
|
58
|
+
export function fetchInitializableERC20Decimals(chainId: number, __to: string): Promise<bigint> {
|
|
59
59
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
60
60
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
61
61
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
@@ -76,7 +76,7 @@ export function getFetchInitializableERC20DecimalsQueryOptions(chainId: number |
|
|
|
76
76
|
* @param {string} __to - string
|
|
77
77
|
* @returns {boolean} __output0 - bool
|
|
78
78
|
*/
|
|
79
|
-
export function fetchInitializableERC20Initialized(chainId: number, __to: string) {
|
|
79
|
+
export function fetchInitializableERC20Initialized(chainId: number, __to: string): Promise<boolean> {
|
|
80
80
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
81
81
|
const __data = hexlify(concat(['0x158ef93e', __encodeData]));
|
|
82
82
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
@@ -97,7 +97,7 @@ export function getFetchInitializableERC20InitializedQueryOptions(chainId: numbe
|
|
|
97
97
|
* @param {string} __to - string
|
|
98
98
|
* @returns {string} __output0 - string
|
|
99
99
|
*/
|
|
100
|
-
export function fetchInitializableERC20Name(chainId: number, __to: string) {
|
|
100
|
+
export function fetchInitializableERC20Name(chainId: number, __to: string): Promise<string> {
|
|
101
101
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
102
102
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
103
103
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -118,7 +118,7 @@ export function getFetchInitializableERC20NameQueryOptions(chainId: number | und
|
|
|
118
118
|
* @param {string} __to - string
|
|
119
119
|
* @returns {string} __output0 - string
|
|
120
120
|
*/
|
|
121
|
-
export function fetchInitializableERC20Symbol(chainId: number, __to: string) {
|
|
121
|
+
export function fetchInitializableERC20Symbol(chainId: number, __to: string): Promise<string> {
|
|
122
122
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
123
123
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
124
124
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -139,7 +139,7 @@ export function getFetchInitializableERC20SymbolQueryOptions(chainId: number | u
|
|
|
139
139
|
* @param {string} __to - string
|
|
140
140
|
* @returns {bigint} __output0 - uint256
|
|
141
141
|
*/
|
|
142
|
-
export function fetchInitializableERC20TotalSupply(chainId: number, __to: string) {
|
|
142
|
+
export function fetchInitializableERC20TotalSupply(chainId: number, __to: string): Promise<bigint> {
|
|
143
143
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
144
144
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
145
145
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -14,7 +14,7 @@ export function getLimitOrderContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - bytes32
|
|
16
16
|
*/
|
|
17
|
-
export function fetchLimitOrderORDER_TYPEHASH(chainId: number) {
|
|
17
|
+
export function fetchLimitOrderORDER_TYPEHASH(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchLimitOrderORDER_TYPEHASHQueryOptions(chainId: number | u
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - bytes32
|
|
38
38
|
*/
|
|
39
|
-
export function fetchLimitOrderRFQ_ORDER_TYPEHASH(chainId: number) {
|
|
39
|
+
export function fetchLimitOrderRFQ_ORDER_TYPEHASH(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchLimitOrderRFQ_ORDER_TYPEHASHQueryOptions(chainId: number
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchLimitOrder_DODO_APPROVE_PROXY_(chainId: number) {
|
|
61
|
+
export function fetchLimitOrder_DODO_APPROVE_PROXY_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchLimitOrder_DODO_APPROVE_PROXY_QueryOptions(chainId: numb
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchLimitOrder_FEE_RECEIVER_(chainId: number) {
|
|
83
|
+
export function fetchLimitOrder_FEE_RECEIVER_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -103,7 +103,7 @@ export function getFetchLimitOrder_FEE_RECEIVER_QueryOptions(chainId: number | u
|
|
|
103
103
|
* @param {string} __input1 - bytes32
|
|
104
104
|
* @returns {bigint} __output0 - uint256
|
|
105
105
|
*/
|
|
106
|
-
export function fetchLimitOrder_FILLED_TAKER_AMOUNT_(chainId: number, __input1: string) {
|
|
106
|
+
export function fetchLimitOrder_FILLED_TAKER_AMOUNT_(chainId: number, __input1: string): Promise<bigint> {
|
|
107
107
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
108
108
|
|
|
109
109
|
const __encodeData = defaultAbiCoder.encode(["bytes32"], [__input1]);
|
|
@@ -125,7 +125,7 @@ export function getFetchLimitOrder_FILLED_TAKER_AMOUNT_QueryOptions(chainId: num
|
|
|
125
125
|
* @param {number} chainId - number
|
|
126
126
|
* @returns {string} __output0 - address
|
|
127
127
|
*/
|
|
128
|
-
export function fetchLimitOrder_NEW_OWNER_(chainId: number) {
|
|
128
|
+
export function fetchLimitOrder_NEW_OWNER_(chainId: number): Promise<string> {
|
|
129
129
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
130
130
|
|
|
131
131
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -147,7 +147,7 @@ export function getFetchLimitOrder_NEW_OWNER_QueryOptions(chainId: number | unde
|
|
|
147
147
|
* @param {number} chainId - number
|
|
148
148
|
* @returns {string} __output0 - address
|
|
149
149
|
*/
|
|
150
|
-
export function fetchLimitOrder_OWNER_(chainId: number) {
|
|
150
|
+
export function fetchLimitOrder_OWNER_(chainId: number): Promise<string> {
|
|
151
151
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
152
152
|
|
|
153
153
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -171,7 +171,7 @@ export function getFetchLimitOrder_OWNER_QueryOptions(chainId: number | undefine
|
|
|
171
171
|
* @param {number} __input2 - uint256
|
|
172
172
|
* @returns {bigint} __output0 - uint256
|
|
173
173
|
*/
|
|
174
|
-
export function fetchLimitOrder_RFQ_FILLED_TAKER_AMOUNT_(chainId: number, __input1: string, __input2: number) {
|
|
174
|
+
export function fetchLimitOrder_RFQ_FILLED_TAKER_AMOUNT_(chainId: number, __input1: string, __input2: number): Promise<bigint> {
|
|
175
175
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
176
176
|
|
|
177
177
|
const __encodeData = defaultAbiCoder.encode(["address","uint256"], [__input1,__input2]);
|
|
@@ -194,7 +194,7 @@ export function getFetchLimitOrder_RFQ_FILLED_TAKER_AMOUNT_QueryOptions(chainId:
|
|
|
194
194
|
* @param {string} __input1 - address
|
|
195
195
|
* @returns {boolean} __output0 - bool
|
|
196
196
|
*/
|
|
197
|
-
export function fetchLimitOrderIsAdminListed(chainId: number, __input1: string) {
|
|
197
|
+
export function fetchLimitOrderIsAdminListed(chainId: number, __input1: string): Promise<boolean> {
|
|
198
198
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
199
199
|
|
|
200
200
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -217,7 +217,7 @@ export function getFetchLimitOrderIsAdminListedQueryOptions(chainId: number | un
|
|
|
217
217
|
* @param {string} __input1 - address
|
|
218
218
|
* @returns {boolean} __output0 - bool
|
|
219
219
|
*/
|
|
220
|
-
export function fetchLimitOrderIsWhiteListed(chainId: number, __input1: string) {
|
|
220
|
+
export function fetchLimitOrderIsWhiteListed(chainId: number, __input1: string): Promise<boolean> {
|
|
221
221
|
const __to = getLimitOrderContractAddressByChainId(chainId);
|
|
222
222
|
|
|
223
223
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -14,7 +14,7 @@ export function getLimitOrderBotContractAddressByChainId(chainId: number) {
|
|
|
14
14
|
* @param {number} chainId - number
|
|
15
15
|
* @returns {string} __output0 - address
|
|
16
16
|
*/
|
|
17
|
-
export function fetchLimitOrderBot_DODO_APPROVE_(chainId: number) {
|
|
17
|
+
export function fetchLimitOrderBot_DODO_APPROVE_(chainId: number): Promise<string> {
|
|
18
18
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
19
19
|
|
|
20
20
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -36,7 +36,7 @@ export function getFetchLimitOrderBot_DODO_APPROVE_QueryOptions(chainId: number
|
|
|
36
36
|
* @param {number} chainId - number
|
|
37
37
|
* @returns {string} __output0 - address
|
|
38
38
|
*/
|
|
39
|
-
export function fetchLimitOrderBot_DODO_LIMIT_ORDER_(chainId: number) {
|
|
39
|
+
export function fetchLimitOrderBot_DODO_LIMIT_ORDER_(chainId: number): Promise<string> {
|
|
40
40
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
41
41
|
|
|
42
42
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -58,7 +58,7 @@ export function getFetchLimitOrderBot_DODO_LIMIT_ORDER_QueryOptions(chainId: num
|
|
|
58
58
|
* @param {number} chainId - number
|
|
59
59
|
* @returns {string} __output0 - address
|
|
60
60
|
*/
|
|
61
|
-
export function fetchLimitOrderBot_NEW_OWNER_(chainId: number) {
|
|
61
|
+
export function fetchLimitOrderBot_NEW_OWNER_(chainId: number): Promise<string> {
|
|
62
62
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
63
63
|
|
|
64
64
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -80,7 +80,7 @@ export function getFetchLimitOrderBot_NEW_OWNER_QueryOptions(chainId: number | u
|
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @returns {string} __output0 - address
|
|
82
82
|
*/
|
|
83
|
-
export function fetchLimitOrderBot_OWNER_(chainId: number) {
|
|
83
|
+
export function fetchLimitOrderBot_OWNER_(chainId: number): Promise<string> {
|
|
84
84
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
85
85
|
|
|
86
86
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -102,7 +102,7 @@ export function getFetchLimitOrderBot_OWNER_QueryOptions(chainId: number | undef
|
|
|
102
102
|
* @param {number} chainId - number
|
|
103
103
|
* @returns {string} __output0 - address
|
|
104
104
|
*/
|
|
105
|
-
export function fetchLimitOrderBot_TOKEN_RECEIVER_(chainId: number) {
|
|
105
|
+
export function fetchLimitOrderBot_TOKEN_RECEIVER_(chainId: number): Promise<string> {
|
|
106
106
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
107
107
|
|
|
108
108
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -125,7 +125,7 @@ export function getFetchLimitOrderBot_TOKEN_RECEIVER_QueryOptions(chainId: numbe
|
|
|
125
125
|
* @param {string} __input1 - address
|
|
126
126
|
* @returns {boolean} __output0 - bool
|
|
127
127
|
*/
|
|
128
|
-
export function fetchLimitOrderBotIsAdminListed(chainId: number, __input1: string) {
|
|
128
|
+
export function fetchLimitOrderBotIsAdminListed(chainId: number, __input1: string): Promise<boolean> {
|
|
129
129
|
const __to = getLimitOrderBotContractAddressByChainId(chainId);
|
|
130
130
|
|
|
131
131
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
@@ -15,7 +15,7 @@ export function getMulticallWithValidContractAddressByChainId(chainId: number) {
|
|
|
15
15
|
* @param {number} blockNumber - uint256
|
|
16
16
|
* @returns {string} blockHash - bytes32
|
|
17
17
|
*/
|
|
18
|
-
export function fetchMulticallWithValidGetBlockHash(chainId: number, blockNumber: number) {
|
|
18
|
+
export function fetchMulticallWithValidGetBlockHash(chainId: number, blockNumber: number): Promise<string> {
|
|
19
19
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
20
20
|
|
|
21
21
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [blockNumber]);
|
|
@@ -37,7 +37,7 @@ export function getFetchMulticallWithValidGetBlockHashQueryOptions(chainId: numb
|
|
|
37
37
|
* @param {number} chainId - number
|
|
38
38
|
* @returns {string} coinbase - address
|
|
39
39
|
*/
|
|
40
|
-
export function fetchMulticallWithValidGetCurrentBlockCoinbase(chainId: number) {
|
|
40
|
+
export function fetchMulticallWithValidGetCurrentBlockCoinbase(chainId: number): Promise<string> {
|
|
41
41
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
42
42
|
|
|
43
43
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -59,7 +59,7 @@ export function getFetchMulticallWithValidGetCurrentBlockCoinbaseQueryOptions(ch
|
|
|
59
59
|
* @param {number} chainId - number
|
|
60
60
|
* @returns {bigint} difficulty - uint256
|
|
61
61
|
*/
|
|
62
|
-
export function fetchMulticallWithValidGetCurrentBlockDifficulty(chainId: number) {
|
|
62
|
+
export function fetchMulticallWithValidGetCurrentBlockDifficulty(chainId: number): Promise<bigint> {
|
|
63
63
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
64
64
|
|
|
65
65
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -81,7 +81,7 @@ export function getFetchMulticallWithValidGetCurrentBlockDifficultyQueryOptions(
|
|
|
81
81
|
* @param {number} chainId - number
|
|
82
82
|
* @returns {bigint} gaslimit - uint256
|
|
83
83
|
*/
|
|
84
|
-
export function fetchMulticallWithValidGetCurrentBlockGasLimit(chainId: number) {
|
|
84
|
+
export function fetchMulticallWithValidGetCurrentBlockGasLimit(chainId: number): Promise<bigint> {
|
|
85
85
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
86
86
|
|
|
87
87
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -103,7 +103,7 @@ export function getFetchMulticallWithValidGetCurrentBlockGasLimitQueryOptions(ch
|
|
|
103
103
|
* @param {number} chainId - number
|
|
104
104
|
* @returns {bigint} timestamp - uint256
|
|
105
105
|
*/
|
|
106
|
-
export function fetchMulticallWithValidGetCurrentBlockTimestamp(chainId: number) {
|
|
106
|
+
export function fetchMulticallWithValidGetCurrentBlockTimestamp(chainId: number): Promise<bigint> {
|
|
107
107
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
108
108
|
|
|
109
109
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -126,7 +126,7 @@ export function getFetchMulticallWithValidGetCurrentBlockTimestampQueryOptions(c
|
|
|
126
126
|
* @param {string} addr - address
|
|
127
127
|
* @returns {bigint} balance - uint256
|
|
128
128
|
*/
|
|
129
|
-
export function fetchMulticallWithValidGetEthBalance(chainId: number, addr: string) {
|
|
129
|
+
export function fetchMulticallWithValidGetEthBalance(chainId: number, addr: string): Promise<bigint> {
|
|
130
130
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
131
131
|
|
|
132
132
|
const __encodeData = defaultAbiCoder.encode(["address"], [addr]);
|
|
@@ -148,7 +148,7 @@ export function getFetchMulticallWithValidGetEthBalanceQueryOptions(chainId: num
|
|
|
148
148
|
* @param {number} chainId - number
|
|
149
149
|
* @returns {string} blockHash - bytes32
|
|
150
150
|
*/
|
|
151
|
-
export function fetchMulticallWithValidGetLastBlockHash(chainId: number) {
|
|
151
|
+
export function fetchMulticallWithValidGetLastBlockHash(chainId: number): Promise<string> {
|
|
152
152
|
const __to = getMulticallWithValidContractAddressByChainId(chainId);
|
|
153
153
|
|
|
154
154
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -10,7 +10,7 @@ import { contractRequests } from '../contractRequests';
|
|
|
10
10
|
* @param {string} __to - string
|
|
11
11
|
* @returns {string} __output0 - address
|
|
12
12
|
*/
|
|
13
|
-
export function fetchPermissionManager_NEW_OWNER_(chainId: number, __to: string) {
|
|
13
|
+
export function fetchPermissionManager_NEW_OWNER_(chainId: number, __to: string): Promise<string> {
|
|
14
14
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
15
15
|
const __data = hexlify(concat(['0x8456db15', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -31,7 +31,7 @@ export function getFetchPermissionManager_NEW_OWNER_QueryOptions(chainId: number
|
|
|
31
31
|
* @param {string} __to - string
|
|
32
32
|
* @returns {string} __output0 - address
|
|
33
33
|
*/
|
|
34
|
-
export function fetchPermissionManager_OWNER_(chainId: number, __to: string) {
|
|
34
|
+
export function fetchPermissionManager_OWNER_(chainId: number, __to: string): Promise<string> {
|
|
35
35
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
36
36
|
const __data = hexlify(concat(['0x16048bc4', __encodeData]));
|
|
37
37
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -52,7 +52,7 @@ export function getFetchPermissionManager_OWNER_QueryOptions(chainId: number | u
|
|
|
52
52
|
* @param {string} __to - string
|
|
53
53
|
* @returns {boolean} __output0 - bool
|
|
54
54
|
*/
|
|
55
|
-
export function fetchPermissionManager_WHITELIST_MODE_ON_(chainId: number, __to: string) {
|
|
55
|
+
export function fetchPermissionManager_WHITELIST_MODE_ON_(chainId: number, __to: string): Promise<boolean> {
|
|
56
56
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
57
57
|
const __data = hexlify(concat(['0x63e9cad6', __encodeData]));
|
|
58
58
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
@@ -74,7 +74,7 @@ export function getFetchPermissionManager_WHITELIST_MODE_ON_QueryOptions(chainId
|
|
|
74
74
|
* @param {string} account - address
|
|
75
75
|
* @returns {boolean} __output0 - bool
|
|
76
76
|
*/
|
|
77
|
-
export function fetchPermissionManagerIsAllowed(chainId: number, __to: string, account: string) {
|
|
77
|
+
export function fetchPermissionManagerIsAllowed(chainId: number, __to: string, account: string): Promise<boolean> {
|
|
78
78
|
const __encodeData = defaultAbiCoder.encode(["address"], [account]);
|
|
79
79
|
const __data = hexlify(concat(['0xbabcc539', __encodeData]));
|
|
80
80
|
return contractRequests.batchCall<boolean>(chainId, __to, __data, [{"internalType":"bool","name":"","type":"bool"}])
|
|
@@ -15,7 +15,7 @@ export function getUniswapV2FactoryContractAddressByChainId(chainId: number) {
|
|
|
15
15
|
* @param {number} __input1 - uint256
|
|
16
16
|
* @returns {string} __output0 - address
|
|
17
17
|
*/
|
|
18
|
-
export function fetchUniswapV2FactoryAllPairs(chainId: number, __input1: number) {
|
|
18
|
+
export function fetchUniswapV2FactoryAllPairs(chainId: number, __input1: number): Promise<string> {
|
|
19
19
|
const __to = getUniswapV2FactoryContractAddressByChainId(chainId);
|
|
20
20
|
|
|
21
21
|
const __encodeData = defaultAbiCoder.encode(["uint256"], [__input1]);
|
|
@@ -37,7 +37,7 @@ export function getFetchUniswapV2FactoryAllPairsQueryOptions(chainId: number | u
|
|
|
37
37
|
* @param {number} chainId - number
|
|
38
38
|
* @returns {bigint} __output0 - uint256
|
|
39
39
|
*/
|
|
40
|
-
export function fetchUniswapV2FactoryAllPairsLength(chainId: number) {
|
|
40
|
+
export function fetchUniswapV2FactoryAllPairsLength(chainId: number): Promise<bigint> {
|
|
41
41
|
const __to = getUniswapV2FactoryContractAddressByChainId(chainId);
|
|
42
42
|
|
|
43
43
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -59,7 +59,7 @@ export function getFetchUniswapV2FactoryAllPairsLengthQueryOptions(chainId: numb
|
|
|
59
59
|
* @param {number} chainId - number
|
|
60
60
|
* @returns {string} __output0 - address
|
|
61
61
|
*/
|
|
62
|
-
export function fetchUniswapV2FactoryFeeTo(chainId: number) {
|
|
62
|
+
export function fetchUniswapV2FactoryFeeTo(chainId: number): Promise<string> {
|
|
63
63
|
const __to = getUniswapV2FactoryContractAddressByChainId(chainId);
|
|
64
64
|
|
|
65
65
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -81,7 +81,7 @@ export function getFetchUniswapV2FactoryFeeToQueryOptions(chainId: number | unde
|
|
|
81
81
|
* @param {number} chainId - number
|
|
82
82
|
* @returns {string} __output0 - address
|
|
83
83
|
*/
|
|
84
|
-
export function fetchUniswapV2FactoryFeeToSetter(chainId: number) {
|
|
84
|
+
export function fetchUniswapV2FactoryFeeToSetter(chainId: number): Promise<string> {
|
|
85
85
|
const __to = getUniswapV2FactoryContractAddressByChainId(chainId);
|
|
86
86
|
|
|
87
87
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
@@ -106,7 +106,7 @@ export function getFetchUniswapV2FactoryFeeToSetterQueryOptions(chainId: number
|
|
|
106
106
|
* @param {number} __input3 - uint256
|
|
107
107
|
* @returns {string} __output0 - address
|
|
108
108
|
*/
|
|
109
|
-
export function fetchUniswapV2FactoryGetPair(chainId: number, __input1: string, __input2: string, __input3: number) {
|
|
109
|
+
export function fetchUniswapV2FactoryGetPair(chainId: number, __input1: string, __input2: string, __input3: number): Promise<string> {
|
|
110
110
|
const __to = getUniswapV2FactoryContractAddressByChainId(chainId);
|
|
111
111
|
|
|
112
112
|
const __encodeData = defaultAbiCoder.encode(["address","address","uint256"], [__input1,__input2,__input3]);
|
|
@@ -10,7 +10,7 @@ import { contractRequests } from '../contractRequests';
|
|
|
10
10
|
* @param {string} __to - string
|
|
11
11
|
* @returns {string} __output0 - bytes32
|
|
12
12
|
*/
|
|
13
|
-
export function fetchUniswapV2PairDOMAIN_SEPARATOR(chainId: number, __to: string) {
|
|
13
|
+
export function fetchUniswapV2PairDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string> {
|
|
14
14
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
15
15
|
const __data = hexlify(concat(['0x3644e515', __encodeData]));
|
|
16
16
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
@@ -31,7 +31,7 @@ export function getFetchUniswapV2PairDOMAIN_SEPARATORQueryOptions(chainId: numbe
|
|
|
31
31
|
* @param {string} __to - string
|
|
32
32
|
* @returns {bigint} __output0 - uint256
|
|
33
33
|
*/
|
|
34
|
-
export function fetchUniswapV2PairMINIMUM_LIQUIDITY(chainId: number, __to: string) {
|
|
34
|
+
export function fetchUniswapV2PairMINIMUM_LIQUIDITY(chainId: number, __to: string): Promise<bigint> {
|
|
35
35
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
36
36
|
const __data = hexlify(concat(['0xba9a7a56', __encodeData]));
|
|
37
37
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -52,7 +52,7 @@ export function getFetchUniswapV2PairMINIMUM_LIQUIDITYQueryOptions(chainId: numb
|
|
|
52
52
|
* @param {string} __to - string
|
|
53
53
|
* @returns {string} __output0 - bytes32
|
|
54
54
|
*/
|
|
55
|
-
export function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to: string) {
|
|
55
|
+
export function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to: string): Promise<string> {
|
|
56
56
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
57
57
|
const __data = hexlify(concat(['0x30adf81f', __encodeData]));
|
|
58
58
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"bytes32","name":"","type":"bytes32"}])
|
|
@@ -75,7 +75,7 @@ export function getFetchUniswapV2PairPERMIT_TYPEHASHQueryOptions(chainId: number
|
|
|
75
75
|
* @param {string} __input2 - address
|
|
76
76
|
* @returns {bigint} __output0 - uint256
|
|
77
77
|
*/
|
|
78
|
-
export function fetchUniswapV2PairAllowance(chainId: number, __to: string, __input1: string, __input2: string) {
|
|
78
|
+
export function fetchUniswapV2PairAllowance(chainId: number, __to: string, __input1: string, __input2: string): Promise<bigint> {
|
|
79
79
|
const __encodeData = defaultAbiCoder.encode(["address","address"], [__input1,__input2]);
|
|
80
80
|
const __data = hexlify(concat(['0xdd62ed3e', __encodeData]));
|
|
81
81
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -97,7 +97,7 @@ export function getFetchUniswapV2PairAllowanceQueryOptions(chainId: number | und
|
|
|
97
97
|
* @param {string} __input1 - address
|
|
98
98
|
* @returns {bigint} __output0 - uint256
|
|
99
99
|
*/
|
|
100
|
-
export function fetchUniswapV2PairBalanceOf(chainId: number, __to: string, __input1: string) {
|
|
100
|
+
export function fetchUniswapV2PairBalanceOf(chainId: number, __to: string, __input1: string): Promise<bigint> {
|
|
101
101
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
102
102
|
const __data = hexlify(concat(['0x70a08231', __encodeData]));
|
|
103
103
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -118,7 +118,7 @@ export function getFetchUniswapV2PairBalanceOfQueryOptions(chainId: number | und
|
|
|
118
118
|
* @param {string} __to - string
|
|
119
119
|
* @returns {bigint} __output0 - uint8
|
|
120
120
|
*/
|
|
121
|
-
export function fetchUniswapV2PairDecimals(chainId: number, __to: string) {
|
|
121
|
+
export function fetchUniswapV2PairDecimals(chainId: number, __to: string): Promise<bigint> {
|
|
122
122
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
123
123
|
const __data = hexlify(concat(['0x313ce567', __encodeData]));
|
|
124
124
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint8","name":"","type":"uint8"}])
|
|
@@ -139,7 +139,7 @@ export function getFetchUniswapV2PairDecimalsQueryOptions(chainId: number | unde
|
|
|
139
139
|
* @param {string} __to - string
|
|
140
140
|
* @returns {string} __output0 - address
|
|
141
141
|
*/
|
|
142
|
-
export function fetchUniswapV2PairFactory(chainId: number, __to: string) {
|
|
142
|
+
export function fetchUniswapV2PairFactory(chainId: number, __to: string): Promise<string> {
|
|
143
143
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
144
144
|
const __data = hexlify(concat(['0xc45a0155', __encodeData]));
|
|
145
145
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -160,7 +160,7 @@ export function getFetchUniswapV2PairFactoryQueryOptions(chainId: number | undef
|
|
|
160
160
|
* @param {string} __to - string
|
|
161
161
|
* @returns {bigint} __output0 - uint256
|
|
162
162
|
*/
|
|
163
|
-
export function fetchUniswapV2PairFeeRate(chainId: number, __to: string) {
|
|
163
|
+
export function fetchUniswapV2PairFeeRate(chainId: number, __to: string): Promise<bigint> {
|
|
164
164
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
165
165
|
const __data = hexlify(concat(['0x978bbdb9', __encodeData]));
|
|
166
166
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -183,7 +183,11 @@ export function getFetchUniswapV2PairFeeRateQueryOptions(chainId: number | undef
|
|
|
183
183
|
* @returns {bigint} _reserve1 - uint112
|
|
184
184
|
* @returns {bigint} _blockTimestampLast - uint32
|
|
185
185
|
*/
|
|
186
|
-
export function fetchUniswapV2PairGetReserves(chainId: number, __to: string) {
|
|
186
|
+
export function fetchUniswapV2PairGetReserves(chainId: number, __to: string): Promise<{
|
|
187
|
+
_reserve0: bigint;
|
|
188
|
+
_reserve1: bigint;
|
|
189
|
+
_blockTimestampLast: bigint;
|
|
190
|
+
}> {
|
|
187
191
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
188
192
|
const __data = hexlify(concat(['0x0902f1ac', __encodeData]));
|
|
189
193
|
return contractRequests.batchCall<{
|
|
@@ -208,7 +212,7 @@ export function getFetchUniswapV2PairGetReservesQueryOptions(chainId: number | u
|
|
|
208
212
|
* @param {string} __to - string
|
|
209
213
|
* @returns {bigint} __output0 - uint256
|
|
210
214
|
*/
|
|
211
|
-
export function fetchUniswapV2PairKLast(chainId: number, __to: string) {
|
|
215
|
+
export function fetchUniswapV2PairKLast(chainId: number, __to: string): Promise<bigint> {
|
|
212
216
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
213
217
|
const __data = hexlify(concat(['0x7464fc3d', __encodeData]));
|
|
214
218
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -229,7 +233,7 @@ export function getFetchUniswapV2PairKLastQueryOptions(chainId: number | undefin
|
|
|
229
233
|
* @param {string} __to - string
|
|
230
234
|
* @returns {bigint} __output0 - uint256
|
|
231
235
|
*/
|
|
232
|
-
export function fetchUniswapV2PairLpMtRatio(chainId: number, __to: string) {
|
|
236
|
+
export function fetchUniswapV2PairLpMtRatio(chainId: number, __to: string): Promise<bigint> {
|
|
233
237
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
234
238
|
const __data = hexlify(concat(['0x9670a8cb', __encodeData]));
|
|
235
239
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -250,7 +254,7 @@ export function getFetchUniswapV2PairLpMtRatioQueryOptions(chainId: number | und
|
|
|
250
254
|
* @param {string} __to - string
|
|
251
255
|
* @returns {string} __output0 - string
|
|
252
256
|
*/
|
|
253
|
-
export function fetchUniswapV2PairName(chainId: number, __to: string) {
|
|
257
|
+
export function fetchUniswapV2PairName(chainId: number, __to: string): Promise<string> {
|
|
254
258
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
255
259
|
const __data = hexlify(concat(['0x06fdde03', __encodeData]));
|
|
256
260
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -272,7 +276,7 @@ export function getFetchUniswapV2PairNameQueryOptions(chainId: number | undefine
|
|
|
272
276
|
* @param {string} __input1 - address
|
|
273
277
|
* @returns {bigint} __output0 - uint256
|
|
274
278
|
*/
|
|
275
|
-
export function fetchUniswapV2PairNonces(chainId: number, __to: string, __input1: string) {
|
|
279
|
+
export function fetchUniswapV2PairNonces(chainId: number, __to: string, __input1: string): Promise<bigint> {
|
|
276
280
|
const __encodeData = defaultAbiCoder.encode(["address"], [__input1]);
|
|
277
281
|
const __data = hexlify(concat(['0x7ecebe00', __encodeData]));
|
|
278
282
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -293,7 +297,7 @@ export function getFetchUniswapV2PairNoncesQueryOptions(chainId: number | undefi
|
|
|
293
297
|
* @param {string} __to - string
|
|
294
298
|
* @returns {bigint} __output0 - uint256
|
|
295
299
|
*/
|
|
296
|
-
export function fetchUniswapV2PairPrice0CumulativeLast(chainId: number, __to: string) {
|
|
300
|
+
export function fetchUniswapV2PairPrice0CumulativeLast(chainId: number, __to: string): Promise<bigint> {
|
|
297
301
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
298
302
|
const __data = hexlify(concat(['0x5909c0d5', __encodeData]));
|
|
299
303
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -314,7 +318,7 @@ export function getFetchUniswapV2PairPrice0CumulativeLastQueryOptions(chainId: n
|
|
|
314
318
|
* @param {string} __to - string
|
|
315
319
|
* @returns {bigint} __output0 - uint256
|
|
316
320
|
*/
|
|
317
|
-
export function fetchUniswapV2PairPrice1CumulativeLast(chainId: number, __to: string) {
|
|
321
|
+
export function fetchUniswapV2PairPrice1CumulativeLast(chainId: number, __to: string): Promise<bigint> {
|
|
318
322
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
319
323
|
const __data = hexlify(concat(['0x5a3d5493', __encodeData]));
|
|
320
324
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|
|
@@ -335,7 +339,7 @@ export function getFetchUniswapV2PairPrice1CumulativeLastQueryOptions(chainId: n
|
|
|
335
339
|
* @param {string} __to - string
|
|
336
340
|
* @returns {string} __output0 - string
|
|
337
341
|
*/
|
|
338
|
-
export function fetchUniswapV2PairSymbol(chainId: number, __to: string) {
|
|
342
|
+
export function fetchUniswapV2PairSymbol(chainId: number, __to: string): Promise<string> {
|
|
339
343
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
340
344
|
const __data = hexlify(concat(['0x95d89b41', __encodeData]));
|
|
341
345
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"string","name":"","type":"string"}])
|
|
@@ -356,7 +360,7 @@ export function getFetchUniswapV2PairSymbolQueryOptions(chainId: number | undefi
|
|
|
356
360
|
* @param {string} __to - string
|
|
357
361
|
* @returns {string} __output0 - address
|
|
358
362
|
*/
|
|
359
|
-
export function fetchUniswapV2PairToken0(chainId: number, __to: string) {
|
|
363
|
+
export function fetchUniswapV2PairToken0(chainId: number, __to: string): Promise<string> {
|
|
360
364
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
361
365
|
const __data = hexlify(concat(['0x0dfe1681', __encodeData]));
|
|
362
366
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -377,7 +381,7 @@ export function getFetchUniswapV2PairToken0QueryOptions(chainId: number | undefi
|
|
|
377
381
|
* @param {string} __to - string
|
|
378
382
|
* @returns {string} __output0 - address
|
|
379
383
|
*/
|
|
380
|
-
export function fetchUniswapV2PairToken1(chainId: number, __to: string) {
|
|
384
|
+
export function fetchUniswapV2PairToken1(chainId: number, __to: string): Promise<string> {
|
|
381
385
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
382
386
|
const __data = hexlify(concat(['0xd21220a7', __encodeData]));
|
|
383
387
|
return contractRequests.batchCall<string>(chainId, __to, __data, [{"internalType":"address","name":"","type":"address"}])
|
|
@@ -398,7 +402,7 @@ export function getFetchUniswapV2PairToken1QueryOptions(chainId: number | undefi
|
|
|
398
402
|
* @param {string} __to - string
|
|
399
403
|
* @returns {bigint} __output0 - uint256
|
|
400
404
|
*/
|
|
401
|
-
export function fetchUniswapV2PairTotalSupply(chainId: number, __to: string) {
|
|
405
|
+
export function fetchUniswapV2PairTotalSupply(chainId: number, __to: string): Promise<bigint> {
|
|
402
406
|
const __encodeData = defaultAbiCoder.encode([], []);
|
|
403
407
|
const __data = hexlify(concat(['0x18160ddd', __encodeData]));
|
|
404
408
|
return contractRequests.batchCall<bigint>(chainId, __to, __data, [{"internalType":"uint256","name":"","type":"uint256"}])
|