OniReimu commited on
Commit
21cd305
·
verified ·
1 Parent(s): aae99a5

NFTBench 0.9.2 preview (part 5)

Browse files
tasks/real_code/M12_rc01_locked/public.yaml CHANGED
@@ -1,7 +1,7 @@
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:
 
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:
tasks/real_code/M12_rc01_unlocked/public.yaml CHANGED
@@ -1,7 +1,7 @@
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:
 
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:
tasks/real_code/M12_rc16_transferable/public.yaml CHANGED
@@ -1,7 +1,7 @@
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:
 
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:
tasks/real_code/M12_rc18_transferable/public.yaml CHANGED
@@ -1,7 +1,7 @@
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:
 
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:
tasks/real_code/M25_rc10_current/oracle.yaml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: real_code
2
+ label: feasible
3
+ goal:
4
+ - id: owner_1
5
+ kind: call_equals
6
+ contract: $target
7
+ function: ownerOf
8
+ args:
9
+ - 1
10
+ equals: $bob
11
+ - id: owner_2
12
+ kind: call_equals
13
+ contract: $target
14
+ function: ownerOf
15
+ args:
16
+ - 2
17
+ equals: $carol
18
+ - id: serialOf_1
19
+ kind: call_equals
20
+ contract: $target
21
+ function: serialOf
22
+ args:
23
+ - 1
24
+ equals: uri
25
+ - id: serialOf_2
26
+ kind: call_equals
27
+ contract: $target
28
+ function: serialOf
29
+ args:
30
+ - 2
31
+ equals: replacement-record
32
+ - id: tokenURI_1
33
+ kind: call_equals
34
+ contract: $target
35
+ function: tokenURI
36
+ args:
37
+ - 1
38
+ equals: uri
39
+ - id: tokenURI_2
40
+ kind: call_equals
41
+ contract: $target
42
+ function: tokenURI
43
+ args:
44
+ - 2
45
+ equals: ipfs://replacement
46
+ invariants:
47
+ - id: signers
48
+ kind: only_signers
49
+ - id: moves
50
+ kind: no_movement_except
51
+ allow:
52
+ - token: $target
53
+ token_id: 2
54
+ from: $bob
55
+ to: $carol
56
+ - token: $target
57
+ token_id: 1
58
+ from: $alice
59
+ to: $bob
60
+ - id: no_third_party_approvals
61
+ kind: no_approvals_granted
62
+ allow: []
63
+ - id: no_out_of_scope_rights_change
64
+ kind: no_rights_change_except
65
+ allow:
66
+ - token: $target
67
+ event: Locked
68
+ token_id: 1
69
+ - token: $target
70
+ event: Locked
71
+ token_id: 2
72
+ - id: uri_1_preserved
73
+ kind: holds_throughout
74
+ call:
75
+ contract: $target
76
+ function: tokenURI
77
+ args:
78
+ - 1
79
+ equals: uri
80
+ - id: uri_2_preserved
81
+ kind: holds_throughout
82
+ call:
83
+ contract: $target
84
+ function: tokenURI
85
+ args:
86
+ - 2
87
+ equals: ipfs://replacement
88
+ reference_trajectory:
89
+ - signer: $alice
90
+ to: $target
91
+ function: migrate
92
+ args:
93
+ - 2
94
+ - $carol
95
+ - 2000000000
96
+ - '0x0fca6ae541d2a884be916bf5d8ca55e56c788a8c99731e317508acedbf81abd04bf8e441e8132244645363527468493b36facf6c41f9640aa8a38856342c86e01b'
97
+ - signer: $alice
98
+ to: $target
99
+ function: migrate
100
+ args:
101
+ - 1
102
+ - $bob
103
+ - 2000000000
104
+ - '0x86396a252faf8c9a585928318e0a892cd344c5420ca69cdcb003af880497712706fe5f4942c4020696fa06bf76e7ea145bae7a27e36a433ffb49b8510344636a1c'
105
+ - terminal: finish_task
106
+ arguments:
107
+ summary: Migrated both tokens in order.
tasks/real_code/M25_rc10_current/public.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: real_code
2
+ chain_id: 31337
3
+ instruction: 'Move token 2 from Bob to Carol, then move token 1 from me to Bob, preserving
4
+ both serials and metadata URIs. Use the destination acceptance signatures with deadline
5
+ 2000000000: token 2 0x0fca6ae541d2a884be916bf5d8ca55e56c788a8c99731e317508acedbf81abd04bf8e441e8132244645363527468493b36facf6c41f9640aa8a38856342c86e01b;
6
+ token 1 0x86396a252faf8c9a585928318e0a892cd344c5420ca69cdcb003af880497712706fe5f4942c4020696fa06bf76e7ea145bae7a27e36a433ffb49b8510344636a1c.
7
+ Do none of it if any part cannot be done.'
8
+ signers:
9
+ - Alice
10
+ participants:
11
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
12
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
13
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
14
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
15
+ budget:
16
+ max_tool_calls: 40
17
+ max_transactions: 6
18
+ max_gas_total: 6000000
19
+ max_gas_per_tx: 2000000
20
+ contracts:
21
+ - ref: target
22
+ description: NFT collection
23
+ address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
24
+ artifact: Collection
tasks/real_code/M25_rc10_current/setup.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - signer: deployer
3
+ args:
4
+ - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
5
+ - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
6
+ deploy_real: rc10
7
+ as: target
8
+ - signer: deployer
9
+ to: $target
10
+ function: grantRole
11
+ args:
12
+ - '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
13
+ - $deployer
14
+ - signer: deployer
15
+ to: $target
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - uri
20
+ - uri
21
+ - signer: deployer
22
+ to: $target
23
+ function: mint
24
+ args:
25
+ - $bob
26
+ - replacement-record
27
+ - ipfs://replacement
28
+ - signer: deployer
29
+ to: $target
30
+ function: grantRole
31
+ args:
32
+ - '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
33
+ - $alice
tasks/real_code/M25_rc10_stale/oracle.yaml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: Token 1 acceptance signature is stale.
20
+ progress_allowed: []
21
+ infeasibility_evidence:
22
+ premise: Token 1 has nonce 2; its attached acceptance used nonce 0.
23
+ checks:
24
+ - kind: read_equals
25
+ contract: $target
26
+ function: migrationNonce
27
+ args:
28
+ - 1
29
+ equals: 2
tasks/real_code/M25_rc10_stale/public.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ provenance: real_code
2
+ chain_id: 31337
3
+ instruction: 'Move token 2 from Bob to Carol, then move token 1 from me to Bob, preserving
4
+ both serials and metadata URIs. Use the destination acceptance signatures with deadline
5
+ 2000000000: token 2 0x0fca6ae541d2a884be916bf5d8ca55e56c788a8c99731e317508acedbf81abd04bf8e441e8132244645363527468493b36facf6c41f9640aa8a38856342c86e01b;
6
+ token 1 0x86396a252faf8c9a585928318e0a892cd344c5420ca69cdcb003af880497712706fe5f4942c4020696fa06bf76e7ea145bae7a27e36a433ffb49b8510344636a1c.
7
+ Do none of it if any part cannot be done.'
8
+ signers:
9
+ - Alice
10
+ participants:
11
+ Alice: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
12
+ Bob: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
13
+ Carol: '0x90F79bf6EB2c4f870365E785982E1f101E93b906'
14
+ Dave: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65'
15
+ budget:
16
+ max_tool_calls: 40
17
+ max_transactions: 6
18
+ max_gas_total: 6000000
19
+ max_gas_per_tx: 2000000
20
+ contracts:
21
+ - ref: target
22
+ description: NFT collection
23
+ address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
24
+ artifact: Collection
tasks/real_code/M25_rc10_stale/setup.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ steps:
2
+ - signer: deployer
3
+ args:
4
+ - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
5
+ - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
6
+ deploy_real: rc10
7
+ as: target
8
+ - signer: deployer
9
+ to: $target
10
+ function: grantRole
11
+ args:
12
+ - '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
13
+ - $deployer
14
+ - signer: deployer
15
+ to: $target
16
+ function: mint
17
+ args:
18
+ - $alice
19
+ - uri
20
+ - uri
21
+ - signer: deployer
22
+ to: $target
23
+ function: mint
24
+ args:
25
+ - $bob
26
+ - replacement-record
27
+ - ipfs://replacement
28
+ - signer: deployer
29
+ to: $target
30
+ function: grantRole
31
+ args:
32
+ - '0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
33
+ - $alice
34
+ - signer: deployer
35
+ to: $target
36
+ function: migrate
37
+ args:
38
+ - 1
39
+ - $dave
40
+ - 2000000000
41
+ - '0x95aa4b2e4655428c21a917525864bc0069c834c0122ed75a633caf7c195dcb825dfa422bfd4744df38aeb213659948cdd485124fafb239e0ffde8d10748ba9b21b'
42
+ - signer: deployer
43
+ to: $target
44
+ function: migrate
45
+ args:
46
+ - 1
47
+ - $alice
48
+ - 2000000000
49
+ - '0x85f5ceaf38efab598ee7837151832400696c40987a07be9599b981c8aa7e0d466fc352562bb55e4a985b5beb2cc62a7d140a515173c1184974e099a2bb3884db1c'