PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@celo/contractkit/lib/generated
Просмотр файла: Escrow.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 Escrow extends Contract {
clone(): Escrow;
methods: {
MAX_TRUSTED_ISSUERS_PER_PAYMENT(): CeloTxObject<string>;
defaultTrustedIssuers(arg0: number | string): CeloTxObject<string>;
escrowedPayments(arg0: string): CeloTxObject<{
recipientIdentifier: string;
sender: string;
token: string;
value: string;
sentIndex: string;
receivedIndex: string;
timestamp: string;
expirySeconds: string;
minAttestations: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
}>;
initialized(): CeloTxObject<boolean>;
isOwner(): CeloTxObject<boolean>;
owner(): CeloTxObject<string>;
receivedPaymentIds(arg0: string | number[], arg1: number | string): CeloTxObject<string>;
registry(): CeloTxObject<string>;
registryContract(): CeloTxObject<string>;
renounceOwnership(): CeloTxObject<void>;
sentPaymentIds(arg0: string, arg1: number | string): CeloTxObject<string>;
transferOwnership(newOwner: string): CeloTxObject<void>;
trustedIssuersPerPayment(arg0: string, arg1: number | string): CeloTxObject<string>;
getVersionNumber(): CeloTxObject<{
0: string;
1: string;
2: string;
3: string;
}>;
initialize(): CeloTxObject<void>;
addDefaultTrustedIssuer(trustedIssuer: string): CeloTxObject<void>;
removeDefaultTrustedIssuer(trustedIssuer: string, index: number | string): CeloTxObject<void>;
transfer(identifier: string | number[], token: string, value: number | string, expirySeconds: number | string, paymentId: string, minAttestations: number | string): CeloTxObject<boolean>;
transferWithTrustedIssuers(identifier: string | number[], token: string, value: number | string, expirySeconds: number | string, paymentId: string, minAttestations: number | string, trustedIssuers: string[]): CeloTxObject<boolean>;
withdraw(paymentId: string, v: number | string, r: string | number[], s: string | number[]): CeloTxObject<boolean>;
revoke(paymentId: string): CeloTxObject<boolean>;
getReceivedPaymentIds(identifier: string | number[]): CeloTxObject<string[]>;
getSentPaymentIds(sender: string): CeloTxObject<string[]>;
getTrustedIssuersPerPayment(paymentId: string): CeloTxObject<string[]>;
getDefaultTrustedIssuers(): CeloTxObject<string[]>;
};
events: {
DefaultTrustedIssuerAdded: ContractEvent<string>;
DefaultTrustedIssuerRemoved: ContractEvent<string>;
OwnershipTransferred: ContractEvent<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
Revocation: ContractEvent<{
identifier: string;
by: string;
token: string;
value: string;
paymentId: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
Transfer: ContractEvent<{
from: string;
identifier: string;
token: string;
value: string;
paymentId: string;
minAttestations: string;
0: string;
1: string;
2: string;
3: string;
4: string;
5: string;
}>;
TrustedIssuersSet: ContractEvent<{
paymentId: string;
trustedIssuers: string[];
0: string;
1: string[];
}>;
TrustedIssuersUnset: ContractEvent<string>;
Withdrawal: ContractEvent<{
identifier: string;
to: string;
token: string;
value: string;
paymentId: string;
0: string;
1: string;
2: string;
3: string;
4: string;
}>;
allEvents: (options?: EventOptions, cb?: Callback<EventLog>) => EventEmitter;
};
}
export declare const ABI: AbiItem[];
export declare function newEscrow(web3: Web3, address: string): Escrow;
Выполнить команду
Для локальной разработки. Не используйте в интернете!