{ "_format": "hh-sol-artifact-1", "contractName": "IPaymentChannelManager", "sourceName": "contracts/channels/IPaymentChannelManager.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "AdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "balanceA", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "balanceB", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newDeadline", "type": "uint256" } ], "name": "ChallengeSubmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "oldWindow", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newWindow", "type": "uint256" } ], "name": "ChallengeWindowUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "balanceA", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "balanceB", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "cooperative", "type": "bool" } ], "name": "ChannelClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "participantA", "type": "address" }, { "indexed": true, "internalType": "address", "name": "participantB", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "depositA", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "depositB", "type": "uint256" } ], "name": "ChannelOpened", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Unpaused", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "balanceA", "type": "uint256" }, { "internalType": "uint256", "name": "balanceB", "type": "uint256" }, { "internalType": "uint8", "name": "vA", "type": "uint8" }, { "internalType": "bytes32", "name": "rA", "type": "bytes32" }, { "internalType": "bytes32", "name": "sA", "type": "bytes32" }, { "internalType": "uint8", "name": "vB", "type": "uint8" }, { "internalType": "bytes32", "name": "rB", "type": "bytes32" }, { "internalType": "bytes32", "name": "sB", "type": "bytes32" } ], "name": "challengeClose", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "balanceA", "type": "uint256" }, { "internalType": "uint256", "name": "balanceB", "type": "uint256" }, { "internalType": "uint8", "name": "vA", "type": "uint8" }, { "internalType": "bytes32", "name": "rA", "type": "bytes32" }, { "internalType": "bytes32", "name": "sA", "type": "bytes32" }, { "internalType": "uint8", "name": "vB", "type": "uint8" }, { "internalType": "bytes32", "name": "rB", "type": "bytes32" }, { "internalType": "bytes32", "name": "sB", "type": "bytes32" } ], "name": "closeChannelCooperative", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" } ], "name": "finalizeClose", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" } ], "name": "fundChannel", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" } ], "name": "getChannel", "outputs": [ { "components": [ { "internalType": "address", "name": "participantA", "type": "address" }, { "internalType": "address", "name": "participantB", "type": "address" }, { "internalType": "uint256", "name": "depositA", "type": "uint256" }, { "internalType": "uint256", "name": "depositB", "type": "uint256" }, { "internalType": "enum IPaymentChannelManager.ChannelStatus", "name": "status", "type": "uint8" }, { "internalType": "uint256", "name": "disputeNonce", "type": "uint256" }, { "internalType": "uint256", "name": "disputeBalanceA", "type": "uint256" }, { "internalType": "uint256", "name": "disputeBalanceB", "type": "uint256" }, { "internalType": "uint256", "name": "disputeDeadline", "type": "uint256" } ], "internalType": "struct IPaymentChannelManager.Channel", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getChannelCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "participantA", "type": "address" }, { "internalType": "address", "name": "participantB", "type": "address" } ], "name": "getChannelId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "participantB", "type": "address" } ], "name": "openChannel", "outputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "channelId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "uint256", "name": "balanceA", "type": "uint256" }, { "internalType": "uint256", "name": "balanceB", "type": "uint256" }, { "internalType": "uint8", "name": "vA", "type": "uint8" }, { "internalType": "bytes32", "name": "rA", "type": "bytes32" }, { "internalType": "bytes32", "name": "sA", "type": "bytes32" }, { "internalType": "uint8", "name": "vB", "type": "uint8" }, { "internalType": "bytes32", "name": "rB", "type": "bytes32" }, { "internalType": "bytes32", "name": "sB", "type": "bytes32" } ], "name": "submitClose", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }