@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
|
@@ -4,66 +4,66 @@ export declare function getDSPFactoryContractAddressByChainId(chainId: number):
|
|
|
4
4
|
* @param {number} chainId - number
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDSPFactory_CLONE_FACTORY_(chainId: number):
|
|
7
|
+
export declare function fetchDSPFactory_CLONE_FACTORY_(chainId: number): Promise<string>;
|
|
8
8
|
export declare function getFetchDSPFactory_CLONE_FACTORY_QueryOptions(chainId: number | undefined): {
|
|
9
9
|
queryKey: (string | number | undefined)[];
|
|
10
10
|
enabled: boolean;
|
|
11
|
-
queryFn: () =>
|
|
11
|
+
queryFn: () => Promise<string>;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* fetch _DEFAULT_MAINTAINER_
|
|
15
15
|
* @param {number} chainId - number
|
|
16
16
|
* @returns {string} __output0 - address
|
|
17
17
|
*/
|
|
18
|
-
export declare function fetchDSPFactory_DEFAULT_MAINTAINER_(chainId: number):
|
|
18
|
+
export declare function fetchDSPFactory_DEFAULT_MAINTAINER_(chainId: number): Promise<string>;
|
|
19
19
|
export declare function getFetchDSPFactory_DEFAULT_MAINTAINER_QueryOptions(chainId: number | undefined): {
|
|
20
20
|
queryKey: (string | number | undefined)[];
|
|
21
21
|
enabled: boolean;
|
|
22
|
-
queryFn: () =>
|
|
22
|
+
queryFn: () => Promise<string>;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* fetch _DEFAULT_MT_FEE_RATE_MODEL_
|
|
26
26
|
* @param {number} chainId - number
|
|
27
27
|
* @returns {string} __output0 - address
|
|
28
28
|
*/
|
|
29
|
-
export declare function fetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId: number):
|
|
29
|
+
export declare function fetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_(chainId: number): Promise<string>;
|
|
30
30
|
export declare function getFetchDSPFactory_DEFAULT_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined): {
|
|
31
31
|
queryKey: (string | number | undefined)[];
|
|
32
32
|
enabled: boolean;
|
|
33
|
-
queryFn: () =>
|
|
33
|
+
queryFn: () => Promise<string>;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* fetch _DSP_TEMPLATE_
|
|
37
37
|
* @param {number} chainId - number
|
|
38
38
|
* @returns {string} __output0 - address
|
|
39
39
|
*/
|
|
40
|
-
export declare function fetchDSPFactory_DSP_TEMPLATE_(chainId: number):
|
|
40
|
+
export declare function fetchDSPFactory_DSP_TEMPLATE_(chainId: number): Promise<string>;
|
|
41
41
|
export declare function getFetchDSPFactory_DSP_TEMPLATE_QueryOptions(chainId: number | undefined): {
|
|
42
42
|
queryKey: (string | number | undefined)[];
|
|
43
43
|
enabled: boolean;
|
|
44
|
-
queryFn: () =>
|
|
44
|
+
queryFn: () => Promise<string>;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* fetch _NEW_OWNER_
|
|
48
48
|
* @param {number} chainId - number
|
|
49
49
|
* @returns {string} __output0 - address
|
|
50
50
|
*/
|
|
51
|
-
export declare function fetchDSPFactory_NEW_OWNER_(chainId: number):
|
|
51
|
+
export declare function fetchDSPFactory_NEW_OWNER_(chainId: number): Promise<string>;
|
|
52
52
|
export declare function getFetchDSPFactory_NEW_OWNER_QueryOptions(chainId: number | undefined): {
|
|
53
53
|
queryKey: (string | number | undefined)[];
|
|
54
54
|
enabled: boolean;
|
|
55
|
-
queryFn: () =>
|
|
55
|
+
queryFn: () => Promise<string>;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* fetch _OWNER_
|
|
59
59
|
* @param {number} chainId - number
|
|
60
60
|
* @returns {string} __output0 - address
|
|
61
61
|
*/
|
|
62
|
-
export declare function fetchDSPFactory_OWNER_(chainId: number):
|
|
62
|
+
export declare function fetchDSPFactory_OWNER_(chainId: number): Promise<string>;
|
|
63
63
|
export declare function getFetchDSPFactory_OWNER_QueryOptions(chainId: number | undefined): {
|
|
64
64
|
queryKey: (string | number | undefined)[];
|
|
65
65
|
enabled: boolean;
|
|
66
|
-
queryFn: () =>
|
|
66
|
+
queryFn: () => Promise<string>;
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
69
|
* fetch _REGISTRY_
|
|
@@ -73,11 +73,11 @@ export declare function getFetchDSPFactory_OWNER_QueryOptions(chainId: number |
|
|
|
73
73
|
* @param {number} __input3 - uint256
|
|
74
74
|
* @returns {string} __output0 - address
|
|
75
75
|
*/
|
|
76
|
-
export declare function fetchDSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number):
|
|
76
|
+
export declare function fetchDSPFactory_REGISTRY_(chainId: number, __input1: string, __input2: string, __input3: number): Promise<string>;
|
|
77
77
|
export declare function getFetchDSPFactory_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: string | undefined, __input3: number | undefined): {
|
|
78
78
|
queryKey: (string | number | undefined)[];
|
|
79
79
|
enabled: boolean;
|
|
80
|
-
queryFn: () =>
|
|
80
|
+
queryFn: () => Promise<string>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* fetch _USER_REGISTRY_
|
|
@@ -86,11 +86,11 @@ export declare function getFetchDSPFactory_REGISTRY_QueryOptions(chainId: number
|
|
|
86
86
|
* @param {number} __input2 - uint256
|
|
87
87
|
* @returns {string} __output0 - address
|
|
88
88
|
*/
|
|
89
|
-
export declare function fetchDSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number):
|
|
89
|
+
export declare function fetchDSPFactory_USER_REGISTRY_(chainId: number, __input1: string, __input2: number): Promise<string>;
|
|
90
90
|
export declare function getFetchDSPFactory_USER_REGISTRY_QueryOptions(chainId: number | undefined, __input1: string | undefined, __input2: number | undefined): {
|
|
91
91
|
queryKey: (string | number | undefined)[];
|
|
92
92
|
enabled: boolean;
|
|
93
|
-
queryFn: () =>
|
|
93
|
+
queryFn: () => Promise<string>;
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
96
96
|
* fetch getDODOPool
|
|
@@ -99,11 +99,11 @@ export declare function getFetchDSPFactory_USER_REGISTRY_QueryOptions(chainId: n
|
|
|
99
99
|
* @param {string} quoteToken - address
|
|
100
100
|
* @returns {Array<string>} machines - address[]
|
|
101
101
|
*/
|
|
102
|
-
export declare function fetchDSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string):
|
|
102
|
+
export declare function fetchDSPFactoryGetDODOPool(chainId: number, baseToken: string, quoteToken: string): Promise<Array<string>>;
|
|
103
103
|
export declare function getFetchDSPFactoryGetDODOPoolQueryOptions(chainId: number | undefined, baseToken: string | undefined, quoteToken: string | undefined): {
|
|
104
104
|
queryKey: (string | number | undefined)[];
|
|
105
105
|
enabled: boolean;
|
|
106
|
-
queryFn: () =>
|
|
106
|
+
queryFn: () => Promise<string[]>;
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* fetch getDODOPoolBidirection
|
|
@@ -113,11 +113,17 @@ export declare function getFetchDSPFactoryGetDODOPoolQueryOptions(chainId: numbe
|
|
|
113
113
|
* @returns {Array<string>} baseToken0Machines - address[]
|
|
114
114
|
* @returns {Array<string>} baseToken1Machines - address[]
|
|
115
115
|
*/
|
|
116
|
-
export declare function fetchDSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string):
|
|
116
|
+
export declare function fetchDSPFactoryGetDODOPoolBidirection(chainId: number, token0: string, token1: string): Promise<{
|
|
117
|
+
baseToken0Machines: Array<string>;
|
|
118
|
+
baseToken1Machines: Array<string>;
|
|
119
|
+
}>;
|
|
117
120
|
export declare function getFetchDSPFactoryGetDODOPoolBidirectionQueryOptions(chainId: number | undefined, token0: string | undefined, token1: string | undefined): {
|
|
118
121
|
queryKey: (string | number | undefined)[];
|
|
119
122
|
enabled: boolean;
|
|
120
|
-
queryFn: () =>
|
|
123
|
+
queryFn: () => Promise<{
|
|
124
|
+
baseToken0Machines: Array<string>;
|
|
125
|
+
baseToken1Machines: Array<string>;
|
|
126
|
+
}>;
|
|
121
127
|
};
|
|
122
128
|
/**
|
|
123
129
|
* fetch getDODOPoolByUser
|
|
@@ -125,11 +131,11 @@ export declare function getFetchDSPFactoryGetDODOPoolBidirectionQueryOptions(cha
|
|
|
125
131
|
* @param {string} user - address
|
|
126
132
|
* @returns {Array<string>} machines - address[]
|
|
127
133
|
*/
|
|
128
|
-
export declare function fetchDSPFactoryGetDODOPoolByUser(chainId: number, user: string):
|
|
134
|
+
export declare function fetchDSPFactoryGetDODOPoolByUser(chainId: number, user: string): Promise<Array<string>>;
|
|
129
135
|
export declare function getFetchDSPFactoryGetDODOPoolByUserQueryOptions(chainId: number | undefined, user: string | undefined): {
|
|
130
136
|
queryKey: (string | number | undefined)[];
|
|
131
137
|
enabled: boolean;
|
|
132
|
-
queryFn: () =>
|
|
138
|
+
queryFn: () => Promise<string[]>;
|
|
133
139
|
};
|
|
134
140
|
/**
|
|
135
141
|
* encode addPoolByAdmin
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - bytes32
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchDVMDOMAIN_SEPARATOR(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchDVMDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string>;
|
|
8
8
|
export declare function getFetchDVMDOMAIN_SEPARATORQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
9
|
queryKey: (string | number | undefined)[];
|
|
10
10
|
enabled: boolean;
|
|
11
|
-
queryFn: () =>
|
|
11
|
+
queryFn: () => Promise<string>;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* fetch PERMIT_TYPEHASH
|
|
@@ -16,11 +16,11 @@ export declare function getFetchDVMDOMAIN_SEPARATORQueryOptions(chainId: number
|
|
|
16
16
|
* @param {string} __to - string
|
|
17
17
|
* @returns {string} __output0 - bytes32
|
|
18
18
|
*/
|
|
19
|
-
export declare function fetchDVMPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
19
|
+
export declare function fetchDVMPERMIT_TYPEHASH(chainId: number, __to: string): Promise<string>;
|
|
20
20
|
export declare function getFetchDVMPERMIT_TYPEHASHQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
21
21
|
queryKey: (string | number | undefined)[];
|
|
22
22
|
enabled: boolean;
|
|
23
|
-
queryFn: () =>
|
|
23
|
+
queryFn: () => Promise<string>;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* fetch _BASE_PRICE_CUMULATIVE_LAST_
|
|
@@ -28,11 +28,11 @@ export declare function getFetchDVMPERMIT_TYPEHASHQueryOptions(chainId: number |
|
|
|
28
28
|
* @param {string} __to - string
|
|
29
29
|
* @returns {bigint} __output0 - uint256
|
|
30
30
|
*/
|
|
31
|
-
export declare function fetchDVM_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string):
|
|
31
|
+
export declare function fetchDVM_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): Promise<bigint>;
|
|
32
32
|
export declare function getFetchDVM_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
33
33
|
queryKey: (string | number | undefined)[];
|
|
34
34
|
enabled: boolean;
|
|
35
|
-
queryFn: () =>
|
|
35
|
+
queryFn: () => Promise<bigint>;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* fetch _BASE_RESERVE_
|
|
@@ -40,11 +40,11 @@ export declare function getFetchDVM_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chai
|
|
|
40
40
|
* @param {string} __to - string
|
|
41
41
|
* @returns {bigint} __output0 - uint112
|
|
42
42
|
*/
|
|
43
|
-
export declare function fetchDVM_BASE_RESERVE_(chainId: number, __to: string):
|
|
43
|
+
export declare function fetchDVM_BASE_RESERVE_(chainId: number, __to: string): Promise<bigint>;
|
|
44
44
|
export declare function getFetchDVM_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
45
45
|
queryKey: (string | number | undefined)[];
|
|
46
46
|
enabled: boolean;
|
|
47
|
-
queryFn: () =>
|
|
47
|
+
queryFn: () => Promise<bigint>;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* fetch _BASE_TOKEN_
|
|
@@ -52,11 +52,11 @@ export declare function getFetchDVM_BASE_RESERVE_QueryOptions(chainId: number |
|
|
|
52
52
|
* @param {string} __to - string
|
|
53
53
|
* @returns {string} __output0 - address
|
|
54
54
|
*/
|
|
55
|
-
export declare function fetchDVM_BASE_TOKEN_(chainId: number, __to: string):
|
|
55
|
+
export declare function fetchDVM_BASE_TOKEN_(chainId: number, __to: string): Promise<string>;
|
|
56
56
|
export declare function getFetchDVM_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
57
57
|
queryKey: (string | number | undefined)[];
|
|
58
58
|
enabled: boolean;
|
|
59
|
-
queryFn: () =>
|
|
59
|
+
queryFn: () => Promise<string>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
@@ -64,11 +64,11 @@ export declare function getFetchDVM_BASE_TOKEN_QueryOptions(chainId: number | un
|
|
|
64
64
|
* @param {string} __to - string
|
|
65
65
|
* @returns {bigint} __output0 - uint32
|
|
66
66
|
*/
|
|
67
|
-
export declare function fetchDVM_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string):
|
|
67
|
+
export declare function fetchDVM_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): Promise<bigint>;
|
|
68
68
|
export declare function getFetchDVM_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
69
69
|
queryKey: (string | number | undefined)[];
|
|
70
70
|
enabled: boolean;
|
|
71
|
-
queryFn: () =>
|
|
71
|
+
queryFn: () => Promise<bigint>;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* fetch _IS_OPEN_TWAP_
|
|
@@ -76,11 +76,11 @@ export declare function getFetchDVM_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: n
|
|
|
76
76
|
* @param {string} __to - string
|
|
77
77
|
* @returns {boolean} __output0 - bool
|
|
78
78
|
*/
|
|
79
|
-
export declare function fetchDVM_IS_OPEN_TWAP_(chainId: number, __to: string):
|
|
79
|
+
export declare function fetchDVM_IS_OPEN_TWAP_(chainId: number, __to: string): Promise<boolean>;
|
|
80
80
|
export declare function getFetchDVM_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
81
81
|
queryKey: (string | number | undefined)[];
|
|
82
82
|
enabled: boolean;
|
|
83
|
-
queryFn: () =>
|
|
83
|
+
queryFn: () => Promise<boolean>;
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
86
86
|
* fetch _I_
|
|
@@ -88,11 +88,11 @@ export declare function getFetchDVM_IS_OPEN_TWAP_QueryOptions(chainId: number |
|
|
|
88
88
|
* @param {string} __to - string
|
|
89
89
|
* @returns {bigint} __output0 - uint256
|
|
90
90
|
*/
|
|
91
|
-
export declare function fetchDVM_I_(chainId: number, __to: string):
|
|
91
|
+
export declare function fetchDVM_I_(chainId: number, __to: string): Promise<bigint>;
|
|
92
92
|
export declare function getFetchDVM_I_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
93
93
|
queryKey: (string | number | undefined)[];
|
|
94
94
|
enabled: boolean;
|
|
95
|
-
queryFn: () =>
|
|
95
|
+
queryFn: () => Promise<bigint>;
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* fetch _K_
|
|
@@ -100,11 +100,11 @@ export declare function getFetchDVM_I_QueryOptions(chainId: number | undefined,
|
|
|
100
100
|
* @param {string} __to - string
|
|
101
101
|
* @returns {bigint} __output0 - uint256
|
|
102
102
|
*/
|
|
103
|
-
export declare function fetchDVM_K_(chainId: number, __to: string):
|
|
103
|
+
export declare function fetchDVM_K_(chainId: number, __to: string): Promise<bigint>;
|
|
104
104
|
export declare function getFetchDVM_K_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
105
105
|
queryKey: (string | number | undefined)[];
|
|
106
106
|
enabled: boolean;
|
|
107
|
-
queryFn: () =>
|
|
107
|
+
queryFn: () => Promise<bigint>;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* fetch _LP_FEE_RATE_
|
|
@@ -112,11 +112,11 @@ export declare function getFetchDVM_K_QueryOptions(chainId: number | undefined,
|
|
|
112
112
|
* @param {string} __to - string
|
|
113
113
|
* @returns {bigint} __output0 - uint256
|
|
114
114
|
*/
|
|
115
|
-
export declare function fetchDVM_LP_FEE_RATE_(chainId: number, __to: string):
|
|
115
|
+
export declare function fetchDVM_LP_FEE_RATE_(chainId: number, __to: string): Promise<bigint>;
|
|
116
116
|
export declare function getFetchDVM_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
117
117
|
queryKey: (string | number | undefined)[];
|
|
118
118
|
enabled: boolean;
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => Promise<bigint>;
|
|
120
120
|
};
|
|
121
121
|
/**
|
|
122
122
|
* fetch _MAINTAINER_
|
|
@@ -124,11 +124,11 @@ export declare function getFetchDVM_LP_FEE_RATE_QueryOptions(chainId: number | u
|
|
|
124
124
|
* @param {string} __to - string
|
|
125
125
|
* @returns {string} __output0 - address
|
|
126
126
|
*/
|
|
127
|
-
export declare function fetchDVM_MAINTAINER_(chainId: number, __to: string):
|
|
127
|
+
export declare function fetchDVM_MAINTAINER_(chainId: number, __to: string): Promise<string>;
|
|
128
128
|
export declare function getFetchDVM_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
129
129
|
queryKey: (string | number | undefined)[];
|
|
130
130
|
enabled: boolean;
|
|
131
|
-
queryFn: () =>
|
|
131
|
+
queryFn: () => Promise<string>;
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
134
|
* fetch _MT_FEE_RATE_MODEL_
|
|
@@ -136,11 +136,11 @@ export declare function getFetchDVM_MAINTAINER_QueryOptions(chainId: number | un
|
|
|
136
136
|
* @param {string} __to - string
|
|
137
137
|
* @returns {string} __output0 - address
|
|
138
138
|
*/
|
|
139
|
-
export declare function fetchDVM_MT_FEE_RATE_MODEL_(chainId: number, __to: string):
|
|
139
|
+
export declare function fetchDVM_MT_FEE_RATE_MODEL_(chainId: number, __to: string): Promise<string>;
|
|
140
140
|
export declare function getFetchDVM_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
141
141
|
queryKey: (string | number | undefined)[];
|
|
142
142
|
enabled: boolean;
|
|
143
|
-
queryFn: () =>
|
|
143
|
+
queryFn: () => Promise<string>;
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
146
|
* fetch _QUOTE_RESERVE_
|
|
@@ -148,11 +148,11 @@ export declare function getFetchDVM_MT_FEE_RATE_MODEL_QueryOptions(chainId: numb
|
|
|
148
148
|
* @param {string} __to - string
|
|
149
149
|
* @returns {bigint} __output0 - uint112
|
|
150
150
|
*/
|
|
151
|
-
export declare function fetchDVM_QUOTE_RESERVE_(chainId: number, __to: string):
|
|
151
|
+
export declare function fetchDVM_QUOTE_RESERVE_(chainId: number, __to: string): Promise<bigint>;
|
|
152
152
|
export declare function getFetchDVM_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
153
153
|
queryKey: (string | number | undefined)[];
|
|
154
154
|
enabled: boolean;
|
|
155
|
-
queryFn: () =>
|
|
155
|
+
queryFn: () => Promise<bigint>;
|
|
156
156
|
};
|
|
157
157
|
/**
|
|
158
158
|
* fetch _QUOTE_TOKEN_
|
|
@@ -160,11 +160,11 @@ export declare function getFetchDVM_QUOTE_RESERVE_QueryOptions(chainId: number |
|
|
|
160
160
|
* @param {string} __to - string
|
|
161
161
|
* @returns {string} __output0 - address
|
|
162
162
|
*/
|
|
163
|
-
export declare function fetchDVM_QUOTE_TOKEN_(chainId: number, __to: string):
|
|
163
|
+
export declare function fetchDVM_QUOTE_TOKEN_(chainId: number, __to: string): Promise<string>;
|
|
164
164
|
export declare function getFetchDVM_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
165
165
|
queryKey: (string | number | undefined)[];
|
|
166
166
|
enabled: boolean;
|
|
167
|
-
queryFn: () =>
|
|
167
|
+
queryFn: () => Promise<string>;
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
170
170
|
* fetch addressToShortString
|
|
@@ -173,11 +173,11 @@ export declare function getFetchDVM_QUOTE_TOKEN_QueryOptions(chainId: number | u
|
|
|
173
173
|
* @param {string} _addr - address
|
|
174
174
|
* @returns {string} __output0 - string
|
|
175
175
|
*/
|
|
176
|
-
export declare function fetchDVMAddressToShortString(chainId: number, __to: string, _addr: string):
|
|
176
|
+
export declare function fetchDVMAddressToShortString(chainId: number, __to: string, _addr: string): Promise<string>;
|
|
177
177
|
export declare function getFetchDVMAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined): {
|
|
178
178
|
queryKey: (string | number | undefined)[];
|
|
179
179
|
enabled: boolean;
|
|
180
|
-
queryFn: () =>
|
|
180
|
+
queryFn: () => Promise<string>;
|
|
181
181
|
};
|
|
182
182
|
/**
|
|
183
183
|
* fetch allowance
|
|
@@ -187,11 +187,11 @@ export declare function getFetchDVMAddressToShortStringQueryOptions(chainId: num
|
|
|
187
187
|
* @param {string} spender - address
|
|
188
188
|
* @returns {bigint} __output0 - uint256
|
|
189
189
|
*/
|
|
190
|
-
export declare function fetchDVMAllowance(chainId: number, __to: string, owner: string, spender: string):
|
|
190
|
+
export declare function fetchDVMAllowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint>;
|
|
191
191
|
export declare function getFetchDVMAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined): {
|
|
192
192
|
queryKey: (string | number | undefined)[];
|
|
193
193
|
enabled: boolean;
|
|
194
|
-
queryFn: () =>
|
|
194
|
+
queryFn: () => Promise<bigint>;
|
|
195
195
|
};
|
|
196
196
|
/**
|
|
197
197
|
* fetch balanceOf
|
|
@@ -200,11 +200,11 @@ export declare function getFetchDVMAllowanceQueryOptions(chainId: number | undef
|
|
|
200
200
|
* @param {string} owner - address
|
|
201
201
|
* @returns {bigint} balance - uint256
|
|
202
202
|
*/
|
|
203
|
-
export declare function fetchDVMBalanceOf(chainId: number, __to: string, owner: string):
|
|
203
|
+
export declare function fetchDVMBalanceOf(chainId: number, __to: string, owner: string): Promise<bigint>;
|
|
204
204
|
export declare function getFetchDVMBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined): {
|
|
205
205
|
queryKey: (string | number | undefined)[];
|
|
206
206
|
enabled: boolean;
|
|
207
|
-
queryFn: () =>
|
|
207
|
+
queryFn: () => Promise<bigint>;
|
|
208
208
|
};
|
|
209
209
|
/**
|
|
210
210
|
* fetch decimals
|
|
@@ -212,11 +212,11 @@ export declare function getFetchDVMBalanceOfQueryOptions(chainId: number | undef
|
|
|
212
212
|
* @param {string} __to - string
|
|
213
213
|
* @returns {bigint} __output0 - uint8
|
|
214
214
|
*/
|
|
215
|
-
export declare function fetchDVMDecimals(chainId: number, __to: string):
|
|
215
|
+
export declare function fetchDVMDecimals(chainId: number, __to: string): Promise<bigint>;
|
|
216
216
|
export declare function getFetchDVMDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
217
217
|
queryKey: (string | number | undefined)[];
|
|
218
218
|
enabled: boolean;
|
|
219
|
-
queryFn: () =>
|
|
219
|
+
queryFn: () => Promise<bigint>;
|
|
220
220
|
};
|
|
221
221
|
/**
|
|
222
222
|
* fetch getBaseInput
|
|
@@ -224,11 +224,11 @@ export declare function getFetchDVMDecimalsQueryOptions(chainId: number | undefi
|
|
|
224
224
|
* @param {string} __to - string
|
|
225
225
|
* @returns {bigint} input - uint256
|
|
226
226
|
*/
|
|
227
|
-
export declare function fetchDVMGetBaseInput(chainId: number, __to: string):
|
|
227
|
+
export declare function fetchDVMGetBaseInput(chainId: number, __to: string): Promise<bigint>;
|
|
228
228
|
export declare function getFetchDVMGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
229
229
|
queryKey: (string | number | undefined)[];
|
|
230
230
|
enabled: boolean;
|
|
231
|
-
queryFn: () =>
|
|
231
|
+
queryFn: () => Promise<bigint>;
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
234
234
|
* fetch getMidPrice
|
|
@@ -236,11 +236,11 @@ export declare function getFetchDVMGetBaseInputQueryOptions(chainId: number | un
|
|
|
236
236
|
* @param {string} __to - string
|
|
237
237
|
* @returns {bigint} midPrice - uint256
|
|
238
238
|
*/
|
|
239
|
-
export declare function fetchDVMGetMidPrice(chainId: number, __to: string):
|
|
239
|
+
export declare function fetchDVMGetMidPrice(chainId: number, __to: string): Promise<bigint>;
|
|
240
240
|
export declare function getFetchDVMGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
241
241
|
queryKey: (string | number | undefined)[];
|
|
242
242
|
enabled: boolean;
|
|
243
|
-
queryFn: () =>
|
|
243
|
+
queryFn: () => Promise<bigint>;
|
|
244
244
|
};
|
|
245
245
|
/**
|
|
246
246
|
* fetch getPMMState
|
|
@@ -248,11 +248,27 @@ export declare function getFetchDVMGetMidPriceQueryOptions(chainId: number | und
|
|
|
248
248
|
* @param {string} __to - string
|
|
249
249
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
250
250
|
*/
|
|
251
|
-
export declare function fetchDVMGetPMMState(chainId: number, __to: string):
|
|
251
|
+
export declare function fetchDVMGetPMMState(chainId: number, __to: string): Promise<{
|
|
252
|
+
i: bigint;
|
|
253
|
+
K: bigint;
|
|
254
|
+
B: bigint;
|
|
255
|
+
Q: bigint;
|
|
256
|
+
B0: bigint;
|
|
257
|
+
Q0: bigint;
|
|
258
|
+
R: bigint;
|
|
259
|
+
}>;
|
|
252
260
|
export declare function getFetchDVMGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
253
261
|
queryKey: (string | number | undefined)[];
|
|
254
262
|
enabled: boolean;
|
|
255
|
-
queryFn: () =>
|
|
263
|
+
queryFn: () => Promise<{
|
|
264
|
+
i: bigint;
|
|
265
|
+
K: bigint;
|
|
266
|
+
B: bigint;
|
|
267
|
+
Q: bigint;
|
|
268
|
+
B0: bigint;
|
|
269
|
+
Q0: bigint;
|
|
270
|
+
R: bigint;
|
|
271
|
+
}>;
|
|
256
272
|
};
|
|
257
273
|
/**
|
|
258
274
|
* fetch getPMMStateForCall
|
|
@@ -266,11 +282,27 @@ export declare function getFetchDVMGetPMMStateQueryOptions(chainId: number | und
|
|
|
266
282
|
* @returns {bigint} Q0 - uint256
|
|
267
283
|
* @returns {bigint} R - uint256
|
|
268
284
|
*/
|
|
269
|
-
export declare function fetchDVMGetPMMStateForCall(chainId: number, __to: string):
|
|
285
|
+
export declare function fetchDVMGetPMMStateForCall(chainId: number, __to: string): Promise<{
|
|
286
|
+
i: bigint;
|
|
287
|
+
K: bigint;
|
|
288
|
+
B: bigint;
|
|
289
|
+
Q: bigint;
|
|
290
|
+
B0: bigint;
|
|
291
|
+
Q0: bigint;
|
|
292
|
+
R: bigint;
|
|
293
|
+
}>;
|
|
270
294
|
export declare function getFetchDVMGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
271
295
|
queryKey: (string | number | undefined)[];
|
|
272
296
|
enabled: boolean;
|
|
273
|
-
queryFn: () =>
|
|
297
|
+
queryFn: () => Promise<{
|
|
298
|
+
i: bigint;
|
|
299
|
+
K: bigint;
|
|
300
|
+
B: bigint;
|
|
301
|
+
Q: bigint;
|
|
302
|
+
B0: bigint;
|
|
303
|
+
Q0: bigint;
|
|
304
|
+
R: bigint;
|
|
305
|
+
}>;
|
|
274
306
|
};
|
|
275
307
|
/**
|
|
276
308
|
* fetch getQuoteInput
|
|
@@ -278,11 +310,11 @@ export declare function getFetchDVMGetPMMStateForCallQueryOptions(chainId: numbe
|
|
|
278
310
|
* @param {string} __to - string
|
|
279
311
|
* @returns {bigint} input - uint256
|
|
280
312
|
*/
|
|
281
|
-
export declare function fetchDVMGetQuoteInput(chainId: number, __to: string):
|
|
313
|
+
export declare function fetchDVMGetQuoteInput(chainId: number, __to: string): Promise<bigint>;
|
|
282
314
|
export declare function getFetchDVMGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
283
315
|
queryKey: (string | number | undefined)[];
|
|
284
316
|
enabled: boolean;
|
|
285
|
-
queryFn: () =>
|
|
317
|
+
queryFn: () => Promise<bigint>;
|
|
286
318
|
};
|
|
287
319
|
/**
|
|
288
320
|
* fetch getUserFeeRate
|
|
@@ -292,11 +324,17 @@ export declare function getFetchDVMGetQuoteInputQueryOptions(chainId: number | u
|
|
|
292
324
|
* @returns {bigint} lpFeeRate - uint256
|
|
293
325
|
* @returns {bigint} mtFeeRate - uint256
|
|
294
326
|
*/
|
|
295
|
-
export declare function fetchDVMGetUserFeeRate(chainId: number, __to: string, user: string):
|
|
327
|
+
export declare function fetchDVMGetUserFeeRate(chainId: number, __to: string, user: string): Promise<{
|
|
328
|
+
lpFeeRate: bigint;
|
|
329
|
+
mtFeeRate: bigint;
|
|
330
|
+
}>;
|
|
296
331
|
export declare function getFetchDVMGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
|
|
297
332
|
queryKey: (string | number | undefined)[];
|
|
298
333
|
enabled: boolean;
|
|
299
|
-
queryFn: () =>
|
|
334
|
+
queryFn: () => Promise<{
|
|
335
|
+
lpFeeRate: bigint;
|
|
336
|
+
mtFeeRate: bigint;
|
|
337
|
+
}>;
|
|
300
338
|
};
|
|
301
339
|
/**
|
|
302
340
|
* fetch getVaultReserve
|
|
@@ -305,11 +343,17 @@ export declare function getFetchDVMGetUserFeeRateQueryOptions(chainId: number |
|
|
|
305
343
|
* @returns {bigint} baseReserve - uint256
|
|
306
344
|
* @returns {bigint} quoteReserve - uint256
|
|
307
345
|
*/
|
|
308
|
-
export declare function fetchDVMGetVaultReserve(chainId: number, __to: string):
|
|
346
|
+
export declare function fetchDVMGetVaultReserve(chainId: number, __to: string): Promise<{
|
|
347
|
+
baseReserve: bigint;
|
|
348
|
+
quoteReserve: bigint;
|
|
349
|
+
}>;
|
|
309
350
|
export declare function getFetchDVMGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
310
351
|
queryKey: (string | number | undefined)[];
|
|
311
352
|
enabled: boolean;
|
|
312
|
-
queryFn: () =>
|
|
353
|
+
queryFn: () => Promise<{
|
|
354
|
+
baseReserve: bigint;
|
|
355
|
+
quoteReserve: bigint;
|
|
356
|
+
}>;
|
|
313
357
|
};
|
|
314
358
|
/**
|
|
315
359
|
* fetch name
|
|
@@ -317,11 +361,11 @@ export declare function getFetchDVMGetVaultReserveQueryOptions(chainId: number |
|
|
|
317
361
|
* @param {string} __to - string
|
|
318
362
|
* @returns {string} __output0 - string
|
|
319
363
|
*/
|
|
320
|
-
export declare function fetchDVMName(chainId: number, __to: string):
|
|
364
|
+
export declare function fetchDVMName(chainId: number, __to: string): Promise<string>;
|
|
321
365
|
export declare function getFetchDVMNameQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
322
366
|
queryKey: (string | number | undefined)[];
|
|
323
367
|
enabled: boolean;
|
|
324
|
-
queryFn: () =>
|
|
368
|
+
queryFn: () => Promise<string>;
|
|
325
369
|
};
|
|
326
370
|
/**
|
|
327
371
|
* fetch nonces
|
|
@@ -330,11 +374,11 @@ export declare function getFetchDVMNameQueryOptions(chainId: number | undefined,
|
|
|
330
374
|
* @param {string} __input1 - address
|
|
331
375
|
* @returns {bigint} __output0 - uint256
|
|
332
376
|
*/
|
|
333
|
-
export declare function fetchDVMNonces(chainId: number, __to: string, __input1: string):
|
|
377
|
+
export declare function fetchDVMNonces(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
334
378
|
export declare function getFetchDVMNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
335
379
|
queryKey: (string | number | undefined)[];
|
|
336
380
|
enabled: boolean;
|
|
337
|
-
queryFn: () =>
|
|
381
|
+
queryFn: () => Promise<bigint>;
|
|
338
382
|
};
|
|
339
383
|
/**
|
|
340
384
|
* fetch querySellBase
|
|
@@ -345,11 +389,17 @@ export declare function getFetchDVMNoncesQueryOptions(chainId: number | undefine
|
|
|
345
389
|
* @returns {bigint} receiveQuoteAmount - uint256
|
|
346
390
|
* @returns {bigint} mtFee - uint256
|
|
347
391
|
*/
|
|
348
|
-
export declare function fetchDVMQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number):
|
|
392
|
+
export declare function fetchDVMQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): Promise<{
|
|
393
|
+
receiveQuoteAmount: bigint;
|
|
394
|
+
mtFee: bigint;
|
|
395
|
+
}>;
|
|
349
396
|
export declare function getFetchDVMQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined): {
|
|
350
397
|
queryKey: (string | number | undefined)[];
|
|
351
398
|
enabled: boolean;
|
|
352
|
-
queryFn: () =>
|
|
399
|
+
queryFn: () => Promise<{
|
|
400
|
+
receiveQuoteAmount: bigint;
|
|
401
|
+
mtFee: bigint;
|
|
402
|
+
}>;
|
|
353
403
|
};
|
|
354
404
|
/**
|
|
355
405
|
* fetch querySellQuote
|
|
@@ -360,11 +410,17 @@ export declare function getFetchDVMQuerySellBaseQueryOptions(chainId: number | u
|
|
|
360
410
|
* @returns {bigint} receiveBaseAmount - uint256
|
|
361
411
|
* @returns {bigint} mtFee - uint256
|
|
362
412
|
*/
|
|
363
|
-
export declare function fetchDVMQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number):
|
|
413
|
+
export declare function fetchDVMQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): Promise<{
|
|
414
|
+
receiveBaseAmount: bigint;
|
|
415
|
+
mtFee: bigint;
|
|
416
|
+
}>;
|
|
364
417
|
export declare function getFetchDVMQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined): {
|
|
365
418
|
queryKey: (string | number | undefined)[];
|
|
366
419
|
enabled: boolean;
|
|
367
|
-
queryFn: () =>
|
|
420
|
+
queryFn: () => Promise<{
|
|
421
|
+
receiveBaseAmount: bigint;
|
|
422
|
+
mtFee: bigint;
|
|
423
|
+
}>;
|
|
368
424
|
};
|
|
369
425
|
/**
|
|
370
426
|
* fetch symbol
|
|
@@ -372,11 +428,11 @@ export declare function getFetchDVMQuerySellQuoteQueryOptions(chainId: number |
|
|
|
372
428
|
* @param {string} __to - string
|
|
373
429
|
* @returns {string} __output0 - string
|
|
374
430
|
*/
|
|
375
|
-
export declare function fetchDVMSymbol(chainId: number, __to: string):
|
|
431
|
+
export declare function fetchDVMSymbol(chainId: number, __to: string): Promise<string>;
|
|
376
432
|
export declare function getFetchDVMSymbolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
377
433
|
queryKey: (string | number | undefined)[];
|
|
378
434
|
enabled: boolean;
|
|
379
|
-
queryFn: () =>
|
|
435
|
+
queryFn: () => Promise<string>;
|
|
380
436
|
};
|
|
381
437
|
/**
|
|
382
438
|
* fetch totalSupply
|
|
@@ -384,11 +440,11 @@ export declare function getFetchDVMSymbolQueryOptions(chainId: number | undefine
|
|
|
384
440
|
* @param {string} __to - string
|
|
385
441
|
* @returns {bigint} __output0 - uint256
|
|
386
442
|
*/
|
|
387
|
-
export declare function fetchDVMTotalSupply(chainId: number, __to: string):
|
|
443
|
+
export declare function fetchDVMTotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
388
444
|
export declare function getFetchDVMTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
389
445
|
queryKey: (string | number | undefined)[];
|
|
390
446
|
enabled: boolean;
|
|
391
|
-
queryFn: () =>
|
|
447
|
+
queryFn: () => Promise<bigint>;
|
|
392
448
|
};
|
|
393
449
|
/**
|
|
394
450
|
* fetch version
|
|
@@ -396,11 +452,11 @@ export declare function getFetchDVMTotalSupplyQueryOptions(chainId: number | und
|
|
|
396
452
|
* @param {string} __to - string
|
|
397
453
|
* @returns {string} __output0 - string
|
|
398
454
|
*/
|
|
399
|
-
export declare function fetchDVMVersion(chainId: number, __to: string):
|
|
455
|
+
export declare function fetchDVMVersion(chainId: number, __to: string): Promise<string>;
|
|
400
456
|
export declare function getFetchDVMVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
401
457
|
queryKey: (string | number | undefined)[];
|
|
402
458
|
enabled: boolean;
|
|
403
|
-
queryFn: () =>
|
|
459
|
+
queryFn: () => Promise<string>;
|
|
404
460
|
};
|
|
405
461
|
/**
|
|
406
462
|
* encode approve
|