PoolTestChain class

The fixture's two rounds as transactions, built the way pool_round_v_test builds them: issuance R0, witness W0, slots Y0 to Y2, the depositor's covenant D, rounds R1 and R2 and their witnesses. Nothing here runs a script; the round V test does that for the same chain.

Properties

depositOutpoint ↔ List<int>
latefinal
depositTx ↔ Transaction
latefinal
f → PoolChainFixture
final
genesisHeader → List<int>
no setter
hashCode → int
The hash code for this object.
no setterinherited
identity → PP1Fields
The pool's identity as a descriptor publishes it, read off the issuance's own PP1 through the body check.
latefinal
opPub → SVPublicKey
final
r0 ↔ Transaction
latefinal
r1 ↔ Transaction
latefinal
r2 ↔ Transaction
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signer → TransactionSigner
final
svc → ShieldedPoolTool
final
tokenId → List<int>
no setter
w0 ↔ Transaction
latefinal
w1 ↔ Transaction
latefinal
w2 ↔ Transaction
latefinal
y0 ↔ ({List<int> outpoint, List<int> parts, Transaction tx})
latefinal
y1 ↔ ({List<int> outpoint, List<int> parts, Transaction tx})
latefinal
y2 ↔ ({List<int> outpoint, List<int> parts, Transaction tx})
latefinal

Methods

catchUpSource({int minedTip = 2, TestPlacement? placement}) → CatchUpSource
The chain as a pool answers catch-up from it, with rounds up to minedTip (0 to 2) mined, so a wallet's fake pool answers exactly as a coordinator does (responder).
descriptor({int catchUpRange = 1024}) → PoolDescriptor
The pool's descriptor, as its coordinator puts it first on the feed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
responder({int minedTip = 2, TestPlacement? placement, int catchUpRange = 1024}) → PoolCatchUpResponder
catchUpSource behind the pool's own rules for answering.
round1({PoolHeader? header, ({List<int> outpoint, List<int> parts, Transaction tx})? next, UnlockingScriptBuilder? slotUnlocker}) → Transaction
round2(Transaction r1, Transaction w1, {PoolHeader? header, ({List<int> outpoint, List<int> parts, Transaction tx})? next, UnlockingScriptBuilder? slotUnlocker}) → Transaction
slot(PoolHeader h, int n) → ({List<int> outpoint, List<int> parts, Transaction tx})
toString() → String
A string representation of this object.
inherited
vUnlock(Transaction round) → List<int>
The unlock V's slot takes in round 1 or 2 as the tool built it.
witness1(Transaction r1, {PoolHeader? header, ({List<int> outpoint, List<int> parts, Transaction tx})? next, List<int>? bundles}) → Transaction
witness2(Transaction r2, Transaction r1, {PoolHeader? header, ({List<int> outpoint, List<int> parts, Transaction tx})? next, List<int>? bundles}) → Transaction

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

build({bool production = false}) → Future<PoolTestChain>