Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • StorageAccount

Index

Constructors

Properties

accountCounterSeed: number

Counter at time of initialization

creationEpoch: number

Time of storage account creation

creationTime: number

Time of storage account creation

delCounter: number

Counter tracking how many files have been deleted

deleteRequestEpoch: number

Delete request epoch

identifier: string

Some unique identifier that the user provides. Serves as a seed for storage account PDA.

immutable: boolean

Boolean to track whether storage account (and all child File accounts) are immutable

initCounter: number

Flag on whether storage account is public (usable by anyone) Counter tracking how many files have been initialized

isStatic: boolean

Immutable boolean to track what kind of storage account this is. NOTE: Not used in current implementation w/ non-dynamic storage payments

lastFeeEpoch: number

The last epoch through which the user paid

owner1: PublicKey

Primary owner of StorageAccount (immutable)

owner2: PublicKey

Optional owner 2

shdwPayer: PublicKey

Pubkey of the token account that staked SHDW

storage: BN

Number of bytes of storage associated with this account

storageAvailable: BN

Bytes available for use

toBeDeleted: boolean

Delete flag

totalCostOfCurrentStorage: BN

Total shades paid for current box size

totalFeesPaid: BN
discriminator: Buffer = ...
layout: any = ...

Methods

  • toJSON(): StorageAccountJSON
  • fetchMultiple(c: Connection, addresses: PublicKey[]): Promise<StorageAccount[]>

Generated using TypeDoc