Class: MemoryStorage
@fuel-ts/account.MemoryStorage
Implements
Constructors
constructor
• new MemoryStorage(): MemoryStorage
Returns
Properties
storage
• storage: Map
<string
, unknown
>
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:4
Methods
clear
▸ clear(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:19
getItem
▸ getItem<T
>(key
): Promise
<null
| T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<null
| T
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:6
removeItem
▸ removeItem(key
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:15
setItem
▸ setItem(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:11