TokenLib
Git Source Library the contains helper methods for retrieving balances and transfering ERC-20 and ERC-721Functions
balanceOf
Retrieves the balance of a specified token for a given user This function calls thebalanceOf function on the token contract using the provided selector and decodes
the returned data to retrieve the balance
Returns
safeTransfer
Safely transfers tokens from the calling contract to a recipient Calls thetransfer function on the specified token contract and checks for successful transfer
safeTransferFrom
Safely transfers tokens from one address to another using thetransferFrom function
Calls the transferFrom function on the specified token contract and checks for successful transfer