Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
source: stackslib/src/chainstate/tests/static_analysis_tests.rs
expression: result
---
[
Success(ExpectedBlockOutput(
marf_hash: "eb32387df909f2eadd0d7a1063b569712b8c3a35df55a36c76728a41d601db1b",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: allow-expr-not-allo-Epoch3_3-Clarity4, code_body: [..], clarity_version: Some(Clarity4))",
vm_error: "Some(:0:0: allowance expressions are only allowed in the context of a `restrict-assets?` or `as-contract?`) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 4,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 605,
),
),
],
total_block_cost: ExecutionCost(
write_length: 4,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 605,
),
)),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---
source: stackslib/src/chainstate/tests/static_analysis_tests.rs
expression: result
---
[
Success(ExpectedBlockOutput(
marf_hash: "dfe63494e41a728bb312b67505cf3e630fa0d8c56f6a6653e979de854e75044b",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: closure-must-be-ro-Epoch3_3-Clarity1, code_body: [..], clarity_version: Some(Clarity1))",
vm_error: "Some(:0:0: (at-block ...) closures expect read-only statements, but detected a writing operation) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
),
],
total_block_cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "2e049a4b1768177abbc1c07666ef5c95cfbb1a57d792513f19c28e989aed3e17",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: closure-must-be-ro-Epoch3_3-Clarity2, code_body: [..], clarity_version: Some(Clarity2))",
vm_error: "Some(:0:0: (at-block ...) closures expect read-only statements, but detected a writing operation) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
),
],
total_block_cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "def986371d12dab1abd72cf648c74e5bb9e543005a629289d69282c188353e94",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: closure-must-be-ro-Epoch3_3-Clarity3, code_body: [..], clarity_version: Some(Clarity3))",
vm_error: "Some(:0:0: (at-block ...) closures expect read-only statements, but detected a writing operation) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
),
],
total_block_cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "77abee8f88c8661a041465269b184208ab433a283a5c22c1abd3396138f90180",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: closure-must-be-ro-Epoch3_3-Clarity4, code_body: [..], clarity_version: Some(Clarity4))",
vm_error: "Some(:0:0: (at-block ...) closures expect read-only statements, but detected a writing operation) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
),
],
total_block_cost: ExecutionCost(
write_length: 0,
write_count: 0,
read_length: 0,
read_count: 0,
runtime: 3966,
),
)),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---
source: stackslib/src/chainstate/tests/static_analysis_tests.rs
expression: result
---
[
Success(ExpectedBlockOutput(
marf_hash: "c7325ae92d1ef974494c13e18014778fbe87f74a3c654eb5f9461aa7d38fcc34",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: bad-tuple-constr-Epoch3_3-Clarity1, code_body: [..], clarity_version: Some(Clarity1))",
vm_error: "Some(:0:0: invalid tuple syntax: defining \'name\' conflicts with previous value) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
),
],
total_block_cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "64981f31580117d55d9f3527ee4300d55d1eccb084965bcfa5ce6d86827635cf",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: bad-tuple-constr-Epoch3_3-Clarity2, code_body: [..], clarity_version: Some(Clarity2))",
vm_error: "Some(:0:0: invalid tuple syntax: defining \'name\' conflicts with previous value) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
),
],
total_block_cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "875b8f5f914d202184bd3bb618319af5d88c1692b902e069561e75a1b0da05d4",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: bad-tuple-constr-Epoch3_3-Clarity3, code_body: [..], clarity_version: Some(Clarity3))",
vm_error: "Some(:0:0: invalid tuple syntax: defining \'name\' conflicts with previous value) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
),
],
total_block_cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
)),
Success(ExpectedBlockOutput(
marf_hash: "779ea49997c7f6b76972ba2c855d0adf03dbb91ee5b60923421d72142e81a70f",
evaluated_epoch: Epoch33,
transactions: [
ExpectedTransactionOutput(
tx: "SmartContract(name: bad-tuple-constr-Epoch3_3-Clarity4, code_body: [..], clarity_version: Some(Clarity4))",
vm_error: "Some(:0:0: invalid tuple syntax: defining \'name\' conflicts with previous value) [NON-CONSENSUS BREAKING]",
return_type: Response(ResponseData(
committed: false,
data: Optional(OptionalData(
data: None,
)),
)),
cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
),
],
total_block_cost: ExecutionCost(
write_length: 9,
write_count: 1,
read_length: 1,
read_count: 1,
runtime: 1030,
),
)),
]
Loading
Loading