PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@celo/contractkit/lib/generated
Просмотр файла: Governance.js
"use strict";
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.newGovernance = exports.ABI = void 0;
exports.ABI = [
{
inputs: [{ internalType: 'bool', name: 'test', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'approver',
type: 'address',
},
],
name: 'ApproverSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'concurrentProposals',
type: 'uint256',
},
],
name: 'ConcurrentProposalsSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'destination',
type: 'address',
},
{
indexed: true,
internalType: 'bytes4',
name: 'functionId',
type: 'bytes4',
},
{
indexed: false,
internalType: 'uint256',
name: 'threshold',
type: 'uint256',
},
],
name: 'ConstitutionSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'dequeueFrequency',
type: 'uint256',
},
],
name: 'DequeueFrequencySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'executionStageDuration',
type: 'uint256',
},
],
name: 'ExecutionStageDurationSet',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: true, internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'HotfixApproved',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: true, internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'HotfixExecuted',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'bytes32', name: 'hash', type: 'bytes32' },
{ indexed: true, internalType: 'uint256', name: 'epoch', type: 'uint256' },
],
name: 'HotfixPrepared',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'bytes32', name: 'hash', type: 'bytes32' },
{
indexed: false,
internalType: 'address',
name: 'whitelister',
type: 'address',
},
],
name: 'HotfixWhitelisted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'minDeposit',
type: 'uint256',
},
],
name: 'MinDepositSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'baselineQuorumFactor',
type: 'uint256',
},
],
name: 'ParticipationBaselineQuorumFactorSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'baselineUpdateFactor',
type: 'uint256',
},
],
name: 'ParticipationBaselineUpdateFactorSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'participationBaseline',
type: 'uint256',
},
],
name: 'ParticipationBaselineUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'participationFloor',
type: 'uint256',
},
],
name: 'ParticipationFloorSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
],
name: 'ProposalApproved',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
],
name: 'ProposalDequeued',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
],
name: 'ProposalExecuted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
],
name: 'ProposalExpired',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'proposer',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'transactionCount',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'deposit',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'timestamp',
type: 'uint256',
},
],
name: 'ProposalQueued',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'revokedUpvotes',
type: 'uint256',
},
],
name: 'ProposalUpvoteRevoked',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'upvotes',
type: 'uint256',
},
],
name: 'ProposalUpvoted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
{
indexed: false,
internalType: 'uint256',
name: 'weight',
type: 'uint256',
},
],
name: 'ProposalVoteRevoked',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'proposalId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
{
indexed: false,
internalType: 'uint256',
name: 'weight',
type: 'uint256',
},
],
name: 'ProposalVoted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'queueExpiry',
type: 'uint256',
},
],
name: 'QueueExpirySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'referendumStageDuration',
type: 'uint256',
},
],
name: 'ReferendumStageDurationSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'registryAddress',
type: 'address',
},
],
name: 'RegistrySet',
type: 'event',
},
{ payable: true, stateMutability: 'payable', type: 'fallback' },
{
constant: true,
inputs: [],
name: 'approver',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'address', name: 'sender', type: 'address' },
{ internalType: 'bytes', name: 'blsKey', type: 'bytes' },
{ internalType: 'bytes', name: 'blsPop', type: 'bytes' },
],
name: 'checkProofOfPossession',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'concurrentProposals',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'dequeueFrequency',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'dequeued',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'emptyIndices',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'uint256', name: 'aNumerator', type: 'uint256' },
{ internalType: 'uint256', name: 'aDenominator', type: 'uint256' },
{ internalType: 'uint256', name: 'bNumerator', type: 'uint256' },
{ internalType: 'uint256', name: 'bDenominator', type: 'uint256' },
{ internalType: 'uint256', name: 'exponent', type: 'uint256' },
{ internalType: 'uint256', name: '_decimals', type: 'uint256' },
],
name: 'fractionMulExp',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes', name: 'header', type: 'bytes' }],
name: 'getBlockNumberFromHeader',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getEpochNumber',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' }],
name: 'getEpochNumberOfBlock',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getEpochSize',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' }],
name: 'getParentSealBitmap',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes', name: 'header', type: 'bytes' }],
name: 'getVerifiedSealBitmapFromHeader',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes', name: 'header', type: 'bytes' }],
name: 'hashHeader',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
name: 'hotfixes',
outputs: [
{ internalType: 'bool', name: 'executed', type: 'bool' },
{ internalType: 'bool', name: 'approved', type: 'bool' },
{ internalType: 'uint256', name: 'preparedEpoch', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'initialized',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isOwner',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'lastDequeue',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'minDeposit',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' }],
name: 'minQuorumSize',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'minQuorumSizeInCurrentSet',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'numberValidatorsInCurrentSet',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' }],
name: 'numberValidatorsInSet',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'proposalCount',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'queueExpiry',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'refundedDeposits',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'registry',
outputs: [{ internalType: 'contract IRegistry', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'renounceOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],
name: 'setRegistry',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'stageDurations',
outputs: [
{ internalType: 'uint256', name: 'approval', type: 'uint256' },
{ internalType: 'uint256', name: 'referendum', type: 'uint256' },
{ internalType: 'uint256', name: 'execution', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'index', type: 'uint256' }],
name: 'validatorSignerAddressFromCurrentSet',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'uint256', name: 'index', type: 'uint256' },
{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' },
],
name: 'validatorSignerAddressFromSet',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getVersionNumber',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'pure',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'registryAddress', type: 'address' },
{ internalType: 'address', name: '_approver', type: 'address' },
{ internalType: 'uint256', name: '_concurrentProposals', type: 'uint256' },
{ internalType: 'uint256', name: '_minDeposit', type: 'uint256' },
{ internalType: 'uint256', name: '_queueExpiry', type: 'uint256' },
{ internalType: 'uint256', name: '_dequeueFrequency', type: 'uint256' },
{
internalType: 'uint256',
name: 'referendumStageDuration',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'executionStageDuration',
type: 'uint256',
},
{ internalType: 'uint256', name: 'participationBaseline', type: 'uint256' },
{ internalType: 'uint256', name: 'participationFloor', type: 'uint256' },
{ internalType: 'uint256', name: 'baselineUpdateFactor', type: 'uint256' },
{ internalType: 'uint256', name: 'baselineQuorumFactor', type: 'uint256' },
],
name: 'initialize',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: '_approver', type: 'address' }],
name: 'setApprover',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: '_concurrentProposals', type: 'uint256' }],
name: 'setConcurrentProposals',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: '_minDeposit', type: 'uint256' }],
name: 'setMinDeposit',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: '_queueExpiry', type: 'uint256' }],
name: 'setQueueExpiry',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: '_dequeueFrequency', type: 'uint256' }],
name: 'setDequeueFrequency',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
internalType: 'uint256',
name: 'referendumStageDuration',
type: 'uint256',
},
],
name: 'setReferendumStageDuration',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
internalType: 'uint256',
name: 'executionStageDuration',
type: 'uint256',
},
],
name: 'setExecutionStageDuration',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'participationBaseline', type: 'uint256' }],
name: 'setParticipationBaseline',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'participationFloor', type: 'uint256' }],
name: 'setParticipationFloor',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'baselineUpdateFactor', type: 'uint256' }],
name: 'setBaselineUpdateFactor',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'baselineQuorumFactor', type: 'uint256' }],
name: 'setBaselineQuorumFactor',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'destination', type: 'address' },
{ internalType: 'bytes4', name: 'functionId', type: 'bytes4' },
{ internalType: 'uint256', name: 'threshold', type: 'uint256' },
],
name: 'setConstitution',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256[]', name: 'values', type: 'uint256[]' },
{ internalType: 'address[]', name: 'destinations', type: 'address[]' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint256[]', name: 'dataLengths', type: 'uint256[]' },
{ internalType: 'string', name: 'descriptionUrl', type: 'string' },
],
name: 'propose',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: true,
stateMutability: 'payable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'lesser', type: 'uint256' },
{ internalType: 'uint256', name: 'greater', type: 'uint256' },
],
name: 'upvote',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'getProposalStage',
outputs: [{ internalType: 'enum Proposals.Stage', name: '', type: 'uint8' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'lesser', type: 'uint256' },
{ internalType: 'uint256', name: 'greater', type: 'uint256' },
],
name: 'revokeUpvote',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'approve',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
{ internalType: 'enum Proposals.VoteValue', name: 'value', type: 'uint8' },
],
name: 'vote',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'revokeVotes',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'execute',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'approveHotfix',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'bytes32', name: 'hash', type: 'bytes32' },
{ internalType: 'address', name: 'whitelister', type: 'address' },
],
name: 'isHotfixWhitelistedBy',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'whitelistHotfix',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'prepareHotfix',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256[]', name: 'values', type: 'uint256[]' },
{ internalType: 'address[]', name: 'destinations', type: 'address[]' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint256[]', name: 'dataLengths', type: 'uint256[]' },
{ internalType: 'bytes32', name: 'salt', type: 'bytes32' },
],
name: 'executeHotfix',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'withdraw',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'isVoting',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getReferendumStageDuration',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getExecutionStageDuration',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getParticipationParameters',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'proposalExists',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'getProposal',
outputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'string', name: '', type: 'string' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'getProposalTransaction',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'bytes', name: '', type: 'bytes' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'isApproved',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'getVoteTotals',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'address', name: 'account', type: 'address' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'getVoteRecord',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getQueueLength',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'getUpvotes',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getQueue',
outputs: [
{ internalType: 'uint256[]', name: '', type: 'uint256[]' },
{ internalType: 'uint256[]', name: '', type: 'uint256[]' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getDequeue',
outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getUpvoteRecord',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getMostRecentReferendumProposal',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'hotfixWhitelistValidatorTally',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'isHotfixPassing',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'getHotfixRecord',
outputs: [
{ internalType: 'bool', name: '', type: 'bool' },
{ internalType: 'bool', name: '', type: 'bool' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'dequeueProposalsIfReady',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'isQueued',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'isProposalPassing',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'uint256', name: 'proposalId', type: 'uint256' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'isDequeuedProposal',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'isDequeuedProposalExpired',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: 'proposalId', type: 'uint256' }],
name: 'isQueuedProposalExpired',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'address', name: 'destination', type: 'address' },
{ internalType: 'bytes4', name: 'functionId', type: 'bytes4' },
],
name: 'getConstitution',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
function newGovernance(web3, address) {
return new web3.eth.Contract(exports.ABI, address);
}
exports.newGovernance = newGovernance;
//# sourceMappingURL=Governance.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!