UNPKG

dkg-evm-module

Version:
218 lines (217 loc) 4.03 kB
[ { "inputs": [ { "internalType": "address", "name": "hubAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianHasNoOwners", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianNotAContract", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "custodian", "type": "address" } ], "name": "CustodianWithoutOwnersFunction", "type": "error" }, { "inputs": [], "name": "EtherTransferFailed", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "tokenContractAddress", "type": "address" } ], "name": "InvalidTokenContract", "type": "error" }, { "inputs": [], "name": "TokenTransferFailed", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "msg", "type": "string" } ], "name": "UnauthorizedAccess", "type": "error" }, { "inputs": [], "name": "ZeroAddressCustodian", "type": "error" }, { "inputs": [], "name": "ZeroAddressHub", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "address", "name": "tokenContract", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "MisplacedERC20Withdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "MisplacedEtherWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "custodian", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "TokenTransferred", "type": "event" }, { "inputs": [], "name": "hub", "outputs": [ { "internalType": "contract Hub", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "tokenContract", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "custodian", "type": "address" } ], "name": "transferTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "withdrawMisplacedEther", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "tokenContractAddress", "type": "address" } ], "name": "withdrawMisplacedTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]