Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Functions
determineTransferAction
p2p transfer is position 0 and will be default unless other conditions are met.
determines if a transfer is:
p2p transfer
buy
sell
mint
burn
function determineTransferAction(address _from, address _to, address _sender) internal returns (ActionTypes action);
Parameters
| Name | Type | Description |
|---|
_from | address | the address where the tokens are being moved from |
_to | address | the address where the tokens are going to |
_sender | address | the address triggering the transaction |
Returns
| Name | Type | Description |
|---|
action | ActionTypes | intended in the transfer |
isContract
Check if the addresss is a contract
function isContract(address account) internal view returns (bool);
Parameters
| Name | Type | Description |
|---|
account | address | address to check |
Returns
| Name | Type | Description |
|---|
<none> | bool | contract yes/no |
Events
Action
event Action(uint8 _type);