@waves/ts-types
Advanced tools
Comparing version 1.0.5 to 1.0.6-beta.1
@@ -1,2 +0,2 @@ | ||
import { InvokeScriptCall, InvokeScriptPayment, MassTransferItem, DataTransactionEntry, ExchangeTransactionOrder, TRANSACTION_TYPE, TransactionType, Long, AssetDecimals, Base64Script, Base58Bytes, WithVersion, SignedIExchangeTransactionOrder } from '../src'; | ||
import { InvokeScriptCall, InvokeScriptPayment, MassTransferItem, DataTransactionEntry, ExchangeTransactionOrder, TRANSACTION_TYPE, TransactionType, Long, AssetDecimals, Base64Script, Base58Bytes, WithVersion, SignedIExchangeTransactionOrder } from '../index'; | ||
export declare type BaseTransaction<LONG = Long, TYPE extends TransactionType = TransactionType> = { | ||
@@ -9,3 +9,3 @@ type: TYPE; | ||
}; | ||
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>; | ||
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> | InvokeExpressionTransaction<LONG>; | ||
export declare type TransactionMap<LONG = Long> = { | ||
@@ -29,2 +29,3 @@ [TRANSACTION_TYPE.GENESIS]: GenesisTransaction<LONG>; | ||
[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransaction<LONG>; | ||
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>; | ||
}; | ||
@@ -49,2 +50,3 @@ export declare type TransactionVersionsMap<LONG = Long> = { | ||
[TRANSACTION_TYPE.UPDATE_ASSET_INFO]: UpdateAssetInfoTransactionMap<LONG>; | ||
[TRANSACTION_TYPE.INVOKE_EXPRESSION]: InvokeExpressionTransaction<LONG>; | ||
}; | ||
@@ -136,2 +138,6 @@ declare type Omit<A extends Record<string, any>, B extends keyof A> = { | ||
}; | ||
export declare type InvokeExpressionTransactionFields<LONG = Long> = { | ||
expression: string; | ||
feeAssetId: string | null; | ||
}; | ||
export interface IUpdateAssetInfoTransaction<LONG = Long> extends BaseTransaction<LONG, typeof TRANSACTION_TYPE.UPDATE_ASSET_INFO>, UpdateAssetInfoTransactionFields<LONG> { | ||
@@ -253,2 +259,3 @@ } | ||
}; | ||
export declare type InvokeExpressionTransactionV1<LONG> = WithVersion<InvokeExpressionTransactionFields<LONG> & BaseTransaction<LONG, 18>, 1>; | ||
export declare type GenesisTransaction<LONG = Long> = GenesisTransactionV1<LONG>; | ||
@@ -271,2 +278,3 @@ export declare type PaymentTransaction<LONG = Long> = PaymentTransactionV1<LONG>; | ||
export declare type UpdateAssetInfoTransaction<LONG = Long> = UpdateAssetInfoTransactionV1<LONG>; | ||
export declare type InvokeExpressionTransaction<LONG = Long> = InvokeExpressionTransactionV1<LONG>; | ||
declare type TWithSignatureMap = { | ||
@@ -273,0 +281,0 @@ [TRANSACTION_TYPE.GENESIS]: 1; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var src_1 = require("../src"); | ||
var index_1 = require("../index"); |
{ | ||
"name": "@waves/ts-types", | ||
"version": "1.0.5", | ||
"version": "1.0.6-beta.1", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/src/index.d.ts", |
@@ -1,2 +0,2 @@ | ||
export * from '../transactions'; | ||
export * from './transactions'; | ||
export * from './parts'; | ||
@@ -21,2 +21,3 @@ | ||
export const UPDATE_ASSET_INFO_TYPE = 17 as 17; | ||
export const INVOKE_EXPRESSION = 18 as 18; | ||
@@ -46,2 +47,3 @@ export const INTEGER_DATA_TYPE = 'integer' as 'integer'; | ||
UPDATE_ASSET_INFO: UPDATE_ASSET_INFO_TYPE, | ||
INVOKE_EXPRESSION: INVOKE_EXPRESSION, | ||
}; | ||
@@ -48,0 +50,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
68574
20
1745
2