PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/abstract-eth/dist/src/lib

Просмотр файла: transferBuilder.d.ts

/** ETH transfer builder */
export declare class TransferBuilder {
    private readonly _EMPTY_HEX_VALUE;
    protected _amount: string;
    protected _toAddress: string;
    protected _sequenceId: number;
    protected _signKey: string | null;
    protected _expirationTime: number;
    protected _signature: string;
    protected _isFirstSigner: boolean | undefined;
    private _data;
    private _tokenContractAddress?;
    private _coin;
    private _chainId?;
    private _coinUsesNonPackedEncodingForTxData?;
    private _walletVersion?;
    constructor(serializedData?: string, isFirstSigner?: boolean);
    /**
     * A method to set the native coin or ERC20 token to be transferred.
     * This ERC20 token may not be compatible with the network.
     *
     * @param {string} coin - the native coin or ERC20 token to be set
     * @returns {TransferBuilder} the transfer builder instance modified
     */
    coin(coin: string): TransferBuilder;
    getIsFirstSigner(): boolean;
    walletVersion(version: number): TransferBuilder;
    data(additionalData: string): TransferBuilder;
    amount(amount: string): this;
    to(address: string): TransferBuilder;
    contractSequenceId(counter: number): TransferBuilder;
    key(signKey: string): TransferBuilder;
    expirationTime(date: number): TransferBuilder;
    isFirstSigner(isFirstSigner: boolean): TransferBuilder;
    tokenContractAddress(tokenContractAddress: string): TransferBuilder;
    setCoinUsesNonPackedEncodingForTxData(isCoinUsesNonPackedEncodingForTxData: boolean): TransferBuilder;
    setSignature(signature: string): TransferBuilder;
    signAndBuild(chainId: string, coinUsesNonPackedEncodingForTxData?: boolean): string;
    private hasMandatoryFields;
    /**
     * Obtains the proper operation hash to sign either a sendMultiSig data
     * or a sendMultiSigToken data
     *
     * @returns {string} the operation hash
     */
    getOperationHash(): string;
    protected getOperationData(): (string | number | Buffer)[][];
    private getOperationHashPrefix;
    /**
     * Get the prefix used in generating an operation hash for sending tokens
     *
     * @returns the string prefix
     */
    protected getTokenOperationHashPrefix(): string;
    /**
     * Get the prefix used in generating an operation hash for sending native coins
     *
     * @returns the string prefix
     */
    protected getNativeOperationHashPrefix(): string;
    /** Return an expiration time, in seconds, set to one hour from now
     *
     * @returns {number} expiration time
     */
    private getExpirationTime;
    /**
     * If a signing key is set for this builder, recalculates the signature
     *
     * @returns {string} the signature value
     */
    protected getSignature(): string;
    protected ethSignMsgHash(): string;
    private decodeTransferData;
    getSignatureData(): Buffer<ArrayBuffer>;
}
//# sourceMappingURL=transferBuilder.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!