Skip to content

Instantly share code, notes, and snippets.

@thomasmetta
Last active January 15, 2019 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasmetta/c5bef47731884c35e5c0eaa24651ee43 to your computer and use it in GitHub Desktop.
Save thomasmetta/c5bef47731884c35e5c0eaa24651ee43 to your computer and use it in GitHub Desktop.
Multi Channel ABI
[
{
"constant": false,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
},
{
"name": "_nonce",
"type": "uint256"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_v",
"type": "uint8"
},
{
"name": "_r",
"type": "bytes32"
},
{
"name": "_s",
"type": "bytes32"
},
{
"name": "_returnToken",
"type": "bool"
}
],
"name": "close",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
}
],
"name": "closeWithoutSignature",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
}
],
"name": "settle",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
},
{
"name": "_nonce",
"type": "uint256"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_v",
"type": "uint8"
},
{
"name": "_r",
"type": "bytes32"
},
{
"name": "_s",
"type": "bytes32"
}
],
"name": "updateClosedChannel",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addressOfWETH",
"type": "address"
},
{
"name": "_nonce",
"type": "uint256"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_v",
"type": "uint8"
},
{
"name": "_r",
"type": "bytes32"
},
{
"name": "_s",
"type": "bytes32"
},
{
"name": "gasAmount",
"type": "uint256"
}
],
"name": "deposit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
},
{
"name": "_from",
"type": "address"
},
{
"name": "_addressOfSigner",
"type": "address"
},
{
"name": "_expiryNumberOfBlocks",
"type": "uint32"
}
],
"name": "addChannel",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_addressOfToken",
"type": "address"
}
],
"name": "getChannelData",
"outputs": [
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "uint32"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint32"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_addressOfSigner",
"type": "address"
},
{
"name": "_addressOfToken",
"type": "address"
},
{
"name": "_expiryNumberOfBlocks",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "from",
"type": "address"
},
{
"indexed": false,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "blockNumber",
"type": "uint256"
}
],
"name": "LogChannelOpened",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "addressOfToken",
"type": "address"
},
{
"indexed": false,
"name": "blockNumber",
"type": "uint256"
},
{
"indexed": false,
"name": "closer",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "LogChannelClosed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "depositingAddress",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "LogDeposited",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "caller",
"type": "address"
}
],
"name": "LogChannelContested",
"type": "event"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment