diff --git a/classes/SubtopiaClient.html b/classes/SubtopiaClient.html index 4f5dcdc..ad99931 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;
          creator: TransactionSignerAccount;
          productID: number;
          registryID: number;
          timeout?: number;
      }
      • algodClient: default
      • creator: TransactionSignerAccount
      • productID: number
      • 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 57be807..f372d62 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 92cfb44..070fc59 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 cc02f9b..01c1902 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 5e10e9b..908aea1 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 ea0935b..32de95d 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 ecc360e..cf00339 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 23539b2..57036ce 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 146db5b..fed7be8 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 80519d6..650123e 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 c2e54bc..ca5a922 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 be25807..cb40f91 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 c3d8f81..842a8f7 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 0152d3a..8e266e5 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 88f23a4..517a5bd 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/index.html b/index.html index cb78031..b17a586 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,12 @@ subtopia-js-sdk

subtopia-js-sdk

- npm version - - + npm version + + - - + + @@ -20,9 +20,9 @@

⚡ Examples

  • subtopia-js-examples - A separate repository with examples of using the Subtopia JS SDK in React, Svelte, Vue and NextJS.
-

📦 Installation

Install the package:

# with npm
npm install subtopia-js

# or with yarn
yarn add subtopia-js +

📦 Installation

Install the package:

# with npm
npm install subtopia-js-sdk

# or with yarn
yarn add subtopia-js-sdk
-

Import the package:

import { SubtopiaClient, SubtopiaRegistryClient } from "subtopia-js";
+

Import the package:

import { SubtopiaClient, SubtopiaRegistryClient } from "subtopia-js-sdk";
 

🛠️ Usage

Example snippets of using the Subtopia JS SDK.

Subscriptions

Purchasing a subscription:

// ... your code

const subtopiaClient = await SubtopiaClient.init({
algodClient: PUT_ALGOD_INSTANCE_HERE,
productID: PUT_PRODUCT_ID_HERE,
creator: { addr: PUT_WALLET_ADDRESS, signer: PUT_WALLET_SIGNER },
});

const response = await subtopiaClient.createSubscription(
{ addr: PUT_WALLET_ADDRESS, signer: PUT_WALLET_SIGNER },
PUT_DURATION_HERE // pick duration from Duration enum. If there is a discount available for this duration, it will be auto applied.
);

console.log(response.txID); // response is of type string

// ... rest of your code @@ -40,5 +40,5 @@

Deleting a discount:

// ... your code

const deleteResult = await subtopiaRegistryClient.deleteDiscount({
productID: PUT_PRODUCT_ID,
duration: PUT_DURATION_HERE,
});

// Transaction ID of the delete discount transaction
console.log(deleteResult.txID);
// ... your code

⭐️ Stargazers

Special thanks to everyone who starred the repository ❤️

-

Stargazers repo roster for @subtopia-algo/subtopia-js

+

Stargazers repo roster for @subtopia-algo/subtopia-js-sdk

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ApplicationSpec.html b/interfaces/ApplicationSpec.html index e7ad6d1..a468533 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 5e969e9..3f87473 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 f49e814..bd1c932 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 7c01f79..4e9ce46 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 361f24b..86d8e5f 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 41b7e8c..ebdf9c8 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 1d535a2..7928944 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 b8fb87c..bb3af24 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

Generated using TypeDoc

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

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_APPROVAL_KEY.html b/variables/LOCKER_APPROVAL_KEY.html index 03e8693..8ab7c57 100644 --- a/variables/LOCKER_APPROVAL_KEY.html +++ b/variables/LOCKER_APPROVAL_KEY.html @@ -1 +1 @@ -LOCKER_APPROVAL_KEY | subtopia-js-sdk

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_VERSION.html b/variables/LOCKER_VERSION.html index 84a3e81..8a79aba 100644 --- a/variables/LOCKER_VERSION.html +++ b/variables/LOCKER_VERSION.html @@ -1 +1 @@ -LOCKER_VERSION | subtopia-js-sdk

Generated using TypeDoc

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

Generated using TypeDoc

\ No newline at end of file diff --git a/variables/LOCKER_VERSION_KEY.html b/variables/LOCKER_VERSION_KEY.html index 4cf7b81..53ea9e7 100644 --- a/variables/LOCKER_VERSION_KEY.html +++ b/variables/LOCKER_VERSION_KEY.html @@ -1 +1 @@ -LOCKER_VERSION_KEY | subtopia-js-sdk

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

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

Generated using TypeDoc

\ No newline at end of file