diff --git a/abis/1/RewardToken.json b/abis/1/RewardToken.json new file mode 100644 index 0000000..11c029c --- /dev/null +++ b/abis/1/RewardToken.json @@ -0,0 +1,885 @@ +[ + { + "type": "constructor", + "inputs": [ + { + "name": "_evc", + "type": "address", + "internalType": "address" + }, + { + "name": "_owner", + "type": "address", + "internalType": "address" + }, + { + "name": "_receiver", + "type": "address", + "internalType": "address" + }, + { + "name": "_underlying", + "type": "address", + "internalType": "address" + }, + { + "name": "_name", + "type": "string", + "internalType": "string" + }, + { + "name": "_symbol", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "EVC", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "allowance", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositFor", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getLockedAmountByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmounts", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmountsLength", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmountsLockTimestamps", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getWithdrawAmountsByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isWhitelisted", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "remainderReceiver", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setRemainderReceiver", + "inputs": [ + { + "name": "_remainderReceiver", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setWhitelistStatus", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "underlying", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "withdrawTo", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawToByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "allowRemainderLoss", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawToByLockTimestamps", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamps", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { + "name": "allowRemainderLoss", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LockCreated", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LockRemoved", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RemainderReceiverSet", + "inputs": [ + { + "name": "remainderReceiver", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WhitelistStatus", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ControllerDisabled", + "inputs": [] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidUnderlying", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "EVC_InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "EnumerableMapNonexistentKey", + "inputs": [ + { + "name": "key", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "FailedCall", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientBalance", + "inputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NotAuthorized", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "RemainderLossNotAllowed", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + } +] diff --git a/abis/test/42161/RewardToken.json b/abis/test/42161/RewardToken.json new file mode 100644 index 0000000..11c029c --- /dev/null +++ b/abis/test/42161/RewardToken.json @@ -0,0 +1,885 @@ +[ + { + "type": "constructor", + "inputs": [ + { + "name": "_evc", + "type": "address", + "internalType": "address" + }, + { + "name": "_owner", + "type": "address", + "internalType": "address" + }, + { + "name": "_receiver", + "type": "address", + "internalType": "address" + }, + { + "name": "_underlying", + "type": "address", + "internalType": "address" + }, + { + "name": "_name", + "type": "string", + "internalType": "string" + }, + { + "name": "_symbol", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "EVC", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "allowance", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "depositFor", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getLockedAmountByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmounts", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmountsLength", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getLockedAmountsLockTimestamps", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getWithdrawAmountsByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isWhitelisted", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "remainderReceiver", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setRemainderReceiver", + "inputs": [ + { + "name": "_remainderReceiver", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setWhitelistStatus", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "underlying", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "withdrawTo", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawToByLockTimestamp", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "allowRemainderLoss", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawToByLockTimestamps", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "lockTimestamps", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { + "name": "allowRemainderLoss", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LockCreated", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LockRemoved", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lockTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RemainderReceiverSet", + "inputs": [ + { + "name": "remainderReceiver", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WhitelistStatus", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ControllerDisabled", + "inputs": [] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidUnderlying", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "EVC_InvalidAddress", + "inputs": [] + }, + { + "type": "error", + "name": "EnumerableMapNonexistentKey", + "inputs": [ + { + "name": "key", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "FailedCall", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientBalance", + "inputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NotAuthorized", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "RemainderLossNotAllowed", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + } +] diff --git a/addresses/1/LensAddresses.json b/addresses/1/LensAddresses.json index aba7065..ce351ff 100644 --- a/addresses/1/LensAddresses.json +++ b/addresses/1/LensAddresses.json @@ -2,7 +2,7 @@ "accountLens": "0x5903C59B12219cB93355EEbD3397f1B5dE91B45a", "eulerEarnVaultLens": "0x0000000000000000000000000000000000000000", "irmLens": "0x0a6bF6C5BB7301fa6731261c6cFb65df778e7743", - "oracleLens": "0x79211feB623CCc1ed357B8Cf14cD60c04D08faB6", - "utilsLens": "0xf364CeEE501fb73e5dD7B313ECf0a6b98F6118ea", - "vaultLens": "0x57904B4DF131F00DEE9BB75a8FA1D27744035c90" + "oracleLens": "0x4000439DD7F435d2236f154fEfa1Fb0B99f9Dbc4", + "utilsLens": "0xdF7EC7D1970362B5f5d031C621152deaB7e1938d", + "vaultLens": "0x0Dd643580a1B137DB748651A6a9be13Ba5734Fd8" } diff --git a/addresses/1/LensAddresses.sol b/addresses/1/LensAddresses.sol index b3e8fc6..ee988d7 100644 --- a/addresses/1/LensAddresses.sol +++ b/addresses/1/LensAddresses.sol @@ -5,7 +5,7 @@ library LensAddresses { address public constant accountLens = 0x5903C59B12219cB93355EEbD3397f1B5dE91B45a; address public constant eulerEarnVaultLens = 0x0000000000000000000000000000000000000000; address public constant irmLens = 0x0a6bF6C5BB7301fa6731261c6cFb65df778e7743; - address public constant oracleLens = 0x79211feB623CCc1ed357B8Cf14cD60c04D08faB6; - address public constant utilsLens = 0xf364CeEE501fb73e5dD7B313ECf0a6b98F6118ea; - address public constant vaultLens = 0x57904B4DF131F00DEE9BB75a8FA1D27744035c90; + address public constant oracleLens = 0x4000439DD7F435d2236f154fEfa1Fb0B99f9Dbc4; + address public constant utilsLens = 0xdF7EC7D1970362B5f5d031C621152deaB7e1938d; + address public constant vaultLens = 0x0Dd643580a1B137DB748651A6a9be13Ba5734Fd8; } diff --git a/addresses/test/42161/LensAddresses.json b/addresses/test/42161/LensAddresses.json index 979d62e..cacd371 100644 --- a/addresses/test/42161/LensAddresses.json +++ b/addresses/test/42161/LensAddresses.json @@ -2,7 +2,7 @@ "accountLens": "0xFf5588bb70C7382bF4c157Ca4460168e41F9aDB7", "eulerEarnVaultLens": "0x847b5d1a6d57A36f0D0e0be260195034Fa7A4534", "irmLens": "0x74425ebF8C59F0d271023dDE63Bb949262e4256D", - "oracleLens": "0xdDf7e26F57BddcFFED2E73F57af4f2b856f50c24", - "utilsLens": "0xC47bEd76EAE94ef28316524a1cb3cBe6a3CDB0FC", - "vaultLens": "0xC4D387247D6bAAf63Fcf27Eb7F34a3e3C0a90137" + "oracleLens": "0x26Fc1ECB48A7A75d64a296906159dA97994953F2", + "utilsLens": "0xb67B5c1D1efDCfDc33e49114d2657760DB3884a6", + "vaultLens": "0x1b1FBEB4f93Ef5b27bA58dE7C6018F6b29FE4482" } diff --git a/addresses/test/42161/LensAddresses.sol b/addresses/test/42161/LensAddresses.sol index a1bbe72..55c7410 100644 --- a/addresses/test/42161/LensAddresses.sol +++ b/addresses/test/42161/LensAddresses.sol @@ -5,7 +5,7 @@ library LensAddresses { address public constant accountLens = 0xFf5588bb70C7382bF4c157Ca4460168e41F9aDB7; address public constant eulerEarnVaultLens = 0x847b5d1a6d57A36f0D0e0be260195034Fa7A4534; address public constant irmLens = 0x74425ebF8C59F0d271023dDE63Bb949262e4256D; - address public constant oracleLens = 0xdDf7e26F57BddcFFED2E73F57af4f2b856f50c24; - address public constant utilsLens = 0xC47bEd76EAE94ef28316524a1cb3cBe6a3CDB0FC; - address public constant vaultLens = 0xC4D387247D6bAAf63Fcf27Eb7F34a3e3C0a90137; + address public constant oracleLens = 0x26Fc1ECB48A7A75d64a296906159dA97994953F2; + address public constant utilsLens = 0xb67B5c1D1efDCfDc33e49114d2657760DB3884a6; + address public constant vaultLens = 0x1b1FBEB4f93Ef5b27bA58dE7C6018F6b29FE4482; } diff --git a/interfaces/1/IRewardToken.sol b/interfaces/1/IRewardToken.sol new file mode 100644 index 0000000..f3fc8ad --- /dev/null +++ b/interfaces/1/IRewardToken.sol @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +interface IRewardToken { + error AddressEmptyCode(address target); + error ControllerDisabled(); + error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); + error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); + error ERC20InvalidApprover(address approver); + error ERC20InvalidReceiver(address receiver); + error ERC20InvalidSender(address sender); + error ERC20InvalidSpender(address spender); + error ERC20InvalidUnderlying(address token); + error EVC_InvalidAddress(); + error EnumerableMapNonexistentKey(bytes32 key); + error FailedCall(); + error InsufficientBalance(uint256 balance, uint256 needed); + error NotAuthorized(); + error OwnableInvalidOwner(address owner); + error OwnableUnauthorizedAccount(address account); + error RemainderLossNotAllowed(); + error SafeERC20FailedOperation(address token); + + event Approval(address indexed owner, address indexed spender, uint256 value); + event LockCreated(address indexed account, uint256 lockTimestamp); + event LockRemoved(address indexed account, uint256 lockTimestamp); + event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); + event RemainderReceiverSet(address indexed remainderReceiver); + event Transfer(address indexed from, address indexed to, uint256 value); + event WhitelistStatus(address indexed account, bool status); + + function EVC() external view returns (address); + function allowance(address owner, address spender) external view returns (uint256); + function approve(address spender, uint256 value) external returns (bool); + function balanceOf(address account) external view returns (uint256); + function decimals() external view returns (uint8); + function depositFor(address account, uint256 amount) external returns (bool); + function getLockedAmountByLockTimestamp(address account, uint256 lockTimestamp) external view returns (uint256); + function getLockedAmounts(address account) external view returns (uint256[] memory, uint256[] memory); + function getLockedAmountsLength(address account) external view returns (uint256); + function getLockedAmountsLockTimestamps(address account) external view returns (uint256[] memory); + function getWithdrawAmountsByLockTimestamp(address account, uint256 lockTimestamp) + external + view + returns (uint256, uint256); + function isWhitelisted(address) external view returns (bool); + function name() external view returns (string memory); + function owner() external view returns (address); + function remainderReceiver() external view returns (address); + function renounceOwnership() external; + function setRemainderReceiver(address _remainderReceiver) external; + function setWhitelistStatus(address account, bool status) external; + function symbol() external view returns (string memory); + function totalSupply() external view returns (uint256); + function transfer(address to, uint256 amount) external returns (bool); + function transferFrom(address from, address to, uint256 amount) external returns (bool); + function transferOwnership(address newOwner) external; + function underlying() external view returns (address); + function withdrawTo(address account, uint256 amount) external returns (bool); + function withdrawToByLockTimestamp(address account, uint256 lockTimestamp, bool allowRemainderLoss) + external + returns (bool); + function withdrawToByLockTimestamps(address account, uint256[] memory lockTimestamps, bool allowRemainderLoss) + external + returns (bool); +} diff --git a/interfaces/test/42161/IRewardToken.sol b/interfaces/test/42161/IRewardToken.sol new file mode 100644 index 0000000..f3fc8ad --- /dev/null +++ b/interfaces/test/42161/IRewardToken.sol @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +interface IRewardToken { + error AddressEmptyCode(address target); + error ControllerDisabled(); + error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); + error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); + error ERC20InvalidApprover(address approver); + error ERC20InvalidReceiver(address receiver); + error ERC20InvalidSender(address sender); + error ERC20InvalidSpender(address spender); + error ERC20InvalidUnderlying(address token); + error EVC_InvalidAddress(); + error EnumerableMapNonexistentKey(bytes32 key); + error FailedCall(); + error InsufficientBalance(uint256 balance, uint256 needed); + error NotAuthorized(); + error OwnableInvalidOwner(address owner); + error OwnableUnauthorizedAccount(address account); + error RemainderLossNotAllowed(); + error SafeERC20FailedOperation(address token); + + event Approval(address indexed owner, address indexed spender, uint256 value); + event LockCreated(address indexed account, uint256 lockTimestamp); + event LockRemoved(address indexed account, uint256 lockTimestamp); + event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); + event RemainderReceiverSet(address indexed remainderReceiver); + event Transfer(address indexed from, address indexed to, uint256 value); + event WhitelistStatus(address indexed account, bool status); + + function EVC() external view returns (address); + function allowance(address owner, address spender) external view returns (uint256); + function approve(address spender, uint256 value) external returns (bool); + function balanceOf(address account) external view returns (uint256); + function decimals() external view returns (uint8); + function depositFor(address account, uint256 amount) external returns (bool); + function getLockedAmountByLockTimestamp(address account, uint256 lockTimestamp) external view returns (uint256); + function getLockedAmounts(address account) external view returns (uint256[] memory, uint256[] memory); + function getLockedAmountsLength(address account) external view returns (uint256); + function getLockedAmountsLockTimestamps(address account) external view returns (uint256[] memory); + function getWithdrawAmountsByLockTimestamp(address account, uint256 lockTimestamp) + external + view + returns (uint256, uint256); + function isWhitelisted(address) external view returns (bool); + function name() external view returns (string memory); + function owner() external view returns (address); + function remainderReceiver() external view returns (address); + function renounceOwnership() external; + function setRemainderReceiver(address _remainderReceiver) external; + function setWhitelistStatus(address account, bool status) external; + function symbol() external view returns (string memory); + function totalSupply() external view returns (uint256); + function transfer(address to, uint256 amount) external returns (bool); + function transferFrom(address from, address to, uint256 amount) external returns (bool); + function transferOwnership(address newOwner) external; + function underlying() external view returns (address); + function withdrawTo(address account, uint256 amount) external returns (bool); + function withdrawToByLockTimestamp(address account, uint256 lockTimestamp, bool allowRemainderLoss) + external + returns (bool); + function withdrawToByLockTimestamps(address account, uint256[] memory lockTimestamps, bool allowRemainderLoss) + external + returns (bool); +} diff --git a/sync.sh b/sync.sh index c18d59f..3990faa 100755 --- a/sync.sh +++ b/sync.sh @@ -35,6 +35,7 @@ contracts=( "IRMLinearKink" "EulerRouter" "TermsOfUseSigner" + "RewardToken" ) if [[ "$@" != *"--only-addresses"* ]]; then