PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/assetConversion

Просмотр файла: swapTokensForExactTokens.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.swapTokensForExactTokens = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
 * Swap asset `path[0]` for asset `path[1]` to get exactly `amountOut`.
 *
 * If an `amountInMax` is specified, it will return an error if acquiring `amountOut`
 * would be too costly.
 *
 * Withdraws the `path[0]` asset from `sender`, deposits the `path[1]` asset to `sendTo`,
 * respecting `keepAlive`.
 *
 * @param args - Arguments specific to this method.
 * @param info - Information required to construct the transaction.
 * @param options - Registry and metadata used for constructing the method.
 */
function swapTokensForExactTokens(args, info, options) {
    return (0, txwrapper_core_1.defineMethod)({
        method: {
            args,
            name: 'swapTokensForExactTokens',
            pallet: 'assetConversion',
        },
        ...info,
    }, options);
}
exports.swapTokensForExactTokens = swapTokensForExactTokens;
//# sourceMappingURL=swapTokensForExactTokens.js.map

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


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