eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

Add eluvio-live object to tenant #132

Closed elv-serban closed 1 year ago

elv-serban commented 1 year ago

Background

The tenant contract has an associated content fabric object. Use the content fabric object metadata to store special services information (information that is needed by applications or content fabric itself but not needed on chain).

Tenant provisioning

When creating the Eluvio Live object for this tenant, also add it to the tenant fabric metadata:

{
  "public": {
    "eluvio_live_id": "iq__3UrZaAFZgoBkDLuuDuesqY5rQZy5",
  }
}

There is a function that sets this metadata field already TenantSetEluvioLiveId()

Tenant show

Show a 'Services' section:

services
  - eluvio_live_id:  iq__3UrZaAFZgoBkDLuuDuesqY5rQZy5

(currently we only store information for one service but there may be multiple in the future)

Add option elv-admin tenant show --show_metadata:

elv-Noppapon commented 1 year ago

Will be merged into the new tenant show PR: https://github.com/elv-Noppapon/elv-live-js/pull/1 #124

elv-Noppapon commented 1 year ago

Merged to branch tenant in PR