final trc20Abi = [ {"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, { "anonymous": false, "inputs": [ {"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "spender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"} ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": false, "internalType": "uint256", "name": "total", "type": "uint256"}, {"indexed": true, "internalType": "uint16", "name": "order_id", "type": "uint16"}, {"indexed": true, "internalType": "address", "name": "buyer", "type": "address"}, {"indexed": true, "internalType": "address", "name": "seller", "type": "address"}, {"indexed": false, "internalType": "address", "name": "contract_address", "type": "address"} ], "name": "OrderPaid", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": true, "internalType": "address", "name": "previousOwner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "newOwner", "type": "address"} ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": false, "internalType": "address", "name": "token", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "active", "type": "bool"} ], "name": "TokenUpdate", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"} ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": false, "internalType": "string", "name": "username", "type": "string"}, {"indexed": true, "internalType": "address", "name": "seller", "type": "address"} ], "name": "UserRegistred", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": true, "internalType": "uint16", "name": "order_id", "type": "uint16"}, {"indexed": true, "internalType": "address", "name": "buyer", "type": "address"}, {"indexed": false, "internalType": "address", "name": "seller", "type": "address"} ], "name": "WBuyer", "type": "event" }, { "anonymous": false, "inputs": [ {"indexed": true, "internalType": "uint16", "name": "order_id", "type": "uint16"}, {"indexed": true, "internalType": "address", "name": "seller", "type": "address"}, {"indexed": false, "internalType": "address", "name": "buyer", "type": "address"} ], "name": "WSeller", "type": "event" }, { "inputs": [], "name": "CONTRACTPERCENTAGE", "outputs": [ {"internalType": "uint8", "name": "", "type": "uint8"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "uint16", "name": "order_id", "type": "uint16"}, {"internalType": "uint256", "name": "order_total", "type": "uint256"}, {"internalType": "address", "name": "contractAddress", "type": "address"}, {"internalType": "address", "name": "seller", "type": "address"} ], "name": "PayWithTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "TOKENINCREAMENT", "outputs": [ {"internalType": "uint16", "name": "", "type": "uint16"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "", "type": "address"} ], "name": "_signer", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "", "type": "address"} ], "name": "_tokens", "outputs": [ {"internalType": "bool", "name": "active", "type": "bool"}, {"internalType": "uint16", "name": "token", "type": "uint16"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "", "type": "address"} ], "name": "_users", "outputs": [ {"internalType": "bool", "name": "active", "type": "bool"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"} ], "name": "allowance", "outputs": [ {"internalType": "uint256", "name": "", "type": "uint256"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "approve", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "account", "type": "address"} ], "name": "balanceOf", "outputs": [ {"internalType": "uint256", "name": "", "type": "uint256"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "token", "type": "address"} ], "name": "balanceOfContract", "outputs": [ {"internalType": "uint256", "name": "", "type": "uint256"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "account", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "uint256", "name": "value", "type": "uint256"}, {"internalType": "address", "name": "_contractAddress", "type": "address"} ], "name": "contractWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ {"internalType": "uint8", "name": "", "type": "uint8"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "subtractedValue", "type": "uint256"} ], "name": "decreaseAllowance", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "addedValue", "type": "uint256"} ], "name": "increaseAllowance", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "to", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ {"internalType": "string", "name": "", "type": "string"} ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ {"internalType": "address", "name": "", "type": "address"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "token", "type": "address"}, {"internalType": "uint256", "name": "value", "type": "uint256"} ], "name": "payToContract", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ {"internalType": "uint16", "name": "order_id", "type": "uint16"}, {"internalType": "address", "name": "seller", "type": "address"} ], "name": "payWithNativeToken", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ {"internalType": "string", "name": "username", "type": "string"} ], "name": "regiserUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "uint16", "name": "id", "type": "uint16"}, {"internalType": "address", "name": "buyer", "type": "address"}, {"internalType": "address", "name": "seller", "type": "address"} ], "name": "selectOrder", "outputs": [ {"internalType": "uint232", "name": "", "type": "uint232"}, {"internalType": "uint16", "name": "", "type": "uint16"}, {"internalType": "uint8", "name": "", "type": "uint8"} ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ {"internalType": "string", "name": "", "type": "string"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "signer", "type": "address"} ], "name": "toggleSigner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "tokenAddress", "type": "address"} ], "name": "toggleToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ {"internalType": "uint256", "name": "", "type": "uint256"} ], "stateMutability": "view", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "to", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "transfer", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "from", "type": "address"}, {"internalType": "address", "name": "to", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"} ], "name": "transferFrom", "outputs": [ {"internalType": "bool", "name": "", "type": "bool"} ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "newOwner", "type": "address"} ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "uint8", "name": "newPercentage", "type": "uint8"} ], "name": "updateContractPercentage", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address[]", "name": "buyer", "type": "address[]"}, {"internalType": "bytes[]", "name": "signature", "type": "bytes[]"}, {"internalType": "uint16[]", "name": "order_id", "type": "uint16[]"}, {"internalType": "address", "name": "contractAddress", "type": "address"} ], "name": "widthrawForSellers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ {"internalType": "address", "name": "seller", "type": "address"}, {"internalType": "bytes", "name": "signature", "type": "bytes"}, {"internalType": "uint16", "name": "order_id", "type": "uint16"}, {"internalType": "address", "name": "contractAddress", "type": "address"} ], "name": "widthrowForBuyers", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ];