ItemRegistry - LudexCS/LudexWeb3Integration GitHub Wiki
- IReadonlyFacade, IMetaTXFacade, IAdminFacade, IServiceFacadeμμ μμ± κ°λ₯
async function sellerOf(itemID: bigint): Promise<undefined|Address>
μμ΄ν μ νλ§€μμ μ£Όμλ₯Ό νμΈνλ ν¨μ
- itemID: μμ΄ν μ ID, 32bit μ μ
- undefined|Address: μμ΄ν μ΄ λ±λ‘λμ§ μμ κ²½μ° undefined, μμ΄ν μ΄ λ±λ‘λ κ²½μ° νλ§€μμ μ£Όμ
async function ancestorsOf(itemID: bigint, hierarchy: number): Promise<Array<bigint>>
μμ΄ν μ΄ μν₯μ λ°κ³ μλ μμ΄ν λ€μ νμΈνλ ν¨μ
- itemID: μμ΄ν μ ID, 32bit μ μ
- hierarchy: κ³λ³΄λ₯Ό μΌλ§λ κ±°μ¬λ¬ μ¬λΌκ° μ§λ₯Ό μ νλ κ°, μλ₯Ό λ€μ΄ μ΄ κ°μ΄ 2μ΄λ©΄, μμ 2μΈλκΉμ§λ₯Ό νμΈ
- Array: νμΈλ μμ΄ν λ€μ ID(32bit μ μ)μ λ°°μ΄
async function descendentsOf (itemID: bigint, hierarchy: number): Promise<Array<bigint>>
- itemID: μμ΄ν μ ID, 32bit μ μ
- hierarchy: κ³λ³΄λ₯Ό μΌλ§λ κ±°μ¬λ¬ μ¬λΌκ° μ§λ₯Ό μ νλ κ°, μλ₯Ό λ€μ΄ μ΄ κ°μ΄ 2μ΄λ©΄, μλμ 2μΈλκΉμ§λ₯Ό νμΈ
- Array: νμΈλ μμ΄ν λ€μ ID(32bit μ μ)μ λ°°μ΄
- ReadonlyAccessμ κΈ°λ₯μ μμ
- IMetaTXFacadeμμ μμ± κ°λ₯
- ReadonlyAccessμ κΈ°λ₯μ μμ
- IAdminFacade, IServiceFacadeμμ μμ± κ°λ₯
async function suspendItemSale (itemID: bigint): Promise<Array<bigint>>
νΉμ μμ΄ν μ νλ§€λ₯Ό μ€λ¨νλ ν¨μ
- itemID: μμ΄ν μ ID, 32bit μ μ
- Array: ν΄λΉ μ€λ¨ κ²°μ μΌλ‘ μΈν΄ ν¨κ» μ€λ¨λ μμ΄ν λ€μ ID(32bit μ μ) λ°°μ΄
async function resumeItemSale (itemID: bigint): Promise<Array<bigint>>
νλ§€κ° μ€λ¨λμλ μμ΄ν μ νλ§€λ₯Ό μ¬κ°νλ ν¨μ
- itemID: μμ΄ν μ ID, 32bit μ μ
- Array: ν΄λΉ μ¬κ° κ²°μ μΌλ‘ μΈν΄ ν¨κ» νλ§€ μ¬κ°λ μμ΄ν λ€μ ID(32bit μ μ) λ°°μ΄
- AdminAccessμ κΈ°λ₯ μμ
- IServiceFacadeμμ μμ± κ°λ₯
async function registerItem (itemName: string, seller: Address, parents: Array<bigint>): Promise<bigint>
- itemName: λ±λ‘ν μμ΄ν μ μ΄λ¦
- seller: νλ§€μμ κ³μ’ μ£Όμ (Address)
- parents: λ±λ‘ν μμ΄ν μ΄ μν₯ λ°μ μμ΄ν λ€μ μ΄λ¦
- bigint: λ±λ‘λ μμ΄ν μ ID, 32bit μ μ