@cityofzion/blockchain-service 1.19.3 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,17 @@ export type TransactionTransferNft = {
104
104
  type: 'nft';
105
105
  contractHash: string;
106
106
  };
107
+ type TransactionDefaultResponse = {
108
+ type: 'default';
109
+ };
110
+ export type TransactionBridgeNeo3NeoXResponse = {
111
+ type: 'bridgeNeo3NeoX';
112
+ data: {
113
+ amount: string;
114
+ token: Token;
115
+ receiverAddress: string;
116
+ };
117
+ };
107
118
  export type TransactionResponse = {
108
119
  hash: string;
109
120
  block: number;
@@ -111,7 +122,7 @@ export type TransactionResponse = {
111
122
  transfers: (TransactionTransferAsset | TransactionTransferNft)[];
112
123
  fee?: string;
113
124
  notifications: TransactionNotifications[];
114
- };
125
+ } & (TransactionDefaultResponse | TransactionBridgeNeo3NeoXResponse);
115
126
  export type ContractParameter = {
116
127
  name: string;
117
128
  type: string;
@@ -166,6 +177,17 @@ export type FullTransactionAssetEvent = {
166
177
  token?: Token;
167
178
  tokenType: 'generic' | (string & NonNullable<unknown>);
168
179
  };
180
+ type FullTransactionsItemDefault = {
181
+ type: 'default';
182
+ };
183
+ export type FullTransactionsItemBridgeNeo3NeoX = {
184
+ type: 'bridgeNeo3NeoX';
185
+ data: {
186
+ amount: string;
187
+ token: Token;
188
+ receiverAddress: string;
189
+ };
190
+ };
169
191
  export type FullTransactionsItem = {
170
192
  txId: string;
171
193
  txIdUrl?: string;
@@ -176,7 +198,7 @@ export type FullTransactionsItem = {
176
198
  networkFeeAmount?: string;
177
199
  systemFeeAmount?: string;
178
200
  events: (FullTransactionAssetEvent | FullTransactionNftEvent)[];
179
- };
201
+ } & (FullTransactionsItemDefault | FullTransactionsItemBridgeNeo3NeoX);
180
202
  export type FullTransactionsByAddressResponse = {
181
203
  nextCursor?: string;
182
204
  data: FullTransactionsItem[];
@@ -431,3 +453,4 @@ export interface INeo3NeoXBridgeService<BSName extends string = string> {
431
453
  getNonce(params: TNeo3NeoXBridgeServiceGetNonceParams<BSName>): Promise<string>;
432
454
  getTransactionHashByNonce(params: TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams<BSName>): Promise<string>;
433
455
  }
456
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/blockchain-service",
3
- "version": "1.19.3",
3
+ "version": "1.20.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",