@flarenetwork/flare-periphery-contract-artifacts 0.1.4 → 0.1.5

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 (72) hide show
  1. package/package.json +1 -1
  2. package/coston/StateConnector/configs/AddressValidity.json +0 -326
  3. package/coston/StateConnector/configs/BalanceDecreasingTransaction.json +0 -379
  4. package/coston/StateConnector/configs/ConfirmedBlockHeightExists.json +0 -363
  5. package/coston/StateConnector/configs/EVMTransaction.json +0 -600
  6. package/coston/StateConnector/configs/Payment.json +0 -512
  7. package/coston/StateConnector/configs/ReferencedPaymentNonexistence.json +0 -431
  8. package/coston/StateConnector/configs/TypeTemplate.json +0 -555
  9. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts +0 -68
  10. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts.map +0 -1
  11. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js +0 -164
  12. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js.map +0 -1
  13. package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts +0 -33
  14. package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts.map +0 -1
  15. package/dist/coston/StateConnector/libs/ts/AttestationResponse.js +0 -30
  16. package/dist/coston/StateConnector/libs/ts/AttestationResponse.js.map +0 -1
  17. package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts +0 -103
  18. package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts.map +0 -1
  19. package/dist/coston/StateConnector/libs/ts/MerkleTree.js +0 -212
  20. package/dist/coston/StateConnector/libs/ts/MerkleTree.js.map +0 -1
  21. package/dist/coston/StateConnector/libs/ts/config-types.d.ts +0 -143
  22. package/dist/coston/StateConnector/libs/ts/config-types.d.ts.map +0 -1
  23. package/dist/coston/StateConnector/libs/ts/config-types.js +0 -3
  24. package/dist/coston/StateConnector/libs/ts/config-types.js.map +0 -1
  25. package/dist/coston/StateConnector/libs/ts/interfaces.d.ts +0 -32
  26. package/dist/coston/StateConnector/libs/ts/interfaces.d.ts.map +0 -1
  27. package/dist/coston/StateConnector/libs/ts/interfaces.js +0 -3
  28. package/dist/coston/StateConnector/libs/ts/interfaces.js.map +0 -1
  29. package/dist/coston/StateConnector/libs/ts/random.d.ts +0 -9
  30. package/dist/coston/StateConnector/libs/ts/random.d.ts.map +0 -1
  31. package/dist/coston/StateConnector/libs/ts/random.js +0 -70
  32. package/dist/coston/StateConnector/libs/ts/random.js.map +0 -1
  33. package/dist/coston/StateConnector/libs/ts/utils.d.ts +0 -73
  34. package/dist/coston/StateConnector/libs/ts/utils.d.ts.map +0 -1
  35. package/dist/coston/StateConnector/libs/ts/utils.js +0 -282
  36. package/dist/coston/StateConnector/libs/ts/utils.js.map +0 -1
  37. package/dist/coston/StateConnector/typescript/AddressValidity.d.ts +0 -95
  38. package/dist/coston/StateConnector/typescript/AddressValidity.d.ts.map +0 -1
  39. package/dist/coston/StateConnector/typescript/AddressValidity.js +0 -9
  40. package/dist/coston/StateConnector/typescript/AddressValidity.js.map +0 -1
  41. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts +0 -107
  42. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts.map +0 -1
  43. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js +0 -9
  44. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js.map +0 -1
  45. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts +0 -103
  46. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts.map +0 -1
  47. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js +0 -9
  48. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js.map +0 -1
  49. package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts +0 -160
  50. package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts.map +0 -1
  51. package/dist/coston/StateConnector/typescript/EVMTransaction.js +0 -9
  52. package/dist/coston/StateConnector/typescript/EVMTransaction.js.map +0 -1
  53. package/dist/coston/StateConnector/typescript/Payment.d.ts +0 -139
  54. package/dist/coston/StateConnector/typescript/Payment.d.ts.map +0 -1
  55. package/dist/coston/StateConnector/typescript/Payment.js +0 -9
  56. package/dist/coston/StateConnector/typescript/Payment.js.map +0 -1
  57. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts +0 -115
  58. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts.map +0 -1
  59. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js +0 -9
  60. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js.map +0 -1
  61. package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts +0 -146
  62. package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts.map +0 -1
  63. package/dist/coston/StateConnector/typescript/TypeTemplate.js +0 -9
  64. package/dist/coston/StateConnector/typescript/TypeTemplate.js.map +0 -1
  65. package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts +0 -29
  66. package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts.map +0 -1
  67. package/dist/coston/StateConnector/typescript/data-sources/data-sources.js +0 -33
  68. package/dist/coston/StateConnector/typescript/data-sources/data-sources.js.map +0 -1
  69. package/dist/coston/StateConnector/typescript/index.d.ts +0 -9
  70. package/dist/coston/StateConnector/typescript/index.d.ts.map +0 -1
  71. package/dist/coston/StateConnector/typescript/index.js +0 -25
  72. package/dist/coston/StateConnector/typescript/index.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flarenetwork/flare-periphery-contract-artifacts",
3
3
  "description": "Smart contracts artifacts for all Flare chains",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "author": "Flare Network",
6
6
  "license": "MIT",
7
7
  "main": "./dist/index.js",
@@ -1,326 +0,0 @@
1
- {
2
- "name": "AddressValidity",
3
- "fullComment": " @custom:name AddressValidity\n @custom:id 0x05\n @custom:supported BTC, DOGE, XRP, testBTC, testDOGE, testXRP\n @author Flare\n @notice An assertion whether a string represents a valid address on an external chain.\n @custom:verification The address is checked against all validity criteria of the chain with `sourceId`.\n Indicator of validity is provided.\n If the address is valid, its standard form and standard hash are computed.\n Validity criteria for each supported chain:\n - [BTC](/specs/attestations/external-chains/address-validity/BTC.md)\n - [DOGE](/specs/attestations/external-chains/address-validity/DOGE.md)\n - [XRPL](/specs/attestations/external-chains/address-validity/XRPL.md)\n @custom:lut `0xffffffffffffffff` ($2^{64}-1$ in hex)",
4
- "description": "An assertion whether a string represents a valid address on an external chain.",
5
- "supported": [
6
- "BTC",
7
- "DOGE",
8
- "XRP",
9
- "testBTC",
10
- "testDOGE",
11
- "testXRP"
12
- ],
13
- "verification": "The address is checked against all validity criteria of the chain with `sourceId`.\n Indicator of validity is provided.\n If the address is valid, its standard form and standard hash are computed.\n Validity criteria for each supported chain:\n - [BTC](/specs/attestations/external-chains/address-validity/BTC.md)\n - [DOGE](/specs/attestations/external-chains/address-validity/DOGE.md)\n - [XRPL](/specs/attestations/external-chains/address-validity/XRPL.md)\n ",
14
- "lut": "`0xffffffffffffffff` ($2^{64}-1$ in hex)",
15
- "proof": {
16
- "name": "Proof",
17
- "description": "Toplevel proof",
18
- "above": "",
19
- "below": "",
20
- "fullComment": " @notice Toplevel proof\n @param merkleProof Merkle proof corresponding to the attestation response.\n @param data Attestation response.",
21
- "params": [
22
- {
23
- "name": "merkleProof",
24
- "type": "bytes32[]",
25
- "typeSimple": "bytes32[]",
26
- "comment": "Merkle proof corresponding to the attestation response."
27
- },
28
- {
29
- "name": "data",
30
- "type": "struct AddressValidity.Response",
31
- "typeSimple": "Response",
32
- "comment": "Attestation response."
33
- }
34
- ]
35
- },
36
- "request": {
37
- "name": "Request",
38
- "description": "Toplevel request",
39
- "above": "",
40
- "below": "",
41
- "fullComment": " @notice Toplevel request\n @param attestationType ID of the attestation type.\n @param sourceId Id of the data source.\n @param messageIntegrityCode `MessageIntegrityCode` that is derived from the expected response.\n @param requestBody Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.",
42
- "params": [
43
- {
44
- "name": "attestationType",
45
- "type": "bytes32",
46
- "typeSimple": "bytes32",
47
- "comment": "ID of the attestation type."
48
- },
49
- {
50
- "name": "sourceId",
51
- "type": "bytes32",
52
- "typeSimple": "bytes32",
53
- "comment": "Id of the data source."
54
- },
55
- {
56
- "name": "messageIntegrityCode",
57
- "type": "bytes32",
58
- "typeSimple": "bytes32",
59
- "comment": "`MessageIntegrityCode` that is derived from the expected response."
60
- },
61
- {
62
- "name": "requestBody",
63
- "type": "struct AddressValidity.RequestBody",
64
- "typeSimple": "RequestBody",
65
- "comment": "Data defining the request. Type (struct) and interpretation is determined by the `attestationType`."
66
- }
67
- ]
68
- },
69
- "response": {
70
- "name": "Response",
71
- "description": "Toplevel response",
72
- "above": "",
73
- "below": "",
74
- "fullComment": " @notice Toplevel response\n @param attestationType Extracted from the request.\n @param sourceId Extracted from the request.\n @param votingRound The ID of the State Connector round in which the request was considered.\n @param lowestUsedTimestamp The lowest timestamp used to generate the response.\n @param requestBody Extracted from the request.\n @param responseBody Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.",
75
- "params": [
76
- {
77
- "name": "attestationType",
78
- "type": "bytes32",
79
- "typeSimple": "bytes32",
80
- "comment": "Extracted from the request."
81
- },
82
- {
83
- "name": "sourceId",
84
- "type": "bytes32",
85
- "typeSimple": "bytes32",
86
- "comment": "Extracted from the request."
87
- },
88
- {
89
- "name": "votingRound",
90
- "type": "uint64",
91
- "typeSimple": "uint64",
92
- "comment": "The ID of the State Connector round in which the request was considered."
93
- },
94
- {
95
- "name": "lowestUsedTimestamp",
96
- "type": "uint64",
97
- "typeSimple": "uint64",
98
- "comment": "The lowest timestamp used to generate the response."
99
- },
100
- {
101
- "name": "requestBody",
102
- "type": "struct AddressValidity.RequestBody",
103
- "typeSimple": "RequestBody",
104
- "comment": "Extracted from the request."
105
- },
106
- {
107
- "name": "responseBody",
108
- "type": "struct AddressValidity.ResponseBody",
109
- "typeSimple": "ResponseBody",
110
- "comment": "Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`."
111
- }
112
- ]
113
- },
114
- "requestBody": {
115
- "name": "RequestBody",
116
- "description": "Request body for AddressValidity attestation type",
117
- "above": "",
118
- "below": "",
119
- "fullComment": " @notice Request body for AddressValidity attestation type\n @param addressStr Address to be verified.",
120
- "params": [
121
- {
122
- "name": "addressStr",
123
- "type": "string",
124
- "typeSimple": "string",
125
- "comment": "Address to be verified."
126
- }
127
- ]
128
- },
129
- "responseBody": {
130
- "name": "ResponseBody",
131
- "description": "Response body for AddressValidity attestation type",
132
- "above": "",
133
- "below": "",
134
- "fullComment": " @notice Response body for AddressValidity attestation type\n @param isValid Boolean indicator of the address validity.\n @param standardAddress If `isValid`, standard form of the validated address. Otherwise an empty string.\n @param standardAddressHash If `isValid`, standard address hash of the validated address. Otherwise a zero bytes32 string.",
135
- "params": [
136
- {
137
- "name": "isValid",
138
- "type": "bool",
139
- "typeSimple": "bool",
140
- "comment": "Boolean indicator of the address validity."
141
- },
142
- {
143
- "name": "standardAddress",
144
- "type": "string",
145
- "typeSimple": "string",
146
- "comment": "If `isValid`, standard form of the validated address. Otherwise an empty string."
147
- },
148
- {
149
- "name": "standardAddressHash",
150
- "type": "bytes32",
151
- "typeSimple": "bytes32",
152
- "comment": "If `isValid`, standard address hash of the validated address. Otherwise a zero bytes32 string."
153
- }
154
- ]
155
- },
156
- "requestStructs": [],
157
- "responseStructs": [],
158
- "requestAbi": {
159
- "components": [
160
- {
161
- "internalType": "bytes32",
162
- "name": "attestationType",
163
- "type": "bytes32"
164
- },
165
- {
166
- "internalType": "bytes32",
167
- "name": "sourceId",
168
- "type": "bytes32"
169
- },
170
- {
171
- "internalType": "bytes32",
172
- "name": "messageIntegrityCode",
173
- "type": "bytes32"
174
- },
175
- {
176
- "components": [
177
- {
178
- "internalType": "string",
179
- "name": "addressStr",
180
- "type": "string"
181
- }
182
- ],
183
- "internalType": "struct AddressValidity.RequestBody",
184
- "name": "requestBody",
185
- "type": "tuple"
186
- }
187
- ],
188
- "internalType": "struct AddressValidity.Request",
189
- "name": "_request",
190
- "type": "tuple"
191
- },
192
- "responseAbi": {
193
- "components": [
194
- {
195
- "internalType": "bytes32",
196
- "name": "attestationType",
197
- "type": "bytes32"
198
- },
199
- {
200
- "internalType": "bytes32",
201
- "name": "sourceId",
202
- "type": "bytes32"
203
- },
204
- {
205
- "internalType": "uint64",
206
- "name": "votingRound",
207
- "type": "uint64"
208
- },
209
- {
210
- "internalType": "uint64",
211
- "name": "lowestUsedTimestamp",
212
- "type": "uint64"
213
- },
214
- {
215
- "components": [
216
- {
217
- "internalType": "string",
218
- "name": "addressStr",
219
- "type": "string"
220
- }
221
- ],
222
- "internalType": "struct AddressValidity.RequestBody",
223
- "name": "requestBody",
224
- "type": "tuple"
225
- },
226
- {
227
- "components": [
228
- {
229
- "internalType": "bool",
230
- "name": "isValid",
231
- "type": "bool"
232
- },
233
- {
234
- "internalType": "string",
235
- "name": "standardAddress",
236
- "type": "string"
237
- },
238
- {
239
- "internalType": "bytes32",
240
- "name": "standardAddressHash",
241
- "type": "bytes32"
242
- }
243
- ],
244
- "internalType": "struct AddressValidity.ResponseBody",
245
- "name": "responseBody",
246
- "type": "tuple"
247
- }
248
- ],
249
- "internalType": "struct AddressValidity.Response",
250
- "name": "_response",
251
- "type": "tuple"
252
- },
253
- "proofAbi": {
254
- "components": [
255
- {
256
- "internalType": "bytes32[]",
257
- "name": "merkleProof",
258
- "type": "bytes32[]"
259
- },
260
- {
261
- "components": [
262
- {
263
- "internalType": "bytes32",
264
- "name": "attestationType",
265
- "type": "bytes32"
266
- },
267
- {
268
- "internalType": "bytes32",
269
- "name": "sourceId",
270
- "type": "bytes32"
271
- },
272
- {
273
- "internalType": "uint64",
274
- "name": "votingRound",
275
- "type": "uint64"
276
- },
277
- {
278
- "internalType": "uint64",
279
- "name": "lowestUsedTimestamp",
280
- "type": "uint64"
281
- },
282
- {
283
- "components": [
284
- {
285
- "internalType": "string",
286
- "name": "addressStr",
287
- "type": "string"
288
- }
289
- ],
290
- "internalType": "struct AddressValidity.RequestBody",
291
- "name": "requestBody",
292
- "type": "tuple"
293
- },
294
- {
295
- "components": [
296
- {
297
- "internalType": "bool",
298
- "name": "isValid",
299
- "type": "bool"
300
- },
301
- {
302
- "internalType": "string",
303
- "name": "standardAddress",
304
- "type": "string"
305
- },
306
- {
307
- "internalType": "bytes32",
308
- "name": "standardAddressHash",
309
- "type": "bytes32"
310
- }
311
- ],
312
- "internalType": "struct AddressValidity.ResponseBody",
313
- "name": "responseBody",
314
- "type": "tuple"
315
- }
316
- ],
317
- "internalType": "struct AddressValidity.Response",
318
- "name": "data",
319
- "type": "tuple"
320
- }
321
- ],
322
- "internalType": "struct AddressValidity.Proof",
323
- "name": "_proof",
324
- "type": "tuple"
325
- }
326
- }