@chainflip/processor 1.4.0 → 1.4.1

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.
@@ -5,12 +5,12 @@ declare const fundingFailedFundingAttempt: z.ZodObject<{
5
5
  withdrawalAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
6
6
  amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- accountId: string;
9
8
  amount: bigint;
9
+ accountId: string;
10
10
  withdrawalAddress: `0x${string}`;
11
11
  }, {
12
- accountId: string;
13
12
  amount: string | number;
13
+ accountId: string;
14
14
  withdrawalAddress: string;
15
15
  }>;
16
16
 
@@ -5,12 +5,12 @@ declare const fundingFailedFundingAttempt: z.ZodObject<{
5
5
  withdrawalAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
6
6
  amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- accountId: string;
9
8
  amount: bigint;
9
+ accountId: string;
10
10
  withdrawalAddress: `0x${string}`;
11
11
  }, {
12
- accountId: string;
13
12
  amount: string | number;
13
+ accountId: string;
14
14
  withdrawalAddress: string;
15
15
  }>;
16
16
 
@@ -6,13 +6,13 @@ declare const fundingFunded: z.ZodObject<{
6
6
  fundsAdded: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
7
7
  totalBalance: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- accountId: string;
10
9
  txHash: `0x${string}`;
10
+ accountId: string;
11
11
  fundsAdded: bigint;
12
12
  totalBalance: bigint;
13
13
  }, {
14
- accountId: string;
15
14
  txHash: string;
15
+ accountId: string;
16
16
  fundsAdded: string | number;
17
17
  totalBalance: string | number;
18
18
  }>;
@@ -6,13 +6,13 @@ declare const fundingFunded: z.ZodObject<{
6
6
  fundsAdded: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
7
7
  totalBalance: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- accountId: string;
10
9
  txHash: `0x${string}`;
10
+ accountId: string;
11
11
  fundsAdded: bigint;
12
12
  totalBalance: bigint;
13
13
  }, {
14
- accountId: string;
15
14
  txHash: string;
15
+ accountId: string;
16
16
  fundsAdded: string | number;
17
17
  totalBalance: string | number;
18
18
  }>;
@@ -6,14 +6,14 @@ declare const fundingRedemptionRequested: z.ZodObject<{
6
6
  broadcastId: z.ZodNumber;
7
7
  expiryTime: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- accountId: string;
10
9
  broadcastId: number;
11
10
  amount: bigint;
11
+ accountId: string;
12
12
  expiryTime: bigint;
13
13
  }, {
14
- accountId: string;
15
14
  broadcastId: number;
16
15
  amount: string | number;
16
+ accountId: string;
17
17
  expiryTime: string | number;
18
18
  }>;
19
19
 
@@ -6,14 +6,14 @@ declare const fundingRedemptionRequested: z.ZodObject<{
6
6
  broadcastId: z.ZodNumber;
7
7
  expiryTime: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- accountId: string;
10
9
  broadcastId: number;
11
10
  amount: bigint;
11
+ accountId: string;
12
12
  expiryTime: bigint;
13
13
  }, {
14
- accountId: string;
15
14
  broadcastId: number;
16
15
  amount: string | number;
16
+ accountId: string;
17
17
  expiryTime: string | number;
18
18
  }>;
19
19
 
@@ -13,14 +13,14 @@ declare const liquidityProviderAccountCredited: z.ZodObject<{
13
13
  }>;
14
14
  amountCredited: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- accountId: string;
17
16
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
17
+ accountId: string;
18
18
  amountCredited: bigint;
19
19
  }, {
20
- accountId: string;
21
20
  asset: {
22
21
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
22
  };
23
+ accountId: string;
24
24
  amountCredited: string | number;
25
25
  }>;
26
26
 
@@ -13,14 +13,14 @@ declare const liquidityProviderAccountCredited: z.ZodObject<{
13
13
  }>;
14
14
  amountCredited: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- accountId: string;
17
16
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
17
+ accountId: string;
18
18
  amountCredited: bigint;
19
19
  }, {
20
- accountId: string;
21
20
  asset: {
22
21
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
22
  };
23
+ accountId: string;
24
24
  amountCredited: string | number;
25
25
  }>;
26
26
 
@@ -13,14 +13,14 @@ declare const liquidityProviderAccountDebited: z.ZodObject<{
13
13
  }>;
14
14
  amountDebited: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- accountId: string;
17
16
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
17
+ accountId: string;
18
18
  amountDebited: bigint;
19
19
  }, {
20
- accountId: string;
21
20
  asset: {
22
21
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
22
  };
23
+ accountId: string;
24
24
  amountDebited: string | number;
25
25
  }>;
26
26
 
@@ -13,14 +13,14 @@ declare const liquidityProviderAccountDebited: z.ZodObject<{
13
13
  }>;
14
14
  amountDebited: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- accountId: string;
17
16
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
17
+ accountId: string;
18
18
  amountDebited: bigint;
19
19
  }, {
20
- accountId: string;
21
20
  asset: {
22
21
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
22
  };
23
+ accountId: string;
24
24
  amountDebited: string | number;
25
25
  }>;
26
26
 
@@ -42,7 +42,6 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
42
42
  accountId: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
43
43
  depositChainExpiryBlock: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- accountId: string;
46
45
  depositAddress: {
47
46
  value: `0x${string}`;
48
47
  __kind: "Eth";
@@ -55,9 +54,9 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
55
54
  };
56
55
  channelId: bigint;
57
56
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
57
+ accountId: string;
58
58
  depositChainExpiryBlock: bigint;
59
59
  }, {
60
- accountId: string;
61
60
  depositAddress: {
62
61
  value: string;
63
62
  __kind: "Eth";
@@ -72,6 +71,7 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
72
71
  asset: {
73
72
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
74
73
  };
74
+ accountId: string;
75
75
  depositChainExpiryBlock: string | number;
76
76
  }>;
77
77
 
@@ -42,7 +42,6 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
42
42
  accountId: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
43
43
  depositChainExpiryBlock: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- accountId: string;
46
45
  depositAddress: {
47
46
  value: `0x${string}`;
48
47
  __kind: "Eth";
@@ -55,9 +54,9 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
55
54
  };
56
55
  channelId: bigint;
57
56
  asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
57
+ accountId: string;
58
58
  depositChainExpiryBlock: bigint;
59
59
  }, {
60
- accountId: string;
61
60
  depositAddress: {
62
61
  value: string;
63
62
  __kind: "Eth";
@@ -72,6 +71,7 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
72
71
  asset: {
73
72
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
74
73
  };
74
+ accountId: string;
75
75
  depositChainExpiryBlock: string | number;
76
76
  }>;
77
77
 
@@ -11,15 +11,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
11
11
  percentage: number;
12
12
  }>;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ __kind: "RegistrationBondPercentage";
14
15
  value: {
15
16
  percentage: number;
16
17
  };
17
- __kind: "RegistrationBondPercentage";
18
18
  }, {
19
+ __kind: "RegistrationBondPercentage";
19
20
  value: {
20
21
  percentage: number;
21
22
  };
22
- __kind: "RegistrationBondPercentage";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"AuctionBidCutoffPercentage">;
25
25
  value: z.ZodObject<{
@@ -30,15 +30,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
30
30
  percentage: number;
31
31
  }>;
32
32
  }, "strip", z.ZodTypeAny, {
33
+ __kind: "AuctionBidCutoffPercentage";
33
34
  value: {
34
35
  percentage: number;
35
36
  };
36
- __kind: "AuctionBidCutoffPercentage";
37
37
  }, {
38
+ __kind: "AuctionBidCutoffPercentage";
38
39
  value: {
39
40
  percentage: number;
40
41
  };
41
- __kind: "AuctionBidCutoffPercentage";
42
42
  }>, z.ZodObject<{
43
43
  __kind: z.ZodLiteral<"RedemptionPeriodAsPercentage">;
44
44
  value: z.ZodObject<{
@@ -49,15 +49,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
49
49
  percentage: number;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
+ __kind: "RedemptionPeriodAsPercentage";
52
53
  value: {
53
54
  percentage: number;
54
55
  };
55
- __kind: "RedemptionPeriodAsPercentage";
56
56
  }, {
57
+ __kind: "RedemptionPeriodAsPercentage";
57
58
  value: {
58
59
  percentage: number;
59
60
  };
60
- __kind: "RedemptionPeriodAsPercentage";
61
61
  }>, z.ZodObject<{
62
62
  __kind: z.ZodLiteral<"BackupRewardNodePercentage">;
63
63
  value: z.ZodObject<{
@@ -68,15 +68,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
68
68
  percentage: number;
69
69
  }>;
70
70
  }, "strip", z.ZodTypeAny, {
71
+ __kind: "BackupRewardNodePercentage";
71
72
  value: {
72
73
  percentage: number;
73
74
  };
74
- __kind: "BackupRewardNodePercentage";
75
75
  }, {
76
+ __kind: "BackupRewardNodePercentage";
76
77
  value: {
77
78
  percentage: number;
78
79
  };
79
- __kind: "BackupRewardNodePercentage";
80
80
  }>, z.ZodObject<{
81
81
  __kind: z.ZodLiteral<"EpochDuration">;
82
82
  value: z.ZodObject<{
@@ -87,15 +87,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
87
87
  blocks: number;
88
88
  }>;
89
89
  }, "strip", z.ZodTypeAny, {
90
+ __kind: "EpochDuration";
90
91
  value: {
91
92
  blocks: number;
92
93
  };
93
- __kind: "EpochDuration";
94
94
  }, {
95
+ __kind: "EpochDuration";
95
96
  value: {
96
97
  blocks: number;
97
98
  };
98
- __kind: "EpochDuration";
99
99
  }>, z.ZodObject<{
100
100
  __kind: z.ZodLiteral<"AuthoritySetMinSize">;
101
101
  value: z.ZodObject<{
@@ -106,15 +106,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
106
106
  minSize: number;
107
107
  }>;
108
108
  }, "strip", z.ZodTypeAny, {
109
+ __kind: "AuthoritySetMinSize";
109
110
  value: {
110
111
  minSize: number;
111
112
  };
112
- __kind: "AuthoritySetMinSize";
113
113
  }, {
114
+ __kind: "AuthoritySetMinSize";
114
115
  value: {
115
116
  minSize: number;
116
117
  };
117
- __kind: "AuthoritySetMinSize";
118
118
  }>, z.ZodObject<{
119
119
  __kind: z.ZodLiteral<"AuctionParameters">;
120
120
  value: z.ZodObject<{
@@ -145,6 +145,7 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
145
145
  };
146
146
  }>;
147
147
  }, "strip", z.ZodTypeAny, {
148
+ __kind: "AuctionParameters";
148
149
  value: {
149
150
  parameters: {
150
151
  minSize: number;
@@ -152,8 +153,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
152
153
  maxExpansion: number;
153
154
  };
154
155
  };
155
- __kind: "AuctionParameters";
156
156
  }, {
157
+ __kind: "AuctionParameters";
157
158
  value: {
158
159
  parameters: {
159
160
  minSize: number;
@@ -161,7 +162,6 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
161
162
  maxExpansion: number;
162
163
  };
163
164
  };
164
- __kind: "AuctionParameters";
165
165
  }>, z.ZodObject<{
166
166
  __kind: z.ZodLiteral<"MinimumReportedCfeVersion">;
167
167
  value: z.ZodObject<{
@@ -192,6 +192,7 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
192
192
  };
193
193
  }>;
194
194
  }, "strip", z.ZodTypeAny, {
195
+ __kind: "MinimumReportedCfeVersion";
195
196
  value: {
196
197
  version: {
197
198
  major: number;
@@ -199,8 +200,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
199
200
  patch: number;
200
201
  };
201
202
  };
202
- __kind: "MinimumReportedCfeVersion";
203
203
  }, {
204
+ __kind: "MinimumReportedCfeVersion";
204
205
  value: {
205
206
  version: {
206
207
  major: number;
@@ -208,7 +209,6 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
208
209
  patch: number;
209
210
  };
210
211
  };
211
- __kind: "MinimumReportedCfeVersion";
212
212
  }>, z.ZodObject<{
213
213
  __kind: z.ZodLiteral<"MaxAuthoritySetContractionPercentage">;
214
214
  value: z.ZodObject<{
@@ -219,48 +219,49 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
219
219
  percentage: number;
220
220
  }>;
221
221
  }, "strip", z.ZodTypeAny, {
222
+ __kind: "MaxAuthoritySetContractionPercentage";
222
223
  value: {
223
224
  percentage: number;
224
225
  };
225
- __kind: "MaxAuthoritySetContractionPercentage";
226
226
  }, {
227
+ __kind: "MaxAuthoritySetContractionPercentage";
227
228
  value: {
228
229
  percentage: number;
229
230
  };
230
- __kind: "MaxAuthoritySetContractionPercentage";
231
231
  }>]>;
232
232
  }, "strip", z.ZodTypeAny, {
233
233
  update: {
234
+ __kind: "RegistrationBondPercentage";
234
235
  value: {
235
236
  percentage: number;
236
237
  };
237
- __kind: "RegistrationBondPercentage";
238
238
  } | {
239
+ __kind: "AuctionBidCutoffPercentage";
239
240
  value: {
240
241
  percentage: number;
241
242
  };
242
- __kind: "AuctionBidCutoffPercentage";
243
243
  } | {
244
+ __kind: "RedemptionPeriodAsPercentage";
244
245
  value: {
245
246
  percentage: number;
246
247
  };
247
- __kind: "RedemptionPeriodAsPercentage";
248
248
  } | {
249
+ __kind: "BackupRewardNodePercentage";
249
250
  value: {
250
251
  percentage: number;
251
252
  };
252
- __kind: "BackupRewardNodePercentage";
253
253
  } | {
254
+ __kind: "EpochDuration";
254
255
  value: {
255
256
  blocks: number;
256
257
  };
257
- __kind: "EpochDuration";
258
258
  } | {
259
+ __kind: "AuthoritySetMinSize";
259
260
  value: {
260
261
  minSize: number;
261
262
  };
262
- __kind: "AuthoritySetMinSize";
263
263
  } | {
264
+ __kind: "AuctionParameters";
264
265
  value: {
265
266
  parameters: {
266
267
  minSize: number;
@@ -268,8 +269,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
268
269
  maxExpansion: number;
269
270
  };
270
271
  };
271
- __kind: "AuctionParameters";
272
272
  } | {
273
+ __kind: "MinimumReportedCfeVersion";
273
274
  value: {
274
275
  version: {
275
276
  major: number;
@@ -277,45 +278,45 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
277
278
  patch: number;
278
279
  };
279
280
  };
280
- __kind: "MinimumReportedCfeVersion";
281
281
  } | {
282
+ __kind: "MaxAuthoritySetContractionPercentage";
282
283
  value: {
283
284
  percentage: number;
284
285
  };
285
- __kind: "MaxAuthoritySetContractionPercentage";
286
286
  };
287
287
  }, {
288
288
  update: {
289
+ __kind: "RegistrationBondPercentage";
289
290
  value: {
290
291
  percentage: number;
291
292
  };
292
- __kind: "RegistrationBondPercentage";
293
293
  } | {
294
+ __kind: "AuctionBidCutoffPercentage";
294
295
  value: {
295
296
  percentage: number;
296
297
  };
297
- __kind: "AuctionBidCutoffPercentage";
298
298
  } | {
299
+ __kind: "RedemptionPeriodAsPercentage";
299
300
  value: {
300
301
  percentage: number;
301
302
  };
302
- __kind: "RedemptionPeriodAsPercentage";
303
303
  } | {
304
+ __kind: "BackupRewardNodePercentage";
304
305
  value: {
305
306
  percentage: number;
306
307
  };
307
- __kind: "BackupRewardNodePercentage";
308
308
  } | {
309
+ __kind: "EpochDuration";
309
310
  value: {
310
311
  blocks: number;
311
312
  };
312
- __kind: "EpochDuration";
313
313
  } | {
314
+ __kind: "AuthoritySetMinSize";
314
315
  value: {
315
316
  minSize: number;
316
317
  };
317
- __kind: "AuthoritySetMinSize";
318
318
  } | {
319
+ __kind: "AuctionParameters";
319
320
  value: {
320
321
  parameters: {
321
322
  minSize: number;
@@ -323,8 +324,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
323
324
  maxExpansion: number;
324
325
  };
325
326
  };
326
- __kind: "AuctionParameters";
327
327
  } | {
328
+ __kind: "MinimumReportedCfeVersion";
328
329
  value: {
329
330
  version: {
330
331
  major: number;
@@ -332,12 +333,11 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
332
333
  patch: number;
333
334
  };
334
335
  };
335
- __kind: "MinimumReportedCfeVersion";
336
336
  } | {
337
+ __kind: "MaxAuthoritySetContractionPercentage";
337
338
  value: {
338
339
  percentage: number;
339
340
  };
340
- __kind: "MaxAuthoritySetContractionPercentage";
341
341
  };
342
342
  }>;
343
343
 
@@ -11,15 +11,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
11
11
  percentage: number;
12
12
  }>;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ __kind: "RegistrationBondPercentage";
14
15
  value: {
15
16
  percentage: number;
16
17
  };
17
- __kind: "RegistrationBondPercentage";
18
18
  }, {
19
+ __kind: "RegistrationBondPercentage";
19
20
  value: {
20
21
  percentage: number;
21
22
  };
22
- __kind: "RegistrationBondPercentage";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"AuctionBidCutoffPercentage">;
25
25
  value: z.ZodObject<{
@@ -30,15 +30,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
30
30
  percentage: number;
31
31
  }>;
32
32
  }, "strip", z.ZodTypeAny, {
33
+ __kind: "AuctionBidCutoffPercentage";
33
34
  value: {
34
35
  percentage: number;
35
36
  };
36
- __kind: "AuctionBidCutoffPercentage";
37
37
  }, {
38
+ __kind: "AuctionBidCutoffPercentage";
38
39
  value: {
39
40
  percentage: number;
40
41
  };
41
- __kind: "AuctionBidCutoffPercentage";
42
42
  }>, z.ZodObject<{
43
43
  __kind: z.ZodLiteral<"RedemptionPeriodAsPercentage">;
44
44
  value: z.ZodObject<{
@@ -49,15 +49,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
49
49
  percentage: number;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
+ __kind: "RedemptionPeriodAsPercentage";
52
53
  value: {
53
54
  percentage: number;
54
55
  };
55
- __kind: "RedemptionPeriodAsPercentage";
56
56
  }, {
57
+ __kind: "RedemptionPeriodAsPercentage";
57
58
  value: {
58
59
  percentage: number;
59
60
  };
60
- __kind: "RedemptionPeriodAsPercentage";
61
61
  }>, z.ZodObject<{
62
62
  __kind: z.ZodLiteral<"BackupRewardNodePercentage">;
63
63
  value: z.ZodObject<{
@@ -68,15 +68,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
68
68
  percentage: number;
69
69
  }>;
70
70
  }, "strip", z.ZodTypeAny, {
71
+ __kind: "BackupRewardNodePercentage";
71
72
  value: {
72
73
  percentage: number;
73
74
  };
74
- __kind: "BackupRewardNodePercentage";
75
75
  }, {
76
+ __kind: "BackupRewardNodePercentage";
76
77
  value: {
77
78
  percentage: number;
78
79
  };
79
- __kind: "BackupRewardNodePercentage";
80
80
  }>, z.ZodObject<{
81
81
  __kind: z.ZodLiteral<"EpochDuration">;
82
82
  value: z.ZodObject<{
@@ -87,15 +87,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
87
87
  blocks: number;
88
88
  }>;
89
89
  }, "strip", z.ZodTypeAny, {
90
+ __kind: "EpochDuration";
90
91
  value: {
91
92
  blocks: number;
92
93
  };
93
- __kind: "EpochDuration";
94
94
  }, {
95
+ __kind: "EpochDuration";
95
96
  value: {
96
97
  blocks: number;
97
98
  };
98
- __kind: "EpochDuration";
99
99
  }>, z.ZodObject<{
100
100
  __kind: z.ZodLiteral<"AuthoritySetMinSize">;
101
101
  value: z.ZodObject<{
@@ -106,15 +106,15 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
106
106
  minSize: number;
107
107
  }>;
108
108
  }, "strip", z.ZodTypeAny, {
109
+ __kind: "AuthoritySetMinSize";
109
110
  value: {
110
111
  minSize: number;
111
112
  };
112
- __kind: "AuthoritySetMinSize";
113
113
  }, {
114
+ __kind: "AuthoritySetMinSize";
114
115
  value: {
115
116
  minSize: number;
116
117
  };
117
- __kind: "AuthoritySetMinSize";
118
118
  }>, z.ZodObject<{
119
119
  __kind: z.ZodLiteral<"AuctionParameters">;
120
120
  value: z.ZodObject<{
@@ -145,6 +145,7 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
145
145
  };
146
146
  }>;
147
147
  }, "strip", z.ZodTypeAny, {
148
+ __kind: "AuctionParameters";
148
149
  value: {
149
150
  parameters: {
150
151
  minSize: number;
@@ -152,8 +153,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
152
153
  maxExpansion: number;
153
154
  };
154
155
  };
155
- __kind: "AuctionParameters";
156
156
  }, {
157
+ __kind: "AuctionParameters";
157
158
  value: {
158
159
  parameters: {
159
160
  minSize: number;
@@ -161,7 +162,6 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
161
162
  maxExpansion: number;
162
163
  };
163
164
  };
164
- __kind: "AuctionParameters";
165
165
  }>, z.ZodObject<{
166
166
  __kind: z.ZodLiteral<"MinimumReportedCfeVersion">;
167
167
  value: z.ZodObject<{
@@ -192,6 +192,7 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
192
192
  };
193
193
  }>;
194
194
  }, "strip", z.ZodTypeAny, {
195
+ __kind: "MinimumReportedCfeVersion";
195
196
  value: {
196
197
  version: {
197
198
  major: number;
@@ -199,8 +200,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
199
200
  patch: number;
200
201
  };
201
202
  };
202
- __kind: "MinimumReportedCfeVersion";
203
203
  }, {
204
+ __kind: "MinimumReportedCfeVersion";
204
205
  value: {
205
206
  version: {
206
207
  major: number;
@@ -208,7 +209,6 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
208
209
  patch: number;
209
210
  };
210
211
  };
211
- __kind: "MinimumReportedCfeVersion";
212
212
  }>, z.ZodObject<{
213
213
  __kind: z.ZodLiteral<"MaxAuthoritySetContractionPercentage">;
214
214
  value: z.ZodObject<{
@@ -219,48 +219,49 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
219
219
  percentage: number;
220
220
  }>;
221
221
  }, "strip", z.ZodTypeAny, {
222
+ __kind: "MaxAuthoritySetContractionPercentage";
222
223
  value: {
223
224
  percentage: number;
224
225
  };
225
- __kind: "MaxAuthoritySetContractionPercentage";
226
226
  }, {
227
+ __kind: "MaxAuthoritySetContractionPercentage";
227
228
  value: {
228
229
  percentage: number;
229
230
  };
230
- __kind: "MaxAuthoritySetContractionPercentage";
231
231
  }>]>;
232
232
  }, "strip", z.ZodTypeAny, {
233
233
  update: {
234
+ __kind: "RegistrationBondPercentage";
234
235
  value: {
235
236
  percentage: number;
236
237
  };
237
- __kind: "RegistrationBondPercentage";
238
238
  } | {
239
+ __kind: "AuctionBidCutoffPercentage";
239
240
  value: {
240
241
  percentage: number;
241
242
  };
242
- __kind: "AuctionBidCutoffPercentage";
243
243
  } | {
244
+ __kind: "RedemptionPeriodAsPercentage";
244
245
  value: {
245
246
  percentage: number;
246
247
  };
247
- __kind: "RedemptionPeriodAsPercentage";
248
248
  } | {
249
+ __kind: "BackupRewardNodePercentage";
249
250
  value: {
250
251
  percentage: number;
251
252
  };
252
- __kind: "BackupRewardNodePercentage";
253
253
  } | {
254
+ __kind: "EpochDuration";
254
255
  value: {
255
256
  blocks: number;
256
257
  };
257
- __kind: "EpochDuration";
258
258
  } | {
259
+ __kind: "AuthoritySetMinSize";
259
260
  value: {
260
261
  minSize: number;
261
262
  };
262
- __kind: "AuthoritySetMinSize";
263
263
  } | {
264
+ __kind: "AuctionParameters";
264
265
  value: {
265
266
  parameters: {
266
267
  minSize: number;
@@ -268,8 +269,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
268
269
  maxExpansion: number;
269
270
  };
270
271
  };
271
- __kind: "AuctionParameters";
272
272
  } | {
273
+ __kind: "MinimumReportedCfeVersion";
273
274
  value: {
274
275
  version: {
275
276
  major: number;
@@ -277,45 +278,45 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
277
278
  patch: number;
278
279
  };
279
280
  };
280
- __kind: "MinimumReportedCfeVersion";
281
281
  } | {
282
+ __kind: "MaxAuthoritySetContractionPercentage";
282
283
  value: {
283
284
  percentage: number;
284
285
  };
285
- __kind: "MaxAuthoritySetContractionPercentage";
286
286
  };
287
287
  }, {
288
288
  update: {
289
+ __kind: "RegistrationBondPercentage";
289
290
  value: {
290
291
  percentage: number;
291
292
  };
292
- __kind: "RegistrationBondPercentage";
293
293
  } | {
294
+ __kind: "AuctionBidCutoffPercentage";
294
295
  value: {
295
296
  percentage: number;
296
297
  };
297
- __kind: "AuctionBidCutoffPercentage";
298
298
  } | {
299
+ __kind: "RedemptionPeriodAsPercentage";
299
300
  value: {
300
301
  percentage: number;
301
302
  };
302
- __kind: "RedemptionPeriodAsPercentage";
303
303
  } | {
304
+ __kind: "BackupRewardNodePercentage";
304
305
  value: {
305
306
  percentage: number;
306
307
  };
307
- __kind: "BackupRewardNodePercentage";
308
308
  } | {
309
+ __kind: "EpochDuration";
309
310
  value: {
310
311
  blocks: number;
311
312
  };
312
- __kind: "EpochDuration";
313
313
  } | {
314
+ __kind: "AuthoritySetMinSize";
314
315
  value: {
315
316
  minSize: number;
316
317
  };
317
- __kind: "AuthoritySetMinSize";
318
318
  } | {
319
+ __kind: "AuctionParameters";
319
320
  value: {
320
321
  parameters: {
321
322
  minSize: number;
@@ -323,8 +324,8 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
323
324
  maxExpansion: number;
324
325
  };
325
326
  };
326
- __kind: "AuctionParameters";
327
327
  } | {
328
+ __kind: "MinimumReportedCfeVersion";
328
329
  value: {
329
330
  version: {
330
331
  major: number;
@@ -332,12 +333,11 @@ declare const validatorPalletConfigUpdated: z.ZodObject<{
332
333
  patch: number;
333
334
  };
334
335
  };
335
- __kind: "MinimumReportedCfeVersion";
336
336
  } | {
337
+ __kind: "MaxAuthoritySetContractionPercentage";
337
338
  value: {
338
339
  percentage: number;
339
340
  };
340
- __kind: "MaxAuthoritySetContractionPercentage";
341
341
  };
342
342
  }>;
343
343
 
@@ -146,8 +146,6 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
146
146
  __kind: "RootNotAllowed";
147
147
  }>]>;
148
148
  }, "strip", z.ZodTypeAny, {
149
- lp: string;
150
- orderId: bigint;
151
149
  error: {
152
150
  __kind: "Other";
153
151
  } | {
@@ -184,9 +182,9 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
184
182
  } | {
185
183
  __kind: "RootNotAllowed";
186
184
  };
187
- }, {
188
185
  lp: string;
189
- orderId: string | number;
186
+ orderId: bigint;
187
+ }, {
190
188
  error: {
191
189
  __kind: "Other";
192
190
  } | {
@@ -229,6 +227,8 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
229
227
  } | {
230
228
  __kind: "RootNotAllowed";
231
229
  };
230
+ lp: string;
231
+ orderId: string | number;
232
232
  }>;
233
233
 
234
234
  export { liquidityPoolsScheduledLimitOrderUpdateDispatchFailure };
@@ -146,8 +146,6 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
146
146
  __kind: "RootNotAllowed";
147
147
  }>]>;
148
148
  }, "strip", z.ZodTypeAny, {
149
- lp: string;
150
- orderId: bigint;
151
149
  error: {
152
150
  __kind: "Other";
153
151
  } | {
@@ -184,9 +182,9 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
184
182
  } | {
185
183
  __kind: "RootNotAllowed";
186
184
  };
187
- }, {
188
185
  lp: string;
189
- orderId: string | number;
186
+ orderId: bigint;
187
+ }, {
190
188
  error: {
191
189
  __kind: "Other";
192
190
  } | {
@@ -229,6 +227,8 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
229
227
  } | {
230
228
  __kind: "RootNotAllowed";
231
229
  };
230
+ lp: string;
231
+ orderId: string | number;
232
232
  }>;
233
233
 
234
234
  export { liquidityPoolsScheduledLimitOrderUpdateDispatchFailure };
@@ -13,18 +13,18 @@ declare const bitcoinBroadcasterTransactionBroadcastRequest: z.ZodObject<{
13
13
  transactionOutId: z.ZodEffects<z.ZodString, `0x${string}`, string>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  broadcastId: number;
16
- transactionOutId: `0x${string}`;
17
16
  nominee: string;
18
17
  transactionPayload: {
19
18
  encodedTransaction: `0x${string}`;
20
19
  };
20
+ transactionOutId: `0x${string}`;
21
21
  }, {
22
22
  broadcastId: number;
23
- transactionOutId: string;
24
23
  nominee: string;
25
24
  transactionPayload: {
26
25
  encodedTransaction: string;
27
26
  };
27
+ transactionOutId: string;
28
28
  }>;
29
29
 
30
30
  export { bitcoinBroadcasterTransactionBroadcastRequest };
@@ -13,18 +13,18 @@ declare const bitcoinBroadcasterTransactionBroadcastRequest: z.ZodObject<{
13
13
  transactionOutId: z.ZodEffects<z.ZodString, `0x${string}`, string>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  broadcastId: number;
16
- transactionOutId: `0x${string}`;
17
16
  nominee: string;
18
17
  transactionPayload: {
19
18
  encodedTransaction: `0x${string}`;
20
19
  };
20
+ transactionOutId: `0x${string}`;
21
21
  }, {
22
22
  broadcastId: number;
23
- transactionOutId: string;
24
23
  nominee: string;
25
24
  transactionPayload: {
26
25
  encodedTransaction: string;
27
26
  };
27
+ transactionOutId: string;
28
28
  }>;
29
29
 
30
30
  export { bitcoinBroadcasterTransactionBroadcastRequest };
@@ -14,16 +14,16 @@ declare const ethereumIngressEgressTransferFallbackRequested: z.ZodObject<{
14
14
  destinationAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15
15
  broadcastId: z.ZodNumber;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ broadcastId: number;
17
18
  asset: "Eth" | "Flip" | "Usdc" | "Usdt";
18
19
  amount: bigint;
19
- broadcastId: number;
20
20
  destinationAddress: `0x${string}`;
21
21
  }, {
22
+ broadcastId: number;
22
23
  asset: {
23
24
  __kind: "Eth" | "Flip" | "Usdc" | "Usdt";
24
25
  };
25
26
  amount: string | number;
26
- broadcastId: number;
27
27
  destinationAddress: string;
28
28
  }>;
29
29
 
@@ -14,16 +14,16 @@ declare const ethereumIngressEgressTransferFallbackRequested: z.ZodObject<{
14
14
  destinationAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
15
15
  broadcastId: z.ZodNumber;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ broadcastId: number;
17
18
  asset: "Eth" | "Flip" | "Usdc" | "Usdt";
18
19
  amount: bigint;
19
- broadcastId: number;
20
20
  destinationAddress: `0x${string}`;
21
21
  }, {
22
+ broadcastId: number;
22
23
  asset: {
23
24
  __kind: "Eth" | "Flip" | "Usdc" | "Usdt";
24
25
  };
25
26
  amount: string | number;
26
- broadcastId: number;
27
27
  destinationAddress: string;
28
28
  }>;
29
29
 
@@ -167,8 +167,8 @@ var Processor = (_class = class {
167
167
  });
168
168
  }
169
169
  async updateState(store, block) {
170
- const result = await store.updateStates(this.name, block.height);
171
- _assert2.default.call(void 0, result.count === 1, "failed to update state, maybe another process is running");
170
+ const updated = await store.updateState(this.name, block.height);
171
+ _assert2.default.call(void 0, updated, "failed to update state, maybe another process is running");
172
172
  }
173
173
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
174
174
  shouldProcessBlock(_block) {
@@ -167,8 +167,8 @@ var Processor = class {
167
167
  });
168
168
  }
169
169
  async updateState(store, block) {
170
- const result = await store.updateStates(this.name, block.height);
171
- assert(result.count === 1, "failed to update state, maybe another process is running");
170
+ const updated = await store.updateState(this.name, block.height);
171
+ assert(updated, "failed to update state, maybe another process is running");
172
172
  }
173
173
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
174
174
  shouldProcessBlock(_block) {
package/dist/types.d.cts CHANGED
@@ -70,9 +70,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
70
70
  initializeState(processorName: string, startHeight: number, endHeight?: number): Promise<State>;
71
71
  getEventInfo(blockId: number, indexInBlock: number): Promise<Ev>;
72
72
  getExtrinsicInfo(blockHeight: number, indexInBlock: number): Promise<Ex>;
73
- updateStates(processorName: string, height: number): Promise<{
74
- count: number;
75
- }>;
73
+ updateState(processorName: string, height: number): Promise<boolean>;
76
74
  getCurrentState(processorName: string): Promise<State>;
77
75
  }
78
76
  interface IndexerStore {
package/dist/types.d.ts CHANGED
@@ -70,9 +70,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
70
70
  initializeState(processorName: string, startHeight: number, endHeight?: number): Promise<State>;
71
71
  getEventInfo(blockId: number, indexInBlock: number): Promise<Ev>;
72
72
  getExtrinsicInfo(blockHeight: number, indexInBlock: number): Promise<Ex>;
73
- updateStates(processorName: string, height: number): Promise<{
74
- count: number;
75
- }>;
73
+ updateState(processorName: string, height: number): Promise<boolean>;
76
74
  getCurrentState(processorName: string): Promise<State>;
77
75
  }
78
76
  interface IndexerStore {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/processor",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],