PHP WebShell

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

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

import { FullySignedTransaction, HalfSignedAccountTransaction, PresignTransactionOptions as BasePresignTransactionOptions, Recipient, SignTransactionOptions as BaseSignTransactionOptions, TransactionFee, TransactionParams, TransactionPrebuild as BaseTransactionPrebuild, TransactionType, VerifyTransactionOptions, Wallet } from '@bitgo/sdk-core';
import { TransactionPrebuild as EthTransactionPrebuild } from '@bitgo/sdk-coin-eth';
export interface PrecreateBitGoOptions {
    enterprise?: string;
    newFeeAddress?: string;
}
export interface ExplainTransactionOptions {
    txHex?: string;
    halfSigned?: {
        txHex: string;
    };
    feeInfo: TransactionFee;
    crossChainType?: string;
}
export interface AvaxcTransactionParams extends TransactionParams {
    gasPrice?: number;
    gasLimit?: number;
    hopParams?: HopParams;
    hop?: boolean;
}
export interface VerifyAvaxcTransactionOptions extends VerifyTransactionOptions {
    txPrebuild: TransactionPrebuild;
    txParams: AvaxcTransactionParams;
}
export interface PresignTransactionOptions extends TransactionPrebuild, BasePresignTransactionOptions {
    wallet: Wallet;
}
export interface EIP1559 {
    maxPriorityFeePerGas: number;
    maxFeePerGas: number;
}
export interface UnformattedTxInfo {
    recipient: Recipient;
}
export interface OfflineVaultTxInfo {
    nextContractSequenceId?: string;
    contractSequenceId?: string;
    txHex: string;
    userKey: string;
    backupKey: string;
    coin: string;
    gasPrice: number;
    gasLimit: number;
    recipients: Recipient[];
    walletContractAddress: string;
    amount: string;
    backupKeyNonce: number;
    eip1559?: EIP1559;
    token?: string;
}
export interface HopTransactionBuildOptions {
    recipients: Recipient[];
    type?: keyof typeof TransactionType;
}
export interface BuildOptions {
    hop?: boolean;
    wallet?: Wallet;
    recipients?: Recipient[];
    walletPassphrase?: string;
    type?: keyof typeof TransactionType;
    [index: string]: unknown;
}
export interface FeeEstimate {
    gasLimitEstimate: number;
    feeEstimate: number;
}
/**
 * The extra parameters to send to platform build route for hop transactions
 */
export interface HopParams {
    hopParams: {
        gasPriceMax: number;
        userReqSig: string;
        paymentId: string;
        gasLimit: number;
    };
}
/**
 * The prebuilt hop transaction returned from the HSM
 */
export interface HopPrebuild {
    tx: string;
    id: string;
    signature: string;
    paymentId: string;
    gasPrice: number;
    gasLimit: number;
    amount: number;
    recipient: string;
    nonce: number;
    userReqSig: string;
    gasPriceMax: number;
    type?: keyof typeof TransactionType;
}
export type TransactionPrebuild = Omit<EthTransactionPrebuild, 'hopTransaction'> & {
    hopTransaction?: HopPrebuild;
};
export interface TxInfo {
    recipients: Recipient[];
    from: string;
    txid: string;
}
export interface EthTransactionFee {
    fee: string;
    gasLimit?: string;
}
export interface TxPreBuild extends BaseTransactionPrebuild {
    txHex: string;
    txInfo: TxInfo;
    feeInfo: EthTransactionFee;
    source: string;
    dataToSign: string;
    nextContractSequenceId?: string;
    expireTime?: number;
    hopTransaction?: string;
    eip1559?: EIP1559;
    recipients?: Recipient[];
    txPrebuild?: {
        halfSigned: {
            txHex: string;
        };
    };
}
export interface SignFinalOptions {
    txPrebuild: {
        halfSigned: {
            txHex: string;
        };
    };
    prv: string;
}
export interface AvaxSignTransactionOptions extends BaseSignTransactionOptions {
    txPrebuild: TxPreBuild;
    prv: string;
    custodianTransactionId?: string;
    isLastSignature?: boolean;
    walletVersion?: number;
}
export interface HalfSignedTransaction extends HalfSignedAccountTransaction {
    halfSigned: {
        txHex?: never;
        recipients: Recipient[];
        expiration?: number;
        eip1559?: EIP1559;
    };
}
export type SignedTransaction = HalfSignedTransaction | FullySignedTransaction;
//# sourceMappingURL=iface.d.ts.map

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


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