PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/lib/generated
Просмотр файла: LockedGold.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 LockedGold extends Contract {
clone(): LockedGold;
methods: {
initialized(): CeloTxObject<boolean>;
isOwner(): CeloTxObject<boolean>;
owner(): CeloTxObject<string>;
registry(): CeloTxObject<string>;
renounceOwnership(): CeloTxObject<void>;
setRegistry(registryAddress: string): CeloTxObject<void>;
slashingWhitelist(arg0: number | string): CeloTxObject<string>;
totalNonvoting(): CeloTxObject<string>;
transferOwnership(newOwner: string): CeloTxObject<void>;
unlockingPeriod(): CeloTxObject<string>;
isSlasher(slasher: string): CeloTxObject<boolean>;
getVersionNumber(): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
}>;
initialize(registryAddress: string, _unlockingPeriod: number | string): CeloTxObject<void>;
setUnlockingPeriod(value: number | string): CeloTxObject<void>;
lock(): CeloTxObject<void>;
incrementNonvotingAccountBalance(account: string, value: number | string): CeloTxObject<void>;
decrementNonvotingAccountBalance(account: string, value: number | string): CeloTxObject<void>;
unlock(value: number | string): CeloTxObject<void>;
relock(index: number | string, value: number | string): CeloTxObject<void>;
withdraw(index: number | string): CeloTxObject<void>;
getTotalLockedGold(): CeloTxObject<string>;
getNonvotingLockedGold(): CeloTxObject<string>;
getAccountTotalLockedGold(account: string): CeloTxObject<string>;
getAccountNonvotingLockedGold(account: string): CeloTxObject<string>;
getPendingWithdrawals(account: string): CeloTxObject<{
0: string[];
1: string[];
}>;
getPendingWithdrawal(account: string, index: number | string): CeloTxObject<{
0: string;
1: string;
}>;
getTotalPendingWithdrawals(account: string): CeloTxObject<string>;
getSlashingWhitelist(): CeloTxObject<string[]>;
addSlasher(slasherIdentifier: string): CeloTxObject<void>;
removeSlasher(slasherIdentifier: string, index: number | string): CeloTxObject<void>;
slash(account: string, penalty: number | string, reporter: string, reward: number | string, lessers: string[], greaters: string[], indices: (number | string)[]): CeloTxObject<void>;
};
events: {
AccountSlashed: ContractEvent<{
slashed: string;
penalty: string;
reporter: string;
reward: string;
0: string;
1: string;
2: string;
3: string;
}>;
GoldLocked: ContractEvent<{
account: string;
value: string;
0: string;
1: string;
}>;
GoldRelocked: ContractEvent<{
account: string;
value: string;
0: string;
1: string;
}>;
GoldUnlocked: ContractEvent<{
account: string;
value: string;
available: string;
0: string;
1: string;
2: string;
}>;
GoldWithdrawn: ContractEvent<{
account: string;
value: string;
0: string;
1: string;
}>;
OwnershipTransferred: ContractEvent<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
RegistrySet: ContractEvent<string>;
SlasherWhitelistAdded: ContractEvent<string>;
SlasherWhitelistRemoved: ContractEvent<string>;
UnlockingPeriodSet: ContractEvent<string>;
allEvents: (options?: EventOptions, cb?: Callback<EventLog>) => EventEmitter;
};
}
export declare const ABI: AbiItem[];
export declare function newLockedGold(web3: Web3, address: string): LockedGold;
Выполнить команду
Для локальной разработки. Не используйте в интернете!