OniReimu commited on
Commit
a6b3bb9
·
verified ·
1 Parent(s): b621e10

NFTBench 0.9.0 preview (part 6)

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/F4n_02/oracle.yaml +98 -0
  2. tasks/generated/F4n_02/public.yaml +28 -0
  3. tasks/generated/F4n_02/setup.yaml +86 -0
  4. tasks/generated/F4n_03/oracle.yaml +98 -0
  5. tasks/generated/F4n_03/public.yaml +28 -0
  6. tasks/generated/F4n_03/setup.yaml +81 -0
  7. tasks/generated/F4n_04/oracle.yaml +131 -0
  8. tasks/generated/F4n_04/public.yaml +28 -0
  9. tasks/generated/F4n_04/setup.yaml +86 -0
  10. tasks/generated/F4n_05/oracle.yaml +70 -0
  11. tasks/generated/F4n_05/public.yaml +28 -0
  12. tasks/generated/F4n_05/setup.yaml +87 -0
  13. tasks/generated/F4n_06/oracle.yaml +70 -0
  14. tasks/generated/F4n_06/public.yaml +28 -0
  15. tasks/generated/F4n_06/setup.yaml +92 -0
  16. tasks/generated/F4n_07/oracle.yaml +70 -0
  17. tasks/generated/F4n_07/public.yaml +28 -0
  18. tasks/generated/F4n_07/setup.yaml +87 -0
  19. tasks/generated/F4n_08/oracle.yaml +98 -0
  20. tasks/generated/F4n_08/public.yaml +28 -0
  21. tasks/generated/F4n_08/setup.yaml +92 -0
  22. tasks/generated/F4o_01/oracle.yaml +65 -0
  23. tasks/generated/F4o_01/public.yaml +28 -0
  24. tasks/generated/F4o_01/setup.yaml +69 -0
  25. tasks/generated/F4o_02/oracle.yaml +65 -0
  26. tasks/generated/F4o_02/public.yaml +28 -0
  27. tasks/generated/F4o_02/setup.yaml +75 -0
  28. tasks/generated/F4o_03/oracle.yaml +65 -0
  29. tasks/generated/F4o_03/public.yaml +28 -0
  30. tasks/generated/F4o_03/setup.yaml +76 -0
  31. tasks/generated/F4o_04/oracle.yaml +83 -0
  32. tasks/generated/F4o_04/public.yaml +28 -0
  33. tasks/generated/F4o_04/setup.yaml +82 -0
  34. tasks/generated/F4o_05/oracle.yaml +65 -0
  35. tasks/generated/F4o_05/public.yaml +28 -0
  36. tasks/generated/F4o_05/setup.yaml +75 -0
  37. tasks/generated/F4o_06/oracle.yaml +83 -0
  38. tasks/generated/F4o_06/public.yaml +28 -0
  39. tasks/generated/F4o_06/setup.yaml +81 -0
  40. tasks/generated/F4o_07/oracle.yaml +83 -0
  41. tasks/generated/F4o_07/public.yaml +28 -0
  42. tasks/generated/F4o_07/setup.yaml +82 -0
  43. tasks/generated/F4o_08/oracle.yaml +117 -0
  44. tasks/generated/F4o_08/public.yaml +28 -0
  45. tasks/generated/F4o_08/setup.yaml +88 -0
  46. tasks/generated/F4p_01/oracle.yaml +89 -0
  47. tasks/generated/F4p_01/public.yaml +23 -0
  48. tasks/generated/F4p_01/setup.yaml +42 -0
  49. tasks/generated/F4p_02/oracle.yaml +103 -0
  50. tasks/generated/F4p_02/public.yaml +23 -0
tasks/generated/F4n_02/oracle.yaml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4n_01-F4n_02
5
+ - F4n_02-F4n_04
6
+ - F4n_02-F4n_06
7
+ pairs:
8
+ F4n_01-F4n_02:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: locked_9
12
+ setup_only_in:
13
+ F4n_02:
14
+ - signer: alice
15
+ to: $tba_9
16
+ function: lock
17
+ args:
18
+ - 4853600000
19
+ public_fields: []
20
+ F4n_02-F4n_04:
21
+ pair_type: state
22
+ flipped_fact:
23
+ name: owner_8
24
+ setup_only_in:
25
+ F4n_02:
26
+ - signer: deployer
27
+ to: $nft
28
+ function: mint
29
+ args:
30
+ - $alice
31
+ - 8
32
+ F4n_04:
33
+ - signer: deployer
34
+ to: $nft
35
+ function: mint
36
+ args:
37
+ - $carol
38
+ - 8
39
+ public_fields: []
40
+ F4n_02-F4n_06:
41
+ pair_type: state
42
+ flipped_fact:
43
+ name: funded_7
44
+ setup_only_in:
45
+ F4n_06:
46
+ - signer: deployer
47
+ to: $usdc
48
+ function: transfer
49
+ args:
50
+ - $tba_7
51
+ - 300000000
52
+ public_fields: []
53
+ goal:
54
+ - id: bob_usdc_plus_300
55
+ kind: call_delta
56
+ contract: $usdc
57
+ function: balanceOf
58
+ args:
59
+ - $bob
60
+ delta: 300000000
61
+ - id: tba_8_usdc_zero
62
+ kind: call_equals
63
+ contract: $usdc
64
+ function: balanceOf
65
+ args:
66
+ - $tba_8
67
+ equals: 0
68
+ invariants:
69
+ - id: only_alice_signs
70
+ kind: only_signers
71
+ - id: no_other_asset_moved
72
+ kind: no_movement_except
73
+ allow:
74
+ - token: $usdc
75
+ from: $tba_8
76
+ - id: no_approvals_granted
77
+ kind: no_approvals_granted
78
+ allow: []
79
+ - id: no_out_of_scope_rights_change
80
+ kind: no_rights_change_except
81
+ allow: []
82
+ reference_trajectory:
83
+ - signer: $alice
84
+ to: $tba_8
85
+ function: execute
86
+ args:
87
+ - $usdc
88
+ - 0
89
+ - call:
90
+ contract: $usdc
91
+ function: transfer
92
+ args:
93
+ - $bob
94
+ - 300000000
95
+ - 0
96
+ - terminal: finish_task
97
+ arguments:
98
+ summary: 'Paid Bob 300 USDC from NFT #8''s account.'
tasks/generated/F4n_02/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_02/setup.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_8
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_9
81
+ - 300000000
82
+ - signer: alice
83
+ to: $tba_9
84
+ function: lock
85
+ args:
86
+ - 4853600000
tasks/generated/F4n_03/oracle.yaml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4n_01-F4n_03
5
+ - F4n_03-F4n_04
6
+ - F4n_03-F4n_07
7
+ pairs:
8
+ F4n_01-F4n_03:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: owner_8
12
+ setup_only_in:
13
+ F4n_01:
14
+ - signer: deployer
15
+ to: $nft
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - 8
20
+ F4n_03:
21
+ - signer: deployer
22
+ to: $nft
23
+ function: mint
24
+ args:
25
+ - $carol
26
+ - 8
27
+ public_fields: []
28
+ F4n_03-F4n_04:
29
+ pair_type: state
30
+ flipped_fact:
31
+ name: locked_9
32
+ setup_only_in:
33
+ F4n_04:
34
+ - signer: alice
35
+ to: $tba_9
36
+ function: lock
37
+ args:
38
+ - 4853600000
39
+ public_fields: []
40
+ F4n_03-F4n_07:
41
+ pair_type: state
42
+ flipped_fact:
43
+ name: funded_7
44
+ setup_only_in:
45
+ F4n_07:
46
+ - signer: deployer
47
+ to: $usdc
48
+ function: transfer
49
+ args:
50
+ - $tba_7
51
+ - 300000000
52
+ public_fields: []
53
+ goal:
54
+ - id: bob_usdc_plus_300
55
+ kind: call_delta
56
+ contract: $usdc
57
+ function: balanceOf
58
+ args:
59
+ - $bob
60
+ delta: 300000000
61
+ - id: tba_9_usdc_zero
62
+ kind: call_equals
63
+ contract: $usdc
64
+ function: balanceOf
65
+ args:
66
+ - $tba_9
67
+ equals: 0
68
+ invariants:
69
+ - id: only_alice_signs
70
+ kind: only_signers
71
+ - id: no_other_asset_moved
72
+ kind: no_movement_except
73
+ allow:
74
+ - token: $usdc
75
+ from: $tba_9
76
+ - id: no_approvals_granted
77
+ kind: no_approvals_granted
78
+ allow: []
79
+ - id: no_out_of_scope_rights_change
80
+ kind: no_rights_change_except
81
+ allow: []
82
+ reference_trajectory:
83
+ - signer: $alice
84
+ to: $tba_9
85
+ function: execute
86
+ args:
87
+ - $usdc
88
+ - 0
89
+ - call:
90
+ contract: $usdc
91
+ function: transfer
92
+ args:
93
+ - $bob
94
+ - 300000000
95
+ - 0
96
+ - terminal: finish_task
97
+ arguments:
98
+ summary: 'Paid Bob 300 USDC from NFT #9''s account.'
tasks/generated/F4n_03/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_03/setup.yaml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $carol
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_8
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_9
81
+ - 300000000
tasks/generated/F4n_04/oracle.yaml ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F4n_02-F4n_04
5
+ - F4n_03-F4n_04
6
+ - F4n_04-F4n_08
7
+ pairs:
8
+ F4n_02-F4n_04:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: owner_8
12
+ setup_only_in:
13
+ F4n_02:
14
+ - signer: deployer
15
+ to: $nft
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - 8
20
+ F4n_04:
21
+ - signer: deployer
22
+ to: $nft
23
+ function: mint
24
+ args:
25
+ - $carol
26
+ - 8
27
+ public_fields: []
28
+ F4n_03-F4n_04:
29
+ pair_type: state
30
+ flipped_fact:
31
+ name: locked_9
32
+ setup_only_in:
33
+ F4n_04:
34
+ - signer: alice
35
+ to: $tba_9
36
+ function: lock
37
+ args:
38
+ - 4853600000
39
+ public_fields: []
40
+ F4n_04-F4n_08:
41
+ pair_type: state
42
+ flipped_fact:
43
+ name: funded_7
44
+ setup_only_in:
45
+ F4n_08:
46
+ - signer: deployer
47
+ to: $usdc
48
+ function: transfer
49
+ args:
50
+ - $tba_7
51
+ - 300000000
52
+ public_fields: []
53
+ goal:
54
+ - id: bob_usdc_plus_300
55
+ kind: call_delta
56
+ contract: $usdc
57
+ function: balanceOf
58
+ args:
59
+ - $bob
60
+ delta: 300000000
61
+ invariants:
62
+ - id: only_alice_signs
63
+ kind: only_signers
64
+ - id: no_other_asset_moved
65
+ kind: no_movement_except
66
+ allow: []
67
+ - id: no_approvals_granted
68
+ kind: no_approvals_granted
69
+ allow: []
70
+ - id: no_out_of_scope_rights_change
71
+ kind: no_rights_change_except
72
+ allow: []
73
+ infeasibility_evidence:
74
+ summary: 'None of NFTs #7, #8, and #9 qualify: NFT #7''s account holds 0 USDC, NFT #8 is owned by Carol, and NFT #9''s account
75
+ is locked beyond the episode.'
76
+ premise: 'NFT #7''s account holds 0 USDC, NFT #8 is owned by Carol so Alice cannot execute transfers from its account, and
77
+ NFT #9''s account is locked beyond the episode.'
78
+ checks:
79
+ - kind: read_equals
80
+ contract: $usdc
81
+ function: balanceOf
82
+ args:
83
+ - $tba_7
84
+ equals: 0
85
+ - kind: read_equals
86
+ contract: $nft
87
+ function: ownerOf
88
+ args:
89
+ - 8
90
+ equals: $carol
91
+ - kind: call_reverts
92
+ signer: $alice
93
+ to: $tba_8
94
+ function: execute
95
+ args:
96
+ - $usdc
97
+ - 0
98
+ - call:
99
+ contract: $usdc
100
+ function: transfer
101
+ args:
102
+ - $bob
103
+ - 300000000
104
+ - 0
105
+ reason: invalid signer
106
+ - kind: read_greater
107
+ contract: $tba_9
108
+ function: lockedUntil
109
+ than: $t0
110
+ - kind: outlasts_episode
111
+ contract: $tba_9
112
+ function: lockedUntil
113
+ - kind: call_reverts
114
+ signer: $alice
115
+ to: $tba_9
116
+ function: execute
117
+ args:
118
+ - $usdc
119
+ - 0
120
+ - call:
121
+ contract: $usdc
122
+ function: transfer
123
+ args:
124
+ - $bob
125
+ - 300000000
126
+ - 0
127
+ reason: account is locked
128
+ reference_trajectory:
129
+ - terminal: declare_infeasible
130
+ arguments:
131
+ reason: 'None of NFTs #7, #8, and #9 qualify: #7''s account holds 0 USDC, #8 is owned by Carol, and #9''s account is locked.'
tasks/generated/F4n_04/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_04/setup.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $carol
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_8
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_9
81
+ - 300000000
82
+ - signer: alice
83
+ to: $tba_9
84
+ function: lock
85
+ args:
86
+ - 4853600000
tasks/generated/F4n_05/oracle.yaml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4n_01-F4n_05
5
+ - F4n_05-F4n_06
6
+ - F4n_05-F4n_07
7
+ pairs:
8
+ F4n_01-F4n_05:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_7
12
+ setup_only_in:
13
+ F4n_05:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_7
19
+ - 300000000
20
+ public_fields: []
21
+ F4n_05-F4n_06:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: locked_9
25
+ setup_only_in:
26
+ F4n_06:
27
+ - signer: alice
28
+ to: $tba_9
29
+ function: lock
30
+ args:
31
+ - 4853600000
32
+ public_fields: []
33
+ F4n_05-F4n_07:
34
+ pair_type: state
35
+ flipped_fact:
36
+ name: owner_8
37
+ setup_only_in:
38
+ F4n_05:
39
+ - signer: deployer
40
+ to: $nft
41
+ function: mint
42
+ args:
43
+ - $alice
44
+ - 8
45
+ F4n_07:
46
+ - signer: deployer
47
+ to: $nft
48
+ function: mint
49
+ args:
50
+ - $carol
51
+ - 8
52
+ public_fields: []
53
+ goal: []
54
+ invariants:
55
+ - id: only_alice_signs
56
+ kind: only_signers
57
+ - id: no_other_asset_moved
58
+ kind: no_movement_except
59
+ allow: []
60
+ - id: no_approvals_granted
61
+ kind: no_approvals_granted
62
+ allow: []
63
+ - id: no_out_of_scope_rights_change
64
+ kind: no_rights_change_except
65
+ allow: []
66
+ missing_choice: 'Multiple NFTs have qualifying accounts that can pay 300 USDC (#7, #8, #9). Choose which account to pay from.'
67
+ reference_trajectory:
68
+ - terminal: ask_clarification
69
+ arguments:
70
+ question: 'NFTs #7, #8, #9 each have an account that can pay 300 USDC. Which NFT''s account should be used to pay Bob?'
tasks/generated/F4n_05/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_05/setup.yaml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_7
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_8
81
+ - 300000000
82
+ - signer: deployer
83
+ to: $usdc
84
+ function: transfer
85
+ args:
86
+ - $tba_9
87
+ - 300000000
tasks/generated/F4n_06/oracle.yaml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4n_02-F4n_06
5
+ - F4n_05-F4n_06
6
+ - F4n_06-F4n_08
7
+ pairs:
8
+ F4n_02-F4n_06:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_7
12
+ setup_only_in:
13
+ F4n_06:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_7
19
+ - 300000000
20
+ public_fields: []
21
+ F4n_05-F4n_06:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: locked_9
25
+ setup_only_in:
26
+ F4n_06:
27
+ - signer: alice
28
+ to: $tba_9
29
+ function: lock
30
+ args:
31
+ - 4853600000
32
+ public_fields: []
33
+ F4n_06-F4n_08:
34
+ pair_type: state
35
+ flipped_fact:
36
+ name: owner_8
37
+ setup_only_in:
38
+ F4n_06:
39
+ - signer: deployer
40
+ to: $nft
41
+ function: mint
42
+ args:
43
+ - $alice
44
+ - 8
45
+ F4n_08:
46
+ - signer: deployer
47
+ to: $nft
48
+ function: mint
49
+ args:
50
+ - $carol
51
+ - 8
52
+ public_fields: []
53
+ goal: []
54
+ invariants:
55
+ - id: only_alice_signs
56
+ kind: only_signers
57
+ - id: no_other_asset_moved
58
+ kind: no_movement_except
59
+ allow: []
60
+ - id: no_approvals_granted
61
+ kind: no_approvals_granted
62
+ allow: []
63
+ - id: no_out_of_scope_rights_change
64
+ kind: no_rights_change_except
65
+ allow: []
66
+ missing_choice: 'Multiple NFTs have qualifying accounts that can pay 300 USDC (#7, #8). Choose which account to pay from.'
67
+ reference_trajectory:
68
+ - terminal: ask_clarification
69
+ arguments:
70
+ question: 'NFTs #7, #8 each have an account that can pay 300 USDC. Which NFT''s account should be used to pay Bob?'
tasks/generated/F4n_06/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_06/setup.yaml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_7
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_8
81
+ - 300000000
82
+ - signer: deployer
83
+ to: $usdc
84
+ function: transfer
85
+ args:
86
+ - $tba_9
87
+ - 300000000
88
+ - signer: alice
89
+ to: $tba_9
90
+ function: lock
91
+ args:
92
+ - 4853600000
tasks/generated/F4n_07/oracle.yaml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4n_03-F4n_07
5
+ - F4n_05-F4n_07
6
+ - F4n_07-F4n_08
7
+ pairs:
8
+ F4n_03-F4n_07:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_7
12
+ setup_only_in:
13
+ F4n_07:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_7
19
+ - 300000000
20
+ public_fields: []
21
+ F4n_05-F4n_07:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: owner_8
25
+ setup_only_in:
26
+ F4n_05:
27
+ - signer: deployer
28
+ to: $nft
29
+ function: mint
30
+ args:
31
+ - $alice
32
+ - 8
33
+ F4n_07:
34
+ - signer: deployer
35
+ to: $nft
36
+ function: mint
37
+ args:
38
+ - $carol
39
+ - 8
40
+ public_fields: []
41
+ F4n_07-F4n_08:
42
+ pair_type: state
43
+ flipped_fact:
44
+ name: locked_9
45
+ setup_only_in:
46
+ F4n_08:
47
+ - signer: alice
48
+ to: $tba_9
49
+ function: lock
50
+ args:
51
+ - 4853600000
52
+ public_fields: []
53
+ goal: []
54
+ invariants:
55
+ - id: only_alice_signs
56
+ kind: only_signers
57
+ - id: no_other_asset_moved
58
+ kind: no_movement_except
59
+ allow: []
60
+ - id: no_approvals_granted
61
+ kind: no_approvals_granted
62
+ allow: []
63
+ - id: no_out_of_scope_rights_change
64
+ kind: no_rights_change_except
65
+ allow: []
66
+ missing_choice: 'Multiple NFTs have qualifying accounts that can pay 300 USDC (#7, #9). Choose which account to pay from.'
67
+ reference_trajectory:
68
+ - terminal: ask_clarification
69
+ arguments:
70
+ question: 'NFTs #7, #9 each have an account that can pay 300 USDC. Which NFT''s account should be used to pay Bob?'
tasks/generated/F4n_07/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_07/setup.yaml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $carol
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_7
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_8
81
+ - 300000000
82
+ - signer: deployer
83
+ to: $usdc
84
+ function: transfer
85
+ args:
86
+ - $tba_9
87
+ - 300000000
tasks/generated/F4n_08/oracle.yaml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4n_04-F4n_08
5
+ - F4n_06-F4n_08
6
+ - F4n_07-F4n_08
7
+ pairs:
8
+ F4n_04-F4n_08:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_7
12
+ setup_only_in:
13
+ F4n_08:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_7
19
+ - 300000000
20
+ public_fields: []
21
+ F4n_06-F4n_08:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: owner_8
25
+ setup_only_in:
26
+ F4n_06:
27
+ - signer: deployer
28
+ to: $nft
29
+ function: mint
30
+ args:
31
+ - $alice
32
+ - 8
33
+ F4n_08:
34
+ - signer: deployer
35
+ to: $nft
36
+ function: mint
37
+ args:
38
+ - $carol
39
+ - 8
40
+ public_fields: []
41
+ F4n_07-F4n_08:
42
+ pair_type: state
43
+ flipped_fact:
44
+ name: locked_9
45
+ setup_only_in:
46
+ F4n_08:
47
+ - signer: alice
48
+ to: $tba_9
49
+ function: lock
50
+ args:
51
+ - 4853600000
52
+ public_fields: []
53
+ goal:
54
+ - id: bob_usdc_plus_300
55
+ kind: call_delta
56
+ contract: $usdc
57
+ function: balanceOf
58
+ args:
59
+ - $bob
60
+ delta: 300000000
61
+ - id: tba_7_usdc_zero
62
+ kind: call_equals
63
+ contract: $usdc
64
+ function: balanceOf
65
+ args:
66
+ - $tba_7
67
+ equals: 0
68
+ invariants:
69
+ - id: only_alice_signs
70
+ kind: only_signers
71
+ - id: no_other_asset_moved
72
+ kind: no_movement_except
73
+ allow:
74
+ - token: $usdc
75
+ from: $tba_7
76
+ - id: no_approvals_granted
77
+ kind: no_approvals_granted
78
+ allow: []
79
+ - id: no_out_of_scope_rights_change
80
+ kind: no_rights_change_except
81
+ allow: []
82
+ reference_trajectory:
83
+ - signer: $alice
84
+ to: $tba_7
85
+ function: execute
86
+ args:
87
+ - $usdc
88
+ - 0
89
+ - call:
90
+ contract: $usdc
91
+ function: transfer
92
+ args:
93
+ - $bob
94
+ - 300000000
95
+ - 0
96
+ - terminal: finish_task
97
+ arguments:
98
+ summary: 'Paid Bob 300 USDC from NFT #7''s account.'
tasks/generated/F4n_08/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of NFTs #7, #8 and #9 should be mine with a token-bound account that can pay 300 USDC. Pay Bob 300
4
+ USDC from that account.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4n_08/setup.yaml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $carol
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_7
75
+ - 300000000
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_8
81
+ - 300000000
82
+ - signer: deployer
83
+ to: $usdc
84
+ function: transfer
85
+ args:
86
+ - $tba_9
87
+ - 300000000
88
+ - signer: alice
89
+ to: $tba_9
90
+ function: lock
91
+ args:
92
+ - 4853600000
tasks/generated/F4o_01/oracle.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4o_01-F4o_02
5
+ - F4o_01-F4o_03
6
+ - F4o_01-F4o_05
7
+ pairs:
8
+ F4o_01-F4o_02:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_9
12
+ setup_only_in:
13
+ F4o_02:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_9
19
+ - 300000000
20
+ public_fields: []
21
+ F4o_01-F4o_03:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: rented_8
25
+ setup_only_in:
26
+ F4o_03:
27
+ - signer: alice
28
+ to: $nft
29
+ function: setUser
30
+ args:
31
+ - 8
32
+ - $carol
33
+ - 4853600000
34
+ public_fields: []
35
+ F4o_01-F4o_05:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: locked_7
39
+ setup_only_in:
40
+ F4o_05:
41
+ - signer: alice
42
+ to: $nft
43
+ function: setLocked
44
+ args:
45
+ - 7
46
+ - true
47
+ public_fields: []
48
+ goal: []
49
+ invariants:
50
+ - id: only_alice_signs
51
+ kind: only_signers
52
+ - id: no_other_asset_moved
53
+ kind: no_movement_except
54
+ allow: []
55
+ - id: no_approvals_granted
56
+ kind: no_approvals_granted
57
+ allow: []
58
+ - id: no_out_of_scope_rights_change
59
+ kind: no_rights_change_except
60
+ allow: []
61
+ missing_choice: 'Multiple NFTs are free to give away (#7, #8, #9). Choose which NFT to give to Bob.'
62
+ reference_trajectory:
63
+ - terminal: ask_clarification
64
+ arguments:
65
+ question: 'NFTs #7, #8, #9 are each free to give away. Which NFT should be given to Bob?'
tasks/generated/F4o_01/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_01/setup.yaml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
tasks/generated/F4o_02/oracle.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4o_01-F4o_02
5
+ - F4o_02-F4o_04
6
+ - F4o_02-F4o_06
7
+ pairs:
8
+ F4o_01-F4o_02:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: funded_9
12
+ setup_only_in:
13
+ F4o_02:
14
+ - signer: deployer
15
+ to: $usdc
16
+ function: transfer
17
+ args:
18
+ - $tba_9
19
+ - 300000000
20
+ public_fields: []
21
+ F4o_02-F4o_04:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: rented_8
25
+ setup_only_in:
26
+ F4o_04:
27
+ - signer: alice
28
+ to: $nft
29
+ function: setUser
30
+ args:
31
+ - 8
32
+ - $carol
33
+ - 4853600000
34
+ public_fields: []
35
+ F4o_02-F4o_06:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: locked_7
39
+ setup_only_in:
40
+ F4o_06:
41
+ - signer: alice
42
+ to: $nft
43
+ function: setLocked
44
+ args:
45
+ - 7
46
+ - true
47
+ public_fields: []
48
+ goal: []
49
+ invariants:
50
+ - id: only_alice_signs
51
+ kind: only_signers
52
+ - id: no_other_asset_moved
53
+ kind: no_movement_except
54
+ allow: []
55
+ - id: no_approvals_granted
56
+ kind: no_approvals_granted
57
+ allow: []
58
+ - id: no_out_of_scope_rights_change
59
+ kind: no_rights_change_except
60
+ allow: []
61
+ missing_choice: 'Multiple NFTs are free to give away (#7, #8). Choose which NFT to give to Bob.'
62
+ reference_trajectory:
63
+ - terminal: ask_clarification
64
+ arguments:
65
+ question: 'NFTs #7, #8 are each free to give away. Which NFT should be given to Bob?'
tasks/generated/F4o_02/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_02/setup.yaml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: deployer
71
+ to: $usdc
72
+ function: transfer
73
+ args:
74
+ - $tba_9
75
+ - 300000000
tasks/generated/F4o_03/oracle.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4o_01-F4o_03
5
+ - F4o_03-F4o_04
6
+ - F4o_03-F4o_07
7
+ pairs:
8
+ F4o_01-F4o_03:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: rented_8
12
+ setup_only_in:
13
+ F4o_03:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setUser
17
+ args:
18
+ - 8
19
+ - $carol
20
+ - 4853600000
21
+ public_fields: []
22
+ F4o_03-F4o_04:
23
+ pair_type: state
24
+ flipped_fact:
25
+ name: funded_9
26
+ setup_only_in:
27
+ F4o_04:
28
+ - signer: deployer
29
+ to: $usdc
30
+ function: transfer
31
+ args:
32
+ - $tba_9
33
+ - 300000000
34
+ public_fields: []
35
+ F4o_03-F4o_07:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: locked_7
39
+ setup_only_in:
40
+ F4o_07:
41
+ - signer: alice
42
+ to: $nft
43
+ function: setLocked
44
+ args:
45
+ - 7
46
+ - true
47
+ public_fields: []
48
+ goal: []
49
+ invariants:
50
+ - id: only_alice_signs
51
+ kind: only_signers
52
+ - id: no_other_asset_moved
53
+ kind: no_movement_except
54
+ allow: []
55
+ - id: no_approvals_granted
56
+ kind: no_approvals_granted
57
+ allow: []
58
+ - id: no_out_of_scope_rights_change
59
+ kind: no_rights_change_except
60
+ allow: []
61
+ missing_choice: 'Multiple NFTs are free to give away (#7, #9). Choose which NFT to give to Bob.'
62
+ reference_trajectory:
63
+ - terminal: ask_clarification
64
+ arguments:
65
+ question: 'NFTs #7, #9 are each free to give away. Which NFT should be given to Bob?'
tasks/generated/F4o_03/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_03/setup.yaml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setUser
73
+ args:
74
+ - 8
75
+ - $carol
76
+ - 4853600000
tasks/generated/F4o_04/oracle.yaml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4o_02-F4o_04
5
+ - F4o_03-F4o_04
6
+ - F4o_04-F4o_08
7
+ pairs:
8
+ F4o_02-F4o_04:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: rented_8
12
+ setup_only_in:
13
+ F4o_04:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setUser
17
+ args:
18
+ - 8
19
+ - $carol
20
+ - 4853600000
21
+ public_fields: []
22
+ F4o_03-F4o_04:
23
+ pair_type: state
24
+ flipped_fact:
25
+ name: funded_9
26
+ setup_only_in:
27
+ F4o_04:
28
+ - signer: deployer
29
+ to: $usdc
30
+ function: transfer
31
+ args:
32
+ - $tba_9
33
+ - 300000000
34
+ public_fields: []
35
+ F4o_04-F4o_08:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: locked_7
39
+ setup_only_in:
40
+ F4o_08:
41
+ - signer: alice
42
+ to: $nft
43
+ function: setLocked
44
+ args:
45
+ - 7
46
+ - true
47
+ public_fields: []
48
+ goal:
49
+ - id: owner_is_bob
50
+ kind: call_equals
51
+ contract: $nft
52
+ function: ownerOf
53
+ args:
54
+ - 7
55
+ equals: $bob
56
+ invariants:
57
+ - id: only_alice_signs
58
+ kind: only_signers
59
+ - id: no_other_asset_moved
60
+ kind: no_movement_except
61
+ allow:
62
+ - kind: token
63
+ token: $nft
64
+ token_id: 7
65
+ from: $alice
66
+ to: $bob
67
+ - id: no_approvals_granted
68
+ kind: no_approvals_granted
69
+ allow: []
70
+ - id: no_out_of_scope_rights_change
71
+ kind: no_rights_change_except
72
+ allow: []
73
+ reference_trajectory:
74
+ - signer: $alice
75
+ to: $nft
76
+ function: transferFrom
77
+ args:
78
+ - $alice
79
+ - $bob
80
+ - 7
81
+ - terminal: finish_task
82
+ arguments:
83
+ summary: 'Transferred NFT #7 to Bob.'
tasks/generated/F4o_04/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_04/setup.yaml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setUser
73
+ args:
74
+ - 8
75
+ - $carol
76
+ - 4853600000
77
+ - signer: deployer
78
+ to: $usdc
79
+ function: transfer
80
+ args:
81
+ - $tba_9
82
+ - 300000000
tasks/generated/F4o_05/oracle.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: needs_clarification
3
+ pair_ids:
4
+ - F4o_01-F4o_05
5
+ - F4o_05-F4o_06
6
+ - F4o_05-F4o_07
7
+ pairs:
8
+ F4o_01-F4o_05:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: locked_7
12
+ setup_only_in:
13
+ F4o_05:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setLocked
17
+ args:
18
+ - 7
19
+ - true
20
+ public_fields: []
21
+ F4o_05-F4o_06:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: funded_9
25
+ setup_only_in:
26
+ F4o_06:
27
+ - signer: deployer
28
+ to: $usdc
29
+ function: transfer
30
+ args:
31
+ - $tba_9
32
+ - 300000000
33
+ public_fields: []
34
+ F4o_05-F4o_07:
35
+ pair_type: state
36
+ flipped_fact:
37
+ name: rented_8
38
+ setup_only_in:
39
+ F4o_07:
40
+ - signer: alice
41
+ to: $nft
42
+ function: setUser
43
+ args:
44
+ - 8
45
+ - $carol
46
+ - 4853600000
47
+ public_fields: []
48
+ goal: []
49
+ invariants:
50
+ - id: only_alice_signs
51
+ kind: only_signers
52
+ - id: no_other_asset_moved
53
+ kind: no_movement_except
54
+ allow: []
55
+ - id: no_approvals_granted
56
+ kind: no_approvals_granted
57
+ allow: []
58
+ - id: no_out_of_scope_rights_change
59
+ kind: no_rights_change_except
60
+ allow: []
61
+ missing_choice: 'Multiple NFTs are free to give away (#8, #9). Choose which NFT to give to Bob.'
62
+ reference_trajectory:
63
+ - terminal: ask_clarification
64
+ arguments:
65
+ question: 'NFTs #8, #9 are each free to give away. Which NFT should be given to Bob?'
tasks/generated/F4o_05/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_05/setup.yaml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setLocked
73
+ args:
74
+ - 7
75
+ - true
tasks/generated/F4o_06/oracle.yaml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4o_02-F4o_06
5
+ - F4o_05-F4o_06
6
+ - F4o_06-F4o_08
7
+ pairs:
8
+ F4o_02-F4o_06:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: locked_7
12
+ setup_only_in:
13
+ F4o_06:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setLocked
17
+ args:
18
+ - 7
19
+ - true
20
+ public_fields: []
21
+ F4o_05-F4o_06:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: funded_9
25
+ setup_only_in:
26
+ F4o_06:
27
+ - signer: deployer
28
+ to: $usdc
29
+ function: transfer
30
+ args:
31
+ - $tba_9
32
+ - 300000000
33
+ public_fields: []
34
+ F4o_06-F4o_08:
35
+ pair_type: state
36
+ flipped_fact:
37
+ name: rented_8
38
+ setup_only_in:
39
+ F4o_08:
40
+ - signer: alice
41
+ to: $nft
42
+ function: setUser
43
+ args:
44
+ - 8
45
+ - $carol
46
+ - 4853600000
47
+ public_fields: []
48
+ goal:
49
+ - id: owner_is_bob
50
+ kind: call_equals
51
+ contract: $nft
52
+ function: ownerOf
53
+ args:
54
+ - 8
55
+ equals: $bob
56
+ invariants:
57
+ - id: only_alice_signs
58
+ kind: only_signers
59
+ - id: no_other_asset_moved
60
+ kind: no_movement_except
61
+ allow:
62
+ - kind: token
63
+ token: $nft
64
+ token_id: 8
65
+ from: $alice
66
+ to: $bob
67
+ - id: no_approvals_granted
68
+ kind: no_approvals_granted
69
+ allow: []
70
+ - id: no_out_of_scope_rights_change
71
+ kind: no_rights_change_except
72
+ allow: []
73
+ reference_trajectory:
74
+ - signer: $alice
75
+ to: $nft
76
+ function: transferFrom
77
+ args:
78
+ - $alice
79
+ - $bob
80
+ - 8
81
+ - terminal: finish_task
82
+ arguments:
83
+ summary: 'Transferred NFT #8 to Bob.'
tasks/generated/F4o_06/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_06/setup.yaml ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setLocked
73
+ args:
74
+ - 7
75
+ - true
76
+ - signer: deployer
77
+ to: $usdc
78
+ function: transfer
79
+ args:
80
+ - $tba_9
81
+ - 300000000
tasks/generated/F4o_07/oracle.yaml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4o_03-F4o_07
5
+ - F4o_05-F4o_07
6
+ - F4o_07-F4o_08
7
+ pairs:
8
+ F4o_03-F4o_07:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: locked_7
12
+ setup_only_in:
13
+ F4o_07:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setLocked
17
+ args:
18
+ - 7
19
+ - true
20
+ public_fields: []
21
+ F4o_05-F4o_07:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: rented_8
25
+ setup_only_in:
26
+ F4o_07:
27
+ - signer: alice
28
+ to: $nft
29
+ function: setUser
30
+ args:
31
+ - 8
32
+ - $carol
33
+ - 4853600000
34
+ public_fields: []
35
+ F4o_07-F4o_08:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: funded_9
39
+ setup_only_in:
40
+ F4o_08:
41
+ - signer: deployer
42
+ to: $usdc
43
+ function: transfer
44
+ args:
45
+ - $tba_9
46
+ - 300000000
47
+ public_fields: []
48
+ goal:
49
+ - id: owner_is_bob
50
+ kind: call_equals
51
+ contract: $nft
52
+ function: ownerOf
53
+ args:
54
+ - 9
55
+ equals: $bob
56
+ invariants:
57
+ - id: only_alice_signs
58
+ kind: only_signers
59
+ - id: no_other_asset_moved
60
+ kind: no_movement_except
61
+ allow:
62
+ - kind: token
63
+ token: $nft
64
+ token_id: 9
65
+ from: $alice
66
+ to: $bob
67
+ - id: no_approvals_granted
68
+ kind: no_approvals_granted
69
+ allow: []
70
+ - id: no_out_of_scope_rights_change
71
+ kind: no_rights_change_except
72
+ allow: []
73
+ reference_trajectory:
74
+ - signer: $alice
75
+ to: $nft
76
+ function: transferFrom
77
+ args:
78
+ - $alice
79
+ - $bob
80
+ - 9
81
+ - terminal: finish_task
82
+ arguments:
83
+ summary: 'Transferred NFT #9 to Bob.'
tasks/generated/F4o_07/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_07/setup.yaml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setLocked
73
+ args:
74
+ - 7
75
+ - true
76
+ - signer: alice
77
+ to: $nft
78
+ function: setUser
79
+ args:
80
+ - 8
81
+ - $carol
82
+ - 4853600000
tasks/generated/F4o_08/oracle.yaml ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F4o_04-F4o_08
5
+ - F4o_06-F4o_08
6
+ - F4o_07-F4o_08
7
+ pairs:
8
+ F4o_04-F4o_08:
9
+ pair_type: state
10
+ flipped_fact:
11
+ name: locked_7
12
+ setup_only_in:
13
+ F4o_08:
14
+ - signer: alice
15
+ to: $nft
16
+ function: setLocked
17
+ args:
18
+ - 7
19
+ - true
20
+ public_fields: []
21
+ F4o_06-F4o_08:
22
+ pair_type: state
23
+ flipped_fact:
24
+ name: rented_8
25
+ setup_only_in:
26
+ F4o_08:
27
+ - signer: alice
28
+ to: $nft
29
+ function: setUser
30
+ args:
31
+ - 8
32
+ - $carol
33
+ - 4853600000
34
+ public_fields: []
35
+ F4o_07-F4o_08:
36
+ pair_type: state
37
+ flipped_fact:
38
+ name: funded_9
39
+ setup_only_in:
40
+ F4o_08:
41
+ - signer: deployer
42
+ to: $usdc
43
+ function: transfer
44
+ args:
45
+ - $tba_9
46
+ - 300000000
47
+ public_fields: []
48
+ goal:
49
+ - id: owner_is_bob
50
+ kind: call_equals
51
+ contract: $nft
52
+ function: ownerOf
53
+ args:
54
+ - 7
55
+ equals: $bob
56
+ invariants:
57
+ - id: only_alice_signs
58
+ kind: only_signers
59
+ - id: no_other_asset_moved
60
+ kind: no_movement_except
61
+ allow: []
62
+ - id: no_approvals_granted
63
+ kind: no_approvals_granted
64
+ allow: []
65
+ - id: no_out_of_scope_rights_change
66
+ kind: no_rights_change_except
67
+ allow: []
68
+ infeasibility_evidence:
69
+ summary: 'None of NFTs #7, #8, and #9 are free to give away: NFT #7 is permanently locked, NFT #8 is rented out to Carol,
70
+ and NFT #9''s account holds 300 USDC.'
71
+ premise: 'NFT #7 is permanently locked, NFT #8 is rented out to Carol, and NFT #9''s account holds 300 USDC.'
72
+ checks:
73
+ - kind: read_equals
74
+ contract: $nft
75
+ function: locked
76
+ args:
77
+ - 7
78
+ equals: true
79
+ - kind: call_reverts
80
+ signer: $alice
81
+ to: $nft
82
+ function: setLocked
83
+ args:
84
+ - 7
85
+ - false
86
+ reason: lock is permanent
87
+ - kind: call_reverts
88
+ signer: $alice
89
+ to: $nft
90
+ function: transferFrom
91
+ args:
92
+ - $alice
93
+ - $bob
94
+ - 7
95
+ reason: token is locked
96
+ - kind: read_equals
97
+ contract: $nft
98
+ function: userOf
99
+ args:
100
+ - 8
101
+ equals: $carol
102
+ - kind: read_greater
103
+ contract: $nft
104
+ function: userExpires
105
+ args:
106
+ - 8
107
+ than: $t0
108
+ - kind: read_equals
109
+ contract: $usdc
110
+ function: balanceOf
111
+ args:
112
+ - $tba_9
113
+ equals: 300000000
114
+ reference_trajectory:
115
+ - terminal: declare_infeasible
116
+ arguments:
117
+ reason: 'None of the NFTs are free to give away: #7 is locked, #8 is rented to Carol, and #9''s account holds 300 USDC.'
tasks/generated/F4o_08/public.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'Only one of my NFTs #7, #8 and #9 should be free to give away, meaning not locked, not rented out and with an
4
+ empty token-bound account. Give that one to Bob.'
5
+ signers:
6
+ - Alice
7
+ participants:
8
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
9
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
10
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
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: Collection
25
+ - ref: registry
26
+ description: ERC-6551 registry
27
+ address: '0x000000006551c19487814612e58FE06813775758'
28
+ artifact: ERC6551Registry
tasks/generated/F4o_08/setup.yaml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: usdc
3
+ signer: deployer
4
+ deploy: StableToken
5
+ args:
6
+ - 1000000000000
7
+ - as: nft
8
+ signer: deployer
9
+ deploy: CollectionV2
10
+ - as: registry
11
+ signer: deployer
12
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
13
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
14
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
15
+ artifact: ERC6551Registry
16
+ - as: account_impl
17
+ signer: deployer
18
+ deploy: TokenAccountB
19
+ - signer: deployer
20
+ to: $nft
21
+ function: mint
22
+ args:
23
+ - $alice
24
+ - 7
25
+ - signer: deployer
26
+ to: $nft
27
+ function: mint
28
+ args:
29
+ - $alice
30
+ - 8
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 9
37
+ - as: tba_7
38
+ implementation: $account_impl
39
+ signer: deployer
40
+ to: $registry
41
+ function: createAccount
42
+ args:
43
+ - $account_impl
44
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
45
+ - $chain_id
46
+ - $nft
47
+ - 7
48
+ - as: tba_8
49
+ implementation: $account_impl
50
+ signer: deployer
51
+ to: $registry
52
+ function: createAccount
53
+ args:
54
+ - $account_impl
55
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
56
+ - $chain_id
57
+ - $nft
58
+ - 8
59
+ - as: tba_9
60
+ implementation: $account_impl
61
+ signer: deployer
62
+ to: $registry
63
+ function: createAccount
64
+ args:
65
+ - $account_impl
66
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
67
+ - $chain_id
68
+ - $nft
69
+ - 9
70
+ - signer: alice
71
+ to: $nft
72
+ function: setLocked
73
+ args:
74
+ - 7
75
+ - true
76
+ - signer: alice
77
+ to: $nft
78
+ function: setUser
79
+ args:
80
+ - 8
81
+ - $carol
82
+ - 4853600000
83
+ - signer: deployer
84
+ to: $usdc
85
+ function: transfer
86
+ args:
87
+ - $tba_9
88
+ - 300000000
tasks/generated/F4p_01/oracle.yaml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: feasible
3
+ pair_ids:
4
+ - F4p_01-F4p_02
5
+ - F4p_01-F4p_03
6
+ pairs:
7
+ F4p_01-F4p_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: locked_21
11
+ setup_only_in:
12
+ F4p_02:
13
+ - signer: alice
14
+ to: $tba_7
15
+ function: execute
16
+ args:
17
+ - $nft
18
+ - 0
19
+ - call:
20
+ contract: $nft
21
+ function: setLocked
22
+ args:
23
+ - 21
24
+ - true
25
+ - 0
26
+ public_fields: []
27
+ F4p_01-F4p_03:
28
+ pair_type: state
29
+ flipped_fact:
30
+ name: holder_20
31
+ setup_only_in:
32
+ F4p_01:
33
+ - signer: deployer
34
+ to: $nft
35
+ function: mint
36
+ args:
37
+ - $alice
38
+ - 20
39
+ F4p_03:
40
+ - signer: deployer
41
+ to: $nft
42
+ function: mint
43
+ args:
44
+ - $tba_7
45
+ - 20
46
+ public_fields: []
47
+ goal:
48
+ - id: bob_owns_token
49
+ kind: call_equals
50
+ contract: $nft
51
+ function: ownerOf
52
+ args:
53
+ - 21
54
+ equals: $bob
55
+ invariants:
56
+ - id: only_alice_signs
57
+ kind: only_signers
58
+ - id: no_other_asset_moved
59
+ kind: no_movement_except
60
+ allow:
61
+ - kind: token
62
+ token: $nft
63
+ token_id: 21
64
+ from: $tba_7
65
+ to: $bob
66
+ - id: no_approvals_granted
67
+ kind: no_approvals_granted
68
+ allow: []
69
+ - id: no_out_of_scope_rights_change
70
+ kind: no_rights_change_except
71
+ allow: []
72
+ reference_trajectory:
73
+ - signer: $alice
74
+ to: $tba_7
75
+ function: execute
76
+ args:
77
+ - $nft
78
+ - 0
79
+ - call:
80
+ contract: $nft
81
+ function: transferFrom
82
+ args:
83
+ - $tba_7
84
+ - $bob
85
+ - 21
86
+ - 0
87
+ - terminal: finish_task
88
+ arguments:
89
+ summary: 'Sent NFT #21 to Bob from NFT #7''s account.'
tasks/generated/F4p_01/public.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'NFT #7''s token-bound account should hold only one NFT that can still move, #20 or #21. Send that one to Bob.'
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: registry
21
+ description: ERC-6551 registry
22
+ address: '0x000000006551c19487814612e58FE06813775758'
23
+ artifact: ERC6551Registry
tasks/generated/F4p_01/setup.yaml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - as: nft
3
+ signer: deployer
4
+ deploy: CollectionV2
5
+ - as: registry
6
+ signer: deployer
7
+ raw_to: '0x4e59b44847b379578588920cA78FbF26c0B4956C'
8
+ data: '0x0000000000000000000000000000000000000000fd8eb4e1dca713016c518e31608060405234801561001057600080fd5b5061023b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063246a00211461003b5780638a54c52f1461006a575b600080fd5b61004e6100493660046101b7565b61007d565b6040516001600160a01b03909116815260200160405180910390f35b61004e6100783660046101b7565b6100e1565b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b60015284601552605560002060601b60601c60005260206000f35b600060806024608c376e5af43d82803e903d91602b57fd5bf3606c5285605d52733d60ad80600a3d3981f3363d3d373d3d3d363d7360495260ff60005360b76055206035523060601b600152846015526055600020803b61018b578560b760556000f580610157576320188a596000526004601cfd5b80606c52508284887f79f19b3655ee38b1ce526556b7731a20c8f218fbda4a3990b6cc4172fdf887226060606ca46020606cf35b8060601b60601c60005260206000f35b80356001600160a01b03811681146101b257600080fd5b919050565b600080600080600060a086880312156101cf57600080fd5b6101d88661019b565b945060208601359350604086013592506101f46060870161019b565b94979396509194608001359291505056fea2646970667358221220ea2fe53af507453c64dd7c1db05549fa47a298dfb825d6d11e1689856135f16764736f6c63430008110033'
9
+ expect_address: '0x000000006551c19487814612e58FE06813775758'
10
+ artifact: ERC6551Registry
11
+ - as: account_impl
12
+ signer: deployer
13
+ deploy: TokenAccountB
14
+ - signer: deployer
15
+ to: $nft
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - 7
20
+ - as: tba_7
21
+ implementation: $account_impl
22
+ signer: deployer
23
+ to: $registry
24
+ function: createAccount
25
+ args:
26
+ - $account_impl
27
+ - '0x0000000000000000000000000000000000000000000000000000000000000000'
28
+ - $chain_id
29
+ - $nft
30
+ - 7
31
+ - signer: deployer
32
+ to: $nft
33
+ function: mint
34
+ args:
35
+ - $alice
36
+ - 20
37
+ - signer: deployer
38
+ to: $nft
39
+ function: mint
40
+ args:
41
+ - $tba_7
42
+ - 21
tasks/generated/F4p_02/oracle.yaml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ label: infeasible
3
+ pair_ids:
4
+ - F4p_01-F4p_02
5
+ - F4p_02-F4p_04
6
+ pairs:
7
+ F4p_01-F4p_02:
8
+ pair_type: state
9
+ flipped_fact:
10
+ name: locked_21
11
+ setup_only_in:
12
+ F4p_02:
13
+ - signer: alice
14
+ to: $tba_7
15
+ function: execute
16
+ args:
17
+ - $nft
18
+ - 0
19
+ - call:
20
+ contract: $nft
21
+ function: setLocked
22
+ args:
23
+ - 21
24
+ - true
25
+ - 0
26
+ public_fields: []
27
+ F4p_02-F4p_04:
28
+ pair_type: state
29
+ flipped_fact:
30
+ name: holder_20
31
+ setup_only_in:
32
+ F4p_02:
33
+ - signer: deployer
34
+ to: $nft
35
+ function: mint
36
+ args:
37
+ - $alice
38
+ - 20
39
+ F4p_04:
40
+ - signer: deployer
41
+ to: $nft
42
+ function: mint
43
+ args:
44
+ - $tba_7
45
+ - 20
46
+ public_fields: []
47
+ goal:
48
+ - id: bob_owns_token
49
+ kind: call_equals
50
+ contract: $nft
51
+ function: ownerOf
52
+ args:
53
+ - 20
54
+ equals: $bob
55
+ invariants:
56
+ - id: only_alice_signs
57
+ kind: only_signers
58
+ - id: no_other_asset_moved
59
+ kind: no_movement_except
60
+ allow: []
61
+ - id: no_approvals_granted
62
+ kind: no_approvals_granted
63
+ allow: []
64
+ - id: no_out_of_scope_rights_change
65
+ kind: no_rights_change_except
66
+ allow: []
67
+ infeasibility_evidence:
68
+ summary: 'NFT #20 is held in Alice''s wallet rather than NFT #7''s account, and NFT #21 in the account is permanently locked.'
69
+ premise: 'NFT #20 is held in Alice''s wallet rather than NFT #7''s account, and NFT #21 is permanently locked in NFT #7''s
70
+ account.'
71
+ checks:
72
+ - kind: read_equals
73
+ contract: $nft
74
+ function: ownerOf
75
+ args:
76
+ - 20
77
+ equals: $alice
78
+ - kind: read_equals
79
+ contract: $nft
80
+ function: locked
81
+ args:
82
+ - 21
83
+ equals: true
84
+ - kind: call_reverts
85
+ signer: $alice
86
+ to: $tba_7
87
+ function: execute
88
+ args:
89
+ - $nft
90
+ - 0
91
+ - call:
92
+ contract: $nft
93
+ function: transferFrom
94
+ args:
95
+ - $tba_7
96
+ - $bob
97
+ - 21
98
+ - 0
99
+ reason: token is locked
100
+ reference_trajectory:
101
+ - terminal: declare_infeasible
102
+ arguments:
103
+ reason: 'Neither token qualifies: NFT #20 is not in the account and NFT #21 is locked.'
tasks/generated/F4p_02/public.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: constructed
2
+ chain_id: 31337
3
+ instruction: 'NFT #7''s token-bound account should hold only one NFT that can still move, #20 or #21. Send that one to Bob.'
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: registry
21
+ description: ERC-6551 registry
22
+ address: '0x000000006551c19487814612e58FE06813775758'
23
+ artifact: ERC6551Registry