@rosen-bridge/tx-pot 1.0.1 → 1.0.3
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 +14 -0
- package/dist/db/entities/TransactionEntity.d.ts +13 -13
- package/dist/db/entities/TransactionEntity.js +116 -72
- package/dist/index.js +1 -1
- package/dist/network/AbstractPotChainManager.js +2 -3
- package/dist/transaction/TxPot.d.ts +278 -206
- package/dist/transaction/types.d.ts +23 -20
- package/dist/transaction/types.js +13 -13
- package/dist/transaction/utils.js +43 -48
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,212 +1,284 @@
|
|
|
1
1
|
import { DataSource, Repository } from 'typeorm';
|
|
2
2
|
import { TransactionEntity } from '../db/entities/TransactionEntity';
|
|
3
3
|
import { AbstractLogger } from '@rosen-bridge/abstract-logger';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
CallbackFunction,
|
|
6
|
+
TransactionStatus,
|
|
7
|
+
TxOptions,
|
|
8
|
+
ValidatorFunction,
|
|
9
|
+
} from './types';
|
|
5
10
|
import { AbstractPotChainManager } from '../network/AbstractPotChainManager';
|
|
6
11
|
export declare class TxPot {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
12
|
+
protected static instance: TxPot;
|
|
13
|
+
protected readonly txRepository: Repository<TransactionEntity>;
|
|
14
|
+
protected chains: Map<string, AbstractPotChainManager>;
|
|
15
|
+
protected validators: Map<
|
|
16
|
+
string,
|
|
17
|
+
Map<string, Map<string, ValidatorFunction>>
|
|
18
|
+
>;
|
|
19
|
+
protected txTypeCallbacks: Map<
|
|
20
|
+
string,
|
|
21
|
+
Map<TransactionStatus, Map<string, CallbackFunction>>
|
|
22
|
+
>;
|
|
23
|
+
protected submissionAllowance: Map<string, Map<string, ValidatorFunction>>;
|
|
24
|
+
protected logger: AbstractLogger;
|
|
25
|
+
protected constructor(dataSource: DataSource, logger?: AbstractLogger);
|
|
26
|
+
/**
|
|
27
|
+
* initiates TxPot
|
|
28
|
+
* @param dataSource typeorm data source
|
|
29
|
+
* @param logger
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
static setup: (dataSource: DataSource, logger?: AbstractLogger) => TxPot;
|
|
33
|
+
/**
|
|
34
|
+
* returns TxPot instance (throws error if none exists)
|
|
35
|
+
* @returns TxPot instance
|
|
36
|
+
*/
|
|
37
|
+
static getInstance: () => TxPot;
|
|
38
|
+
/**
|
|
39
|
+
* registers a chain to TxPot
|
|
40
|
+
* @param chain
|
|
41
|
+
* @param chainManager
|
|
42
|
+
*/
|
|
43
|
+
registerChain: (chain: string, chainManager: AbstractPotChainManager) => void;
|
|
44
|
+
/**
|
|
45
|
+
* registers a validator function
|
|
46
|
+
* @param chain
|
|
47
|
+
* @param txType
|
|
48
|
+
* @param id
|
|
49
|
+
* @param validator
|
|
50
|
+
*/
|
|
51
|
+
registerValidator: (
|
|
52
|
+
chain: string,
|
|
53
|
+
txType: string,
|
|
54
|
+
id: string,
|
|
55
|
+
validator: ValidatorFunction
|
|
56
|
+
) => void;
|
|
57
|
+
/**
|
|
58
|
+
* removes a validator function
|
|
59
|
+
* @param chain
|
|
60
|
+
* @param txType
|
|
61
|
+
* @param id
|
|
62
|
+
*/
|
|
63
|
+
unregisterValidator: (chain: string, txType: string, id: string) => void;
|
|
64
|
+
/**
|
|
65
|
+
* registers a submit validator function
|
|
66
|
+
* @param chain
|
|
67
|
+
* @param id
|
|
68
|
+
* @param validator
|
|
69
|
+
*/
|
|
70
|
+
registerSubmitValidator: (
|
|
71
|
+
chain: string,
|
|
72
|
+
id: string,
|
|
73
|
+
validator: ValidatorFunction
|
|
74
|
+
) => void;
|
|
75
|
+
/**
|
|
76
|
+
* removes a submit validator function
|
|
77
|
+
* @param chain
|
|
78
|
+
* @param id
|
|
79
|
+
*/
|
|
80
|
+
unregisterSubmitValidator: (chain: string, id: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* registers a callback function
|
|
83
|
+
* the callback will be called when status of any transactions
|
|
84
|
+
* of given type changes to given status
|
|
85
|
+
* @param txType
|
|
86
|
+
* @param status
|
|
87
|
+
* @param id
|
|
88
|
+
* @param callback
|
|
89
|
+
*/
|
|
90
|
+
registerCallback: (
|
|
91
|
+
txType: string,
|
|
92
|
+
status: TransactionStatus,
|
|
93
|
+
id: string,
|
|
94
|
+
callback: CallbackFunction
|
|
95
|
+
) => void;
|
|
96
|
+
/**
|
|
97
|
+
* removes a callback function
|
|
98
|
+
* @param txType
|
|
99
|
+
* @param status
|
|
100
|
+
* @param id
|
|
101
|
+
*/
|
|
102
|
+
unregisterCallback: (
|
|
103
|
+
txType: string,
|
|
104
|
+
status: TransactionStatus,
|
|
105
|
+
id: string
|
|
106
|
+
) => void;
|
|
107
|
+
/**
|
|
108
|
+
* returns chain manager for given chain
|
|
109
|
+
* throws error if no manager is registered for it
|
|
110
|
+
* @param chain
|
|
111
|
+
*/
|
|
112
|
+
protected getChainManager: (chain: string) => AbstractPotChainManager;
|
|
113
|
+
/**
|
|
114
|
+
* sets the tx as invalid if enough blocks is passed from last check
|
|
115
|
+
* @param tx
|
|
116
|
+
*/
|
|
117
|
+
protected setTransactionAsInvalid: (tx: TransactionEntity) => Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* validates a transaction
|
|
120
|
+
* returns true if no validator functions is set or tx is valid
|
|
121
|
+
* otherwise handle the tx as invalid and returns false
|
|
122
|
+
* @param tx
|
|
123
|
+
*/
|
|
124
|
+
protected validateTx: (tx: TransactionEntity) => Promise<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* checks a transaction for submission
|
|
127
|
+
* returns true if no validator functions is set or all validators allow tx to submit
|
|
128
|
+
* otherwise returns false
|
|
129
|
+
* @param tx
|
|
130
|
+
*/
|
|
131
|
+
protected isSubmitAllowed: (tx: TransactionEntity) => Promise<boolean>;
|
|
132
|
+
/**
|
|
133
|
+
* updates the status of a tx
|
|
134
|
+
* @param txKey tx id and chain
|
|
135
|
+
* @param status new status
|
|
136
|
+
*/
|
|
137
|
+
protected setTxStatus: (
|
|
138
|
+
tx: TransactionEntity,
|
|
139
|
+
status: TransactionStatus
|
|
140
|
+
) => Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* @returns current timestamp in seconds and string format
|
|
143
|
+
*/
|
|
144
|
+
protected currentTime: () => string;
|
|
145
|
+
/**
|
|
146
|
+
* submits the signed transaction to the blockchain
|
|
147
|
+
* @param tx
|
|
148
|
+
*/
|
|
149
|
+
protected processSignedTx: (tx: TransactionEntity) => Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* processes the sent transaction
|
|
152
|
+
* @param tx
|
|
153
|
+
*/
|
|
154
|
+
protected processesSentTx: (tx: TransactionEntity) => Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* runs all jobs of TxPot
|
|
157
|
+
* - process signed txs
|
|
158
|
+
* - process sent txs
|
|
159
|
+
*/
|
|
160
|
+
update: () => Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* gets transactions by status
|
|
163
|
+
* @param status
|
|
164
|
+
* @param validate
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
getTxsByStatus: (
|
|
168
|
+
status: TransactionStatus,
|
|
169
|
+
validate?: boolean
|
|
170
|
+
) => Promise<Array<TransactionEntity>>;
|
|
171
|
+
/**
|
|
172
|
+
* inserts a new transaction into db
|
|
173
|
+
* Note: make sure to set `lastCheck` field if initialStatus is `signed` or `sent`
|
|
174
|
+
* @param txId
|
|
175
|
+
* @param chain
|
|
176
|
+
* @param txType
|
|
177
|
+
* @param requiredSign
|
|
178
|
+
* @param serializedTx
|
|
179
|
+
* @param initialStatus
|
|
180
|
+
* @param lastCheck last blockchain height that tx was valid
|
|
181
|
+
* @param extra
|
|
182
|
+
* @param extra2
|
|
183
|
+
*/
|
|
184
|
+
addTx: (
|
|
185
|
+
txId: string,
|
|
186
|
+
chain: string,
|
|
187
|
+
txType: string,
|
|
188
|
+
requiredSign: number,
|
|
189
|
+
serializedTx: string,
|
|
190
|
+
initialStatus?: TransactionStatus,
|
|
191
|
+
lastCheck?: number,
|
|
192
|
+
extra?: string | null,
|
|
193
|
+
extra2?: string | null
|
|
194
|
+
) => Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* updates the status of a tx
|
|
197
|
+
* @param txId
|
|
198
|
+
* @param chain
|
|
199
|
+
* @param status new status
|
|
200
|
+
*/
|
|
201
|
+
setTxStatusById: (
|
|
202
|
+
txId: string,
|
|
203
|
+
chain: string,
|
|
204
|
+
status: TransactionStatus
|
|
205
|
+
) => Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* updates tx info when failed in sign process
|
|
208
|
+
* @param txId
|
|
209
|
+
* @param chain
|
|
210
|
+
*/
|
|
211
|
+
setTxAsSignFailed: (txId: string, chain: string) => Promise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* updates the tx and set status as signed
|
|
214
|
+
* @param txId
|
|
215
|
+
* @param chain
|
|
216
|
+
* @param serializedTx
|
|
217
|
+
* @param currentHeight current height of the blockchain
|
|
218
|
+
* @param extra
|
|
219
|
+
* @param extra2
|
|
220
|
+
*/
|
|
221
|
+
setTxAsSigned: (
|
|
222
|
+
txId: string,
|
|
223
|
+
chain: string,
|
|
224
|
+
serializedTx: string,
|
|
225
|
+
currentHeight: number,
|
|
226
|
+
extra?: string,
|
|
227
|
+
extra2?: string
|
|
228
|
+
) => Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* updates last check value of a tx
|
|
231
|
+
* @param txId
|
|
232
|
+
* @param chain
|
|
233
|
+
* @param currentHeight current height of the blockchain
|
|
234
|
+
*/
|
|
235
|
+
updateTxLastCheck: (
|
|
236
|
+
txId: string,
|
|
237
|
+
chain: string,
|
|
238
|
+
currentHeight: number
|
|
239
|
+
) => Promise<void>;
|
|
240
|
+
/**
|
|
241
|
+
* updates failedInSign field of a transaction to false
|
|
242
|
+
* @param txId
|
|
243
|
+
* @param chain
|
|
244
|
+
*/
|
|
245
|
+
resetFailedInSign: (txId: string, chain: string) => Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* updates requiredSign field of a transaction
|
|
248
|
+
* @param txId
|
|
249
|
+
* @param chain
|
|
250
|
+
* @param requiredSign
|
|
251
|
+
*/
|
|
252
|
+
updateRequiredSign: (
|
|
253
|
+
txId: string,
|
|
254
|
+
chain: string,
|
|
255
|
+
requiredSign: number
|
|
256
|
+
) => Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* gets the transaction by its id and chain
|
|
259
|
+
* @param txId
|
|
260
|
+
* @param chain
|
|
261
|
+
*/
|
|
262
|
+
getTxByKey: (
|
|
263
|
+
txId: string,
|
|
264
|
+
chain: string
|
|
265
|
+
) => Promise<TransactionEntity | null>;
|
|
266
|
+
/**
|
|
267
|
+
* @returns the transactions with valid status
|
|
268
|
+
*/
|
|
269
|
+
getTxsQuery: (options?: Array<TxOptions>) => Promise<TransactionEntity[]>;
|
|
270
|
+
/**
|
|
271
|
+
* updates extra fields of a transaction
|
|
272
|
+
* @param txId
|
|
273
|
+
* @param chain
|
|
274
|
+
* @param extra
|
|
275
|
+
* @param extra2
|
|
276
|
+
*/
|
|
277
|
+
updateExtra: (
|
|
278
|
+
txId: string,
|
|
279
|
+
chain: string,
|
|
280
|
+
extra?: string | null,
|
|
281
|
+
extra2?: string | null
|
|
282
|
+
) => Promise<void>;
|
|
211
283
|
}
|
|
212
|
-
//# sourceMappingURL=TxPot.d.ts.map
|
|
284
|
+
//# sourceMappingURL=TxPot.d.ts.map
|
|
@@ -2,34 +2,37 @@ import { TransactionEntity } from '../db/entities/TransactionEntity';
|
|
|
2
2
|
export type ChainRequiredConfirmations = Record<string, number>;
|
|
3
3
|
export type RequiredConfirmations = Record<string, ChainRequiredConfirmations>;
|
|
4
4
|
export type ValidatorFunction = (tx: TransactionEntity) => Promise<boolean>;
|
|
5
|
-
export type CallbackFunction = (
|
|
5
|
+
export type CallbackFunction = (
|
|
6
|
+
tx: TransactionEntity,
|
|
7
|
+
newStatus: TransactionStatus
|
|
8
|
+
) => Promise<void>;
|
|
6
9
|
export declare enum TransactionStatus {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
APPROVED = 'approved',
|
|
11
|
+
IN_SIGN = 'in-sign',
|
|
12
|
+
SIGN_FAILED = 'sign-failed',
|
|
13
|
+
SIGNED = 'signed',
|
|
14
|
+
SENT = 'sent',
|
|
15
|
+
INVALID = 'invalid',
|
|
16
|
+
COMPLETED = 'completed',
|
|
14
17
|
}
|
|
15
18
|
export declare enum SigningStatus {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
Signed = 0,
|
|
20
|
+
UnSigned = 1,
|
|
18
21
|
}
|
|
19
22
|
export type FieldValue<T> = T | Array<T>;
|
|
20
23
|
export interface FieldOption<T> {
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
not: boolean;
|
|
25
|
+
value: FieldValue<T>;
|
|
23
26
|
}
|
|
24
27
|
export interface TxOptions {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
txId?: FieldValue<string>;
|
|
29
|
+
chain?: string;
|
|
30
|
+
txType?: string;
|
|
31
|
+
status?: FieldOption<TransactionStatus>;
|
|
32
|
+
failedInSign?: boolean;
|
|
33
|
+
extra?: FieldValue<string | null>;
|
|
31
34
|
}
|
|
32
35
|
export declare class UnregisteredChain extends Error {
|
|
33
|
-
|
|
36
|
+
constructor(msg: string);
|
|
34
37
|
}
|
|
35
|
-
//# sourceMappingURL=types.d.ts.map
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export var TransactionStatus;
|
|
2
2
|
(function (TransactionStatus) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
TransactionStatus['APPROVED'] = 'approved';
|
|
4
|
+
TransactionStatus['IN_SIGN'] = 'in-sign';
|
|
5
|
+
TransactionStatus['SIGN_FAILED'] = 'sign-failed';
|
|
6
|
+
TransactionStatus['SIGNED'] = 'signed';
|
|
7
|
+
TransactionStatus['SENT'] = 'sent';
|
|
8
|
+
TransactionStatus['INVALID'] = 'invalid';
|
|
9
|
+
TransactionStatus['COMPLETED'] = 'completed';
|
|
10
10
|
})(TransactionStatus || (TransactionStatus = {}));
|
|
11
11
|
export var SigningStatus;
|
|
12
12
|
(function (SigningStatus) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
SigningStatus[(SigningStatus['Signed'] = 0)] = 'Signed';
|
|
14
|
+
SigningStatus[(SigningStatus['UnSigned'] = 1)] = 'UnSigned';
|
|
15
15
|
})(SigningStatus || (SigningStatus = {}));
|
|
16
16
|
export class UnregisteredChain extends Error {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
constructor(msg) {
|
|
18
|
+
super('UnregisteredChain: ' + msg);
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvdHJhbnNhY3Rpb24vdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV0EsTUFBTSxDQUFOLElBQVksaUJBUVg7QUFSRCxXQUFZLGlCQUFpQjtJQUMzQiwwQ0FBcUIsQ0FBQTtJQUNyQix3Q0FBbUIsQ0FBQTtJQUNuQixnREFBMkIsQ0FBQTtJQUMzQixzQ0FBaUIsQ0FBQTtJQUNqQixrQ0FBYSxDQUFBO0lBQ2Isd0NBQW1CLENBQUE7SUFDbkIsNENBQXVCLENBQUE7QUFDekIsQ0FBQyxFQVJXLGlCQUFpQixLQUFqQixpQkFBaUIsUUFRNUI7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