PHP WebShell

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

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.swapExactTokensForTokens = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
 * Swap exactly `amountIn` of asset `path[0]` for asset `path[1]`.
 *
 * If an `amountOutMin` is specified, it will return an error if it is unable to acquire
 * the amount desired.
 *
 * 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 swapExactTokensForTokens(args, info, options) {
    return (0, txwrapper_core_1.defineMethod)({
        method: {
            args,
            name: 'swapExactTokensForTokens',
            pallet: 'assetConversion',
        },
        ...info,
    }, options);
}
exports.swapExactTokensForTokens = swapExactTokensForTokens;
//# sourceMappingURL=swapExactTokensForTokens.js.map

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


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