Skip to content

StoreInterface

Defined in: packages/store-kit/src/types.ts:30

Type Parameters

TState

Methods

assemble()

assemble(): Promise<TState>

Defined in: packages/store-kit/src/types.ts:69

Merges and consolidates the required components or elements into a single state object.

Returns

Promise<TState>

The resulting state after the assembly process is completed.


setAccount()

setAccount(deployer, sync): this

Defined in: packages/store-kit/src/types.ts:54

Sets the account for the given deployer and determines synchronization behavior.

This will override any TransactionSigners associated with the WalletManager.

Parameters

deployer

The deployer instance to set, or null to clear the account.

null | TransactionSignerAccount

sync

boolean

A boolean indicating whether the account should be synchronized.

Returns

this


setAlgorand()

setAlgorand(algorand): this

Defined in: packages/store-kit/src/types.ts:44

Sets the Algorand client for the store.

Parameters

algorand

The Algorand client instance to set, or null to unset it.

null | AlgorandClient

Returns

this

The store instance with the updated Algorand client.


setAppId()

setAppId(appId, sync?): Promise<StoreInterface<TState>>

Defined in: packages/store-kit/src/types.ts:62

Sets the application ID for the store.

Parameters

appId

bigint

The application ID to associate with the store.

sync?

boolean

Optionally trigger all lifecycle events, defaults to false

Returns

Promise<StoreInterface<TState>>


setManager()

setManager(manager): this

Defined in: packages/store-kit/src/types.ts:36

Sets the manager for the store.

Parameters

manager

The manager instance to be set, or null to unset the manager.

null | WalletManager

Returns

this