Repository navigation
Expand file tree
/
Copy pathcapability_anchor_cases.json
More file actions
109 lines (109 loc) · 5.32 KB
/
Copy pathcapability_anchor_cases.json
File metadata and controls
109 lines (109 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"schema": "cellscript-capability-anchor-fixture-v1",
"source_files": [
"tests/fixtures/capability_anchor_order.cell",
"tests/fixtures/capability_anchor_policy.cell",
"tests/fixtures/capability_anchor_token.cell",
"tests/fixtures/capability_anchor_authorization.cell"
],
"policy_data_hex": "0x63656c6c7363726970742d302e33302d616e63686f722d706f6c696379",
"artifacts": 4,
"artifact_identities": [
{
"artifact_hash": "0xf26ffbbb557f3a21c3477c198453e8e8b1cb4e189ca135ccaeb9ad45157eb3c2",
"id": "order",
"lowering_record_hash": "0xdef08517d54bc830e4589768df81aba471272d1e7800ae1c39afc6ed85a447a0",
"source_map_hash": "0xd951feb345fb289f05b92ad517b0799c250238cdb3ef5a26478a52f069362d75",
"verified_bundle_id": "0x8089b4aaeb8e61644004e30dde2651820820aa285e5d6ded0ad0516bb660b4b9"
},
{
"artifact_hash": "0x90679a6d2bbfe68becbcda7dde1b8ebf5c15e3ba1474a376edd9c516b81a161b",
"id": "policy",
"lowering_record_hash": "0x8fd7084b24dca4835124d4585f51d24567ce8b0cb9b6a1f7c1e41bc5826963ef",
"source_map_hash": "0x26eae05e3caf28a64c17222deb30855bc5d5e0559502db05782dfb099a1be084",
"verified_bundle_id": "0x19b3801bb3f3192d21c5d8742f215fca51409ca2940817271f9d4085f0494def"
},
{
"artifact_hash": "0x99c1cd4ba11a89f0e1c51542bbccf6112d35315b97525de2e129523ec826973e",
"id": "token",
"lowering_record_hash": "0x13bb2a3207f0e508d808c36315d16953f308eb748de0bb821aba35b3f02fce77",
"source_map_hash": "0x5b787fb75a0b52e83bc834c1193794a010a17b7c22ee183a731903f29f67e356",
"verified_bundle_id": "0xcefbc3b35200b8df7957c4ff7fa57113fa784853586a00806f63aca11f94c1fb"
},
{
"artifact_hash": "0xc15fe339250ba4f7529b0e834a93053a7105c95edbbe03d20b8cb488da0e022b",
"id": "authorization",
"lowering_record_hash": "0x638a05431835b94e783a22153f5a8c88af87c1b92d4df95d122ae1443469aeb2",
"source_map_hash": "0x7e4ec68fd59b6e69d8d62bf4e9eea428be752524eb082bf3b68ecc5be5870d11",
"verified_bundle_id": "0xb49ce0960bd1a7716a94c608fae5130f05ae3a5965fe92e47ee744eda17080b7"
}
],
"script_groups": 5,
"positive_case": "settle_two_orders",
"adversarial_cases": [
{
"name": "wrong_authorization_credential",
"mutation": "authorization_credential",
"inventory_scenario": "authorization_substitution",
"raw_transaction_hash": "0x025f688c8e33abb001f85534b0d16bc6f2e08adf18159965cfb0d5403a6b0880",
"serialized_transaction_hash": "0x2f9223b192bcddfdfabcf3187e17aac7f4c3210d62158e681dbbc7b7e8105f50"
},
{
"name": "fungible_amount_inflation",
"mutation": "token_amount",
"inventory_scenario": "type_state_substitution",
"raw_transaction_hash": "0x693906cdad4f32a071d6114c9e903710831de2a53c339d00f7b19718b64bd58f",
"serialized_transaction_hash": "0xa7b83f9dff8182fc26a9eaa6b896ab30057e576c88ebb45878c91d277ea456a9"
},
{
"name": "partial_settlement_amount_mismatch",
"mutation": "order_amount",
"inventory_scenario": "output_substitution",
"raw_transaction_hash": "0xbf9b20def0ebadf5055ff6f3aa21d97d611314594902198c86fe9e6aa3246caf",
"serialized_transaction_hash": "0x294e53396bc248476f6c4363bc5c8f686c9410fe501a38d03375fe8bcd2f402f"
},
{
"name": "persistent_policy_state_substitution",
"mutation": "policy_state",
"raw_transaction_hash": "0x9abd8e011cb3516d3a12e970b88d4db128a1f57b4c54243a6bd1cbc765198833",
"serialized_transaction_hash": "0xa0cd7cf280bce74e899bddf0081b2a20f3781eb685f1d10ffb2f4a8ab28f92de"
},
{
"name": "authenticated_dependency_substitution",
"mutation": "dependency",
"inventory_scenario": "cell_dep_substitution",
"raw_transaction_hash": "0x77bf07bff8af1bf3c9085906b85e2bd6c9c40c08c78cb99bf3c6de341f67d039",
"serialized_transaction_hash": "0x628e5585206ad3c3387062a56bc0ecd650d33aca7a24deb1c634fec8c37c93dd"
}
],
"protocol_bundle_role_conflict": {
"code": "PB200"
},
"stateful_policy": {
"partial_fill_raw_transaction_hash": "0x5f1305f6195b4d344e97acf065459b6d9ecb294846f44c513ef2f397a56885b0",
"partial_fill_serialized_transaction_hash": "0x209b8a2d21ec04cef2108aa57e165c6143ba0f4cdf0a659c4266cfb1a0ce0495",
"settle_raw_transaction_hash": "0x7d7c7346470131452c8014fcd9f3ee9bd652c5e931042c939ea82bcd18656b22",
"settle_serialized_transaction_hash": "0xedf7148d721af52027cb67564bf23eee380173a19640c270c6775c4b59ec5270",
"cancel_raw_transaction_hash": "0xb39f4b15ada522fd0fba64ac4fce17d0bb8ad8f43dbb789b1e69a2380c44915f",
"cancel_serialized_transaction_hash": "0x6fb7c4d3f028f0f080784112e7fb06e9fc6301331c9e426d7718b4dcbd7317c0"
},
"measured": {
"combined_elf_bytes": 14416,
"cycles": 40886,
"max_stack_frame_bytes": 5376,
"occupied_capacity_shannons": 32800000000,
"protocol_bundle_hash": "6ea0bf745450e6e6505352e2b309349a94f605e940efa17aceda1fe996ec3075",
"raw_transaction_hash": "0x025f688c8e33abb001f85534b0d16bc6f2e08adf18159965cfb0d5403a6b0880",
"serialized_transaction_hash": "0x1f634e453a4365addf6e2dc1b2dcccda52c7ff553c6b0016928b95cadcb0872f",
"transaction_bytes": 1423,
"witness_bytes": 321
},
"budgets": {
"max_cycles": 45000,
"max_combined_elf_bytes": 17000,
"max_stack_frame_bytes": 6000,
"max_witness_bytes": 336,
"max_transaction_bytes": 1500,
"max_occupied_capacity_shannons": 33000000000
}
}