@dodoex/dodo-contract-request 1.5.0 → 1.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.releaserc.json +8 -3
- package/CHANGELOG.md +15 -25
- package/contract-config/sepolia.json +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +42 -12
- package/dist/types/contract/CP.d.ts +214 -50
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +126 -34
- package/dist/types/contract/CustomERC20.d.ts +75 -20
- package/dist/types/contract/CustomMintableERC20.d.ts +77 -22
- package/dist/types/contract/D3Proxy.d.ts +33 -13
- package/dist/types/contract/D3Vault.d.ts +324 -123
- package/dist/types/contract/DODOApprove.d.ts +44 -14
- package/dist/types/contract/DODOApproveProxy.d.ts +51 -16
- package/dist/types/contract/DODOCalleeHelper.d.ts +10 -5
- package/dist/types/contract/DODOCirculationHelper.d.ts +47 -12
- package/dist/types/contract/DODOCpProxy.d.ts +20 -5
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +20 -5
- package/dist/types/contract/DODODppProxy.d.ts +20 -5
- package/dist/types/contract/DODODspProxy.d.ts +27 -7
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +20 -5
- package/dist/types/contract/DODOIncentive.d.ts +75 -26
- package/dist/types/contract/DODOMineV2Factory.d.ts +50 -15
- package/dist/types/contract/DODOMineV3Proxy.d.ts +43 -13
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +43 -13
- package/dist/types/contract/DODOMineV3Registry.d.ts +43 -13
- package/dist/types/contract/DODONFT.d.ts +95 -25
- package/dist/types/contract/DODONFT1155.d.ts +56 -16
- package/dist/types/contract/DODONFTApprove.d.ts +47 -17
- package/dist/types/contract/DODONFTPoolProxy.d.ts +74 -24
- package/dist/types/contract/DODONFTProxy.d.ts +84 -24
- package/dist/types/contract/DODONFTRegistry.d.ts +49 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +12 -2
- package/dist/types/contract/DODOSellHelper.d.ts +12 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +13 -3
- package/dist/types/contract/DODOV1.d.ts +269 -77
- package/dist/types/contract/DODOV1Adapter.d.ts +8 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +6 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +13 -8
- package/dist/types/contract/DODOV2Proxy02.d.ts +97 -32
- package/dist/types/contract/DODOV2RouteHelper.d.ts +24 -4
- package/dist/types/contract/DPPAdvanced.d.ts +172 -69
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +51 -16
- package/dist/types/contract/DPPFactory.d.ts +97 -30
- package/dist/types/contract/DSP.d.ts +221 -78
- package/dist/types/contract/DSPFactory.d.ts +73 -21
- package/dist/types/contract/DVM.d.ts +203 -71
- package/dist/types/contract/DVMFactory.d.ts +73 -21
- package/dist/types/contract/ERC20.d.ts +41 -11
- package/dist/types/contract/ERC20Helper.d.ts +24 -23
- package/dist/types/contract/ERC20MineV3.d.ts +91 -36
- package/dist/types/contract/ERC20V3Factory.d.ts +77 -26
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +71 -30
- package/dist/types/contract/FeeRateModel.d.ts +28 -8
- package/dist/types/contract/GSP.d.ts +265 -95
- package/dist/types/contract/GSPFactory.d.ts +68 -21
- package/dist/types/contract/InitializableERC20.d.ts +46 -11
- package/dist/types/contract/LimitOrder.d.ts +71 -21
- package/dist/types/contract/LimitOrderBot.d.ts +45 -15
- package/dist/types/contract/MulticallWithValid.d.ts +43 -8
- package/dist/types/contract/PermissionManager.d.ts +33 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +34 -9
- package/dist/types/contract/UniswapV2Pair.d.ts +126 -35
- package/dist/types/contract/UniswapV2Router02.d.ts +59 -24
- package/dist/types/contract/dodoTeam.d.ts +100 -33
- package/dist/types/contract/vDODOToken.d.ts +196 -58
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/scripts/contract-generate.ts +8 -1
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +60 -0
- package/src/contract/CP.ts +340 -0
- package/src/contract/CrowdPoolingFactory.ts +190 -0
- package/src/contract/CustomERC20.ts +110 -0
- package/src/contract/CustomMintableERC20.ts +110 -0
- package/src/contract/D3Proxy.ts +40 -0
- package/src/contract/D3Vault.ts +480 -0
- package/src/contract/DODOApprove.ts +60 -0
- package/src/contract/DODOApproveProxy.ts +70 -0
- package/src/contract/DODOCalleeHelper.ts +10 -0
- package/src/contract/DODOCirculationHelper.ts +70 -0
- package/src/contract/DODOCpProxy.ts +30 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +30 -0
- package/src/contract/DODODppProxy.ts +30 -0
- package/src/contract/DODODspProxy.ts +40 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +30 -0
- package/src/contract/DODOIncentive.ts +110 -0
- package/src/contract/DODOMineV2Factory.ts +70 -0
- package/src/contract/DODOMineV3Proxy.ts +60 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +60 -0
- package/src/contract/DODOMineV3Registry.ts +60 -0
- package/src/contract/DODONFT.ts +140 -0
- package/src/contract/DODONFT1155.ts +80 -0
- package/src/contract/DODONFTApprove.ts +60 -0
- package/src/contract/DODONFTPoolProxy.ts +100 -0
- package/src/contract/DODONFTProxy.ts +120 -0
- package/src/contract/DODONFTRegistry.ts +70 -0
- package/src/contract/DODONFTRouteHelper.ts +20 -0
- package/src/contract/DODOSellHelper.ts +20 -0
- package/src/contract/DODOStarterProxy.ts +20 -0
- package/src/contract/DODOV1.ts +390 -0
- package/src/contract/DODOV1Adapter.ts +10 -0
- package/src/contract/DODOV1PmmHelper.ts +10 -0
- package/src/contract/DODOV1Proxy.ts +10 -0
- package/src/contract/DODOV2Proxy02.ts +130 -0
- package/src/contract/DODOV2RouteHelper.ts +40 -0
- package/src/contract/DPPAdvanced.ts +270 -0
- package/src/contract/DPPAdvancedAdmin.ts +70 -0
- package/src/contract/DPPFactory.ts +140 -0
- package/src/contract/DSP.ts +350 -0
- package/src/contract/DSPFactory.ts +110 -0
- package/src/contract/DVM.ts +320 -0
- package/src/contract/DVMFactory.ts +110 -0
- package/src/contract/ERC20.ts +60 -0
- package/src/contract/ERC20Helper.ts +40 -0
- package/src/contract/ERC20MineV3.ts +130 -0
- package/src/contract/ERC20V3Factory.ts +110 -0
- package/src/contract/FeeRateDIP3Impl.ts +100 -0
- package/src/contract/FeeRateModel.ts +40 -0
- package/src/contract/GSP.ts +410 -0
- package/src/contract/GSPFactory.ts +100 -0
- package/src/contract/InitializableERC20.ts +70 -0
- package/src/contract/LimitOrder.ts +100 -0
- package/src/contract/LimitOrderBot.ts +60 -0
- package/src/contract/MulticallWithValid.ts +70 -0
- package/src/contract/PermissionManager.ts +40 -0
- package/src/contract/UniswapV2Factory.ts +51 -1
- package/src/contract/UniswapV2Pair.ts +190 -0
- package/src/contract/UniswapV2Router02.ts +71 -1
- package/src/contract/dodoTeam.ts +140 -0
- package/src/contract/vDODOToken.ts +300 -0
- package/src/index.ts +2 -1
|
@@ -4,154 +4,264 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - bytes32
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchGSPDOMAIN_SEPARATOR(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchGSPDOMAIN_SEPARATOR(chainId: number, __to: string): any;
|
|
8
|
+
export declare function getFetchGSPDOMAIN_SEPARATORQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
9
|
+
queryKey: (string | number | undefined)[];
|
|
10
|
+
enabled: boolean[];
|
|
11
|
+
queryFn: () => any;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* fetch PERMIT_TYPEHASH
|
|
10
15
|
* @param {number} chainId - number
|
|
11
16
|
* @param {string} __to - string
|
|
12
17
|
* @returns {string} __output0 - bytes32
|
|
13
18
|
*/
|
|
14
|
-
export declare function fetchGSPPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
19
|
+
export declare function fetchGSPPERMIT_TYPEHASH(chainId: number, __to: string): any;
|
|
20
|
+
export declare function getFetchGSPPERMIT_TYPEHASHQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
21
|
+
queryKey: (string | number | undefined)[];
|
|
22
|
+
enabled: boolean[];
|
|
23
|
+
queryFn: () => any;
|
|
24
|
+
};
|
|
15
25
|
/**
|
|
16
26
|
* fetch _ADMIN_
|
|
17
27
|
* @param {number} chainId - number
|
|
18
28
|
* @param {string} __to - string
|
|
19
29
|
* @returns {string} __output0 - address
|
|
20
30
|
*/
|
|
21
|
-
export declare function fetchGSP_ADMIN_(chainId: number, __to: string):
|
|
31
|
+
export declare function fetchGSP_ADMIN_(chainId: number, __to: string): any;
|
|
32
|
+
export declare function getFetchGSP_ADMIN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
33
|
+
queryKey: (string | number | undefined)[];
|
|
34
|
+
enabled: boolean[];
|
|
35
|
+
queryFn: () => any;
|
|
36
|
+
};
|
|
22
37
|
/**
|
|
23
38
|
* fetch _BASE_PRICE_CUMULATIVE_LAST_
|
|
24
39
|
* @param {number} chainId - number
|
|
25
40
|
* @param {string} __to - string
|
|
26
41
|
* @returns {bigint} __output0 - uint256
|
|
27
42
|
*/
|
|
28
|
-
export declare function fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string):
|
|
43
|
+
export declare function fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): any;
|
|
44
|
+
export declare function getFetchGSP_BASE_PRICE_CUMULATIVE_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
45
|
+
queryKey: (string | number | undefined)[];
|
|
46
|
+
enabled: boolean[];
|
|
47
|
+
queryFn: () => any;
|
|
48
|
+
};
|
|
29
49
|
/**
|
|
30
50
|
* fetch _BASE_RESERVE_
|
|
31
51
|
* @param {number} chainId - number
|
|
32
52
|
* @param {string} __to - string
|
|
33
53
|
* @returns {bigint} __output0 - uint112
|
|
34
54
|
*/
|
|
35
|
-
export declare function fetchGSP_BASE_RESERVE_(chainId: number, __to: string):
|
|
55
|
+
export declare function fetchGSP_BASE_RESERVE_(chainId: number, __to: string): any;
|
|
56
|
+
export declare function getFetchGSP_BASE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
57
|
+
queryKey: (string | number | undefined)[];
|
|
58
|
+
enabled: boolean[];
|
|
59
|
+
queryFn: () => any;
|
|
60
|
+
};
|
|
36
61
|
/**
|
|
37
62
|
* fetch _BASE_TARGET_
|
|
38
63
|
* @param {number} chainId - number
|
|
39
64
|
* @param {string} __to - string
|
|
40
65
|
* @returns {bigint} __output0 - uint112
|
|
41
66
|
*/
|
|
42
|
-
export declare function fetchGSP_BASE_TARGET_(chainId: number, __to: string):
|
|
67
|
+
export declare function fetchGSP_BASE_TARGET_(chainId: number, __to: string): any;
|
|
68
|
+
export declare function getFetchGSP_BASE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
69
|
+
queryKey: (string | number | undefined)[];
|
|
70
|
+
enabled: boolean[];
|
|
71
|
+
queryFn: () => any;
|
|
72
|
+
};
|
|
43
73
|
/**
|
|
44
74
|
* fetch _BASE_TOKEN_
|
|
45
75
|
* @param {number} chainId - number
|
|
46
76
|
* @param {string} __to - string
|
|
47
77
|
* @returns {string} __output0 - address
|
|
48
78
|
*/
|
|
49
|
-
export declare function fetchGSP_BASE_TOKEN_(chainId: number, __to: string):
|
|
79
|
+
export declare function fetchGSP_BASE_TOKEN_(chainId: number, __to: string): any;
|
|
80
|
+
export declare function getFetchGSP_BASE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
81
|
+
queryKey: (string | number | undefined)[];
|
|
82
|
+
enabled: boolean[];
|
|
83
|
+
queryFn: () => any;
|
|
84
|
+
};
|
|
50
85
|
/**
|
|
51
86
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
52
87
|
* @param {number} chainId - number
|
|
53
88
|
* @param {string} __to - string
|
|
54
89
|
* @returns {bigint} __output0 - uint32
|
|
55
90
|
*/
|
|
56
|
-
export declare function fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string):
|
|
91
|
+
export declare function fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): any;
|
|
92
|
+
export declare function getFetchGSP_BLOCK_TIMESTAMP_LAST_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
93
|
+
queryKey: (string | number | undefined)[];
|
|
94
|
+
enabled: boolean[];
|
|
95
|
+
queryFn: () => any;
|
|
96
|
+
};
|
|
57
97
|
/**
|
|
58
98
|
* fetch _IS_OPEN_TWAP_
|
|
59
99
|
* @param {number} chainId - number
|
|
60
100
|
* @param {string} __to - string
|
|
61
101
|
* @returns {boolean} __output0 - bool
|
|
62
102
|
*/
|
|
63
|
-
export declare function fetchGSP_IS_OPEN_TWAP_(chainId: number, __to: string):
|
|
103
|
+
export declare function fetchGSP_IS_OPEN_TWAP_(chainId: number, __to: string): any;
|
|
104
|
+
export declare function getFetchGSP_IS_OPEN_TWAP_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
105
|
+
queryKey: (string | number | undefined)[];
|
|
106
|
+
enabled: boolean[];
|
|
107
|
+
queryFn: () => any;
|
|
108
|
+
};
|
|
64
109
|
/**
|
|
65
110
|
* fetch _I_
|
|
66
111
|
* @param {number} chainId - number
|
|
67
112
|
* @param {string} __to - string
|
|
68
113
|
* @returns {bigint} __output0 - uint256
|
|
69
114
|
*/
|
|
70
|
-
export declare function fetchGSP_I_(chainId: number, __to: string):
|
|
115
|
+
export declare function fetchGSP_I_(chainId: number, __to: string): any;
|
|
116
|
+
export declare function getFetchGSP_I_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
117
|
+
queryKey: (string | number | undefined)[];
|
|
118
|
+
enabled: boolean[];
|
|
119
|
+
queryFn: () => any;
|
|
120
|
+
};
|
|
71
121
|
/**
|
|
72
122
|
* fetch _K_
|
|
73
123
|
* @param {number} chainId - number
|
|
74
124
|
* @param {string} __to - string
|
|
75
125
|
* @returns {bigint} __output0 - uint256
|
|
76
126
|
*/
|
|
77
|
-
export declare function fetchGSP_K_(chainId: number, __to: string):
|
|
127
|
+
export declare function fetchGSP_K_(chainId: number, __to: string): any;
|
|
128
|
+
export declare function getFetchGSP_K_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
129
|
+
queryKey: (string | number | undefined)[];
|
|
130
|
+
enabled: boolean[];
|
|
131
|
+
queryFn: () => any;
|
|
132
|
+
};
|
|
78
133
|
/**
|
|
79
134
|
* fetch _LP_FEE_RATE_
|
|
80
135
|
* @param {number} chainId - number
|
|
81
136
|
* @param {string} __to - string
|
|
82
137
|
* @returns {bigint} __output0 - uint256
|
|
83
138
|
*/
|
|
84
|
-
export declare function fetchGSP_LP_FEE_RATE_(chainId: number, __to: string):
|
|
139
|
+
export declare function fetchGSP_LP_FEE_RATE_(chainId: number, __to: string): any;
|
|
140
|
+
export declare function getFetchGSP_LP_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
141
|
+
queryKey: (string | number | undefined)[];
|
|
142
|
+
enabled: boolean[];
|
|
143
|
+
queryFn: () => any;
|
|
144
|
+
};
|
|
85
145
|
/**
|
|
86
146
|
* fetch _MAINTAINER_
|
|
87
147
|
* @param {number} chainId - number
|
|
88
148
|
* @param {string} __to - string
|
|
89
149
|
* @returns {string} __output0 - address
|
|
90
150
|
*/
|
|
91
|
-
export declare function fetchGSP_MAINTAINER_(chainId: number, __to: string):
|
|
151
|
+
export declare function fetchGSP_MAINTAINER_(chainId: number, __to: string): any;
|
|
152
|
+
export declare function getFetchGSP_MAINTAINER_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
153
|
+
queryKey: (string | number | undefined)[];
|
|
154
|
+
enabled: boolean[];
|
|
155
|
+
queryFn: () => any;
|
|
156
|
+
};
|
|
92
157
|
/**
|
|
93
158
|
* fetch _MT_FEE_BASE_
|
|
94
159
|
* @param {number} chainId - number
|
|
95
160
|
* @param {string} __to - string
|
|
96
161
|
* @returns {bigint} __output0 - uint256
|
|
97
162
|
*/
|
|
98
|
-
export declare function fetchGSP_MT_FEE_BASE_(chainId: number, __to: string):
|
|
163
|
+
export declare function fetchGSP_MT_FEE_BASE_(chainId: number, __to: string): any;
|
|
164
|
+
export declare function getFetchGSP_MT_FEE_BASE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
165
|
+
queryKey: (string | number | undefined)[];
|
|
166
|
+
enabled: boolean[];
|
|
167
|
+
queryFn: () => any;
|
|
168
|
+
};
|
|
99
169
|
/**
|
|
100
170
|
* fetch _MT_FEE_QUOTE_
|
|
101
171
|
* @param {number} chainId - number
|
|
102
172
|
* @param {string} __to - string
|
|
103
173
|
* @returns {bigint} __output0 - uint256
|
|
104
174
|
*/
|
|
105
|
-
export declare function fetchGSP_MT_FEE_QUOTE_(chainId: number, __to: string):
|
|
175
|
+
export declare function fetchGSP_MT_FEE_QUOTE_(chainId: number, __to: string): any;
|
|
176
|
+
export declare function getFetchGSP_MT_FEE_QUOTE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
177
|
+
queryKey: (string | number | undefined)[];
|
|
178
|
+
enabled: boolean[];
|
|
179
|
+
queryFn: () => any;
|
|
180
|
+
};
|
|
106
181
|
/**
|
|
107
182
|
* fetch _MT_FEE_RATE_
|
|
108
183
|
* @param {number} chainId - number
|
|
109
184
|
* @param {string} __to - string
|
|
110
185
|
* @returns {bigint} __output0 - uint256
|
|
111
186
|
*/
|
|
112
|
-
export declare function fetchGSP_MT_FEE_RATE_(chainId: number, __to: string):
|
|
187
|
+
export declare function fetchGSP_MT_FEE_RATE_(chainId: number, __to: string): any;
|
|
188
|
+
export declare function getFetchGSP_MT_FEE_RATE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
189
|
+
queryKey: (string | number | undefined)[];
|
|
190
|
+
enabled: boolean[];
|
|
191
|
+
queryFn: () => any;
|
|
192
|
+
};
|
|
113
193
|
/**
|
|
114
194
|
* fetch _MT_FEE_RATE_MODEL_
|
|
115
195
|
* @param {number} chainId - number
|
|
116
196
|
* @param {string} __to - string
|
|
117
197
|
* @returns {string} __output0 - address
|
|
118
198
|
*/
|
|
119
|
-
export declare function fetchGSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string):
|
|
199
|
+
export declare function fetchGSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string): any;
|
|
200
|
+
export declare function getFetchGSP_MT_FEE_RATE_MODEL_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
201
|
+
queryKey: (string | number | undefined)[];
|
|
202
|
+
enabled: boolean[];
|
|
203
|
+
queryFn: () => any;
|
|
204
|
+
};
|
|
120
205
|
/**
|
|
121
206
|
* fetch _PRICE_LIMIT_
|
|
122
207
|
* @param {number} chainId - number
|
|
123
208
|
* @param {string} __to - string
|
|
124
209
|
* @returns {bigint} __output0 - uint256
|
|
125
210
|
*/
|
|
126
|
-
export declare function fetchGSP_PRICE_LIMIT_(chainId: number, __to: string):
|
|
211
|
+
export declare function fetchGSP_PRICE_LIMIT_(chainId: number, __to: string): any;
|
|
212
|
+
export declare function getFetchGSP_PRICE_LIMIT_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
213
|
+
queryKey: (string | number | undefined)[];
|
|
214
|
+
enabled: boolean[];
|
|
215
|
+
queryFn: () => any;
|
|
216
|
+
};
|
|
127
217
|
/**
|
|
128
218
|
* fetch _QUOTE_RESERVE_
|
|
129
219
|
* @param {number} chainId - number
|
|
130
220
|
* @param {string} __to - string
|
|
131
221
|
* @returns {bigint} __output0 - uint112
|
|
132
222
|
*/
|
|
133
|
-
export declare function fetchGSP_QUOTE_RESERVE_(chainId: number, __to: string):
|
|
223
|
+
export declare function fetchGSP_QUOTE_RESERVE_(chainId: number, __to: string): any;
|
|
224
|
+
export declare function getFetchGSP_QUOTE_RESERVE_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
225
|
+
queryKey: (string | number | undefined)[];
|
|
226
|
+
enabled: boolean[];
|
|
227
|
+
queryFn: () => any;
|
|
228
|
+
};
|
|
134
229
|
/**
|
|
135
230
|
* fetch _QUOTE_TARGET_
|
|
136
231
|
* @param {number} chainId - number
|
|
137
232
|
* @param {string} __to - string
|
|
138
233
|
* @returns {bigint} __output0 - uint112
|
|
139
234
|
*/
|
|
140
|
-
export declare function fetchGSP_QUOTE_TARGET_(chainId: number, __to: string):
|
|
235
|
+
export declare function fetchGSP_QUOTE_TARGET_(chainId: number, __to: string): any;
|
|
236
|
+
export declare function getFetchGSP_QUOTE_TARGET_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
237
|
+
queryKey: (string | number | undefined)[];
|
|
238
|
+
enabled: boolean[];
|
|
239
|
+
queryFn: () => any;
|
|
240
|
+
};
|
|
141
241
|
/**
|
|
142
242
|
* fetch _QUOTE_TOKEN_
|
|
143
243
|
* @param {number} chainId - number
|
|
144
244
|
* @param {string} __to - string
|
|
145
245
|
* @returns {string} __output0 - address
|
|
146
246
|
*/
|
|
147
|
-
export declare function fetchGSP_QUOTE_TOKEN_(chainId: number, __to: string):
|
|
247
|
+
export declare function fetchGSP_QUOTE_TOKEN_(chainId: number, __to: string): any;
|
|
248
|
+
export declare function getFetchGSP_QUOTE_TOKEN_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
249
|
+
queryKey: (string | number | undefined)[];
|
|
250
|
+
enabled: boolean[];
|
|
251
|
+
queryFn: () => any;
|
|
252
|
+
};
|
|
148
253
|
/**
|
|
149
254
|
* fetch _RState_
|
|
150
255
|
* @param {number} chainId - number
|
|
151
256
|
* @param {string} __to - string
|
|
152
257
|
* @returns {bigint} __output0 - uint32
|
|
153
258
|
*/
|
|
154
|
-
export declare function fetchGSP_RState_(chainId: number, __to: string):
|
|
259
|
+
export declare function fetchGSP_RState_(chainId: number, __to: string): any;
|
|
260
|
+
export declare function getFetchGSP_RState_QueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
261
|
+
queryKey: (string | number | undefined)[];
|
|
262
|
+
enabled: boolean[];
|
|
263
|
+
queryFn: () => any;
|
|
264
|
+
};
|
|
155
265
|
/**
|
|
156
266
|
* fetch addressToShortString
|
|
157
267
|
* @param {number} chainId - number
|
|
@@ -159,7 +269,12 @@ export declare function fetchGSP_RState_(chainId: number, __to: string): Promise
|
|
|
159
269
|
* @param {string} _addr - address
|
|
160
270
|
* @returns {string} __output0 - string
|
|
161
271
|
*/
|
|
162
|
-
export declare function fetchGSPAddressToShortString(chainId: number, __to: string, _addr: string):
|
|
272
|
+
export declare function fetchGSPAddressToShortString(chainId: number, __to: string, _addr: string): any;
|
|
273
|
+
export declare function getFetchGSPAddressToShortStringQueryOptions(chainId: number | undefined, __to: string | undefined, _addr: string | undefined): {
|
|
274
|
+
queryKey: (string | number | undefined)[];
|
|
275
|
+
enabled: boolean[];
|
|
276
|
+
queryFn: () => any;
|
|
277
|
+
};
|
|
163
278
|
/**
|
|
164
279
|
* fetch allowance
|
|
165
280
|
* @param {number} chainId - number
|
|
@@ -168,7 +283,12 @@ export declare function fetchGSPAddressToShortString(chainId: number, __to: stri
|
|
|
168
283
|
* @param {string} spender - address
|
|
169
284
|
* @returns {bigint} __output0 - uint256
|
|
170
285
|
*/
|
|
171
|
-
export declare function fetchGSPAllowance(chainId: number, __to: string, owner: string, spender: string):
|
|
286
|
+
export declare function fetchGSPAllowance(chainId: number, __to: string, owner: string, spender: string): any;
|
|
287
|
+
export declare function getFetchGSPAllowanceQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined, spender: string | undefined): {
|
|
288
|
+
queryKey: (string | number | undefined)[];
|
|
289
|
+
enabled: boolean[];
|
|
290
|
+
queryFn: () => any;
|
|
291
|
+
};
|
|
172
292
|
/**
|
|
173
293
|
* fetch balanceOf
|
|
174
294
|
* @param {number} chainId - number
|
|
@@ -176,28 +296,48 @@ export declare function fetchGSPAllowance(chainId: number, __to: string, owner:
|
|
|
176
296
|
* @param {string} owner - address
|
|
177
297
|
* @returns {bigint} balance - uint256
|
|
178
298
|
*/
|
|
179
|
-
export declare function fetchGSPBalanceOf(chainId: number, __to: string, owner: string):
|
|
299
|
+
export declare function fetchGSPBalanceOf(chainId: number, __to: string, owner: string): any;
|
|
300
|
+
export declare function getFetchGSPBalanceOfQueryOptions(chainId: number | undefined, __to: string | undefined, owner: string | undefined): {
|
|
301
|
+
queryKey: (string | number | undefined)[];
|
|
302
|
+
enabled: boolean[];
|
|
303
|
+
queryFn: () => any;
|
|
304
|
+
};
|
|
180
305
|
/**
|
|
181
306
|
* fetch decimals
|
|
182
307
|
* @param {number} chainId - number
|
|
183
308
|
* @param {string} __to - string
|
|
184
309
|
* @returns {bigint} __output0 - uint8
|
|
185
310
|
*/
|
|
186
|
-
export declare function fetchGSPDecimals(chainId: number, __to: string):
|
|
311
|
+
export declare function fetchGSPDecimals(chainId: number, __to: string): any;
|
|
312
|
+
export declare function getFetchGSPDecimalsQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
313
|
+
queryKey: (string | number | undefined)[];
|
|
314
|
+
enabled: boolean[];
|
|
315
|
+
queryFn: () => any;
|
|
316
|
+
};
|
|
187
317
|
/**
|
|
188
318
|
* fetch getBaseInput
|
|
189
319
|
* @param {number} chainId - number
|
|
190
320
|
* @param {string} __to - string
|
|
191
321
|
* @returns {bigint} input - uint256
|
|
192
322
|
*/
|
|
193
|
-
export declare function fetchGSPGetBaseInput(chainId: number, __to: string):
|
|
323
|
+
export declare function fetchGSPGetBaseInput(chainId: number, __to: string): any;
|
|
324
|
+
export declare function getFetchGSPGetBaseInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
325
|
+
queryKey: (string | number | undefined)[];
|
|
326
|
+
enabled: boolean[];
|
|
327
|
+
queryFn: () => any;
|
|
328
|
+
};
|
|
194
329
|
/**
|
|
195
330
|
* fetch getMidPrice
|
|
196
331
|
* @param {number} chainId - number
|
|
197
332
|
* @param {string} __to - string
|
|
198
333
|
* @returns {bigint} midPrice - uint256
|
|
199
334
|
*/
|
|
200
|
-
export declare function fetchGSPGetMidPrice(chainId: number, __to: string):
|
|
335
|
+
export declare function fetchGSPGetMidPrice(chainId: number, __to: string): any;
|
|
336
|
+
export declare function getFetchGSPGetMidPriceQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
337
|
+
queryKey: (string | number | undefined)[];
|
|
338
|
+
enabled: boolean[];
|
|
339
|
+
queryFn: () => any;
|
|
340
|
+
};
|
|
201
341
|
/**
|
|
202
342
|
* fetch getMtFeeTotal
|
|
203
343
|
* @param {number} chainId - number
|
|
@@ -205,25 +345,24 @@ export declare function fetchGSPGetMidPrice(chainId: number, __to: string): Prom
|
|
|
205
345
|
* @returns {bigint} mtFeeBase - uint256
|
|
206
346
|
* @returns {bigint} mtFeeQuote - uint256
|
|
207
347
|
*/
|
|
208
|
-
export declare function fetchGSPGetMtFeeTotal(chainId: number, __to: string):
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
348
|
+
export declare function fetchGSPGetMtFeeTotal(chainId: number, __to: string): any;
|
|
349
|
+
export declare function getFetchGSPGetMtFeeTotalQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
350
|
+
queryKey: (string | number | undefined)[];
|
|
351
|
+
enabled: boolean[];
|
|
352
|
+
queryFn: () => any;
|
|
353
|
+
};
|
|
212
354
|
/**
|
|
213
355
|
* fetch getPMMState
|
|
214
356
|
* @param {number} chainId - number
|
|
215
357
|
* @param {string} __to - string
|
|
216
358
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
217
359
|
*/
|
|
218
|
-
export declare function fetchGSPGetPMMState(chainId: number, __to: string):
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
Q0: bigint;
|
|
225
|
-
R: bigint;
|
|
226
|
-
}>;
|
|
360
|
+
export declare function fetchGSPGetPMMState(chainId: number, __to: string): any;
|
|
361
|
+
export declare function getFetchGSPGetPMMStateQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
362
|
+
queryKey: (string | number | undefined)[];
|
|
363
|
+
enabled: boolean[];
|
|
364
|
+
queryFn: () => any;
|
|
365
|
+
};
|
|
227
366
|
/**
|
|
228
367
|
* fetch getPMMStateForCall
|
|
229
368
|
* @param {number} chainId - number
|
|
@@ -236,22 +375,24 @@ export declare function fetchGSPGetPMMState(chainId: number, __to: string): Prom
|
|
|
236
375
|
* @returns {bigint} Q0 - uint256
|
|
237
376
|
* @returns {bigint} R - uint256
|
|
238
377
|
*/
|
|
239
|
-
export declare function fetchGSPGetPMMStateForCall(chainId: number, __to: string):
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
Q0: bigint;
|
|
246
|
-
R: bigint;
|
|
247
|
-
}>;
|
|
378
|
+
export declare function fetchGSPGetPMMStateForCall(chainId: number, __to: string): any;
|
|
379
|
+
export declare function getFetchGSPGetPMMStateForCallQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
380
|
+
queryKey: (string | number | undefined)[];
|
|
381
|
+
enabled: boolean[];
|
|
382
|
+
queryFn: () => any;
|
|
383
|
+
};
|
|
248
384
|
/**
|
|
249
385
|
* fetch getQuoteInput
|
|
250
386
|
* @param {number} chainId - number
|
|
251
387
|
* @param {string} __to - string
|
|
252
388
|
* @returns {bigint} input - uint256
|
|
253
389
|
*/
|
|
254
|
-
export declare function fetchGSPGetQuoteInput(chainId: number, __to: string):
|
|
390
|
+
export declare function fetchGSPGetQuoteInput(chainId: number, __to: string): any;
|
|
391
|
+
export declare function getFetchGSPGetQuoteInputQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
392
|
+
queryKey: (string | number | undefined)[];
|
|
393
|
+
enabled: boolean[];
|
|
394
|
+
queryFn: () => any;
|
|
395
|
+
};
|
|
255
396
|
/**
|
|
256
397
|
* fetch getUserFeeRate
|
|
257
398
|
* @param {number} chainId - number
|
|
@@ -260,10 +401,12 @@ export declare function fetchGSPGetQuoteInput(chainId: number, __to: string): Pr
|
|
|
260
401
|
* @returns {bigint} lpFeeRate - uint256
|
|
261
402
|
* @returns {bigint} mtFeeRate - uint256
|
|
262
403
|
*/
|
|
263
|
-
export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, user: string):
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
404
|
+
export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, user: string): any;
|
|
405
|
+
export declare function getFetchGSPGetUserFeeRateQueryOptions(chainId: number | undefined, __to: string | undefined, user: string | undefined): {
|
|
406
|
+
queryKey: (string | number | undefined)[];
|
|
407
|
+
enabled: boolean[];
|
|
408
|
+
queryFn: () => any;
|
|
409
|
+
};
|
|
267
410
|
/**
|
|
268
411
|
* fetch getVaultReserve
|
|
269
412
|
* @param {number} chainId - number
|
|
@@ -271,17 +414,24 @@ export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, us
|
|
|
271
414
|
* @returns {bigint} baseReserve - uint256
|
|
272
415
|
* @returns {bigint} quoteReserve - uint256
|
|
273
416
|
*/
|
|
274
|
-
export declare function fetchGSPGetVaultReserve(chainId: number, __to: string):
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
417
|
+
export declare function fetchGSPGetVaultReserve(chainId: number, __to: string): any;
|
|
418
|
+
export declare function getFetchGSPGetVaultReserveQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
419
|
+
queryKey: (string | number | undefined)[];
|
|
420
|
+
enabled: boolean[];
|
|
421
|
+
queryFn: () => any;
|
|
422
|
+
};
|
|
278
423
|
/**
|
|
279
424
|
* fetch name
|
|
280
425
|
* @param {number} chainId - number
|
|
281
426
|
* @param {string} __to - string
|
|
282
427
|
* @returns {string} __output0 - string
|
|
283
428
|
*/
|
|
284
|
-
export declare function fetchGSPName(chainId: number, __to: string):
|
|
429
|
+
export declare function fetchGSPName(chainId: number, __to: string): any;
|
|
430
|
+
export declare function getFetchGSPNameQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
431
|
+
queryKey: (string | number | undefined)[];
|
|
432
|
+
enabled: boolean[];
|
|
433
|
+
queryFn: () => any;
|
|
434
|
+
};
|
|
285
435
|
/**
|
|
286
436
|
* fetch nonces
|
|
287
437
|
* @param {number} chainId - number
|
|
@@ -289,7 +439,12 @@ export declare function fetchGSPName(chainId: number, __to: string): Promise<str
|
|
|
289
439
|
* @param {string} __input1 - address
|
|
290
440
|
* @returns {bigint} __output0 - uint256
|
|
291
441
|
*/
|
|
292
|
-
export declare function fetchGSPNonces(chainId: number, __to: string, __input1: string):
|
|
442
|
+
export declare function fetchGSPNonces(chainId: number, __to: string, __input1: string): any;
|
|
443
|
+
export declare function getFetchGSPNoncesQueryOptions(chainId: number | undefined, __to: string | undefined, __input1: string | undefined): {
|
|
444
|
+
queryKey: (string | number | undefined)[];
|
|
445
|
+
enabled: boolean[];
|
|
446
|
+
queryFn: () => any;
|
|
447
|
+
};
|
|
293
448
|
/**
|
|
294
449
|
* fetch querySellBase
|
|
295
450
|
* @param {number} chainId - number
|
|
@@ -301,12 +456,12 @@ export declare function fetchGSPNonces(chainId: number, __to: string, __input1:
|
|
|
301
456
|
* @returns {bigint} newRState - uint8
|
|
302
457
|
* @returns {bigint} newBaseTarget - uint256
|
|
303
458
|
*/
|
|
304
|
-
export declare function fetchGSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number):
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
459
|
+
export declare function fetchGSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): any;
|
|
460
|
+
export declare function getFetchGSPQuerySellBaseQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payBaseAmount: number | undefined): {
|
|
461
|
+
queryKey: (string | number | undefined)[];
|
|
462
|
+
enabled: boolean[];
|
|
463
|
+
queryFn: () => any;
|
|
464
|
+
};
|
|
310
465
|
/**
|
|
311
466
|
* fetch querySellQuote
|
|
312
467
|
* @param {number} chainId - number
|
|
@@ -318,88 +473,103 @@ export declare function fetchGSPQuerySellBase(chainId: number, __to: string, tra
|
|
|
318
473
|
* @returns {bigint} newRState - uint8
|
|
319
474
|
* @returns {bigint} newQuoteTarget - uint256
|
|
320
475
|
*/
|
|
321
|
-
export declare function fetchGSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number):
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
476
|
+
export declare function fetchGSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): any;
|
|
477
|
+
export declare function getFetchGSPQuerySellQuoteQueryOptions(chainId: number | undefined, __to: string | undefined, trader: string | undefined, payQuoteAmount: number | undefined): {
|
|
478
|
+
queryKey: (string | number | undefined)[];
|
|
479
|
+
enabled: boolean[];
|
|
480
|
+
queryFn: () => any;
|
|
481
|
+
};
|
|
327
482
|
/**
|
|
328
483
|
* fetch symbol
|
|
329
484
|
* @param {number} chainId - number
|
|
330
485
|
* @param {string} __to - string
|
|
331
486
|
* @returns {string} __output0 - string
|
|
332
487
|
*/
|
|
333
|
-
export declare function fetchGSPSymbol(chainId: number, __to: string):
|
|
488
|
+
export declare function fetchGSPSymbol(chainId: number, __to: string): any;
|
|
489
|
+
export declare function getFetchGSPSymbolQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
490
|
+
queryKey: (string | number | undefined)[];
|
|
491
|
+
enabled: boolean[];
|
|
492
|
+
queryFn: () => any;
|
|
493
|
+
};
|
|
334
494
|
/**
|
|
335
495
|
* fetch totalSupply
|
|
336
496
|
* @param {number} chainId - number
|
|
337
497
|
* @param {string} __to - string
|
|
338
498
|
* @returns {bigint} __output0 - uint256
|
|
339
499
|
*/
|
|
340
|
-
export declare function fetchGSPTotalSupply(chainId: number, __to: string):
|
|
500
|
+
export declare function fetchGSPTotalSupply(chainId: number, __to: string): any;
|
|
501
|
+
export declare function getFetchGSPTotalSupplyQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
502
|
+
queryKey: (string | number | undefined)[];
|
|
503
|
+
enabled: boolean[];
|
|
504
|
+
queryFn: () => any;
|
|
505
|
+
};
|
|
341
506
|
/**
|
|
342
507
|
* fetch version
|
|
343
508
|
* @param {number} chainId - number
|
|
344
509
|
* @param {string} __to - string
|
|
345
510
|
* @returns {string} __output0 - string
|
|
346
511
|
*/
|
|
347
|
-
export declare function fetchGSPVersion(chainId: number, __to: string):
|
|
512
|
+
export declare function fetchGSPVersion(chainId: number, __to: string): any;
|
|
513
|
+
export declare function getFetchGSPVersionQueryOptions(chainId: number | undefined, __to: string | undefined): {
|
|
514
|
+
queryKey: (string | number | undefined)[];
|
|
515
|
+
enabled: boolean[];
|
|
516
|
+
queryFn: () => any;
|
|
517
|
+
};
|
|
348
518
|
/**
|
|
349
519
|
* encode adjustK
|
|
350
520
|
* @param {string | number} k - uint256
|
|
351
521
|
* @returns {string} encode data
|
|
352
522
|
*/
|
|
353
|
-
export declare function encodeGSPAdjustK(k: string | number):
|
|
523
|
+
export declare function encodeGSPAdjustK(k: string | number): any;
|
|
354
524
|
/**
|
|
355
525
|
* encode adjustLpFeeRate
|
|
356
526
|
* @param {string | number} lpFeeRate - uint256
|
|
357
527
|
* @returns {string} encode data
|
|
358
528
|
*/
|
|
359
|
-
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate: string | number):
|
|
529
|
+
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate: string | number): any;
|
|
360
530
|
/**
|
|
361
531
|
* encode adjustMtFeeRate
|
|
362
532
|
* @param {string | number} mtFeeRate - uint256
|
|
363
533
|
* @returns {string} encode data
|
|
364
534
|
*/
|
|
365
|
-
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate: string | number):
|
|
535
|
+
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate: string | number): any;
|
|
366
536
|
/**
|
|
367
537
|
* encode adjustPrice
|
|
368
538
|
* @param {string | number} i - uint256
|
|
369
539
|
* @returns {string} encode data
|
|
370
540
|
*/
|
|
371
|
-
export declare function encodeGSPAdjustPrice(i: string | number):
|
|
541
|
+
export declare function encodeGSPAdjustPrice(i: string | number): any;
|
|
372
542
|
/**
|
|
373
543
|
* encode adjustPriceLimit
|
|
374
544
|
* @param {string | number} priceLimit - uint256
|
|
375
545
|
* @returns {string} encode data
|
|
376
546
|
*/
|
|
377
|
-
export declare function encodeGSPAdjustPriceLimit(priceLimit: string | number):
|
|
547
|
+
export declare function encodeGSPAdjustPriceLimit(priceLimit: string | number): any;
|
|
378
548
|
/**
|
|
379
549
|
* encode approve
|
|
380
550
|
* @param {string} spender - address
|
|
381
551
|
* @param {string | number} amount - uint256
|
|
382
552
|
* @returns {string} encode data
|
|
383
553
|
*/
|
|
384
|
-
export declare function encodeGSPApprove(spender: string, amount: string | number):
|
|
554
|
+
export declare function encodeGSPApprove(spender: string, amount: string | number): any;
|
|
385
555
|
/**
|
|
386
556
|
* encode buildDomainSeparator
|
|
387
557
|
|
|
388
558
|
* @returns {string} encode data
|
|
389
559
|
*/
|
|
390
|
-
export declare function encodeGSPBuildDomainSeparator():
|
|
560
|
+
export declare function encodeGSPBuildDomainSeparator(): any;
|
|
391
561
|
/**
|
|
392
562
|
* encode buyShares
|
|
393
563
|
* @param {string} to - address
|
|
394
564
|
* @returns {string} encode data
|
|
395
565
|
*/
|
|
396
|
-
export declare function encodeGSPBuyShares(to: string):
|
|
566
|
+
export declare function encodeGSPBuyShares(to: string): any;
|
|
397
567
|
/**
|
|
398
568
|
* encode correctRState
|
|
399
569
|
|
|
400
570
|
* @returns {string} encode data
|
|
401
571
|
*/
|
|
402
|
-
export declare function encodeGSPCorrectRState():
|
|
572
|
+
export declare function encodeGSPCorrectRState(): any;
|
|
403
573
|
/**
|
|
404
574
|
* encode flashLoan
|
|
405
575
|
* @param {string | number} baseAmount - uint256
|
|
@@ -408,7 +578,7 @@ export declare function encodeGSPCorrectRState(): string;
|
|
|
408
578
|
* @param {string} data - bytes
|
|
409
579
|
* @returns {string} encode data
|
|
410
580
|
*/
|
|
411
|
-
export declare function encodeGSPFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string):
|
|
581
|
+
export declare function encodeGSPFlashLoan(baseAmount: string | number, quoteAmount: string | number, assetTo: string, data: string): any;
|
|
412
582
|
/**
|
|
413
583
|
* encode init
|
|
414
584
|
* @param {string} maintainer - address
|
|
@@ -423,7 +593,7 @@ export declare function encodeGSPFlashLoan(baseAmount: string | number, quoteAmo
|
|
|
423
593
|
* @param {boolean} isOpenTWAP - bool
|
|
424
594
|
* @returns {string} encode data
|
|
425
595
|
*/
|
|
426
|
-
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRate: string | number, i: string | number, k: string | number, priceLimit: string | number, isOpenTWAP: boolean):
|
|
596
|
+
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string | number, mtFeeRate: string | number, i: string | number, k: string | number, priceLimit: string | number, isOpenTWAP: boolean): any;
|
|
427
597
|
/**
|
|
428
598
|
* encode permit
|
|
429
599
|
* @param {string} owner - address
|
|
@@ -435,19 +605,19 @@ export declare function encodeGSPInit(maintainer: string, admin: string, baseTok
|
|
|
435
605
|
* @param {string} s - bytes32
|
|
436
606
|
* @returns {string} encode data
|
|
437
607
|
*/
|
|
438
|
-
export declare function encodeGSPPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string):
|
|
608
|
+
export declare function encodeGSPPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string): any;
|
|
439
609
|
/**
|
|
440
610
|
* encode sellBase
|
|
441
611
|
* @param {string} to - address
|
|
442
612
|
* @returns {string} encode data
|
|
443
613
|
*/
|
|
444
|
-
export declare function encodeGSPSellBase(to: string):
|
|
614
|
+
export declare function encodeGSPSellBase(to: string): any;
|
|
445
615
|
/**
|
|
446
616
|
* encode sellQuote
|
|
447
617
|
* @param {string} to - address
|
|
448
618
|
* @returns {string} encode data
|
|
449
619
|
*/
|
|
450
|
-
export declare function encodeGSPSellQuote(to: string):
|
|
620
|
+
export declare function encodeGSPSellQuote(to: string): any;
|
|
451
621
|
/**
|
|
452
622
|
* encode sellShares
|
|
453
623
|
* @param {string | number} shareAmount - uint256
|
|
@@ -458,20 +628,20 @@ export declare function encodeGSPSellQuote(to: string): string;
|
|
|
458
628
|
* @param {string | number} deadline - uint256
|
|
459
629
|
* @returns {string} encode data
|
|
460
630
|
*/
|
|
461
|
-
export declare function encodeGSPSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number):
|
|
631
|
+
export declare function encodeGSPSellShares(shareAmount: string | number, to: string, baseMinAmount: string | number, quoteMinAmount: string | number, data: string, deadline: string | number): any;
|
|
462
632
|
/**
|
|
463
633
|
* encode sync
|
|
464
634
|
|
|
465
635
|
* @returns {string} encode data
|
|
466
636
|
*/
|
|
467
|
-
export declare function encodeGSPSync():
|
|
637
|
+
export declare function encodeGSPSync(): any;
|
|
468
638
|
/**
|
|
469
639
|
* encode transfer
|
|
470
640
|
* @param {string} to - address
|
|
471
641
|
* @param {string | number} amount - uint256
|
|
472
642
|
* @returns {string} encode data
|
|
473
643
|
*/
|
|
474
|
-
export declare function encodeGSPTransfer(to: string, amount: string | number):
|
|
644
|
+
export declare function encodeGSPTransfer(to: string, amount: string | number): any;
|
|
475
645
|
/**
|
|
476
646
|
* encode transferFrom
|
|
477
647
|
* @param {string} from - address
|
|
@@ -479,10 +649,10 @@ export declare function encodeGSPTransfer(to: string, amount: string | number):
|
|
|
479
649
|
* @param {string | number} amount - uint256
|
|
480
650
|
* @returns {string} encode data
|
|
481
651
|
*/
|
|
482
|
-
export declare function encodeGSPTransferFrom(from: string, to: string, amount: string | number):
|
|
652
|
+
export declare function encodeGSPTransferFrom(from: string, to: string, amount: string | number): any;
|
|
483
653
|
/**
|
|
484
654
|
* encode withdrawMtFeeTotal
|
|
485
655
|
|
|
486
656
|
* @returns {string} encode data
|
|
487
657
|
*/
|
|
488
|
-
export declare function encodeGSPWithdrawMtFeeTotal():
|
|
658
|
+
export declare function encodeGSPWithdrawMtFeeTotal(): any;
|