CollectiblesController Actions
13 actions registered.
| Name | Deprecated |
|---|---|
checkSales | |
completeOnboarding | |
completePack | |
completePacks | |
dismissOperation | |
generatePack | |
getState | |
markPackRevealed | |
prepareIndexedOpening | |
recoverOperations | |
resetOnboarding | |
sellCard | |
sellCards |
CollectiblesController:checkSales
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:109
Refreshes this session's pending sales by operation ID, without waiting on purchases. Never signs or submits; API failures propagate to the caller.
Parameters:
| Name | Description |
|---|---|
params | Solana address whose sales are checked. |
Handler signature:
(params: Parameters<PackPartnerProvider['checkSales']>[0]) => Promise<void>
CollectiblesController:completeOnboarding
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:11
Records wallet-wide onboarding completion without changing financial state.
Handler signature:
() => void
CollectiblesController:completePack
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:49
Completes a purchase through its provider.
Parameters:
| Name | Description |
|---|---|
params | Account and purchase memo. |
Handler signature:
(params: Parameters<PackPartnerProvider['completePack']>[0]) => Promise<PackPartnerCard | undefined>
CollectiblesController:completePacks
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:59
Completes each transaction of the already reviewed purchase.
Parameters:
| Name | Description |
|---|---|
params | Account and batch entry memo. |
Handler signature:
(params: Parameters<PackPartnerProvider['completePacks']>[0]) => Promise<void>
CollectiblesController:dismissOperation
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:87
Lets the provider dismiss a finished operation.
Parameters:
| Name | Description |
|---|---|
params | Account and operation memo. |
Handler signature:
(params: Parameters<PackPartnerProvider['dismissOperation']>[0]) => void
CollectiblesController:generatePack
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:29
Prepares a purchase with the pack's provider.
Parameters:
| Name | Description |
|---|---|
params | Account and pack to buy. |
Handler signature:
(params: Parameters<PackPartnerProvider['generatePack']>[0]) => Promise<string>
CollectiblesController:getState
Source: app/components/UI/Collectibles/controllers/CollectiblesController.ts:41
Handler signature:
() => CollectiblesControllerState
CollectiblesController:markPackRevealed
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:67
Saves the reveal position independently of payment and opening.
Handler signature:
(params: Parameters<PackPartnerProvider['markPackRevealed']>[0]) => void
CollectiblesController:prepareIndexedOpening
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:39
Prepares an indexed purchase for the buyer's explicit opening action.
Parameters:
| Name | Description |
|---|---|
params | The indexed pack and current account. |
Handler signature:
(params: Parameters<PackPartnerProvider['prepareIndexedOpening']>[0]) => Promise<string>
CollectiblesController:recoverOperations
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:98
Refreshes this session's submitted purchases and sales by operation ID. Never signs or submits; API failures propagate to the caller.
Parameters:
| Name | Description |
|---|---|
params | Solana address to recover. |
Handler signature:
(params: Parameters<PackPartnerProvider['recoverOperations']>[0]) => Promise<void>
CollectiblesController:resetOnboarding
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:19
Allows the development menu to replay onboarding.
Handler signature:
() => void
CollectiblesController:sellCard
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:119
Sells a card through its provider at no less than the confirmed amount.
Parameters:
| Name | Description |
|---|---|
params | Account, card cardId, its standard and the refund shown to the user. |
Handler signature:
(params: Parameters<PackPartnerProvider['sellCard']>[0]) => Promise<PackPartnerSaleResult>
CollectiblesController:sellCards
Source: app/components/UI/Collectibles/controllers/CollectiblesController-method-action-types.ts:77
Sells the selected cards at their individually confirmed minimum amounts.
Parameters:
| Name | Description |
|---|---|
params | Account and reviewed cardId/amount pairs. |
Handler signature:
(params: Parameters<PackPartnerProvider['sellCards']>[0]) => Promise<void>