PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/lib/generated
Просмотр файла: BlockchainParameters.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 BlockchainParameters extends Contract {
clone(): BlockchainParameters;
methods: {
blockGasLimit(): CeloTxObject<string>;
checkProofOfPossession(sender: string, blsKey: string | number[], blsPop: string | number[]): CeloTxObject<boolean>;
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>;
initialized(): CeloTxObject<boolean>;
intrinsicGasForAlternativeFeeCurrency(): CeloTxObject<string>;
isOwner(): CeloTxObject<boolean>;
minQuorumSize(blockNumber: number | string): CeloTxObject<string>;
minQuorumSizeInCurrentSet(): CeloTxObject<string>;
numberValidatorsInCurrentSet(): CeloTxObject<string>;
numberValidatorsInSet(blockNumber: number | string): CeloTxObject<string>;
owner(): CeloTxObject<string>;
renounceOwnership(): CeloTxObject<void>;
transferOwnership(newOwner: string): CeloTxObject<void>;
uptimeLookbackWindow(): CeloTxObject<{
oldValue: string;
nextValue: string;
nextValueActivationEpoch: string;
0: string;
1: string;
2: string;
}>;
validatorSignerAddressFromCurrentSet(index: number | string): CeloTxObject<string>;
validatorSignerAddressFromSet(index: number | string, blockNumber: number | string): CeloTxObject<string>;
initialize(major: number | string, minor: number | string, patch: number | string, _gasForNonGoldCurrencies: number | string, gasLimit: number | string, lookbackWindow: number | string): CeloTxObject<void>;
getVersionNumber(): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
}>;
setMinimumClientVersion(major: number | string, minor: number | string, patch: number | string): CeloTxObject<void>;
setBlockGasLimit(gasLimit: number | string): CeloTxObject<void>;
setIntrinsicGasForAlternativeFeeCurrency(gas: number | string): CeloTxObject<void>;
setUptimeLookbackWindow(window: number | string): CeloTxObject<void>;
getUptimeLookbackWindow(): CeloTxObject<string>;
getMinimumClientVersion(): CeloTxObject<{
major: string;
minor: string;
patch: string;
0: string;
1: string;
2: string;
}>;
};
events: {
BlockGasLimitSet: ContractEvent<string>;
IntrinsicGasForAlternativeFeeCurrencySet: ContractEvent<string>;
MinimumClientVersionSet: ContractEvent<{
major: string;
minor: string;
patch: string;
0: string;
1: string;
2: string;
}>;
OwnershipTransferred: ContractEvent<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
UptimeLookbackWindowSet: ContractEvent<{
window: string;
activationEpoch: string;
0: string;
1: string;
}>;
allEvents: (options?: EventOptions, cb?: Callback<EventLog>) => EventEmitter;
};
}
export declare const ABI: AbiItem[];
export declare function newBlockchainParameters(web3: Web3, address: string): BlockchainParameters;
Выполнить команду
Для локальной разработки. Не используйте в интернете!