singular-registry
Safe HaskellNone
LanguageGHC2021

Naming.Wire.Vectors

Description

The four epic-15 wire vectors, vendored byte-for-byte from the accepted contract so the suite needs no network. These are the contract's bytes. If the codec disagrees with them, the vectors are right and the codec is wrong.

Synopsis

Documentation

wd01Id :: String Source #

The corpus row ids these bytes correspond to.

Registry mode (#156) renamed the wire corpus. The BYTES did not move — every value below is the byte the v0.2.0 contract pinned, unchanged — so what is adopted here is the inventory, not the contract's content:

  • WD01-four-field-roundtrip -> WD01-fixture-datum-roundtrip
  • WD03-two-destinations-refused -> WD02-two-destinations-refused

WD02-datum-hash-refused and WR01-insert-request-refund-roundtrip have no row in the registry-mode corpus: the attachment rule and the witness-request roundtrip became statements (inline_datum_only, witness_request_wire_roundtrip) rather than exported rows. Their vendored bytes stay, and the byte-exact suite keeps exercising them; they are simply no longer comparable against a live row, which vendoredPairs records.

wd02Id :: String Source #

Retired from the live corpus; see the note above. Kept for the byte-exact suite, which still covers it.

wd03Id :: String Source #

Carries the two-destination refusal, which the registry-mode corpus publishes under the WD02 number.

wr01Id :: String Source #

Retired from the live corpus; see the note above.

wd01Fixture :: NamingDatum Source #

WD01's fixture, the contract's canonical four-field datum.

wd01ExpectedBytes :: ByteString Source #

WD01 expectedBytes: encoding the fixture must produce exactly these 205 bytes.

wd01MalformedBytes :: ByteString Source #

WD01 malformedBytes: the expected bytes truncated by one byte; decoding must produce nothing (malformedResult: null).

wd01Shape :: DatumShape Source #

WD01 shape: {arity: 4, innerIndex: 0, outerIndex: 0}.

wd02Attachment :: DatumAttachment Source #

WD02's attachment: a datum hash instead of an inline datum — refused (result: null).

wd03Encoded :: WireData Source #

WD03's encoded datum: the canonical datum with the payment destination replaced by constr(1,[bytes, bytes]) — two destination addresses (bytes 61 55… and 61 71…), refused (result: null).

wr01StoredProposal :: InsertProposal Source #

The WR01 stored proposal: refund address 60.

wr01RedirectedProposal :: InsertProposal Source #

WR01's redirected proposal: same proposal, refund address 61.

wr01ExpectedBytes :: ByteString Source #

WR01 expectedBytes: serialising the stored proposal's commitment must produce exactly these 36 bytes.

wr01MalformedBytes :: ByteString Source #

WR01 malformedBytes: truncated; decoding must produce nothing.

wr01RedirectedBytes :: ByteString Source #

WR01 redirectedBytes: the commitment serialisation with the refund address redirected to 61.

wr01StoredRefundAddress :: Integer Source #

WR01 storedRefundAddress.

wr01PresentedRefundAddress :: Integer Source #

WR01 presentedRefundAddress.

wr01Shape :: InsertRequestShape Source #

WR01 shape: {commitmentIndex: 0, commitmentArity: 1, proposalIndex: 0, proposalArity: 6}.

wr01ComparisonResult :: RefundComparison Source #

WR01 comparisonResult: {accepted: false, reason: "withdraw-refund-address"}.