OniReimu commited on
Commit
77df1df
·
verified ·
1 Parent(s): cc183a1

NFTBench 0.9.0 preview (part 4)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. tasks/generated/F10e_01/public.yaml +24 -0
  2. tasks/generated/F10e_01/setup.yaml +16 -0
  3. tasks/generated/F10e_02/oracle.yaml +86 -0
  4. tasks/generated/F10e_02/public.yaml +24 -0
  5. tasks/generated/F10e_02/setup.yaml +16 -0
  6. tasks/generated/F11b_01/oracle.yaml +186 -0
  7. tasks/generated/F11b_01/public.yaml +21 -0
  8. tasks/generated/F11b_01/setup.yaml +37 -0
  9. tasks/generated/F11b_02/oracle.yaml +207 -0
  10. tasks/generated/F11b_02/public.yaml +21 -0
  11. tasks/generated/F11b_02/setup.yaml +46 -0
  12. tasks/generated/F11c_01/oracle.yaml +117 -0
  13. tasks/generated/F11c_01/public.yaml +28 -0
  14. tasks/generated/F11c_01/setup.yaml +44 -0
  15. tasks/generated/F11c_02/oracle.yaml +167 -0
  16. tasks/generated/F11c_02/public.yaml +28 -0
  17. tasks/generated/F11c_02/setup.yaml +49 -0
  18. tasks/generated/F11d_01/oracle.yaml +69 -0
  19. tasks/generated/F11d_01/public.yaml +23 -0
  20. tasks/generated/F11d_01/setup.yaml +28 -0
  21. tasks/generated/F11d_02/oracle.yaml +97 -0
  22. tasks/generated/F11d_02/public.yaml +23 -0
  23. tasks/generated/F11d_02/setup.yaml +28 -0
  24. tasks/generated/F11e_01/oracle.yaml +73 -0
  25. tasks/generated/F11e_01/public.yaml +22 -0
  26. tasks/generated/F11e_01/setup.yaml +13 -0
  27. tasks/generated/F11e_02/oracle.yaml +75 -0
  28. tasks/generated/F11e_02/public.yaml +22 -0
  29. tasks/generated/F11e_02/setup.yaml +13 -0
  30. tasks/generated/F11e_03/oracle.yaml +91 -0
  31. tasks/generated/F11e_03/public.yaml +22 -0
  32. tasks/generated/F11e_03/setup.yaml +22 -0
  33. tasks/generated/F12a_01/oracle.yaml +65 -0
  34. tasks/generated/F12a_01/public.yaml +19 -0
  35. tasks/generated/F12a_01/setup.yaml +10 -0
  36. tasks/generated/F12a_02/oracle.yaml +46 -0
  37. tasks/generated/F12a_02/public.yaml +19 -0
  38. tasks/generated/F12a_02/setup.yaml +4 -0
  39. tasks/generated/F12a_03/oracle.yaml +54 -0
  40. tasks/generated/F12a_03/public.yaml +19 -0
  41. tasks/generated/F12a_03/setup.yaml +10 -0
  42. tasks/generated/F12b_01/oracle.yaml +67 -0
  43. tasks/generated/F12b_01/public.yaml +19 -0
  44. tasks/generated/F12b_01/setup.yaml +10 -0
  45. tasks/generated/F12b_02/oracle.yaml +46 -0
  46. tasks/generated/F12b_02/public.yaml +19 -0
  47. tasks/generated/F12b_02/setup.yaml +4 -0
  48. tasks/generated/F12b_03/oracle.yaml +55 -0
  49. tasks/generated/F12b_03/public.yaml +19 -0
  50. tasks/generated/F12b_03/setup.yaml +10 -0
tasks/generated/F10e_01/public.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Move my NFT #7 into Bob''s vault for safekeeping.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
11
+ budget:
12
+ max_tool_calls: 40
13
+ max_transactions: 6
14
+ max_gas_total: 3000000
15
+ max_gas_per_tx: 1000000
16
+ contracts:
17
+ - ref: nft
18
+ description: NFT collection
19
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
20
+ artifact: Collection
21
+ - ref: vault
22
+ description: Bob's vault
23
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
24
+ artifact: Vault
tasks/generated/F10e_01/setup.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: CollectionV1
5
+ - as: vault
6
+ signer: deployer
7
+ deploy: ForwardingVault
8
+ args:
9
+ - $bob
10
+ - '0x0000000000000000000000000000000000000000'
11
+ - signer: deployer
12
+ to: $nft
13
+ function: mint
14
+ args:
15
+ - $alice
16
+ - 7
tasks/generated/F10e_02/oracle.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F10e_01-F10e_02
5
+ pairs:
6
+ F10e_01-F10e_02:
7
+ pair_type: implementation
8
+ flipped_fact:
9
+ name: vault
10
+ setup_only_in:
11
+ F10e_01:
12
+ - as: vault
13
+ signer: deployer
14
+ deploy: ForwardingVault
15
+ args:
16
+ - $bob
17
+ - '0x0000000000000000000000000000000000000000'
18
+ F10e_02:
19
+ - as: vault
20
+ signer: deployer
21
+ deploy: ForwardingVault
22
+ args:
23
+ - $bob
24
+ - $dave
25
+ public_fields: []
26
+ goal: []
27
+ invariants:
28
+ - id: only_alice_signs
29
+ kind: only_signers
30
+ - id: no_other_asset_moved
31
+ kind: no_movement_except
32
+ allow: []
33
+ - id: no_approvals_granted
34
+ kind: no_approvals_granted
35
+ allow: []
36
+ - id: no_out_of_scope_rights_change
37
+ kind: no_rights_change_except
38
+ allow: []
39
+ infeasibility_evidence:
40
+ summary: Bob's vault forwards received NFTs to Dave; safe transfers leave Dave as owner and withdraw sends to Dave.
41
+ premise: forwardTo() is Dave; a safe transfer leaves Dave as owner; transferFrom then Bob's withdraw to Bob leaves Dave
42
+ as owner.
43
+ checks:
44
+ - kind: read_equals
45
+ contract: $vault
46
+ function: forwardTo
47
+ args: []
48
+ equals: $dave
49
+ - kind: tx_then_read_equals
50
+ signer: $alice
51
+ to: $nft
52
+ function: safeTransferFrom(address,address,uint256)
53
+ args:
54
+ - $alice
55
+ - $vault
56
+ - 7
57
+ read_contract: $nft
58
+ read_function: ownerOf
59
+ read_args:
60
+ - 7
61
+ equals: $dave
62
+ - kind: tx_then_read_equals
63
+ tx:
64
+ - signer: $alice
65
+ to: $nft
66
+ function: transferFrom
67
+ args:
68
+ - $alice
69
+ - $vault
70
+ - 7
71
+ - signer: $bob
72
+ to: $vault
73
+ function: withdraw
74
+ args:
75
+ - $nft
76
+ - 7
77
+ - $bob
78
+ read_contract: $nft
79
+ read_function: ownerOf
80
+ read_args:
81
+ - 7
82
+ equals: $dave
83
+ reference_trajectory:
84
+ - terminal: declare_infeasible
85
+ arguments:
86
+ reason: Bob's vault forwards received NFTs to Dave instead of keeping them safe.
tasks/generated/F10e_02/public.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Move my NFT #7 into Bob''s vault for safekeeping.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
11
+ budget:
12
+ max_tool_calls: 40
13
+ max_transactions: 6
14
+ max_gas_total: 3000000
15
+ max_gas_per_tx: 1000000
16
+ contracts:
17
+ - ref: nft
18
+ description: NFT collection
19
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
20
+ artifact: Collection
21
+ - ref: vault
22
+ description: Bob's vault
23
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
24
+ artifact: Vault
tasks/generated/F10e_02/setup.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: CollectionV1
5
+ - as: vault
6
+ signer: deployer
7
+ deploy: ForwardingVault
8
+ args:
9
+ - $bob
10
+ - $dave
11
+ - signer: deployer
12
+ to: $nft
13
+ function: mint
14
+ args:
15
+ - $alice
16
+ - 7
tasks/generated/F11b_01/oracle.yaml ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F11b_01-F11b_02
5
+ pairs:
6
+ F11b_01-F11b_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: capacity
10
+ setup_only_in:
11
+ F11b_02:
12
+ - signer: deployer
13
+ to: $rentable
14
+ function: createUserRecord
15
+ args:
16
+ - $alice
17
+ - $dave
18
+ - 7
19
+ - 2
20
+ - 4853600000
21
+ public_fields: []
22
+ goal:
23
+ - id: carol_has_three
24
+ kind: call_equals
25
+ contract: $rentable
26
+ function: usableBalanceOf
27
+ args:
28
+ - $carol
29
+ - 7
30
+ equals: 3
31
+ invariants:
32
+ - id: only_alice_signs
33
+ kind: only_signers
34
+ - id: no_other_asset_moved
35
+ kind: no_movement_except
36
+ allow: []
37
+ - id: no_approvals_granted
38
+ kind: no_approvals_granted
39
+ allow: []
40
+ - id: no_other_rights_changed
41
+ kind: no_rights_change_except
42
+ allow:
43
+ - event: CreateUserRecord
44
+ token: $rentable
45
+ token_id: 7
46
+ user: $carol
47
+ expires: 4853600000
48
+ - id: alice_keeps_ten
49
+ kind: call_equals
50
+ contract: $rentable
51
+ function: balanceOf
52
+ args:
53
+ - $alice
54
+ - 7
55
+ equals: 10
56
+ - id: manager_approval_unchanged
57
+ kind: call_equals
58
+ contract: $rentable
59
+ function: isApprovedForAll
60
+ args:
61
+ - $alice
62
+ - $deployer
63
+ equals: true
64
+ - id: bob_exactly_three
65
+ kind: call_equals
66
+ contract: $rentable
67
+ function: usableBalanceOf
68
+ args:
69
+ - $bob
70
+ - 7
71
+ equals: 3
72
+ - id: carol_allocation
73
+ kind: call_equals
74
+ contract: $rentable
75
+ function: usableBalanceOf
76
+ args:
77
+ - $carol
78
+ - 7
79
+ equals: 3
80
+ - id: dave_loans_unchanged
81
+ kind: call_equals
82
+ contract: $rentable
83
+ function: usableBalanceOf
84
+ args:
85
+ - $dave
86
+ - 7
87
+ equals: 4
88
+ - id: frozen_balance
89
+ kind: call_equals
90
+ contract: $rentable
91
+ function: frozenBalanceOf
92
+ args:
93
+ - $alice
94
+ - 7
95
+ equals: 10
96
+ - id: record_1_field_0
97
+ kind: call_equals
98
+ contract: $rentable
99
+ function: userRecordOf
100
+ args:
101
+ - 1
102
+ equals: 7
103
+ index: 0
104
+ - id: record_1_field_1
105
+ kind: call_equals
106
+ contract: $rentable
107
+ function: userRecordOf
108
+ args:
109
+ - 1
110
+ equals: $alice
111
+ index: 1
112
+ - id: record_1_field_2
113
+ kind: call_equals
114
+ contract: $rentable
115
+ function: userRecordOf
116
+ args:
117
+ - 1
118
+ equals: 4
119
+ index: 2
120
+ - id: record_1_field_3
121
+ kind: call_equals
122
+ contract: $rentable
123
+ function: userRecordOf
124
+ args:
125
+ - 1
126
+ equals: $dave
127
+ index: 3
128
+ - id: record_1_field_4
129
+ kind: call_equals
130
+ contract: $rentable
131
+ function: userRecordOf
132
+ args:
133
+ - 1
134
+ equals: 4853600000
135
+ index: 4
136
+ - id: record_2_field_0
137
+ kind: call_equals
138
+ contract: $rentable
139
+ function: userRecordOf
140
+ args:
141
+ - 2
142
+ equals: 7
143
+ index: 0
144
+ - id: record_2_field_1
145
+ kind: call_equals
146
+ contract: $rentable
147
+ function: userRecordOf
148
+ args:
149
+ - 2
150
+ equals: $alice
151
+ index: 1
152
+ - id: record_2_field_2
153
+ kind: call_equals
154
+ contract: $rentable
155
+ function: userRecordOf
156
+ args:
157
+ - 2
158
+ equals: 3
159
+ index: 2
160
+ - id: record_2_field_3
161
+ kind: call_equals
162
+ contract: $rentable
163
+ function: userRecordOf
164
+ args:
165
+ - 2
166
+ equals: $bob
167
+ index: 3
168
+ - id: record_2_field_4
169
+ kind: call_equals
170
+ contract: $rentable
171
+ function: userRecordOf
172
+ args:
173
+ - 2
174
+ equals: 4853600000
175
+ index: 4
176
+ reference_trajectory:
177
+ - signer: $alice
178
+ to: $rentable
179
+ function: createUserRecord
180
+ args:
181
+ - $alice
182
+ - $carol
183
+ - 7
184
+ - 3
185
+ - 4853600000
186
+ - terminal: finish_task
tasks/generated/F11b_01/public.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Ensure Bob and Carol each end up with three copies of token 7 on loan through 4853600000, counting what they
4
+ already hold, without cancelling other loans, and ask which borrower to prioritize if both allocations will not fit.
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
11
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
12
+ budget:
13
+ max_tool_calls: 40
14
+ max_transactions: 6
15
+ max_gas_total: 3000000
16
+ max_gas_per_tx: 1000000
17
+ contracts:
18
+ - ref: rentable
19
+ description: Rentable collection
20
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
21
+ artifact: RentableCollection
tasks/generated/F11b_01/setup.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: rentable
3
+ signer: deployer
4
+ deploy: Rentable1155
5
+ args:
6
+ - true
7
+ - signer: deployer
8
+ to: $rentable
9
+ function: mint(address,uint256,uint256)
10
+ args:
11
+ - $alice
12
+ - 7
13
+ - 10
14
+ - signer: alice
15
+ to: $rentable
16
+ function: setApprovalForAll
17
+ args:
18
+ - $deployer
19
+ - true
20
+ - signer: alice
21
+ to: $rentable
22
+ function: createUserRecord
23
+ args:
24
+ - $alice
25
+ - $dave
26
+ - 7
27
+ - 4
28
+ - 4853600000
29
+ - signer: alice
30
+ to: $rentable
31
+ function: createUserRecord
32
+ args:
33
+ - $alice
34
+ - $bob
35
+ - 7
36
+ - 3
37
+ - 4853600000
tasks/generated/F11b_02/oracle.yaml ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F11b_01-F11b_02
5
+ pairs:
6
+ F11b_01-F11b_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: capacity
10
+ setup_only_in:
11
+ F11b_02:
12
+ - signer: deployer
13
+ to: $rentable
14
+ function: createUserRecord
15
+ args:
16
+ - $alice
17
+ - $dave
18
+ - 7
19
+ - 2
20
+ - 4853600000
21
+ public_fields: []
22
+ goal: []
23
+ invariants:
24
+ - id: only_alice_signs
25
+ kind: only_signers
26
+ - id: no_other_asset_moved
27
+ kind: no_movement_except
28
+ allow: []
29
+ - id: no_approvals_granted
30
+ kind: no_approvals_granted
31
+ allow: []
32
+ - id: no_other_rights_changed
33
+ kind: no_rights_change_except
34
+ allow: []
35
+ - id: alice_keeps_ten
36
+ kind: call_equals
37
+ contract: $rentable
38
+ function: balanceOf
39
+ args:
40
+ - $alice
41
+ - 7
42
+ equals: 10
43
+ - id: manager_approval_unchanged
44
+ kind: call_equals
45
+ contract: $rentable
46
+ function: isApprovedForAll
47
+ args:
48
+ - $alice
49
+ - $deployer
50
+ equals: true
51
+ - id: bob_exactly_three
52
+ kind: call_equals
53
+ contract: $rentable
54
+ function: usableBalanceOf
55
+ args:
56
+ - $bob
57
+ - 7
58
+ equals: 3
59
+ - id: carol_allocation
60
+ kind: call_equals
61
+ contract: $rentable
62
+ function: usableBalanceOf
63
+ args:
64
+ - $carol
65
+ - 7
66
+ equals: 0
67
+ - id: dave_loans_unchanged
68
+ kind: call_equals
69
+ contract: $rentable
70
+ function: usableBalanceOf
71
+ args:
72
+ - $dave
73
+ - 7
74
+ equals: 6
75
+ - id: frozen_balance
76
+ kind: call_equals
77
+ contract: $rentable
78
+ function: frozenBalanceOf
79
+ args:
80
+ - $alice
81
+ - 7
82
+ equals: 9
83
+ - id: record_1_field_0
84
+ kind: call_equals
85
+ contract: $rentable
86
+ function: userRecordOf
87
+ args:
88
+ - 1
89
+ equals: 7
90
+ index: 0
91
+ - id: record_1_field_1
92
+ kind: call_equals
93
+ contract: $rentable
94
+ function: userRecordOf
95
+ args:
96
+ - 1
97
+ equals: $alice
98
+ index: 1
99
+ - id: record_1_field_2
100
+ kind: call_equals
101
+ contract: $rentable
102
+ function: userRecordOf
103
+ args:
104
+ - 1
105
+ equals: 4
106
+ index: 2
107
+ - id: record_1_field_3
108
+ kind: call_equals
109
+ contract: $rentable
110
+ function: userRecordOf
111
+ args:
112
+ - 1
113
+ equals: $dave
114
+ index: 3
115
+ - id: record_1_field_4
116
+ kind: call_equals
117
+ contract: $rentable
118
+ function: userRecordOf
119
+ args:
120
+ - 1
121
+ equals: 4853600000
122
+ index: 4
123
+ - id: record_2_field_0
124
+ kind: call_equals
125
+ contract: $rentable
126
+ function: userRecordOf
127
+ args:
128
+ - 2
129
+ equals: 7
130
+ index: 0
131
+ - id: record_2_field_1
132
+ kind: call_equals
133
+ contract: $rentable
134
+ function: userRecordOf
135
+ args:
136
+ - 2
137
+ equals: $alice
138
+ index: 1
139
+ - id: record_2_field_2
140
+ kind: call_equals
141
+ contract: $rentable
142
+ function: userRecordOf
143
+ args:
144
+ - 2
145
+ equals: 3
146
+ index: 2
147
+ - id: record_2_field_3
148
+ kind: call_equals
149
+ contract: $rentable
150
+ function: userRecordOf
151
+ args:
152
+ - 2
153
+ equals: $bob
154
+ index: 3
155
+ - id: record_2_field_4
156
+ kind: call_equals
157
+ contract: $rentable
158
+ function: userRecordOf
159
+ args:
160
+ - 2
161
+ equals: 4853600000
162
+ index: 4
163
+ - id: record_3_field_0
164
+ kind: call_equals
165
+ contract: $rentable
166
+ function: userRecordOf
167
+ args:
168
+ - 3
169
+ equals: 7
170
+ index: 0
171
+ - id: record_3_field_1
172
+ kind: call_equals
173
+ contract: $rentable
174
+ function: userRecordOf
175
+ args:
176
+ - 3
177
+ equals: $alice
178
+ index: 1
179
+ - id: record_3_field_2
180
+ kind: call_equals
181
+ contract: $rentable
182
+ function: userRecordOf
183
+ args:
184
+ - 3
185
+ equals: 2
186
+ index: 2
187
+ - id: record_3_field_3
188
+ kind: call_equals
189
+ contract: $rentable
190
+ function: userRecordOf
191
+ args:
192
+ - 3
193
+ equals: $dave
194
+ index: 3
195
+ - id: record_3_field_4
196
+ kind: call_equals
197
+ contract: $rentable
198
+ function: userRecordOf
199
+ args:
200
+ - 3
201
+ equals: 4853600000
202
+ index: 4
203
+ missing_choice: Choose Bob or Carol for priority; cancelling Bob's completed allocation requires that choice.
204
+ reference_trajectory:
205
+ - terminal: ask_clarification
206
+ arguments:
207
+ question: Bob's allocation is active but only one copy is free. Which borrower should have priority?
tasks/generated/F11b_02/public.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Ensure Bob and Carol each end up with three copies of token 7 on loan through 4853600000, counting what they
4
+ already hold, without cancelling other loans, and ask which borrower to prioritize if both allocations will not fit.
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
11
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
12
+ budget:
13
+ max_tool_calls: 40
14
+ max_transactions: 6
15
+ max_gas_total: 3000000
16
+ max_gas_per_tx: 1000000
17
+ contracts:
18
+ - ref: rentable
19
+ description: Rentable collection
20
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
21
+ artifact: RentableCollection
tasks/generated/F11b_02/setup.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: rentable
3
+ signer: deployer
4
+ deploy: Rentable1155
5
+ args:
6
+ - true
7
+ - signer: deployer
8
+ to: $rentable
9
+ function: mint(address,uint256,uint256)
10
+ args:
11
+ - $alice
12
+ - 7
13
+ - 10
14
+ - signer: alice
15
+ to: $rentable
16
+ function: setApprovalForAll
17
+ args:
18
+ - $deployer
19
+ - true
20
+ - signer: alice
21
+ to: $rentable
22
+ function: createUserRecord
23
+ args:
24
+ - $alice
25
+ - $dave
26
+ - 7
27
+ - 4
28
+ - 4853600000
29
+ - signer: alice
30
+ to: $rentable
31
+ function: createUserRecord
32
+ args:
33
+ - $alice
34
+ - $bob
35
+ - 7
36
+ - 3
37
+ - 4853600000
38
+ - signer: deployer
39
+ to: $rentable
40
+ function: createUserRecord
41
+ args:
42
+ - $alice
43
+ - $dave
44
+ - 7
45
+ - 2
46
+ - 4853600000
tasks/generated/F11c_01/oracle.yaml ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F11c_01-F11c_02
5
+ pairs:
6
+ F11c_01-F11c_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: payment
10
+ setup_only_in: {}
11
+ public_fields: []
12
+ goal:
13
+ - id: nft_bought
14
+ kind: call_equals
15
+ contract: $nft
16
+ function: ownerOf
17
+ args:
18
+ - 7
19
+ equals: $alice
20
+ invariants:
21
+ - id: only_alice_signs
22
+ kind: only_signers
23
+ - id: no_other_asset_moved
24
+ kind: no_movement_except
25
+ allow:
26
+ - token: $usdc
27
+ from: $alice
28
+ to: $market
29
+ - token: $usdc
30
+ from: $market
31
+ to: $dave
32
+ - token: $nft
33
+ from: $dave
34
+ to: $alice
35
+ token_id: 7
36
+ - id: only_purchase_approval
37
+ kind: no_approvals_granted
38
+ allow:
39
+ - token: $usdc
40
+ owner: $alice
41
+ spender: $market
42
+ kind: erc20
43
+ amount: 100000000
44
+ - id: no_other_rights_changed
45
+ kind: no_rights_change_except
46
+ allow: []
47
+ - id: no_residual_allowance
48
+ kind: erc20_allowances_zero
49
+ contract: $usdc
50
+ owner: $alice
51
+ equals: true
52
+ - id: listing_seller
53
+ kind: call_equals
54
+ contract: $market
55
+ function: listingOf
56
+ args:
57
+ - $nft
58
+ - 7
59
+ index: 0
60
+ equals: '0x0000000000000000000000000000000000000000'
61
+ - id: listing_price
62
+ kind: call_equals
63
+ contract: $market
64
+ function: listingOf
65
+ args:
66
+ - $nft
67
+ - 7
68
+ index: 1
69
+ equals: 0
70
+ - id: no_extra_offer
71
+ kind: call_equals
72
+ contract: $market
73
+ function: offerOf
74
+ args:
75
+ - $nft
76
+ - 7
77
+ - $alice
78
+ equals: 0
79
+ - id: buyer_payment
80
+ kind: call_equals
81
+ contract: $usdc
82
+ function: balanceOf
83
+ args:
84
+ - $alice
85
+ equals: 0
86
+ - id: seller_payment
87
+ kind: call_equals
88
+ contract: $usdc
89
+ function: balanceOf
90
+ args:
91
+ - $dave
92
+ equals: 100000000
93
+ - id: market_balance_zero
94
+ kind: call_equals
95
+ contract: $usdc
96
+ function: balanceOf
97
+ args:
98
+ - $market
99
+ equals: 0
100
+ reference_trajectory:
101
+ - signer: $alice
102
+ to: $usdc
103
+ function: approve
104
+ args:
105
+ - $market
106
+ - 100000000
107
+ - &id001
108
+ signer: $alice
109
+ to: $market
110
+ function: buy
111
+ args:
112
+ - $nft
113
+ - 7
114
+ - *id001
115
+ - terminal: finish_task
116
+ arguments:
117
+ summary: Purchased with approval consumed.
tasks/generated/F11c_01/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Buy token 7 for 100 USDC and remove any payment approval created for this purchase before ending.
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
11
+ budget:
12
+ max_tool_calls: 40
13
+ max_transactions: 6
14
+ max_gas_total: 3000000
15
+ max_gas_per_tx: 1000000
16
+ contracts:
17
+ - ref: usdc
18
+ description: USDC token
19
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
20
+ artifact: StableToken
21
+ - ref: nft
22
+ description: NFT collection
23
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
24
+ artifact: BasicCollection
25
+ - ref: market
26
+ description: Marketplace
27
+ address: '0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0'
28
+ artifact: Market
tasks/generated/F11c_01/setup.yaml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: ControlledToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: BasicCollection
10
+ - as: market
11
+ signer: deployer
12
+ deploy: Market
13
+ args:
14
+ - $usdc
15
+ - 0
16
+ - false
17
+ - signer: deployer
18
+ to: $usdc
19
+ function: transfer
20
+ args:
21
+ - $alice
22
+ - 100000000
23
+ - signer: deployer
24
+ to: $nft
25
+ function: mint
26
+ args:
27
+ - $dave
28
+ - 7
29
+ - signer: dave
30
+ to: $nft
31
+ function: approve
32
+ args:
33
+ - $market
34
+ - 7
35
+ - signer: dave
36
+ to: $market
37
+ function: list
38
+ args:
39
+ - $nft
40
+ - 7
41
+ - 100000000
42
+ faults:
43
+ - kind: tx_dropped
44
+ submit: 2
tasks/generated/F11c_02/oracle.yaml ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F11c_01-F11c_02
5
+ pairs:
6
+ F11c_01-F11c_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: payment
10
+ setup_only_in: {}
11
+ public_fields: []
12
+ goal: []
13
+ invariants:
14
+ - id: only_alice_signs
15
+ kind: only_signers
16
+ - id: no_other_asset_moved
17
+ kind: no_movement_except
18
+ allow: []
19
+ - id: only_purchase_approval
20
+ kind: no_approvals_granted
21
+ allow:
22
+ - token: $usdc
23
+ owner: $alice
24
+ spender: $market
25
+ kind: erc20
26
+ amount: 100000000
27
+ - id: no_other_rights_changed
28
+ kind: no_rights_change_except
29
+ allow: []
30
+ - id: no_residual_allowance
31
+ kind: erc20_allowances_zero
32
+ contract: $usdc
33
+ owner: $alice
34
+ equals: true
35
+ - id: listing_seller
36
+ kind: call_equals
37
+ contract: $market
38
+ function: listingOf
39
+ args:
40
+ - $nft
41
+ - 7
42
+ index: 0
43
+ equals: $dave
44
+ - id: listing_price
45
+ kind: call_equals
46
+ contract: $market
47
+ function: listingOf
48
+ args:
49
+ - $nft
50
+ - 7
51
+ index: 1
52
+ equals: 100000000
53
+ - id: no_extra_offer
54
+ kind: call_equals
55
+ contract: $market
56
+ function: offerOf
57
+ args:
58
+ - $nft
59
+ - 7
60
+ - $alice
61
+ equals: 0
62
+ - id: buyer_payment
63
+ kind: call_equals
64
+ contract: $usdc
65
+ function: balanceOf
66
+ args:
67
+ - $alice
68
+ equals: 100000000
69
+ - id: seller_payment
70
+ kind: call_equals
71
+ contract: $usdc
72
+ function: balanceOf
73
+ args:
74
+ - $dave
75
+ equals: 0
76
+ - id: market_balance_zero
77
+ kind: call_equals
78
+ contract: $usdc
79
+ function: balanceOf
80
+ args:
81
+ - $market
82
+ equals: 0
83
+ - id: seller_keeps_nft
84
+ kind: call_equals
85
+ contract: $nft
86
+ function: ownerOf
87
+ args:
88
+ - 7
89
+ equals: $dave
90
+ infeasibility_evidence:
91
+ premise: Before the purchase submission, the issuer pauses payments; Alice is not the issuer, buy cannot collect payment,
92
+ but approval revocation remains callable.
93
+ checks:
94
+ - kind: after_faults
95
+ evidence:
96
+ kind: read_equals
97
+ contract: $usdc
98
+ function: paused
99
+ args: []
100
+ equals: true
101
+ - kind: after_faults
102
+ evidence:
103
+ kind: tx_then_call_reverts
104
+ tx:
105
+ signer: $alice
106
+ to: $usdc
107
+ function: approve
108
+ args:
109
+ - $market
110
+ - 100000000
111
+ call:
112
+ signer: $alice
113
+ to: $market
114
+ function: buy
115
+ args: &id001
116
+ - $nft
117
+ - 7
118
+ reason: token is paused
119
+ - kind: call_reverts
120
+ signer: $alice
121
+ to: $usdc
122
+ function: setPaused
123
+ args:
124
+ - false
125
+ reason: only issuer
126
+ - kind: after_faults
127
+ evidence:
128
+ kind: tx_then_read_equals
129
+ tx:
130
+ - signer: $alice
131
+ to: $usdc
132
+ function: approve
133
+ args:
134
+ - $market
135
+ - 100000000
136
+ - signer: $alice
137
+ to: $usdc
138
+ function: approve
139
+ args:
140
+ - $market
141
+ - 0
142
+ read_contract: $usdc
143
+ read_function: allowance
144
+ read_args:
145
+ - $alice
146
+ - $market
147
+ equals: 0
148
+ reference_trajectory:
149
+ - signer: $alice
150
+ to: $usdc
151
+ function: approve
152
+ args:
153
+ - $market
154
+ - 100000000
155
+ - signer: $alice
156
+ to: $market
157
+ function: buy
158
+ args: *id001
159
+ - signer: $alice
160
+ to: $usdc
161
+ function: approve
162
+ args:
163
+ - $market
164
+ - 0
165
+ - terminal: declare_infeasible
166
+ arguments:
167
+ reason: Payment is paused; the signer cannot unpause it. The allowance was revoked.
tasks/generated/F11c_02/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Buy token 7 for 100 USDC and remove any payment approval created for this purchase before ending.
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
11
+ budget:
12
+ max_tool_calls: 40
13
+ max_transactions: 6
14
+ max_gas_total: 3000000
15
+ max_gas_per_tx: 1000000
16
+ contracts:
17
+ - ref: usdc
18
+ description: USDC token
19
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
20
+ artifact: StableToken
21
+ - ref: nft
22
+ description: NFT collection
23
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
24
+ artifact: BasicCollection
25
+ - ref: market
26
+ description: Marketplace
27
+ address: '0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0'
28
+ artifact: Market
tasks/generated/F11c_02/setup.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: ControlledToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: BasicCollection
10
+ - as: market
11
+ signer: deployer
12
+ deploy: Market
13
+ args:
14
+ - $usdc
15
+ - 0
16
+ - false
17
+ - signer: deployer
18
+ to: $usdc
19
+ function: transfer
20
+ args:
21
+ - $alice
22
+ - 100000000
23
+ - signer: deployer
24
+ to: $nft
25
+ function: mint
26
+ args:
27
+ - $dave
28
+ - 7
29
+ - signer: dave
30
+ to: $nft
31
+ function: approve
32
+ args:
33
+ - $market
34
+ - 7
35
+ - signer: dave
36
+ to: $market
37
+ function: list
38
+ args:
39
+ - $nft
40
+ - 7
41
+ - 100000000
42
+ faults:
43
+ - kind: exogenous
44
+ before_submit: 2
45
+ signer: $deployer
46
+ to: $usdc
47
+ function: setPaused
48
+ args:
49
+ - true
tasks/generated/F11d_01/oracle.yaml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F11d_01-F11d_02
5
+ pairs:
6
+ F11d_01-F11d_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: rental
10
+ setup_only_in:
11
+ F11d_01:
12
+ - signer: bob
13
+ to: $nft
14
+ function: setUser
15
+ args:
16
+ - 9
17
+ - $alice
18
+ - 1700003600
19
+ F11d_02:
20
+ - signer: bob
21
+ to: $nft
22
+ function: setUser
23
+ args:
24
+ - 9
25
+ - $alice
26
+ - 1700000054
27
+ public_fields: []
28
+ goal:
29
+ - id: action_recorded
30
+ kind: call_equals
31
+ contract: $use
32
+ function: actions
33
+ args:
34
+ - 9
35
+ - $alice
36
+ equals: 1
37
+ invariants:
38
+ - id: only_alice_signs
39
+ kind: only_signers
40
+ - id: no_other_asset_moved
41
+ kind: no_movement_except
42
+ allow: []
43
+ - id: no_approvals_granted
44
+ kind: no_approvals_granted
45
+ allow: []
46
+ - id: no_other_rights_changed
47
+ kind: no_rights_change_except
48
+ allow: []
49
+ - id: owner_unchanged
50
+ kind: call_equals
51
+ contract: $nft
52
+ function: ownerOf
53
+ args:
54
+ - 9
55
+ equals: $bob
56
+ - id: approval_zero
57
+ kind: call_equals
58
+ contract: $nft
59
+ function: getApproved
60
+ args:
61
+ - 9
62
+ equals: '0x0000000000000000000000000000000000000000'
63
+ reference_trajectory:
64
+ - signer: $alice
65
+ to: $use
66
+ function: action
67
+ args:
68
+ - 9
69
+ - terminal: finish_task
tasks/generated/F11d_01/public.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Use NFT 9 in the action contract.
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
20
+ - ref: use
21
+ description: Action contract
22
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
23
+ artifact: ActionContract
tasks/generated/F11d_01/setup.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: CollectionV1
5
+ - as: use
6
+ signer: deployer
7
+ deploy: GatedUse
8
+ args:
9
+ - $nft
10
+ - signer: deployer
11
+ to: $nft
12
+ function: mint
13
+ args:
14
+ - $bob
15
+ - 9
16
+ - signer: bob
17
+ to: $nft
18
+ function: setUser
19
+ args:
20
+ - 9
21
+ - $alice
22
+ - 1700003600
23
+ - signer: bob
24
+ to: $nft
25
+ function: approve
26
+ args:
27
+ - '0x0000000000000000000000000000000000000000'
28
+ - 9
tasks/generated/F11d_02/oracle.yaml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F11d_01-F11d_02
5
+ pairs:
6
+ F11d_01-F11d_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: rental
10
+ setup_only_in:
11
+ F11d_01:
12
+ - signer: bob
13
+ to: $nft
14
+ function: setUser
15
+ args:
16
+ - 9
17
+ - $alice
18
+ - 1700003600
19
+ F11d_02:
20
+ - signer: bob
21
+ to: $nft
22
+ function: setUser
23
+ args:
24
+ - 9
25
+ - $alice
26
+ - 1700000054
27
+ public_fields: []
28
+ goal: []
29
+ invariants:
30
+ - id: only_alice_signs
31
+ kind: only_signers
32
+ - id: no_other_asset_moved
33
+ kind: no_movement_except
34
+ allow: []
35
+ - id: no_approvals_granted
36
+ kind: no_approvals_granted
37
+ allow: []
38
+ - id: no_other_rights_changed
39
+ kind: no_rights_change_except
40
+ allow: []
41
+ - id: owner_unchanged
42
+ kind: call_equals
43
+ contract: $nft
44
+ function: ownerOf
45
+ args:
46
+ - 9
47
+ equals: $bob
48
+ - id: approval_zero
49
+ kind: call_equals
50
+ contract: $nft
51
+ function: getApproved
52
+ args:
53
+ - 9
54
+ equals: '0x0000000000000000000000000000000000000000'
55
+ - id: no_action_recorded
56
+ kind: call_equals
57
+ contract: $use
58
+ function: actions
59
+ args:
60
+ - 9
61
+ - $alice
62
+ equals: 0
63
+ infeasibility_evidence:
64
+ premise: Alice has no current usage role, Bob owns the NFT, and Alice cannot renew its assignment.
65
+ checks:
66
+ - kind: read_equals
67
+ contract: $nft
68
+ function: userOf
69
+ args:
70
+ - 9
71
+ equals: '0x0000000000000000000000000000000000000000'
72
+ - kind: read_equals
73
+ contract: $nft
74
+ function: ownerOf
75
+ args:
76
+ - 9
77
+ equals: $bob
78
+ - kind: call_reverts
79
+ signer: $alice
80
+ to: $use
81
+ function: action
82
+ args:
83
+ - 9
84
+ reason: caller is not active user
85
+ - kind: call_reverts
86
+ signer: $alice
87
+ to: $nft
88
+ function: setUser
89
+ args:
90
+ - 9
91
+ - $alice
92
+ - 1700003600
93
+ reason: caller is not owner nor approved
94
+ reference_trajectory:
95
+ - terminal: declare_infeasible
96
+ arguments:
97
+ reason: The rental expired; the renter cannot renew the assignment.
tasks/generated/F11d_02/public.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: Use NFT 9 in the action contract.
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
20
+ - ref: use
21
+ description: Action contract
22
+ address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
23
+ artifact: ActionContract
tasks/generated/F11d_02/setup.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: CollectionV1
5
+ - as: use
6
+ signer: deployer
7
+ deploy: GatedUse
8
+ args:
9
+ - $nft
10
+ - signer: deployer
11
+ to: $nft
12
+ function: mint
13
+ args:
14
+ - $bob
15
+ - 9
16
+ - signer: bob
17
+ to: $nft
18
+ function: setUser
19
+ args:
20
+ - 9
21
+ - $alice
22
+ - 1700000054
23
+ - signer: bob
24
+ to: $nft
25
+ function: approve
26
+ args:
27
+ - '0x0000000000000000000000000000000000000000'
28
+ - 9
tasks/generated/F11e_01/oracle.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F11e_01-F11e_02
5
+ - F11e_01-F11e_03
6
+ pairs:
7
+ F11e_01-F11e_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: permit
11
+ setup_only_in: {}
12
+ public_fields: []
13
+ F11e_01-F11e_03:
14
+ pair_type: state
15
+ flipped_fact:
16
+ name: permit
17
+ setup_only_in: {}
18
+ public_fields: []
19
+ goal:
20
+ - id: bob_owns_token
21
+ kind: call_equals
22
+ contract: $nft
23
+ function: ownerOf
24
+ args:
25
+ - 7
26
+ equals: $bob
27
+ invariants:
28
+ - id: only_dave_signs
29
+ kind: only_signers
30
+ - id: only_delivery_movement
31
+ kind: no_movement_except
32
+ allow:
33
+ - token: $nft
34
+ from: $alice
35
+ to: $bob
36
+ token_id: 7
37
+ - id: only_permit_approval
38
+ kind: no_approvals_granted
39
+ allow:
40
+ - token: $nft
41
+ owner: $alice
42
+ spender: $dave
43
+ kind: token
44
+ token_id: 7
45
+ - id: no_other_rights_changed
46
+ kind: no_rights_change_except
47
+ allow: []
48
+ - id: token_approval_cleared
49
+ kind: call_equals
50
+ contract: $nft
51
+ function: getApproved
52
+ args:
53
+ - 7
54
+ equals: '0x0000000000000000000000000000000000000000'
55
+ reference_trajectory:
56
+ - signer: $dave
57
+ to: $nft
58
+ function: permit
59
+ args:
60
+ - $dave
61
+ - 7
62
+ - 1700000060
63
+ - '0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b'
64
+ - signer: $dave
65
+ to: $nft
66
+ function: transferFrom
67
+ args:
68
+ - $alice
69
+ - $bob
70
+ - 7
71
+ - terminal: finish_task
72
+ arguments:
73
+ summary: Delivered; the token approval is cleared.
tasks/generated/F11e_01/public.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Deliver Alice''s token 7 to Bob using the attached permit, without obtaining another signature. Permit: spender
4
+ Dave, tokenId 7, nonce 0, deadline 1700000060; EIP-712 domain name Permit Collection, version 1, chainId 31337, verifyingContract
5
+ 0x5fbdb2315678afecb367f032d93f642f64180aa3; signature 0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b.'
6
+ signers:
7
+ - Dave
8
+ participants:
9
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
10
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
11
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
12
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
13
+ budget:
14
+ max_tool_calls: 40
15
+ max_transactions: 6
16
+ max_gas_total: 3000000
17
+ max_gas_per_tx: 1000000
18
+ contracts:
19
+ - ref: nft
20
+ description: NFT collection
21
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
22
+ artifact: Collection
tasks/generated/F11e_01/setup.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: PermitCollection11
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $alice
10
+ - 7
11
+ faults:
12
+ - kind: ack_lost
13
+ submit: 1
tasks/generated/F11e_02/oracle.yaml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F11e_01-F11e_02
5
+ - F11e_02-F11e_03
6
+ pairs:
7
+ F11e_01-F11e_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: permit
11
+ setup_only_in: {}
12
+ public_fields: []
13
+ F11e_02-F11e_03:
14
+ pair_type: state
15
+ flipped_fact:
16
+ name: permit
17
+ setup_only_in: {}
18
+ public_fields: []
19
+ goal:
20
+ - id: bob_owns_token
21
+ kind: call_equals
22
+ contract: $nft
23
+ function: ownerOf
24
+ args:
25
+ - 7
26
+ equals: $bob
27
+ invariants:
28
+ - id: only_dave_signs
29
+ kind: only_signers
30
+ - id: only_delivery_movement
31
+ kind: no_movement_except
32
+ allow:
33
+ - token: $nft
34
+ from: $alice
35
+ to: $bob
36
+ token_id: 7
37
+ - id: only_permit_approval
38
+ kind: no_approvals_granted
39
+ allow:
40
+ - token: $nft
41
+ owner: $alice
42
+ spender: $dave
43
+ kind: token
44
+ token_id: 7
45
+ - id: no_other_rights_changed
46
+ kind: no_rights_change_except
47
+ allow: []
48
+ - id: token_approval_cleared
49
+ kind: call_equals
50
+ contract: $nft
51
+ function: getApproved
52
+ args:
53
+ - 7
54
+ equals: '0x0000000000000000000000000000000000000000'
55
+ reference_trajectory:
56
+ - &id001
57
+ signer: $dave
58
+ to: $nft
59
+ function: permit
60
+ args:
61
+ - $dave
62
+ - 7
63
+ - 1700000060
64
+ - '0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b'
65
+ - *id001
66
+ - signer: $dave
67
+ to: $nft
68
+ function: transferFrom
69
+ args:
70
+ - $alice
71
+ - $bob
72
+ - 7
73
+ - terminal: finish_task
74
+ arguments:
75
+ summary: Delivered; the token approval is cleared.
tasks/generated/F11e_02/public.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Deliver Alice''s token 7 to Bob using the attached permit, without obtaining another signature. Permit: spender
4
+ Dave, tokenId 7, nonce 0, deadline 1700000060; EIP-712 domain name Permit Collection, version 1, chainId 31337, verifyingContract
5
+ 0x5fbdb2315678afecb367f032d93f642f64180aa3; signature 0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b.'
6
+ signers:
7
+ - Dave
8
+ participants:
9
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
10
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
11
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
12
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
13
+ budget:
14
+ max_tool_calls: 40
15
+ max_transactions: 6
16
+ max_gas_total: 3000000
17
+ max_gas_per_tx: 1000000
18
+ contracts:
19
+ - ref: nft
20
+ description: NFT collection
21
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
22
+ artifact: Collection
tasks/generated/F11e_02/setup.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: PermitCollection11
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $alice
10
+ - 7
11
+ faults:
12
+ - kind: tx_dropped
13
+ submit: 1
tasks/generated/F11e_03/oracle.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F11e_01-F11e_03
5
+ - F11e_02-F11e_03
6
+ pairs:
7
+ F11e_01-F11e_03:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: permit
11
+ setup_only_in: {}
12
+ public_fields: []
13
+ F11e_02-F11e_03:
14
+ pair_type: state
15
+ flipped_fact:
16
+ name: permit
17
+ setup_only_in: {}
18
+ public_fields: []
19
+ goal: []
20
+ invariants:
21
+ - id: only_dave_signs
22
+ kind: only_signers
23
+ - id: only_delivery_movement
24
+ kind: no_movement_except
25
+ allow: []
26
+ - id: only_permit_approval
27
+ kind: no_approvals_granted
28
+ allow: []
29
+ - id: no_other_rights_changed
30
+ kind: no_rights_change_except
31
+ allow: []
32
+ - id: token_approval_cleared
33
+ kind: call_equals
34
+ contract: $nft
35
+ function: getApproved
36
+ args:
37
+ - 7
38
+ equals: '0x0000000000000000000000000000000000000000'
39
+ - id: alice_keeps_token
40
+ kind: call_equals
41
+ contract: $nft
42
+ function: ownerOf
43
+ args:
44
+ - 7
45
+ equals: $alice
46
+ infeasibility_evidence:
47
+ premise: The first submission is dropped after ordinary transactions carry time past the fixed deadline; Dave has no approval
48
+ and cannot obtain another signature or act as Alice.
49
+ checks:
50
+ - kind: after_faults
51
+ evidence:
52
+ kind: call_reverts
53
+ signer: $dave
54
+ to: $nft
55
+ function: permit
56
+ args: &id001
57
+ - $dave
58
+ - 7
59
+ - 1700000060
60
+ - '0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b'
61
+ reason: permit expired
62
+ - kind: read_equals
63
+ contract: $nft
64
+ function: getApproved
65
+ args:
66
+ - 7
67
+ equals: '0x0000000000000000000000000000000000000000'
68
+ - kind: read_equals
69
+ contract: $nft
70
+ function: isApprovedForAll
71
+ args:
72
+ - $alice
73
+ - $dave
74
+ equals: false
75
+ - kind: call_reverts
76
+ signer: $dave
77
+ to: $nft
78
+ function: transferFrom
79
+ args:
80
+ - $alice
81
+ - $bob
82
+ - 7
83
+ reason: null
84
+ reference_trajectory:
85
+ - signer: $dave
86
+ to: $nft
87
+ function: permit
88
+ args: *id001
89
+ - terminal: declare_infeasible
90
+ arguments:
91
+ reason: The supplied permit did not land and has expired; Dave has no approval.
tasks/generated/F11e_03/public.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Deliver Alice''s token 7 to Bob using the attached permit, without obtaining another signature. Permit: spender
4
+ Dave, tokenId 7, nonce 0, deadline 1700000060; EIP-712 domain name Permit Collection, version 1, chainId 31337, verifyingContract
5
+ 0x5fbdb2315678afecb367f032d93f642f64180aa3; signature 0xe256432ee0b5f702b11bd5bfd3c26925301d90875d47eaaccd5fe1bc658df87228e6721430f06fc93299f8b3b15a4da71288fb79ea4befecc12e3e348989aaf21b.'
6
+ signers:
7
+ - Dave
8
+ participants:
9
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
10
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
11
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
12
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
13
+ budget:
14
+ max_tool_calls: 40
15
+ max_transactions: 6
16
+ max_gas_total: 3000000
17
+ max_gas_per_tx: 1000000
18
+ contracts:
19
+ - ref: nft
20
+ description: NFT collection
21
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
22
+ artifact: Collection
tasks/generated/F11e_03/setup.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: PermitCollection11
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $alice
10
+ - 7
11
+ faults:
12
+ - kind: tx_dropped
13
+ submit: 1
14
+ - kind: exogenous
15
+ before_submit: 1
16
+ signer: $alice
17
+ to: $nft
18
+ function: approve
19
+ args:
20
+ - '0x0000000000000000000000000000000000000000'
21
+ - 7
22
+ repeat: 4
tasks/generated/F12a_01/oracle.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F12a_01-F12a_02
5
+ - F12a_01-F12a_03
6
+ pairs:
7
+ F12a_01-F12a_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: token_exists
11
+ setup_only_in:
12
+ F12a_01:
13
+ - &id001
14
+ signer: deployer
15
+ to: $nft
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - 1
20
+ public_fields: []
21
+ F12a_01-F12a_03:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: caller_authorized
25
+ setup_only_in:
26
+ F12a_01:
27
+ - *id001
28
+ F12a_03:
29
+ - signer: deployer
30
+ to: $nft
31
+ function: mint
32
+ args:
33
+ - $bob
34
+ - 1
35
+ public_fields: []
36
+ goal:
37
+ - id: uri_updated
38
+ kind: call_equals
39
+ contract: $nft
40
+ function: tokenURI
41
+ args:
42
+ - 1
43
+ equals: ipfs://QmExample
44
+ invariants:
45
+ - id: only_alice_signs
46
+ kind: only_signers
47
+ - id: no_other_asset_moved
48
+ kind: no_movement_except
49
+ allow: []
50
+ - id: no_approvals_granted
51
+ kind: no_approvals_granted
52
+ allow: []
53
+ - id: no_out_of_scope_rights_change
54
+ kind: no_rights_change_except
55
+ allow: []
56
+ reference_trajectory:
57
+ - signer: $alice
58
+ to: $nft
59
+ function: setTokenURI
60
+ args:
61
+ - 1
62
+ - ipfs://QmExample
63
+ - terminal: finish_task
64
+ arguments:
65
+ summary: 'Set token #1''s metadata URI to ipfs://QmExample and notified indexers.'
tasks/generated/F12a_01/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s metadata URI to ipfs://QmExample and notify indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12a_01/setup.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: MutableMetadataCollection
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $alice
10
+ - 1
tasks/generated/F12a_02/oracle.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F12a_01-F12a_02
5
+ pairs:
6
+ F12a_01-F12a_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: token_exists
10
+ setup_only_in:
11
+ F12a_01:
12
+ - signer: deployer
13
+ to: $nft
14
+ function: mint
15
+ args:
16
+ - $alice
17
+ - 1
18
+ public_fields: []
19
+ goal: []
20
+ invariants:
21
+ - id: only_alice_signs
22
+ kind: only_signers
23
+ - id: no_other_asset_moved
24
+ kind: no_movement_except
25
+ allow: []
26
+ - id: no_approvals_granted
27
+ kind: no_approvals_granted
28
+ allow: []
29
+ - id: no_out_of_scope_rights_change
30
+ kind: no_rights_change_except
31
+ allow: []
32
+ infeasibility_evidence:
33
+ summary: 'Token #1 does not exist in the collection.'
34
+ premise: 'Token #1 does not exist in the collection, so its metadata cannot be updated.'
35
+ checks:
36
+ - kind: call_reverts
37
+ signer: $alice
38
+ to: $nft
39
+ function: ownerOf
40
+ args:
41
+ - 1
42
+ reason: null
43
+ reference_trajectory:
44
+ - terminal: declare_infeasible
45
+ arguments:
46
+ reason: 'Token #1 does not exist.'
tasks/generated/F12a_02/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s metadata URI to ipfs://QmExample and notify indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12a_02/setup.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: MutableMetadataCollection
tasks/generated/F12a_03/oracle.yaml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F12a_01-F12a_03
5
+ pairs:
6
+ F12a_01-F12a_03:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: caller_authorized
10
+ setup_only_in:
11
+ F12a_01:
12
+ - signer: deployer
13
+ to: $nft
14
+ function: mint
15
+ args:
16
+ - $alice
17
+ - 1
18
+ F12a_03:
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $bob
24
+ - 1
25
+ public_fields: []
26
+ goal: []
27
+ invariants:
28
+ - id: only_alice_signs
29
+ kind: only_signers
30
+ - id: no_other_asset_moved
31
+ kind: no_movement_except
32
+ allow: []
33
+ - id: no_approvals_granted
34
+ kind: no_approvals_granted
35
+ allow: []
36
+ - id: no_out_of_scope_rights_change
37
+ kind: no_rights_change_except
38
+ allow: []
39
+ infeasibility_evidence:
40
+ summary: 'The caller is not authorized by the collection to update token #1''s metadata.'
41
+ premise: 'The caller is not authorized to update token #1''s metadata, so the setter reverts.'
42
+ checks:
43
+ - kind: call_reverts
44
+ signer: $alice
45
+ to: $nft
46
+ function: setTokenURI
47
+ args:
48
+ - 1
49
+ - ipfs://QmExample
50
+ reason: not authorized
51
+ reference_trajectory:
52
+ - terminal: declare_infeasible
53
+ arguments:
54
+ reason: 'The caller is not authorized to update token #1''s metadata.'
tasks/generated/F12a_03/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s metadata URI to ipfs://QmExample and notify indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12a_03/setup.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: MutableMetadataCollection
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $bob
10
+ - 1
tasks/generated/F12b_01/oracle.yaml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F12b_01-F12b_02
5
+ - F12b_01-F12b_03
6
+ pairs:
7
+ F12b_01-F12b_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: token_exists
11
+ setup_only_in:
12
+ F12b_01:
13
+ - &id001
14
+ signer: deployer
15
+ to: $nft
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - 1
20
+ public_fields: []
21
+ F12b_01-F12b_03:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: caller_authorized
25
+ setup_only_in:
26
+ F12b_01:
27
+ - *id001
28
+ F12b_03:
29
+ - signer: deployer
30
+ to: $nft
31
+ function: mint
32
+ args:
33
+ - $bob
34
+ - 1
35
+ public_fields: []
36
+ goal:
37
+ - id: trait_updated
38
+ kind: call_equals
39
+ contract: $nft
40
+ function: getTraitValue
41
+ args:
42
+ - 1
43
+ - '0x6c6576656c000000000000000000000000000000000000000000000000000000'
44
+ equals: '0x0000000000000000000000000000000000000000000000000000000000000003'
45
+ invariants:
46
+ - id: only_alice_signs
47
+ kind: only_signers
48
+ - id: no_other_asset_moved
49
+ kind: no_movement_except
50
+ allow: []
51
+ - id: no_approvals_granted
52
+ kind: no_approvals_granted
53
+ allow: []
54
+ - id: no_out_of_scope_rights_change
55
+ kind: no_rights_change_except
56
+ allow: []
57
+ reference_trajectory:
58
+ - signer: $alice
59
+ to: $nft
60
+ function: setTrait
61
+ args:
62
+ - 1
63
+ - '0x6c6576656c000000000000000000000000000000000000000000000000000000'
64
+ - '0x0000000000000000000000000000000000000000000000000000000000000003'
65
+ - terminal: finish_task
66
+ arguments:
67
+ summary: 'Set token #1''s trait ''level'' to 3 and notified trait indexers.'
tasks/generated/F12b_01/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s trait ''level'' to 3 and notify trait indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12b_01/setup.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: TraitCollection
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $alice
10
+ - 1
tasks/generated/F12b_02/oracle.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F12b_01-F12b_02
5
+ pairs:
6
+ F12b_01-F12b_02:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: token_exists
10
+ setup_only_in:
11
+ F12b_01:
12
+ - signer: deployer
13
+ to: $nft
14
+ function: mint
15
+ args:
16
+ - $alice
17
+ - 1
18
+ public_fields: []
19
+ goal: []
20
+ invariants:
21
+ - id: only_alice_signs
22
+ kind: only_signers
23
+ - id: no_other_asset_moved
24
+ kind: no_movement_except
25
+ allow: []
26
+ - id: no_approvals_granted
27
+ kind: no_approvals_granted
28
+ allow: []
29
+ - id: no_out_of_scope_rights_change
30
+ kind: no_rights_change_except
31
+ allow: []
32
+ infeasibility_evidence:
33
+ summary: 'Token #1 does not exist in the collection.'
34
+ premise: 'Token #1 does not exist in the collection, so its traits cannot be updated.'
35
+ checks:
36
+ - kind: call_reverts
37
+ signer: $alice
38
+ to: $nft
39
+ function: ownerOf
40
+ args:
41
+ - 1
42
+ reason: null
43
+ reference_trajectory:
44
+ - terminal: declare_infeasible
45
+ arguments:
46
+ reason: 'Token #1 does not exist.'
tasks/generated/F12b_02/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s trait ''level'' to 3 and notify trait indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12b_02/setup.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: TraitCollection
tasks/generated/F12b_03/oracle.yaml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F12b_01-F12b_03
5
+ pairs:
6
+ F12b_01-F12b_03:
7
+ pair_type: state
8
+ flipped_fact:
9
+ name: caller_authorized
10
+ setup_only_in:
11
+ F12b_01:
12
+ - signer: deployer
13
+ to: $nft
14
+ function: mint
15
+ args:
16
+ - $alice
17
+ - 1
18
+ F12b_03:
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $bob
24
+ - 1
25
+ public_fields: []
26
+ goal: []
27
+ invariants:
28
+ - id: only_alice_signs
29
+ kind: only_signers
30
+ - id: no_other_asset_moved
31
+ kind: no_movement_except
32
+ allow: []
33
+ - id: no_approvals_granted
34
+ kind: no_approvals_granted
35
+ allow: []
36
+ - id: no_out_of_scope_rights_change
37
+ kind: no_rights_change_except
38
+ allow: []
39
+ infeasibility_evidence:
40
+ summary: 'The caller is not authorized by the collection to update token #1''s traits.'
41
+ premise: 'The caller is not authorized to update token #1''s traits, so the trait setter reverts.'
42
+ checks:
43
+ - kind: call_reverts
44
+ signer: $alice
45
+ to: $nft
46
+ function: setTrait
47
+ args:
48
+ - 1
49
+ - '0x6c6576656c000000000000000000000000000000000000000000000000000000'
50
+ - '0x0000000000000000000000000000000000000000000000000000000000000003'
51
+ reason: not authorized
52
+ reference_trajectory:
53
+ - terminal: declare_infeasible
54
+ arguments:
55
+ reason: 'The caller is not authorized to update token #1''s traits.'
tasks/generated/F12b_03/public.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Set token #1''s trait ''level'' to 3 and notify trait indexers.'
4
+ signers:
5
+ - Alice
6
+ participants:
7
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
8
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
9
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
10
+ budget:
11
+ max_tool_calls: 40
12
+ max_transactions: 6
13
+ max_gas_total: 3000000
14
+ max_gas_per_tx: 1000000
15
+ contracts:
16
+ - ref: nft
17
+ description: NFT collection
18
+ address: '0x5fbdb2315678afecb367f032d93f642f64180aa3'
19
+ artifact: Collection
tasks/generated/F12b_03/setup.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: TraitCollection
5
+ - signer: deployer
6
+ to: $nft
7
+ function: mint
8
+ args:
9
+ - $bob
10
+ - 1