🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@waves/money-like-to-node

Package Overview
Dependencies
Maintainers
13
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

to
0.1.2

1

dist/constants/index.js

@@ -20,2 +20,3 @@ "use strict";

INVOKE_SCRIPT: 16,
// @ts-ignore
UPDATE_ASSET_INFO: 17

@@ -22,0 +23,0 @@ };

9

dist/converters/index.d.ts
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';
import { TYPES } from '../constants';
declare type TConvertMap<TO, T extends TTransaction<any>> = {
declare type TConvertMap<TO, T extends (TTransaction<any>)> = {
[TYPES.ISSUE]: TReplaceParam<T, 'fee' | 'quantity', TO>;

@@ -18,3 +18,2 @@ [TYPES.TRANSFER]: TReplaceParam<T, 'fee' | 'amount', TO>;

[TYPES.INVOKE_SCRIPT]: TReplaceParam<TReplaceParam<TReplaceParam<T, 'fee', TO>, 'payment', Array<IInvokeScriptPayment<TO>>>, 'call', IInvokeScriptCall<TO>>;
[TYPES.UPDATE_ASSET_INFO]: any;
};

@@ -33,3 +32,5 @@ declare type TReplaceParam<T, KEYS, NEW_VALUE> = {

};
export declare const burn: <FROM, TO, TX extends IBurnTransaction<FROM>>(tx: TX, factory: IFactory<FROM, TO>) => TReplaceParam<TX, "fee", TO> & {
export declare const burn: <FROM, TO, TX extends IBurnTransaction<FROM> & {
amount?: any;
}>(tx: TX, factory: IFactory<FROM, TO>) => TReplaceParam<TX, "fee", TO> & {
amount: TO;

@@ -62,3 +63,3 @@ quantity: TO;

key: string;
type?: "integer" | null | undefined;
type: "integer";
})[];

@@ -65,0 +66,0 @@ };

@@ -9,11 +9,11 @@ import { TYPES } from '../constants';

}
declare type TWavesGuiDataTransactionEntry = IWavesGuiDataTransactionEntryInteger | IWavesGuiDataTransactionEntryBoolean | IWavesGuiDataTransactionEntryString | IWavesGuiDataTransactionEntryBinary;
declare type TWavesGuiDataTransactionEntry = IWavesGuiDataTransactionEntryInteger | IWavesGuiDataTransactionEntryBoolean | IWavesGuiDataTransactionEntryString | IWavesGuiDataTransactionEntryBinary | IWavesGuiDataTransactionEntryEmpty;
interface IWavesGuiDataTransactionEntryInteger {
key: string;
type?: typeof DATA_FIELD_TYPE.INTEGER | null;
value: TLong | null;
type: typeof DATA_FIELD_TYPE.INTEGER;
value: TLong;
}
interface IWavesGuiDataTransactionEntryBoolean {
key: string;
type?: typeof DATA_FIELD_TYPE.BOOLEAN | null;
type: typeof DATA_FIELD_TYPE.BOOLEAN;
value: boolean | null;

@@ -23,10 +23,15 @@ }

key: string;
type?: typeof DATA_FIELD_TYPE.STRING | null;
value: string | null;
type?: typeof DATA_FIELD_TYPE.STRING;
value: string;
}
interface IWavesGuiDataTransactionEntryBinary {
key: string;
type?: typeof DATA_FIELD_TYPE.BINARY | null;
value: string | null;
type?: typeof DATA_FIELD_TYPE.BINARY;
value: string;
}
interface IWavesGuiDataTransactionEntryEmpty {
key: string;
type?: undefined;
value: null | undefined;
}
export {};
import { TLong, TMoney } from '../types';
export declare const getDefaultTransform: <TYPE extends 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17, T extends IDefaultGuiTx<TYPE>>() => {
export declare const getDefaultTransform: <TYPE extends 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16, T extends IDefaultGuiTx<TYPE>>() => {
chainId?: ((data: T) => number | undefined) | undefined;
type: (data: T) => TYPE;

@@ -15,2 +16,3 @@ senderPublicKey: (data: T) => string;

fee: TLong | TMoney;
chainId?: number | undefined;
}

@@ -11,4 +11,5 @@ "use strict";

timestamp: utils_1.pipe(utils_1.prop('timestamp'), processTimestamp),
fee: utils_1.pipe(utils_1.prop('fee'), utils_1.getCoins, validators_1.validate(validators_1.requiredValidator('fee')))
fee: utils_1.pipe(utils_1.prop('fee'), utils_1.getCoins, validators_1.validate(validators_1.requiredValidator('fee'))),
chainId: utils_1.prop('chainId')
}); };
//# sourceMappingURL=general.js.map
{
"name": "@waves/money-like-to-node",
"version": "0.1.0-0",
"version": "0.1.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet