From 2f84a416e198fa36d6a480944100d85d078acbcd Mon Sep 17 00:00:00 2001 From: david Date: Thu, 9 Apr 2026 13:44:41 +0200 Subject: [PATCH] fix: configure Vector testnet slot config for Lucid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SLOT_CONFIG_NETWORK.Mainnet was using Cardano mainnet genesis (2020), causing POSIX→slot conversion to produce slots far beyond the Vector testnet's era boundaries. Set to Vector testnet genesis 2025-07-09. Co-Authored-By: Claude Sonnet 4.6 --- src/vector/governance.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vector/governance.ts b/src/vector/governance.ts index 74643c0..dd4519b 100644 --- a/src/vector/governance.ts +++ b/src/vector/governance.ts @@ -3,7 +3,10 @@ // Game 6 of the Vector game theory ecosystem import { z } from "zod"; -import { Lucid, fromText, toText, Data, Constr, credentialToAddress, getAddressDetails } from '@lucid-evolution/lucid'; +import { Lucid, fromText, toText, Data, Constr, credentialToAddress, getAddressDetails, SLOT_CONFIG_NETWORK } from '@lucid-evolution/lucid'; + +// Vector testnet slot config — system start 2025-07-09T10:38:04Z, 1s slots +SLOT_CONFIG_NETWORK.Mainnet = { zeroTime: 1752057484000, zeroSlot: 0, slotLength: 1000 }; import { blake2b } from '@noble/hashes/blake2b'; import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3'; import { OgmiosProvider } from './ogmios-provider.js';