const receipts = [];
for (let guard = 0; guard < 64; ++guard) {
const next = await buildNextTransaction({
client, planned, receipts,
limits, fork,
});
if (!next) break;
const submitted = await send(next);
receipts.push(submitted.reference);
}
const progress = await readLaunchProgress({
client, planned, receipts,
});
assert.equal(
progress.canonical.phase,
LifecyclePhase.Active,
);
npm install @black-market/sdk viemSource ↗hashes = []
while True:
step = build_next_transaction(
client, launch, account=account,
transaction_hashes=hashes,
fork=fork,
)
if step is None:
break
receipt = send(
client, step.as_transaction()
)
transaction_hash = Web3.to_hex(
receipt["transactionHash"]
)
hashes.append(transaction_hash)
progress = read_launch_progress(
client, plan,
transaction_hashes=hashes,
)
if (
progress.phase != LifecyclePhase.ACTIVE
or progress.token.lower()
!= launch.predicted_token.lower()
or progress.prepared_markets
!= len(plan.markets)
):
raise AssertionError(
"actual SDK sequence did not activate "
"the full deterministic launch"
)