mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
Consolidates origin/z/bridgev2-dot-broadcast. Conflicts resolved: - internal/broadcast/client.go: DOT case added alongside EVM/BTC/SOL; ErrFamilyNotImplemented now lists only TON/XRP as pending - cmd/bridge/release_pool.go: dropped DOT agent's keyspace + ReleasePool WithKey shape; kept BTC's family-based design (LoadEntries(ctx,family)) as the single source of truth. Added FamilyDOT constant + dual Pubkey fields (raw []byte for BTC/XRP, hex string ECDSAPubKey for DOT) - cmd/bridge/zap_store.go: kept HEAD's releasePoolKey(family,idx) signature; dropped DOT agent's NS variants; added defensive isAllDigits filter on the iterator suffix - cmd/bridge/signing_driver.go: DOT assembler/chain-ctx slots threaded alongside SOL/BTC; pool acquisition picks dotPool for DOT destinations but defers to poolSet when present (routes by family) - cmd/bridge/main.go: DOT release pool wired through releasePoolSet.DOT; signer wires all four assemblers (EVM, SOL, BTC, DOT) - cmd/bridge/release_pool_set.go: added DOT slot to ReleasePoolSet + Size/FamilySizes/PoolFor/poolFor coverage - internal/mchain/client.go: Wallet.ECDSAPubKey stays []byte (BTC's choice) — DOT consumers hex-encode when persisting - release_pool_dot_test.go + dot_signing_test.go: rewritten to use PutEntry(family, idx, entry) family-based API - internal/mchain/client_test.go: updated ECDSAPubKey assertion to hex.EncodeToString since field is []byte not string