Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waves/money-like-to-node

Package Overview
Dependencies
Maintainers
17
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/money-like-to-node - npm Package Compare versions

Comparing version 0.0.8 to 0.0.10

8

dist/converters/index.d.ts

@@ -69,5 +69,9 @@ import { IAliasTransaction, IBurnTransaction, ICancelLeaseTransaction, IDataTransaction, IExchangeTransaction, IIssueTransaction, ILeaseTransaction, IMassTransferTransaction, IReissueTransaction, ISetAssetScriptTransaction, ISetScriptTransaction, ISponsorshipTransaction, ITransferTransaction, TTransaction, IExchangeTransactionOrderWithProofs, IMassTransferItem, TDataTransactionEntry, IInvokeScriptCall, IInvokeScriptTransaction, IInvokeScriptPayment, TInvokeScriptCallArgument } from '@waves/ts-types';

assetId: string;
}[];
}[] | null | undefined;
call: {
args: TInvokeScriptCallArgument<TO>[];
args: TInvokeScriptCallArgument<TO>[] | null | undefined;
} | {
args: TInvokeScriptCallArgument<TO>[] | null | undefined;
} | {
args: TInvokeScriptCallArgument<TO>[] | null | undefined;
function: string;

@@ -74,0 +78,0 @@ };

@@ -39,3 +39,3 @@ "use strict";

exports.sponsorship = function (tx, factory) { return (__assign({}, defaultConvert(tx, factory), { minSponsoredAssetFee: factory(tx.minSponsoredAssetFee) })); };
exports.invokeScript = function (tx, factory) { return (__assign({}, defaultConvert(tx, factory), { payment: tx.payment.map(function (item) { return (__assign({}, item, { amount: factory(item.amount) })); }), call: __assign({}, tx.call, { args: tx.call.args.map(function (item) { return (__assign({}, item, { value: item.type === 'integer' ? factory(item.value) : item.value })); }) }) })); };
exports.invokeScript = function (tx, factory) { return (__assign({}, defaultConvert(tx, factory), { payment: tx.payment && tx.payment.map(function (item) { return (__assign({}, item, { amount: factory(item.amount) })); }), call: __assign({}, tx.call, { args: tx.call && tx.call.args.map(function (item) { return (__assign({}, item, { value: item.type === 'integer' ? factory(item.value) : item.value })); }) }) })); };
exports.setAssetScript = function (tx, factory) { return defaultConvert(tx, factory); };

@@ -42,0 +42,0 @@ function convert(tx, factory) {

@@ -8,6 +8,6 @@ import { TYPES } from '../constants';

dApp: string;
call: IInvokeScriptCall<TLong>;
payment: Array<TMoney>;
feeAssetId: string;
call?: IInvokeScriptCall<TLong> | null | undefined;
payment?: Array<TMoney> | null | undefined;
feeAssetId?: string;
chainId: number;
}

@@ -17,2 +17,4 @@ "use strict";

var utils_1 = require("../utils");
var isNull = function (data) { return data == null; };
var defaultNull = function () { return null; };
var processArgument = function (data) {

@@ -34,3 +36,3 @@ if (data.type === 'integer') {

});
exports.invokeScript = factory_1.factory(__assign({}, general_1.getDefaultTransform(), { chainId: utils_1.prop('chainId'), dApp: utils_1.prop('dApp'), feeAssetId: utils_1.pipe(utils_1.prop('fee'), utils_1.getAssetId, utils_1.defaultTo('WAVES')), call: utils_1.pipe(utils_1.prop('call'), processCall), payment: utils_1.pipe(utils_1.prop('payment'), utils_1.map(processPayment)) }));
exports.invokeScript = factory_1.factory(__assign({}, general_1.getDefaultTransform(), { chainId: utils_1.prop('chainId'), dApp: utils_1.prop('dApp'), feeAssetId: utils_1.pipe(utils_1.prop('fee'), utils_1.getAssetId, utils_1.defaultTo('WAVES')), call: utils_1.pipe(utils_1.prop('call'), utils_1.ifElse(isNull, defaultNull, function (call) { return processCall(call); })), payment: utils_1.pipe(utils_1.prop('payment'), utils_1.ifElse(isNull, defaultNull, function (payment) { return utils_1.map(processPayment)(payment); })) }));
//# sourceMappingURL=invokeScript.js.map
{
"name": "@waves/money-like-to-node",
"version": "0.0.8",
"version": "0.0.10",
"main": "dist/index.js",

@@ -10,3 +10,3 @@ "typings": "dist/index.d.ts",

"dependencies": {
"@waves/ts-types": "^0.2.0-beta-8"
"@waves/ts-types": "^0.2.0"
},

@@ -13,0 +13,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc