@waves/ts-types
Advanced tools
Comparing version 0.2.0-beta-3 to 0.2.0-beta-4
@@ -18,2 +18,3 @@ export * from '../transactions'; | ||
SET_ASSET_SCRIPT: 15; | ||
INVOKE_SCRIPT: 16; | ||
}; | ||
@@ -20,0 +21,0 @@ export declare const DATA_FIELD_TYPE: { |
@@ -18,3 +18,4 @@ "use strict"; | ||
SPONSORSHIP: 14, | ||
SET_ASSET_SCRIPT: 15 | ||
SET_ASSET_SCRIPT: 15, | ||
INVOKE_SCRIPT: 16 | ||
}; | ||
@@ -21,0 +22,0 @@ exports.DATA_FIELD_TYPE = { |
{ | ||
"name": "@waves/ts-types", | ||
"version": "0.2.0-beta-3", | ||
"version": "0.2.0-beta-4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -18,3 +18,4 @@ export * from '../transactions'; | ||
SPONSORSHIP: 14 as 14, | ||
SET_ASSET_SCRIPT: 15 as 15 | ||
SET_ASSET_SCRIPT: 15 as 15, | ||
INVOKE_SCRIPT: 16 as 16 | ||
}; | ||
@@ -21,0 +22,0 @@ |
@@ -1,5 +0,11 @@ | ||
import { DATA_FIELD_TYPE, TRANSACTION_TYPE, TTransactionType } from '../src'; | ||
import { TRANSACTION_TYPE, TTransactionType } from '../src'; | ||
import { | ||
IExchangeTransactionOrder, IInvokeScriptCall, IInvokeScriptPayment, | ||
IMassTransferItem, | ||
IWithId, | ||
IWithProofs, | ||
TDataTransactionEntry | ||
} from '../src/parts'; | ||
export type TOrderType = 'buy' | 'sell'; | ||
export type TBase64Script = string; | ||
@@ -9,64 +15,3 @@ export type TBase58Bytes = string; | ||
export interface IWithProofs { | ||
proofs: TProofs; | ||
} | ||
export interface IWithId { | ||
id: string; | ||
} | ||
export interface IMassTransferItem<LONG> { | ||
recipient: string | ||
amount: LONG; | ||
} | ||
export interface IDataTransactionEntryInteger<LONG> { | ||
key: string; | ||
type: typeof DATA_FIELD_TYPE.INTEGER; | ||
value: LONG; | ||
} | ||
export interface IDataTransactionEntryBoolean { | ||
key: string; | ||
type: typeof DATA_FIELD_TYPE.BOOLEAN; | ||
value: boolean; | ||
} | ||
export interface IDataTransactionEntryString { | ||
key: string; | ||
type: typeof DATA_FIELD_TYPE.STRING; | ||
value: string; | ||
} | ||
export interface IDataTransactionEntryBinary { | ||
key: string; | ||
type: typeof DATA_FIELD_TYPE.BINARY; | ||
value: Uint8Array; | ||
} | ||
export interface IExchangeTransactionOrder<LONG> { | ||
matcherPublicKey: string; | ||
version: number; | ||
assetPair: { | ||
amountAsset: string; | ||
priceAsset: string; | ||
}, | ||
orderType: TOrderType; | ||
price: LONG; | ||
amount: LONG; | ||
timestamp: number; | ||
expiration: number; | ||
matcherFee: LONG; | ||
senderPublicKey: string; | ||
} | ||
export interface IExchangeTransactionOrderWithProofs<LONG> extends IExchangeTransactionOrder<LONG>, IWithProofs { | ||
} | ||
export type TDataTransactionEntry<LONG> = | ||
IDataTransactionEntryInteger<LONG> | | ||
IDataTransactionEntryBoolean | | ||
IDataTransactionEntryString | | ||
IDataTransactionEntryBinary; | ||
export interface ITransaction<LONG, TYPE extends TTransactionType = TTransactionType> { | ||
@@ -93,3 +38,4 @@ type: TYPE; | ||
IExchangeTransaction<LONG> | | ||
ISetAssetScriptTransaction<LONG>; | ||
ISetAssetScriptTransaction<LONG> | | ||
IInvokeScriptTransaction<LONG>; | ||
@@ -109,3 +55,4 @@ export type TTransactionMap<LONG> = { | ||
[TRANSACTION_TYPE.EXCHANGE]: IExchangeTransaction<LONG>, | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransaction<LONG> | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransaction<LONG>, | ||
[TRANSACTION_TYPE.INVOKE_SCRIPT]: IInvokeScriptTransaction<LONG> | ||
}; | ||
@@ -126,3 +73,4 @@ | ||
IExchangeTransactionWithId<LONG> | | ||
ISetAssetScriptTransactionWithId<LONG>; | ||
ISetAssetScriptTransactionWithId<LONG> | | ||
IInvokeScriptTransactionWithId<LONG>; | ||
@@ -142,3 +90,4 @@ export type TTransactionWithIdMap<LONG> = { | ||
[TRANSACTION_TYPE.EXCHANGE]: IExchangeTransactionWithId<LONG>, | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransactionWithId<LONG> | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransactionWithId<LONG>, | ||
[TRANSACTION_TYPE.INVOKE_SCRIPT]: IInvokeScriptTransactionWithId<LONG> | ||
} | ||
@@ -159,3 +108,4 @@ | ||
IExchangeTransactionWithProofs<LONG> | | ||
ISetAssetScriptTransactionWithProofs<LONG>; | ||
ISetAssetScriptTransactionWithProofs<LONG> | | ||
IInvokeScriptTransactionWithProofs<LONG>; | ||
@@ -175,3 +125,4 @@ export type TTransactionWithProofsMap<LONG> = { | ||
[TRANSACTION_TYPE.EXCHANGE]: IExchangeTransactionWithProofs<LONG>, | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransactionWithProofs<LONG> | ||
[TRANSACTION_TYPE.SET_ASSET_SCRIPT]: ISetAssetScriptTransactionWithProofs<LONG>, | ||
[TRANSACTION_TYPE.INVOKE_SCRIPT]: IInvokeScriptTransactionWithProofs<LONG> | ||
} | ||
@@ -255,2 +206,10 @@ | ||
export interface IInvokeScriptTransaction<LONG> extends ITransaction<LONG, typeof TRANSACTION_TYPE.INVOKE_SCRIPT> { | ||
chainId: number; | ||
dappAddress: string; | ||
call: IInvokeScriptCall<LONG>; | ||
feeAssetId: string | null; | ||
payment: Array<IInvokeScriptPayment<LONG>>; | ||
} | ||
export interface IIssueTransactionWithId<LONG> extends IIssueTransaction<LONG>, IWithId { | ||
@@ -295,2 +254,5 @@ } | ||
export interface IInvokeScriptTransactionWithId<LONG> extends IInvokeScriptTransaction<LONG>, IWithId { | ||
} | ||
export interface IIssueTransactionWithProofs<LONG> extends IIssueTransaction<LONG>, IWithProofs { | ||
@@ -334,1 +296,4 @@ } | ||
} | ||
export interface IInvokeScriptTransactionWithProofs<LONG> extends IInvokeScriptTransaction<LONG>, IWithProofs { | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17685
9
484
0