Ledger - LudexCS/LudexWeb3Integration GitHub Wiki

ReadonlyAccess (ILedgerReadonlyAccess)

getPurchaseID

async function getPurchaseID(buyer: Address, itemID: bigint, timestamp: Date): Promise<undefined|Date>

ํŠน์ • ๊ตฌ๋งค ๋ชฉ๋ก์˜ ID๋ฅผ ๋ฆฌํ„ดํ•˜๋Š” ํ•จ์ˆ˜

params

  • buyer: ๊ตฌ๋งค์ž์˜ ์ฃผ์†Œ
  • itemID: ๊ตฌ๋งค๋œ ์•„์ดํ…œ์˜ ID, 32bit ์ •์ˆ˜ ๊ฐ’
  • timestamp: ๊ตฌ๋งค ์‹œ์˜ ํƒ€์ž„ ์Šคํƒฌํ”„ ๊ฐ’

returns

  • undefined|bigint: ํ•ด๋‹นํ•˜๋Š” ๊ตฌ๋งค ๊ธฐ๋ก์ด ์—†๋Š” ๊ฒฝ์šฐ undefined, ๊ตฌ๋งค ๊ธฐ๋ก์ด ์žˆ๋Š” ๊ฒฝ์šฐ ํ•ด๋‹น ๊ตฌ๋งค ๊ธฐ๋ก์˜ NFT ID (256bit ์ •์ˆ˜)

proveOwnership

async function proveOwnership(buyer: Address, itemID: bigint): Promise<boolean>

ํŠน์ • ์•„์ดํ…œ์— ๋Œ€ํ•ด ํŠน์ • ์ฃผ์†Œ๊ฐ€ ๊ตฌ๋งค ๊ธฐ๋ก์„ ๊ฐ–๊ณ  ์žˆ์Œ์„ ์ฆ๋ช…ํ•˜๋Š” ํ•จ์ˆ˜

params

  • buyer: ๊ตฌ๋งค์ž์˜ ์ฃผ์†Œ
  • itemID: ๊ตฌ๋งคํ•œ ์•„์ดํ…œ์˜ ID, 32bit ์ •์ˆ˜ ๊ฐ’

returns

  • boolean: ํ•ด๋‹น ์ฃผ์†Œ๊ฐ€ ํ•ด๋‹น ์•„์ดํ…œ์„ ๊ตฌ๋งคํ•œ ๊ธฐ๋ก์ด ์žˆ์œผ๋ฉด true, ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด false

getPurchaseInfo

async function getPurchaseInfo(tokenID: bigint): Promise<Purchase>

ํŠน์ • ๊ตฌ๋งค ๊ธฐ๋ก ID๋กœ๋ถ€ํ„ฐ ๊ตฌ๋งค ๊ธฐ๋ก์„ ํ™•์ธํ•˜๋Š” ํ•จ์ˆ˜

params

  • tokenID: ๊ตฌ๋งค ๊ธฐ๋ก์˜ NFT ID ๊ฐ’. 256bit ์ •์ˆ˜

returns

  • Purchase: ๊ตฌ๋งค ๊ธฐ๋ก์˜ ์ •๋ณด

MetaTXAccess (ILedgerMetaTXAccess)

  • ReadonlyAccess์˜ ๊ธฐ๋Šฅ์„ ์ƒ์†
  • IMetaTXFacade์—์„œ ์ƒ์„ฑ ๊ฐ€๋Šฅ

AdminAccess (ILedgerAdminAccess)

  • ReadonlyAccess์˜ ๊ธฐ๋Šฅ์„ ์ƒ์†
  • IAdminFacade, IServiceAccess์—์„œ ์ƒ์„ฑ ๊ฐ€๋Šฅ

ServiceAccess (ILedgerServiceAccess)

  • AdminAccess์˜ ๊ธฐ๋Šฅ์„ ์ƒ์†
  • IServiceFacade์—์„œ ์ƒ์„ฑ ๊ฐ€๋Šฅ
โš ๏ธ **GitHub.com Fallback** โš ๏ธ