PHP WebShell

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

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

import { TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { DecodedSignedTx, DecodedSigningPayload, UnsignedTransaction } from '@substrate/txwrapper-core';
import { PolyxBaseBuilder } from './baseBuilder';
import { TxMethod } from './iface';
import { Transaction } from './transaction';
export declare class PreApproveAssetBuilder extends PolyxBaseBuilder<TxMethod, Transaction> {
    protected _assetId: string;
    protected _method: TxMethod;
    constructor(_coinConfig: Readonly<CoinConfig>);
    protected get transactionType(): TransactionType;
    protected buildTransaction(): UnsignedTransaction;
    /**
     * Sets the asset ID for the pre-approval transaction.
     *
     * @param {string} assetId - The ID of the asset to be pre-approved.
     * @returns {this} The current instance of the builder.
     */
    assetId(assetId: string): this;
    /** @inheritdoc */
    protected fromImplementation(rawTransaction: string): Transaction;
    /** @inheritdoc */
    validateDecodedTransaction(decodedTxn: DecodedSigningPayload | DecodedSignedTx, rawTransaction?: string): void;
    /**
     * Construct a transaction to pre-approve an asset
     *
     * @param {PreApproveAssetArgs} args Arguments to be passed to the preApproveAsset method
     * @param {Interface.CreateBaseTxInfo} info Base txn info required to construct the pre-approve asset txn
     * @returns {UnsignedTransaction} an unsigned transaction for asset pre-approval
     */
    private preApproveAsset;
}
//# sourceMappingURL=preApproveAssetBuilder.d.ts.map

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


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