/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { totalSupplyGetTotalSupplyApiV2LedgersLedgerCanisterIdTotalSupplyGet } from "../funcs/totalSupplyGetTotalSupplyApiV2LedgersLedgerCanisterIdTotalSupplyGet.js"; import { totalSupplyGetTotalSupplyTxtApiV2LedgersLedgerCanisterIdTotalSupplyTxtGet } from "../funcs/totalSupplyGetTotalSupplyTxtApiV2LedgersLedgerCanisterIdTotalSupplyTxtGet.js"; import { totalSupplySeriesApiV1LedgersLedgerCanisterIdTotalSupplyGet } from "../funcs/totalSupplySeriesApiV1LedgersLedgerCanisterIdTotalSupplyGet.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class TotalSupply extends ClientSDK { /** * Retrieve total supply series metrics for a token */ async seriesApiV1LedgersLedgerCanisterIdTotalSupplyGet( request: operations.SeriesApiV1LedgersLedgerCanisterIdTotalSupplyGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync( totalSupplySeriesApiV1LedgersLedgerCanisterIdTotalSupplyGet( this, request, options, ), ); } /** * Get a series of total supply values for a ledger * * @remarks * ### How is the data for this endpoint gathered? * * Total supply is calculated by summing all mints and then subtracting all burns (including fees). */ async getTotalSupplyApiV2LedgersLedgerCanisterIdTotalSupplyGet( request: operations.GetTotalSupplyApiV2LedgersLedgerCanisterIdTotalSupplyGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync( totalSupplyGetTotalSupplyApiV2LedgersLedgerCanisterIdTotalSupplyGet( this, request, options, ), ); } /** * Get the latest total supply value in plain text format. * * @remarks * ### How is the data for this endpoint gathered? * * Total supply is calculated by summing all mints and then subtracting all burns (including fees). */ async getTotalSupplyTxtApiV2LedgersLedgerCanisterIdTotalSupplyTxtGet( request: operations.GetTotalSupplyTxtApiV2LedgersLedgerCanisterIdTotalSupplyTxtGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync( totalSupplyGetTotalSupplyTxtApiV2LedgersLedgerCanisterIdTotalSupplyTxtGet( this, request, options, ), ); } }