@rosen-bridge/tx-pot 1.0.0 → 1.0.2
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.
- package/CHANGELOG.md +13 -0
- package/README.md +436 -7
- package/dist/db/migrations/index.d.ts +3 -3
- package/dist/db/migrations/index.js +3 -3
- package/dist/db/migrations/postgres/1706350644686-migration.d.ts +4 -4
- package/dist/db/migrations/postgres/1706350644686-migration.js +8 -8
- package/dist/db/migrations/sqlite/1706007154531-migration.d.ts +4 -4
- package/dist/db/migrations/sqlite/1706007154531-migration.js +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/network/AbstractPotChainManager.d.ts +33 -36
- package/dist/transaction/utils.d.ts +2 -4
- package/package.json +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -4,15 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
- [Introduction](#introduction)
|
|
6
6
|
- [Installation](#installation)
|
|
7
|
-
- [Implementation Details](#implementation-details)
|
|
8
7
|
- [Usage](#usage)
|
|
8
|
+
- [Network Interface](#network-interface)
|
|
9
|
+
- [Setup](#setup)
|
|
10
|
+
- [Insert Transaction](#insert-transaction)
|
|
11
|
+
- [Process Signed Transactions](#process-signed-transactions)
|
|
12
|
+
- [Transaction Validations](#transaction-validations)
|
|
13
|
+
- [Status Change Notification](#status-change-notification)
|
|
14
|
+
- [Fetch Transactions](#fetch-transactions)
|
|
9
15
|
|
|
10
16
|
## Introduction
|
|
11
17
|
|
|
12
18
|
`@rosen-bridge/tx-pot` is a Typescript package to manage transactions storage, sign, submit and related processes.
|
|
13
19
|
|
|
14
|
-
TODO
|
|
15
|
-
|
|
16
20
|
## Installation
|
|
17
21
|
|
|
18
22
|
npm:
|
|
@@ -27,10 +31,435 @@ yarn:
|
|
|
27
31
|
yarn add @rosen-bridge/tx-pot
|
|
28
32
|
```
|
|
29
33
|
|
|
30
|
-
##
|
|
34
|
+
## Usage
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
The usage of `@rosen-bridge/tx-pot` package is explained briefly in several parts. Implementing network interface, setup and insert transaction steps are crucial to use the package. Other steps just explain how to utilize the package and better use cases.
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
`TxPot` requires a database connection and works with a single table, `TransactionEntity`. The primary key for this table is the pair of chain and transaction id. It also has various columns which will be explained in [#insert-transaction](#insert-transaction).
|
|
39
|
+
|
|
40
|
+
### Network Interface
|
|
41
|
+
|
|
42
|
+
Before diving into using `TxPot`, a network interface is required for each chain. The interface should implement the `AbstractPotChainManager` class. These interfaces should be registered in `TxPot` after the setup step. The interface functions are briefly described in the following.
|
|
43
|
+
|
|
44
|
+
#### `getHeight`
|
|
45
|
+
|
|
46
|
+
This function gets the blockchain's current height. It is required while processing transactions with `sent` status and is used to update the transaction `lastCheck`, which almost shows the last height that a transaction was valid. It is also required while setting a transaction as invalid.
|
|
47
|
+
|
|
48
|
+
#### `getTxRequiredConfirmation`
|
|
49
|
+
|
|
50
|
+
This function returns the required number of confirmations for a transaction based on its type. The transaction types are defined by the superior package and don't matter to `TxPot`.
|
|
51
|
+
|
|
52
|
+
> ```ts
|
|
53
|
+
> @param txType <string> type of the transaction
|
|
54
|
+
> ```
|
|
55
|
+
|
|
56
|
+
#### `getTxConfirmation`
|
|
57
|
+
|
|
58
|
+
This function gets the number of confirmations for a transaction. **Note that this function should return -1 if tx is not mined (e.g. is in mempool) or is not in the blockchain**.
|
|
59
|
+
|
|
60
|
+
> ```ts
|
|
61
|
+
> @param txId <string> the transaction id
|
|
62
|
+
> ```
|
|
63
|
+
|
|
64
|
+
#### `isTxValid`
|
|
65
|
+
|
|
66
|
+
This function checks if a transaction is still valid and can be sent to the network. For example, in UTxO-based blockchains, it should check if the input UTxOs are valid and still unspent. Also in Account-based blockchains, the state of the account (e.g. `nonce` in Ethereum) should be checked.
|
|
67
|
+
|
|
68
|
+
> ```ts
|
|
69
|
+
> @param serializedTx <string> the serialized transaction
|
|
70
|
+
> @param signingStatus <SigningStatus> the transaction sign status (0 for signed, 1 for unsigned)
|
|
71
|
+
> ```
|
|
72
|
+
|
|
73
|
+
#### `submitTransaction`
|
|
74
|
+
|
|
75
|
+
This function submits a transaction to the blockchain. The result doesn't matter to `TxPot` and the state of the transaction will be checked while processing `sent` transactions (see [#process-signed-transactions](#process-signed-transactions)).
|
|
76
|
+
|
|
77
|
+
> ```ts
|
|
78
|
+
> @param serializedTx <string> the serialized transaction
|
|
79
|
+
> ```
|
|
80
|
+
|
|
81
|
+
#### `isTxInMempool`
|
|
82
|
+
|
|
83
|
+
This function checks if a transaction is in mempool. If the blockchain has no mempool or mempool usage is not required, it should just return `false`.
|
|
84
|
+
|
|
85
|
+
> ```ts
|
|
86
|
+
> @param txId <string> the transaction id
|
|
87
|
+
> ```
|
|
88
|
+
|
|
89
|
+
### Setup
|
|
90
|
+
|
|
91
|
+
`TxPot` is defined in Singleton architecture, i.e. a single object will be defined and used by the entire program.
|
|
92
|
+
|
|
93
|
+
To instantiate `TxPot`, the `setup` function should get called with `typeorm` data source.
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import { TxPot } from '@rosen-bridge/tx-pot';
|
|
97
|
+
import { dataSource } from '../db/dataSource';
|
|
98
|
+
|
|
99
|
+
const txPot = TxPot.setup(dataSource);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
A logger can be passed to `TxPot`. Example of integrating `@rosen-bridge/winston-logger` with TxPot:
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import { TxPot } from '@rosen-bridge/tx-pot';
|
|
106
|
+
import { dataSource } from '../db/dataSource';
|
|
107
|
+
import WinstonLogger from '@rosen-bridge/winston-logger';
|
|
108
|
+
|
|
109
|
+
const logger = WinstonLogger.getInstance().getLogger(`TxPot`);
|
|
110
|
+
|
|
111
|
+
const txPot = TxPot.setup(dataSource, logger);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
After instantiating `TxPot` all supported chains interfaces should be registered in (see [#network-interface](#network-interface) for more details).
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
import { ErgoChainManager } from 'managers/ErgoChainManager';
|
|
118
|
+
import { CardanoChainManager } from 'managers/CardanoChainManager';
|
|
119
|
+
|
|
120
|
+
txPot.registerChain(`ergo`, ErgoChainManager);
|
|
121
|
+
txPot.registerChain(`cardano`, CardanoChainManager);
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Validator and callback functions can be registered to `TxPot` but they are optional (see [#transaction-validations](#transaction-validations) and [#status-change-notification](#status-change-notification) for more details).
|
|
125
|
+
|
|
126
|
+
### Insert Transaction
|
|
127
|
+
|
|
128
|
+
Transaction can be inserted using the `addTx` function. It inserts transactions with `approved` status by default and 0 for the `lastCheck` column. For inserting signed transactions, the `signed` status should be passed as initial status. In this case, **don't forget to also pass the current blockchain height as `lastCheck` argument**. There are two columns to store arbitrary data for transactions, `extra` and `extra2`. The difference is transactions can be filtered and fetched by their `extra` field while it is not possible with `extra2`. If some foreign key concept is required for transactions, it is suggested to store the key in the `extra` column.
|
|
129
|
+
|
|
130
|
+
Example of inserting a transaction into `TxPot`:
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
await txPot.addTx(
|
|
134
|
+
'a742019b9c3963713dccda20e38717f8854d7d2ede97899f7eba78f67acef10b',
|
|
135
|
+
'ergo',
|
|
136
|
+
'my-type',
|
|
137
|
+
1,
|
|
138
|
+
'your-serialized-tx'
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Example of inserting a signed transaction into `TxPot`:
|
|
143
|
+
|
|
144
|
+
```ts
|
|
145
|
+
import { TransactionStatus } from '@rosen-bridge/tx-pot';
|
|
146
|
+
|
|
147
|
+
await txPot.addTx(
|
|
148
|
+
'a742019b9c3963713dccda20e38717f8854d7d2ede97899f7eba78f67acef10b',
|
|
149
|
+
'ergo',
|
|
150
|
+
'my-type',
|
|
151
|
+
1,
|
|
152
|
+
'your-serialized-tx',
|
|
153
|
+
TransactionStatus.SIGNED,
|
|
154
|
+
1000000
|
|
155
|
+
);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Example of inserting a transaction with arbitrary data into `TxPot` (can be combined with above example to insert signed transaction):
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
import { TransactionStatus } from '@rosen-bridge/tx-pot';
|
|
162
|
+
|
|
163
|
+
await txPot.addTx(
|
|
164
|
+
'a742019b9c3963713dccda20e38717f8854d7d2ede97899f7eba78f67acef10b',
|
|
165
|
+
'ergo',
|
|
166
|
+
'my-type',
|
|
167
|
+
1,
|
|
168
|
+
'your-serialized-tx',
|
|
169
|
+
undefined,
|
|
170
|
+
undefined,
|
|
171
|
+
'your-foreign-key',
|
|
172
|
+
'{ yourData: "any-data", secondKey: 100 }'
|
|
173
|
+
);
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Transactions can be inserted with any other statuses, though it is not recommended.
|
|
177
|
+
|
|
178
|
+
### Process Signed Transactions
|
|
179
|
+
|
|
180
|
+
Signed transactions are processed by `TxPot` itself. The process will be executed by the `update` function. It is recommended to execute it on the interval based on the minimum blockchain block time. Example:
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
const txPotJob = async () => {
|
|
184
|
+
const txPot = await TxPot.getInstance();
|
|
185
|
+
txPot.update().then(() => {
|
|
186
|
+
setTimeout(txPotJob, interval);
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
This function only processes transactions with `signed` and `sent` statuses.
|
|
192
|
+
|
|
193
|
+
Transactions with `signed` status will be validated by the submit validators (if any are registered) and if all are passed, it will be submitted to the network and its status will be updated to `sent`.
|
|
194
|
+
|
|
195
|
+
Processing `sent` transactions is a bit more complicated. There are three cases.
|
|
196
|
+
|
|
197
|
+
If the transaction is mined and confirmed enough, its status will be updated to `completed`.
|
|
198
|
+
|
|
199
|
+
If the transaction is mined but enough confirmation is not passed yet, the `lastCheck` column is updated to the current height of the blockchain.
|
|
200
|
+
|
|
201
|
+
If the transaction is not mined, it will be searched for in mempool.
|
|
202
|
+
If it is in mempool, the `lastCheck` column is updated to the current height of the blockchain.
|
|
203
|
+
If it is not in mempool, the transaction will be validated.
|
|
204
|
+
|
|
205
|
+
There may be two validations here.
|
|
206
|
+
The first one is the chain validation, which is the `isTxValid` function in the network interface (described in [Network Interface
|
|
207
|
+
](#istxvalid)).
|
|
208
|
+
The second one is any registered validator by the superior package (see [#transaction-validations](#transaction-validations) for more details).
|
|
209
|
+
**Note that submit validators won't be checked in here**.
|
|
210
|
+
|
|
211
|
+
If the transaction is still valid, it will be submitted to the network.
|
|
212
|
+
If it's not, the `lastCheck` column will be checked and only if enough blocks are passed from it, the status will be updated to `invalid`.
|
|
213
|
+
|
|
214
|
+
There are other statuses for transactions, but they will not be processed by `TxPot` and the the superior package should process them itself. It is recommended to process them before calling `update`:
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
const txPotJob = async () => {
|
|
218
|
+
const txPot = await TxPot.getInstance();
|
|
219
|
+
|
|
220
|
+
const approvedTxs = await TxPot.getTxsByStatus(
|
|
221
|
+
TransactionStatus.APPROVED,
|
|
222
|
+
true // only returns valid txs (also mutate invalid ones)
|
|
223
|
+
);
|
|
224
|
+
await processApprovedTxs(approvedTxs);
|
|
225
|
+
|
|
226
|
+
const signFailedTxs = await TxPot.getTxsByStatus(
|
|
227
|
+
TransactionStatus.SIGN_FAILED
|
|
228
|
+
);
|
|
229
|
+
await processSignFailedTxs(signFailedTxs);
|
|
35
230
|
|
|
36
|
-
|
|
231
|
+
txPot.update().then(() => {
|
|
232
|
+
setTimeout(txPotJob, interval);
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The `validate` flag in `getTxsByStatus` arguments specifies if the fetched transactions should be validated. Similar to `sent` transactions, chain validation and the registered validators will be checked.
|
|
238
|
+
**Note that submit validators won't be checked in here either**.
|
|
239
|
+
|
|
240
|
+
Again similar to `sent` transactions, if the transaction is not valid, the `lastCheck` column will be checked and only if enough blocks are passed from it, the status will be updated to `invalid`. The remaining valid transactions will be returned.
|
|
241
|
+
|
|
242
|
+
### Transaction Validations
|
|
243
|
+
|
|
244
|
+
There are three types of validators in `TxPot`.
|
|
245
|
+
The first one is to validate chain conditions, which are checked by the chain manager (`isTxValid` function described in [Network Interface
|
|
246
|
+
](#istxvalid)).
|
|
247
|
+
The second one is the validators registered by the superior package using `registerValidator`.
|
|
248
|
+
The third one is the submit-only validators, which should be registered by `registerSubmitValidator`. Note that the third one will be called only before attempting to submit a transaction and won't be called in any other cases (such as processing `sent` transactions).
|
|
249
|
+
|
|
250
|
+
The second type of validator, requires chain, transaction type and an id to be registered. Id only identifies the validator and won't be used while validating transactions.
|
|
251
|
+
Multiple validators can be registered for a single chain and transaction type using different ids. Registering a new validator with the same chain, type and id will override the previous one. Example:
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
import { s1ErgoPaymentTxValidator } from '../service1/validators';
|
|
255
|
+
import { s2ErgoPaymentTxValidator } from '../service1/validators';
|
|
256
|
+
|
|
257
|
+
txPot.registerValidator(
|
|
258
|
+
`ergo`,
|
|
259
|
+
`payment`,
|
|
260
|
+
`service-1`,
|
|
261
|
+
s1ErgoPaymentTxValidator
|
|
262
|
+
);
|
|
263
|
+
txPot.registerValidator(
|
|
264
|
+
`ergo`,
|
|
265
|
+
`payment`,
|
|
266
|
+
`service-2`,
|
|
267
|
+
s2ErgoPaymentTxValidator
|
|
268
|
+
);
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
the submit-only validators only require chain and id. Similar to the previous one, registering multiple validators is allowed and registering the validator with duplicate chain and id overrides the previous one. Example:
|
|
272
|
+
|
|
273
|
+
```ts
|
|
274
|
+
import { s1ErgoSubmitValidator } from '../service1/validators';
|
|
275
|
+
|
|
276
|
+
txPot.registerSubmitValidator(`ergo`, `service-1`, s1ErgoSubmitValidator);
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
The validators can also be removed using unregister functions:
|
|
280
|
+
|
|
281
|
+
```ts
|
|
282
|
+
txPot.unregisterValidator(`ergo`, `payment`, `service-1`);
|
|
283
|
+
|
|
284
|
+
txPot.unregisterSubmitValidator(`ergo`, `service-1`);
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Status Change Notification
|
|
288
|
+
|
|
289
|
+
The superior package can be notified when a transaction status is changed. The notification process will be done based on the transaction type and the new status.
|
|
290
|
+
|
|
291
|
+
In order to perform an action on status change, a callback should be registered to `TxPot`. Similar to validators, registering multiple callbacks is allowed and registering callback with duplicate type, status and id overrides the previous one. Example:
|
|
292
|
+
|
|
293
|
+
```ts
|
|
294
|
+
import { onPaymentComplete } from '../service1/jobs';
|
|
295
|
+
|
|
296
|
+
txPot.registerCallback(
|
|
297
|
+
`payment`,
|
|
298
|
+
TransactionStatus.COMPLETED,
|
|
299
|
+
'service-1',
|
|
300
|
+
onPaymentComplete
|
|
301
|
+
);
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Removing callbacks is done by `unregisterCallback`:
|
|
305
|
+
|
|
306
|
+
```ts
|
|
307
|
+
txPot.unregisterCallback(`payment`, TransactionStatus.COMPLETED, 'service-1');
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Fetch Transactions
|
|
311
|
+
|
|
312
|
+
Some functions are defined to update and fetch transactions. The `getTxsQuery` function is defined for general use cases and always returns the list of transactions.
|
|
313
|
+
It gets the list of queries and merges the result (technically, queries are merged into a single query with `OR` clause).
|
|
314
|
+
Each query supports conditions on six fields of the transaction. The available conditions are described in the following.
|
|
315
|
+
|
|
316
|
+
#### `txId`
|
|
317
|
+
|
|
318
|
+
Transactions can be fetched by id in two ways. Fetching transactions with a single id, or list of ids.
|
|
319
|
+
|
|
320
|
+
```ts
|
|
321
|
+
// fetch transactions with single id
|
|
322
|
+
txPot.getTxsQuery([
|
|
323
|
+
{
|
|
324
|
+
txId: '48ffe9014a3e3370df3f6eadcaf6ffa2de96cc94f3c4170c65e561beecdb1da9',
|
|
325
|
+
},
|
|
326
|
+
]);
|
|
327
|
+
// fetch transactions with list of ids
|
|
328
|
+
txPot.getTxsQuery([
|
|
329
|
+
{
|
|
330
|
+
txId: [
|
|
331
|
+
'48ffe9014a3e3370df3f6eadcaf6ffa2de96cc94f3c4170c65e561beecdb1da9',
|
|
332
|
+
'377c038d4bf522617ef7a74254be48c97d692787179cb091444ce808b63ced2d',
|
|
333
|
+
],
|
|
334
|
+
},
|
|
335
|
+
]);
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
#### `chain`
|
|
339
|
+
|
|
340
|
+
Only a single chain can be specified in the query. Example:
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
txPot.getTxsQuery([
|
|
344
|
+
{
|
|
345
|
+
chain: 'ergo',
|
|
346
|
+
},
|
|
347
|
+
]);
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
#### `txType`
|
|
351
|
+
|
|
352
|
+
Only a single transaction type can be specified in the query. Example:
|
|
353
|
+
|
|
354
|
+
```ts
|
|
355
|
+
txPot.getTxsQuery([
|
|
356
|
+
{
|
|
357
|
+
txType: 'payment',
|
|
358
|
+
},
|
|
359
|
+
]);
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
#### `status`
|
|
363
|
+
|
|
364
|
+
The status column can be specified in four ways:
|
|
365
|
+
|
|
366
|
+
- single status
|
|
367
|
+
|
|
368
|
+
```ts
|
|
369
|
+
txPot.getTxsQuery([
|
|
370
|
+
{
|
|
371
|
+
status: {
|
|
372
|
+
not: false,
|
|
373
|
+
value: TransactionStatus.APPROVED,
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
]);
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
- multiple statuses
|
|
380
|
+
|
|
381
|
+
```ts
|
|
382
|
+
txPot.getTxsQuery([
|
|
383
|
+
{
|
|
384
|
+
status: {
|
|
385
|
+
not: false,
|
|
386
|
+
value: [TransactionStatus.APPROVED, TransactionStatus.SIGN_FAILED],
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
]);
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
- all statuses except a single one
|
|
393
|
+
|
|
394
|
+
```ts
|
|
395
|
+
txPot.getTxsQuery([
|
|
396
|
+
{
|
|
397
|
+
status: {
|
|
398
|
+
not: true,
|
|
399
|
+
value: TransactionStatus.INVALID,
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
]);
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
- all statuses except multiple ones
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
txPot.getTxsQuery([
|
|
409
|
+
{
|
|
410
|
+
status: {
|
|
411
|
+
not: true,
|
|
412
|
+
value: [TransactionStatus.COMPLETED, TransactionStatus.INVALID],
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
]);
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
#### `failedInSign`
|
|
419
|
+
|
|
420
|
+
The `failedInSign` column is also available to query.
|
|
421
|
+
|
|
422
|
+
```ts
|
|
423
|
+
txPot.getTxsQuery([
|
|
424
|
+
{
|
|
425
|
+
failedInSign: true,
|
|
426
|
+
},
|
|
427
|
+
]);
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
#### `extra`
|
|
431
|
+
|
|
432
|
+
similar to `txId`, the `extra` column supports single and multiple value conditions.
|
|
433
|
+
|
|
434
|
+
```ts
|
|
435
|
+
// fetch transactions with single data
|
|
436
|
+
txPot.getTxsQuery([
|
|
437
|
+
{
|
|
438
|
+
extra: 'arbitrary-data',
|
|
439
|
+
},
|
|
440
|
+
]);
|
|
441
|
+
// fetch transactions with list of data
|
|
442
|
+
txPot.getTxsQuery([
|
|
443
|
+
{
|
|
444
|
+
extra: ['arbitrary-data-1', 'arbitrary-data-2'],
|
|
445
|
+
},
|
|
446
|
+
]);
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
The queries can be combined. Example:
|
|
450
|
+
|
|
451
|
+
```ts
|
|
452
|
+
const unsignedTxsToRetry = {
|
|
453
|
+
status: {
|
|
454
|
+
not: false,
|
|
455
|
+
value: [TransactionStatus.IN_SIGN, TransactionStatus.SIGN_FAILED],
|
|
456
|
+
},
|
|
457
|
+
failedInSign: true,
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
const importantTxs = {
|
|
461
|
+
extra: `important!`,
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
txPot.getTxsQuery([unsignedTxsToRetry, importantTxs]);
|
|
465
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Migration1706350644686 } from './postgres/1706350644686-migration';
|
|
2
2
|
import { Migration1706007154531 } from './sqlite/1706007154531-migration';
|
|
3
3
|
export declare const migrations: {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
sqlite: (typeof Migration1706007154531)[];
|
|
5
|
+
postgres: (typeof Migration1706350644686)[];
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Migration1706350644686 } from './postgres/1706350644686-migration';
|
|
2
2
|
import { Migration1706007154531 } from './sqlite/1706007154531-migration';
|
|
3
3
|
export const migrations = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
sqlite: [Migration1706007154531],
|
|
5
|
+
postgres: [Migration1706350644686],
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvZGIvbWlncmF0aW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsc0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sc0JBQXNCLENBQUM7Q0FDbkMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE1pZ3JhdGlvbjE3MDYzNTA2NDQ2ODYgfSBmcm9tICcuL3Bvc3RncmVzLzE3MDYzNTA2NDQ2ODYtbWlncmF0aW9uJztcbmltcG9ydCB7IE1pZ3JhdGlvbjE3MDYwMDcxNTQ1MzEgfSBmcm9tICcuL3NxbGl0ZS8xNzA2MDA3MTU0NTMxLW1pZ3JhdGlvbic7XG5cbmV4cG9ydCBjb25zdCBtaWdyYXRpb25zID0ge1xuICBzcWxpdGU6IFtNaWdyYXRpb24xNzA2MDA3MTU0NTMxXSxcbiAgcG9zdGdyZXM6IFtNaWdyYXRpb24xNzA2MzUwNjQ0Njg2XSxcbn07XG4iXX0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
export declare class Migration1706350644686 implements MigrationInterface {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=1706350644686-migration.d.ts.map
|
|
7
|
+
//# sourceMappingURL=1706350644686-migration.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class Migration1706350644686 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name = 'Migration1706350644686';
|
|
3
|
+
async up(queryRunner) {
|
|
4
|
+
await queryRunner.query(`
|
|
5
5
|
CREATE TABLE "transaction_entity" (
|
|
6
6
|
"txId" character varying NOT NULL,
|
|
7
7
|
"chain" character varying NOT NULL,
|
|
@@ -18,11 +18,11 @@ export class Migration1706350644686 {
|
|
|
18
18
|
CONSTRAINT "PK_cafcc9d8e76fef57bc0cf385caa" PRIMARY KEY ("txId", "chain")
|
|
19
19
|
)
|
|
20
20
|
`);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
}
|
|
22
|
+
async down(queryRunner) {
|
|
23
|
+
await queryRunner.query(`
|
|
24
24
|
DROP TABLE "transaction_entity"
|
|
25
25
|
`);
|
|
26
|
-
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTcwNjM1MDY0NDY4Ni1taWdyYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZGIvbWlncmF0aW9ucy9wb3N0Z3Jlcy8xNzA2MzUwNjQ0Njg2LW1pZ3JhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sc0JBQXNCO0lBQ2pDLElBQUksR0FBRyx3QkFBd0IsQ0FBQztJQUV6QixLQUFLLENBQUMsRUFBRSxDQUFDLFdBQXdCO1FBQ3RDLE1BQU0sV0FBVyxDQUFDLEtBQUssQ0FBQzs7Ozs7Ozs7Ozs7Ozs7OztTQWdCbkIsQ0FBQyxDQUFDO0lBQ1QsQ0FBQztJQUVNLEtBQUssQ0FBQyxJQUFJLENBQUMsV0FBd0I7UUFDeEMsTUFBTSxXQUFXLENBQUMsS0FBSyxDQUFDOztTQUVuQixDQUFDLENBQUM7SUFDVCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNaWdyYXRpb25JbnRlcmZhY2UsIFF1ZXJ5UnVubmVyIH0gZnJvbSAndHlwZW9ybSc7XG5cbmV4cG9ydCBjbGFzcyBNaWdyYXRpb24xNzA2MzUwNjQ0Njg2IGltcGxlbWVudHMgTWlncmF0aW9uSW50ZXJmYWNlIHtcbiAgbmFtZSA9ICdNaWdyYXRpb24xNzA2MzUwNjQ0Njg2JztcblxuICBwdWJsaWMgYXN5bmMgdXAocXVlcnl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ICAgICAgICAgIFwiZXh0cmEyXCIgY2hhcmFjdGVyIHZhcnlpbmcsXG4gICAgICAgICAgICAgICAgQ09OU1RSQUlOVCBcIlBLX2NhZmNjOWQ4ZTc2ZmVmNTdiYzBjZjM4NWNhYVwiIFBSSU1BUlkgS0VZIChcInR4SWRcIiwgXCJjaGFpblwiKVxuICAgICAgICAgICAgKVxuICAgICAgICBgKTtcbiAgfVxuXG4gIHB1YmxpYyBhc3luYyBkb3duKHF1ZXJ5UnVubmVyOiBRdWVyeVJ1bm5lcik6IFByb21pc2U8dm9pZD4ge1xuICAgIGF3YWl0IHF1ZXJ5UnVubmVyLnF1ZXJ5KGBcbiAgICAgICAgICAgIERST1AgVEFCTEUgXCJ0cmFuc2FjdGlvbl9lbnRpdHlcIlxuICAgICAgICBgKTtcbiAgfVxufVxuIl19
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
export declare class Migration1706007154531 implements MigrationInterface {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=1706007154531-migration.d.ts.map
|
|
7
|
+
//# sourceMappingURL=1706007154531-migration.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class Migration1706007154531 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name = 'Migration1706007154531';
|
|
3
|
+
async up(queryRunner) {
|
|
4
|
+
await queryRunner.query(`
|
|
5
5
|
CREATE TABLE "transaction_entity" (
|
|
6
6
|
"txId" varchar NOT NULL,
|
|
7
7
|
"chain" varchar NOT NULL,
|
|
@@ -18,11 +18,11 @@ export class Migration1706007154531 {
|
|
|
18
18
|
PRIMARY KEY ("txId", "chain")
|
|
19
19
|
)
|
|
20
20
|
`);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
}
|
|
22
|
+
async down(queryRunner) {
|
|
23
|
+
await queryRunner.query(`
|
|
24
24
|
DROP TABLE "transaction_entity"
|
|
25
25
|
`);
|
|
26
|
-
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTcwNjAwNzE1NDUzMS1taWdyYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZGIvbWlncmF0aW9ucy9zcWxpdGUvMTcwNjAwNzE1NDUzMS1taWdyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLHNCQUFzQjtJQUNqQyxJQUFJLEdBQUcsd0JBQXdCLENBQUM7SUFFekIsS0FBSyxDQUFDLEVBQUUsQ0FBQyxXQUF3QjtRQUN0QyxNQUFNLFdBQVcsQ0FBQyxLQUFLLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7U0FnQm5CLENBQUMsQ0FBQztJQUNULENBQUM7SUFFTSxLQUFLLENBQUMsSUFBSSxDQUFDLFdBQXdCO1FBQ3hDLE1BQU0sV0FBVyxDQUFDLEtBQUssQ0FBQzs7U0FFbkIsQ0FBQyxDQUFDO0lBQ1QsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWlncmF0aW9uSW50ZXJmYWNlLCBRdWVyeVJ1bm5lciB9IGZyb20gJ3R5cGVvcm0nO1xuXG5leHBvcnQgY2xhc3MgTWlncmF0aW9uMTcwNjAwNzE1NDUzMSBpbXBsZW1lbnRzIE1pZ3JhdGlvbkludGVyZmFjZSB7XG4gIG5hbWUgPSAnTWlncmF0aW9uMTcwNjAwNzE1NDUzMSc7XG5cbiAgcHVibGljIGFzeW5jIHVwKHF1ZXJ5UnVubmVyOiBRdWVyeVJ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5UnVubmVyLnF1ZXJ5KGBcbiAgICAgICAgICAgIENSRUFURSBUQUJMRSBcInRyYW5zYWN0aW9uX2VudGl0eVwiIChcbiAgICAgICAgICAgICAgICBcInR4SWRcIiB2YXJjaGFyIE5PVCBOVUxMLFxuICAgICAgICAgICAgICAgIFwiY2hhaW5cIiB2YXJjaGFyIE5PVCBOVUxMLFxuICAgICAgICAgICAgICAgIFwidHhUeXBlXCIgdmFyY2hhciBOT1QgTlVMTCxcbiAgICAgICAgICAgICAgICBcInN0YXR1c1wiIHZhcmNoYXIgTk9UIE5VTEwsXG4gICAgICAgICAgICAgICAgXCJyZXF1aXJlZFNpZ25cIiBpbnRlZ2VyIE5PVCBOVUxMLFxuICAgICAgICAgICAgICAgIFwibGFzdENoZWNrXCIgaW50ZWdlciBOT1QgTlVMTCxcbiAgICAgICAgICAgICAgICBcImxhc3RTdGF0dXNVcGRhdGVcIiB2YXJjaGFyIE5PVCBOVUxMLFxuICAgICAgICAgICAgICAgIFwiZmFpbGVkSW5TaWduXCIgYm9vbGVhbiBOT1QgTlVMTCxcbiAgICAgICAgICAgICAgICBcInNpZ25GYWlsZWRDb3VudFwiIGludGVnZXIgTk9UIE5VTEwsXG4gICAgICAgICAgICAgICAgXCJzZXJpYWxpemVkVHhcIiB2YXJjaGFyIE5PVCBOVUxMLFxuICAgICAgICAgICAgICAgIFwiZXh0cmFcIiB2YXJjaGFyLFxuICAgICAgICAgICAgICAgIFwiZXh0cmEyXCIgdmFyY2hhcixcbiAgICAgICAgICAgICAgICBQUklNQVJZIEtFWSAoXCJ0eElkXCIsIFwiY2hhaW5cIilcbiAgICAgICAgICAgIClcbiAgICAgICAgYCk7XG4gIH1cblxuICBwdWJsaWMgYXN5bmMgZG93bihxdWVyeVJ1bm5lcjogUXVlcnlSdW5uZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBhd2FpdCBxdWVyeVJ1bm5lci5xdWVyeShgXG4gICAgICAgICAgICBEUk9QIFRBQkxFIFwidHJhbnNhY3Rpb25fZW50aXR5XCJcbiAgICAgICAgYCk7XG4gIH1cbn1cbiJdfQ==
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { TxPot } from './transaction/TxPot';
|
|
|
3
3
|
export * from './transaction/types';
|
|
4
4
|
export { TransactionEntity } from './db/entities/TransactionEntity';
|
|
5
5
|
export { migrations } from './db/migrations/index';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|