@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.
Files changed (93) hide show
  1. package/dist/contracts/coston2/IInstructionsFacet.d.ts +0 -185
  2. package/dist/contracts/coston2/IInstructionsFacet.d.ts.map +1 -1
  3. package/dist/contracts/coston2/IInstructionsFacet.js +0 -21
  4. package/dist/contracts/coston2/IInstructionsFacet.js.map +1 -1
  5. package/dist/contracts/coston2/IMasterAccountController.d.ts +10 -990
  6. package/dist/contracts/coston2/IMasterAccountController.d.ts.map +1 -1
  7. package/dist/contracts/coston2/IMasterAccountController.js +0 -117
  8. package/dist/contracts/coston2/IMasterAccountController.js.map +1 -1
  9. package/dist/contracts/coston2/IPersonalAccount.d.ts +0 -132
  10. package/dist/contracts/coston2/IPersonalAccount.d.ts.map +1 -1
  11. package/dist/contracts/coston2/IPersonalAccount.js +0 -34
  12. package/dist/contracts/coston2/IPersonalAccount.js.map +1 -1
  13. package/dist/contracts/coston2/IVaultsFacet.d.ts +0 -60
  14. package/dist/contracts/coston2/IVaultsFacet.d.ts.map +1 -1
  15. package/dist/contracts/coston2/IVaultsFacet.js +0 -10
  16. package/dist/contracts/coston2/IVaultsFacet.js.map +1 -1
  17. package/dist/contracts/coston2/index.d.ts +0 -1
  18. package/dist/contracts/coston2/index.d.ts.map +1 -1
  19. package/dist/contracts/coston2/index.js +0 -1
  20. package/dist/contracts/coston2/index.js.map +1 -1
  21. package/dist/contracts/flare/IAgentVaultsFacet.d.ts +298 -0
  22. package/dist/contracts/flare/IAgentVaultsFacet.d.ts.map +1 -0
  23. package/dist/contracts/flare/IAgentVaultsFacet.js +76 -0
  24. package/dist/contracts/flare/IAgentVaultsFacet.js.map +1 -0
  25. package/dist/contracts/flare/IDiamond.d.ts +72 -0
  26. package/dist/contracts/flare/IDiamond.d.ts.map +1 -0
  27. package/dist/contracts/flare/IDiamond.js +37 -0
  28. package/dist/contracts/flare/IDiamond.js.map +1 -0
  29. package/dist/contracts/flare/IDiamondCut.d.ts +270 -0
  30. package/dist/contracts/flare/IDiamondCut.d.ts.map +1 -0
  31. package/dist/contracts/flare/IDiamondCut.js +65 -0
  32. package/dist/contracts/flare/IDiamondCut.js.map +1 -0
  33. package/dist/contracts/flare/IERC165.d.ts +34 -0
  34. package/dist/contracts/flare/IERC165.d.ts.map +1 -0
  35. package/dist/contracts/flare/IERC165.js +24 -0
  36. package/dist/contracts/flare/IERC165.js.map +1 -0
  37. package/dist/contracts/flare/IERC173.d.ts +193 -0
  38. package/dist/contracts/flare/IERC173.d.ts.map +1 -0
  39. package/dist/contracts/flare/IERC173.js +52 -0
  40. package/dist/contracts/flare/IERC173.js.map +1 -0
  41. package/dist/contracts/flare/IExecutorsFacet.d.ts +136 -0
  42. package/dist/contracts/flare/IExecutorsFacet.d.ts.map +1 -0
  43. package/dist/contracts/flare/IExecutorsFacet.js +45 -0
  44. package/dist/contracts/flare/IExecutorsFacet.js.map +1 -0
  45. package/dist/contracts/flare/IInstructionFeesFacet.d.ts +247 -0
  46. package/dist/contracts/flare/IInstructionFeesFacet.d.ts.map +1 -0
  47. package/dist/contracts/flare/IInstructionFeesFacet.js +69 -0
  48. package/dist/contracts/flare/IInstructionFeesFacet.js.map +1 -0
  49. package/dist/contracts/flare/IInstructionsFacet.d.ts +3278 -0
  50. package/dist/contracts/flare/IInstructionsFacet.d.ts.map +1 -0
  51. package/dist/contracts/flare/IInstructionsFacet.js +321 -0
  52. package/dist/contracts/flare/IInstructionsFacet.js.map +1 -0
  53. package/dist/contracts/flare/IMasterAccountController.d.ts +7713 -0
  54. package/dist/contracts/flare/IMasterAccountController.d.ts.map +1 -0
  55. package/dist/contracts/flare/IMasterAccountController.js +802 -0
  56. package/dist/contracts/flare/IMasterAccountController.js.map +1 -0
  57. package/dist/contracts/flare/IPaymentProofsFacet.d.ts +184 -0
  58. package/dist/contracts/flare/IPaymentProofsFacet.d.ts.map +1 -0
  59. package/dist/contracts/flare/IPaymentProofsFacet.js +52 -0
  60. package/dist/contracts/flare/IPaymentProofsFacet.js.map +1 -0
  61. package/dist/contracts/flare/IPersonalAccount.d.ts +967 -0
  62. package/dist/contracts/flare/IPersonalAccount.d.ts.map +1 -0
  63. package/dist/contracts/flare/IPersonalAccount.js +170 -0
  64. package/dist/contracts/flare/IPersonalAccount.js.map +1 -0
  65. package/dist/contracts/flare/IPersonalAccountsFacet.d.ts +193 -0
  66. package/dist/contracts/flare/IPersonalAccountsFacet.d.ts.map +1 -0
  67. package/dist/contracts/flare/IPersonalAccountsFacet.js +58 -0
  68. package/dist/contracts/flare/IPersonalAccountsFacet.js.map +1 -0
  69. package/dist/contracts/flare/ISwapFacet.d.ts +763 -0
  70. package/dist/contracts/flare/ISwapFacet.d.ts.map +1 -0
  71. package/dist/contracts/flare/ISwapFacet.js +90 -0
  72. package/dist/contracts/flare/ISwapFacet.js.map +1 -0
  73. package/dist/contracts/flare/ITimelockFacet.d.ts +498 -0
  74. package/dist/contracts/flare/ITimelockFacet.d.ts.map +1 -0
  75. package/dist/contracts/flare/ITimelockFacet.js +81 -0
  76. package/dist/contracts/flare/ITimelockFacet.js.map +1 -0
  77. package/dist/contracts/flare/IVaultsFacet.d.ts +280 -0
  78. package/dist/contracts/flare/IVaultsFacet.d.ts.map +1 -0
  79. package/dist/contracts/flare/IVaultsFacet.js +57 -0
  80. package/dist/contracts/flare/IVaultsFacet.js.map +1 -0
  81. package/dist/contracts/flare/IXrplProviderWalletsFacet.d.ts +148 -0
  82. package/dist/contracts/flare/IXrplProviderWalletsFacet.d.ts.map +1 -0
  83. package/dist/contracts/flare/IXrplProviderWalletsFacet.js +54 -0
  84. package/dist/contracts/flare/IXrplProviderWalletsFacet.js.map +1 -0
  85. package/dist/contracts/flare/index.d.ts +16 -0
  86. package/dist/contracts/flare/index.d.ts.map +1 -1
  87. package/dist/contracts/flare/index.js +16 -0
  88. package/dist/contracts/flare/index.js.map +1 -1
  89. package/package.json +4 -4
  90. package/dist/contracts/coston2/ICustomInstructionsFacet.d.ts +0 -713
  91. package/dist/contracts/coston2/ICustomInstructionsFacet.d.ts.map +0 -1
  92. package/dist/contracts/coston2/ICustomInstructionsFacet.js +0 -123
  93. package/dist/contracts/coston2/ICustomInstructionsFacet.js.map +0 -1
@@ -0,0 +1,802 @@
1
+ import { createUseReadContract, createUseSimulateContract, createUseWatchContractEvent, createUseWriteContract } from 'wagmi/codegen';
2
+
3
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
+ // IMasterAccountController
5
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6
+ const iMasterAccountControllerAbi = [
7
+ { type: "error", inputs: [], name: "AddressZero" },
8
+ {
9
+ type: "error",
10
+ inputs: [{ name: "agentVault", internalType: "address", type: "address" }],
11
+ name: "AgentNotAvailable",
12
+ },
13
+ {
14
+ type: "error",
15
+ inputs: [{ name: "agentVaultAddress", internalType: "address", type: "address" }],
16
+ name: "AgentVaultAddressAlreadyAdded",
17
+ },
18
+ {
19
+ type: "error",
20
+ inputs: [{ name: "index", internalType: "uint256", type: "uint256" }],
21
+ name: "AgentVaultAddressZero",
22
+ },
23
+ {
24
+ type: "error",
25
+ inputs: [{ name: "agentVaultId", internalType: "uint256", type: "uint256" }],
26
+ name: "AgentVaultIdAlreadyAdded",
27
+ },
28
+ { type: "error", inputs: [{ name: "index", internalType: "uint256", type: "uint256" }], name: "AgentVaultIdZero" },
29
+ { type: "error", inputs: [], name: "AgentsVaultsLengthsMismatch" },
30
+ {
31
+ type: "error",
32
+ inputs: [{ name: "instructionId", internalType: "uint256", type: "uint256" }],
33
+ name: "InstructionFeeNotSet",
34
+ },
35
+ { type: "error", inputs: [], name: "InstructionFeesLengthsMismatch" },
36
+ {
37
+ type: "error",
38
+ inputs: [{ name: "agentVaultId", internalType: "uint256", type: "uint256" }],
39
+ name: "InvalidAgentVault",
40
+ },
41
+ { type: "error", inputs: [], name: "InvalidAmount" },
42
+ { type: "error", inputs: [], name: "InvalidExecutor" },
43
+ { type: "error", inputs: [], name: "InvalidExecutorFee" },
44
+ { type: "error", inputs: [], name: "InvalidFeedId" },
45
+ {
46
+ type: "error",
47
+ inputs: [
48
+ { name: "instructionType", internalType: "uint256", type: "uint256" },
49
+ { name: "instructionCommand", internalType: "uint256", type: "uint256" },
50
+ ],
51
+ name: "InvalidInstruction",
52
+ },
53
+ {
54
+ type: "error",
55
+ inputs: [{ name: "instructionId", internalType: "uint256", type: "uint256" }],
56
+ name: "InvalidInstructionFee",
57
+ },
58
+ {
59
+ type: "error",
60
+ inputs: [{ name: "instructionType", internalType: "uint256", type: "uint256" }],
61
+ name: "InvalidInstructionType",
62
+ },
63
+ { type: "error", inputs: [], name: "InvalidMaxSlippagePPM" },
64
+ { type: "error", inputs: [], name: "InvalidMinter" },
65
+ {
66
+ type: "error",
67
+ inputs: [{ name: "requiredAmount", internalType: "uint256", type: "uint256" }],
68
+ name: "InvalidPaymentAmount",
69
+ },
70
+ { type: "error", inputs: [], name: "InvalidPaymentProofValidityDuration" },
71
+ { type: "error", inputs: [], name: "InvalidPersonalAccountImplementation" },
72
+ { type: "error", inputs: [], name: "InvalidPoolFeeTierPPM" },
73
+ { type: "error", inputs: [], name: "InvalidReceivingAddressHash" },
74
+ { type: "error", inputs: [], name: "InvalidSourceId" },
75
+ { type: "error", inputs: [], name: "InvalidStableCoin" },
76
+ { type: "error", inputs: [], name: "InvalidTransactionId" },
77
+ { type: "error", inputs: [], name: "InvalidTransactionProof" },
78
+ { type: "error", inputs: [], name: "InvalidTransactionStatus" },
79
+ { type: "error", inputs: [], name: "InvalidUniswapV3Router" },
80
+ { type: "error", inputs: [{ name: "vaultId", internalType: "uint256", type: "uint256" }], name: "InvalidVaultId" },
81
+ { type: "error", inputs: [{ name: "vaultType", internalType: "uint8", type: "uint8" }], name: "InvalidVaultType" },
82
+ {
83
+ type: "error",
84
+ inputs: [{ name: "xrplProviderWallet", internalType: "string", type: "string" }],
85
+ name: "InvalidXrplProviderWallet",
86
+ },
87
+ { type: "error", inputs: [], name: "MintingNotCompleted" },
88
+ { type: "error", inputs: [], name: "MismatchingSourceAndXrplAddr" },
89
+ { type: "error", inputs: [], name: "PaymentProofExpired" },
90
+ {
91
+ type: "error",
92
+ inputs: [{ name: "personalAccountAddress", internalType: "address", type: "address" }],
93
+ name: "PersonalAccountNotSuccessfullyDeployed",
94
+ },
95
+ { type: "error", inputs: [], name: "TimelockDurationTooLong" },
96
+ { type: "error", inputs: [], name: "TimelockInvalidSelector" },
97
+ { type: "error", inputs: [], name: "TimelockNotAllowedYet" },
98
+ { type: "error", inputs: [], name: "TransactionAlreadyExecuted" },
99
+ { type: "error", inputs: [], name: "UnknownCollateralReservationId" },
100
+ { type: "error", inputs: [], name: "ValueZero" },
101
+ {
102
+ type: "error",
103
+ inputs: [{ name: "vaultAddress", internalType: "address", type: "address" }],
104
+ name: "VaultAddressAlreadyAdded",
105
+ },
106
+ { type: "error", inputs: [{ name: "index", internalType: "uint256", type: "uint256" }], name: "VaultAddressZero" },
107
+ {
108
+ type: "error",
109
+ inputs: [{ name: "vaultId", internalType: "uint256", type: "uint256" }],
110
+ name: "VaultIdAlreadyAdded",
111
+ },
112
+ { type: "error", inputs: [{ name: "index", internalType: "uint256", type: "uint256" }], name: "VaultIdZero" },
113
+ { type: "error", inputs: [], name: "VaultsLengthsMismatch" },
114
+ {
115
+ type: "error",
116
+ inputs: [{ name: "xrplProviderWallet", internalType: "string", type: "string" }],
117
+ name: "XrplProviderWalletAlreadyExists",
118
+ },
119
+ {
120
+ type: "event",
121
+ anonymous: false,
122
+ inputs: [
123
+ { name: "agentVaultId", internalType: "uint256", type: "uint256", indexed: true },
124
+ { name: "agentVaultAddress", internalType: "address", type: "address", indexed: true },
125
+ ],
126
+ name: "AgentVaultAdded",
127
+ },
128
+ {
129
+ type: "event",
130
+ anonymous: false,
131
+ inputs: [
132
+ { name: "agentVaultId", internalType: "uint256", type: "uint256", indexed: true },
133
+ { name: "agentVaultAddress", internalType: "address", type: "address", indexed: true },
134
+ ],
135
+ name: "AgentVaultRemoved",
136
+ },
137
+ {
138
+ type: "event",
139
+ anonymous: false,
140
+ inputs: [
141
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
142
+ { name: "fxrp", internalType: "address", type: "address", indexed: false },
143
+ { name: "vault", internalType: "address", type: "address", indexed: false },
144
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
145
+ ],
146
+ name: "Approved",
147
+ },
148
+ {
149
+ type: "event",
150
+ anonymous: false,
151
+ inputs: [
152
+ { name: "encodedCall", internalType: "bytes", type: "bytes", indexed: false },
153
+ { name: "encodedCallHash", internalType: "bytes32", type: "bytes32", indexed: false },
154
+ { name: "allowedAfterTimestamp", internalType: "uint256", type: "uint256", indexed: false },
155
+ ],
156
+ name: "CallTimelocked",
157
+ },
158
+ {
159
+ type: "event",
160
+ anonymous: false,
161
+ inputs: [
162
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
163
+ { name: "vault", internalType: "address", type: "address", indexed: true },
164
+ { name: "year", internalType: "uint256", type: "uint256", indexed: false },
165
+ { name: "month", internalType: "uint256", type: "uint256", indexed: false },
166
+ { name: "day", internalType: "uint256", type: "uint256", indexed: false },
167
+ { name: "shares", internalType: "uint256", type: "uint256", indexed: false },
168
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
169
+ ],
170
+ name: "Claimed",
171
+ },
172
+ {
173
+ type: "event",
174
+ anonymous: false,
175
+ inputs: [
176
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
177
+ { name: "transactionId", internalType: "bytes32", type: "bytes32", indexed: true },
178
+ { name: "paymentReference", internalType: "bytes32", type: "bytes32", indexed: true },
179
+ { name: "xrplOwner", internalType: "string", type: "string", indexed: false },
180
+ { name: "collateralReservationId", internalType: "uint256", type: "uint256", indexed: false },
181
+ { name: "agentVault", internalType: "address", type: "address", indexed: false },
182
+ { name: "lots", internalType: "uint256", type: "uint256", indexed: false },
183
+ { name: "executor", internalType: "address", type: "address", indexed: false },
184
+ { name: "executorFee", internalType: "uint256", type: "uint256", indexed: false },
185
+ ],
186
+ name: "CollateralReserved",
187
+ },
188
+ {
189
+ type: "event",
190
+ anonymous: false,
191
+ inputs: [{ name: "defaultInstructionFee", internalType: "uint256", type: "uint256", indexed: false }],
192
+ name: "DefaultInstructionFeeSet",
193
+ },
194
+ {
195
+ type: "event",
196
+ anonymous: false,
197
+ inputs: [
198
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
199
+ { name: "vault", internalType: "address", type: "address", indexed: true },
200
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
201
+ { name: "shares", internalType: "uint256", type: "uint256", indexed: false },
202
+ ],
203
+ name: "Deposited",
204
+ },
205
+ {
206
+ type: "event",
207
+ anonymous: false,
208
+ inputs: [
209
+ {
210
+ name: "_diamondCut",
211
+ internalType: "struct IDiamond.FacetCut[]",
212
+ type: "tuple[]",
213
+ components: [
214
+ { name: "facetAddress", internalType: "address", type: "address" },
215
+ { name: "action", internalType: "enum IDiamond.FacetCutAction", type: "uint8" },
216
+ { name: "functionSelectors", internalType: "bytes4[]", type: "bytes4[]" },
217
+ ],
218
+ indexed: false,
219
+ },
220
+ { name: "_init", internalType: "address", type: "address", indexed: false },
221
+ { name: "_calldata", internalType: "bytes", type: "bytes", indexed: false },
222
+ ],
223
+ name: "DiamondCut",
224
+ },
225
+ {
226
+ type: "event",
227
+ anonymous: false,
228
+ inputs: [{ name: "executorFee", internalType: "uint256", type: "uint256", indexed: false }],
229
+ name: "ExecutorFeeSet",
230
+ },
231
+ {
232
+ type: "event",
233
+ anonymous: false,
234
+ inputs: [{ name: "executor", internalType: "address", type: "address", indexed: false }],
235
+ name: "ExecutorSet",
236
+ },
237
+ {
238
+ type: "event",
239
+ anonymous: false,
240
+ inputs: [
241
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
242
+ { name: "lots", internalType: "uint256", type: "uint256", indexed: false },
243
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
244
+ { name: "executor", internalType: "address", type: "address", indexed: false },
245
+ { name: "executorFee", internalType: "uint256", type: "uint256", indexed: false },
246
+ ],
247
+ name: "FXrpRedeemed",
248
+ },
249
+ {
250
+ type: "event",
251
+ anonymous: false,
252
+ inputs: [
253
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
254
+ { name: "to", internalType: "address", type: "address", indexed: false },
255
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
256
+ ],
257
+ name: "FXrpTransferred",
258
+ },
259
+ {
260
+ type: "event",
261
+ anonymous: false,
262
+ inputs: [
263
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
264
+ { name: "transactionId", internalType: "bytes32", type: "bytes32", indexed: true },
265
+ { name: "paymentReference", internalType: "bytes32", type: "bytes32", indexed: true },
266
+ { name: "xrplOwner", internalType: "string", type: "string", indexed: false },
267
+ { name: "instructionId", internalType: "uint256", type: "uint256", indexed: false },
268
+ ],
269
+ name: "InstructionExecuted",
270
+ },
271
+ {
272
+ type: "event",
273
+ anonymous: false,
274
+ inputs: [{ name: "instructionId", internalType: "uint256", type: "uint256", indexed: true }],
275
+ name: "InstructionFeeRemoved",
276
+ },
277
+ {
278
+ type: "event",
279
+ anonymous: false,
280
+ inputs: [
281
+ { name: "instructionId", internalType: "uint256", type: "uint256", indexed: true },
282
+ { name: "instructionFee", internalType: "uint256", type: "uint256", indexed: false },
283
+ ],
284
+ name: "InstructionFeeSet",
285
+ },
286
+ {
287
+ type: "event",
288
+ anonymous: false,
289
+ inputs: [
290
+ { name: "previousOwner", internalType: "address", type: "address", indexed: true },
291
+ { name: "newOwner", internalType: "address", type: "address", indexed: true },
292
+ ],
293
+ name: "OwnershipTransferred",
294
+ },
295
+ {
296
+ type: "event",
297
+ anonymous: false,
298
+ inputs: [
299
+ { name: "paymentProofValidityDurationSeconds", internalType: "uint256", type: "uint256", indexed: false },
300
+ ],
301
+ name: "PaymentProofValidityDurationSecondsSet",
302
+ },
303
+ {
304
+ type: "event",
305
+ anonymous: false,
306
+ inputs: [
307
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
308
+ { name: "xrplOwner", internalType: "string", type: "string", indexed: false },
309
+ ],
310
+ name: "PersonalAccountCreated",
311
+ },
312
+ {
313
+ type: "event",
314
+ anonymous: false,
315
+ inputs: [{ name: "newImplementation", internalType: "address", type: "address", indexed: false }],
316
+ name: "PersonalAccountImplementationSet",
317
+ },
318
+ {
319
+ type: "event",
320
+ anonymous: false,
321
+ inputs: [
322
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
323
+ { name: "vault", internalType: "address", type: "address", indexed: true },
324
+ { name: "shares", internalType: "uint256", type: "uint256", indexed: false },
325
+ { name: "claimableEpoch", internalType: "uint256", type: "uint256", indexed: false },
326
+ { name: "year", internalType: "uint256", type: "uint256", indexed: false },
327
+ { name: "month", internalType: "uint256", type: "uint256", indexed: false },
328
+ { name: "day", internalType: "uint256", type: "uint256", indexed: false },
329
+ ],
330
+ name: "RedeemRequested",
331
+ },
332
+ {
333
+ type: "event",
334
+ anonymous: false,
335
+ inputs: [
336
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
337
+ { name: "vault", internalType: "address", type: "address", indexed: true },
338
+ { name: "shares", internalType: "uint256", type: "uint256", indexed: false },
339
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
340
+ ],
341
+ name: "Redeemed",
342
+ },
343
+ {
344
+ type: "event",
345
+ anonymous: false,
346
+ inputs: [
347
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
348
+ { name: "tokenIn", internalType: "address", type: "address", indexed: true },
349
+ { name: "tokenOut", internalType: "address", type: "address", indexed: true },
350
+ { name: "xrplOwner", internalType: "string", type: "string", indexed: false },
351
+ { name: "amountIn", internalType: "uint256", type: "uint256", indexed: false },
352
+ { name: "amountOut", internalType: "uint256", type: "uint256", indexed: false },
353
+ ],
354
+ name: "SwapExecuted",
355
+ },
356
+ {
357
+ type: "event",
358
+ anonymous: false,
359
+ inputs: [
360
+ { name: "uniswapV3Router", internalType: "address", type: "address", indexed: false },
361
+ { name: "stableCoin", internalType: "address", type: "address", indexed: false },
362
+ { name: "wNatStableCoinPoolFeeTierPPM", internalType: "uint24", type: "uint24", indexed: false },
363
+ { name: "stableCoinFXrpPoolFeeTierPPM", internalType: "uint24", type: "uint24", indexed: false },
364
+ { name: "maxSlippagePPM", internalType: "uint24", type: "uint24", indexed: false },
365
+ { name: "stableCoinUsdFeedId", internalType: "bytes21", type: "bytes21", indexed: false },
366
+ { name: "wNatUsdFeedId", internalType: "bytes21", type: "bytes21", indexed: false },
367
+ ],
368
+ name: "SwapParamsSet",
369
+ },
370
+ {
371
+ type: "event",
372
+ anonymous: false,
373
+ inputs: [{ name: "timelockDurationSeconds", internalType: "uint256", type: "uint256", indexed: false }],
374
+ name: "TimelockDurationSet",
375
+ },
376
+ {
377
+ type: "event",
378
+ anonymous: false,
379
+ inputs: [{ name: "encodedCallHash", internalType: "bytes32", type: "bytes32", indexed: false }],
380
+ name: "TimelockedCallCanceled",
381
+ },
382
+ {
383
+ type: "event",
384
+ anonymous: false,
385
+ inputs: [{ name: "encodedCallHash", internalType: "bytes32", type: "bytes32", indexed: false }],
386
+ name: "TimelockedCallExecuted",
387
+ },
388
+ {
389
+ type: "event",
390
+ anonymous: false,
391
+ inputs: [
392
+ { name: "vaultId", internalType: "uint256", type: "uint256", indexed: true },
393
+ { name: "vaultAddress", internalType: "address", type: "address", indexed: true },
394
+ { name: "vaultType", internalType: "uint8", type: "uint8", indexed: true },
395
+ ],
396
+ name: "VaultAdded",
397
+ },
398
+ {
399
+ type: "event",
400
+ anonymous: false,
401
+ inputs: [
402
+ { name: "personalAccount", internalType: "address", type: "address", indexed: true },
403
+ { name: "vault", internalType: "address", type: "address", indexed: true },
404
+ { name: "period", internalType: "uint256", type: "uint256", indexed: false },
405
+ { name: "amount", internalType: "uint256", type: "uint256", indexed: false },
406
+ ],
407
+ name: "WithdrawalClaimed",
408
+ },
409
+ {
410
+ type: "event",
411
+ anonymous: false,
412
+ inputs: [{ name: "xrplProviderWallet", internalType: "string", type: "string", indexed: false }],
413
+ name: "XrplProviderWalletAdded",
414
+ },
415
+ {
416
+ type: "event",
417
+ anonymous: false,
418
+ inputs: [{ name: "xrplProviderWallet", internalType: "string", type: "string", indexed: false }],
419
+ name: "XrplProviderWalletRemoved",
420
+ },
421
+ {
422
+ type: "function",
423
+ inputs: [
424
+ {
425
+ name: "_diamondCut",
426
+ internalType: "struct IDiamond.FacetCut[]",
427
+ type: "tuple[]",
428
+ components: [
429
+ { name: "facetAddress", internalType: "address", type: "address" },
430
+ { name: "action", internalType: "enum IDiamond.FacetCutAction", type: "uint8" },
431
+ { name: "functionSelectors", internalType: "bytes4[]", type: "bytes4[]" },
432
+ ],
433
+ },
434
+ { name: "_init", internalType: "address", type: "address" },
435
+ { name: "_calldata", internalType: "bytes", type: "bytes" },
436
+ ],
437
+ name: "diamondCut",
438
+ outputs: [],
439
+ stateMutability: "nonpayable",
440
+ },
441
+ {
442
+ type: "function",
443
+ inputs: [
444
+ { name: "_collateralReservationId", internalType: "uint256", type: "uint256" },
445
+ {
446
+ name: "_proof",
447
+ internalType: "struct IPayment.Proof",
448
+ type: "tuple",
449
+ components: [
450
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
451
+ {
452
+ name: "data",
453
+ internalType: "struct IPayment.Response",
454
+ type: "tuple",
455
+ components: [
456
+ { name: "attestationType", internalType: "bytes32", type: "bytes32" },
457
+ { name: "sourceId", internalType: "bytes32", type: "bytes32" },
458
+ { name: "votingRound", internalType: "uint64", type: "uint64" },
459
+ { name: "lowestUsedTimestamp", internalType: "uint64", type: "uint64" },
460
+ {
461
+ name: "requestBody",
462
+ internalType: "struct IPayment.RequestBody",
463
+ type: "tuple",
464
+ components: [
465
+ { name: "transactionId", internalType: "bytes32", type: "bytes32" },
466
+ { name: "inUtxo", internalType: "uint256", type: "uint256" },
467
+ { name: "utxo", internalType: "uint256", type: "uint256" },
468
+ ],
469
+ },
470
+ {
471
+ name: "responseBody",
472
+ internalType: "struct IPayment.ResponseBody",
473
+ type: "tuple",
474
+ components: [
475
+ { name: "blockNumber", internalType: "uint64", type: "uint64" },
476
+ { name: "blockTimestamp", internalType: "uint64", type: "uint64" },
477
+ { name: "sourceAddressHash", internalType: "bytes32", type: "bytes32" },
478
+ { name: "sourceAddressesRoot", internalType: "bytes32", type: "bytes32" },
479
+ { name: "receivingAddressHash", internalType: "bytes32", type: "bytes32" },
480
+ { name: "intendedReceivingAddressHash", internalType: "bytes32", type: "bytes32" },
481
+ { name: "spentAmount", internalType: "int256", type: "int256" },
482
+ { name: "intendedSpentAmount", internalType: "int256", type: "int256" },
483
+ { name: "receivedAmount", internalType: "int256", type: "int256" },
484
+ { name: "intendedReceivedAmount", internalType: "int256", type: "int256" },
485
+ { name: "standardPaymentReference", internalType: "bytes32", type: "bytes32" },
486
+ { name: "oneToOne", internalType: "bool", type: "bool" },
487
+ { name: "status", internalType: "uint8", type: "uint8" },
488
+ ],
489
+ },
490
+ ],
491
+ },
492
+ ],
493
+ },
494
+ { name: "_xrplAddress", internalType: "string", type: "string" },
495
+ ],
496
+ name: "executeDepositAfterMinting",
497
+ outputs: [],
498
+ stateMutability: "nonpayable",
499
+ },
500
+ {
501
+ type: "function",
502
+ inputs: [
503
+ {
504
+ name: "_proof",
505
+ internalType: "struct IPayment.Proof",
506
+ type: "tuple",
507
+ components: [
508
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
509
+ {
510
+ name: "data",
511
+ internalType: "struct IPayment.Response",
512
+ type: "tuple",
513
+ components: [
514
+ { name: "attestationType", internalType: "bytes32", type: "bytes32" },
515
+ { name: "sourceId", internalType: "bytes32", type: "bytes32" },
516
+ { name: "votingRound", internalType: "uint64", type: "uint64" },
517
+ { name: "lowestUsedTimestamp", internalType: "uint64", type: "uint64" },
518
+ {
519
+ name: "requestBody",
520
+ internalType: "struct IPayment.RequestBody",
521
+ type: "tuple",
522
+ components: [
523
+ { name: "transactionId", internalType: "bytes32", type: "bytes32" },
524
+ { name: "inUtxo", internalType: "uint256", type: "uint256" },
525
+ { name: "utxo", internalType: "uint256", type: "uint256" },
526
+ ],
527
+ },
528
+ {
529
+ name: "responseBody",
530
+ internalType: "struct IPayment.ResponseBody",
531
+ type: "tuple",
532
+ components: [
533
+ { name: "blockNumber", internalType: "uint64", type: "uint64" },
534
+ { name: "blockTimestamp", internalType: "uint64", type: "uint64" },
535
+ { name: "sourceAddressHash", internalType: "bytes32", type: "bytes32" },
536
+ { name: "sourceAddressesRoot", internalType: "bytes32", type: "bytes32" },
537
+ { name: "receivingAddressHash", internalType: "bytes32", type: "bytes32" },
538
+ { name: "intendedReceivingAddressHash", internalType: "bytes32", type: "bytes32" },
539
+ { name: "spentAmount", internalType: "int256", type: "int256" },
540
+ { name: "intendedSpentAmount", internalType: "int256", type: "int256" },
541
+ { name: "receivedAmount", internalType: "int256", type: "int256" },
542
+ { name: "intendedReceivedAmount", internalType: "int256", type: "int256" },
543
+ { name: "standardPaymentReference", internalType: "bytes32", type: "bytes32" },
544
+ { name: "oneToOne", internalType: "bool", type: "bool" },
545
+ { name: "status", internalType: "uint8", type: "uint8" },
546
+ ],
547
+ },
548
+ ],
549
+ },
550
+ ],
551
+ },
552
+ { name: "_xrplAddress", internalType: "string", type: "string" },
553
+ ],
554
+ name: "executeInstruction",
555
+ outputs: [],
556
+ stateMutability: "payable",
557
+ },
558
+ {
559
+ type: "function",
560
+ inputs: [{ name: "_encodedCall", internalType: "bytes", type: "bytes" }],
561
+ name: "executeTimelockedCall",
562
+ outputs: [],
563
+ stateMutability: "nonpayable",
564
+ },
565
+ {
566
+ type: "function",
567
+ inputs: [{ name: "_functionSelector", internalType: "bytes4", type: "bytes4" }],
568
+ name: "facetAddress",
569
+ outputs: [{ name: "facetAddress_", internalType: "address", type: "address" }],
570
+ stateMutability: "view",
571
+ },
572
+ {
573
+ type: "function",
574
+ inputs: [],
575
+ name: "facetAddresses",
576
+ outputs: [{ name: "facetAddresses_", internalType: "address[]", type: "address[]" }],
577
+ stateMutability: "view",
578
+ },
579
+ {
580
+ type: "function",
581
+ inputs: [{ name: "_facet", internalType: "address", type: "address" }],
582
+ name: "facetFunctionSelectors",
583
+ outputs: [{ name: "facetFunctionSelectors_", internalType: "bytes4[]", type: "bytes4[]" }],
584
+ stateMutability: "view",
585
+ },
586
+ {
587
+ type: "function",
588
+ inputs: [],
589
+ name: "facets",
590
+ outputs: [
591
+ {
592
+ name: "facets_",
593
+ internalType: "struct IDiamondLoupe.Facet[]",
594
+ type: "tuple[]",
595
+ components: [
596
+ { name: "facetAddress", internalType: "address", type: "address" },
597
+ { name: "functionSelectors", internalType: "bytes4[]", type: "bytes4[]" },
598
+ ],
599
+ },
600
+ ],
601
+ stateMutability: "view",
602
+ },
603
+ {
604
+ type: "function",
605
+ inputs: [],
606
+ name: "getAgentVaults",
607
+ outputs: [
608
+ { name: "_agentVaultIds", internalType: "uint256[]", type: "uint256[]" },
609
+ { name: "_agentVaultAddresses", internalType: "address[]", type: "address[]" },
610
+ ],
611
+ stateMutability: "view",
612
+ },
613
+ {
614
+ type: "function",
615
+ inputs: [],
616
+ name: "getDefaultInstructionFee",
617
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
618
+ stateMutability: "view",
619
+ },
620
+ {
621
+ type: "function",
622
+ inputs: [{ name: "_encodedCall", internalType: "bytes", type: "bytes" }],
623
+ name: "getExecuteTimelockedCallTimestamp",
624
+ outputs: [{ name: "_allowedAfterTimestamp", internalType: "uint256", type: "uint256" }],
625
+ stateMutability: "view",
626
+ },
627
+ {
628
+ type: "function",
629
+ inputs: [],
630
+ name: "getExecutorInfo",
631
+ outputs: [
632
+ { name: "_executor", internalType: "address payable", type: "address" },
633
+ { name: "_executorFee", internalType: "uint256", type: "uint256" },
634
+ ],
635
+ stateMutability: "view",
636
+ },
637
+ {
638
+ type: "function",
639
+ inputs: [{ name: "_instructionId", internalType: "uint256", type: "uint256" }],
640
+ name: "getInstructionFee",
641
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
642
+ stateMutability: "view",
643
+ },
644
+ {
645
+ type: "function",
646
+ inputs: [],
647
+ name: "getPaymentProofValidityDurationSeconds",
648
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
649
+ stateMutability: "view",
650
+ },
651
+ {
652
+ type: "function",
653
+ inputs: [{ name: "_xrplOwner", internalType: "string", type: "string" }],
654
+ name: "getPersonalAccount",
655
+ outputs: [{ name: "", internalType: "address", type: "address" }],
656
+ stateMutability: "view",
657
+ },
658
+ {
659
+ type: "function",
660
+ inputs: [],
661
+ name: "getSourceId",
662
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
663
+ stateMutability: "view",
664
+ },
665
+ {
666
+ type: "function",
667
+ inputs: [],
668
+ name: "getSwapParams",
669
+ outputs: [
670
+ { name: "_uniswapV3Router", internalType: "address", type: "address" },
671
+ { name: "_stableCoin", internalType: "address", type: "address" },
672
+ { name: "_wNatStableCoinPoolFeeTierPPM", internalType: "uint24", type: "uint24" },
673
+ { name: "_stableCoinFXrpPoolFeeTierPPM", internalType: "uint24", type: "uint24" },
674
+ { name: "_maxSlippagePPM", internalType: "uint24", type: "uint24" },
675
+ { name: "_stableCoinUsdFeedId", internalType: "bytes21", type: "bytes21" },
676
+ { name: "_wNatUsdFeedId", internalType: "bytes21", type: "bytes21" },
677
+ ],
678
+ stateMutability: "view",
679
+ },
680
+ {
681
+ type: "function",
682
+ inputs: [],
683
+ name: "getTimelockDurationSeconds",
684
+ outputs: [{ name: "_timelockDurationSeconds", internalType: "uint256", type: "uint256" }],
685
+ stateMutability: "view",
686
+ },
687
+ {
688
+ type: "function",
689
+ inputs: [{ name: "_collateralReservationId", internalType: "uint256", type: "uint256" }],
690
+ name: "getTransactionIdForCollateralReservation",
691
+ outputs: [{ name: "_transactionId", internalType: "bytes32", type: "bytes32" }],
692
+ stateMutability: "view",
693
+ },
694
+ {
695
+ type: "function",
696
+ inputs: [],
697
+ name: "getVaults",
698
+ outputs: [
699
+ { name: "_vaultIds", internalType: "uint256[]", type: "uint256[]" },
700
+ { name: "_vaultAddresses", internalType: "address[]", type: "address[]" },
701
+ { name: "_vaultTypes", internalType: "uint8[]", type: "uint8[]" },
702
+ ],
703
+ stateMutability: "view",
704
+ },
705
+ {
706
+ type: "function",
707
+ inputs: [],
708
+ name: "getXrplProviderWallets",
709
+ outputs: [{ name: "", internalType: "string[]", type: "string[]" }],
710
+ stateMutability: "view",
711
+ },
712
+ {
713
+ type: "function",
714
+ inputs: [],
715
+ name: "implementation",
716
+ outputs: [{ name: "", internalType: "address", type: "address" }],
717
+ stateMutability: "view",
718
+ },
719
+ {
720
+ type: "function",
721
+ inputs: [{ name: "_transactionId", internalType: "bytes32", type: "bytes32" }],
722
+ name: "isTransactionIdUsed",
723
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
724
+ stateMutability: "view",
725
+ },
726
+ {
727
+ type: "function",
728
+ inputs: [],
729
+ name: "owner",
730
+ outputs: [{ name: "owner_", internalType: "address", type: "address" }],
731
+ stateMutability: "view",
732
+ },
733
+ {
734
+ type: "function",
735
+ inputs: [
736
+ { name: "_xrplAddress", internalType: "string", type: "string" },
737
+ { name: "_paymentReference", internalType: "bytes32", type: "bytes32" },
738
+ { name: "_transactionId", internalType: "bytes32", type: "bytes32" },
739
+ ],
740
+ name: "reserveCollateral",
741
+ outputs: [{ name: "_collateralReservationId", internalType: "uint256", type: "uint256" }],
742
+ stateMutability: "payable",
743
+ },
744
+ {
745
+ type: "function",
746
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
747
+ name: "supportsInterface",
748
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
749
+ stateMutability: "view",
750
+ },
751
+ {
752
+ type: "function",
753
+ inputs: [{ name: "_xrplAddress", internalType: "string", type: "string" }],
754
+ name: "swapStableCoinForFAsset",
755
+ outputs: [],
756
+ stateMutability: "nonpayable",
757
+ },
758
+ {
759
+ type: "function",
760
+ inputs: [{ name: "_xrplAddress", internalType: "string", type: "string" }],
761
+ name: "swapWNatForStableCoin",
762
+ outputs: [],
763
+ stateMutability: "nonpayable",
764
+ },
765
+ {
766
+ type: "function",
767
+ inputs: [{ name: "_newOwner", internalType: "address", type: "address" }],
768
+ name: "transferOwnership",
769
+ outputs: [],
770
+ stateMutability: "nonpayable",
771
+ },
772
+ ];
773
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
774
+ // React
775
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
776
+ /**
777
+ * Wraps __{@link useReadContract}__ with `abi` set to __{@link iMasterAccountControllerAbi}__
778
+ */
779
+ const useReadIMasterAccountController = /*#__PURE__*/ createUseReadContract({
780
+ abi: iMasterAccountControllerAbi,
781
+ });
782
+ /**
783
+ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link iMasterAccountControllerAbi}__
784
+ */
785
+ const useWriteIMasterAccountController = /*#__PURE__*/ createUseWriteContract({
786
+ abi: iMasterAccountControllerAbi,
787
+ });
788
+ /**
789
+ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link iMasterAccountControllerAbi}__
790
+ */
791
+ const useSimulateIMasterAccountController = /*#__PURE__*/ createUseSimulateContract({
792
+ abi: iMasterAccountControllerAbi,
793
+ });
794
+ /**
795
+ * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link iMasterAccountControllerAbi}__
796
+ */
797
+ const useWatchIMasterAccountControllerEvent = /*#__PURE__*/ createUseWatchContractEvent({
798
+ abi: iMasterAccountControllerAbi,
799
+ });
800
+
801
+ export { iMasterAccountControllerAbi, useReadIMasterAccountController, useSimulateIMasterAccountController, useWatchIMasterAccountControllerEvent, useWriteIMasterAccountController };
802
+ //# sourceMappingURL=IMasterAccountController.js.map