UNPKG

parsec-node

Version:

https://parseclabs.readthedocs.io/en/latest/

800 lines (799 loc) 13.2 kB
module.exports = [ { constant: true, inputs: [ { name: '', type: 'uint256', }, ], name: 'slots', outputs: [ { name: 'eventCounter', type: 'uint32', }, { name: 'owner', type: 'address', }, { name: 'stake', type: 'uint64', }, { name: 'signer', type: 'address', }, { name: 'tendermint', type: 'bytes32', }, { name: 'activationEpoch', type: 'uint32', }, { name: 'newOwner', type: 'address', }, { name: 'newStake', type: 'uint64', }, { name: 'newSigner', type: 'address', }, { name: 'newTendermint', type: 'bytes32', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'lastCompleteEpoch', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'epochLength', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'uint32', }, ], name: 'deposits', outputs: [ { name: 'height', type: 'uint64', }, { name: 'color', type: 'uint16', }, { name: 'owner', type: 'address', }, { name: 'amount', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'nftTokenCount', outputs: [ { name: '', type: 'uint16', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'averageGasPrice', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'erc20TokenCount', outputs: [ { name: '', type: 'uint16', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'bytes32', }, ], name: 'periods', outputs: [ { name: 'parent', type: 'bytes32', }, { name: 'height', type: 'uint32', }, { name: 'parentIndex', type: 'uint32', }, { name: 'slot', type: 'uint8', }, { name: 'timestamp', type: 'uint32', }, { name: 'reward', type: 'uint64', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'tipHash', outputs: [ { name: '', type: 'bytes32', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'uint16', }, ], name: 'tokens', outputs: [ { name: 'addr', type: 'address', }, { name: 'currentSize', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'bytes32', }, ], name: 'exits', outputs: [ { name: 'amount', type: 'uint256', }, { name: 'color', type: 'uint16', }, { name: 'owner', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { inputs: [ { name: '_epochLength', type: 'uint256', }, { name: '_maxReward', type: 'uint256', }, { name: '_parentBlockInterval', type: 'uint256', }, { name: '_exitDuration', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [ { indexed: false, name: 'epoch', type: 'uint256', }, ], name: 'Epoch', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'epochLength', type: 'uint256', }, ], name: 'EpochLength', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'blockNumber', type: 'uint256', }, { indexed: true, name: 'root', type: 'bytes32', }, ], name: 'NewHeight', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'depositId', type: 'uint32', }, { indexed: true, name: 'depositor', type: 'address', }, { indexed: true, name: 'color', type: 'uint256', }, { indexed: false, name: 'amount', type: 'uint256', }, ], name: 'NewDeposit', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'txHash', type: 'bytes32', }, { indexed: true, name: 'outIndex', type: 'uint256', }, { indexed: true, name: 'color', type: 'uint256', }, { indexed: false, name: 'exitor', type: 'address', }, { indexed: false, name: 'amount', type: 'uint256', }, ], name: 'ExitStarted', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'signerAddr', type: 'address', }, { indexed: true, name: 'slotId', type: 'uint256', }, { indexed: true, name: 'tenderAddr', type: 'bytes32', }, { indexed: false, name: 'eventCounter', type: 'uint256', }, { indexed: false, name: 'epoch', type: 'uint256', }, ], name: 'ValidatorJoin', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'signerAddr', type: 'address', }, { indexed: true, name: 'slotId', type: 'uint256', }, { indexed: true, name: 'tenderAddr', type: 'bytes32', }, { indexed: false, name: 'newSigner', type: 'address', }, { indexed: false, name: 'eventCounter', type: 'uint256', }, { indexed: false, name: 'epoch', type: 'uint256', }, ], name: 'ValidatorLogout', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'signerAddr', type: 'address', }, { indexed: true, name: 'slotId', type: 'uint256', }, { indexed: true, name: 'tenderAddr', type: 'bytes32', }, { indexed: false, name: 'epoch', type: 'uint256', }, ], name: 'ValidatorLeave', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'signerAddr', type: 'address', }, { indexed: true, name: 'slotId', type: 'uint256', }, { indexed: true, name: 'tenderAddr', type: 'bytes32', }, { indexed: false, name: 'eventCounter', type: 'uint256', }, ], name: 'ValidatorUpdate', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, name: 'tokenAddr', type: 'address', }, { indexed: false, name: 'color', type: 'uint16', }, ], name: 'NewToken', type: 'event', }, { constant: true, inputs: [], name: 'tokenCount', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_token', type: 'address', }, ], name: 'registerToken', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { name: '_slotId', type: 'uint256', }, ], name: 'getSlot', outputs: [ { name: '', type: 'uint32', }, { name: '', type: 'address', }, { name: '', type: 'uint64', }, { name: '', type: 'address', }, { name: '', type: 'bytes32', }, { name: '', type: 'uint32', }, { name: '', type: 'address', }, { name: '', type: 'uint64', }, { name: '', type: 'address', }, { name: '', type: 'bytes32', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'getTip', outputs: [ { name: '', type: 'bytes32', }, { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_slotId', type: 'uint256', }, { name: '_value', type: 'uint256', }, { name: '_signerAddr', type: 'address', }, { name: '_tenderAddr', type: 'bytes32', }, ], name: 'bet', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_slotId', type: 'uint256', }, ], name: 'activate', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_slotId', type: 'uint256', }, { name: '_prevHash', type: 'bytes32', }, { name: '_root', type: 'bytes32', }, ], name: 'submitPeriod', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_txData', type: 'bytes32[]', }, ], name: 'reportInvalidDeposit', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_proof', type: 'bytes32[]', }, { name: '_prevProof', type: 'bytes32[]', }, ], name: 'reportDoubleSpend', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_owner', type: 'address', }, { name: '_amountOrTokenId', type: 'uint256', }, { name: '_color', type: 'uint16', }, ], name: 'deposit', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_proof', type: 'bytes32[]', }, { name: '_oindex', type: 'uint256', }, ], name: 'startExit', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_proof', type: 'bytes32[]', }, { name: '_prevProof', type: 'bytes32[]', }, { name: '_oIndex', type: 'uint256', }, { name: '_inputIndex', type: 'uint256', }, ], name: 'challengeExit', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_color', type: 'uint16', }, ], name: 'finalizeExits', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, ];