contracts/handlers/nucleus-boring-vault-handler
Classes
NucleusBoringVaultHandler
Defined in: lib/contracts/handlers/nucleus-boring-vault-handler.ts:26
Handler for the BoringVault contract for a given token exposing
methods to interact with the contract.
Constructors
Constructor
new NucleusBoringVaultHandler(
chain,walletClient,publicClient):NucleusBoringVaultHandler
Defined in: lib/contracts/handlers/nucleus-boring-vault-handler.ts:39
Create the handler for processing UniFi tokens.
Parameters
| Parameter | Type | Description |
|---|---|---|
chain | Chain | Chain to use for the client. |
walletClient | { } | The wallet client to use for wallet interactions. |
publicClient | { } | The public client to use for public interactions. |
Returns
Methods
approve()
approve(
walletAddress,spenderAddress,value):Promise<`0x${string}`>
Defined in: lib/contracts/handlers/nucleus-boring-vault-handler.ts:117
Approve transaction for the spender to spend the owner's tokens.
Parameters
| Parameter | Type | Description |
|---|---|---|
walletAddress | `0x${string}` | Address of the caller of the transaction. |
spenderAddress | `0x${string}` | Address of the spender. |
value | bigint | Value to approve for the spender. |