@inversealtruism/cairnx-core 0.2.2 → 0.2.4

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,446 @@
1
+ {
2
+ "format": 2,
3
+ "generatedFrom": "shipping JS resolver",
4
+ "cases": [
5
+ {
6
+ "name": "rules-same-block-fclaim-fill-attest-first",
7
+ "events": [
8
+ {
9
+ "kind": "propose",
10
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0001",
11
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
12
+ "uri": "{\"decimals\":0,\"mint\":\"issuer\",\"supply\":\"1000\",\"t\":\"deploy\",\"ticker\":\"AAA\",\"v\":1}",
13
+ "payloadHash": "0x06afa4ab117bc4d0bc5ccba146f79f39a92dbe7ab3741a2664189173ec0c7cf4",
14
+ "expiresEpoch": 9000000000,
15
+ "height": 60980,
16
+ "pos": 0,
17
+ "paidTo": {
18
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
19
+ }
20
+ },
21
+ {
22
+ "kind": "propose",
23
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0002",
24
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
25
+ "uri": "{\"amount\":\"1000\",\"t\":\"mint\",\"ticker\":\"AAA\",\"v\":1}",
26
+ "payloadHash": "0x44f8ddc94f8dfac9a0c48c9d1c799efb67cdf3d9edc33394ad3d6020e7d7bb7b",
27
+ "expiresEpoch": 9000000000,
28
+ "height": 60981,
29
+ "pos": 0,
30
+ "paidTo": {}
31
+ },
32
+ {
33
+ "kind": "propose",
34
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0000",
35
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
36
+ "uri": "{\"give\":{\"amount\":\"10\",\"ticker\":\"AAA\"},\"t\":\"offer\",\"v\":1,\"want\":{\"payto\":\"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1\",\"value\":\"500000000\"}}",
37
+ "payloadHash": "0x35fbb96da060aa4c8e5acd544768e582da8fb2e687abda530b838ab1a993e8ed",
38
+ "expiresEpoch": 2133,
39
+ "height": 61000,
40
+ "pos": 0,
41
+ "paidTo": {}
42
+ },
43
+ {
44
+ "kind": "propose",
45
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0003",
46
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
47
+ "uri": "{\"offer\":\"0x000000000000000000000000000000000000000000000000000000002a1e0000\",\"t\":\"fclaim\",\"v\":1}",
48
+ "payloadHash": "0xf1d2413f9835d3f2967572887f978ca4608dfb7ea588af7cfe49b7039052fc0e",
49
+ "expiresEpoch": 2035,
50
+ "height": 61005,
51
+ "pos": 1,
52
+ "paidTo": {}
53
+ },
54
+ {
55
+ "kind": "attest",
56
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0004",
57
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e0003",
58
+ "attester": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
59
+ "score": 100,
60
+ "confidence": 0,
61
+ "height": 61005,
62
+ "pos": 0,
63
+ "paidTo": {
64
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": "527500000",
65
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "7500000"
66
+ }
67
+ }
68
+ ],
69
+ "tipHeight": 61010,
70
+ "expectedState": {
71
+ "balances": {
72
+ "AAA": {
73
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": {
74
+ "available": "990",
75
+ "locked": "0"
76
+ },
77
+ "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2": {
78
+ "available": "10",
79
+ "locked": "0"
80
+ }
81
+ }
82
+ },
83
+ "bids": {},
84
+ "feesPaid": "107500000",
85
+ "names": {},
86
+ "offers": {
87
+ "0x000000000000000000000000000000000000000000000000000000002a1e0000": {
88
+ "claimTxid": "0x000000000000000000000000000000000000000000000000000000002a1e0003",
89
+ "claimUntilHeight": 61080,
90
+ "claimedBy": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
91
+ "expiresEpoch": 2133,
92
+ "feeBps": 150,
93
+ "fill": {
94
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
95
+ "fee": "7500000",
96
+ "height": 61005,
97
+ "paid": "527500000",
98
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0004"
99
+ },
100
+ "give": {
101
+ "amount": "10",
102
+ "ticker": "AAA"
103
+ },
104
+ "height": 61000,
105
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0000",
106
+ "seller": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
107
+ "status": "filled",
108
+ "want": {
109
+ "payto": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
110
+ "value": "500000000"
111
+ }
112
+ }
113
+ },
114
+ "tipHeight": 61010,
115
+ "tokens": {
116
+ "AAA": {
117
+ "decimals": 0,
118
+ "deployId": "0x000000000000000000000000000000000000000000000000000000002a1e0001",
119
+ "deployer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
120
+ "height": 60980,
121
+ "mint": "issuer",
122
+ "minted": "1000",
123
+ "supply": "1000",
124
+ "ticker": "AAA"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "name": "rules-same-block-fclaim-fill",
131
+ "events": [
132
+ {
133
+ "kind": "propose",
134
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0006",
135
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
136
+ "uri": "{\"decimals\":0,\"mint\":\"issuer\",\"supply\":\"1000\",\"t\":\"deploy\",\"ticker\":\"AAA\",\"v\":1}",
137
+ "payloadHash": "0x06afa4ab117bc4d0bc5ccba146f79f39a92dbe7ab3741a2664189173ec0c7cf4",
138
+ "expiresEpoch": 9000000000,
139
+ "height": 60980,
140
+ "pos": 0,
141
+ "paidTo": {
142
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
143
+ }
144
+ },
145
+ {
146
+ "kind": "propose",
147
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0007",
148
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
149
+ "uri": "{\"amount\":\"1000\",\"t\":\"mint\",\"ticker\":\"AAA\",\"v\":1}",
150
+ "payloadHash": "0x44f8ddc94f8dfac9a0c48c9d1c799efb67cdf3d9edc33394ad3d6020e7d7bb7b",
151
+ "expiresEpoch": 9000000000,
152
+ "height": 60981,
153
+ "pos": 0,
154
+ "paidTo": {}
155
+ },
156
+ {
157
+ "kind": "propose",
158
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0005",
159
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
160
+ "uri": "{\"give\":{\"amount\":\"10\",\"ticker\":\"AAA\"},\"t\":\"offer\",\"v\":1,\"want\":{\"payto\":\"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1\",\"value\":\"500000000\"}}",
161
+ "payloadHash": "0x35fbb96da060aa4c8e5acd544768e582da8fb2e687abda530b838ab1a993e8ed",
162
+ "expiresEpoch": 2133,
163
+ "height": 61000,
164
+ "pos": 0,
165
+ "paidTo": {}
166
+ },
167
+ {
168
+ "kind": "propose",
169
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0008",
170
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
171
+ "uri": "{\"offer\":\"0x000000000000000000000000000000000000000000000000000000002a1e0005\",\"t\":\"fclaim\",\"v\":1}",
172
+ "payloadHash": "0xa39374ee55fce15c040ead900e78b5e6c6ae164af352f4e27ff82bdb28b4e0c7",
173
+ "expiresEpoch": 2035,
174
+ "height": 61005,
175
+ "pos": 0,
176
+ "paidTo": {}
177
+ },
178
+ {
179
+ "kind": "attest",
180
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0009",
181
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e0008",
182
+ "attester": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
183
+ "score": 100,
184
+ "confidence": 0,
185
+ "height": 61005,
186
+ "pos": 1,
187
+ "paidTo": {
188
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": "527500000",
189
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "7500000"
190
+ }
191
+ }
192
+ ],
193
+ "tipHeight": 61010,
194
+ "expectedState": {
195
+ "balances": {
196
+ "AAA": {
197
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": {
198
+ "available": "990",
199
+ "locked": "0"
200
+ },
201
+ "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2": {
202
+ "available": "10",
203
+ "locked": "0"
204
+ }
205
+ }
206
+ },
207
+ "bids": {},
208
+ "feesPaid": "107500000",
209
+ "names": {},
210
+ "offers": {
211
+ "0x000000000000000000000000000000000000000000000000000000002a1e0005": {
212
+ "claimTxid": "0x000000000000000000000000000000000000000000000000000000002a1e0008",
213
+ "claimUntilHeight": 61080,
214
+ "claimedBy": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
215
+ "expiresEpoch": 2133,
216
+ "feeBps": 150,
217
+ "fill": {
218
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
219
+ "fee": "7500000",
220
+ "height": 61005,
221
+ "paid": "527500000",
222
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0009"
223
+ },
224
+ "give": {
225
+ "amount": "10",
226
+ "ticker": "AAA"
227
+ },
228
+ "height": 61000,
229
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0005",
230
+ "seller": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
231
+ "status": "filled",
232
+ "want": {
233
+ "payto": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
234
+ "value": "500000000"
235
+ }
236
+ }
237
+ },
238
+ "tipHeight": 61010,
239
+ "tokens": {
240
+ "AAA": {
241
+ "decimals": 0,
242
+ "deployId": "0x000000000000000000000000000000000000000000000000000000002a1e0006",
243
+ "deployer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
244
+ "height": 60980,
245
+ "mint": "issuer",
246
+ "minted": "1000",
247
+ "supply": "1000",
248
+ "ticker": "AAA"
249
+ }
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "name": "rules-same-block-cancel-attest-first",
255
+ "events": [
256
+ {
257
+ "kind": "propose",
258
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000b",
259
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
260
+ "uri": "{\"decimals\":0,\"mint\":\"issuer\",\"supply\":\"1000\",\"t\":\"deploy\",\"ticker\":\"AAA\",\"v\":1}",
261
+ "payloadHash": "0x06afa4ab117bc4d0bc5ccba146f79f39a92dbe7ab3741a2664189173ec0c7cf4",
262
+ "expiresEpoch": 9000000000,
263
+ "height": 60980,
264
+ "pos": 0,
265
+ "paidTo": {
266
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
267
+ }
268
+ },
269
+ {
270
+ "kind": "propose",
271
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000c",
272
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
273
+ "uri": "{\"amount\":\"1000\",\"t\":\"mint\",\"ticker\":\"AAA\",\"v\":1}",
274
+ "payloadHash": "0x44f8ddc94f8dfac9a0c48c9d1c799efb67cdf3d9edc33394ad3d6020e7d7bb7b",
275
+ "expiresEpoch": 9000000000,
276
+ "height": 60981,
277
+ "pos": 0,
278
+ "paidTo": {}
279
+ },
280
+ {
281
+ "kind": "attest",
282
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e000d",
283
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e000a",
284
+ "attester": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
285
+ "score": 0,
286
+ "confidence": 0,
287
+ "height": 61000,
288
+ "pos": 0,
289
+ "paidTo": {}
290
+ },
291
+ {
292
+ "kind": "propose",
293
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000a",
294
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
295
+ "uri": "{\"give\":{\"amount\":\"10\",\"ticker\":\"AAA\"},\"t\":\"offer\",\"v\":1,\"want\":{\"payto\":\"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1\",\"value\":\"500000000\"}}",
296
+ "payloadHash": "0x35fbb96da060aa4c8e5acd544768e582da8fb2e687abda530b838ab1a993e8ed",
297
+ "expiresEpoch": 2133,
298
+ "height": 61000,
299
+ "pos": 1,
300
+ "paidTo": {}
301
+ }
302
+ ],
303
+ "tipHeight": 61010,
304
+ "expectedState": {
305
+ "balances": {
306
+ "AAA": {
307
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": {
308
+ "available": "1000",
309
+ "locked": "0"
310
+ }
311
+ }
312
+ },
313
+ "bids": {},
314
+ "feesPaid": "100000000",
315
+ "names": {},
316
+ "offers": {
317
+ "0x000000000000000000000000000000000000000000000000000000002a1e000a": {
318
+ "expiresEpoch": 2133,
319
+ "feeBps": 150,
320
+ "give": {
321
+ "amount": "10",
322
+ "ticker": "AAA"
323
+ },
324
+ "height": 61000,
325
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000a",
326
+ "seller": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
327
+ "status": "cancelled",
328
+ "want": {
329
+ "payto": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
330
+ "value": "500000000"
331
+ }
332
+ }
333
+ },
334
+ "tipHeight": 61010,
335
+ "tokens": {
336
+ "AAA": {
337
+ "decimals": 0,
338
+ "deployId": "0x000000000000000000000000000000000000000000000000000000002a1e000b",
339
+ "deployer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
340
+ "height": 60980,
341
+ "mint": "issuer",
342
+ "minted": "1000",
343
+ "supply": "1000",
344
+ "ticker": "AAA"
345
+ }
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "name": "rules-noncanonical-uri-deploy",
351
+ "events": [
352
+ {
353
+ "kind": "propose",
354
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000e",
355
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
356
+ "uri": "{\"t\":\"deploy\",\"v\":1,\"ticker\":\"BBB\",\"decimals\":0,\"supply\":\"1000\",\"mint\":\"issuer\"}",
357
+ "payloadHash": "0xfe622e4b1211f013781181c69c08f8233c67ae8dae5818e5239a3da105ceab3b",
358
+ "expiresEpoch": 9000000000,
359
+ "height": 61000,
360
+ "pos": 0,
361
+ "paidTo": {
362
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
363
+ }
364
+ }
365
+ ],
366
+ "tipHeight": 61010,
367
+ "expectedState": {
368
+ "balances": {},
369
+ "bids": {},
370
+ "feesPaid": "0",
371
+ "names": {},
372
+ "offers": {},
373
+ "tipHeight": 61010,
374
+ "tokens": {}
375
+ }
376
+ },
377
+ {
378
+ "name": "rules-same-ticker-offer",
379
+ "events": [
380
+ {
381
+ "kind": "propose",
382
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e000f",
383
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
384
+ "uri": "{\"decimals\":0,\"mint\":\"issuer\",\"supply\":\"1000\",\"t\":\"deploy\",\"ticker\":\"AAA\",\"v\":1}",
385
+ "payloadHash": "0x06afa4ab117bc4d0bc5ccba146f79f39a92dbe7ab3741a2664189173ec0c7cf4",
386
+ "expiresEpoch": 9000000000,
387
+ "height": 60980,
388
+ "pos": 0,
389
+ "paidTo": {
390
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
391
+ }
392
+ },
393
+ {
394
+ "kind": "propose",
395
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0010",
396
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
397
+ "uri": "{\"amount\":\"1000\",\"t\":\"mint\",\"ticker\":\"AAA\",\"v\":1}",
398
+ "payloadHash": "0x44f8ddc94f8dfac9a0c48c9d1c799efb67cdf3d9edc33394ad3d6020e7d7bb7b",
399
+ "expiresEpoch": 9000000000,
400
+ "height": 60981,
401
+ "pos": 0,
402
+ "paidTo": {}
403
+ },
404
+ {
405
+ "kind": "propose",
406
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0011",
407
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
408
+ "uri": "{\"give\":{\"amount\":\"10\",\"ticker\":\"AAA\"},\"t\":\"offer\",\"v\":1,\"want\":{\"amount\":\"5\",\"ticker\":\"AAA\"}}",
409
+ "payloadHash": "0x7ee6d3589bf7f103a7a9f44a4102ade332e668a0d6a6cfb1a741d3be4ebc8d61",
410
+ "expiresEpoch": 2133,
411
+ "height": 61000,
412
+ "pos": 0,
413
+ "paidTo": {}
414
+ }
415
+ ],
416
+ "tipHeight": 61010,
417
+ "expectedState": {
418
+ "balances": {
419
+ "AAA": {
420
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": {
421
+ "available": "1000",
422
+ "locked": "0"
423
+ }
424
+ }
425
+ },
426
+ "bids": {},
427
+ "feesPaid": "100000000",
428
+ "names": {},
429
+ "offers": {},
430
+ "tipHeight": 61010,
431
+ "tokens": {
432
+ "AAA": {
433
+ "decimals": 0,
434
+ "deployId": "0x000000000000000000000000000000000000000000000000000000002a1e000f",
435
+ "deployer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
436
+ "height": 60980,
437
+ "mint": "issuer",
438
+ "minted": "1000",
439
+ "supply": "1000",
440
+ "ticker": "AAA"
441
+ }
442
+ }
443
+ }
444
+ }
445
+ ]
446
+ }