PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/assetConversion
Просмотр файла: addLiquidity.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addLiquidity = void 0;
const txwrapper_core_1 = require("@substrate/txwrapper-core");
/**
* Provide liquidity into the pool of `asset1` and `asset2`.
*
* NOTE: an optimal amount of asset1 and asset2 will be calculated and
* might be different than the provided `amount1Desired`/`amount2Desired`,
* limited by `amount1Min`/`amount2Min`.
*
* @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 addLiquidity(args, info, options) {
return (0, txwrapper_core_1.defineMethod)({
method: {
args,
name: 'addLiquidity',
pallet: 'assetConversion',
},
...info,
}, options);
}
exports.addLiquidity = addLiquidity;
//# sourceMappingURL=addLiquidity.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!