Interface AccountStoreI

Hierarchy

  • AccountStoreI

Implemented by

Properties

addApp: ((appID: number, appDefinition: AppDefinitionFromSource) => CreatedAppM)

Type declaration

    • (appID: number, appDefinition: AppDefinitionFromSource): CreatedAppM
    • Parameters

      • appID: number
      • appDefinition: AppDefinitionFromSource

      Returns CreatedAppM

addAsset: ((assetId: number, name: string, asadef: {
    clawback?: string;
    decimals: number | bigint;
    defaultFrozen?: boolean;
    freeze?: string;
    manager?: string;
    metadataHash?: string | Uint8Array | Buffer;
    name?: string;
    note?: string;
    noteb64?: string;
    optInAccNames?: string[];
    reserve?: string;
    total: string | number | bigint;
    unitName?: string;
    url?: string;
}) => AssetParams)

Type declaration

    • (assetId: number, name: string, asadef: {
          clawback?: string;
          decimals: number | bigint;
          defaultFrozen?: boolean;
          freeze?: string;
          manager?: string;
          metadataHash?: string | Uint8Array | Buffer;
          name?: string;
          note?: string;
          noteb64?: string;
          optInAccNames?: string[];
          reserve?: string;
          total: string | number | bigint;
          unitName?: string;
          url?: string;
      }): AssetParams
    • Parameters

      • assetId: number
      • name: string
      • asadef: {
            clawback?: string;
            decimals: number | bigint;
            defaultFrozen?: boolean;
            freeze?: string;
            manager?: string;
            metadataHash?: string | Uint8Array | Buffer;
            name?: string;
            note?: string;
            noteb64?: string;
            optInAccNames?: string[];
            reserve?: string;
            total: string | number | bigint;
            unitName?: string;
            url?: string;
        }
        • Optional clawback?: string
        • decimals: number | bigint
        • Optional defaultFrozen?: boolean
        • Optional freeze?: string
        • Optional manager?: string
        • Optional metadataHash?: string | Uint8Array | Buffer
        • Optional name?: string
        • Optional note?: string
        • Optional noteb64?: string
        • Optional optInAccNames?: string[]
        • Optional reserve?: string
        • total: string | number | bigint
        • Optional unitName?: string
        • Optional url?: string

      Returns AssetParams

address: string
amount: bigint
appsLocalState: Map<number, AppLocalStateM>
appsTotalSchema: ApplicationStateSchema
assets: Map<number, AssetHoldingM>
balance: (() => bigint)

Type declaration

    • (): bigint
    • Returns bigint

closeApp: ((appID: number) => void)

Type declaration

    • (appID: number): void
    • Parameters

      • appID: number

      Returns void

closeAsset: ((assetId: number) => void)

Type declaration

    • (assetId: number): void
    • Parameters

      • assetId: number

      Returns void

createdApps: Map<number, SSCAttributesM>
createdAssets: Map<number, AssetParams>
deleteApp: ((appID: number) => void)

Type declaration

    • (appID: number): void
    • Parameters

      • appID: number

      Returns void

destroyAsset: ((assetId: number) => void)

Type declaration

    • (assetId: number): void
    • Parameters

      • assetId: number

      Returns void

getApp: ((appID: number) => undefined | SSCAttributesM)

Type declaration

getAppFromLocal: ((appID: number) => undefined | AppLocalStateM)

Type declaration

getAssetDef: ((assetId: number) => undefined | AssetParams)

Type declaration

    • (assetId: number): undefined | AssetParams
    • Parameters

      • assetId: number

      Returns undefined | AssetParams

getAssetHolding: ((assetId: number) => undefined | AssetHoldingM)

Type declaration

getGlobalState: ((appID: number, key: string | Uint8Array) => undefined | StackElem)

Type declaration

    • (appID: number, key: string | Uint8Array): undefined | StackElem
    • Parameters

      • appID: number
      • key: string | Uint8Array

      Returns undefined | StackElem

getLocalState: ((appID: number, key: string | Uint8Array) => undefined | StackElem)

Type declaration

    • (appID: number, key: string | Uint8Array): undefined | StackElem
    • Parameters

      • appID: number
      • key: string | Uint8Array

      Returns undefined | StackElem

getSpendAddress: (() => string)

Type declaration

    • (): string
    • Returns string

minBalance: number
modifyAsset: ((assetId: number, fields: AssetModFields) => void)

Type declaration

    • (assetId: number, fields: AssetModFields): void
    • Parameters

      • assetId: number
      • fields: AssetModFields

      Returns void

optInToASA: ((assetIndex: number, assetHolding: AssetHoldingM) => void)

Type declaration

optInToApp: ((appID: number, appParams: SSCAttributesM) => void)

Type declaration

rekeyTo: ((authAccountAddress: string) => void)

Type declaration

    • (authAccountAddress: string): void
    • Parameters

      • authAccountAddress: string

      Returns void

setFreezeState: ((assetId: number, state: boolean) => void)

Type declaration

    • (assetId: number, state: boolean): void
    • Parameters

      • assetId: number
      • state: boolean

      Returns void

setGlobalState: ((appID: number, key: string | Uint8Array, value: StackElem, line?: number) => void)

Type declaration

    • (appID: number, key: string | Uint8Array, value: StackElem, line?: number): void
    • Parameters

      • appID: number
      • key: string | Uint8Array
      • value: StackElem
      • Optional line: number

      Returns void

setLocalState: ((appID: number, key: string | Uint8Array, value: StackElem, line?: number) => AppLocalStateM)

Type declaration

Generated using TypeDoc