PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/lib/wrappers
Просмотр файла: MultiSig.d.ts
import { Address, CeloTransactionObject, CeloTxObject } from '@celo/connect';
import BigNumber from 'bignumber.js';
import { MultiSig } from '../generated/MultiSig';
import { BaseWrapper } from './BaseWrapper';
export interface TransactionData {
destination: string;
value: BigNumber;
data: string;
executed: boolean;
confirmations: string[];
}
/**
* Contract for handling multisig actions
*/
export declare class MultiSigWrapper extends BaseWrapper<MultiSig> {
/**
* Allows an owner to submit and confirm a transaction.
* If an unexecuted transaction matching `txObject` exists on the multisig, adds a confirmation to that tx ID.
* Otherwise, submits the `txObject` to the multisig and add confirmation.
* @param index The index of the pending withdrawal to withdraw.
*/
submitOrConfirmTransaction(destination: string, txObject: CeloTxObject<any>, value?: string): Promise<CeloTransactionObject<void> | CeloTransactionObject<string>>;
isowner: (owner: Address) => Promise<boolean>;
getOwners: () => Promise<string[]>;
getRequired: () => Promise<BigNumber>;
getInternalRequired: () => Promise<BigNumber>;
totalTransactionCount: () => Promise<number>;
getTransactionCount: (pending: boolean, executed: boolean) => Promise<number>;
replaceOwner: (owner: Address, newOwner: Address) => CeloTransactionObject<void>;
getTransactionDataByContent(destination: string, txo: CeloTxObject<any>, value?: BigNumber.Value): Promise<TransactionData | undefined>;
getTransaction(i: number): Promise<TransactionData>;
getTransactions(): Promise<TransactionData[]>;
}
export declare type MultiSigWrapperType = MultiSigWrapper;
Выполнить команду
Для локальной разработки. Не используйте в интернете!