@verified-network/verified-sdk
Version:
An SDK to develop applications on the Verified Network
602 lines (601 loc) • 16.1 kB
JSON
{
"contractName": "Vault",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "address"
}
],
"name": "accruals",
"outputs": [
{
"name": "startTimestamp",
"type": "uint256"
},
{
"name": "lastTimestamp",
"type": "uint256"
},
{
"name": "cumulativeBalance",
"type": "uint256"
},
{
"name": "lastBalance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "sender",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "creator",
"type": "bytes32"
},
{
"indexed": false,
"name": "participant",
"type": "bytes32"
}
],
"name": "NewParticipant",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "creator",
"type": "bytes32"
},
{
"indexed": false,
"name": "participant",
"type": "bytes32"
},
{
"indexed": false,
"name": "txid",
"type": "uint256"
}
],
"name": "NewTransaction",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "creator",
"type": "bytes32"
},
{
"indexed": false,
"name": "participant",
"type": "bytes32"
},
{
"indexed": false,
"name": "txid",
"type": "uint256"
}
],
"name": "SignTransaction",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "creator",
"type": "bytes32"
},
{
"indexed": false,
"name": "participant",
"type": "bytes32"
},
{
"indexed": false,
"name": "confirmation",
"type": "bool"
}
],
"name": "SignResponse",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "platform",
"type": "address"
},
{
"indexed": false,
"name": "collection",
"type": "uint256"
},
{
"indexed": false,
"name": "timestamp",
"type": "uint256"
}
],
"name": "feecollection",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "f",
"type": "uint256"
}
],
"name": "feeCalc",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_nominee",
"type": "address"
}
],
"name": "setDistributor",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_fee",
"type": "uint256"
}
],
"name": "setCustodyFee",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
}
],
"name": "createVault",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getVaults",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
}
],
"name": "getCreator",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_transferee",
"type": "address"
}
],
"name": "transferVault",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_participant",
"type": "bytes32"
},
{
"name": "_shard",
"type": "string"
}
],
"name": "addParticipant",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_participant",
"type": "bytes32"
}
],
"name": "removeParticipant",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_participant",
"type": "bytes32"
},
{
"name": "_confirmation",
"type": "bool"
}
],
"name": "confirmParticipant",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_minParticipants",
"type": "uint256"
}
],
"name": "defineQuorum",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
}
],
"name": "getQuorum",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
}
],
"name": "promptSignatures",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_participant",
"type": "bytes32"
},
{
"name": "_tx",
"type": "uint256"
}
],
"name": "signTransaction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_txid",
"type": "uint256"
}
],
"name": "checkQuorum",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_txid",
"type": "uint256"
}
],
"name": "getShards",
"outputs": [
{
"name": "",
"type": "string[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "_txid",
"type": "uint256"
}
],
"name": "cleanTx",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "token",
"type": "address"
}
],
"name": "snapshotBalance",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_creator",
"type": "bytes32"
},
{
"name": "token",
"type": "address"
}
],
"name": "calculateAverageBalance",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_token",
"type": "address"
}
],
"name": "collectCustodyFee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
}