Retrieves the timelocks associated with multiple user addresses from different versions of PinkLock's contracts.
The ID of the network where the timelocks are located.
An array containing user addresses for which to retrieve the timelocks.
A Promise that resolves to an object where each key is a user address, and the value is an array of Timelock objects.
Retrieves the timelocks associated with multiple token addresses from different versions of PinkLock's contracts.
The ID of the network where the timelocks are located.
An array containing token addresses for which to retrieve the timelocks.
A Promise that resolves to an object where each key is a token address, and the value is an array of Timelock objects.
Generated using TypeDoc
The
PinkLockclass provides methods for retrieving token timelocks associated with user addresses and token addresses from different versions of PinkLock's contracts. The class offers the following public methods:getUsersLocksmethod: Retrieves timelocks associated with multiple user addresses.getTokensLocksmethod: Retrieves timelocks associated with multiple token addresses.To use the
PinkLockclass, you need to create an instance of theDeFiDataclass first and wait for it to be ready. You can then access the public methods of thePinkLockproperty from theDeFiDatainstance to fetch timelocks information.Example
Here's an example of how to use the
PinkLockclass: