Stacks Market V1
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
Transfers a specified amount of tokens to a recipient.
| Parameter | Type | Description |
|---|---|---|
amount | uint | The amount of tokens to be transferred. |
recipient | principal | The principal to receive the tokens. |
f-t | <ft> | The fungible token to transfer. |
get-contract-owner
Retrieves the current contract owner.
No parameters.
set-contract-owner
Sets a new contract owner.
| Parameter | Type | Description |
|---|---|---|
owner | principal | The new owner of the contract. |
is-contract-owner
Checks if a given principal is the contract owner.
| Parameter | Type | Description |
|---|---|---|
caller | principal | The principal to check for ownership. |
is-approved-contract
Checks if a contract is approved to interact with this contract.
| Parameter | Type | Description |
|---|---|---|
contract | principal | The contract to check for approval. |
Last updated on