@flarenetwork/flare-wagmi-periphery-package 2.4.0 → 2.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/dist/contracts/coston2/IInstructionsFacet.d.ts +0 -185
- package/dist/contracts/coston2/IInstructionsFacet.d.ts.map +1 -1
- package/dist/contracts/coston2/IInstructionsFacet.js +0 -21
- package/dist/contracts/coston2/IInstructionsFacet.js.map +1 -1
- package/dist/contracts/coston2/IMasterAccountController.d.ts +10 -990
- package/dist/contracts/coston2/IMasterAccountController.d.ts.map +1 -1
- package/dist/contracts/coston2/IMasterAccountController.js +0 -117
- package/dist/contracts/coston2/IMasterAccountController.js.map +1 -1
- package/dist/contracts/coston2/IPersonalAccount.d.ts +0 -132
- package/dist/contracts/coston2/IPersonalAccount.d.ts.map +1 -1
- package/dist/contracts/coston2/IPersonalAccount.js +0 -34
- package/dist/contracts/coston2/IPersonalAccount.js.map +1 -1
- package/dist/contracts/coston2/IVaultsFacet.d.ts +0 -60
- package/dist/contracts/coston2/IVaultsFacet.d.ts.map +1 -1
- package/dist/contracts/coston2/IVaultsFacet.js +0 -10
- package/dist/contracts/coston2/IVaultsFacet.js.map +1 -1
- package/dist/contracts/coston2/index.d.ts +0 -1
- package/dist/contracts/coston2/index.d.ts.map +1 -1
- package/dist/contracts/coston2/index.js +0 -1
- package/dist/contracts/coston2/index.js.map +1 -1
- package/dist/contracts/flare/IAgentVaultsFacet.d.ts +298 -0
- package/dist/contracts/flare/IAgentVaultsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IAgentVaultsFacet.js +76 -0
- package/dist/contracts/flare/IAgentVaultsFacet.js.map +1 -0
- package/dist/contracts/flare/IDiamond.d.ts +72 -0
- package/dist/contracts/flare/IDiamond.d.ts.map +1 -0
- package/dist/contracts/flare/IDiamond.js +37 -0
- package/dist/contracts/flare/IDiamond.js.map +1 -0
- package/dist/contracts/flare/IDiamondCut.d.ts +270 -0
- package/dist/contracts/flare/IDiamondCut.d.ts.map +1 -0
- package/dist/contracts/flare/IDiamondCut.js +65 -0
- package/dist/contracts/flare/IDiamondCut.js.map +1 -0
- package/dist/contracts/flare/IERC165.d.ts +34 -0
- package/dist/contracts/flare/IERC165.d.ts.map +1 -0
- package/dist/contracts/flare/IERC165.js +24 -0
- package/dist/contracts/flare/IERC165.js.map +1 -0
- package/dist/contracts/flare/IERC173.d.ts +193 -0
- package/dist/contracts/flare/IERC173.d.ts.map +1 -0
- package/dist/contracts/flare/IERC173.js +52 -0
- package/dist/contracts/flare/IERC173.js.map +1 -0
- package/dist/contracts/flare/IExecutorsFacet.d.ts +136 -0
- package/dist/contracts/flare/IExecutorsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IExecutorsFacet.js +45 -0
- package/dist/contracts/flare/IExecutorsFacet.js.map +1 -0
- package/dist/contracts/flare/IInstructionFeesFacet.d.ts +247 -0
- package/dist/contracts/flare/IInstructionFeesFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IInstructionFeesFacet.js +69 -0
- package/dist/contracts/flare/IInstructionFeesFacet.js.map +1 -0
- package/dist/contracts/flare/IInstructionsFacet.d.ts +3278 -0
- package/dist/contracts/flare/IInstructionsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IInstructionsFacet.js +321 -0
- package/dist/contracts/flare/IInstructionsFacet.js.map +1 -0
- package/dist/contracts/flare/IMasterAccountController.d.ts +7713 -0
- package/dist/contracts/flare/IMasterAccountController.d.ts.map +1 -0
- package/dist/contracts/flare/IMasterAccountController.js +802 -0
- package/dist/contracts/flare/IMasterAccountController.js.map +1 -0
- package/dist/contracts/flare/IPaymentProofsFacet.d.ts +184 -0
- package/dist/contracts/flare/IPaymentProofsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IPaymentProofsFacet.js +52 -0
- package/dist/contracts/flare/IPaymentProofsFacet.js.map +1 -0
- package/dist/contracts/flare/IPersonalAccount.d.ts +967 -0
- package/dist/contracts/flare/IPersonalAccount.d.ts.map +1 -0
- package/dist/contracts/flare/IPersonalAccount.js +170 -0
- package/dist/contracts/flare/IPersonalAccount.js.map +1 -0
- package/dist/contracts/flare/IPersonalAccountsFacet.d.ts +193 -0
- package/dist/contracts/flare/IPersonalAccountsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IPersonalAccountsFacet.js +58 -0
- package/dist/contracts/flare/IPersonalAccountsFacet.js.map +1 -0
- package/dist/contracts/flare/ISwapFacet.d.ts +763 -0
- package/dist/contracts/flare/ISwapFacet.d.ts.map +1 -0
- package/dist/contracts/flare/ISwapFacet.js +90 -0
- package/dist/contracts/flare/ISwapFacet.js.map +1 -0
- package/dist/contracts/flare/ITimelockFacet.d.ts +498 -0
- package/dist/contracts/flare/ITimelockFacet.d.ts.map +1 -0
- package/dist/contracts/flare/ITimelockFacet.js +81 -0
- package/dist/contracts/flare/ITimelockFacet.js.map +1 -0
- package/dist/contracts/flare/IVaultsFacet.d.ts +280 -0
- package/dist/contracts/flare/IVaultsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IVaultsFacet.js +57 -0
- package/dist/contracts/flare/IVaultsFacet.js.map +1 -0
- package/dist/contracts/flare/IXrplProviderWalletsFacet.d.ts +148 -0
- package/dist/contracts/flare/IXrplProviderWalletsFacet.d.ts.map +1 -0
- package/dist/contracts/flare/IXrplProviderWalletsFacet.js +54 -0
- package/dist/contracts/flare/IXrplProviderWalletsFacet.js.map +1 -0
- package/dist/contracts/flare/index.d.ts +16 -0
- package/dist/contracts/flare/index.d.ts.map +1 -1
- package/dist/contracts/flare/index.js +16 -0
- package/dist/contracts/flare/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/contracts/coston2/ICustomInstructionsFacet.d.ts +0 -713
- package/dist/contracts/coston2/ICustomInstructionsFacet.d.ts.map +0 -1
- package/dist/contracts/coston2/ICustomInstructionsFacet.js +0 -123
- package/dist/contracts/coston2/ICustomInstructionsFacet.js.map +0 -1
|
@@ -0,0 +1,763 @@
|
|
|
1
|
+
export declare const iSwapFacetAbi: readonly [{
|
|
2
|
+
readonly type: "error";
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "InvalidFeedId";
|
|
5
|
+
}, {
|
|
6
|
+
readonly type: "error";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "InvalidMaxSlippagePPM";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "error";
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly name: "InvalidPoolFeeTierPPM";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "error";
|
|
15
|
+
readonly inputs: readonly [];
|
|
16
|
+
readonly name: "InvalidStableCoin";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "error";
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "InvalidUniswapV3Router";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "event";
|
|
23
|
+
readonly anonymous: false;
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly name: "personalAccount";
|
|
26
|
+
readonly internalType: "address";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "tokenIn";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
readonly indexed: true;
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "tokenOut";
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
readonly indexed: true;
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "xrplOwner";
|
|
41
|
+
readonly internalType: "string";
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly indexed: false;
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "amountIn";
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "amountOut";
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "SwapExecuted";
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "event";
|
|
58
|
+
readonly anonymous: false;
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly name: "uniswapV3Router";
|
|
61
|
+
readonly internalType: "address";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
readonly indexed: false;
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "stableCoin";
|
|
66
|
+
readonly internalType: "address";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "wNatStableCoinPoolFeeTierPPM";
|
|
71
|
+
readonly internalType: "uint24";
|
|
72
|
+
readonly type: "uint24";
|
|
73
|
+
readonly indexed: false;
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "stableCoinFXrpPoolFeeTierPPM";
|
|
76
|
+
readonly internalType: "uint24";
|
|
77
|
+
readonly type: "uint24";
|
|
78
|
+
readonly indexed: false;
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "maxSlippagePPM";
|
|
81
|
+
readonly internalType: "uint24";
|
|
82
|
+
readonly type: "uint24";
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "stableCoinUsdFeedId";
|
|
86
|
+
readonly internalType: "bytes21";
|
|
87
|
+
readonly type: "bytes21";
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "wNatUsdFeedId";
|
|
91
|
+
readonly internalType: "bytes21";
|
|
92
|
+
readonly type: "bytes21";
|
|
93
|
+
readonly indexed: false;
|
|
94
|
+
}];
|
|
95
|
+
readonly name: "SwapParamsSet";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly inputs: readonly [];
|
|
99
|
+
readonly name: "getSwapParams";
|
|
100
|
+
readonly outputs: readonly [{
|
|
101
|
+
readonly name: "_uniswapV3Router";
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "_stableCoin";
|
|
106
|
+
readonly internalType: "address";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "_wNatStableCoinPoolFeeTierPPM";
|
|
110
|
+
readonly internalType: "uint24";
|
|
111
|
+
readonly type: "uint24";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "_stableCoinFXrpPoolFeeTierPPM";
|
|
114
|
+
readonly internalType: "uint24";
|
|
115
|
+
readonly type: "uint24";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "_maxSlippagePPM";
|
|
118
|
+
readonly internalType: "uint24";
|
|
119
|
+
readonly type: "uint24";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "_stableCoinUsdFeedId";
|
|
122
|
+
readonly internalType: "bytes21";
|
|
123
|
+
readonly type: "bytes21";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "_wNatUsdFeedId";
|
|
126
|
+
readonly internalType: "bytes21";
|
|
127
|
+
readonly type: "bytes21";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly name: "_xrplAddress";
|
|
134
|
+
readonly internalType: "string";
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "swapStableCoinForFAsset";
|
|
138
|
+
readonly outputs: readonly [];
|
|
139
|
+
readonly stateMutability: "nonpayable";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly name: "_xrplAddress";
|
|
144
|
+
readonly internalType: "string";
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "swapWNatForStableCoin";
|
|
148
|
+
readonly outputs: readonly [];
|
|
149
|
+
readonly stateMutability: "nonpayable";
|
|
150
|
+
}];
|
|
151
|
+
/**
|
|
152
|
+
* Wraps __{@link useReadContract}__ with `abi` set to __{@link iSwapFacetAbi}__
|
|
153
|
+
*/
|
|
154
|
+
export declare const useReadISwapFacet: import("wagmi/codegen").CreateUseReadContractReturnType<readonly [{
|
|
155
|
+
readonly type: "error";
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
readonly name: "InvalidFeedId";
|
|
158
|
+
}, {
|
|
159
|
+
readonly type: "error";
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "InvalidMaxSlippagePPM";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "error";
|
|
164
|
+
readonly inputs: readonly [];
|
|
165
|
+
readonly name: "InvalidPoolFeeTierPPM";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "error";
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "InvalidStableCoin";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "error";
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "InvalidUniswapV3Router";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "event";
|
|
176
|
+
readonly anonymous: false;
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly name: "personalAccount";
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly indexed: true;
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "tokenIn";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
readonly indexed: true;
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "tokenOut";
|
|
189
|
+
readonly internalType: "address";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
readonly indexed: true;
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "xrplOwner";
|
|
194
|
+
readonly internalType: "string";
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly indexed: false;
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "amountIn";
|
|
199
|
+
readonly internalType: "uint256";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
readonly indexed: false;
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "amountOut";
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
readonly indexed: false;
|
|
207
|
+
}];
|
|
208
|
+
readonly name: "SwapExecuted";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "event";
|
|
211
|
+
readonly anonymous: false;
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly name: "uniswapV3Router";
|
|
214
|
+
readonly internalType: "address";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
readonly indexed: false;
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "stableCoin";
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
readonly indexed: false;
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "wNatStableCoinPoolFeeTierPPM";
|
|
224
|
+
readonly internalType: "uint24";
|
|
225
|
+
readonly type: "uint24";
|
|
226
|
+
readonly indexed: false;
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "stableCoinFXrpPoolFeeTierPPM";
|
|
229
|
+
readonly internalType: "uint24";
|
|
230
|
+
readonly type: "uint24";
|
|
231
|
+
readonly indexed: false;
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "maxSlippagePPM";
|
|
234
|
+
readonly internalType: "uint24";
|
|
235
|
+
readonly type: "uint24";
|
|
236
|
+
readonly indexed: false;
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "stableCoinUsdFeedId";
|
|
239
|
+
readonly internalType: "bytes21";
|
|
240
|
+
readonly type: "bytes21";
|
|
241
|
+
readonly indexed: false;
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "wNatUsdFeedId";
|
|
244
|
+
readonly internalType: "bytes21";
|
|
245
|
+
readonly type: "bytes21";
|
|
246
|
+
readonly indexed: false;
|
|
247
|
+
}];
|
|
248
|
+
readonly name: "SwapParamsSet";
|
|
249
|
+
}, {
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
readonly name: "getSwapParams";
|
|
253
|
+
readonly outputs: readonly [{
|
|
254
|
+
readonly name: "_uniswapV3Router";
|
|
255
|
+
readonly internalType: "address";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "_stableCoin";
|
|
259
|
+
readonly internalType: "address";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "_wNatStableCoinPoolFeeTierPPM";
|
|
263
|
+
readonly internalType: "uint24";
|
|
264
|
+
readonly type: "uint24";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "_stableCoinFXrpPoolFeeTierPPM";
|
|
267
|
+
readonly internalType: "uint24";
|
|
268
|
+
readonly type: "uint24";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "_maxSlippagePPM";
|
|
271
|
+
readonly internalType: "uint24";
|
|
272
|
+
readonly type: "uint24";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "_stableCoinUsdFeedId";
|
|
275
|
+
readonly internalType: "bytes21";
|
|
276
|
+
readonly type: "bytes21";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "_wNatUsdFeedId";
|
|
279
|
+
readonly internalType: "bytes21";
|
|
280
|
+
readonly type: "bytes21";
|
|
281
|
+
}];
|
|
282
|
+
readonly stateMutability: "view";
|
|
283
|
+
}, {
|
|
284
|
+
readonly type: "function";
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly name: "_xrplAddress";
|
|
287
|
+
readonly internalType: "string";
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "swapStableCoinForFAsset";
|
|
291
|
+
readonly outputs: readonly [];
|
|
292
|
+
readonly stateMutability: "nonpayable";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "function";
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly name: "_xrplAddress";
|
|
297
|
+
readonly internalType: "string";
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
}];
|
|
300
|
+
readonly name: "swapWNatForStableCoin";
|
|
301
|
+
readonly outputs: readonly [];
|
|
302
|
+
readonly stateMutability: "nonpayable";
|
|
303
|
+
}], undefined, undefined, "abi">;
|
|
304
|
+
/**
|
|
305
|
+
* Wraps __{@link useWriteContract}__ with `abi` set to __{@link iSwapFacetAbi}__
|
|
306
|
+
*/
|
|
307
|
+
export declare const useWriteISwapFacet: import("wagmi/codegen").CreateUseWriteContractReturnType<readonly [{
|
|
308
|
+
readonly type: "error";
|
|
309
|
+
readonly inputs: readonly [];
|
|
310
|
+
readonly name: "InvalidFeedId";
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "error";
|
|
313
|
+
readonly inputs: readonly [];
|
|
314
|
+
readonly name: "InvalidMaxSlippagePPM";
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "error";
|
|
317
|
+
readonly inputs: readonly [];
|
|
318
|
+
readonly name: "InvalidPoolFeeTierPPM";
|
|
319
|
+
}, {
|
|
320
|
+
readonly type: "error";
|
|
321
|
+
readonly inputs: readonly [];
|
|
322
|
+
readonly name: "InvalidStableCoin";
|
|
323
|
+
}, {
|
|
324
|
+
readonly type: "error";
|
|
325
|
+
readonly inputs: readonly [];
|
|
326
|
+
readonly name: "InvalidUniswapV3Router";
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "event";
|
|
329
|
+
readonly anonymous: false;
|
|
330
|
+
readonly inputs: readonly [{
|
|
331
|
+
readonly name: "personalAccount";
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
readonly indexed: true;
|
|
335
|
+
}, {
|
|
336
|
+
readonly name: "tokenIn";
|
|
337
|
+
readonly internalType: "address";
|
|
338
|
+
readonly type: "address";
|
|
339
|
+
readonly indexed: true;
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "tokenOut";
|
|
342
|
+
readonly internalType: "address";
|
|
343
|
+
readonly type: "address";
|
|
344
|
+
readonly indexed: true;
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "xrplOwner";
|
|
347
|
+
readonly internalType: "string";
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly indexed: false;
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "amountIn";
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
readonly indexed: false;
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "amountOut";
|
|
357
|
+
readonly internalType: "uint256";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
readonly indexed: false;
|
|
360
|
+
}];
|
|
361
|
+
readonly name: "SwapExecuted";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "event";
|
|
364
|
+
readonly anonymous: false;
|
|
365
|
+
readonly inputs: readonly [{
|
|
366
|
+
readonly name: "uniswapV3Router";
|
|
367
|
+
readonly internalType: "address";
|
|
368
|
+
readonly type: "address";
|
|
369
|
+
readonly indexed: false;
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "stableCoin";
|
|
372
|
+
readonly internalType: "address";
|
|
373
|
+
readonly type: "address";
|
|
374
|
+
readonly indexed: false;
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "wNatStableCoinPoolFeeTierPPM";
|
|
377
|
+
readonly internalType: "uint24";
|
|
378
|
+
readonly type: "uint24";
|
|
379
|
+
readonly indexed: false;
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "stableCoinFXrpPoolFeeTierPPM";
|
|
382
|
+
readonly internalType: "uint24";
|
|
383
|
+
readonly type: "uint24";
|
|
384
|
+
readonly indexed: false;
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "maxSlippagePPM";
|
|
387
|
+
readonly internalType: "uint24";
|
|
388
|
+
readonly type: "uint24";
|
|
389
|
+
readonly indexed: false;
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "stableCoinUsdFeedId";
|
|
392
|
+
readonly internalType: "bytes21";
|
|
393
|
+
readonly type: "bytes21";
|
|
394
|
+
readonly indexed: false;
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "wNatUsdFeedId";
|
|
397
|
+
readonly internalType: "bytes21";
|
|
398
|
+
readonly type: "bytes21";
|
|
399
|
+
readonly indexed: false;
|
|
400
|
+
}];
|
|
401
|
+
readonly name: "SwapParamsSet";
|
|
402
|
+
}, {
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
readonly inputs: readonly [];
|
|
405
|
+
readonly name: "getSwapParams";
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "_uniswapV3Router";
|
|
408
|
+
readonly internalType: "address";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "_stableCoin";
|
|
412
|
+
readonly internalType: "address";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "_wNatStableCoinPoolFeeTierPPM";
|
|
416
|
+
readonly internalType: "uint24";
|
|
417
|
+
readonly type: "uint24";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "_stableCoinFXrpPoolFeeTierPPM";
|
|
420
|
+
readonly internalType: "uint24";
|
|
421
|
+
readonly type: "uint24";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "_maxSlippagePPM";
|
|
424
|
+
readonly internalType: "uint24";
|
|
425
|
+
readonly type: "uint24";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "_stableCoinUsdFeedId";
|
|
428
|
+
readonly internalType: "bytes21";
|
|
429
|
+
readonly type: "bytes21";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "_wNatUsdFeedId";
|
|
432
|
+
readonly internalType: "bytes21";
|
|
433
|
+
readonly type: "bytes21";
|
|
434
|
+
}];
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly name: "_xrplAddress";
|
|
440
|
+
readonly internalType: "string";
|
|
441
|
+
readonly type: "string";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "swapStableCoinForFAsset";
|
|
444
|
+
readonly outputs: readonly [];
|
|
445
|
+
readonly stateMutability: "nonpayable";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly inputs: readonly [{
|
|
449
|
+
readonly name: "_xrplAddress";
|
|
450
|
+
readonly internalType: "string";
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
}];
|
|
453
|
+
readonly name: "swapWNatForStableCoin";
|
|
454
|
+
readonly outputs: readonly [];
|
|
455
|
+
readonly stateMutability: "nonpayable";
|
|
456
|
+
}], undefined, undefined>;
|
|
457
|
+
/**
|
|
458
|
+
* Wraps __{@link useSimulateContract}__ with `abi` set to __{@link iSwapFacetAbi}__
|
|
459
|
+
*/
|
|
460
|
+
export declare const useSimulateISwapFacet: import("wagmi/codegen").CreateUseSimulateContractReturnType<readonly [{
|
|
461
|
+
readonly type: "error";
|
|
462
|
+
readonly inputs: readonly [];
|
|
463
|
+
readonly name: "InvalidFeedId";
|
|
464
|
+
}, {
|
|
465
|
+
readonly type: "error";
|
|
466
|
+
readonly inputs: readonly [];
|
|
467
|
+
readonly name: "InvalidMaxSlippagePPM";
|
|
468
|
+
}, {
|
|
469
|
+
readonly type: "error";
|
|
470
|
+
readonly inputs: readonly [];
|
|
471
|
+
readonly name: "InvalidPoolFeeTierPPM";
|
|
472
|
+
}, {
|
|
473
|
+
readonly type: "error";
|
|
474
|
+
readonly inputs: readonly [];
|
|
475
|
+
readonly name: "InvalidStableCoin";
|
|
476
|
+
}, {
|
|
477
|
+
readonly type: "error";
|
|
478
|
+
readonly inputs: readonly [];
|
|
479
|
+
readonly name: "InvalidUniswapV3Router";
|
|
480
|
+
}, {
|
|
481
|
+
readonly type: "event";
|
|
482
|
+
readonly anonymous: false;
|
|
483
|
+
readonly inputs: readonly [{
|
|
484
|
+
readonly name: "personalAccount";
|
|
485
|
+
readonly internalType: "address";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
readonly indexed: true;
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "tokenIn";
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
readonly indexed: true;
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "tokenOut";
|
|
495
|
+
readonly internalType: "address";
|
|
496
|
+
readonly type: "address";
|
|
497
|
+
readonly indexed: true;
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "xrplOwner";
|
|
500
|
+
readonly internalType: "string";
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly indexed: false;
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "amountIn";
|
|
505
|
+
readonly internalType: "uint256";
|
|
506
|
+
readonly type: "uint256";
|
|
507
|
+
readonly indexed: false;
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "amountOut";
|
|
510
|
+
readonly internalType: "uint256";
|
|
511
|
+
readonly type: "uint256";
|
|
512
|
+
readonly indexed: false;
|
|
513
|
+
}];
|
|
514
|
+
readonly name: "SwapExecuted";
|
|
515
|
+
}, {
|
|
516
|
+
readonly type: "event";
|
|
517
|
+
readonly anonymous: false;
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly name: "uniswapV3Router";
|
|
520
|
+
readonly internalType: "address";
|
|
521
|
+
readonly type: "address";
|
|
522
|
+
readonly indexed: false;
|
|
523
|
+
}, {
|
|
524
|
+
readonly name: "stableCoin";
|
|
525
|
+
readonly internalType: "address";
|
|
526
|
+
readonly type: "address";
|
|
527
|
+
readonly indexed: false;
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "wNatStableCoinPoolFeeTierPPM";
|
|
530
|
+
readonly internalType: "uint24";
|
|
531
|
+
readonly type: "uint24";
|
|
532
|
+
readonly indexed: false;
|
|
533
|
+
}, {
|
|
534
|
+
readonly name: "stableCoinFXrpPoolFeeTierPPM";
|
|
535
|
+
readonly internalType: "uint24";
|
|
536
|
+
readonly type: "uint24";
|
|
537
|
+
readonly indexed: false;
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "maxSlippagePPM";
|
|
540
|
+
readonly internalType: "uint24";
|
|
541
|
+
readonly type: "uint24";
|
|
542
|
+
readonly indexed: false;
|
|
543
|
+
}, {
|
|
544
|
+
readonly name: "stableCoinUsdFeedId";
|
|
545
|
+
readonly internalType: "bytes21";
|
|
546
|
+
readonly type: "bytes21";
|
|
547
|
+
readonly indexed: false;
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "wNatUsdFeedId";
|
|
550
|
+
readonly internalType: "bytes21";
|
|
551
|
+
readonly type: "bytes21";
|
|
552
|
+
readonly indexed: false;
|
|
553
|
+
}];
|
|
554
|
+
readonly name: "SwapParamsSet";
|
|
555
|
+
}, {
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
readonly inputs: readonly [];
|
|
558
|
+
readonly name: "getSwapParams";
|
|
559
|
+
readonly outputs: readonly [{
|
|
560
|
+
readonly name: "_uniswapV3Router";
|
|
561
|
+
readonly internalType: "address";
|
|
562
|
+
readonly type: "address";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "_stableCoin";
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
readonly type: "address";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "_wNatStableCoinPoolFeeTierPPM";
|
|
569
|
+
readonly internalType: "uint24";
|
|
570
|
+
readonly type: "uint24";
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "_stableCoinFXrpPoolFeeTierPPM";
|
|
573
|
+
readonly internalType: "uint24";
|
|
574
|
+
readonly type: "uint24";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "_maxSlippagePPM";
|
|
577
|
+
readonly internalType: "uint24";
|
|
578
|
+
readonly type: "uint24";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "_stableCoinUsdFeedId";
|
|
581
|
+
readonly internalType: "bytes21";
|
|
582
|
+
readonly type: "bytes21";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "_wNatUsdFeedId";
|
|
585
|
+
readonly internalType: "bytes21";
|
|
586
|
+
readonly type: "bytes21";
|
|
587
|
+
}];
|
|
588
|
+
readonly stateMutability: "view";
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "function";
|
|
591
|
+
readonly inputs: readonly [{
|
|
592
|
+
readonly name: "_xrplAddress";
|
|
593
|
+
readonly internalType: "string";
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
}];
|
|
596
|
+
readonly name: "swapStableCoinForFAsset";
|
|
597
|
+
readonly outputs: readonly [];
|
|
598
|
+
readonly stateMutability: "nonpayable";
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "function";
|
|
601
|
+
readonly inputs: readonly [{
|
|
602
|
+
readonly name: "_xrplAddress";
|
|
603
|
+
readonly internalType: "string";
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
}];
|
|
606
|
+
readonly name: "swapWNatForStableCoin";
|
|
607
|
+
readonly outputs: readonly [];
|
|
608
|
+
readonly stateMutability: "nonpayable";
|
|
609
|
+
}], undefined, undefined>;
|
|
610
|
+
/**
|
|
611
|
+
* Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link iSwapFacetAbi}__
|
|
612
|
+
*/
|
|
613
|
+
export declare const useWatchISwapFacetEvent: import("wagmi/codegen").CreateUseWatchContractEventReturnType<readonly [{
|
|
614
|
+
readonly type: "error";
|
|
615
|
+
readonly inputs: readonly [];
|
|
616
|
+
readonly name: "InvalidFeedId";
|
|
617
|
+
}, {
|
|
618
|
+
readonly type: "error";
|
|
619
|
+
readonly inputs: readonly [];
|
|
620
|
+
readonly name: "InvalidMaxSlippagePPM";
|
|
621
|
+
}, {
|
|
622
|
+
readonly type: "error";
|
|
623
|
+
readonly inputs: readonly [];
|
|
624
|
+
readonly name: "InvalidPoolFeeTierPPM";
|
|
625
|
+
}, {
|
|
626
|
+
readonly type: "error";
|
|
627
|
+
readonly inputs: readonly [];
|
|
628
|
+
readonly name: "InvalidStableCoin";
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "error";
|
|
631
|
+
readonly inputs: readonly [];
|
|
632
|
+
readonly name: "InvalidUniswapV3Router";
|
|
633
|
+
}, {
|
|
634
|
+
readonly type: "event";
|
|
635
|
+
readonly anonymous: false;
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly name: "personalAccount";
|
|
638
|
+
readonly internalType: "address";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
readonly indexed: true;
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "tokenIn";
|
|
643
|
+
readonly internalType: "address";
|
|
644
|
+
readonly type: "address";
|
|
645
|
+
readonly indexed: true;
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "tokenOut";
|
|
648
|
+
readonly internalType: "address";
|
|
649
|
+
readonly type: "address";
|
|
650
|
+
readonly indexed: true;
|
|
651
|
+
}, {
|
|
652
|
+
readonly name: "xrplOwner";
|
|
653
|
+
readonly internalType: "string";
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
readonly indexed: false;
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "amountIn";
|
|
658
|
+
readonly internalType: "uint256";
|
|
659
|
+
readonly type: "uint256";
|
|
660
|
+
readonly indexed: false;
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "amountOut";
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
readonly indexed: false;
|
|
666
|
+
}];
|
|
667
|
+
readonly name: "SwapExecuted";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "event";
|
|
670
|
+
readonly anonymous: false;
|
|
671
|
+
readonly inputs: readonly [{
|
|
672
|
+
readonly name: "uniswapV3Router";
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
readonly indexed: false;
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "stableCoin";
|
|
678
|
+
readonly internalType: "address";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
readonly indexed: false;
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "wNatStableCoinPoolFeeTierPPM";
|
|
683
|
+
readonly internalType: "uint24";
|
|
684
|
+
readonly type: "uint24";
|
|
685
|
+
readonly indexed: false;
|
|
686
|
+
}, {
|
|
687
|
+
readonly name: "stableCoinFXrpPoolFeeTierPPM";
|
|
688
|
+
readonly internalType: "uint24";
|
|
689
|
+
readonly type: "uint24";
|
|
690
|
+
readonly indexed: false;
|
|
691
|
+
}, {
|
|
692
|
+
readonly name: "maxSlippagePPM";
|
|
693
|
+
readonly internalType: "uint24";
|
|
694
|
+
readonly type: "uint24";
|
|
695
|
+
readonly indexed: false;
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "stableCoinUsdFeedId";
|
|
698
|
+
readonly internalType: "bytes21";
|
|
699
|
+
readonly type: "bytes21";
|
|
700
|
+
readonly indexed: false;
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "wNatUsdFeedId";
|
|
703
|
+
readonly internalType: "bytes21";
|
|
704
|
+
readonly type: "bytes21";
|
|
705
|
+
readonly indexed: false;
|
|
706
|
+
}];
|
|
707
|
+
readonly name: "SwapParamsSet";
|
|
708
|
+
}, {
|
|
709
|
+
readonly type: "function";
|
|
710
|
+
readonly inputs: readonly [];
|
|
711
|
+
readonly name: "getSwapParams";
|
|
712
|
+
readonly outputs: readonly [{
|
|
713
|
+
readonly name: "_uniswapV3Router";
|
|
714
|
+
readonly internalType: "address";
|
|
715
|
+
readonly type: "address";
|
|
716
|
+
}, {
|
|
717
|
+
readonly name: "_stableCoin";
|
|
718
|
+
readonly internalType: "address";
|
|
719
|
+
readonly type: "address";
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "_wNatStableCoinPoolFeeTierPPM";
|
|
722
|
+
readonly internalType: "uint24";
|
|
723
|
+
readonly type: "uint24";
|
|
724
|
+
}, {
|
|
725
|
+
readonly name: "_stableCoinFXrpPoolFeeTierPPM";
|
|
726
|
+
readonly internalType: "uint24";
|
|
727
|
+
readonly type: "uint24";
|
|
728
|
+
}, {
|
|
729
|
+
readonly name: "_maxSlippagePPM";
|
|
730
|
+
readonly internalType: "uint24";
|
|
731
|
+
readonly type: "uint24";
|
|
732
|
+
}, {
|
|
733
|
+
readonly name: "_stableCoinUsdFeedId";
|
|
734
|
+
readonly internalType: "bytes21";
|
|
735
|
+
readonly type: "bytes21";
|
|
736
|
+
}, {
|
|
737
|
+
readonly name: "_wNatUsdFeedId";
|
|
738
|
+
readonly internalType: "bytes21";
|
|
739
|
+
readonly type: "bytes21";
|
|
740
|
+
}];
|
|
741
|
+
readonly stateMutability: "view";
|
|
742
|
+
}, {
|
|
743
|
+
readonly type: "function";
|
|
744
|
+
readonly inputs: readonly [{
|
|
745
|
+
readonly name: "_xrplAddress";
|
|
746
|
+
readonly internalType: "string";
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
}];
|
|
749
|
+
readonly name: "swapStableCoinForFAsset";
|
|
750
|
+
readonly outputs: readonly [];
|
|
751
|
+
readonly stateMutability: "nonpayable";
|
|
752
|
+
}, {
|
|
753
|
+
readonly type: "function";
|
|
754
|
+
readonly inputs: readonly [{
|
|
755
|
+
readonly name: "_xrplAddress";
|
|
756
|
+
readonly internalType: "string";
|
|
757
|
+
readonly type: "string";
|
|
758
|
+
}];
|
|
759
|
+
readonly name: "swapWNatForStableCoin";
|
|
760
|
+
readonly outputs: readonly [];
|
|
761
|
+
readonly stateMutability: "nonpayable";
|
|
762
|
+
}], undefined, undefined, "abi">;
|
|
763
|
+
//# sourceMappingURL=ISwapFacet.d.ts.map
|