TON Token wallet contract interface.
More...
#include <TONTokenWallet.hpp>
|
TIP3_EXTERNAL void | transfer (address_opt answer_addr, address to, uint128 tokens, uint128 evers, uint128 return_ownership, opt< cell > notify_payload) |
| Transfer tokens to another tip3 wallet contract. More...
|
|
TIP3_EXTERNAL void | transferToRecipient (address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt< cell > notify_payload) |
|
uint128 | balance () |
| Request wallet token balance using internal message (contract-to-contract).
|
|
void | acceptMint (uint128 _value, address answer_addr, uint128 keep_evers, opt< cell > notify_payload)=0x4384F298 |
| Receive tokens from root (RootTokenContract). More...
|
|
void | acceptTransfer (uint128 _value, address answer_addr, uint128 keep_evers, uint256 sender_pubkey, address_opt sender_owner, opt< cell > payload)=0x67A0B95F |
| Receive tokens from another tip3 wallet. More...
|
|
details_info | details () |
| Request info about contract state details (from another contract).
|
|
details_info | getDetails () |
| Get info about contract state details.
|
|
TON Token wallet contract interface.
◆ acceptMint()
void acceptMint |
( |
uint128 |
_value, |
|
|
address |
answer_addr, |
|
|
uint128 |
keep_evers, |
|
|
opt< cell > |
notify_payload |
|
) |
| |
|
pure virtual |
Receive tokens from root (RootTokenContract).
- Parameters
-
_value | Tokens received from RootTokenContract. |
answer_addr | Answer address. |
keep_evers | Native funds that the wallet should keep before returning answer with the remaining funds. |
notify_payload | Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification. |
◆ acceptTransfer()
void acceptTransfer |
( |
uint128 |
_value, |
|
|
address |
answer_addr, |
|
|
uint128 |
keep_evers, |
|
|
uint256 |
sender_pubkey, |
|
|
address_opt |
sender_owner, |
|
|
opt< cell > |
payload |
|
) |
| |
|
pure virtual |
Receive tokens from another tip3 wallet.
- Parameters
-
_value | Amount of tokens received from another tip3 token wallet. |
answer_addr | Answer address. |
keep_evers | Native funds that the wallet should keep before returning answer with the remaining funds. |
sender_pubkey | Sender wallet pubkey. |
sender_owner | Sender wallet internal owner. |
payload | Payload (arbitrary cell). If specified, the wallet should send notification to its internal owner. |
◆ transfer()
TIP3_EXTERNAL void transfer |
( |
address_opt |
answer_addr, |
|
|
address |
to, |
|
|
uint128 |
tokens, |
|
|
uint128 |
evers, |
|
|
uint128 |
return_ownership, |
|
|
opt< cell > |
notify_payload |
|
) |
| |
Transfer tokens to another tip3 wallet contract.
- Parameters
-
answer_addr | Answer address. |
to | Destination tip3 wallet address. |
tokens | Amount of tokens to transfer. |
evers | Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value. |
return_ownership | Return ownership - to decrease lend ownership provided for the caller contract (additionally). |
notify_payload | Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification. |
◆ transferToRecipient()
TIP3_EXTERNAL void transferToRecipient |
( |
address_opt |
answer_addr, |
|
|
Tip3Creds |
to, |
|
|
uint128 |
tokens, |
|
|
uint128 |
evers, |
|
|
uint128 |
keep_evers, |
|
|
bool |
deploy, |
|
|
uint128 |
return_ownership, |
|
|
opt< cell > |
notify_payload |
|
) |
| |
Transfer to recipient. "ToRecipient" version calculate destination wallet address. using recipient public key and recipient internal owner.
- Parameters
-
answer_addr | Answer address. |
to | Recipient credentials (pubkey + owner) |
tokens | Amount of tokens to transfer. |
evers | Native funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value. |
keep_evers | Evers to keep in destination wallet |
deploy | Contract will send acceptTransfer message with StateInit to also deploy new tip3 wallet (if it doesn't already exist) with the provided recipient_public_key and recipient_internal_owner. |
return_ownership | Return ownership - to decrease lend ownership for the caller contract (additionally). |
notify_payload | Payload (arbitrary cell) - if specified, will be transmitted into dest owner's notification. |
The documentation for this interface was generated from the following file: