@dodoex/dodo-contract-request 1.0.0 → 1.1.1
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/.cache/contract-info/UniswapV2Factory.json +1 -0
- package/.cache/contract-info/UniswapV2Router02.json +1 -0
- package/.env.sample +1 -1
- package/.releaserc.json +4 -11
- package/CHANGELOG.md +14 -0
- package/contract-config/sepolia.json +6 -3
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config/sepolia.d.ts +2 -0
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +47 -53
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +39 -42
- package/dist/types/contract/CustomERC20.d.ts +27 -27
- package/dist/types/contract/CustomMintableERC20.d.ts +31 -31
- package/dist/types/contract/D3Proxy.d.ts +26 -26
- package/dist/types/contract/D3Vault.d.ts +105 -144
- package/dist/types/contract/DODOApprove.d.ts +15 -15
- package/dist/types/contract/DODOApproveProxy.d.ts +17 -17
- package/dist/types/contract/DODOCalleeHelper.d.ts +12 -12
- package/dist/types/contract/DODOCirculationHelper.d.ts +12 -12
- package/dist/types/contract/DODOCpProxy.d.ts +13 -12
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +12 -12
- package/dist/types/contract/DODODppProxy.d.ts +17 -17
- package/dist/types/contract/DODODspProxy.d.ts +27 -27
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +17 -17
- package/dist/types/contract/DODOIncentive.d.ts +23 -29
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -18
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Registry.d.ts +13 -13
- package/dist/types/contract/DODONFT.d.ts +30 -30
- package/dist/types/contract/DODONFT1155.d.ts +23 -23
- package/dist/types/contract/DODONFTApprove.d.ts +22 -22
- package/dist/types/contract/DODONFTPoolProxy.d.ts +41 -41
- package/dist/types/contract/DODONFTProxy.d.ts +28 -28
- package/dist/types/contract/DODONFTRegistry.d.ts +14 -17
- package/dist/types/contract/DODONFTRouteHelper.d.ts +2 -2
- package/dist/types/contract/DODOSellHelper.d.ts +2 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +6 -6
- package/dist/types/contract/DODOV1.d.ts +97 -100
- package/dist/types/contract/DODOV1Adapter.d.ts +3 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +1 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +14 -14
- package/dist/types/contract/DODOV2Proxy02.d.ts +93 -93
- package/dist/types/contract/DODOV2RouteHelper.d.ts +4 -4
- package/dist/types/contract/DPPAdvanced.d.ts +50 -82
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +30 -33
- package/dist/types/contract/DSP.d.ts +61 -93
- package/dist/types/contract/DSPFactory.d.ts +21 -24
- package/dist/types/contract/DVM.d.ts +58 -86
- package/dist/types/contract/DVMFactory.d.ts +21 -24
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +4 -23
- package/dist/types/contract/ERC20MineV3.d.ts +38 -48
- package/dist/types/contract/ERC20V3Factory.d.ts +33 -37
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +25 -34
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +82 -117
- package/dist/types/contract/GSPFactory.d.ts +23 -26
- package/dist/types/contract/InitializableERC20.d.ts +16 -16
- package/dist/types/contract/LimitOrder.d.ts +38 -38
- package/dist/types/contract/LimitOrderBot.d.ts +18 -18
- package/dist/types/contract/MulticallWithValid.d.ts +8 -8
- package/dist/types/contract/PermissionManager.d.ts +13 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +62 -0
- package/dist/types/contract/UniswapV2Router02.d.ts +272 -0
- package/dist/types/contract/dodoTeam.d.ts +46 -49
- package/dist/types/contract/vDODOToken.d.ts +55 -67
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +3 -3
- package/src/config/sepolia.ts +1 -1
- package/src/contract/BuyoutModel.ts +10 -10
- package/src/contract/CP.ts +5 -5
- package/src/contract/CrowdPoolingFactory.ts +15 -15
- package/src/contract/CustomERC20.ts +11 -11
- package/src/contract/CustomMintableERC20.ts +15 -15
- package/src/contract/D3Proxy.ts +20 -20
- package/src/contract/D3Vault.ts +31 -31
- package/src/contract/DODOApprove.ts +2 -2
- package/src/contract/DODOApproveProxy.ts +2 -2
- package/src/contract/DODOCalleeHelper.ts +11 -11
- package/src/contract/DODOCpProxy.ts +13 -12
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +9 -9
- package/src/contract/DODODppProxy.ts +14 -14
- package/src/contract/DODODspProxy.ts +23 -23
- package/src/contract/DODODspProxyWithoutGSP.ts +14 -14
- package/src/contract/DODOIncentive.ts +6 -6
- package/src/contract/DODOMineV2Factory.ts +4 -4
- package/src/contract/DODOMineV3Proxy.ts +12 -11
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +8 -8
- package/src/contract/DODONFT.ts +10 -10
- package/src/contract/DODONFT1155.ts +11 -11
- package/src/contract/DODONFTApprove.ts +8 -8
- package/src/contract/DODONFTPoolProxy.ts +24 -24
- package/src/contract/DODONFTProxy.ts +6 -6
- package/src/contract/DODOStarterProxy.ts +4 -4
- package/src/contract/DODOV1.ts +41 -41
- package/src/contract/DODOV1Proxy.ts +10 -10
- package/src/contract/DODOV2Proxy02.ts +75 -75
- package/src/contract/DPPAdvanced.ts +17 -17
- package/src/contract/DPPAdvancedAdmin.ts +12 -12
- package/src/contract/DPPFactory.ts +4 -4
- package/src/contract/DSP.ts +22 -22
- package/src/contract/DSPFactory.ts +4 -4
- package/src/contract/DVM.ts +22 -22
- package/src/contract/DVMFactory.ts +4 -4
- package/src/contract/ERC20.ts +8 -8
- package/src/contract/ERC20MineV3.ts +19 -19
- package/src/contract/ERC20V3Factory.ts +15 -15
- package/src/contract/FeeRateDIP3Impl.ts +8 -8
- package/src/contract/GSP.ts +34 -34
- package/src/contract/GSPFactory.ts +6 -6
- package/src/contract/InitializableERC20.ts +9 -9
- package/src/contract/LimitOrder.ts +9 -9
- package/src/contract/LimitOrderBot.ts +5 -5
- package/src/contract/UniswapV2Factory.ts +122 -0
- package/src/contract/UniswapV2Router02.ts +373 -0
- package/src/contract/dodoTeam.ts +24 -24
- package/src/contract/vDODOToken.ts +18 -18
- package/src/index.ts +2 -0
|
@@ -4,154 +4,154 @@
|
|
|
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
8
|
/**
|
|
9
9
|
* fetch PERMIT_TYPEHASH
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @param {string} __to - string
|
|
12
12
|
* @returns {string} __output0 - bytes32
|
|
13
13
|
*/
|
|
14
|
-
export declare function fetchGSPPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
14
|
+
export declare function fetchGSPPERMIT_TYPEHASH(chainId: number, __to: string): any;
|
|
15
15
|
/**
|
|
16
16
|
* fetch _ADMIN_
|
|
17
17
|
* @param {number} chainId - number
|
|
18
18
|
* @param {string} __to - string
|
|
19
19
|
* @returns {string} __output0 - address
|
|
20
20
|
*/
|
|
21
|
-
export declare function fetchGSP_ADMIN_(chainId: number, __to: string):
|
|
21
|
+
export declare function fetchGSP_ADMIN_(chainId: number, __to: string): any;
|
|
22
22
|
/**
|
|
23
23
|
* fetch _BASE_PRICE_CUMULATIVE_LAST_
|
|
24
24
|
* @param {number} chainId - number
|
|
25
25
|
* @param {string} __to - string
|
|
26
26
|
* @returns {bigint} __output0 - uint256
|
|
27
27
|
*/
|
|
28
|
-
export declare function fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string):
|
|
28
|
+
export declare function fetchGSP_BASE_PRICE_CUMULATIVE_LAST_(chainId: number, __to: string): any;
|
|
29
29
|
/**
|
|
30
30
|
* fetch _BASE_RESERVE_
|
|
31
31
|
* @param {number} chainId - number
|
|
32
32
|
* @param {string} __to - string
|
|
33
33
|
* @returns {bigint} __output0 - uint112
|
|
34
34
|
*/
|
|
35
|
-
export declare function fetchGSP_BASE_RESERVE_(chainId: number, __to: string):
|
|
35
|
+
export declare function fetchGSP_BASE_RESERVE_(chainId: number, __to: string): any;
|
|
36
36
|
/**
|
|
37
37
|
* fetch _BASE_TARGET_
|
|
38
38
|
* @param {number} chainId - number
|
|
39
39
|
* @param {string} __to - string
|
|
40
40
|
* @returns {bigint} __output0 - uint112
|
|
41
41
|
*/
|
|
42
|
-
export declare function fetchGSP_BASE_TARGET_(chainId: number, __to: string):
|
|
42
|
+
export declare function fetchGSP_BASE_TARGET_(chainId: number, __to: string): any;
|
|
43
43
|
/**
|
|
44
44
|
* fetch _BASE_TOKEN_
|
|
45
45
|
* @param {number} chainId - number
|
|
46
46
|
* @param {string} __to - string
|
|
47
47
|
* @returns {string} __output0 - address
|
|
48
48
|
*/
|
|
49
|
-
export declare function fetchGSP_BASE_TOKEN_(chainId: number, __to: string):
|
|
49
|
+
export declare function fetchGSP_BASE_TOKEN_(chainId: number, __to: string): any;
|
|
50
50
|
/**
|
|
51
51
|
* fetch _BLOCK_TIMESTAMP_LAST_
|
|
52
52
|
* @param {number} chainId - number
|
|
53
53
|
* @param {string} __to - string
|
|
54
54
|
* @returns {bigint} __output0 - uint32
|
|
55
55
|
*/
|
|
56
|
-
export declare function fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string):
|
|
56
|
+
export declare function fetchGSP_BLOCK_TIMESTAMP_LAST_(chainId: number, __to: string): any;
|
|
57
57
|
/**
|
|
58
58
|
* fetch _IS_OPEN_TWAP_
|
|
59
59
|
* @param {number} chainId - number
|
|
60
60
|
* @param {string} __to - string
|
|
61
61
|
* @returns {boolean} __output0 - bool
|
|
62
62
|
*/
|
|
63
|
-
export declare function fetchGSP_IS_OPEN_TWAP_(chainId: number, __to: string):
|
|
63
|
+
export declare function fetchGSP_IS_OPEN_TWAP_(chainId: number, __to: string): any;
|
|
64
64
|
/**
|
|
65
65
|
* fetch _I_
|
|
66
66
|
* @param {number} chainId - number
|
|
67
67
|
* @param {string} __to - string
|
|
68
68
|
* @returns {bigint} __output0 - uint256
|
|
69
69
|
*/
|
|
70
|
-
export declare function fetchGSP_I_(chainId: number, __to: string):
|
|
70
|
+
export declare function fetchGSP_I_(chainId: number, __to: string): any;
|
|
71
71
|
/**
|
|
72
72
|
* fetch _K_
|
|
73
73
|
* @param {number} chainId - number
|
|
74
74
|
* @param {string} __to - string
|
|
75
75
|
* @returns {bigint} __output0 - uint256
|
|
76
76
|
*/
|
|
77
|
-
export declare function fetchGSP_K_(chainId: number, __to: string):
|
|
77
|
+
export declare function fetchGSP_K_(chainId: number, __to: string): any;
|
|
78
78
|
/**
|
|
79
79
|
* fetch _LP_FEE_RATE_
|
|
80
80
|
* @param {number} chainId - number
|
|
81
81
|
* @param {string} __to - string
|
|
82
82
|
* @returns {bigint} __output0 - uint256
|
|
83
83
|
*/
|
|
84
|
-
export declare function fetchGSP_LP_FEE_RATE_(chainId: number, __to: string):
|
|
84
|
+
export declare function fetchGSP_LP_FEE_RATE_(chainId: number, __to: string): any;
|
|
85
85
|
/**
|
|
86
86
|
* fetch _MAINTAINER_
|
|
87
87
|
* @param {number} chainId - number
|
|
88
88
|
* @param {string} __to - string
|
|
89
89
|
* @returns {string} __output0 - address
|
|
90
90
|
*/
|
|
91
|
-
export declare function fetchGSP_MAINTAINER_(chainId: number, __to: string):
|
|
91
|
+
export declare function fetchGSP_MAINTAINER_(chainId: number, __to: string): any;
|
|
92
92
|
/**
|
|
93
93
|
* fetch _MT_FEE_BASE_
|
|
94
94
|
* @param {number} chainId - number
|
|
95
95
|
* @param {string} __to - string
|
|
96
96
|
* @returns {bigint} __output0 - uint256
|
|
97
97
|
*/
|
|
98
|
-
export declare function fetchGSP_MT_FEE_BASE_(chainId: number, __to: string):
|
|
98
|
+
export declare function fetchGSP_MT_FEE_BASE_(chainId: number, __to: string): any;
|
|
99
99
|
/**
|
|
100
100
|
* fetch _MT_FEE_QUOTE_
|
|
101
101
|
* @param {number} chainId - number
|
|
102
102
|
* @param {string} __to - string
|
|
103
103
|
* @returns {bigint} __output0 - uint256
|
|
104
104
|
*/
|
|
105
|
-
export declare function fetchGSP_MT_FEE_QUOTE_(chainId: number, __to: string):
|
|
105
|
+
export declare function fetchGSP_MT_FEE_QUOTE_(chainId: number, __to: string): any;
|
|
106
106
|
/**
|
|
107
107
|
* fetch _MT_FEE_RATE_
|
|
108
108
|
* @param {number} chainId - number
|
|
109
109
|
* @param {string} __to - string
|
|
110
110
|
* @returns {bigint} __output0 - uint256
|
|
111
111
|
*/
|
|
112
|
-
export declare function fetchGSP_MT_FEE_RATE_(chainId: number, __to: string):
|
|
112
|
+
export declare function fetchGSP_MT_FEE_RATE_(chainId: number, __to: string): any;
|
|
113
113
|
/**
|
|
114
114
|
* fetch _MT_FEE_RATE_MODEL_
|
|
115
115
|
* @param {number} chainId - number
|
|
116
116
|
* @param {string} __to - string
|
|
117
117
|
* @returns {string} __output0 - address
|
|
118
118
|
*/
|
|
119
|
-
export declare function fetchGSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string):
|
|
119
|
+
export declare function fetchGSP_MT_FEE_RATE_MODEL_(chainId: number, __to: string): any;
|
|
120
120
|
/**
|
|
121
121
|
* fetch _PRICE_LIMIT_
|
|
122
122
|
* @param {number} chainId - number
|
|
123
123
|
* @param {string} __to - string
|
|
124
124
|
* @returns {bigint} __output0 - uint256
|
|
125
125
|
*/
|
|
126
|
-
export declare function fetchGSP_PRICE_LIMIT_(chainId: number, __to: string):
|
|
126
|
+
export declare function fetchGSP_PRICE_LIMIT_(chainId: number, __to: string): any;
|
|
127
127
|
/**
|
|
128
128
|
* fetch _QUOTE_RESERVE_
|
|
129
129
|
* @param {number} chainId - number
|
|
130
130
|
* @param {string} __to - string
|
|
131
131
|
* @returns {bigint} __output0 - uint112
|
|
132
132
|
*/
|
|
133
|
-
export declare function fetchGSP_QUOTE_RESERVE_(chainId: number, __to: string):
|
|
133
|
+
export declare function fetchGSP_QUOTE_RESERVE_(chainId: number, __to: string): any;
|
|
134
134
|
/**
|
|
135
135
|
* fetch _QUOTE_TARGET_
|
|
136
136
|
* @param {number} chainId - number
|
|
137
137
|
* @param {string} __to - string
|
|
138
138
|
* @returns {bigint} __output0 - uint112
|
|
139
139
|
*/
|
|
140
|
-
export declare function fetchGSP_QUOTE_TARGET_(chainId: number, __to: string):
|
|
140
|
+
export declare function fetchGSP_QUOTE_TARGET_(chainId: number, __to: string): any;
|
|
141
141
|
/**
|
|
142
142
|
* fetch _QUOTE_TOKEN_
|
|
143
143
|
* @param {number} chainId - number
|
|
144
144
|
* @param {string} __to - string
|
|
145
145
|
* @returns {string} __output0 - address
|
|
146
146
|
*/
|
|
147
|
-
export declare function fetchGSP_QUOTE_TOKEN_(chainId: number, __to: string):
|
|
147
|
+
export declare function fetchGSP_QUOTE_TOKEN_(chainId: number, __to: string): any;
|
|
148
148
|
/**
|
|
149
149
|
* fetch _RState_
|
|
150
150
|
* @param {number} chainId - number
|
|
151
151
|
* @param {string} __to - string
|
|
152
152
|
* @returns {bigint} __output0 - uint32
|
|
153
153
|
*/
|
|
154
|
-
export declare function fetchGSP_RState_(chainId: number, __to: string):
|
|
154
|
+
export declare function fetchGSP_RState_(chainId: number, __to: string): any;
|
|
155
155
|
/**
|
|
156
156
|
* fetch addressToShortString
|
|
157
157
|
* @param {number} chainId - number
|
|
@@ -159,7 +159,7 @@ export declare function fetchGSP_RState_(chainId: number, __to: string): Promise
|
|
|
159
159
|
* @param {string} _addr - address
|
|
160
160
|
* @returns {string} __output0 - string
|
|
161
161
|
*/
|
|
162
|
-
export declare function fetchGSPAddressToShortString(chainId: number, __to: string, _addr: string):
|
|
162
|
+
export declare function fetchGSPAddressToShortString(chainId: number, __to: string, _addr: string): any;
|
|
163
163
|
/**
|
|
164
164
|
* fetch allowance
|
|
165
165
|
* @param {number} chainId - number
|
|
@@ -168,7 +168,7 @@ export declare function fetchGSPAddressToShortString(chainId: number, __to: stri
|
|
|
168
168
|
* @param {string} spender - address
|
|
169
169
|
* @returns {bigint} __output0 - uint256
|
|
170
170
|
*/
|
|
171
|
-
export declare function fetchGSPAllowance(chainId: number, __to: string, owner: string, spender: string):
|
|
171
|
+
export declare function fetchGSPAllowance(chainId: number, __to: string, owner: string, spender: string): any;
|
|
172
172
|
/**
|
|
173
173
|
* fetch balanceOf
|
|
174
174
|
* @param {number} chainId - number
|
|
@@ -176,28 +176,28 @@ export declare function fetchGSPAllowance(chainId: number, __to: string, owner:
|
|
|
176
176
|
* @param {string} owner - address
|
|
177
177
|
* @returns {bigint} balance - uint256
|
|
178
178
|
*/
|
|
179
|
-
export declare function fetchGSPBalanceOf(chainId: number, __to: string, owner: string):
|
|
179
|
+
export declare function fetchGSPBalanceOf(chainId: number, __to: string, owner: string): any;
|
|
180
180
|
/**
|
|
181
181
|
* fetch decimals
|
|
182
182
|
* @param {number} chainId - number
|
|
183
183
|
* @param {string} __to - string
|
|
184
184
|
* @returns {bigint} __output0 - uint8
|
|
185
185
|
*/
|
|
186
|
-
export declare function fetchGSPDecimals(chainId: number, __to: string):
|
|
186
|
+
export declare function fetchGSPDecimals(chainId: number, __to: string): any;
|
|
187
187
|
/**
|
|
188
188
|
* fetch getBaseInput
|
|
189
189
|
* @param {number} chainId - number
|
|
190
190
|
* @param {string} __to - string
|
|
191
191
|
* @returns {bigint} input - uint256
|
|
192
192
|
*/
|
|
193
|
-
export declare function fetchGSPGetBaseInput(chainId: number, __to: string):
|
|
193
|
+
export declare function fetchGSPGetBaseInput(chainId: number, __to: string): any;
|
|
194
194
|
/**
|
|
195
195
|
* fetch getMidPrice
|
|
196
196
|
* @param {number} chainId - number
|
|
197
197
|
* @param {string} __to - string
|
|
198
198
|
* @returns {bigint} midPrice - uint256
|
|
199
199
|
*/
|
|
200
|
-
export declare function fetchGSPGetMidPrice(chainId: number, __to: string):
|
|
200
|
+
export declare function fetchGSPGetMidPrice(chainId: number, __to: string): any;
|
|
201
201
|
/**
|
|
202
202
|
* fetch getMtFeeTotal
|
|
203
203
|
* @param {number} chainId - number
|
|
@@ -205,25 +205,14 @@ export declare function fetchGSPGetMidPrice(chainId: number, __to: string): Prom
|
|
|
205
205
|
* @returns {bigint} mtFeeBase - uint256
|
|
206
206
|
* @returns {bigint} mtFeeQuote - uint256
|
|
207
207
|
*/
|
|
208
|
-
export declare function fetchGSPGetMtFeeTotal(chainId: number, __to: string):
|
|
209
|
-
mtFeeBase: bigint;
|
|
210
|
-
mtFeeQuote: bigint;
|
|
211
|
-
}>;
|
|
208
|
+
export declare function fetchGSPGetMtFeeTotal(chainId: number, __to: string): any;
|
|
212
209
|
/**
|
|
213
210
|
* fetch getPMMState
|
|
214
211
|
* @param {number} chainId - number
|
|
215
212
|
* @param {string} __to - string
|
|
216
213
|
* @returns {{i: bigint; K: bigint; B: bigint; Q: bigint; B0: bigint; Q0: bigint; R: bigint}} state - tuple
|
|
217
214
|
*/
|
|
218
|
-
export declare function fetchGSPGetPMMState(chainId: number, __to: string):
|
|
219
|
-
i: bigint;
|
|
220
|
-
K: bigint;
|
|
221
|
-
B: bigint;
|
|
222
|
-
Q: bigint;
|
|
223
|
-
B0: bigint;
|
|
224
|
-
Q0: bigint;
|
|
225
|
-
R: bigint;
|
|
226
|
-
}>;
|
|
215
|
+
export declare function fetchGSPGetPMMState(chainId: number, __to: string): any;
|
|
227
216
|
/**
|
|
228
217
|
* fetch getPMMStateForCall
|
|
229
218
|
* @param {number} chainId - number
|
|
@@ -236,22 +225,14 @@ export declare function fetchGSPGetPMMState(chainId: number, __to: string): Prom
|
|
|
236
225
|
* @returns {bigint} Q0 - uint256
|
|
237
226
|
* @returns {bigint} R - uint256
|
|
238
227
|
*/
|
|
239
|
-
export declare function fetchGSPGetPMMStateForCall(chainId: number, __to: string):
|
|
240
|
-
i: bigint;
|
|
241
|
-
K: bigint;
|
|
242
|
-
B: bigint;
|
|
243
|
-
Q: bigint;
|
|
244
|
-
B0: bigint;
|
|
245
|
-
Q0: bigint;
|
|
246
|
-
R: bigint;
|
|
247
|
-
}>;
|
|
228
|
+
export declare function fetchGSPGetPMMStateForCall(chainId: number, __to: string): any;
|
|
248
229
|
/**
|
|
249
230
|
* fetch getQuoteInput
|
|
250
231
|
* @param {number} chainId - number
|
|
251
232
|
* @param {string} __to - string
|
|
252
233
|
* @returns {bigint} input - uint256
|
|
253
234
|
*/
|
|
254
|
-
export declare function fetchGSPGetQuoteInput(chainId: number, __to: string):
|
|
235
|
+
export declare function fetchGSPGetQuoteInput(chainId: number, __to: string): any;
|
|
255
236
|
/**
|
|
256
237
|
* fetch getUserFeeRate
|
|
257
238
|
* @param {number} chainId - number
|
|
@@ -260,10 +241,7 @@ export declare function fetchGSPGetQuoteInput(chainId: number, __to: string): Pr
|
|
|
260
241
|
* @returns {bigint} lpFeeRate - uint256
|
|
261
242
|
* @returns {bigint} mtFeeRate - uint256
|
|
262
243
|
*/
|
|
263
|
-
export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, user: string):
|
|
264
|
-
lpFeeRate: bigint;
|
|
265
|
-
mtFeeRate: bigint;
|
|
266
|
-
}>;
|
|
244
|
+
export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, user: string): any;
|
|
267
245
|
/**
|
|
268
246
|
* fetch getVaultReserve
|
|
269
247
|
* @param {number} chainId - number
|
|
@@ -271,17 +249,14 @@ export declare function fetchGSPGetUserFeeRate(chainId: number, __to: string, us
|
|
|
271
249
|
* @returns {bigint} baseReserve - uint256
|
|
272
250
|
* @returns {bigint} quoteReserve - uint256
|
|
273
251
|
*/
|
|
274
|
-
export declare function fetchGSPGetVaultReserve(chainId: number, __to: string):
|
|
275
|
-
baseReserve: bigint;
|
|
276
|
-
quoteReserve: bigint;
|
|
277
|
-
}>;
|
|
252
|
+
export declare function fetchGSPGetVaultReserve(chainId: number, __to: string): any;
|
|
278
253
|
/**
|
|
279
254
|
* fetch name
|
|
280
255
|
* @param {number} chainId - number
|
|
281
256
|
* @param {string} __to - string
|
|
282
257
|
* @returns {string} __output0 - string
|
|
283
258
|
*/
|
|
284
|
-
export declare function fetchGSPName(chainId: number, __to: string):
|
|
259
|
+
export declare function fetchGSPName(chainId: number, __to: string): any;
|
|
285
260
|
/**
|
|
286
261
|
* fetch nonces
|
|
287
262
|
* @param {number} chainId - number
|
|
@@ -289,7 +264,7 @@ export declare function fetchGSPName(chainId: number, __to: string): Promise<str
|
|
|
289
264
|
* @param {string} __input1 - address
|
|
290
265
|
* @returns {bigint} __output0 - uint256
|
|
291
266
|
*/
|
|
292
|
-
export declare function fetchGSPNonces(chainId: number, __to: string, __input1: string):
|
|
267
|
+
export declare function fetchGSPNonces(chainId: number, __to: string, __input1: string): any;
|
|
293
268
|
/**
|
|
294
269
|
* fetch querySellBase
|
|
295
270
|
* @param {number} chainId - number
|
|
@@ -301,12 +276,7 @@ export declare function fetchGSPNonces(chainId: number, __to: string, __input1:
|
|
|
301
276
|
* @returns {bigint} newRState - uint8
|
|
302
277
|
* @returns {bigint} newBaseTarget - uint256
|
|
303
278
|
*/
|
|
304
|
-
export declare function fetchGSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number):
|
|
305
|
-
receiveQuoteAmount: bigint;
|
|
306
|
-
mtFee: bigint;
|
|
307
|
-
newRState: bigint;
|
|
308
|
-
newBaseTarget: bigint;
|
|
309
|
-
}>;
|
|
279
|
+
export declare function fetchGSPQuerySellBase(chainId: number, __to: string, trader: string, payBaseAmount: number): any;
|
|
310
280
|
/**
|
|
311
281
|
* fetch querySellQuote
|
|
312
282
|
* @param {number} chainId - number
|
|
@@ -318,171 +288,166 @@ export declare function fetchGSPQuerySellBase(chainId: number, __to: string, tra
|
|
|
318
288
|
* @returns {bigint} newRState - uint8
|
|
319
289
|
* @returns {bigint} newQuoteTarget - uint256
|
|
320
290
|
*/
|
|
321
|
-
export declare function fetchGSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number):
|
|
322
|
-
receiveBaseAmount: bigint;
|
|
323
|
-
mtFee: bigint;
|
|
324
|
-
newRState: bigint;
|
|
325
|
-
newQuoteTarget: bigint;
|
|
326
|
-
}>;
|
|
291
|
+
export declare function fetchGSPQuerySellQuote(chainId: number, __to: string, trader: string, payQuoteAmount: number): any;
|
|
327
292
|
/**
|
|
328
293
|
* fetch symbol
|
|
329
294
|
* @param {number} chainId - number
|
|
330
295
|
* @param {string} __to - string
|
|
331
296
|
* @returns {string} __output0 - string
|
|
332
297
|
*/
|
|
333
|
-
export declare function fetchGSPSymbol(chainId: number, __to: string):
|
|
298
|
+
export declare function fetchGSPSymbol(chainId: number, __to: string): any;
|
|
334
299
|
/**
|
|
335
300
|
* fetch totalSupply
|
|
336
301
|
* @param {number} chainId - number
|
|
337
302
|
* @param {string} __to - string
|
|
338
303
|
* @returns {bigint} __output0 - uint256
|
|
339
304
|
*/
|
|
340
|
-
export declare function fetchGSPTotalSupply(chainId: number, __to: string):
|
|
305
|
+
export declare function fetchGSPTotalSupply(chainId: number, __to: string): any;
|
|
341
306
|
/**
|
|
342
307
|
* fetch version
|
|
343
308
|
* @param {number} chainId - number
|
|
344
309
|
* @param {string} __to - string
|
|
345
310
|
* @returns {string} __output0 - string
|
|
346
311
|
*/
|
|
347
|
-
export declare function fetchGSPVersion(chainId: number, __to: string):
|
|
312
|
+
export declare function fetchGSPVersion(chainId: number, __to: string): any;
|
|
348
313
|
/**
|
|
349
314
|
* encode adjustK
|
|
350
|
-
* @param {
|
|
315
|
+
* @param {string} k - uint256
|
|
351
316
|
* @returns {string} encode data
|
|
352
317
|
*/
|
|
353
|
-
export declare function encodeGSPAdjustK(k:
|
|
318
|
+
export declare function encodeGSPAdjustK(k: string): any;
|
|
354
319
|
/**
|
|
355
320
|
* encode adjustLpFeeRate
|
|
356
|
-
* @param {
|
|
321
|
+
* @param {string} lpFeeRate - uint256
|
|
357
322
|
* @returns {string} encode data
|
|
358
323
|
*/
|
|
359
|
-
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate:
|
|
324
|
+
export declare function encodeGSPAdjustLpFeeRate(lpFeeRate: string): any;
|
|
360
325
|
/**
|
|
361
326
|
* encode adjustMtFeeRate
|
|
362
|
-
* @param {
|
|
327
|
+
* @param {string} mtFeeRate - uint256
|
|
363
328
|
* @returns {string} encode data
|
|
364
329
|
*/
|
|
365
|
-
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate:
|
|
330
|
+
export declare function encodeGSPAdjustMtFeeRate(mtFeeRate: string): any;
|
|
366
331
|
/**
|
|
367
332
|
* encode adjustPrice
|
|
368
|
-
* @param {
|
|
333
|
+
* @param {string} i - uint256
|
|
369
334
|
* @returns {string} encode data
|
|
370
335
|
*/
|
|
371
|
-
export declare function encodeGSPAdjustPrice(i:
|
|
336
|
+
export declare function encodeGSPAdjustPrice(i: string): any;
|
|
372
337
|
/**
|
|
373
338
|
* encode adjustPriceLimit
|
|
374
|
-
* @param {
|
|
339
|
+
* @param {string} priceLimit - uint256
|
|
375
340
|
* @returns {string} encode data
|
|
376
341
|
*/
|
|
377
|
-
export declare function encodeGSPAdjustPriceLimit(priceLimit:
|
|
342
|
+
export declare function encodeGSPAdjustPriceLimit(priceLimit: string): any;
|
|
378
343
|
/**
|
|
379
344
|
* encode approve
|
|
380
345
|
* @param {string} spender - address
|
|
381
|
-
* @param {
|
|
346
|
+
* @param {string} amount - uint256
|
|
382
347
|
* @returns {string} encode data
|
|
383
348
|
*/
|
|
384
|
-
export declare function encodeGSPApprove(spender: string, amount:
|
|
349
|
+
export declare function encodeGSPApprove(spender: string, amount: string): any;
|
|
385
350
|
/**
|
|
386
351
|
* encode buildDomainSeparator
|
|
387
352
|
|
|
388
353
|
* @returns {string} encode data
|
|
389
354
|
*/
|
|
390
|
-
export declare function encodeGSPBuildDomainSeparator():
|
|
355
|
+
export declare function encodeGSPBuildDomainSeparator(): any;
|
|
391
356
|
/**
|
|
392
357
|
* encode buyShares
|
|
393
358
|
* @param {string} to - address
|
|
394
359
|
* @returns {string} encode data
|
|
395
360
|
*/
|
|
396
|
-
export declare function encodeGSPBuyShares(to: string):
|
|
361
|
+
export declare function encodeGSPBuyShares(to: string): any;
|
|
397
362
|
/**
|
|
398
363
|
* encode correctRState
|
|
399
364
|
|
|
400
365
|
* @returns {string} encode data
|
|
401
366
|
*/
|
|
402
|
-
export declare function encodeGSPCorrectRState():
|
|
367
|
+
export declare function encodeGSPCorrectRState(): any;
|
|
403
368
|
/**
|
|
404
369
|
* encode flashLoan
|
|
405
|
-
* @param {
|
|
406
|
-
* @param {
|
|
370
|
+
* @param {string} baseAmount - uint256
|
|
371
|
+
* @param {string} quoteAmount - uint256
|
|
407
372
|
* @param {string} assetTo - address
|
|
408
373
|
* @param {string} data - bytes
|
|
409
374
|
* @returns {string} encode data
|
|
410
375
|
*/
|
|
411
|
-
export declare function encodeGSPFlashLoan(baseAmount:
|
|
376
|
+
export declare function encodeGSPFlashLoan(baseAmount: string, quoteAmount: string, assetTo: string, data: string): any;
|
|
412
377
|
/**
|
|
413
378
|
* encode init
|
|
414
379
|
* @param {string} maintainer - address
|
|
415
380
|
* @param {string} admin - address
|
|
416
381
|
* @param {string} baseTokenAddress - address
|
|
417
382
|
* @param {string} quoteTokenAddress - address
|
|
418
|
-
* @param {
|
|
419
|
-
* @param {
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {
|
|
422
|
-
* @param {
|
|
383
|
+
* @param {string} lpFeeRate - uint256
|
|
384
|
+
* @param {string} mtFeeRate - uint256
|
|
385
|
+
* @param {string} i - uint256
|
|
386
|
+
* @param {string} k - uint256
|
|
387
|
+
* @param {string} priceLimit - uint256
|
|
423
388
|
* @param {boolean} isOpenTWAP - bool
|
|
424
389
|
* @returns {string} encode data
|
|
425
390
|
*/
|
|
426
|
-
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate:
|
|
391
|
+
export declare function encodeGSPInit(maintainer: string, admin: string, baseTokenAddress: string, quoteTokenAddress: string, lpFeeRate: string, mtFeeRate: string, i: string, k: string, priceLimit: string, isOpenTWAP: boolean): any;
|
|
427
392
|
/**
|
|
428
393
|
* encode permit
|
|
429
394
|
* @param {string} owner - address
|
|
430
395
|
* @param {string} spender - address
|
|
431
|
-
* @param {
|
|
432
|
-
* @param {
|
|
433
|
-
* @param {
|
|
396
|
+
* @param {string} value - uint256
|
|
397
|
+
* @param {string} deadline - uint256
|
|
398
|
+
* @param {string} v - uint8
|
|
434
399
|
* @param {string} r - bytes32
|
|
435
400
|
* @param {string} s - bytes32
|
|
436
401
|
* @returns {string} encode data
|
|
437
402
|
*/
|
|
438
|
-
export declare function encodeGSPPermit(owner: string, spender: string, value:
|
|
403
|
+
export declare function encodeGSPPermit(owner: string, spender: string, value: string, deadline: string, v: string, r: string, s: string): any;
|
|
439
404
|
/**
|
|
440
405
|
* encode sellBase
|
|
441
406
|
* @param {string} to - address
|
|
442
407
|
* @returns {string} encode data
|
|
443
408
|
*/
|
|
444
|
-
export declare function encodeGSPSellBase(to: string):
|
|
409
|
+
export declare function encodeGSPSellBase(to: string): any;
|
|
445
410
|
/**
|
|
446
411
|
* encode sellQuote
|
|
447
412
|
* @param {string} to - address
|
|
448
413
|
* @returns {string} encode data
|
|
449
414
|
*/
|
|
450
|
-
export declare function encodeGSPSellQuote(to: string):
|
|
415
|
+
export declare function encodeGSPSellQuote(to: string): any;
|
|
451
416
|
/**
|
|
452
417
|
* encode sellShares
|
|
453
|
-
* @param {
|
|
418
|
+
* @param {string} shareAmount - uint256
|
|
454
419
|
* @param {string} to - address
|
|
455
|
-
* @param {
|
|
456
|
-
* @param {
|
|
420
|
+
* @param {string} baseMinAmount - uint256
|
|
421
|
+
* @param {string} quoteMinAmount - uint256
|
|
457
422
|
* @param {string} data - bytes
|
|
458
|
-
* @param {
|
|
423
|
+
* @param {string} deadline - uint256
|
|
459
424
|
* @returns {string} encode data
|
|
460
425
|
*/
|
|
461
|
-
export declare function encodeGSPSellShares(shareAmount:
|
|
426
|
+
export declare function encodeGSPSellShares(shareAmount: string, to: string, baseMinAmount: string, quoteMinAmount: string, data: string, deadline: string): any;
|
|
462
427
|
/**
|
|
463
428
|
* encode sync
|
|
464
429
|
|
|
465
430
|
* @returns {string} encode data
|
|
466
431
|
*/
|
|
467
|
-
export declare function encodeGSPSync():
|
|
432
|
+
export declare function encodeGSPSync(): any;
|
|
468
433
|
/**
|
|
469
434
|
* encode transfer
|
|
470
435
|
* @param {string} to - address
|
|
471
|
-
* @param {
|
|
436
|
+
* @param {string} amount - uint256
|
|
472
437
|
* @returns {string} encode data
|
|
473
438
|
*/
|
|
474
|
-
export declare function encodeGSPTransfer(to: string, amount:
|
|
439
|
+
export declare function encodeGSPTransfer(to: string, amount: string): any;
|
|
475
440
|
/**
|
|
476
441
|
* encode transferFrom
|
|
477
442
|
* @param {string} from - address
|
|
478
443
|
* @param {string} to - address
|
|
479
|
-
* @param {
|
|
444
|
+
* @param {string} amount - uint256
|
|
480
445
|
* @returns {string} encode data
|
|
481
446
|
*/
|
|
482
|
-
export declare function encodeGSPTransferFrom(from: string, to: string, amount:
|
|
447
|
+
export declare function encodeGSPTransferFrom(from: string, to: string, amount: string): any;
|
|
483
448
|
/**
|
|
484
449
|
* encode withdrawMtFeeTotal
|
|
485
450
|
|
|
486
451
|
* @returns {string} encode data
|
|
487
452
|
*/
|
|
488
|
-
export declare function encodeGSPWithdrawMtFeeTotal():
|
|
453
|
+
export declare function encodeGSPWithdrawMtFeeTotal(): any;
|