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

@waves/ts-types

Package Overview
Dependencies
Maintainers
15
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.10-beta.1 to 1.0.10-beta.2

4

dist/src/parts.d.ts

@@ -12,2 +12,3 @@ import { DATA_FIELD_TYPE, ExchangeTransaction } from './index';

height: number;
spentComplexity: number;
};

@@ -35,2 +36,5 @@ export declare type InvokeScriptCall<LONG = Long> = {

}
export interface WithApplicationStatus {
applicationStatus: 'succeeded' | 'script_execution_failed';
}
export declare type MassTransferItem<LONG = Long> = {

@@ -37,0 +41,0 @@ recipient: string;

67

dist/transactions/index.d.ts

@@ -1,2 +0,2 @@

import { AssetDecimals, Base58Bytes, Base64Script, DataTransactionEntry, ExchangeTransactionOrder, InvokeScriptCall, InvokeScriptPayment, Long, MassTransferItem, SignedIExchangeTransactionOrder, TRANSACTION_TYPE, TransactionType, TStateChanges, WithId, WithVersion } from '../src';
import { AssetDecimals, Base58Bytes, Base64Script, DataTransactionEntry, ExchangeTransactionOrder, InvokeScriptCall, InvokeScriptPayment, Long, MassTransferItem, SignedIExchangeTransactionOrder, TRANSACTION_TYPE, TransactionType, TStateChanges, WithApiMixin, WithApplicationStatus, WithId, WithVersion } from '../src';
export declare type BaseTransaction<LONG = Long, TYPE extends TransactionType = TransactionType> = {

@@ -260,18 +260,65 @@ type: TYPE;

export declare type GenesisTransaction<LONG = Long> = GenesisTransactionV1<LONG>;
export declare type GenesisTransactionFromNode<LONG = Long> = SignedTransaction<GenesisTransaction<LONG>> & WithId & Omit<WithApiMixin, 'sender'>;
export declare type PaymentTransaction<LONG = Long> = PaymentTransactionV1<LONG>;
export declare type PaymentTransactionFromNode<LONG = Long> = PaymentTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type IssueTransaction<LONG = Long> = IssueTransactionV1<LONG> | IssueTransactionV2<LONG> | IssueTransactionV3<LONG>;
export declare type IssueTransactionFromNode<LONG = Long> = IssueTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type TransferTransaction<LONG = Long> = TransferTransactionV1<LONG> | TransferTransactionV2<LONG> | TransferTransactionV3<LONG>;
export declare type TransferTransactionFromNode<LONG = Long> = TransferTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin;
export declare type LeaseTransaction<LONG = Long> = LeaseTransactionV1<LONG> | LeaseTransactionV2<LONG> | LeaseTransactionV3<LONG>;
export declare type LeaseTransactionFromNode<LONG = Long> = LeaseTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type BurnTransaction<LONG = Long> = BurnTransactionV1<LONG> | BurnTransactionV2<LONG> | BurnTransactionV3<LONG>;
export declare type BurnTransactionFromNode<LONG = Long> = BurnTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type ReissueTransaction<LONG = Long> = ReissueTransactionV1<LONG> | ReissueTransactionV2<LONG> | ReissueTransactionV3<LONG>;
export declare type ReissueTransactionFromNode<LONG = Long> = ReissueTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type CancelLeaseTransaction<LONG = Long> = CancelLeaseTransactionV1<LONG> | CancelLeaseTransactionV2<LONG> | CancelLeaseTransactionV3<LONG>;
export declare type CancelLeaseTransactionFromNode<LONG = Long> = CancelLeaseTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type AliasTransaction<LONG = Long> = AliasTransactionV1<LONG> | AliasTransactionV2<LONG> | AliasTransactionV3<LONG>;
export declare type AliasTransactionFromNode<LONG = Long> = AliasTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type MassTransferTransaction<LONG = Long> = MassTransferTransactionV1<LONG> | MassTransferTransactionV2<LONG>;
export declare type MassTransferTransactionFromNode<LONG = Long> = MassTransferTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type DataTransaction<LONG = Long> = DataTransactionV1<LONG> | DataTransactionV2<LONG>;
export declare type DataTransactionFromNode<LONG = Long> = DataTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type SetScriptTransaction<LONG = Long> = SetScriptTransactionV1<LONG> | SetScriptTransactionV2<LONG>;
export declare type SetScriptTransactionFromNode<LONG = Long> = SetScriptTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type SponsorshipTransaction<LONG = Long> = SponsorshipTransactionV1<LONG> | SponsorshipTransactionV2<LONG>;
export declare type SponsorshipTransactionFromNode<LONG = Long> = SponsorshipTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type ExchangeTransaction<LONG = Long> = ExchangeTransactionV1<LONG> | ExchangeTransactionV2<LONG> | ExchangeTransactionV3<LONG>;
export declare type ExchangeTransactionFromNode<LONG = Long> = ExchangeTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type SetAssetScriptTransaction<LONG = Long> = SetAssetScriptTransactionV1<LONG> | SetAssetScriptTransactionV2<LONG>;
export declare type SetAssetScriptTransactionFromNode<LONG = Long> = SetAssetScriptTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type InvokeScriptTransaction<LONG = Long> = InvokeScriptTransactionV1<LONG> | InvokeScriptTransactionV2<LONG>;
export declare type InvokeScriptTransactionFromNode<LONG = Long> = SignedTransaction<InvokeScriptTransaction<LONG>> & WithId & WithApplicationStatus & WithApiMixin & {
stateChanges: TStateChanges;
};
export declare type UpdateAssetInfoTransaction<LONG = Long> = UpdateAssetInfoTransactionV1<LONG>;
export declare type UpdateAssetInfoTransactionFromNode<LONG = Long> = SignedTransaction<UpdateAssetInfoTransaction<LONG>> & WithId & WithApplicationStatus & WithApiMixin & {
feeAssetId: null;
};
export declare type EthereumTransaction<LONG = Long> = EthereumTransactionV1<LONG>;

@@ -297,19 +344,3 @@ declare type TWithSignatureMap = {

export declare type SignedTransaction<TX extends Transaction<any>> = TX & (TX['type'] extends keyof TWithSignatureMap ? TX['version'] extends TWithSignatureMap[TX['type']] ? WithSignature : WithProofs : WithProofs);
export declare type TransactionFromNode = WithId & {
height: number;
spentComplexity: number;
} & ((SignedTransaction<Exclude<Transaction, [GenesisTransaction, InvokeScriptTransaction, TransferTransaction]>> & {
sender: string;
applicationStatus: 'succeeded' | 'script_execution_failed';
feeAssetId: null;
}) | SignedTransaction<GenesisTransaction> | (SignedTransaction<InvokeScriptTransaction> & {
sender: string;
stateChanges: TStateChanges;
feeAssetId: string | null;
applicationStatus: 'succeeded' | 'script_execution_failed';
}) | (SignedTransaction<TransferTransaction> & {
sender: string;
feeAssetId: string | null;
applicationStatus: 'succeeded' | 'script_execution_failed';
}));
export declare type TransactionFromNode<LONG = Long> = GenesisTransactionFromNode<LONG> | PaymentTransactionFromNode<LONG> | IssueTransactionFromNode<LONG> | TransferTransactionFromNode<LONG> | ReissueTransactionFromNode<LONG> | BurnTransactionFromNode<LONG> | ExchangeTransactionFromNode<LONG> | LeaseTransactionFromNode<LONG> | CancelLeaseTransactionFromNode<LONG> | AliasTransactionFromNode<LONG> | MassTransferTransactionFromNode<LONG> | DataTransactionFromNode<LONG> | SetScriptTransactionFromNode<LONG> | SponsorshipTransactionFromNode<LONG> | SetAssetScriptTransactionFromNode<LONG> | InvokeScriptTransactionFromNode<LONG> | UpdateAssetInfoTransactionFromNode<LONG>;
export {};
{
"name": "@waves/ts-types",
"version": "1.0.10-beta.1",
"version": "1.0.10-beta.2",
"main": "dist/src/index.js",

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

@@ -14,2 +14,3 @@ import { DATA_FIELD_TYPE, ExchangeTransaction } from './index';

height: number;
spentComplexity: number;
};

@@ -74,2 +75,6 @@

export interface WithApplicationStatus {
applicationStatus: 'succeeded' | 'script_execution_failed';
}
export type MassTransferItem<LONG = Long> = {

@@ -76,0 +81,0 @@ recipient: string;

@@ -15,2 +15,4 @@ import {

TStateChanges,
WithApiMixin,
WithApplicationStatus,
WithId,

@@ -503,4 +505,17 @@ WithVersion,

export type GenesisTransactionFromNode<LONG = Long> = SignedTransaction<
GenesisTransaction<LONG>
> &
WithId &
Omit<WithApiMixin, 'sender'>;
export type PaymentTransaction<LONG = Long> = PaymentTransactionV1<LONG>;
export type PaymentTransactionFromNode<LONG = Long> = PaymentTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type IssueTransaction<LONG = Long> =

@@ -511,2 +526,9 @@ | IssueTransactionV1<LONG>

export type IssueTransactionFromNode<LONG = Long> = IssueTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type TransferTransaction<LONG = Long> =

@@ -517,2 +539,5 @@ | TransferTransactionV1<LONG>

export type TransferTransactionFromNode<LONG = Long> =
TransferTransaction<LONG> & WithId & WithApplicationStatus & WithApiMixin;
export type LeaseTransaction<LONG = Long> =

@@ -523,2 +548,9 @@ | LeaseTransactionV1<LONG>

export type LeaseTransactionFromNode<LONG = Long> = LeaseTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type BurnTransaction<LONG = Long> =

@@ -529,2 +561,9 @@ | BurnTransactionV1<LONG>

export type BurnTransactionFromNode<LONG = Long> = BurnTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type ReissueTransaction<LONG = Long> =

@@ -535,2 +574,9 @@ | ReissueTransactionV1<LONG>

export type ReissueTransactionFromNode<LONG = Long> = ReissueTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type CancelLeaseTransaction<LONG = Long> =

@@ -541,2 +587,10 @@ | CancelLeaseTransactionV1<LONG>

export type CancelLeaseTransactionFromNode<LONG = Long> =
CancelLeaseTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type AliasTransaction<LONG = Long> =

@@ -547,2 +601,8 @@ | AliasTransactionV1<LONG>

export type AliasTransactionFromNode<LONG = Long> = AliasTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type MassTransferTransaction<LONG = Long> =

@@ -552,2 +612,10 @@ | MassTransferTransactionV1<LONG>

export type MassTransferTransactionFromNode<LONG = Long> =
MassTransferTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type DataTransaction<LONG = Long> =

@@ -557,2 +625,9 @@ | DataTransactionV1<LONG>

export type DataTransactionFromNode<LONG = Long> = DataTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type SetScriptTransaction<LONG = Long> =

@@ -562,2 +637,10 @@ | SetScriptTransactionV1<LONG>

export type SetScriptTransactionFromNode<LONG = Long> =
SetScriptTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type SponsorshipTransaction<LONG = Long> =

@@ -567,2 +650,10 @@ | SponsorshipTransactionV1<LONG>

export type SponsorshipTransactionFromNode<LONG = Long> =
SponsorshipTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type ExchangeTransaction<LONG = Long> =

@@ -573,2 +664,10 @@ | ExchangeTransactionV1<LONG>

export type ExchangeTransactionFromNode<LONG = Long> =
ExchangeTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type SetAssetScriptTransaction<LONG = Long> =

@@ -578,2 +677,10 @@ | SetAssetScriptTransactionV1<LONG>

export type SetAssetScriptTransactionFromNode<LONG = Long> =
SetAssetScriptTransaction<LONG> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type InvokeScriptTransaction<LONG = Long> =

@@ -583,6 +690,23 @@ | InvokeScriptTransactionV1<LONG>

export type UpdateAssetInfoTransaction<
LONG = Long
> = UpdateAssetInfoTransactionV1<LONG>;
export type InvokeScriptTransactionFromNode<LONG = Long> = SignedTransaction<
InvokeScriptTransaction<LONG>
> &
WithId &
WithApplicationStatus &
WithApiMixin & {
stateChanges: TStateChanges;
};
export type UpdateAssetInfoTransaction<LONG = Long> =
UpdateAssetInfoTransactionV1<LONG>;
export type UpdateAssetInfoTransactionFromNode<LONG = Long> = SignedTransaction<
UpdateAssetInfoTransaction<LONG>
> &
WithId &
WithApplicationStatus &
WithApiMixin & {
feeAssetId: null;
};
export type EthereumTransaction<LONG = Long> = EthereumTransactionV1<LONG>;

@@ -619,28 +743,19 @@

export type TransactionFromNode = WithId & {
height: number;
spentComplexity: number;
} & (
| (SignedTransaction<
Exclude<
Transaction,
[GenesisTransaction, InvokeScriptTransaction, TransferTransaction]
>
> & {
sender: string;
applicationStatus: 'succeeded' | 'script_execution_failed';
feeAssetId: null;
})
| SignedTransaction<GenesisTransaction>
| (SignedTransaction<InvokeScriptTransaction> & {
sender: string;
stateChanges: TStateChanges;
feeAssetId: string | null;
applicationStatus: 'succeeded' | 'script_execution_failed';
})
| (SignedTransaction<TransferTransaction> & {
sender: string;
feeAssetId: string | null;
applicationStatus: 'succeeded' | 'script_execution_failed';
})
);
export type TransactionFromNode<LONG = Long> =
| GenesisTransactionFromNode<LONG>
| PaymentTransactionFromNode<LONG>
| IssueTransactionFromNode<LONG>
| TransferTransactionFromNode<LONG>
| ReissueTransactionFromNode<LONG>
| BurnTransactionFromNode<LONG>
| ExchangeTransactionFromNode<LONG>
| LeaseTransactionFromNode<LONG>
| CancelLeaseTransactionFromNode<LONG>
| AliasTransactionFromNode<LONG>
| MassTransferTransactionFromNode<LONG>
| DataTransactionFromNode<LONG>
| SetScriptTransactionFromNode<LONG>
| SponsorshipTransactionFromNode<LONG>
| SetAssetScriptTransactionFromNode<LONG>
| InvokeScriptTransactionFromNode<LONG>
| UpdateAssetInfoTransactionFromNode<LONG>;
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