2024-02-13 16:35:16 -03:00

1.9 KiB

Solidity API

BaseUtils

_setUsedTransactions

function _setUsedTransactions(bytes32 message) internal

███ Helper FX ██████████████████████████████████████████████████████████

usedTransactions

function usedTransactions(bytes32 message) public view returns (bool used)

_signerCheck

function _signerCheck(bytes32 _message, bytes _signature) internal view

_merkleVerify

function _merkleVerify(bytes32[] _merkleProof, bytes32 _root, address _addr) internal pure

_castBool

function _castBool(bool _valid) internal pure returns (uint256 _validCasted)

getStr

function getStr(string str) public pure returns (bytes32 strEnc)

_setSellerBalance

function _setSellerBalance(address _sellerKey, contract ERC20 _erc20, uint256 _packed, bytes32 _pixTarget) internal

_setValidState

function _setValidState(address _sellerKey, contract ERC20 _erc20, uint256 _packed) internal

_addSellerBalance

function _addSellerBalance(address _sellerKey, contract ERC20 _erc20, uint256 _amount) internal

_decSellerBalance

function _decSellerBalance(address _sellerKey, contract ERC20 _erc20, uint256 _amount) internal

__sellerBalance

function __sellerBalance(address _sellerKey, contract ERC20 _erc20) internal view returns (uint256 _packed)

_castAddrToKey

function _castAddrToKey(address _addr) public pure returns (uint256 _key)

Public method that handles address to uint256 safe type casting.

Function sighash: 0x4b2ae980.

_castKeyToAddr

function _castKeyToAddr(uint256 _key) public pure returns (address _addr)