pool-vault
List of Core Functions:
transfer
: Transfers a specified amount of tokens to a recipient.get-contract-owner
: Retrieves the current contract owner.set-contract-owner
: Sets a new contract owner.is-contract-owner
: Checks if a given principal is the contract owner.is-approved-contract
: Checks if a contract is approved to interact with this contract.
Detailed Tables:
transfer
transfer
Transfers a specified amount of tokens to a recipient.
Parameter | Type | Description |
---|---|---|
|
| The amount of tokens to be transferred. |
|
| The principal to receive the tokens. |
|
| The fungible token to transfer. |
get-contract-owner
get-contract-owner
Retrieves the current contract owner.
No parameters.
set-contract-owner
set-contract-owner
Sets a new contract owner.
Parameter | Type | Description |
---|---|---|
|
| The new owner of the contract. |
is-contract-owner
is-contract-owner
Checks if a given principal is the contract owner.
Parameter | Type | Description |
---|---|---|
|
| The principal to check for ownership. |
is-approved-contract
is-approved-contract
Checks if a contract is approved to interact with this contract.
Parameter | Type | Description |
---|---|---|
|
| The contract to check for approval. |