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

@waves/ts-types

Package Overview
Dependencies
Maintainers
14
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/ts-types - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8-beta.1

6

dist/src/index.d.ts

@@ -20,4 +20,3 @@ export * from '../transactions';

export declare const UPDATE_ASSET_INFO_TYPE: 17;
export declare const INVOKE_EXPRESSION_TYPE: 18;
export declare const ETHEREUM: 19;
export declare const ETHEREUM: 18;
export declare const INTEGER_DATA_TYPE: "integer";

@@ -45,4 +44,3 @@ export declare const BOOLEAN_DATA_TYPE: "boolean";

UPDATE_ASSET_INFO: 17;
INVOKE_EXPRESSION: 18;
ETHEREUM: 19;
ETHEREUM: 18;
};

@@ -49,0 +47,0 @@ export declare const DATA_FIELD_TYPE: {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DATA_FIELD_TYPE = exports.TRANSACTION_TYPE = exports.BINARY_DATA_TYPE = exports.STRING_DATA_TYPE = exports.BOOLEAN_DATA_TYPE = exports.INTEGER_DATA_TYPE = exports.ETHEREUM = exports.INVOKE_EXPRESSION_TYPE = exports.UPDATE_ASSET_INFO_TYPE = exports.INVOKE_SCRIPT_TYPE = exports.SET_ASSET_SCRIPT_TYPE = exports.SPONSORSHIP_TYPE = exports.SET_SCRIPT_TYPE = exports.DATA_TYPE = exports.MASS_TRANSFER_TYPE = exports.ALIAS_TYPE = exports.CANCEL_LEASE_TYPE = exports.LEASE_TYPE = exports.EXCHANGE_TYPE = exports.BURN_TYPE = exports.REISSUE_TYPE = exports.TRANSFER_TYPE = exports.ISSUE_TYPE = exports.PAYMENT_TYPE = exports.GENESIS_TYPE = void 0;
__exportStar(require("../transactions"), exports);
__exportStar(require("./parts"), exports);
exports.GENESIS_TYPE = 1;

@@ -33,4 +20,3 @@ exports.PAYMENT_TYPE = 2;

exports.UPDATE_ASSET_INFO_TYPE = 17;
exports.INVOKE_EXPRESSION_TYPE = 18;
exports.ETHEREUM = 19;
exports.ETHEREUM = 18;
exports.INTEGER_DATA_TYPE = 'integer';

@@ -58,3 +44,2 @@ exports.BOOLEAN_DATA_TYPE = 'boolean';

UPDATE_ASSET_INFO: exports.UPDATE_ASSET_INFO_TYPE,
INVOKE_EXPRESSION: exports.INVOKE_EXPRESSION_TYPE,
ETHEREUM: exports.ETHEREUM,

@@ -61,0 +46,0 @@ };

@@ -93,4 +93,4 @@ import { DATA_FIELD_TYPE, ExchangeTransaction } from './index';

export declare type DataTransactionDeleteRequest = {
type: undefined;
value: undefined;
type: null;
value: null | undefined;
key: string;

@@ -97,0 +97,0 @@ };

@@ -9,3 +9,3 @@ import { AssetDecimals, Base58Bytes, Base64Script, DataTransactionEntry, ExchangeTransactionOrder, InvokeScriptCall, InvokeScriptPayment, Long, MassTransferItem, SignedIExchangeTransactionOrder, TRANSACTION_TYPE, TransactionType, TStateChanges, WithVersion } from '../src';

};
export declare type Transaction<LONG = Long> = GenesisTransaction<LONG> | PaymentTransaction<LONG> | IssueTransaction<LONG> | TransferTransaction<LONG> | ReissueTransaction<LONG> | BurnTransaction<LONG> | LeaseTransaction<LONG> | CancelLeaseTransaction<LONG> | AliasTransaction<LONG> | MassTransferTransaction<LONG> | DataTransaction<LONG> | SetScriptTransaction<LONG> | SponsorshipTransaction<LONG> | ExchangeTransaction<LONG> | SetAssetScriptTransaction<LONG> | InvokeScriptTransaction<LONG> | UpdateAssetInfoTransaction<LONG> | EthereumTransaction<LONG> | InvokeExpressionTransaction<LONG>;
export declare type Transaction<LONG = Long> = GenesisTransaction<LONG> | PaymentTransaction<LONG> | IssueTransaction<LONG> | TransferTransaction<LONG> | ReissueTransaction<LONG> | BurnTransaction<LONG> | LeaseTransaction<LONG> | CancelLeaseTransaction<LONG> | AliasTransaction<LONG> | MassTransferTransaction<LONG> | DataTransaction<LONG> | SetScriptTransaction<LONG> | SponsorshipTransaction<LONG> | ExchangeTransaction<LONG> | SetAssetScriptTransaction<LONG> | InvokeScriptTransaction<LONG> | UpdateAssetInfoTransaction<LONG> | EthereumTransaction<LONG>;
export declare type TransactionMap<LONG = Long> = {

@@ -29,3 +29,2 @@ [TRANSACTION_TYPE.GENESIS]: GenesisTransaction<LONG>;

[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransaction<LONG>;
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>;
[TRANSACTION_TYPE.ETHEREUM]: EthereumTransaction<LONG>;

@@ -51,3 +50,2 @@ };

[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransactionMap<LONG>;
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>;
[TRANSACTION_TYPE.ETHEREUM]: EthereumTransactionMap<LONG>;

@@ -139,6 +137,2 @@ };

};
export declare type InvokeExpressionTransactionFields<LONG = Long> = {
expression: Base64Script | null;
feeAssetId: string | null;
};
export interface IUpdateAssetInfoTransaction<LONG = Long> extends BaseTransaction<LONG, typeof TRANSACTION_TYPE.UPDATE_ASSET_INFO>, UpdateAssetInfoTransactionFields<LONG> {

@@ -165,5 +159,3 @@ }

export declare type IssueTransactionV2<LONG = Long> = WithVersion<IssueTransactionFields<LONG> & BaseTransaction<LONG, 3>, 2>;
export declare type IssueTransactionV3<LONG = Long> = WithVersion<IssueTransactionFields<LONG> & BaseTransaction<LONG, 3> & {
feeAssetId: string | null;
}, 3>;
export declare type IssueTransactionV3<LONG = Long> = WithVersion<IssueTransactionFields<LONG> & BaseTransaction<LONG, 3>, 3>;
export declare type IssueTransactionMap<LONG = Long> = {

@@ -270,7 +262,6 @@ 1: IssueTransactionV1<LONG>;

};
export declare type EthereumTransactionV1<LONG> = WithVersion<EthereumTransactionFields<LONG> & BaseTransaction<LONG, 19>, 1>;
export declare type EthereumTransactionV1<LONG> = WithVersion<EthereumTransactionFields<LONG> & BaseTransaction<LONG, 18>, 1>;
export declare type EthereumTransactionMap<LONG = Long> = {
1: EthereumTransactionV1<LONG>;
};
export declare type InvokeExpressionTransactionV1<LONG> = WithVersion<InvokeExpressionTransactionFields<LONG> & BaseTransaction<LONG, 18>, 1>;
export declare type GenesisTransaction<LONG = Long> = GenesisTransactionV1<LONG>;

@@ -294,3 +285,2 @@ export declare type PaymentTransaction<LONG = Long> = PaymentTransactionV1<LONG>;

export declare type EthereumTransaction<LONG = Long> = EthereumTransactionV1<LONG>;
export declare type InvokeExpressionTransaction<LONG = Long> = InvokeExpressionTransactionV1<LONG>;
declare type TWithSignatureMap = {

@@ -297,0 +287,0 @@ [TRANSACTION_TYPE.GENESIS]: 1;

{
"name": "@waves/ts-types",
"version": "1.0.7",
"version": "1.0.8-beta.1",
"main": "dist/src/index.js",

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

@@ -21,4 +21,3 @@ export * from '../transactions';

export const UPDATE_ASSET_INFO_TYPE = 17 as 17;
export const INVOKE_EXPRESSION_TYPE = 18 as 18;
export const ETHEREUM = 19 as 19;
export const ETHEREUM = 18 as 18;

@@ -48,3 +47,2 @@ export const INTEGER_DATA_TYPE = 'integer' as 'integer';

UPDATE_ASSET_INFO: UPDATE_ASSET_INFO_TYPE,
INVOKE_EXPRESSION: INVOKE_EXPRESSION_TYPE,
ETHEREUM: ETHEREUM,

@@ -51,0 +49,0 @@ };

@@ -181,4 +181,4 @@ import { DATA_FIELD_TYPE, ExchangeTransaction } from './index';

export type DataTransactionDeleteRequest = {
type: undefined;
value: undefined;
type: null;
value: null | undefined;
key: string;

@@ -185,0 +185,0 @@ };

@@ -47,4 +47,3 @@ import {

| UpdateAssetInfoTransaction<LONG>
| EthereumTransaction<LONG>
| InvokeExpressionTransaction<LONG>;
| EthereumTransaction<LONG>;

@@ -69,3 +68,2 @@ export type TransactionMap<LONG = Long> = {

[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransaction<LONG>;
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>;
[TRANSACTION_TYPE.ETHEREUM]: EthereumTransaction<LONG>;

@@ -92,3 +90,2 @@ };

[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransactionMap<LONG>;
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>;
[TRANSACTION_TYPE.ETHEREUM]: EthereumTransactionMap<LONG>;

@@ -199,7 +196,2 @@ };

export type InvokeExpressionTransactionFields<LONG = Long> = {
expression: Base64Script | null;
feeAssetId: string | null;
};
export interface IUpdateAssetInfoTransaction<LONG = Long>

@@ -253,6 +245,3 @@ extends BaseTransaction<LONG, typeof TRANSACTION_TYPE.UPDATE_ASSET_INFO>,

export type IssueTransactionV3<LONG = Long> = WithVersion<
IssueTransactionFields<LONG> &
BaseTransaction<LONG, 3> & {
feeAssetId: string | null;
},
IssueTransactionFields<LONG> & BaseTransaction<LONG, 3>,
3

@@ -509,3 +498,3 @@ >;

export type EthereumTransactionV1<LONG> = WithVersion<
EthereumTransactionFields<LONG> & BaseTransaction<LONG, 19>,
EthereumTransactionFields<LONG> & BaseTransaction<LONG, 18>,
1

@@ -518,8 +507,2 @@ >;

//InvokeExpressionTransaction
export type InvokeExpressionTransactionV1<LONG> = WithVersion<
InvokeExpressionTransactionFields<LONG> & BaseTransaction<LONG, 18>,
1
>;
//------------------------------------------------------------------------------------------

@@ -601,6 +584,2 @@ //Transaction types

export type InvokeExpressionTransaction<
LONG = Long
> = InvokeExpressionTransactionV1<LONG>;
//

@@ -607,0 +586,0 @@ type TWithSignatureMap = {

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