mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
add Approve&Lock to datatokens class
This commit is contained in:
parent
67af4d1d59
commit
be7831e309
@ -57,6 +57,25 @@ export class DataTokens {
|
||||
// TO DO
|
||||
}
|
||||
|
||||
/**
|
||||
* Approve & Lock for a specified number of blocks (reverts after that if not used)
|
||||
* @param {String} dataTokenAddress
|
||||
* @param {String} toAddress
|
||||
* @param {Number} amount
|
||||
* @param {Number} blocks
|
||||
* @param {Account} account
|
||||
* @return {Promise<string>} transactionId
|
||||
*/
|
||||
public async approveAndLock(
|
||||
dataTokenAddress: string,
|
||||
toAddress: string,
|
||||
amount: number,
|
||||
blocks: number,
|
||||
account: Account
|
||||
): Promise<string> {
|
||||
// TO DO
|
||||
}
|
||||
|
||||
/**
|
||||
* Mint
|
||||
* @param {String} dataTokenAddress
|
||||
|
Loading…
x
Reference in New Issue
Block a user