Skip to content

Latest commit

 

History

History
116 lines (100 loc) · 6.41 KB

File metadata and controls

116 lines (100 loc) · 6.41 KB

Accumulate STF Test Vectors

Schema

Both the binary and json formats adhere to the overarching JAM protocol ASN.1 schema, as well as the specific vectors schema defined for these test cases.

Test Service Code

Test vectors invoke the accumulate method of the provided test-service.

The PVM binary, which refers to the compiled version of the test-service, is generated using the jam-pvm-build tool.

Due to differences in dependencies and compiler versions, the resulting binary artifact frequently varies, even when generated from identical source code. As a result, you can just rely on the code blob embedded in the test vectors, which is available within the accounts map.

Statistics

A subset of service activity statistics ($π_S$) updated by the STF subsystem used to process these test vectors.

In particular the accumulate-count (a.0), accumulate-gas-used (a.1), on-transfers-count (t.0) and on-transfers-gas-used (t.1).

Gas Costs

The gas cost for a single instruction is set to $1$, unlike in GP where it is set to $0$. This distinction is primarily intended to verify correct tracking of gas consumption.

All host calls have a gas cost of $10$, with the following exceptions:

  • transfer: Gas cost is set to $10 + \omega_9$, as specified in the GP.
  • log: Gas cost is set to 0, as defined in JIP-1.

Tiny Vectors

Full Vectors

Currently, the same test cases as tiny vectors but at a larger scale.