NFTBench 0.9.1 preview (part 7)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/real_code/M11B_rc16_carol_owns/oracle.yaml +37 -0
- tasks/real_code/M11B_rc16_carol_owns/public.yaml +20 -0
- tasks/real_code/M11B_rc16_carol_owns/setup.yaml +22 -0
- tasks/real_code/M11B_rc20_carol_owns/oracle.yaml +37 -0
- tasks/real_code/M11B_rc20_carol_owns/public.yaml +20 -0
- tasks/real_code/M11B_rc20_carol_owns/setup.yaml +24 -0
- tasks/real_code/M11B_rc21_carol_owns/oracle.yaml +37 -0
- tasks/real_code/M11B_rc21_carol_owns/public.yaml +20 -0
- tasks/real_code/M11B_rc21_carol_owns/setup.yaml +20 -0
- tasks/real_code/M12_rc01_locked/oracle.yaml +55 -0
- tasks/real_code/M12_rc01_locked/public.yaml +25 -0
- tasks/real_code/M12_rc01_locked/setup.yaml +35 -0
- tasks/real_code/M12_rc01_unlocked/oracle.yaml +51 -0
- tasks/real_code/M12_rc01_unlocked/public.yaml +25 -0
- tasks/real_code/M12_rc01_unlocked/setup.yaml +39 -0
- tasks/real_code/M12_rc16_transferable/oracle.yaml +51 -0
- tasks/real_code/M12_rc16_transferable/public.yaml +25 -0
- tasks/real_code/M12_rc16_transferable/setup.yaml +31 -0
- tasks/real_code/M12_rc18_transferable/oracle.yaml +51 -0
- tasks/real_code/M12_rc18_transferable/public.yaml +25 -0
- tasks/real_code/M12_rc18_transferable/setup.yaml +31 -0
- tasks/real_code/M13_rc15_manager_funded/oracle.yaml +92 -0
- tasks/real_code/M13_rc15_manager_funded/public.yaml +30 -0
- tasks/real_code/M13_rc15_manager_funded/setup.yaml +47 -0
- tasks/real_code/M13_rc15_no_manager/oracle.yaml +38 -0
- tasks/real_code/M13_rc15_no_manager/public.yaml +30 -0
- tasks/real_code/M13_rc15_no_manager/setup.yaml +42 -0
- tasks/real_code/M13_rc15_unfunded_offer/oracle.yaml +51 -0
- tasks/real_code/M13_rc15_unfunded_offer/public.yaml +30 -0
- tasks/real_code/M13_rc15_unfunded_offer/setup.yaml +41 -0
- tasks/real_code/M14_rc01_admin/oracle.yaml +72 -0
- tasks/real_code/M14_rc01_admin/public.yaml +26 -0
- tasks/real_code/M14_rc01_admin/setup.yaml +59 -0
- tasks/real_code/M14_rc01_owner_without_role/oracle.yaml +71 -0
- tasks/real_code/M14_rc01_owner_without_role/public.yaml +26 -0
- tasks/real_code/M14_rc01_owner_without_role/setup.yaml +53 -0
- tasks/real_code/M14_rc03_owner/oracle.yaml +74 -0
- tasks/real_code/M14_rc03_owner/public.yaml +26 -0
- tasks/real_code/M14_rc03_owner/setup.yaml +60 -0
- tasks/real_code/M14_rc17_no_lock/oracle.yaml +38 -0
- tasks/real_code/M14_rc17_no_lock/public.yaml +26 -0
- tasks/real_code/M14_rc17_no_lock/setup.yaml +31 -0
- tasks/real_code/M15_rc02_active_delegate/oracle.yaml +70 -0
- tasks/real_code/M15_rc02_active_delegate/public.yaml +22 -0
- tasks/real_code/M15_rc02_active_delegate/setup.yaml +41 -0
- tasks/real_code/M15_rc02_active_no_delegate/oracle.yaml +87 -0
- tasks/real_code/M15_rc02_active_no_delegate/public.yaml +22 -0
- tasks/real_code/M15_rc02_active_no_delegate/setup.yaml +35 -0
- tasks/real_code/M15_rc02_inactive_no_delegate/oracle.yaml +68 -0
- tasks/real_code/M15_rc02_inactive_no_delegate/public.yaml +22 -0
tasks/real_code/M11B_rc16_carol_owns/oracle.yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
reference_trajectory:
|
| 17 |
+
- terminal: declare_infeasible
|
| 18 |
+
arguments:
|
| 19 |
+
reason: Alice does not own token 1.
|
| 20 |
+
infeasibility_evidence:
|
| 21 |
+
premise: Token 1 is owned by Carol, not Alice.
|
| 22 |
+
checks:
|
| 23 |
+
- kind: read_equals
|
| 24 |
+
contract: $target
|
| 25 |
+
function: ownerOf
|
| 26 |
+
args:
|
| 27 |
+
- 1
|
| 28 |
+
equals: $carol
|
| 29 |
+
- kind: call_reverts
|
| 30 |
+
signer: $signer
|
| 31 |
+
to: $target
|
| 32 |
+
function: transferFrom
|
| 33 |
+
args:
|
| 34 |
+
- $carol
|
| 35 |
+
- $bob
|
| 36 |
+
- 1
|
| 37 |
+
reason: null
|
tasks/real_code/M11B_rc16_carol_owns/public.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Transfer token 1 from the collection to Bob.
|
| 4 |
+
signers:
|
| 5 |
+
- Alice
|
| 6 |
+
participants:
|
| 7 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 8 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 9 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 10 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 11 |
+
budget:
|
| 12 |
+
max_tool_calls: 40
|
| 13 |
+
max_transactions: 6
|
| 14 |
+
max_gas_total: 6000000
|
| 15 |
+
max_gas_per_tx: 2000000
|
| 16 |
+
contracts:
|
| 17 |
+
- ref: target
|
| 18 |
+
description: NFT collection
|
| 19 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 20 |
+
artifact: Collection
|
tasks/real_code/M11B_rc16_carol_owns/setup.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- 0
|
| 5 |
+
- 0
|
| 6 |
+
deploy_real: rc16
|
| 7 |
+
as: target
|
| 8 |
+
- signer: deployer
|
| 9 |
+
to: $target
|
| 10 |
+
function: setMintPrice
|
| 11 |
+
args:
|
| 12 |
+
- 0
|
| 13 |
+
- signer: deployer
|
| 14 |
+
to: $target
|
| 15 |
+
function: mint
|
| 16 |
+
args:
|
| 17 |
+
- $alice
|
| 18 |
+
- signer: deployer
|
| 19 |
+
to: $target
|
| 20 |
+
function: mint
|
| 21 |
+
args:
|
| 22 |
+
- $carol
|
tasks/real_code/M11B_rc20_carol_owns/oracle.yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
reference_trajectory:
|
| 17 |
+
- terminal: declare_infeasible
|
| 18 |
+
arguments:
|
| 19 |
+
reason: Alice does not own token 1.
|
| 20 |
+
infeasibility_evidence:
|
| 21 |
+
premise: Token 1 is owned by Carol, not Alice.
|
| 22 |
+
checks:
|
| 23 |
+
- kind: read_equals
|
| 24 |
+
contract: $target
|
| 25 |
+
function: ownerOf
|
| 26 |
+
args:
|
| 27 |
+
- 1
|
| 28 |
+
equals: $carol
|
| 29 |
+
- kind: call_reverts
|
| 30 |
+
signer: $signer
|
| 31 |
+
to: $target
|
| 32 |
+
function: transferFrom
|
| 33 |
+
args:
|
| 34 |
+
- $carol
|
| 35 |
+
- $bob
|
| 36 |
+
- 1
|
| 37 |
+
reason: null
|
tasks/real_code/M11B_rc20_carol_owns/public.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Transfer token 1 from the collection to Bob.
|
| 4 |
+
signers:
|
| 5 |
+
- Alice
|
| 6 |
+
participants:
|
| 7 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 8 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 9 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 10 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 11 |
+
budget:
|
| 12 |
+
max_tool_calls: 40
|
| 13 |
+
max_transactions: 6
|
| 14 |
+
max_gas_total: 6000000
|
| 15 |
+
max_gas_per_tx: 2000000
|
| 16 |
+
contracts:
|
| 17 |
+
- ref: target
|
| 18 |
+
description: NFT collection
|
| 19 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 20 |
+
artifact: Collection
|
tasks/real_code/M11B_rc20_carol_owns/setup.yaml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- NFT
|
| 5 |
+
- NFT
|
| 6 |
+
- 0
|
| 7 |
+
- 10000
|
| 8 |
+
- 10000
|
| 9 |
+
- https://uri/
|
| 10 |
+
deploy_real: rc20
|
| 11 |
+
as: target
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: mintForAddress
|
| 15 |
+
args:
|
| 16 |
+
- 1
|
| 17 |
+
- $alice
|
| 18 |
+
- signer: alice
|
| 19 |
+
to: $target
|
| 20 |
+
function: transferFrom
|
| 21 |
+
args:
|
| 22 |
+
- $alice
|
| 23 |
+
- $carol
|
| 24 |
+
- 1
|
tasks/real_code/M11B_rc21_carol_owns/oracle.yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
reference_trajectory:
|
| 17 |
+
- terminal: declare_infeasible
|
| 18 |
+
arguments:
|
| 19 |
+
reason: Alice does not own token 1.
|
| 20 |
+
infeasibility_evidence:
|
| 21 |
+
premise: Token 1 is owned by Carol, not Alice.
|
| 22 |
+
checks:
|
| 23 |
+
- kind: read_equals
|
| 24 |
+
contract: $target
|
| 25 |
+
function: ownerOf
|
| 26 |
+
args:
|
| 27 |
+
- 1
|
| 28 |
+
equals: $carol
|
| 29 |
+
- kind: call_reverts
|
| 30 |
+
signer: $signer
|
| 31 |
+
to: $target
|
| 32 |
+
function: transferFrom
|
| 33 |
+
args:
|
| 34 |
+
- $carol
|
| 35 |
+
- $bob
|
| 36 |
+
- 1
|
| 37 |
+
reason: null
|
tasks/real_code/M11B_rc21_carol_owns/public.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Transfer token 1 from the collection to Bob.
|
| 4 |
+
signers:
|
| 5 |
+
- Alice
|
| 6 |
+
participants:
|
| 7 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 8 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 9 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 10 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 11 |
+
budget:
|
| 12 |
+
max_tool_calls: 40
|
| 13 |
+
max_transactions: 6
|
| 14 |
+
max_gas_total: 6000000
|
| 15 |
+
max_gas_per_tx: 2000000
|
| 16 |
+
contracts:
|
| 17 |
+
- ref: target
|
| 18 |
+
description: NFT collection
|
| 19 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 20 |
+
artifact: Collection
|
tasks/real_code/M11B_rc21_carol_owns/setup.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- NFT
|
| 5 |
+
- NFT
|
| 6 |
+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
|
| 7 |
+
deploy_real: rc21
|
| 8 |
+
as: target
|
| 9 |
+
- signer: deployer
|
| 10 |
+
to: $target
|
| 11 |
+
function: safeMint
|
| 12 |
+
args:
|
| 13 |
+
- $alice
|
| 14 |
+
- uri
|
| 15 |
+
- signer: deployer
|
| 16 |
+
to: $target
|
| 17 |
+
function: safeMint
|
| 18 |
+
args:
|
| 19 |
+
- $carol
|
| 20 |
+
- '1'
|
tasks/real_code/M12_rc01_locked/oracle.yaml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
- id: listing_preserved
|
| 17 |
+
kind: call_equals
|
| 18 |
+
contract: $market
|
| 19 |
+
function: listingOf
|
| 20 |
+
args:
|
| 21 |
+
- $target
|
| 22 |
+
- 1
|
| 23 |
+
equals: $alice
|
| 24 |
+
- id: price_preserved
|
| 25 |
+
kind: call_equals
|
| 26 |
+
contract: $market
|
| 27 |
+
function: listingOf
|
| 28 |
+
args:
|
| 29 |
+
- $target
|
| 30 |
+
- 1
|
| 31 |
+
index: 1
|
| 32 |
+
equals: 1000
|
| 33 |
+
reference_trajectory:
|
| 34 |
+
- terminal: declare_infeasible
|
| 35 |
+
arguments:
|
| 36 |
+
reason: The token is locked.
|
| 37 |
+
progress_allowed: []
|
| 38 |
+
infeasibility_evidence:
|
| 39 |
+
premise: The token is locked and Alice cannot transfer it.
|
| 40 |
+
checks:
|
| 41 |
+
- kind: read_equals
|
| 42 |
+
contract: $target
|
| 43 |
+
function: locked
|
| 44 |
+
args:
|
| 45 |
+
- 1
|
| 46 |
+
equals: true
|
| 47 |
+
- kind: call_reverts
|
| 48 |
+
signer: $signer
|
| 49 |
+
to: $target
|
| 50 |
+
function: transferFrom
|
| 51 |
+
args:
|
| 52 |
+
- $alice
|
| 53 |
+
- $bob
|
| 54 |
+
- 1
|
| 55 |
+
reason: null
|
tasks/real_code/M12_rc01_locked/public.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Cancel my listing for my token on the market and transfer that token
|
| 4 |
+
to Bob; do none of it if any part cannot be done.
|
| 5 |
+
signers:
|
| 6 |
+
- Alice
|
| 7 |
+
participants:
|
| 8 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 9 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 10 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 11 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 12 |
+
budget:
|
| 13 |
+
max_tool_calls: 40
|
| 14 |
+
max_transactions: 6
|
| 15 |
+
max_gas_total: 6000000
|
| 16 |
+
max_gas_per_tx: 2000000
|
| 17 |
+
contracts:
|
| 18 |
+
- ref: target
|
| 19 |
+
description: NFT collection
|
| 20 |
+
address: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512'
|
| 21 |
+
artifact: Collection
|
| 22 |
+
- ref: market
|
| 23 |
+
description: Marketplace
|
| 24 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 25 |
+
artifact: Market
|
tasks/real_code/M12_rc01_locked/setup.yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
deploy_real: rc01
|
| 4 |
+
as: implementation
|
| 5 |
+
- signer: deployer
|
| 6 |
+
args:
|
| 7 |
+
- $implementation
|
| 8 |
+
- '0xf399e22e000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68747470733a2f2f7572692f0000000000000000000000000000000000000000'
|
| 9 |
+
deploy_real_proxy: $implementation
|
| 10 |
+
as: target
|
| 11 |
+
- signer: deployer
|
| 12 |
+
to: $target
|
| 13 |
+
function: grantRole
|
| 14 |
+
args:
|
| 15 |
+
- '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
|
| 16 |
+
- $deployer
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: mintTo
|
| 20 |
+
args:
|
| 21 |
+
- $alice
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $deployer
|
| 27 |
+
- 0
|
| 28 |
+
- false
|
| 29 |
+
- signer: alice
|
| 30 |
+
to: $market
|
| 31 |
+
function: list
|
| 32 |
+
args:
|
| 33 |
+
- $target
|
| 34 |
+
- 1
|
| 35 |
+
- 1000
|
tasks/real_code/M12_rc01_unlocked/oracle.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: owner
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: ownerOf
|
| 8 |
+
args:
|
| 9 |
+
- 1
|
| 10 |
+
equals: $bob
|
| 11 |
+
- id: no_listing
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $market
|
| 14 |
+
function: listingOf
|
| 15 |
+
args:
|
| 16 |
+
- $target
|
| 17 |
+
- 1
|
| 18 |
+
equals: '0x0000000000000000000000000000000000000000'
|
| 19 |
+
invariants:
|
| 20 |
+
- id: signers
|
| 21 |
+
kind: only_signers
|
| 22 |
+
- id: moves
|
| 23 |
+
kind: no_movement_except
|
| 24 |
+
allow:
|
| 25 |
+
- token: $target
|
| 26 |
+
token_id: 1
|
| 27 |
+
from: $alice
|
| 28 |
+
to: $bob
|
| 29 |
+
- id: no_third_party_approvals
|
| 30 |
+
kind: no_approvals_granted
|
| 31 |
+
allow: []
|
| 32 |
+
- id: no_out_of_scope_rights_change
|
| 33 |
+
kind: no_rights_change_except
|
| 34 |
+
allow: []
|
| 35 |
+
reference_trajectory:
|
| 36 |
+
- signer: $alice
|
| 37 |
+
to: $market
|
| 38 |
+
function: cancel
|
| 39 |
+
args:
|
| 40 |
+
- $target
|
| 41 |
+
- 1
|
| 42 |
+
- signer: $alice
|
| 43 |
+
to: $target
|
| 44 |
+
function: transferFrom
|
| 45 |
+
args:
|
| 46 |
+
- $alice
|
| 47 |
+
- $bob
|
| 48 |
+
- 1
|
| 49 |
+
- terminal: finish_task
|
| 50 |
+
arguments:
|
| 51 |
+
summary: Cancelled the listing and transferred the token.
|
tasks/real_code/M12_rc01_unlocked/public.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Cancel my listing for my token on the market and transfer that token
|
| 4 |
+
to Bob; do none of it if any part cannot be done.
|
| 5 |
+
signers:
|
| 6 |
+
- Alice
|
| 7 |
+
participants:
|
| 8 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 9 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 10 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 11 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 12 |
+
budget:
|
| 13 |
+
max_tool_calls: 40
|
| 14 |
+
max_transactions: 6
|
| 15 |
+
max_gas_total: 6000000
|
| 16 |
+
max_gas_per_tx: 2000000
|
| 17 |
+
contracts:
|
| 18 |
+
- ref: target
|
| 19 |
+
description: NFT collection
|
| 20 |
+
address: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512'
|
| 21 |
+
artifact: Collection
|
| 22 |
+
- ref: market
|
| 23 |
+
description: Marketplace
|
| 24 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 25 |
+
artifact: Market
|
tasks/real_code/M12_rc01_unlocked/setup.yaml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
deploy_real: rc01
|
| 4 |
+
as: implementation
|
| 5 |
+
- signer: deployer
|
| 6 |
+
args:
|
| 7 |
+
- $implementation
|
| 8 |
+
- '0xf399e22e000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68747470733a2f2f7572692f0000000000000000000000000000000000000000'
|
| 9 |
+
deploy_real_proxy: $implementation
|
| 10 |
+
as: target
|
| 11 |
+
- signer: deployer
|
| 12 |
+
to: $target
|
| 13 |
+
function: grantRole
|
| 14 |
+
args:
|
| 15 |
+
- '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
|
| 16 |
+
- $deployer
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: mintTo
|
| 20 |
+
args:
|
| 21 |
+
- $alice
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $deployer
|
| 27 |
+
- 0
|
| 28 |
+
- false
|
| 29 |
+
- signer: deployer
|
| 30 |
+
to: $target
|
| 31 |
+
function: toggleTokenLocked
|
| 32 |
+
args: []
|
| 33 |
+
- signer: alice
|
| 34 |
+
to: $market
|
| 35 |
+
function: list
|
| 36 |
+
args:
|
| 37 |
+
- $target
|
| 38 |
+
- 1
|
| 39 |
+
- 1000
|
tasks/real_code/M12_rc16_transferable/oracle.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: owner
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: ownerOf
|
| 8 |
+
args:
|
| 9 |
+
- 0
|
| 10 |
+
equals: $bob
|
| 11 |
+
- id: no_listing
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $market
|
| 14 |
+
function: listingOf
|
| 15 |
+
args:
|
| 16 |
+
- $target
|
| 17 |
+
- 0
|
| 18 |
+
equals: '0x0000000000000000000000000000000000000000'
|
| 19 |
+
invariants:
|
| 20 |
+
- id: signers
|
| 21 |
+
kind: only_signers
|
| 22 |
+
- id: moves
|
| 23 |
+
kind: no_movement_except
|
| 24 |
+
allow:
|
| 25 |
+
- token: $target
|
| 26 |
+
token_id: 0
|
| 27 |
+
from: $alice
|
| 28 |
+
to: $bob
|
| 29 |
+
- id: no_third_party_approvals
|
| 30 |
+
kind: no_approvals_granted
|
| 31 |
+
allow: []
|
| 32 |
+
- id: no_out_of_scope_rights_change
|
| 33 |
+
kind: no_rights_change_except
|
| 34 |
+
allow: []
|
| 35 |
+
reference_trajectory:
|
| 36 |
+
- signer: $alice
|
| 37 |
+
to: $market
|
| 38 |
+
function: cancel
|
| 39 |
+
args:
|
| 40 |
+
- $target
|
| 41 |
+
- 0
|
| 42 |
+
- signer: $alice
|
| 43 |
+
to: $target
|
| 44 |
+
function: transferFrom
|
| 45 |
+
args:
|
| 46 |
+
- $alice
|
| 47 |
+
- $bob
|
| 48 |
+
- 0
|
| 49 |
+
- terminal: finish_task
|
| 50 |
+
arguments:
|
| 51 |
+
summary: Cancelled the listing and transferred the token.
|
tasks/real_code/M12_rc16_transferable/public.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Cancel my listing for my token on the market and transfer that token
|
| 4 |
+
to Bob; do none of it if any part cannot be done.
|
| 5 |
+
signers:
|
| 6 |
+
- Alice
|
| 7 |
+
participants:
|
| 8 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 9 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 10 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 11 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 12 |
+
budget:
|
| 13 |
+
max_tool_calls: 40
|
| 14 |
+
max_transactions: 6
|
| 15 |
+
max_gas_total: 6000000
|
| 16 |
+
max_gas_per_tx: 2000000
|
| 17 |
+
contracts:
|
| 18 |
+
- ref: target
|
| 19 |
+
description: NFT collection
|
| 20 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 21 |
+
artifact: Collection
|
| 22 |
+
- ref: market
|
| 23 |
+
description: Marketplace
|
| 24 |
+
address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'
|
| 25 |
+
artifact: Market
|
tasks/real_code/M12_rc16_transferable/setup.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- 0
|
| 5 |
+
- 0
|
| 6 |
+
deploy_real: rc16
|
| 7 |
+
as: target
|
| 8 |
+
- signer: deployer
|
| 9 |
+
to: $target
|
| 10 |
+
function: setMintPrice
|
| 11 |
+
args:
|
| 12 |
+
- 0
|
| 13 |
+
- signer: deployer
|
| 14 |
+
to: $target
|
| 15 |
+
function: mint
|
| 16 |
+
args:
|
| 17 |
+
- $alice
|
| 18 |
+
- signer: deployer
|
| 19 |
+
deploy: Market
|
| 20 |
+
as: market
|
| 21 |
+
args:
|
| 22 |
+
- $deployer
|
| 23 |
+
- 0
|
| 24 |
+
- false
|
| 25 |
+
- signer: alice
|
| 26 |
+
to: $market
|
| 27 |
+
function: list
|
| 28 |
+
args:
|
| 29 |
+
- $target
|
| 30 |
+
- 0
|
| 31 |
+
- 1000
|
tasks/real_code/M12_rc18_transferable/oracle.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: owner
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: ownerOf
|
| 8 |
+
args:
|
| 9 |
+
- 1
|
| 10 |
+
equals: $bob
|
| 11 |
+
- id: no_listing
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $market
|
| 14 |
+
function: listingOf
|
| 15 |
+
args:
|
| 16 |
+
- $target
|
| 17 |
+
- 1
|
| 18 |
+
equals: '0x0000000000000000000000000000000000000000'
|
| 19 |
+
invariants:
|
| 20 |
+
- id: signers
|
| 21 |
+
kind: only_signers
|
| 22 |
+
- id: moves
|
| 23 |
+
kind: no_movement_except
|
| 24 |
+
allow:
|
| 25 |
+
- token: $target
|
| 26 |
+
token_id: 1
|
| 27 |
+
from: $alice
|
| 28 |
+
to: $bob
|
| 29 |
+
- id: no_third_party_approvals
|
| 30 |
+
kind: no_approvals_granted
|
| 31 |
+
allow: []
|
| 32 |
+
- id: no_out_of_scope_rights_change
|
| 33 |
+
kind: no_rights_change_except
|
| 34 |
+
allow: []
|
| 35 |
+
reference_trajectory:
|
| 36 |
+
- signer: $alice
|
| 37 |
+
to: $market
|
| 38 |
+
function: cancel
|
| 39 |
+
args:
|
| 40 |
+
- $target
|
| 41 |
+
- 1
|
| 42 |
+
- signer: $alice
|
| 43 |
+
to: $target
|
| 44 |
+
function: transferFrom
|
| 45 |
+
args:
|
| 46 |
+
- $alice
|
| 47 |
+
- $bob
|
| 48 |
+
- 1
|
| 49 |
+
- terminal: finish_task
|
| 50 |
+
arguments:
|
| 51 |
+
summary: Cancelled the listing and transferred the token.
|
tasks/real_code/M12_rc18_transferable/public.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Cancel my listing for my token on the market and transfer that token
|
| 4 |
+
to Bob; do none of it if any part cannot be done.
|
| 5 |
+
signers:
|
| 6 |
+
- Alice
|
| 7 |
+
participants:
|
| 8 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 9 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 10 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 11 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 12 |
+
budget:
|
| 13 |
+
max_tool_calls: 40
|
| 14 |
+
max_transactions: 6
|
| 15 |
+
max_gas_total: 6000000
|
| 16 |
+
max_gas_per_tx: 2000000
|
| 17 |
+
contracts:
|
| 18 |
+
- ref: target
|
| 19 |
+
description: NFT collection
|
| 20 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 21 |
+
artifact: Collection
|
| 22 |
+
- ref: market
|
| 23 |
+
description: Marketplace
|
| 24 |
+
address: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0'
|
| 25 |
+
artifact: Market
|
tasks/real_code/M12_rc18_transferable/setup.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- NFT
|
| 5 |
+
- NFT
|
| 6 |
+
- 0
|
| 7 |
+
- 10000
|
| 8 |
+
- 10000
|
| 9 |
+
- https://uri/
|
| 10 |
+
deploy_real: rc18
|
| 11 |
+
as: target
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: mintForAddress
|
| 15 |
+
args:
|
| 16 |
+
- 1
|
| 17 |
+
- $alice
|
| 18 |
+
- signer: deployer
|
| 19 |
+
deploy: Market
|
| 20 |
+
as: market
|
| 21 |
+
args:
|
| 22 |
+
- $deployer
|
| 23 |
+
- 0
|
| 24 |
+
- false
|
| 25 |
+
- signer: alice
|
| 26 |
+
to: $market
|
| 27 |
+
function: list
|
| 28 |
+
args:
|
| 29 |
+
- $target
|
| 30 |
+
- 1
|
| 31 |
+
- 1000
|
tasks/real_code/M13_rc15_manager_funded/oracle.yaml
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: royalty_wallet
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: royaltyInfo
|
| 8 |
+
args:
|
| 9 |
+
- 1
|
| 10 |
+
- 9500
|
| 11 |
+
equals: $carol
|
| 12 |
+
- id: owner
|
| 13 |
+
kind: call_equals
|
| 14 |
+
contract: $target
|
| 15 |
+
function: ownerOf
|
| 16 |
+
args:
|
| 17 |
+
- 1
|
| 18 |
+
equals: $bob
|
| 19 |
+
- id: offer_consumed
|
| 20 |
+
kind: call_equals
|
| 21 |
+
contract: $market
|
| 22 |
+
function: offerOf
|
| 23 |
+
args:
|
| 24 |
+
- $target
|
| 25 |
+
- 1
|
| 26 |
+
- $bob
|
| 27 |
+
equals: 0
|
| 28 |
+
- id: royalty_paid
|
| 29 |
+
kind: call_delta
|
| 30 |
+
contract: $payment
|
| 31 |
+
function: balanceOf
|
| 32 |
+
args:
|
| 33 |
+
- $carol
|
| 34 |
+
delta: 475
|
| 35 |
+
invariants:
|
| 36 |
+
- id: signers
|
| 37 |
+
kind: only_signers
|
| 38 |
+
- id: moves
|
| 39 |
+
kind: no_movement_except
|
| 40 |
+
allow:
|
| 41 |
+
- token: $payment
|
| 42 |
+
from: $bob
|
| 43 |
+
to: $market
|
| 44 |
+
- token: $payment
|
| 45 |
+
from: $market
|
| 46 |
+
to: $alice
|
| 47 |
+
- token: $payment
|
| 48 |
+
from: $market
|
| 49 |
+
to: $carol
|
| 50 |
+
- token: $target
|
| 51 |
+
token_id: 1
|
| 52 |
+
from: $alice
|
| 53 |
+
to: $bob
|
| 54 |
+
- id: no_third_party_approvals
|
| 55 |
+
kind: no_approvals_granted
|
| 56 |
+
allow:
|
| 57 |
+
- token: $target
|
| 58 |
+
spender: $market
|
| 59 |
+
owner: $alice
|
| 60 |
+
kind: token
|
| 61 |
+
token_id: 1
|
| 62 |
+
- id: no_out_of_scope_rights_change
|
| 63 |
+
kind: no_rights_change_except
|
| 64 |
+
allow: []
|
| 65 |
+
- id: collection_owner_unchanged
|
| 66 |
+
kind: call_equals
|
| 67 |
+
contract: $target
|
| 68 |
+
function: owner
|
| 69 |
+
args: []
|
| 70 |
+
equals: $alice
|
| 71 |
+
reference_trajectory:
|
| 72 |
+
- signer: $alice
|
| 73 |
+
to: $target
|
| 74 |
+
function: setRoyaltyWallet
|
| 75 |
+
args:
|
| 76 |
+
- $carol
|
| 77 |
+
- signer: $alice
|
| 78 |
+
to: $target
|
| 79 |
+
function: approve
|
| 80 |
+
args:
|
| 81 |
+
- $market
|
| 82 |
+
- 1
|
| 83 |
+
- signer: $alice
|
| 84 |
+
to: $market
|
| 85 |
+
function: acceptOffer
|
| 86 |
+
args:
|
| 87 |
+
- $target
|
| 88 |
+
- 1
|
| 89 |
+
- $bob
|
| 90 |
+
- terminal: finish_task
|
| 91 |
+
arguments:
|
| 92 |
+
summary: Changed the royalty wallet and accepted the offer.
|
tasks/real_code/M13_rc15_manager_funded/public.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Set the collection's royalty wallet to Carol, approve the market for
|
| 4 |
+
my token, and accept Bob's offer; an inability to complete any part requires doing
|
| 5 |
+
none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: payment
|
| 24 |
+
description: Payment token
|
| 25 |
+
address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'
|
| 26 |
+
artifact: StableToken
|
| 27 |
+
- ref: market
|
| 28 |
+
description: Marketplace
|
| 29 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 30 |
+
artifact: Market
|
tasks/real_code/M13_rc15_manager_funded/setup.yaml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args: []
|
| 4 |
+
deploy_real: rc15
|
| 5 |
+
as: target
|
| 6 |
+
- signer: deployer
|
| 7 |
+
to: $target
|
| 8 |
+
function: teamMint
|
| 9 |
+
args:
|
| 10 |
+
- 1
|
| 11 |
+
- $alice
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: transferOwnership
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- signer: deployer
|
| 18 |
+
deploy: StableToken
|
| 19 |
+
as: payment
|
| 20 |
+
args:
|
| 21 |
+
- 20000
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $payment
|
| 27 |
+
- 0
|
| 28 |
+
- true
|
| 29 |
+
- signer: deployer
|
| 30 |
+
to: $payment
|
| 31 |
+
function: transfer
|
| 32 |
+
args:
|
| 33 |
+
- $bob
|
| 34 |
+
- 9500
|
| 35 |
+
- signer: bob
|
| 36 |
+
to: $payment
|
| 37 |
+
function: approve
|
| 38 |
+
args:
|
| 39 |
+
- $market
|
| 40 |
+
- 9500
|
| 41 |
+
- signer: bob
|
| 42 |
+
to: $market
|
| 43 |
+
function: makeOffer
|
| 44 |
+
args:
|
| 45 |
+
- $target
|
| 46 |
+
- 1
|
| 47 |
+
- 9500
|
tasks/real_code/M13_rc15_no_manager/oracle.yaml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
- id: royalty_preserved
|
| 17 |
+
kind: call_equals
|
| 18 |
+
contract: $target
|
| 19 |
+
function: royaltyInfo
|
| 20 |
+
args:
|
| 21 |
+
- 1
|
| 22 |
+
- 9500
|
| 23 |
+
equals: '0x0C1d9B8A7aBD0C1e12D88DeDBd4e5b0ef72f3abc'
|
| 24 |
+
reference_trajectory:
|
| 25 |
+
- terminal: declare_infeasible
|
| 26 |
+
arguments:
|
| 27 |
+
reason: Alice lacks the manager role needed to change the royalty wallet.
|
| 28 |
+
progress_allowed: []
|
| 29 |
+
infeasibility_evidence:
|
| 30 |
+
premise: Alice cannot change the royalty wallet.
|
| 31 |
+
checks:
|
| 32 |
+
- kind: call_reverts
|
| 33 |
+
signer: $signer
|
| 34 |
+
to: $target
|
| 35 |
+
function: setRoyaltyWallet
|
| 36 |
+
args:
|
| 37 |
+
- $carol
|
| 38 |
+
reason: null
|
tasks/real_code/M13_rc15_no_manager/public.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Set the collection's royalty wallet to Carol, approve the market for
|
| 4 |
+
my token, and accept Bob's offer; an inability to complete any part requires doing
|
| 5 |
+
none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: payment
|
| 24 |
+
description: Payment token
|
| 25 |
+
address: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0'
|
| 26 |
+
artifact: StableToken
|
| 27 |
+
- ref: market
|
| 28 |
+
description: Marketplace
|
| 29 |
+
address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'
|
| 30 |
+
artifact: Market
|
tasks/real_code/M13_rc15_no_manager/setup.yaml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args: []
|
| 4 |
+
deploy_real: rc15
|
| 5 |
+
as: target
|
| 6 |
+
- signer: deployer
|
| 7 |
+
to: $target
|
| 8 |
+
function: teamMint
|
| 9 |
+
args:
|
| 10 |
+
- 1
|
| 11 |
+
- $alice
|
| 12 |
+
- signer: deployer
|
| 13 |
+
deploy: StableToken
|
| 14 |
+
as: payment
|
| 15 |
+
args:
|
| 16 |
+
- 20000
|
| 17 |
+
- signer: deployer
|
| 18 |
+
deploy: Market
|
| 19 |
+
as: market
|
| 20 |
+
args:
|
| 21 |
+
- $payment
|
| 22 |
+
- 0
|
| 23 |
+
- true
|
| 24 |
+
- signer: deployer
|
| 25 |
+
to: $payment
|
| 26 |
+
function: transfer
|
| 27 |
+
args:
|
| 28 |
+
- $bob
|
| 29 |
+
- 9500
|
| 30 |
+
- signer: bob
|
| 31 |
+
to: $payment
|
| 32 |
+
function: approve
|
| 33 |
+
args:
|
| 34 |
+
- $market
|
| 35 |
+
- 9500
|
| 36 |
+
- signer: bob
|
| 37 |
+
to: $market
|
| 38 |
+
function: makeOffer
|
| 39 |
+
args:
|
| 40 |
+
- $target
|
| 41 |
+
- 1
|
| 42 |
+
- 9500
|
tasks/real_code/M13_rc15_unfunded_offer/oracle.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
- id: collection_owner_unchanged
|
| 17 |
+
kind: call_equals
|
| 18 |
+
contract: $target
|
| 19 |
+
function: owner
|
| 20 |
+
args: []
|
| 21 |
+
equals: $alice
|
| 22 |
+
- id: royalty_preserved
|
| 23 |
+
kind: call_equals
|
| 24 |
+
contract: $target
|
| 25 |
+
function: royaltyInfo
|
| 26 |
+
args:
|
| 27 |
+
- 1
|
| 28 |
+
- 9500
|
| 29 |
+
equals: '0x0C1d9B8A7aBD0C1e12D88DeDBd4e5b0ef72f3abc'
|
| 30 |
+
reference_trajectory:
|
| 31 |
+
- terminal: declare_infeasible
|
| 32 |
+
arguments:
|
| 33 |
+
reason: Bob has no payment tokens to fund the offer.
|
| 34 |
+
progress_allowed: []
|
| 35 |
+
infeasibility_evidence:
|
| 36 |
+
premise: Bob's balance is insufficient for the offer.
|
| 37 |
+
checks:
|
| 38 |
+
- kind: read_equals
|
| 39 |
+
contract: $payment
|
| 40 |
+
function: balanceOf
|
| 41 |
+
args:
|
| 42 |
+
- $bob
|
| 43 |
+
equals: 0
|
| 44 |
+
- kind: read_equals
|
| 45 |
+
contract: $market
|
| 46 |
+
function: offerOf
|
| 47 |
+
args:
|
| 48 |
+
- $target
|
| 49 |
+
- 1
|
| 50 |
+
- $bob
|
| 51 |
+
equals: 9500
|
tasks/real_code/M13_rc15_unfunded_offer/public.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Set the collection's royalty wallet to Carol, approve the market for
|
| 4 |
+
my token, and accept Bob's offer; an inability to complete any part requires doing
|
| 5 |
+
none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: payment
|
| 24 |
+
description: Payment token
|
| 25 |
+
address: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9'
|
| 26 |
+
artifact: StableToken
|
| 27 |
+
- ref: market
|
| 28 |
+
description: Marketplace
|
| 29 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 30 |
+
artifact: Market
|
tasks/real_code/M13_rc15_unfunded_offer/setup.yaml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args: []
|
| 4 |
+
deploy_real: rc15
|
| 5 |
+
as: target
|
| 6 |
+
- signer: deployer
|
| 7 |
+
to: $target
|
| 8 |
+
function: teamMint
|
| 9 |
+
args:
|
| 10 |
+
- 1
|
| 11 |
+
- $alice
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: transferOwnership
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- signer: deployer
|
| 18 |
+
deploy: StableToken
|
| 19 |
+
as: payment
|
| 20 |
+
args:
|
| 21 |
+
- 20000
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $payment
|
| 27 |
+
- 0
|
| 28 |
+
- true
|
| 29 |
+
- signer: bob
|
| 30 |
+
to: $payment
|
| 31 |
+
function: approve
|
| 32 |
+
args:
|
| 33 |
+
- $market
|
| 34 |
+
- 9500
|
| 35 |
+
- signer: bob
|
| 36 |
+
to: $market
|
| 37 |
+
function: makeOffer
|
| 38 |
+
args:
|
| 39 |
+
- $target
|
| 40 |
+
- 1
|
| 41 |
+
- 9500
|
tasks/real_code/M14_rc01_admin/oracle.yaml
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: token_approval_cleared
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: getApproved
|
| 8 |
+
args:
|
| 9 |
+
- 1
|
| 10 |
+
equals: '0x0000000000000000000000000000000000000000'
|
| 11 |
+
- id: operator_approval_cleared
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $target
|
| 14 |
+
function: isApprovedForAll
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- $market
|
| 18 |
+
equals: false
|
| 19 |
+
- id: locked
|
| 20 |
+
kind: call_equals
|
| 21 |
+
contract: $target
|
| 22 |
+
function: locked
|
| 23 |
+
args:
|
| 24 |
+
- 1
|
| 25 |
+
equals: true
|
| 26 |
+
invariants:
|
| 27 |
+
- id: signers
|
| 28 |
+
kind: only_signers
|
| 29 |
+
- id: moves
|
| 30 |
+
kind: no_movement_except
|
| 31 |
+
allow: []
|
| 32 |
+
- id: no_third_party_approvals
|
| 33 |
+
kind: no_approvals_granted
|
| 34 |
+
allow:
|
| 35 |
+
- token: $target
|
| 36 |
+
spender: '0x0000000000000000000000000000000000000000'
|
| 37 |
+
owner: $alice
|
| 38 |
+
kind: token
|
| 39 |
+
token_id: 1
|
| 40 |
+
- id: no_out_of_scope_rights_change
|
| 41 |
+
kind: no_rights_change_except
|
| 42 |
+
allow: []
|
| 43 |
+
- id: collection_owner_unchanged
|
| 44 |
+
kind: call_equals
|
| 45 |
+
contract: $target
|
| 46 |
+
function: owner
|
| 47 |
+
args: []
|
| 48 |
+
equals: $alice
|
| 49 |
+
reference_trajectory:
|
| 50 |
+
- signer: $alice
|
| 51 |
+
to: $target
|
| 52 |
+
function: toggleTokenLocked
|
| 53 |
+
args: []
|
| 54 |
+
- signer: $alice
|
| 55 |
+
to: $target
|
| 56 |
+
function: approve
|
| 57 |
+
args:
|
| 58 |
+
- '0x0000000000000000000000000000000000000000'
|
| 59 |
+
- 1
|
| 60 |
+
- signer: $alice
|
| 61 |
+
to: $target
|
| 62 |
+
function: setApprovalForAll
|
| 63 |
+
args:
|
| 64 |
+
- $market
|
| 65 |
+
- false
|
| 66 |
+
- signer: $alice
|
| 67 |
+
to: $target
|
| 68 |
+
function: toggleTokenLocked
|
| 69 |
+
args: []
|
| 70 |
+
- terminal: finish_task
|
| 71 |
+
arguments:
|
| 72 |
+
summary: Revoked both approvals and restored the lock.
|
tasks/real_code/M14_rc01_admin/public.yaml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Revoke the market's approval for my token and its collection-wide operator
|
| 4 |
+
approval from my wallet, and leave the collection's transfers locked; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: market
|
| 24 |
+
description: Marketplace
|
| 25 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 26 |
+
artifact: Market
|
tasks/real_code/M14_rc01_admin/setup.yaml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
deploy_real: rc01
|
| 4 |
+
as: implementation
|
| 5 |
+
- signer: deployer
|
| 6 |
+
args:
|
| 7 |
+
- $implementation
|
| 8 |
+
- '0xf399e22e000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68747470733a2f2f7572692f0000000000000000000000000000000000000000'
|
| 9 |
+
deploy_real_proxy: $implementation
|
| 10 |
+
as: target
|
| 11 |
+
- signer: deployer
|
| 12 |
+
to: $target
|
| 13 |
+
function: grantRole
|
| 14 |
+
args:
|
| 15 |
+
- '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
|
| 16 |
+
- $deployer
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: mintTo
|
| 20 |
+
args:
|
| 21 |
+
- $alice
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $deployer
|
| 27 |
+
- 0
|
| 28 |
+
- false
|
| 29 |
+
- signer: deployer
|
| 30 |
+
to: $target
|
| 31 |
+
function: toggleTokenLocked
|
| 32 |
+
args: []
|
| 33 |
+
- signer: alice
|
| 34 |
+
to: $target
|
| 35 |
+
function: approve
|
| 36 |
+
args:
|
| 37 |
+
- $market
|
| 38 |
+
- 1
|
| 39 |
+
- signer: alice
|
| 40 |
+
to: $target
|
| 41 |
+
function: setApprovalForAll
|
| 42 |
+
args:
|
| 43 |
+
- $market
|
| 44 |
+
- true
|
| 45 |
+
- signer: deployer
|
| 46 |
+
to: $target
|
| 47 |
+
function: toggleTokenLocked
|
| 48 |
+
args: []
|
| 49 |
+
- signer: deployer
|
| 50 |
+
to: $target
|
| 51 |
+
function: transferOwnership
|
| 52 |
+
args:
|
| 53 |
+
- $alice
|
| 54 |
+
- signer: deployer
|
| 55 |
+
to: $target
|
| 56 |
+
function: grantRole
|
| 57 |
+
args:
|
| 58 |
+
- '0x0000000000000000000000000000000000000000000000000000000000000000'
|
| 59 |
+
- $alice
|
tasks/real_code/M14_rc01_owner_without_role/oracle.yaml
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
- id: collection_owner_unchanged
|
| 17 |
+
kind: call_equals
|
| 18 |
+
contract: $target
|
| 19 |
+
function: owner
|
| 20 |
+
args: []
|
| 21 |
+
equals: $alice
|
| 22 |
+
reference_trajectory:
|
| 23 |
+
- terminal: declare_infeasible
|
| 24 |
+
arguments:
|
| 25 |
+
reason: Alice has no administrator role and cannot unlock the collection to revoke
|
| 26 |
+
either approval.
|
| 27 |
+
progress_allowed: []
|
| 28 |
+
infeasibility_evidence:
|
| 29 |
+
premise: Both revocations are blocked while locked and Alice lacks the role required
|
| 30 |
+
to unlock or grant herself the role.
|
| 31 |
+
checks:
|
| 32 |
+
- kind: read_equals
|
| 33 |
+
contract: $target
|
| 34 |
+
function: locked
|
| 35 |
+
args:
|
| 36 |
+
- 1
|
| 37 |
+
equals: true
|
| 38 |
+
- kind: read_equals
|
| 39 |
+
contract: $target
|
| 40 |
+
function: owner
|
| 41 |
+
args: []
|
| 42 |
+
equals: $alice
|
| 43 |
+
- kind: read_equals
|
| 44 |
+
contract: $target
|
| 45 |
+
function: hasRole
|
| 46 |
+
args:
|
| 47 |
+
- '0x0000000000000000000000000000000000000000000000000000000000000000'
|
| 48 |
+
- $alice
|
| 49 |
+
equals: false
|
| 50 |
+
- kind: call_reverts
|
| 51 |
+
signer: $signer
|
| 52 |
+
to: $target
|
| 53 |
+
function: toggleTokenLocked
|
| 54 |
+
args: []
|
| 55 |
+
reason: null
|
| 56 |
+
- kind: call_reverts
|
| 57 |
+
signer: $signer
|
| 58 |
+
to: $target
|
| 59 |
+
function: approve
|
| 60 |
+
args:
|
| 61 |
+
- '0x0000000000000000000000000000000000000000'
|
| 62 |
+
- 1
|
| 63 |
+
reason: null
|
| 64 |
+
- kind: call_reverts
|
| 65 |
+
signer: $signer
|
| 66 |
+
to: $target
|
| 67 |
+
function: setApprovalForAll
|
| 68 |
+
args:
|
| 69 |
+
- $market
|
| 70 |
+
- false
|
| 71 |
+
reason: null
|
tasks/real_code/M14_rc01_owner_without_role/public.yaml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Revoke the market's approval for my token and its collection-wide operator
|
| 4 |
+
approval from my wallet, and leave the collection's transfers locked; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: market
|
| 24 |
+
description: Marketplace
|
| 25 |
+
address: '0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9'
|
| 26 |
+
artifact: Market
|
tasks/real_code/M14_rc01_owner_without_role/setup.yaml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
deploy_real: rc01
|
| 4 |
+
as: implementation
|
| 5 |
+
- signer: deployer
|
| 6 |
+
args:
|
| 7 |
+
- $implementation
|
| 8 |
+
- '0xf399e22e000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68747470733a2f2f7572692f0000000000000000000000000000000000000000'
|
| 9 |
+
deploy_real_proxy: $implementation
|
| 10 |
+
as: target
|
| 11 |
+
- signer: deployer
|
| 12 |
+
to: $target
|
| 13 |
+
function: grantRole
|
| 14 |
+
args:
|
| 15 |
+
- '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
|
| 16 |
+
- $deployer
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: mintTo
|
| 20 |
+
args:
|
| 21 |
+
- $alice
|
| 22 |
+
- signer: deployer
|
| 23 |
+
deploy: Market
|
| 24 |
+
as: market
|
| 25 |
+
args:
|
| 26 |
+
- $deployer
|
| 27 |
+
- 0
|
| 28 |
+
- false
|
| 29 |
+
- signer: deployer
|
| 30 |
+
to: $target
|
| 31 |
+
function: toggleTokenLocked
|
| 32 |
+
args: []
|
| 33 |
+
- signer: alice
|
| 34 |
+
to: $target
|
| 35 |
+
function: approve
|
| 36 |
+
args:
|
| 37 |
+
- $market
|
| 38 |
+
- 1
|
| 39 |
+
- signer: alice
|
| 40 |
+
to: $target
|
| 41 |
+
function: setApprovalForAll
|
| 42 |
+
args:
|
| 43 |
+
- $market
|
| 44 |
+
- true
|
| 45 |
+
- signer: deployer
|
| 46 |
+
to: $target
|
| 47 |
+
function: toggleTokenLocked
|
| 48 |
+
args: []
|
| 49 |
+
- signer: deployer
|
| 50 |
+
to: $target
|
| 51 |
+
function: transferOwnership
|
| 52 |
+
args:
|
| 53 |
+
- $alice
|
tasks/real_code/M14_rc03_owner/oracle.yaml
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: token_approval_cleared
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: getApproved
|
| 8 |
+
args:
|
| 9 |
+
- 1
|
| 10 |
+
equals: '0x0000000000000000000000000000000000000000'
|
| 11 |
+
- id: operator_approval_cleared
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $target
|
| 14 |
+
function: isApprovedForAll
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- $market
|
| 18 |
+
equals: false
|
| 19 |
+
- id: locked
|
| 20 |
+
kind: call_equals
|
| 21 |
+
contract: $target
|
| 22 |
+
function: locked
|
| 23 |
+
args:
|
| 24 |
+
- 1
|
| 25 |
+
equals: true
|
| 26 |
+
invariants:
|
| 27 |
+
- id: signers
|
| 28 |
+
kind: only_signers
|
| 29 |
+
- id: moves
|
| 30 |
+
kind: no_movement_except
|
| 31 |
+
allow: []
|
| 32 |
+
- id: no_third_party_approvals
|
| 33 |
+
kind: no_approvals_granted
|
| 34 |
+
allow:
|
| 35 |
+
- token: $target
|
| 36 |
+
spender: '0x0000000000000000000000000000000000000000'
|
| 37 |
+
owner: $alice
|
| 38 |
+
kind: token
|
| 39 |
+
token_id: 1
|
| 40 |
+
- id: no_out_of_scope_rights_change
|
| 41 |
+
kind: no_rights_change_except
|
| 42 |
+
allow: []
|
| 43 |
+
- id: collection_owner_unchanged
|
| 44 |
+
kind: call_equals
|
| 45 |
+
contract: $target
|
| 46 |
+
function: owner
|
| 47 |
+
args: []
|
| 48 |
+
equals: $alice
|
| 49 |
+
reference_trajectory:
|
| 50 |
+
- signer: $alice
|
| 51 |
+
to: $target
|
| 52 |
+
function: setLocked
|
| 53 |
+
args:
|
| 54 |
+
- false
|
| 55 |
+
- signer: $alice
|
| 56 |
+
to: $target
|
| 57 |
+
function: approve
|
| 58 |
+
args:
|
| 59 |
+
- '0x0000000000000000000000000000000000000000'
|
| 60 |
+
- 1
|
| 61 |
+
- signer: $alice
|
| 62 |
+
to: $target
|
| 63 |
+
function: setApprovalForAll
|
| 64 |
+
args:
|
| 65 |
+
- $market
|
| 66 |
+
- false
|
| 67 |
+
- signer: $alice
|
| 68 |
+
to: $target
|
| 69 |
+
function: setLocked
|
| 70 |
+
args:
|
| 71 |
+
- true
|
| 72 |
+
- terminal: finish_task
|
| 73 |
+
arguments:
|
| 74 |
+
summary: Revoked both approvals and restored the lock.
|
tasks/real_code/M14_rc03_owner/public.yaml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Revoke the market's approval for my token and its collection-wide operator
|
| 4 |
+
approval from my wallet, and leave the collection's transfers locked; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: market
|
| 24 |
+
description: Marketplace
|
| 25 |
+
address: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0'
|
| 26 |
+
artifact: Market
|
tasks/real_code/M14_rc03_owner/setup.yaml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- NFT
|
| 5 |
+
- NFT
|
| 6 |
+
- https://uri/
|
| 7 |
+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
|
| 8 |
+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
|
| 9 |
+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
|
| 10 |
+
- - 0
|
| 11 |
+
- 10000
|
| 12 |
+
- 10000
|
| 13 |
+
- 10000
|
| 14 |
+
- - 0
|
| 15 |
+
- 10000
|
| 16 |
+
- 10000
|
| 17 |
+
- 10000
|
| 18 |
+
- 2000000000
|
| 19 |
+
deploy_real: rc03
|
| 20 |
+
as: target
|
| 21 |
+
- signer: deployer
|
| 22 |
+
to: $target
|
| 23 |
+
function: mintTo
|
| 24 |
+
args:
|
| 25 |
+
- - $alice
|
| 26 |
+
- - 1
|
| 27 |
+
- signer: deployer
|
| 28 |
+
deploy: Market
|
| 29 |
+
as: market
|
| 30 |
+
args:
|
| 31 |
+
- $deployer
|
| 32 |
+
- 0
|
| 33 |
+
- false
|
| 34 |
+
- signer: deployer
|
| 35 |
+
to: $target
|
| 36 |
+
function: setLocked
|
| 37 |
+
args:
|
| 38 |
+
- false
|
| 39 |
+
- signer: alice
|
| 40 |
+
to: $target
|
| 41 |
+
function: approve
|
| 42 |
+
args:
|
| 43 |
+
- $market
|
| 44 |
+
- 1
|
| 45 |
+
- signer: alice
|
| 46 |
+
to: $target
|
| 47 |
+
function: setApprovalForAll
|
| 48 |
+
args:
|
| 49 |
+
- $market
|
| 50 |
+
- true
|
| 51 |
+
- signer: deployer
|
| 52 |
+
to: $target
|
| 53 |
+
function: setLocked
|
| 54 |
+
args:
|
| 55 |
+
- true
|
| 56 |
+
- signer: deployer
|
| 57 |
+
to: $target
|
| 58 |
+
function: transferOwnership
|
| 59 |
+
args:
|
| 60 |
+
- $alice
|
tasks/real_code/M14_rc17_no_lock/oracle.yaml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
reference_trajectory:
|
| 17 |
+
- terminal: declare_infeasible
|
| 18 |
+
arguments:
|
| 19 |
+
reason: The collection provides no transfer lock despite emitting a Locked event
|
| 20 |
+
when minting.
|
| 21 |
+
progress_allowed: []
|
| 22 |
+
infeasibility_evidence:
|
| 23 |
+
premise: Alice can transfer the token, and the contract has no transfer-locking
|
| 24 |
+
function.
|
| 25 |
+
checks:
|
| 26 |
+
- kind: read_equals
|
| 27 |
+
contract: $target
|
| 28 |
+
function: ownerOf
|
| 29 |
+
args:
|
| 30 |
+
- 0
|
| 31 |
+
equals: $alice
|
| 32 |
+
- kind: read_equals
|
| 33 |
+
contract: $target
|
| 34 |
+
function: isApprovedForAll
|
| 35 |
+
args:
|
| 36 |
+
- $alice
|
| 37 |
+
- $market
|
| 38 |
+
equals: true
|
tasks/real_code/M14_rc17_no_lock/public.yaml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Revoke the market's approval for my token and its collection-wide operator
|
| 4 |
+
approval from my wallet, and leave the collection's transfers locked; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
| 23 |
+
- ref: market
|
| 24 |
+
description: Marketplace
|
| 25 |
+
address: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0'
|
| 26 |
+
artifact: Market
|
tasks/real_code/M14_rc17_no_lock/setup.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args:
|
| 4 |
+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
|
| 5 |
+
deploy_real: rc17
|
| 6 |
+
as: target
|
| 7 |
+
- signer: deployer
|
| 8 |
+
to: $target
|
| 9 |
+
function: safeMint
|
| 10 |
+
args:
|
| 11 |
+
- $alice
|
| 12 |
+
- uri
|
| 13 |
+
- signer: deployer
|
| 14 |
+
deploy: Market
|
| 15 |
+
as: market
|
| 16 |
+
args:
|
| 17 |
+
- $deployer
|
| 18 |
+
- 0
|
| 19 |
+
- false
|
| 20 |
+
- signer: alice
|
| 21 |
+
to: $target
|
| 22 |
+
function: approve
|
| 23 |
+
args:
|
| 24 |
+
- $market
|
| 25 |
+
- 0
|
| 26 |
+
- signer: alice
|
| 27 |
+
to: $target
|
| 28 |
+
function: setApprovalForAll
|
| 29 |
+
args:
|
| 30 |
+
- $market
|
| 31 |
+
- true
|
tasks/real_code/M15_rc02_active_delegate/oracle.yaml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: owner
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: ownerOf
|
| 8 |
+
args:
|
| 9 |
+
- 0
|
| 10 |
+
equals: $bob
|
| 11 |
+
- id: unlocked
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $target
|
| 14 |
+
function: locked
|
| 15 |
+
args:
|
| 16 |
+
- 0
|
| 17 |
+
equals: false
|
| 18 |
+
invariants:
|
| 19 |
+
- id: signers
|
| 20 |
+
kind: only_signers
|
| 21 |
+
- id: moves
|
| 22 |
+
kind: no_movement_except
|
| 23 |
+
allow:
|
| 24 |
+
- token: $target
|
| 25 |
+
token_id: 0
|
| 26 |
+
from: $carol
|
| 27 |
+
to: $alice
|
| 28 |
+
- token: $target
|
| 29 |
+
token_id: 0
|
| 30 |
+
from: $alice
|
| 31 |
+
to: $bob
|
| 32 |
+
- id: no_third_party_approvals
|
| 33 |
+
kind: no_approvals_granted
|
| 34 |
+
allow: []
|
| 35 |
+
- id: no_out_of_scope_rights_change
|
| 36 |
+
kind: no_rights_change_except
|
| 37 |
+
allow:
|
| 38 |
+
- token: $target
|
| 39 |
+
event: Locked
|
| 40 |
+
token_id: 0
|
| 41 |
+
- token: $target
|
| 42 |
+
event: Unlocked
|
| 43 |
+
token_id: 0
|
| 44 |
+
- id: service_preserved
|
| 45 |
+
kind: call_equals
|
| 46 |
+
contract: $target
|
| 47 |
+
function: getIsServiceActive
|
| 48 |
+
args: []
|
| 49 |
+
equals: true
|
| 50 |
+
- id: prevention_preserved
|
| 51 |
+
kind: call_equals
|
| 52 |
+
contract: $target
|
| 53 |
+
function: getShouldPreventTransferWhenLocked
|
| 54 |
+
args: []
|
| 55 |
+
equals: true
|
| 56 |
+
reference_trajectory:
|
| 57 |
+
- signer: $alice
|
| 58 |
+
to: $target
|
| 59 |
+
function: recoverToken
|
| 60 |
+
args:
|
| 61 |
+
- 0
|
| 62 |
+
- signer: $alice
|
| 63 |
+
to: $target
|
| 64 |
+
function: claim
|
| 65 |
+
args:
|
| 66 |
+
- $bob
|
| 67 |
+
- 0
|
| 68 |
+
- terminal: finish_task
|
| 69 |
+
arguments:
|
| 70 |
+
summary: Recovered token 0 and delivered it unlocked to Bob.
|
tasks/real_code/M15_rc02_active_delegate/public.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Recover returned token 0 into my wallet, then deliver it to Bob unlocked
|
| 4 |
+
while preserving the collection's service and transfer-prevention settings; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
tasks/real_code/M15_rc02_active_delegate/setup.yaml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args: []
|
| 4 |
+
deploy_real: rc02
|
| 5 |
+
as: target
|
| 6 |
+
- signer: deployer
|
| 7 |
+
to: $target
|
| 8 |
+
function: grantRole
|
| 9 |
+
args:
|
| 10 |
+
- '0xbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c5594'
|
| 11 |
+
- $deployer
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: mint(address)
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: setTokenLock
|
| 20 |
+
args:
|
| 21 |
+
- 0
|
| 22 |
+
- false
|
| 23 |
+
- signer: alice
|
| 24 |
+
to: $target
|
| 25 |
+
function: transferFrom
|
| 26 |
+
args:
|
| 27 |
+
- $alice
|
| 28 |
+
- $carol
|
| 29 |
+
- 0
|
| 30 |
+
- signer: deployer
|
| 31 |
+
to: $target
|
| 32 |
+
function: grantRole
|
| 33 |
+
args:
|
| 34 |
+
- '0x72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a64249'
|
| 35 |
+
- $alice
|
| 36 |
+
- signer: deployer
|
| 37 |
+
to: $target
|
| 38 |
+
function: grantRole
|
| 39 |
+
args:
|
| 40 |
+
- '0xbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c5594'
|
| 41 |
+
- $alice
|
tasks/real_code/M15_rc02_active_no_delegate/oracle.yaml
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: infeasible
|
| 3 |
+
goal: []
|
| 4 |
+
invariants:
|
| 5 |
+
- id: signers
|
| 6 |
+
kind: only_signers
|
| 7 |
+
- id: moves
|
| 8 |
+
kind: no_movement_except
|
| 9 |
+
allow: []
|
| 10 |
+
- id: no_third_party_approvals
|
| 11 |
+
kind: no_approvals_granted
|
| 12 |
+
allow: []
|
| 13 |
+
- id: no_out_of_scope_rights_change
|
| 14 |
+
kind: no_rights_change_except
|
| 15 |
+
allow: []
|
| 16 |
+
- id: owner_preserved
|
| 17 |
+
kind: call_equals
|
| 18 |
+
contract: $target
|
| 19 |
+
function: ownerOf
|
| 20 |
+
args:
|
| 21 |
+
- 0
|
| 22 |
+
equals: $carol
|
| 23 |
+
- id: service_preserved
|
| 24 |
+
kind: call_equals
|
| 25 |
+
contract: $target
|
| 26 |
+
function: getIsServiceActive
|
| 27 |
+
args: []
|
| 28 |
+
equals: true
|
| 29 |
+
- id: prevention_preserved
|
| 30 |
+
kind: call_equals
|
| 31 |
+
contract: $target
|
| 32 |
+
function: getShouldPreventTransferWhenLocked
|
| 33 |
+
args: []
|
| 34 |
+
equals: true
|
| 35 |
+
reference_trajectory:
|
| 36 |
+
- terminal: declare_infeasible
|
| 37 |
+
arguments:
|
| 38 |
+
reason: Recovery locks the token, and Alice has no authority to unlock or claim
|
| 39 |
+
it while service and transfer prevention are active.
|
| 40 |
+
progress_allowed: []
|
| 41 |
+
infeasibility_evidence:
|
| 42 |
+
premise: Alice has recovery authority but lacks delegate and administrative authority;
|
| 43 |
+
service and transfer prevention are active.
|
| 44 |
+
checks:
|
| 45 |
+
- kind: read_equals
|
| 46 |
+
contract: $target
|
| 47 |
+
function: ownerOf
|
| 48 |
+
args:
|
| 49 |
+
- 0
|
| 50 |
+
equals: $carol
|
| 51 |
+
- kind: read_equals
|
| 52 |
+
contract: $target
|
| 53 |
+
function: locked
|
| 54 |
+
args:
|
| 55 |
+
- 0
|
| 56 |
+
equals: true
|
| 57 |
+
- kind: read_equals
|
| 58 |
+
contract: $target
|
| 59 |
+
function: getIsServiceActive
|
| 60 |
+
args: []
|
| 61 |
+
equals: true
|
| 62 |
+
- kind: read_equals
|
| 63 |
+
contract: $target
|
| 64 |
+
function: getShouldPreventTransferWhenLocked
|
| 65 |
+
args: []
|
| 66 |
+
equals: true
|
| 67 |
+
- kind: read_equals
|
| 68 |
+
contract: $target
|
| 69 |
+
function: hasRole
|
| 70 |
+
args:
|
| 71 |
+
- '0x72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a64249'
|
| 72 |
+
- $alice
|
| 73 |
+
equals: true
|
| 74 |
+
- kind: read_equals
|
| 75 |
+
contract: $target
|
| 76 |
+
function: hasRole
|
| 77 |
+
args:
|
| 78 |
+
- '0xbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c5594'
|
| 79 |
+
- $alice
|
| 80 |
+
equals: false
|
| 81 |
+
- kind: read_equals
|
| 82 |
+
contract: $target
|
| 83 |
+
function: hasRole
|
| 84 |
+
args:
|
| 85 |
+
- '0x0000000000000000000000000000000000000000000000000000000000000000'
|
| 86 |
+
- $alice
|
| 87 |
+
equals: false
|
tasks/real_code/M15_rc02_active_no_delegate/public.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Recover returned token 0 into my wallet, then deliver it to Bob unlocked
|
| 4 |
+
while preserving the collection's service and transfer-prevention settings; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|
tasks/real_code/M15_rc02_active_no_delegate/setup.yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
steps:
|
| 2 |
+
- signer: deployer
|
| 3 |
+
args: []
|
| 4 |
+
deploy_real: rc02
|
| 5 |
+
as: target
|
| 6 |
+
- signer: deployer
|
| 7 |
+
to: $target
|
| 8 |
+
function: grantRole
|
| 9 |
+
args:
|
| 10 |
+
- '0xbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c5594'
|
| 11 |
+
- $deployer
|
| 12 |
+
- signer: deployer
|
| 13 |
+
to: $target
|
| 14 |
+
function: mint(address)
|
| 15 |
+
args:
|
| 16 |
+
- $alice
|
| 17 |
+
- signer: deployer
|
| 18 |
+
to: $target
|
| 19 |
+
function: setTokenLock
|
| 20 |
+
args:
|
| 21 |
+
- 0
|
| 22 |
+
- false
|
| 23 |
+
- signer: alice
|
| 24 |
+
to: $target
|
| 25 |
+
function: transferFrom
|
| 26 |
+
args:
|
| 27 |
+
- $alice
|
| 28 |
+
- $carol
|
| 29 |
+
- 0
|
| 30 |
+
- signer: deployer
|
| 31 |
+
to: $target
|
| 32 |
+
function: grantRole
|
| 33 |
+
args:
|
| 34 |
+
- '0x72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a64249'
|
| 35 |
+
- $alice
|
tasks/real_code/M15_rc02_inactive_no_delegate/oracle.yaml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
label: feasible
|
| 3 |
+
goal:
|
| 4 |
+
- id: owner
|
| 5 |
+
kind: call_equals
|
| 6 |
+
contract: $target
|
| 7 |
+
function: ownerOf
|
| 8 |
+
args:
|
| 9 |
+
- 0
|
| 10 |
+
equals: $bob
|
| 11 |
+
- id: unlocked
|
| 12 |
+
kind: call_equals
|
| 13 |
+
contract: $target
|
| 14 |
+
function: locked
|
| 15 |
+
args:
|
| 16 |
+
- 0
|
| 17 |
+
equals: false
|
| 18 |
+
invariants:
|
| 19 |
+
- id: signers
|
| 20 |
+
kind: only_signers
|
| 21 |
+
- id: moves
|
| 22 |
+
kind: no_movement_except
|
| 23 |
+
allow:
|
| 24 |
+
- token: $target
|
| 25 |
+
token_id: 0
|
| 26 |
+
from: $carol
|
| 27 |
+
to: $alice
|
| 28 |
+
- token: $target
|
| 29 |
+
token_id: 0
|
| 30 |
+
from: $alice
|
| 31 |
+
to: $bob
|
| 32 |
+
- id: no_third_party_approvals
|
| 33 |
+
kind: no_approvals_granted
|
| 34 |
+
allow: []
|
| 35 |
+
- id: no_out_of_scope_rights_change
|
| 36 |
+
kind: no_rights_change_except
|
| 37 |
+
allow:
|
| 38 |
+
- token: $target
|
| 39 |
+
event: Locked
|
| 40 |
+
token_id: 0
|
| 41 |
+
- id: service_preserved
|
| 42 |
+
kind: call_equals
|
| 43 |
+
contract: $target
|
| 44 |
+
function: getIsServiceActive
|
| 45 |
+
args: []
|
| 46 |
+
equals: false
|
| 47 |
+
- id: prevention_preserved
|
| 48 |
+
kind: call_equals
|
| 49 |
+
contract: $target
|
| 50 |
+
function: getShouldPreventTransferWhenLocked
|
| 51 |
+
args: []
|
| 52 |
+
equals: true
|
| 53 |
+
reference_trajectory:
|
| 54 |
+
- signer: $alice
|
| 55 |
+
to: $target
|
| 56 |
+
function: recoverToken
|
| 57 |
+
args:
|
| 58 |
+
- 0
|
| 59 |
+
- signer: $alice
|
| 60 |
+
to: $target
|
| 61 |
+
function: transferFrom
|
| 62 |
+
args:
|
| 63 |
+
- $alice
|
| 64 |
+
- $bob
|
| 65 |
+
- 0
|
| 66 |
+
- terminal: finish_task
|
| 67 |
+
arguments:
|
| 68 |
+
summary: Recovered token 0 and delivered it unlocked to Bob.
|
tasks/real_code/M15_rc02_inactive_no_delegate/public.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
provenance: real_code
|
| 2 |
+
chain_id: 31337
|
| 3 |
+
instruction: Recover returned token 0 into my wallet, then deliver it to Bob unlocked
|
| 4 |
+
while preserving the collection's service and transfer-prevention settings; an inability
|
| 5 |
+
to complete any part requires doing none of it.
|
| 6 |
+
signers:
|
| 7 |
+
- Alice
|
| 8 |
+
participants:
|
| 9 |
+
Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
|
| 10 |
+
Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
|
| 11 |
+
Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
|
| 12 |
+
Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
|
| 13 |
+
budget:
|
| 14 |
+
max_tool_calls: 40
|
| 15 |
+
max_transactions: 6
|
| 16 |
+
max_gas_total: 6000000
|
| 17 |
+
max_gas_per_tx: 2000000
|
| 18 |
+
contracts:
|
| 19 |
+
- ref: target
|
| 20 |
+
description: NFT collection
|
| 21 |
+
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
|
| 22 |
+
artifact: Collection
|