@flarenetwork/flare-periphery-contract-artifacts 0.1.43 → 0.1.45

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.
@@ -0,0 +1,186 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "EmptyCustomInstruction",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "TargetAddressZero",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [
14
+ {
15
+ "internalType": "address",
16
+ "name": "target",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "name": "TargetNotAContract",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "anonymous": false,
25
+ "inputs": [
26
+ {
27
+ "indexed": true,
28
+ "internalType": "bytes32",
29
+ "name": "customInstructionHash",
30
+ "type": "bytes32"
31
+ }
32
+ ],
33
+ "name": "CustomInstructionAlreadyRegistered",
34
+ "type": "event"
35
+ },
36
+ {
37
+ "anonymous": false,
38
+ "inputs": [
39
+ {
40
+ "indexed": true,
41
+ "internalType": "bytes32",
42
+ "name": "customInstructionHash",
43
+ "type": "bytes32"
44
+ }
45
+ ],
46
+ "name": "CustomInstructionRegistered",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "components": [
53
+ {
54
+ "internalType": "address",
55
+ "name": "targetContract",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "value",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "bytes",
65
+ "name": "data",
66
+ "type": "bytes"
67
+ }
68
+ ],
69
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
70
+ "name": "_customInstruction",
71
+ "type": "tuple[]"
72
+ }
73
+ ],
74
+ "name": "encodeCustomInstruction",
75
+ "outputs": [
76
+ {
77
+ "internalType": "bytes32",
78
+ "name": "_customInstructionHash",
79
+ "type": "bytes32"
80
+ }
81
+ ],
82
+ "stateMutability": "pure",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "bytes32",
89
+ "name": "_customInstructionHash",
90
+ "type": "bytes32"
91
+ }
92
+ ],
93
+ "name": "getCustomInstruction",
94
+ "outputs": [
95
+ {
96
+ "components": [
97
+ {
98
+ "internalType": "address",
99
+ "name": "targetContract",
100
+ "type": "address"
101
+ },
102
+ {
103
+ "internalType": "uint256",
104
+ "name": "value",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "internalType": "bytes",
109
+ "name": "data",
110
+ "type": "bytes"
111
+ }
112
+ ],
113
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
114
+ "name": "_customInstruction",
115
+ "type": "tuple[]"
116
+ }
117
+ ],
118
+ "stateMutability": "view",
119
+ "type": "function"
120
+ },
121
+ {
122
+ "inputs": [
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "_start",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "_end",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "name": "getCustomInstructionHashes",
135
+ "outputs": [
136
+ {
137
+ "internalType": "bytes32[]",
138
+ "name": "_customInstructionHashes",
139
+ "type": "bytes32[]"
140
+ },
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "_totalLength",
144
+ "type": "uint256"
145
+ }
146
+ ],
147
+ "stateMutability": "view",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "components": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "targetContract",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "value",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "internalType": "bytes",
166
+ "name": "data",
167
+ "type": "bytes"
168
+ }
169
+ ],
170
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
171
+ "name": "_customInstruction",
172
+ "type": "tuple[]"
173
+ }
174
+ ],
175
+ "name": "registerCustomInstruction",
176
+ "outputs": [
177
+ {
178
+ "internalType": "bytes32",
179
+ "name": "_customInstructionHash",
180
+ "type": "bytes32"
181
+ }
182
+ ],
183
+ "stateMutability": "nonpayable",
184
+ "type": "function"
185
+ }
186
+ ]
@@ -9,6 +9,11 @@
9
9
  "name": "InvalidAmount",
10
10
  "type": "error"
11
11
  },
12
+ {
13
+ "inputs": [],
14
+ "name": "InvalidCustomInstructionHash",
15
+ "type": "error"
16
+ },
12
17
  {
13
18
  "inputs": [
14
19
  {
@@ -218,6 +223,48 @@
218
223
  "name": "CollateralReserved",
219
224
  "type": "event"
220
225
  },
226
+ {
227
+ "anonymous": false,
228
+ "inputs": [
229
+ {
230
+ "indexed": true,
231
+ "internalType": "address",
232
+ "name": "personalAccount",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "indexed": true,
237
+ "internalType": "bytes32",
238
+ "name": "callHash",
239
+ "type": "bytes32"
240
+ },
241
+ {
242
+ "components": [
243
+ {
244
+ "internalType": "address",
245
+ "name": "targetContract",
246
+ "type": "address"
247
+ },
248
+ {
249
+ "internalType": "uint256",
250
+ "name": "value",
251
+ "type": "uint256"
252
+ },
253
+ {
254
+ "internalType": "bytes",
255
+ "name": "data",
256
+ "type": "bytes"
257
+ }
258
+ ],
259
+ "indexed": false,
260
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
261
+ "name": "customInstruction",
262
+ "type": "tuple[]"
263
+ }
264
+ ],
265
+ "name": "CustomInstructionExecuted",
266
+ "type": "event"
267
+ },
221
268
  {
222
269
  "anonymous": false,
223
270
  "inputs": [
@@ -64,6 +64,11 @@
64
64
  "name": "AgentsVaultsLengthsMismatch",
65
65
  "type": "error"
66
66
  },
67
+ {
68
+ "inputs": [],
69
+ "name": "EmptyCustomInstruction",
70
+ "type": "error"
71
+ },
67
72
  {
68
73
  "inputs": [
69
74
  {
@@ -96,6 +101,11 @@
96
101
  "name": "InvalidAmount",
97
102
  "type": "error"
98
103
  },
104
+ {
105
+ "inputs": [],
106
+ "name": "InvalidCustomInstructionHash",
107
+ "type": "error"
108
+ },
99
109
  {
100
110
  "inputs": [],
101
111
  "name": "InvalidExecutor",
@@ -279,6 +289,22 @@
279
289
  "name": "PersonalAccountNotSuccessfullyDeployed",
280
290
  "type": "error"
281
291
  },
292
+ {
293
+ "inputs": [],
294
+ "name": "TargetAddressZero",
295
+ "type": "error"
296
+ },
297
+ {
298
+ "inputs": [
299
+ {
300
+ "internalType": "address",
301
+ "name": "target",
302
+ "type": "address"
303
+ }
304
+ ],
305
+ "name": "TargetNotAContract",
306
+ "type": "error"
307
+ },
282
308
  {
283
309
  "inputs": [],
284
310
  "name": "TimelockDurationTooLong",
@@ -573,6 +599,74 @@
573
599
  "name": "CollateralReserved",
574
600
  "type": "event"
575
601
  },
602
+ {
603
+ "anonymous": false,
604
+ "inputs": [
605
+ {
606
+ "indexed": true,
607
+ "internalType": "bytes32",
608
+ "name": "customInstructionHash",
609
+ "type": "bytes32"
610
+ }
611
+ ],
612
+ "name": "CustomInstructionAlreadyRegistered",
613
+ "type": "event"
614
+ },
615
+ {
616
+ "anonymous": false,
617
+ "inputs": [
618
+ {
619
+ "indexed": true,
620
+ "internalType": "address",
621
+ "name": "personalAccount",
622
+ "type": "address"
623
+ },
624
+ {
625
+ "indexed": true,
626
+ "internalType": "bytes32",
627
+ "name": "callHash",
628
+ "type": "bytes32"
629
+ },
630
+ {
631
+ "components": [
632
+ {
633
+ "internalType": "address",
634
+ "name": "targetContract",
635
+ "type": "address"
636
+ },
637
+ {
638
+ "internalType": "uint256",
639
+ "name": "value",
640
+ "type": "uint256"
641
+ },
642
+ {
643
+ "internalType": "bytes",
644
+ "name": "data",
645
+ "type": "bytes"
646
+ }
647
+ ],
648
+ "indexed": false,
649
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
650
+ "name": "customInstruction",
651
+ "type": "tuple[]"
652
+ }
653
+ ],
654
+ "name": "CustomInstructionExecuted",
655
+ "type": "event"
656
+ },
657
+ {
658
+ "anonymous": false,
659
+ "inputs": [
660
+ {
661
+ "indexed": true,
662
+ "internalType": "bytes32",
663
+ "name": "customInstructionHash",
664
+ "type": "bytes32"
665
+ }
666
+ ],
667
+ "name": "CustomInstructionRegistered",
668
+ "type": "event"
669
+ },
576
670
  {
577
671
  "anonymous": false,
578
672
  "inputs": [
@@ -1116,6 +1210,31 @@
1116
1210
  "name": "VaultAdded",
1117
1211
  "type": "event"
1118
1212
  },
1213
+ {
1214
+ "anonymous": false,
1215
+ "inputs": [
1216
+ {
1217
+ "indexed": true,
1218
+ "internalType": "uint256",
1219
+ "name": "vaultId",
1220
+ "type": "uint256"
1221
+ },
1222
+ {
1223
+ "indexed": true,
1224
+ "internalType": "address",
1225
+ "name": "vaultAddress",
1226
+ "type": "address"
1227
+ },
1228
+ {
1229
+ "indexed": true,
1230
+ "internalType": "uint8",
1231
+ "name": "vaultType",
1232
+ "type": "uint8"
1233
+ }
1234
+ ],
1235
+ "name": "VaultRemoved",
1236
+ "type": "event"
1237
+ },
1119
1238
  {
1120
1239
  "anonymous": false,
1121
1240
  "inputs": [
@@ -1213,6 +1332,42 @@
1213
1332
  "stateMutability": "nonpayable",
1214
1333
  "type": "function"
1215
1334
  },
1335
+ {
1336
+ "inputs": [
1337
+ {
1338
+ "components": [
1339
+ {
1340
+ "internalType": "address",
1341
+ "name": "targetContract",
1342
+ "type": "address"
1343
+ },
1344
+ {
1345
+ "internalType": "uint256",
1346
+ "name": "value",
1347
+ "type": "uint256"
1348
+ },
1349
+ {
1350
+ "internalType": "bytes",
1351
+ "name": "data",
1352
+ "type": "bytes"
1353
+ }
1354
+ ],
1355
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
1356
+ "name": "_customInstruction",
1357
+ "type": "tuple[]"
1358
+ }
1359
+ ],
1360
+ "name": "encodeCustomInstruction",
1361
+ "outputs": [
1362
+ {
1363
+ "internalType": "bytes32",
1364
+ "name": "_customInstructionHash",
1365
+ "type": "bytes32"
1366
+ }
1367
+ ],
1368
+ "stateMutability": "pure",
1369
+ "type": "function"
1370
+ },
1216
1371
  {
1217
1372
  "inputs": [
1218
1373
  {
@@ -1617,6 +1772,71 @@
1617
1772
  "stateMutability": "view",
1618
1773
  "type": "function"
1619
1774
  },
1775
+ {
1776
+ "inputs": [
1777
+ {
1778
+ "internalType": "bytes32",
1779
+ "name": "_customInstructionHash",
1780
+ "type": "bytes32"
1781
+ }
1782
+ ],
1783
+ "name": "getCustomInstruction",
1784
+ "outputs": [
1785
+ {
1786
+ "components": [
1787
+ {
1788
+ "internalType": "address",
1789
+ "name": "targetContract",
1790
+ "type": "address"
1791
+ },
1792
+ {
1793
+ "internalType": "uint256",
1794
+ "name": "value",
1795
+ "type": "uint256"
1796
+ },
1797
+ {
1798
+ "internalType": "bytes",
1799
+ "name": "data",
1800
+ "type": "bytes"
1801
+ }
1802
+ ],
1803
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
1804
+ "name": "_customInstruction",
1805
+ "type": "tuple[]"
1806
+ }
1807
+ ],
1808
+ "stateMutability": "view",
1809
+ "type": "function"
1810
+ },
1811
+ {
1812
+ "inputs": [
1813
+ {
1814
+ "internalType": "uint256",
1815
+ "name": "_start",
1816
+ "type": "uint256"
1817
+ },
1818
+ {
1819
+ "internalType": "uint256",
1820
+ "name": "_end",
1821
+ "type": "uint256"
1822
+ }
1823
+ ],
1824
+ "name": "getCustomInstructionHashes",
1825
+ "outputs": [
1826
+ {
1827
+ "internalType": "bytes32[]",
1828
+ "name": "_customInstructionHashes",
1829
+ "type": "bytes32[]"
1830
+ },
1831
+ {
1832
+ "internalType": "uint256",
1833
+ "name": "_totalLength",
1834
+ "type": "uint256"
1835
+ }
1836
+ ],
1837
+ "stateMutability": "view",
1838
+ "type": "function"
1839
+ },
1620
1840
  {
1621
1841
  "inputs": [],
1622
1842
  "name": "getDefaultInstructionFee",
@@ -1887,6 +2107,42 @@
1887
2107
  "stateMutability": "view",
1888
2108
  "type": "function"
1889
2109
  },
2110
+ {
2111
+ "inputs": [
2112
+ {
2113
+ "components": [
2114
+ {
2115
+ "internalType": "address",
2116
+ "name": "targetContract",
2117
+ "type": "address"
2118
+ },
2119
+ {
2120
+ "internalType": "uint256",
2121
+ "name": "value",
2122
+ "type": "uint256"
2123
+ },
2124
+ {
2125
+ "internalType": "bytes",
2126
+ "name": "data",
2127
+ "type": "bytes"
2128
+ }
2129
+ ],
2130
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
2131
+ "name": "_customInstruction",
2132
+ "type": "tuple[]"
2133
+ }
2134
+ ],
2135
+ "name": "registerCustomInstruction",
2136
+ "outputs": [
2137
+ {
2138
+ "internalType": "bytes32",
2139
+ "name": "_customInstructionHash",
2140
+ "type": "bytes32"
2141
+ }
2142
+ ],
2143
+ "stateMutability": "nonpayable",
2144
+ "type": "function"
2145
+ },
1890
2146
  {
1891
2147
  "inputs": [
1892
2148
  {
@@ -14,6 +14,34 @@
14
14
  "name": "ApprovalFailed",
15
15
  "type": "error"
16
16
  },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "components": [
21
+ {
22
+ "internalType": "address",
23
+ "name": "targetContract",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "value",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "bytes",
33
+ "name": "data",
34
+ "type": "bytes"
35
+ }
36
+ ],
37
+ "internalType": "struct ICustomInstructionsFacet.CustomCall",
38
+ "name": "customCall",
39
+ "type": "tuple"
40
+ }
41
+ ],
42
+ "name": "CustomInstructionCallFailed",
43
+ "type": "error"
44
+ },
17
45
  {
18
46
  "inputs": [
19
47
  {
@@ -161,6 +189,36 @@
161
189
  "name": "CollateralReserved",
162
190
  "type": "event"
163
191
  },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "components": [
197
+ {
198
+ "internalType": "address",
199
+ "name": "targetContract",
200
+ "type": "address"
201
+ },
202
+ {
203
+ "internalType": "uint256",
204
+ "name": "value",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "internalType": "bytes",
209
+ "name": "data",
210
+ "type": "bytes"
211
+ }
212
+ ],
213
+ "indexed": true,
214
+ "internalType": "struct ICustomInstructionsFacet.CustomCall[]",
215
+ "name": "customInstruction",
216
+ "type": "tuple[]"
217
+ }
218
+ ],
219
+ "name": "CustomInstructionExecuted",
220
+ "type": "event"
221
+ },
164
222
  {
165
223
  "anonymous": false,
166
224
  "inputs": [
@@ -95,6 +95,31 @@
95
95
  "name": "VaultAdded",
96
96
  "type": "event"
97
97
  },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": true,
103
+ "internalType": "uint256",
104
+ "name": "vaultId",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "indexed": true,
109
+ "internalType": "address",
110
+ "name": "vaultAddress",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": true,
115
+ "internalType": "uint8",
116
+ "name": "vaultType",
117
+ "type": "uint8"
118
+ }
119
+ ],
120
+ "name": "VaultRemoved",
121
+ "type": "event"
122
+ },
98
123
  {
99
124
  "inputs": [],
100
125
  "name": "getVaults",
package/dist/index.js CHANGED
@@ -175,6 +175,7 @@ var IConfirmedBlockHeightExists$1 = require('./coston2/artifacts/contracts/IConf
175
175
  var IConfirmedBlockHeightExistsVerification$1 = require('./coston2/artifacts/contracts/IConfirmedBlockHeightExistsVerification.sol/IConfirmedBlockHeightExistsVerification.json');
176
176
  var ICoreVaultClient$1 = require('./coston2/artifacts/contracts/ICoreVaultClient.sol/ICoreVaultClient.json');
177
177
  var ICoreVaultClientSettings$1 = require('./coston2/artifacts/contracts/ICoreVaultClientSettings.sol/ICoreVaultClientSettings.json');
178
+ var ICustomInstructionsFacet = require('./coston2/artifacts/contracts/ICustomInstructionsFacet.sol/ICustomInstructionsFacet.json');
178
179
  var IDelegationAccount$1 = require('./coston2/artifacts/contracts/IDelegationAccount.sol/IDelegationAccount.json');
179
180
  var IDiamond = require('./coston2/artifacts/contracts/diamond/interfaces/IDiamond.sol/IDiamond.json');
180
181
  var IDiamondCut = require('./coston2/artifacts/contracts/diamond/interfaces/IDiamondCut.sol/IDiamondCut.json');
@@ -8569,13 +8570,6 @@ const products$3 = {
8569
8570
  abi: interfaceAbis$3.IGovernanceVotePower,
8570
8571
  getAddress: async (provider) => await nameToAddress$4("GovernanceVotePower", provider),
8571
8572
  },
8572
- JsonApiVerification: {
8573
- name: "JsonApiVerification",
8574
- interface: "IJsonApiVerification",
8575
- registry: "JsonApiVerification",
8576
- abi: interfaceAbis$3.IJsonApiVerification,
8577
- getAddress: async (provider) => await nameToAddress$4("JsonApiVerification", provider),
8578
- },
8579
8573
  PriceSubmitter: {
8580
8574
  name: "PriceSubmitter",
8581
8575
  interface: "IPriceSubmitter",
@@ -8734,6 +8728,7 @@ const interfaceAbis$2 = {
8734
8728
  IConfirmedBlockHeightExistsVerification: IConfirmedBlockHeightExistsVerification$1,
8735
8729
  ICoreVaultClient: ICoreVaultClient$1,
8736
8730
  ICoreVaultClientSettings: ICoreVaultClientSettings$1,
8731
+ ICustomInstructionsFacet: ICustomInstructionsFacet,
8737
8732
  IDelegationAccount: IDelegationAccount$1,
8738
8733
  IDiamond: IDiamond,
8739
8734
  IDiamondCut: IDiamondCut,
@@ -9064,13 +9059,6 @@ const products$2 = {
9064
9059
  abi: interfaceAbis$2.IGovernanceVotePower,
9065
9060
  getAddress: async (provider) => await nameToAddress$3("GovernanceVotePower", provider),
9066
9061
  },
9067
- JsonApiVerification: {
9068
- name: "JsonApiVerification",
9069
- interface: "IJsonApiVerification",
9070
- registry: "JsonApiVerification",
9071
- abi: interfaceAbis$2.IJsonApiVerification,
9072
- getAddress: async (provider) => await nameToAddress$3("JsonApiVerification", provider),
9073
- },
9074
9062
  MasterAccountController: {
9075
9063
  name: "MasterAccountController",
9076
9064
  interface: "IMasterAccountController",