Ledger Registry (LedgerRegistry)
public struct LedgerRegistry has key {
id: UID, // Unique identifier for the registry
ledgers: Table<LedgerKey, ID> // Mapping from (collection_id, currency_type) → TradeLedger ID
}
Ledger Key
public struct LedgerKey has store, copy, drop {
collection_id: ID, // NFT collection ID
currency_type: TypeName // Currency used for trading
}
Purpose
Last updated