Skip to content

@props-labs/fuelsDocs


@props-labs/fuels / EditionManager

Class: EditionManager

EditionManager

Classdesc

Manages editions within the Props SDK on the Fuel network.

Extends

  • PropsContractManager

Constructors

new EditionManager()

new EditionManager(): EditionManager

Creates a new instance of the EditionManager class.

Returns

EditionManager

Overrides

PropsContractManager.constructor

Defined in

edition/edition-manager.ts:25

Properties

events

events: PropsEvents

Inherited from

PropsContractManager.events

Defined in

contract/contract-manager.ts:8

Methods

create()

create(params): Promise<Edition>

Creates a new edition.

Parameters

params: EditionCreateOptions

Additional configuration options for creating the edition.

Returns

Promise<Edition>

A promise that resolves to the ID of the created edition.

Defined in

edition/edition-manager.ts:35


emit()

emit(event, ...args): void

Parameters

event: string

• ...args: any[]

Returns

void

Inherited from

PropsContractManager.emit

Defined in

core/events.ts:102


get()

get(editionId, owner): Promise<Edition>

Gets the details of a specific edition.

Parameters

editionId: string

The ID of the edition to retrieve.

owner: Account

Returns

Promise<Edition>

A promise that resolves to the edition object.

Defined in

edition/edition-manager.ts:245


list()

list(owner, network): Promise<Edition[]>

Parameters

owner: Account

network: Network = defaultNetwork

Returns

Promise<Edition[]>

Defined in

edition/edition-manager.ts:144


on()

on(event, listener): void

Parameters

event: string

listener

Returns

void

Inherited from

PropsContractManager.on

Defined in

core/events.ts:95


removeAllListeners()

removeAllListeners(event?): void

Parameters

event?: string

Returns

void

Inherited from

PropsContractManager.removeAllListeners

Defined in

core/events.ts:116


removeListener()

removeListener(event, listener): void

Parameters

event: string

listener

Returns

void

Inherited from

PropsContractManager.removeListener

Defined in

core/events.ts:108


updateMetadata()

updateMetadata(editionId, metadata): Promise<void>

Updates the metadata of a specific edition.

Parameters

editionId: string

The ID of the edition.

metadata: NFTMetadata

The new metadata for the edition.

Returns

Promise<void>

A promise that resolves when the metadata has been updated.

Defined in

edition/edition-manager.ts:277