/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { circulatingSupplyGetCirculatingSupplyApiV1LedgersLedgerCanisterIdCirculatingSupplyGet, } from "../funcs/circulatingSupplyGetCirculatingSupplyApiV1LedgersLedgerCanisterIdCirculatingSupplyGet.js"; import { circulatingSupplyGetCirculatingSupplyTxtApiV1LedgersLedgerCanisterIdCirculatingSupplyTxtGet, } from "../funcs/circulatingSupplyGetCirculatingSupplyTxtApiV1LedgersLedgerCanisterIdCirculatingSupplyTxtGet.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 CirculatingSupply extends ClientSDK { /** * Get a series of circulating supply values for a ledger * * @remarks * ### How is the data for this endpoint gathered? * * Circulating supply is calculated by the following formula: * * Total Supply = Sum of all mints - Sum of all burns * Circulating Supply = Total Supply - Sum of all balances of accounts to which tokens were minted before swap */ async getCirculatingSupplyApiV1LedgersLedgerCanisterIdCirculatingSupplyGet( request: operations.GetCirculatingSupplyApiV1LedgersLedgerCanisterIdCirculatingSupplyGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync( circulatingSupplyGetCirculatingSupplyApiV1LedgersLedgerCanisterIdCirculatingSupplyGet( this, request, options, ), ); } /** * Get the latest total supply value in plain text format. * * @remarks * ### How is the data for this endpoint gathered? * * Circulating supply is calculated by the following formula: * * Total Supply = Sum of all mints - Sum of all burns * Circulating Supply = Total Supply - Sum of all balances of accounts to which tokens were minted before swap */ async getCirculatingSupplyTxtApiV1LedgersLedgerCanisterIdCirculatingSupplyTxtGet( request: operations.GetCirculatingSupplyTxtApiV1LedgersLedgerCanisterIdCirculatingSupplyTxtGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync( circulatingSupplyGetCirculatingSupplyTxtApiV1LedgersLedgerCanisterIdCirculatingSupplyTxtGet( this, request, options, ), ); } }