Protected
constructorThis 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.
An object containing the parameters for locker creation.
A promise that resolves to an object containing the transaction ID and the locker ID.
This method is used to create a new product. The method returns the transaction ID and the product ID.
An object containing the parameters for product creation.
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.
An object containing the parameters for product deletion.
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.
The address of the creator.
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.
The address of the creator.
Whether the locker is new.
The ID of the coin.
The locker transfer fee.
This method is used to calculate the product creation fee. The fee is calculated based on the minimum balance requirements for creating and opting into an application, and the minimum balance requirement for creating a product. If a coinID is provided, the minimum balance requirement for opting into an ASA is also added to the fee.
The ID of the coin. If provided, the minimum balance requirement for opting into an ASA is added to the fee.
A promise that resolves to the product creation fee in microAlgos.
This method is used to calculate the product creation platform fee. The fee is always returns in microAlgos equivalent to the current price of Algo in cents.
A promise that resolves to the product creation platform fee in microAlgos.
This method is used to get the latest available product contract version. Can be used to check if the current product instance is up to date.
A promise that resolves to the product version.
This method is used to transfer a product from one owner to another. The method returns the transaction ID of the transfer.
An object containing the parameters for product transfer.
A promise that resolves to an object containing the transaction ID.
Static
getStatic
initThis method initializes a new instance of the SubtopiaRegistryClient class using the provided parameters.
An object of type RegistryInitParams.
A new instance of the SubtopiaRegistryClient class initialized with the provided parameters.
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.