Algorand client to work with.
Use it to overwrite configuration parameters.
Algorand client to work with.
Client configuration with global contracts ids etc.
A convenient method for fetching ASAs (Algorand Standard Asset).
This will return an Asset class with the relevant data about the asset if the asset index is valid. Note that an index of zero (0) will return the Algo asset.
The id of the asset.
Promise that will return an Asset object for the id.
Fetches Folks Finance lending pool that can be used in FolksLendingPoolAdapter which allows higher APR than a normal pool. See FolksLendingPoolAdapter for details.
The application id of the Folks Finance pool. You can find the ids here - https://docs.folks.finance/developer/contracts
The Folks Finance lending pool for the given application id.
Fetches the pool by the application id. It uses algod client to fetch the data directly from the blockchain.
The application id of pool to return.
The pool for the application id.
Returns a list of liquidity pools on Pact that are across the primary and secondary assets.
First, it uses Pact API retrieve app ids matching the provided assets and then uses algod client to fetch contracts data from the blockchain.
Primary asset or the asset id for the pool to find.
Secondary asset or the asset id for the pool to find.
List of Pool for the two assets, the list may be empty.
Gets the constant product pool factory according to the client's configuration.
Creates the adapter object that allows composing Folks Finance lending pools with Pact pool, resulting in a higher APR. See FolksLendingPoolAdapter for details.
The adapter object.
Gets the NFT constant product pool factory according to the client's configuration.
Returns a list of pools according to the pool options passed in. Uses Pact API for fetching the data.
This method is deprecated but is kept for backward compatibility. Pact is in the process of changing the way the pools are created. In the future, all pools will be created using a pool factory contract which allows for an on-chain discoverability of pools.
API call parameters.
Paginated list of pools.
Generated using TypeDoc
An entry point for interacting with the SDK.
Exposes convenience methods for fetching assets and pools and provides PoolCreator, which can be used to create new pools in Pact.
Example usage: