diff --git a/classes/SubtopiaClient.html b/classes/SubtopiaClient.html index efc0223..a4585b6 100644 --- a/classes/SubtopiaClient.html +++ b/classes/SubtopiaClient.html @@ -1,7 +1,7 @@ SubtopiaClient | subtopia-js-sdk

Class SubtopiaClient

The SubtopiaClient class is responsible for interacting with a Subtopia Product contracts on the Algorand blockchain. It provides methods for initializing the client, managing the lifecycle of the application, creating and managing subscriptions, and retrieving information about the application and subscriptions.

-

Constructors

Constructors

  • Parameters

    • __namedParameters: {
          algodClient: default;
          appAddress: string;
          appID: number;
          appSpec: ApplicationSpec;
          coin: AssetMetadata;
          creator: TransactionSignerAccount;
          oracleID: number;
          price: number;
          productName: string;
          registryID: number;
          subscriptionName: string;
          timeout: number;
          version: string;
      }
      • algodClient: default
      • appAddress: string
      • appID: number
      • appSpec: ApplicationSpec
      • coin: AssetMetadata
      • creator: TransactionSignerAccount
      • oracleID: number
      • price: number
      • productName: string
      • registryID: number
      • subscriptionName: string
      • timeout: number
      • version: string

    Returns SubtopiaClient

Properties

algodClient: default
appAddress: string
appID: number
creator: TransactionSignerAccount
oracleID: number
price: number
productName: string
registryID: number
subscriptionName: string
timeout: number
version: string

Methods

  • Claims a subscription for a given subscriber.

    +

Constructors

  • Parameters

    • __namedParameters: {
          algodClient: default;
          appAddress: string;
          appID: number;
          appSpec: ApplicationSpec;
          coin: AssetMetadata;
          creator: TransactionSignerAccount;
          oracleID: number;
          price: number;
          productName: string;
          registryID: number;
          subscriptionName: string;
          timeout: number;
          version: string;
      }
      • algodClient: default
      • appAddress: string
      • appID: number
      • appSpec: ApplicationSpec
      • coin: AssetMetadata
      • creator: TransactionSignerAccount
      • oracleID: number
      • price: number
      • productName: string
      • registryID: number
      • subscriptionName: string
      • timeout: number
      • version: string

    Returns SubtopiaClient

Properties

algodClient: default
appAddress: string
appID: number
creator: TransactionSignerAccount
oracleID: number
price: number
productName: string
registryID: number
subscriptionName: string
timeout: number
version: string

Methods

  • Claims a subscription for a given subscriber.

    Parameters

    • __namedParameters: {
          subscriber: TransactionSignerAccount;
          subscriptionID: number;
      }
      • subscriber: TransactionSignerAccount
      • subscriptionID: number

    Returns Promise<{
        txID: string;
    }>

    • The transaction ID of the executed transaction.
    -
  • This method is used to create a discount for a subscription. +

  • This method is used to create a discount for a subscription. The method returns the transaction ID.

    Parameters

    • __namedParameters: {
          discountType: DiscountType;
          discountValue: number;
          duration: Duration;
          expiresIn: number;
          parseWholeUnits?: boolean;
      }
      • discountType: DiscountType
      • discountValue: number
      • duration: Duration
      • expiresIn: number
      • Optional parseWholeUnits?: boolean

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to create a subscription. +

  • This method is used to create a subscription. It takes a subscriber and a duration as arguments and returns a promise that resolves to an object containing the transaction ID and subscription ID.

    Parameters

    • __namedParameters: {
          duration: Duration;
          subscriber: TransactionSignerAccount;
      }
      • duration: Duration
      • subscriber: TransactionSignerAccount

    Returns Promise<{
        subscriptionID: number;
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID and subscription ID.

    -
  • This method is used to delete a discount. It takes a duration object as an argument and returns a promise that resolves to an object containing the transaction ID.

    Parameters

    • duration: {
          duration: Duration;
      }

      The duration of the discount to be deleted.

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to delete a subscription. +

  • This method is used to delete a subscription. It takes a subscriber and a subscription ID as arguments and returns a promise that resolves to an object containing the transaction ID.

    Parameters

    • __namedParameters: {
          subscriber: TransactionSignerAccount;
          subscriptionID: number;
      }
      • subscriber: TransactionSignerAccount
      • subscriptionID: number

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to disable the application (updates the lifecycle). +

  • This method is used to disable the application (updates the lifecycle). Has to be called before deleting the application. Upon disabling, product will stop allowing new subscriptions to be sold, existing subscribers will only be able to cancel their subscriptions. Product can be deleted once all subscriptions are cancelled or expired. The method returns the transaction ID.

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to enable the application (updates the lifecycle). +

  • This method is used to enable the application (updates the lifecycle). The method returns the transaction ID.

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to get the state of the application. It returns an object containing the product name, subscription name, manager, price, total subscriptions, maximum subscriptions, coin ID, subscription type, lifecycle, creation time, oracle ID, unit name, image URL, and discounts.

    Parameters

    • parseWholeUnits: boolean = true

      A boolean indicating whether to parse the whole units (default is true).

    Returns Promise<ProductState>

    A promise that resolves to an object containing the state of the application.

    -
  • This method is used to get the discount based on the duration. It takes a duration object as an argument and returns a promise that resolves to a DiscountRecord.

    Parameters

    • duration: {
          duration: Duration;
      }

      The duration for which the discount is to be calculated.

    Returns Promise<DiscountRecord>

    A promise that resolves to the discount record.

    -
  • This method is used to calculate the locker creation fee. +

  • This method is used to calculate the locker creation fee. It takes the creator's address as an argument and returns a promise that resolves to the fee amount.

    Parameters

    • creatorAddress: string

      The address of the creator.

    Returns Promise<number>

    A promise that resolves to the locker creation fee.

    -
  • This method is used to get a subscription. It takes an AlgodClient and a subscriber address as arguments and returns a promise that resolves to a SubscriptionRecord.

    Parameters

    • __namedParameters: {
          algodClient: default;
          subscriberAddress: string;
      }
      • algodClient: default
      • subscriberAddress: string

    Returns Promise<SubscriptionRecord>

    A promise that resolves to a SubscriptionRecord.

    -
  • This method is used to calculate the platform fee for a subscription. +

  • This method is used to calculate the platform fee for a subscription. The method returns the platform fee as a number.

    Returns Promise<number>

    A promise that resolves to a number representing the platform fee.

    -
  • Checks if a given address is a subscriber.

    Parameters

    • subscriberAddress: {
          subscriberAddress: string;
      }

      The address of the potential subscriber.

      • subscriberAddress: string

    Returns Promise<boolean>

    • A promise that resolves to a boolean indicating whether the address is a subscriber.
    -
  • This method is used to transfer a subscription from one subscriber to another. +

  • This method is used to transfer a subscription from one subscriber to another. It takes an old subscriber, a new subscriber address, and a subscription ID as arguments and returns a promise that resolves to an object containing the transaction ID.

    Parameters

    • __namedParameters: {
          newSubscriberAddress: string;
          oldSubscriber: TransactionSignerAccount;
          subscriptionID: number;
      }
      • newSubscriberAddress: string
      • oldSubscriber: TransactionSignerAccount
      • subscriptionID: number

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to update the lifecycle state of the application. +

  • This method is used to update the lifecycle state of the application. The method returns the transaction ID.

    Parameters

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method initializes a SubtopiaClient instance. It retrieves the product's global state, validates it, and instantiates a new SubtopiaClient.

    Parameters

    • __namedParameters: {
          algodClient: default;
          chainType: ChainType;
          creator: TransactionSignerAccount;
          productID: number;
          registryID?: number;
          timeout?: number;
      }
      • algodClient: default
      • chainType: ChainType
      • creator: TransactionSignerAccount
      • productID: number
      • Optional registryID?: number
      • Optional timeout?: number

    Returns Promise<SubtopiaClient>

    A promise that resolves to a SubtopiaClient instance.

    Example

    import { SubtopiaClient } from "@algorand/subtopia";

    const subtopiaClient = await SubtopiaClient.init({
    algodClient: algodClient,
    productID: productID,
    creator: creator
    });
    -

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/SubtopiaRegistryClient.html b/classes/SubtopiaRegistryClient.html index 3ce6c3f..e97f278 100644 --- a/classes/SubtopiaRegistryClient.html +++ b/classes/SubtopiaRegistryClient.html @@ -1,6 +1,6 @@ SubtopiaRegistryClient | subtopia-js-sdk

Class SubtopiaRegistryClient

SubtopiaRegistryClient is a class that provides methods to interact with the Subtopia Registry contract. It provides methods to create, update and delete products and lockers in the registry.

-

Constructors

Constructors

Properties

Constructors

  • Parameters

    • __namedParameters: {
          algodClient: default;
          appAddress: string;
          appID: number;
          appSpec: ApplicationSpec;
          creator: TransactionSignerAccount;
          oracleID: number;
          timeout: number;
          version: string;
      }
      • algodClient: default
      • appAddress: string
      • appID: number
      • appSpec: ApplicationSpec
      • creator: TransactionSignerAccount
      • oracleID: number
      • timeout: number
      • version: string

    Returns SubtopiaRegistryClient

Properties

algodClient: default
appAddress: string
appID: number
creator: TransactionSignerAccount
oracleID: number
timeout: number
version: string

Methods

  • This method is used to create a new locker. +

Constructors

  • Parameters

    • __namedParameters: {
          algodClient: default;
          appAddress: string;
          appID: number;
          appSpec: ApplicationSpec;
          creator: TransactionSignerAccount;
          oracleID: number;
          timeout: number;
          version: string;
      }
      • algodClient: default
      • appAddress: string
      • appID: number
      • appSpec: ApplicationSpec
      • creator: TransactionSignerAccount
      • oracleID: number
      • timeout: number
      • version: string

    Returns SubtopiaRegistryClient

Properties

algodClient: default
appAddress: string
appID: number
creator: TransactionSignerAccount
oracleID: number
timeout: number
version: string

Methods

  • This method is used to create a new locker. The locker creation fee is calculated and paid by the creator. The method returns the transaction ID and the locker ID.

    Parameters

    • __namedParameters: {
          creator: TransactionSignerAccount;
          lockerType: LockerType;
      }
      • creator: TransactionSignerAccount
      • lockerType: LockerType

    Returns Promise<{
        lockerID: number;
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID and the locker ID.

    -
  • This method is used to create a new product. +

  • This method is used to create a new product. The method returns the transaction ID and the product ID.

    Parameters

    • __namedParameters: {
          coinID?: number;
          imageUrl?: string;
          lockerID: number;
          maxSubs?: number;
          parseWholeUnits?: boolean;
          price: number;
          productName: string;
          subType?: SubscriptionType;
          subscriptionName: string;
          unitName?: string;
      }
      • Optional coinID?: number
      • Optional imageUrl?: string
      • lockerID: number
      • Optional maxSubs?: number
      • Optional parseWholeUnits?: boolean
      • price: number
      • productName: string
      • Optional subType?: SubscriptionType
      • subscriptionName: string
      • Optional unitName?: string

    Returns Promise<{
        productID: number;
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID and the product ID.

    -
  • This method is used to delete a product. The method returns the transaction ID.

    Parameters

    • __namedParameters: {
          lockerID: number;
          productID: number;
      }
      • lockerID: number
      • productID: number

    Returns Promise<{
        txID: string;
    }>

    A promise that resolves to an object containing the transaction ID.

    -
  • This method is used to calculate the locker creation fee. The fee is calculated by adding the minimum application creation member, the locker creation member, and the registry locker box creation member.

    Parameters

    • creatorAddress: string

      The address of the creator.

    Returns number

    The locker creation fee.

    -
  • This method is used to calculate the locker transfer fee. The fee is calculated by adding the minimum application opt-in member, and if the coinID is provided, the minimum ASA opt-in member. If the locker is new, the locker creation fee is also added.

    @@ -44,26 +44,26 @@
  • isNewLocker: boolean

    Whether the locker is new.

  • coinID: number

    The ID of the coin.

Returns number

The locker transfer fee.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/ChainType.html b/enums/ChainType.html index e198dc2..a087873 100644 --- a/enums/ChainType.html +++ b/enums/ChainType.html @@ -1,5 +1,5 @@ ChainType | subtopia-js-sdk

Enumeration ChainType

Enum for blockchain types.

-

Enumeration Members

Enumeration Members

Enumeration Members

LOCALNET: "localnet"
MAINNET: "mainnet"
TESTNET: "testnet"

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

LOCALNET: "localnet"
MAINNET: "mainnet"
TESTNET: "testnet"

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/DiscountType.html b/enums/DiscountType.html index af3a3a8..515022b 100644 --- a/enums/DiscountType.html +++ b/enums/DiscountType.html @@ -1,4 +1,4 @@ DiscountType | subtopia-js-sdk

Enumeration DiscountType

Enum for discount types.

-

Enumeration Members

Enumeration Members

Enumeration Members

FIXED: 1
PERCENTAGE: 0

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

FIXED: 1
PERCENTAGE: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/Duration.html b/enums/Duration.html index 9d176c1..1e60989 100644 --- a/enums/Duration.html +++ b/enums/Duration.html @@ -1,7 +1,7 @@ Duration | subtopia-js-sdk

Enumeration Duration

Enum for duration types.

-

Enumeration Members

Enumeration Members

ANNUAL: 31536000
MONTH: 2592000
QUARTER: 7776000
SEMI_ANNUAL: 15552000
UNLIMITED: 0

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

ANNUAL: 31536000
MONTH: 2592000
QUARTER: 7776000
SEMI_ANNUAL: 15552000
UNLIMITED: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/LifecycleState.html b/enums/LifecycleState.html index 9fac274..04e885a 100644 --- a/enums/LifecycleState.html +++ b/enums/LifecycleState.html @@ -1,4 +1,4 @@ LifecycleState | subtopia-js-sdk

Enumeration LifecycleState

Enum for lifecycle states.

-

Enumeration Members

Enumeration Members

Enumeration Members

DISABLED: 1
ENABLED: 0

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

DISABLED: 1
ENABLED: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/LockerType.html b/enums/LockerType.html index 07927f4..56b441a 100644 --- a/enums/LockerType.html +++ b/enums/LockerType.html @@ -1,4 +1,4 @@ LockerType | subtopia-js-sdk

Enumeration LockerType

Enum for locker types.

-

Enumeration Members

Enumeration Members

Enumeration Members

CREATOR: 0
USER: 1

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

CREATOR: 0
USER: 1

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/PriceNormalizationType.html b/enums/PriceNormalizationType.html index c9f72ef..285ad7a 100644 --- a/enums/PriceNormalizationType.html +++ b/enums/PriceNormalizationType.html @@ -1,4 +1,4 @@ PriceNormalizationType | subtopia-js-sdk

Enumeration PriceNormalizationType

Enum for price normalization types.

-

Enumeration Members

Enumeration Members

Enumeration Members

PRETTY: 1
RAW: 0

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

PRETTY: 1
RAW: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/SubscriptionType.html b/enums/SubscriptionType.html index 979ad50..6eec27e 100644 --- a/enums/SubscriptionType.html +++ b/enums/SubscriptionType.html @@ -1,4 +1,4 @@ SubscriptionType | subtopia-js-sdk

Enumeration SubscriptionType

Enum for subscription types.

-

Enumeration Members

Enumeration Members

Enumeration Members

TIME_BASED: 1
UNLIMITED: 0

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

TIME_BASED: 1
UNLIMITED: 0

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/SUBTOPIA_REGISTRY_ID.html b/functions/SUBTOPIA_REGISTRY_ID.html index 3d4e374..e6365ec 100644 --- a/functions/SUBTOPIA_REGISTRY_ID.html +++ b/functions/SUBTOPIA_REGISTRY_ID.html @@ -1 +1 @@ -SUBTOPIA_REGISTRY_ID | subtopia-js-sdk

Function SUBTOPIA_REGISTRY_ID

Generated using TypeDoc

\ No newline at end of file +SUBTOPIA_REGISTRY_ID | subtopia-js-sdk

Function SUBTOPIA_REGISTRY_ID

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/durationToMonths.html b/functions/durationToMonths.html index 1b08f9f..8908729 100644 --- a/functions/durationToMonths.html +++ b/functions/durationToMonths.html @@ -1 +1 @@ -durationToMonths | subtopia-js-sdk

Function durationToMonths

Generated using TypeDoc

\ No newline at end of file +durationToMonths | subtopia-js-sdk

Function durationToMonths

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/getLockerBoxPrefix.html b/functions/getLockerBoxPrefix.html index 817fed4..1dd29c4 100644 --- a/functions/getLockerBoxPrefix.html +++ b/functions/getLockerBoxPrefix.html @@ -4,4 +4,4 @@

Throws

If the lockerType is unknown.

Example

const prefix = getLockerBoxPrefix(LockerType.CREATOR);
console.log(prefix); // Output: <Buffer 63 6c 2d>
-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/normalizePrice.html b/functions/normalizePrice.html index c8eac85..ce575af 100644 --- a/functions/normalizePrice.html +++ b/functions/normalizePrice.html @@ -6,4 +6,4 @@

Returns number

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/optInAsset.html b/functions/optInAsset.html index 356744e..dae49d9 100644 --- a/functions/optInAsset.html +++ b/functions/optInAsset.html @@ -1 +1 @@ -optInAsset | subtopia-js-sdk

Function optInAsset

  • Parameters

    • __namedParameters: {
          account: TransactionSignerAccount;
          assetID: number;
          client: default;
          timeout?: number;
      }
      • account: TransactionSignerAccount
      • assetID: number
      • client: default
      • Optional timeout?: number

    Returns Promise<{
        confirmedRound: number;
        methodResults: SdkABIResult[];
        txIDs: string[];
    }>

Generated using TypeDoc

\ No newline at end of file +optInAsset | subtopia-js-sdk

Function optInAsset

  • Parameters

    • __namedParameters: {
          account: TransactionSignerAccount;
          assetID: number;
          client: default;
          timeout?: number;
      }
      • account: TransactionSignerAccount
      • assetID: number
      • client: default
      • Optional timeout?: number

    Returns Promise<{
        confirmedRound: number;
        methodResults: SdkABIResult[];
        txIDs: string[];
    }>

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/optOutAsset.html b/functions/optOutAsset.html index 495b0c9..b224136 100644 --- a/functions/optOutAsset.html +++ b/functions/optOutAsset.html @@ -1 +1 @@ -optOutAsset | subtopia-js-sdk

Function optOutAsset

  • Parameters

    • __namedParameters: {
          account: TransactionSignerAccount;
          assetID: number;
          client: default;
          timeout?: number;
      }
      • account: TransactionSignerAccount
      • assetID: number
      • client: default
      • Optional timeout?: number

    Returns Promise<{
        confirmedRound: number;
        methodResults: SdkABIResult[];
        txIDs: string[];
    }>

Generated using TypeDoc

\ No newline at end of file +optOutAsset | subtopia-js-sdk

Function optOutAsset

  • Parameters

    • __namedParameters: {
          account: TransactionSignerAccount;
          assetID: number;
          client: default;
          timeout?: number;
      }
      • account: TransactionSignerAccount
      • assetID: number
      • client: default
      • Optional timeout?: number

    Returns Promise<{
        confirmedRound: number;
        methodResults: SdkABIResult[];
        txIDs: string[];
    }>

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ApplicationSpec.html b/interfaces/ApplicationSpec.html index d6e1fc5..f7eef48 100644 --- a/interfaces/ApplicationSpec.html +++ b/interfaces/ApplicationSpec.html @@ -1,8 +1,8 @@ ApplicationSpec | subtopia-js-sdk

Interface ApplicationSpec

Interface for the application specification.

-
interface ApplicationSpec {
    approval: Uint8Array;
    clear: Uint8Array;
    globalNumByteSlice: number;
    globalNumUint: number;
    localNumByteSlice: number;
    localNumUint: number;
}

Properties

interface ApplicationSpec {
    approval: Uint8Array;
    clear: Uint8Array;
    globalNumByteSlice: number;
    globalNumUint: number;
    localNumByteSlice: number;
    localNumUint: number;
}

Properties

approval: Uint8Array
clear: Uint8Array
globalNumByteSlice: number
globalNumUint: number
localNumByteSlice: number
localNumUint: number

Generated using TypeDoc

\ No newline at end of file +

Properties

approval: Uint8Array
clear: Uint8Array
globalNumByteSlice: number
globalNumUint: number
localNumByteSlice: number
localNumUint: number

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/AssetMetadata.html b/interfaces/AssetMetadata.html index 8fab246..37e7f7f 100644 --- a/interfaces/AssetMetadata.html +++ b/interfaces/AssetMetadata.html @@ -1,7 +1,7 @@ AssetMetadata | subtopia-js-sdk

Interface AssetMetadata

Interface for the asset metadata.

-
interface AssetMetadata {
    creator: string;
    decimals: number;
    index: number;
    name: string;
    unitName: string;
}

Properties

interface AssetMetadata {
    creator: string;
    decimals: number;
    index: number;
    name: string;
    unitName: string;
}

Properties

creator: string
decimals: number
index: number
name: string
unitName: string

Generated using TypeDoc

\ No newline at end of file +

Properties

creator: string
decimals: number
index: number
name: string
unitName: string

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/BaseDiscountRecord.html b/interfaces/BaseDiscountRecord.html index b4da199..8ae0532 100644 --- a/interfaces/BaseDiscountRecord.html +++ b/interfaces/BaseDiscountRecord.html @@ -1,5 +1,5 @@ BaseDiscountRecord | subtopia-js-sdk

Interface BaseDiscountRecord

Interface for the base discount record.

-
interface BaseDiscountRecord {
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
}

Hierarchy

Properties

interface BaseDiscountRecord {
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
}

Hierarchy

Properties

discountType: DiscountType
discountValue: number
duration: Duration

Generated using TypeDoc

\ No newline at end of file +

Properties

discountType: DiscountType
discountValue: number
duration: Duration

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/DiscountMetadata.html b/interfaces/DiscountMetadata.html index fa5cec2..2ba59ed 100644 --- a/interfaces/DiscountMetadata.html +++ b/interfaces/DiscountMetadata.html @@ -1,6 +1,6 @@ DiscountMetadata | subtopia-js-sdk

Interface DiscountMetadata

Interface for the discount metadata.

-
interface DiscountMetadata {
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
    expiresIn?: number;
}

Hierarchy

Properties

interface DiscountMetadata {
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
    expiresIn?: number;
}

Hierarchy

Properties

discountType: DiscountType
discountValue: number
duration: Duration
expiresIn?: number

Generated using TypeDoc

\ No newline at end of file +

Properties

discountType: DiscountType
discountValue: number
duration: Duration
expiresIn?: number

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/DiscountRecord.html b/interfaces/DiscountRecord.html index f0a8089..f1e28b0 100644 --- a/interfaces/DiscountRecord.html +++ b/interfaces/DiscountRecord.html @@ -1,8 +1,8 @@ DiscountRecord | subtopia-js-sdk

Interface DiscountRecord

Interface for the discount record.

-
interface DiscountRecord {
    createdAt: number;
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
    expiresAt: null | number;
    totalClaims: number;
}

Hierarchy

Properties

interface DiscountRecord {
    createdAt: number;
    discountType: DiscountType;
    discountValue: number;
    duration: Duration;
    expiresAt: null | number;
    totalClaims: number;
}

Hierarchy

Properties

createdAt: number
discountType: DiscountType
discountValue: number
duration: Duration
expiresAt: null | number
totalClaims: number

Generated using TypeDoc

\ No newline at end of file +

Properties

createdAt: number
discountType: DiscountType
discountValue: number
duration: Duration
expiresAt: null | number
totalClaims: number

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ProductState.html b/interfaces/ProductState.html index dd3d7bd..a145766 100644 --- a/interfaces/ProductState.html +++ b/interfaces/ProductState.html @@ -1,5 +1,5 @@ ProductState | subtopia-js-sdk

Interface ProductState

Interface for the product state.

-
interface ProductState {
    coinID: number;
    createdAt: number;
    discounts: DiscountRecord[];
    imageURL: string;
    lifecycle: number;
    manager: string;
    maxSubs: number;
    oracleID: number;
    price: number;
    productName: string;
    subType: SubscriptionType;
    subscriptionName: string;
    totalSubs: number;
    unitName: string;
}

Hierarchy

  • ProductGlobalState
    • ProductState

Properties

interface ProductState {
    coinID: number;
    createdAt: number;
    discounts: DiscountRecord[];
    imageURL: string;
    lifecycle: number;
    manager: string;
    maxSubs: number;
    oracleID: number;
    price: number;
    productName: string;
    subType: SubscriptionType;
    subscriptionName: string;
    totalSubs: number;
    unitName: string;
}

Hierarchy

  • ProductGlobalState
    • ProductState

Properties

coinID: number
createdAt: number
discounts: DiscountRecord[]
imageURL: string
lifecycle: number
manager: string
maxSubs: number
oracleID: number
price: number
productName: string
subscriptionName: string
totalSubs: number
unitName: string

Generated using TypeDoc

\ No newline at end of file +

Properties

coinID: number
createdAt: number
discounts: DiscountRecord[]
imageURL: string
lifecycle: number
manager: string
maxSubs: number
oracleID: number
price: number
productName: string
subscriptionName: string
totalSubs: number
unitName: string

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/SubscriptionRecord.html b/interfaces/SubscriptionRecord.html index f6f141a..af41a54 100644 --- a/interfaces/SubscriptionRecord.html +++ b/interfaces/SubscriptionRecord.html @@ -1,7 +1,7 @@ SubscriptionRecord | subtopia-js-sdk

Interface SubscriptionRecord

Interface for the subscription record.

-
interface SubscriptionRecord {
    createdAt: number;
    duration: Duration;
    expiresAt: null | number;
    subID: number;
    subType: SubscriptionType;
}

Properties

interface SubscriptionRecord {
    createdAt: number;
    duration: Duration;
    expiresAt: null | number;
    subID: number;
    subType: SubscriptionType;
}

Properties

createdAt: number
duration: Duration
expiresAt: null | number
subID: number

Generated using TypeDoc

\ No newline at end of file +

Properties

createdAt: number
duration: Duration
expiresAt: null | number
subID: number

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/DEFAULT_TXN_SIGN_TIMEOUT_SECONDS.html b/variables/DEFAULT_TXN_SIGN_TIMEOUT_SECONDS.html index c29bded..00fc251 100644 --- a/variables/DEFAULT_TXN_SIGN_TIMEOUT_SECONDS.html +++ b/variables/DEFAULT_TXN_SIGN_TIMEOUT_SECONDS.html @@ -1 +1 @@ -DEFAULT_TXN_SIGN_TIMEOUT_SECONDS | subtopia-js-sdk

Variable DEFAULT_TXN_SIGN_TIMEOUT_SECONDSConst

DEFAULT_TXN_SIGN_TIMEOUT_SECONDS: 60 = 60

Generated using TypeDoc

\ No newline at end of file +DEFAULT_TXN_SIGN_TIMEOUT_SECONDS | subtopia-js-sdk

Variable DEFAULT_TXN_SIGN_TIMEOUT_SECONDSConst

DEFAULT_TXN_SIGN_TIMEOUT_SECONDS: 60 = 60

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_APPROVAL_KEY.html b/variables/LOCKER_APPROVAL_KEY.html index 423c2e4..a092591 100644 --- a/variables/LOCKER_APPROVAL_KEY.html +++ b/variables/LOCKER_APPROVAL_KEY.html @@ -1 +1 @@ -LOCKER_APPROVAL_KEY | subtopia-js-sdk

Variable LOCKER_APPROVAL_KEYConst

LOCKER_APPROVAL_KEY: "locker_approval" = "locker_approval"

Generated using TypeDoc

\ No newline at end of file +LOCKER_APPROVAL_KEY | subtopia-js-sdk

Variable LOCKER_APPROVAL_KEYConst

LOCKER_APPROVAL_KEY: "locker_approval" = "locker_approval"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_CLEAR_KEY.html b/variables/LOCKER_CLEAR_KEY.html index babc663..420da5b 100644 --- a/variables/LOCKER_CLEAR_KEY.html +++ b/variables/LOCKER_CLEAR_KEY.html @@ -1 +1 @@ -LOCKER_CLEAR_KEY | subtopia-js-sdk

Variable LOCKER_CLEAR_KEYConst

LOCKER_CLEAR_KEY: "locker_clear" = "locker_clear"

Generated using TypeDoc

\ No newline at end of file +LOCKER_CLEAR_KEY | subtopia-js-sdk

Variable LOCKER_CLEAR_KEYConst

LOCKER_CLEAR_KEY: "locker_clear" = "locker_clear"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_VERSION.html b/variables/LOCKER_VERSION.html index a51ba1f..3f272ff 100644 --- a/variables/LOCKER_VERSION.html +++ b/variables/LOCKER_VERSION.html @@ -1 +1 @@ -LOCKER_VERSION | subtopia-js-sdk

Variable LOCKER_VERSIONConst

LOCKER_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file +LOCKER_VERSION | subtopia-js-sdk

Variable LOCKER_VERSIONConst

LOCKER_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_VERSION_KEY.html b/variables/LOCKER_VERSION_KEY.html index 431f182..857c646 100644 --- a/variables/LOCKER_VERSION_KEY.html +++ b/variables/LOCKER_VERSION_KEY.html @@ -1 +1 @@ -LOCKER_VERSION_KEY | subtopia-js-sdk

Variable LOCKER_VERSION_KEYConst

LOCKER_VERSION_KEY: "locker_version" = "locker_version"

Generated using TypeDoc

\ No newline at end of file +LOCKER_VERSION_KEY | subtopia-js-sdk

Variable LOCKER_VERSION_KEYConst

LOCKER_VERSION_KEY: "locker_version" = "locker_version"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/ORACLE_VERSION.html b/variables/ORACLE_VERSION.html index 6070071..32962a4 100644 --- a/variables/ORACLE_VERSION.html +++ b/variables/ORACLE_VERSION.html @@ -1 +1 @@ -ORACLE_VERSION | subtopia-js-sdk

Variable ORACLE_VERSIONConst

ORACLE_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file +ORACLE_VERSION | subtopia-js-sdk

Variable ORACLE_VERSIONConst

ORACLE_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/PRODUCT_APPROVAL_KEY.html b/variables/PRODUCT_APPROVAL_KEY.html index 7c028b2..727ec9d 100644 --- a/variables/PRODUCT_APPROVAL_KEY.html +++ b/variables/PRODUCT_APPROVAL_KEY.html @@ -1 +1 @@ -PRODUCT_APPROVAL_KEY | subtopia-js-sdk

Variable PRODUCT_APPROVAL_KEYConst

PRODUCT_APPROVAL_KEY: "product_approval" = "product_approval"

Generated using TypeDoc

\ No newline at end of file +PRODUCT_APPROVAL_KEY | subtopia-js-sdk

Variable PRODUCT_APPROVAL_KEYConst

PRODUCT_APPROVAL_KEY: "product_approval" = "product_approval"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/PRODUCT_CLEAR_KEY.html b/variables/PRODUCT_CLEAR_KEY.html index cd993ec..a923413 100644 --- a/variables/PRODUCT_CLEAR_KEY.html +++ b/variables/PRODUCT_CLEAR_KEY.html @@ -1 +1 @@ -PRODUCT_CLEAR_KEY | subtopia-js-sdk

Variable PRODUCT_CLEAR_KEYConst

PRODUCT_CLEAR_KEY: "product_clear" = "product_clear"

Generated using TypeDoc

\ No newline at end of file +PRODUCT_CLEAR_KEY | subtopia-js-sdk

Variable PRODUCT_CLEAR_KEYConst

PRODUCT_CLEAR_KEY: "product_clear" = "product_clear"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/PRODUCT_VERSION.html b/variables/PRODUCT_VERSION.html index c89a111..b033356 100644 --- a/variables/PRODUCT_VERSION.html +++ b/variables/PRODUCT_VERSION.html @@ -1 +1 @@ -PRODUCT_VERSION | subtopia-js-sdk

Variable PRODUCT_VERSIONConst

PRODUCT_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file +PRODUCT_VERSION | subtopia-js-sdk

Variable PRODUCT_VERSIONConst

PRODUCT_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/PRODUCT_VERSION_KEY.html b/variables/PRODUCT_VERSION_KEY.html index a69aea9..6ab8412 100644 --- a/variables/PRODUCT_VERSION_KEY.html +++ b/variables/PRODUCT_VERSION_KEY.html @@ -1 +1 @@ -PRODUCT_VERSION_KEY | subtopia-js-sdk

Variable PRODUCT_VERSION_KEYConst

PRODUCT_VERSION_KEY: "product_version" = "product_version"

Generated using TypeDoc

\ No newline at end of file +PRODUCT_VERSION_KEY | subtopia-js-sdk

Variable PRODUCT_VERSION_KEYConst

PRODUCT_VERSION_KEY: "product_version" = "product_version"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/REGISTRY_VERSION.html b/variables/REGISTRY_VERSION.html index 8b37485..a1c8f94 100644 --- a/variables/REGISTRY_VERSION.html +++ b/variables/REGISTRY_VERSION.html @@ -1 +1 @@ -REGISTRY_VERSION | subtopia-js-sdk

Variable REGISTRY_VERSIONConst

REGISTRY_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file +REGISTRY_VERSION | subtopia-js-sdk

Variable REGISTRY_VERSIONConst

REGISTRY_VERSION: "1.0" = "1.0"

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/SUBTOPIA_MAINNET.html b/variables/SUBTOPIA_MAINNET.html index 197a729..4e3ba35 100644 --- a/variables/SUBTOPIA_MAINNET.html +++ b/variables/SUBTOPIA_MAINNET.html @@ -1 +1 @@ -SUBTOPIA_MAINNET | subtopia-js-sdk

Variable SUBTOPIA_MAINNETConst

SUBTOPIA_MAINNET: 1257359052 = 1257359052

Generated using TypeDoc

\ No newline at end of file +SUBTOPIA_MAINNET | subtopia-js-sdk

Variable SUBTOPIA_MAINNETConst

SUBTOPIA_MAINNET: 1257359052 = 1257359052

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/SUBTOPIA_TESTNET.html b/variables/SUBTOPIA_TESTNET.html index 0412005..742aa31 100644 --- a/variables/SUBTOPIA_TESTNET.html +++ b/variables/SUBTOPIA_TESTNET.html @@ -1 +1 @@ -SUBTOPIA_TESTNET | subtopia-js-sdk

Variable SUBTOPIA_TESTNETConst

SUBTOPIA_TESTNET: 485920861 = 485920861

Generated using TypeDoc

\ No newline at end of file +SUBTOPIA_TESTNET | subtopia-js-sdk

Variable SUBTOPIA_TESTNETConst

SUBTOPIA_TESTNET: 485920861 = 485920861

Generated using TypeDoc

\ No newline at end of file