Trade Ledger Management
Trade Ledgers serve as the foundation for trading NFTs within a specific collection and currency.
1.1 Create Trade Ledger
Function:
public fun create_trade_ledger<CURRENCY>(
registry: &mut LedgerRegistry,
collection_cap: &CollectionCap,
clock: &Clock,
ctx: &mut TxContext
)
Description:
Registers a new trade ledger for an NFT collection.
Ensures only the collection creator can create a ledger.
Stores collection metadata and tracks all buy/sell offers.
Validations:
The sender must be the creator of the collection.
The ledger must not already exist.
Last updated