@waves/money-like-to-node
Advanced tools
Comparing version 0.1.9-0 to 0.1.9
@@ -67,3 +67,3 @@ import { IAliasTransaction, IBurnTransaction, ICancelLeaseTransaction, IDataTransaction, IExchangeTransaction, IIssueTransaction, ILeaseTransaction, IMassTransferTransaction, IReissueTransaction, ISetAssetScriptTransaction, ISetScriptTransaction, ISponsorshipTransaction, ITransferTransaction, IExchangeTransactionOrderWithProofs, IMassTransferItem, IUpdateAssetInfoTransaction, IInvokeScriptCall, IInvokeScriptTransaction, IInvokeScriptPayment, TInvokeScriptCallArgument, TDataTransactionEntry, TTransaction } from '@waves/ts-types'; | ||
export declare const sponsorship: <FROM, TO, TX extends ISponsorshipTransaction<FROM>>(tx: TX, factory: IFactory<FROM, TO>) => TReplaceParam<TX, "fee", TO> & { | ||
minSponsoredAssetFee: TO; | ||
minSponsoredAssetFee: TO | null; | ||
}; | ||
@@ -70,0 +70,0 @@ export declare const invokeScript: <FROM, TO, TX extends IInvokeScriptTransaction<FROM>>(tx: TX, factory: IFactory<FROM, TO>) => TReplaceParam<TX, "fee", TO> & { |
@@ -39,3 +39,3 @@ "use strict"; | ||
exports.setScript = function (tx, factory) { return defaultConvert(tx, factory); }; | ||
exports.sponsorship = function (tx, factory) { return (__assign(__assign({}, defaultConvert(tx, factory)), { minSponsoredAssetFee: factory(tx.minSponsoredAssetFee) })); }; | ||
exports.sponsorship = function (tx, factory) { return (__assign(__assign({}, defaultConvert(tx, factory)), { minSponsoredAssetFee: tx.minSponsoredAssetFee !== null ? factory(tx.minSponsoredAssetFee) : null })); }; | ||
exports.invokeScript = function (tx, factory) { return (__assign(__assign({}, defaultConvert(tx, factory)), { payment: tx.payment && tx.payment.map(function (item) { return (__assign(__assign({}, item), { amount: factory(item.amount) })); }), call: __assign(__assign({}, tx.call), { args: tx.call && tx.call.args.map(function (item) { return (__assign(__assign({}, item), { value: item.type === 'integer' ? factory(item.value) : item.value })); }) }) })); }; | ||
@@ -42,0 +42,0 @@ exports.updateAssetInfo = function (tx, factory) { return (__assign({}, defaultConvert(tx, factory))); }; |
{ | ||
"name": "@waves/money-like-to-node", | ||
"version": "0.1.9-0", | ||
"version": "0.1.9", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
85403