Skip to main content

PackState

Key states:

OPEN_PACK_SUCCEEDED: It means this is ready to show moments to users, and moments fulfillment will start soon. OPEN_PACK_FAILED: Open pack is initiated, but failed before fulfilling moments. It is not ready to show moments to users. FULFILL_PACK_REQUESTED: It means moments fulfillment started. on-chain. FULFILL_PACK_FAILED: All moments or part of the moments fulfillment failed. FULFILL_PACK_SUCCEEDED: All moments are fulfilled successfully.

Other states:

FULFILL_PACK_TIMEOUT & FULFILL_PACK_EXPIRED: Since moment fulfillment consists of multiple on-chain transactions, these transactions are probably timeout or expired. But these two states are not used at the moment. Timeout on-chain transactions or expired transactions are treated as failed.

enum PackState {
SEALED
OPEN_PACK_REQUESTED
OPEN_PACK_FAILED
OPEN_PACK_SUCCEEDED
FULFILL_PACK_REQUESTED
FULFILL_PACK_TIMEOUT
FULFILL_PACK_EXPIRED
FULFILL_PACK_FAILED
FULFILL_PACK_SUCCEEDED
COMMITHASH_GENERATED
}

Values

SEALED

OPEN_PACK_REQUESTED

OPEN_PACK_FAILED

OPEN_PACK_SUCCEEDED

FULFILL_PACK_REQUESTED

FULFILL_PACK_TIMEOUT

FULFILL_PACK_EXPIRED

FULFILL_PACK_FAILED

FULFILL_PACK_SUCCEEDED

COMMITHASH_GENERATED

Member of

Pack object