Home > @infiniteobjects/models > AssetContractAllowListModel
AllowList Entity. Used to determine if a contract is explicitly allowed/disallowed for printing
Signature:
export declare class AssetContractAllowListModel extends BaseFirebaseEntity implements IAssetContractAllowListSchema
Extends: BaseFirebaseEntity
Implements: IAssetContractAllowListSchema
| Property | Modifiers | Type | Description |
|---|---|---|---|
| address | string | Contract address on the Blockchain | |
| blockchain | Blockchain | Blockchain one off enumeration values. | |
| dateCreated | Date | ||
| dateUpdated | Date | ||
| id | string | Unique identifier | |
| isAllowed | boolean | Whether printing is allowed for the collection | |
| name | string | Collection name | |
| reason | AssetContractAllowListReason | Reason why printing is/isn’t allowed | |
| schemaVersion | AssetContractAllowListVersion | The version of the collection copyright record |
| Method | Modifiers | Description |
|---|---|---|
| decodeId(id) | static |
Decodes the ID in to an address and Blockchain Network |
| encodeId(blockchain, address) | static |
Generates an ID from a contract addres and Blockchain network |
| onInit() | Called internally after a document is: - Returned from the DB. - A new Instance is created - On new documents after the doc.OnCreate() hook. |
|
| toEmbedded() | Serializes this class as an simplified object | |
| toModel() | Serializes this class back to the model | |
| toSchema() | Serializes this class to the Schema type |