Ledger - LudexCS/LudexWeb3Integration GitHub Wiki
- IReadonlyFacade, IMetaTXFacade, IAdminFacade, IServiceFacade์์ ์์ฑ ๊ฐ๋ฅ
async function getPurchaseID(buyer: Address, itemID: bigint, timestamp: Date): Promise<undefined|Date>
ํน์ ๊ตฌ๋งค ๋ชฉ๋ก์ ID๋ฅผ ๋ฆฌํดํ๋ ํจ์
- buyer: ๊ตฌ๋งค์์ ์ฃผ์
- itemID: ๊ตฌ๋งค๋ ์์ดํ ์ ID, 32bit ์ ์ ๊ฐ
- timestamp: ๊ตฌ๋งค ์์ ํ์ ์คํฌํ ๊ฐ
- undefined|bigint: ํด๋นํ๋ ๊ตฌ๋งค ๊ธฐ๋ก์ด ์๋ ๊ฒฝ์ฐ undefined, ๊ตฌ๋งค ๊ธฐ๋ก์ด ์๋ ๊ฒฝ์ฐ ํด๋น ๊ตฌ๋งค ๊ธฐ๋ก์ NFT ID (256bit ์ ์)
async function proveOwnership(buyer: Address, itemID: bigint): Promise<boolean>
ํน์ ์์ดํ ์ ๋ํด ํน์ ์ฃผ์๊ฐ ๊ตฌ๋งค ๊ธฐ๋ก์ ๊ฐ๊ณ ์์์ ์ฆ๋ช ํ๋ ํจ์
- buyer: ๊ตฌ๋งค์์ ์ฃผ์
- itemID: ๊ตฌ๋งคํ ์์ดํ ์ ID, 32bit ์ ์ ๊ฐ
- boolean: ํด๋น ์ฃผ์๊ฐ ํด๋น ์์ดํ ์ ๊ตฌ๋งคํ ๊ธฐ๋ก์ด ์์ผ๋ฉด true, ๊ทธ๋ ์ง ์์ผ๋ฉด false
async function getPurchaseInfo(tokenID: bigint): Promise<Purchase>
ํน์ ๊ตฌ๋งค ๊ธฐ๋ก ID๋ก๋ถํฐ ๊ตฌ๋งค ๊ธฐ๋ก์ ํ์ธํ๋ ํจ์
- tokenID: ๊ตฌ๋งค ๊ธฐ๋ก์ NFT ID ๊ฐ. 256bit ์ ์
- Purchase: ๊ตฌ๋งค ๊ธฐ๋ก์ ์ ๋ณด
- ReadonlyAccess์ ๊ธฐ๋ฅ์ ์์
- IMetaTXFacade์์ ์์ฑ ๊ฐ๋ฅ
- ReadonlyAccess์ ๊ธฐ๋ฅ์ ์์
- IAdminFacade, IServiceAccess์์ ์์ฑ ๊ฐ๋ฅ
- AdminAccess์ ๊ธฐ๋ฅ์ ์์
- IServiceFacade์์ ์์ฑ ๊ฐ๋ฅ