OpenChrono
  • OpenChrono Docs
  • About OpenChrono.io
    • What is OpenChrono?
    • Digital Twins & TimePiece Passports™
    • OpenChrono Architecture
    • Authentication Standards
    • Authentication Process
    • Our Team
    • Our Partners
  • Product Tour
    • Marketplace
    • Platform Navigation
      • Search For A Watch
      • Buy A Watch
      • Sell A Watch
      • Redeem A Watch
      • Account Wallets
      • Lending
    • Platform Fees
    • Payment Methods
    • Vault Your Watch
    • Buyer Protection
    • Seller Protection
  • Platform Technical Info
    • Smart Contracts
    • TimePiece Passport™ Tech
    • Royalties
    • Escrow Lifecycle
    • Contract Addresses
    • Minting
    • Creating A Digital Twin
    • Document Updates
    • Metadata Format
    • Deploying & Upgrading
    • Fee Structure
  • Logistics & Legal
    • Secure Vaults & Insurance
    • KYC / AML Checks
    • Last Mile Delivery
  • User Agreement
    • Users Terms of Service
    • Website Terms of Service
    • Privacy & Cookie Notice
  • Resources
    • WhitePaper
      • Untitled
      • Page 1
    • Useful Links
    • Careers
    • Investments & Funding
    • About OpenChrono
Powered by GitBook
On this page

Was this helpful?

  1. Platform Technical Info

Minting

Minting the token is done after all the required documents have been put together and uploaded to ArWeave. Minting is done by the backend. A mint queue is in place to ensure that all NFTs are correctly minted.

The mint function in the TimePieceNFT contract has a mechanism to avoid double mints.

/// @param to The owner of the watch
/// @param passportName A unique name to avoid double mints.
/// @param documentId The id of the document on external storage
function mint(
    address to,
    string calldata passportName,
    string calldata documentId
) external;

The passportName parameter avoid double mints by keeping track of the claim status of that passport name. So even if the backend sends two mint transactions with the same parameters, only one will be successful. This is because on the first mint passportName will be claimed.

Last updated 1 year ago

Was this helpful?