PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@celo/contractkit/lib/generated
Просмотр файла: Governance.d.ts
/// <reference types="node" />
import { AbiItem, Callback, CeloTxObject, Contract, EventLog } from '@celo/connect';
import { EventEmitter } from 'events';
import Web3 from 'web3';
import { ContractEvent, EventOptions } from './types';
export interface Governance extends Contract {
clone(): Governance;
methods: {
approver(): CeloTxObject<string>;
checkProofOfPossession(sender: string, blsKey: string | number[], blsPop: string | number[]): CeloTxObject<boolean>;
concurrentProposals(): CeloTxObject<string>;
dequeueFrequency(): CeloTxObject<string>;
dequeued(arg0: number | string): CeloTxObject<string>;
emptyIndices(arg0: number | string): CeloTxObject<string>;
fractionMulExp(aNumerator: number | string, aDenominator: number | string, bNumerator: number | string, bDenominator: number | string, exponent: number | string, _decimals: number | string): CeloTxObject<{
0: string;
1: string;
}>;
getBlockNumberFromHeader(header: string | number[]): CeloTxObject<string>;
getEpochNumber(): CeloTxObject<string>;
getEpochNumberOfBlock(blockNumber: number | string): CeloTxObject<string>;
getEpochSize(): CeloTxObject<string>;
getParentSealBitmap(blockNumber: number | string): CeloTxObject<string>;
getVerifiedSealBitmapFromHeader(header: string | number[]): CeloTxObject<string>;
hashHeader(header: string | number[]): CeloTxObject<string>;
hotfixes(arg0: string | number[]): CeloTxObject<{
executed: boolean;
approved: boolean;
preparedEpoch: string;
0: boolean;
1: boolean;
2: string;
}>;
initialized(): CeloTxObject<boolean>;
isOwner(): CeloTxObject<boolean>;
lastDequeue(): CeloTxObject<string>;
minDeposit(): CeloTxObject<string>;
minQuorumSize(blockNumber: number | string): CeloTxObject<string>;
minQuorumSizeInCurrentSet(): CeloTxObject<string>;
numberValidatorsInCurrentSet(): CeloTxObject<string>;
numberValidatorsInSet(blockNumber: number | string): CeloTxObject<string>;
owner(): CeloTxObject<string>;
proposalCount(): CeloTxObject<string>;
queueExpiry(): CeloTxObject<string>;
refundedDeposits(arg0: string): CeloTxObject<string>;
registry(): CeloTxObject<string>;
renounceOwnership(): CeloTxObject<void>;
setRegistry(registryAddress: string): CeloTxObject<void>;
stageDurations(): CeloTxObject<{
approval: string;
referendum: string;
execution: string;
0: string;
1: string;
2: string;
}>;
transferOwnership(newOwner: string): CeloTxObject<void>;
validatorSignerAddressFromCurrentSet(index: number | string): CeloTxObject<string>;
validatorSignerAddressFromSet(index: number | string, blockNumber: number | string): CeloTxObject<string>;
getVersionNumber(): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
}>;
initialize(registryAddress: string, _approver: string, _concurrentProposals: number | string, _minDeposit: number | string, _queueExpiry: number | string, _dequeueFrequency: number | string, referendumStageDuration: number | string, executionStageDuration: number | string, participationBaseline: number | string, participationFloor: number | string, baselineUpdateFactor: number | string, baselineQuorumFactor: number | string): CeloTxObject<void>;
setApprover(_approver: string): CeloTxObject<void>;
setConcurrentProposals(_concurrentProposals: number | string): CeloTxObject<void>;
setMinDeposit(_minDeposit: number | string): CeloTxObject<void>;
setQueueExpiry(_queueExpiry: number | string): CeloTxObject<void>;
setDequeueFrequency(_dequeueFrequency: number | string): CeloTxObject<void>;
setReferendumStageDuration(referendumStageDuration: number | string): CeloTxObject<void>;
setExecutionStageDuration(executionStageDuration: number | string): CeloTxObject<void>;
setParticipationBaseline(participationBaseline: number | string): CeloTxObject<void>;
setParticipationFloor(participationFloor: number | string): CeloTxObject<void>;
setBaselineUpdateFactor(baselineUpdateFactor: number | string): CeloTxObject<void>;
setBaselineQuorumFactor(baselineQuorumFactor: number | string): CeloTxObject<void>;
setConstitution(destination: string, functionId: string | number[], threshold: number | string): CeloTxObject<void>;
propose(values: (number | string)[], destinations: string[], data: string | number[], dataLengths: (number | string)[], descriptionUrl: string): CeloTxObject<string>;
upvote(proposalId: number | string, lesser: number | string, greater: number | string): CeloTxObject<boolean>;
getProposalStage(proposalId: number | string): CeloTxObject<string>;
revokeUpvote(lesser: number | string, greater: number | string): CeloTxObject<boolean>;
approve(proposalId: number | string, index: number | string): CeloTxObject<boolean>;
vote(proposalId: number | string, index: number | string, value: number | string): CeloTxObject<boolean>;
revokeVotes(): CeloTxObject<boolean>;
execute(proposalId: number | string, index: number | string): CeloTxObject<boolean>;
approveHotfix(hash: string | number[]): CeloTxObject<void>;
isHotfixWhitelistedBy(hash: string | number[], whitelister: string): CeloTxObject<boolean>;
whitelistHotfix(hash: string | number[]): CeloTxObject<void>;
prepareHotfix(hash: string | number[]): CeloTxObject<void>;
executeHotfix(values: (number | string)[], destinations: string[], data: string | number[], dataLengths: (number | string)[], salt: string | number[]): CeloTxObject<void>;
withdraw(): CeloTxObject<boolean>;
isVoting(account: string): CeloTxObject<boolean>;
getReferendumStageDuration(): CeloTxObject<string>;
getExecutionStageDuration(): CeloTxObject<string>;
getParticipationParameters(): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
}>;
proposalExists(proposalId: number | string): CeloTxObject<boolean>;
getProposal(proposalId: number | string): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
getProposalTransaction(proposalId: number | string, index: number | string): CeloTxObject<{
0: string;
1: string;
2: string;
}>;
isApproved(proposalId: number | string): CeloTxObject<boolean>;
getVoteTotals(proposalId: number | string): CeloTxObject<{
0: string;
1: string;
2: string;
}>;
getVoteRecord(account: string, index: number | string): CeloTxObject<{
0: string;
1: string;
2: string;
}>;
getQueueLength(): CeloTxObject<string>;
getUpvotes(proposalId: number | string): CeloTxObject<string>;
getQueue(): CeloTxObject<{
0: string[];
1: string[];
}>;
getDequeue(): CeloTxObject<string[]>;
getUpvoteRecord(account: string): CeloTxObject<{
0: string;
1: string;
}>;
getMostRecentReferendumProposal(account: string): CeloTxObject<string>;
hotfixWhitelistValidatorTally(hash: string | number[]): CeloTxObject<string>;
isHotfixPassing(hash: string | number[]): CeloTxObject<boolean>;
getHotfixRecord(hash: string | number[]): CeloTxObject<{
0: boolean;
1: boolean;
2: string;
}>;
dequeueProposalsIfReady(): CeloTxObject<void>;
isQueued(proposalId: number | string): CeloTxObject<boolean>;
isProposalPassing(proposalId: number | string): CeloTxObject<boolean>;
isDequeuedProposal(proposalId: number | string, index: number | string): CeloTxObject<boolean>;
isDequeuedProposalExpired(proposalId: number | string): CeloTxObject<boolean>;
isQueuedProposalExpired(proposalId: number | string): CeloTxObject<boolean>;
getConstitution(destination: string, functionId: string | number[]): CeloTxObject<string>;
};
events: {
ApproverSet: ContractEvent<string>;
ConcurrentProposalsSet: ContractEvent<string>;
ConstitutionSet: ContractEvent<{
destination: string;
functionId: string;
threshold: string;
0: string;
1: string;
2: string;
}>;
DequeueFrequencySet: ContractEvent<string>;
ExecutionStageDurationSet: ContractEvent<string>;
HotfixApproved: ContractEvent<string>;
HotfixExecuted: ContractEvent<string>;
HotfixPrepared: ContractEvent<{
hash: string;
epoch: string;
0: string;
1: string;
}>;
HotfixWhitelisted: ContractEvent<{
hash: string;
whitelister: string;
0: string;
1: string;
}>;
MinDepositSet: ContractEvent<string>;
OwnershipTransferred: ContractEvent<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
ParticipationBaselineQuorumFactorSet: ContractEvent<string>;
ParticipationBaselineUpdateFactorSet: ContractEvent<string>;
ParticipationBaselineUpdated: ContractEvent<string>;
ParticipationFloorSet: ContractEvent<string>;
ProposalApproved: ContractEvent<string>;
ProposalDequeued: ContractEvent<{
proposalId: string;
timestamp: string;
0: string;
1: string;
}>;
ProposalExecuted: ContractEvent<string>;
ProposalExpired: ContractEvent<string>;
ProposalQueued: ContractEvent<{
proposalId: string;
proposer: string;
transactionCount: string;
deposit: string;
timestamp: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
ProposalUpvoteRevoked: ContractEvent<{
proposalId: string;
account: string;
revokedUpvotes: string;
0: string;
1: string;
2: string;
}>;
ProposalUpvoted: ContractEvent<{
proposalId: string;
account: string;
upvotes: string;
0: string;
1: string;
2: string;
}>;
ProposalVoteRevoked: ContractEvent<{
proposalId: string;
account: string;
value: string;
weight: string;
0: string;
1: string;
2: string;
3: string;
}>;
ProposalVoted: ContractEvent<{
proposalId: string;
account: string;
value: string;
weight: string;
0: string;
1: string;
2: string;
3: string;
}>;
QueueExpirySet: ContractEvent<string>;
ReferendumStageDurationSet: ContractEvent<string>;
RegistrySet: ContractEvent<string>;
allEvents: (options?: EventOptions, cb?: Callback<EventLog>) => EventEmitter;
};
}
export declare const ABI: AbiItem[];
export declare function newGovernance(web3: Web3, address: string): Governance;
Выполнить команду
Для локальной разработки. Не используйте в интернете!