@chainflip/processor 1.4.0 → 1.4.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.
Files changed (151) hide show
  1. package/dist/100/common.cjs +16 -26
  2. package/dist/100/common.d.cts +84 -171
  3. package/dist/100/common.d.ts +84 -171
  4. package/dist/100/common.mjs +16 -26
  5. package/dist/100/funding/failedFundingAttempt.d.cts +2 -2
  6. package/dist/100/funding/failedFundingAttempt.d.ts +2 -2
  7. package/dist/100/funding/funded.d.cts +2 -2
  8. package/dist/100/funding/funded.d.ts +2 -2
  9. package/dist/100/funding/redemptionRequested.d.cts +2 -2
  10. package/dist/100/funding/redemptionRequested.d.ts +2 -2
  11. package/dist/100/liquidityPools/limitOrderUpdated.cjs +1 -1
  12. package/dist/100/liquidityPools/limitOrderUpdated.d.cts +10 -106
  13. package/dist/100/liquidityPools/limitOrderUpdated.d.ts +10 -106
  14. package/dist/100/liquidityPools/limitOrderUpdated.mjs +2 -2
  15. package/dist/100/liquidityPools/rangeOrderUpdated.cjs +1 -1
  16. package/dist/100/liquidityPools/rangeOrderUpdated.mjs +2 -2
  17. package/dist/100/liquidityProvider/accountCredited.d.cts +2 -2
  18. package/dist/100/liquidityProvider/accountCredited.d.ts +2 -2
  19. package/dist/100/liquidityProvider/accountDebited.d.cts +2 -2
  20. package/dist/100/liquidityProvider/accountDebited.d.ts +2 -2
  21. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +2 -2
  22. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +2 -2
  23. package/dist/100/swapping/swapAmountTooLow.d.cts +5 -19
  24. package/dist/100/swapping/swapAmountTooLow.d.ts +5 -19
  25. package/dist/100/swapping/swapScheduled.d.cts +5 -19
  26. package/dist/100/swapping/swapScheduled.d.ts +5 -19
  27. package/dist/100/validator/palletConfigUpdated.d.cts +90 -218
  28. package/dist/100/validator/palletConfigUpdated.d.ts +90 -218
  29. package/dist/102/common.cjs +9 -27
  30. package/dist/102/common.d.cts +61 -167
  31. package/dist/102/common.d.ts +61 -167
  32. package/dist/102/common.mjs +9 -27
  33. package/dist/102/validator/palletConfigUpdated.d.cts +95 -237
  34. package/dist/102/validator/palletConfigUpdated.d.ts +95 -237
  35. package/dist/111/common.cjs +7 -2
  36. package/dist/111/common.d.cts +21 -2
  37. package/dist/111/common.d.ts +21 -2
  38. package/dist/111/common.mjs +7 -2
  39. package/dist/111/liquidityPools/limitOrderUpdated.cjs +1 -1
  40. package/dist/111/liquidityPools/limitOrderUpdated.d.cts +10 -106
  41. package/dist/111/liquidityPools/limitOrderUpdated.d.ts +10 -106
  42. package/dist/111/liquidityPools/limitOrderUpdated.mjs +2 -2
  43. package/dist/111/liquidityPools/rangeOrderUpdated.cjs +1 -1
  44. package/dist/111/liquidityPools/rangeOrderUpdated.mjs +2 -2
  45. package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +4 -4
  46. package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +4 -4
  47. package/dist/120/bitcoinIngressEgress/depositIgnored.cjs +1 -1
  48. package/dist/120/bitcoinIngressEgress/depositIgnored.mjs +2 -2
  49. package/dist/120/bitcoinIngressEgress/depositReceived.cjs +1 -1
  50. package/dist/120/bitcoinIngressEgress/depositReceived.d.cts +10 -38
  51. package/dist/120/bitcoinIngressEgress/depositReceived.d.ts +10 -38
  52. package/dist/120/bitcoinIngressEgress/depositReceived.mjs +2 -2
  53. package/dist/120/common.cjs +5 -35
  54. package/dist/120/common.d.cts +9 -185
  55. package/dist/120/common.d.ts +9 -185
  56. package/dist/120/common.mjs +6 -36
  57. package/dist/120/ethereumIngressEgress/depositIgnored.cjs +1 -1
  58. package/dist/120/ethereumIngressEgress/depositIgnored.mjs +2 -2
  59. package/dist/120/ethereumIngressEgress/depositReceived.cjs +1 -1
  60. package/dist/120/ethereumIngressEgress/depositReceived.d.cts +10 -38
  61. package/dist/120/ethereumIngressEgress/depositReceived.d.ts +10 -38
  62. package/dist/120/ethereumIngressEgress/depositReceived.mjs +2 -2
  63. package/dist/120/polkadotIngressEgress/depositIgnored.cjs +1 -1
  64. package/dist/120/polkadotIngressEgress/depositIgnored.mjs +2 -2
  65. package/dist/120/polkadotIngressEgress/depositReceived.cjs +1 -1
  66. package/dist/120/polkadotIngressEgress/depositReceived.d.cts +10 -38
  67. package/dist/120/polkadotIngressEgress/depositReceived.d.ts +10 -38
  68. package/dist/120/polkadotIngressEgress/depositReceived.mjs +2 -2
  69. package/dist/120/swapping/swapEgressIgnored.d.cts +2 -2
  70. package/dist/120/swapping/swapEgressIgnored.d.ts +2 -2
  71. package/dist/120/swapping/swapEgressScheduled.d.cts +2 -2
  72. package/dist/120/swapping/swapEgressScheduled.d.ts +2 -2
  73. package/dist/131/bitcoinIngressEgress/depositIgnored.cjs +1 -1
  74. package/dist/131/bitcoinIngressEgress/depositIgnored.mjs +2 -2
  75. package/dist/131/bitcoinIngressEgress/depositReceived.cjs +1 -1
  76. package/dist/131/bitcoinIngressEgress/depositReceived.d.cts +10 -38
  77. package/dist/131/bitcoinIngressEgress/depositReceived.d.ts +10 -38
  78. package/dist/131/bitcoinIngressEgress/depositReceived.mjs +2 -2
  79. package/dist/131/common.cjs +11 -21
  80. package/dist/131/common.d.cts +32 -121
  81. package/dist/131/common.d.ts +32 -121
  82. package/dist/131/common.mjs +14 -24
  83. package/dist/131/ethereumIngressEgress/depositIgnored.cjs +1 -1
  84. package/dist/131/ethereumIngressEgress/depositIgnored.mjs +2 -2
  85. package/dist/131/ethereumIngressEgress/depositReceived.cjs +1 -1
  86. package/dist/131/ethereumIngressEgress/depositReceived.d.cts +10 -38
  87. package/dist/131/ethereumIngressEgress/depositReceived.d.ts +10 -38
  88. package/dist/131/ethereumIngressEgress/depositReceived.mjs +2 -2
  89. package/dist/131/liquidityPools/limitOrderUpdated.cjs +1 -1
  90. package/dist/131/liquidityPools/limitOrderUpdated.d.cts +10 -106
  91. package/dist/131/liquidityPools/limitOrderUpdated.d.ts +10 -106
  92. package/dist/131/liquidityPools/limitOrderUpdated.mjs +2 -2
  93. package/dist/131/liquidityPools/rangeOrderUpdated.cjs +1 -1
  94. package/dist/131/liquidityPools/rangeOrderUpdated.mjs +2 -2
  95. package/dist/131/swapping/ccmFailed.d.cts +5 -19
  96. package/dist/131/swapping/ccmFailed.d.ts +5 -19
  97. package/dist/131/swapping/swapScheduled.d.cts +5 -19
  98. package/dist/131/swapping/swapScheduled.d.ts +5 -19
  99. package/dist/141/arbitrumIngressEgress/depositBoosted.cjs +1 -1
  100. package/dist/141/arbitrumIngressEgress/depositBoosted.d.cts +15 -57
  101. package/dist/141/arbitrumIngressEgress/depositBoosted.d.ts +15 -57
  102. package/dist/141/arbitrumIngressEgress/depositBoosted.mjs +2 -2
  103. package/dist/141/arbitrumIngressEgress/depositFinalised.cjs +1 -1
  104. package/dist/141/arbitrumIngressEgress/depositFinalised.d.cts +15 -57
  105. package/dist/141/arbitrumIngressEgress/depositFinalised.d.ts +15 -57
  106. package/dist/141/arbitrumIngressEgress/depositFinalised.mjs +2 -2
  107. package/dist/141/arbitrumIngressEgress/depositIgnored.cjs +1 -1
  108. package/dist/141/arbitrumIngressEgress/depositIgnored.mjs +2 -2
  109. package/dist/141/bitcoinIngressEgress/depositBoosted.cjs +1 -1
  110. package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +15 -57
  111. package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +15 -57
  112. package/dist/141/bitcoinIngressEgress/depositBoosted.mjs +2 -2
  113. package/dist/141/bitcoinIngressEgress/depositFinalised.cjs +1 -1
  114. package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +15 -57
  115. package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +15 -57
  116. package/dist/141/bitcoinIngressEgress/depositFinalised.mjs +2 -2
  117. package/dist/141/common.cjs +12 -52
  118. package/dist/141/common.d.cts +35 -320
  119. package/dist/141/common.d.ts +35 -320
  120. package/dist/141/common.mjs +15 -55
  121. package/dist/141/ethereumIngressEgress/depositBoosted.cjs +1 -1
  122. package/dist/141/ethereumIngressEgress/depositBoosted.d.cts +15 -57
  123. package/dist/141/ethereumIngressEgress/depositBoosted.d.ts +15 -57
  124. package/dist/141/ethereumIngressEgress/depositBoosted.mjs +2 -2
  125. package/dist/141/ethereumIngressEgress/depositFinalised.cjs +1 -1
  126. package/dist/141/ethereumIngressEgress/depositFinalised.d.cts +15 -57
  127. package/dist/141/ethereumIngressEgress/depositFinalised.d.ts +15 -57
  128. package/dist/141/ethereumIngressEgress/depositFinalised.mjs +2 -2
  129. package/dist/141/liquidityPools/limitOrderUpdated.cjs +1 -1
  130. package/dist/141/liquidityPools/limitOrderUpdated.d.cts +10 -106
  131. package/dist/141/liquidityPools/limitOrderUpdated.d.ts +10 -106
  132. package/dist/141/liquidityPools/limitOrderUpdated.mjs +2 -2
  133. package/dist/141/liquidityPools/rangeOrderUpdated.cjs +1 -1
  134. package/dist/141/liquidityPools/rangeOrderUpdated.mjs +2 -2
  135. package/dist/141/polkadotIngressEgress/depositBoosted.cjs +1 -1
  136. package/dist/141/polkadotIngressEgress/depositBoosted.d.cts +15 -57
  137. package/dist/141/polkadotIngressEgress/depositBoosted.d.ts +15 -57
  138. package/dist/141/polkadotIngressEgress/depositBoosted.mjs +2 -2
  139. package/dist/141/polkadotIngressEgress/depositFinalised.cjs +1 -1
  140. package/dist/141/polkadotIngressEgress/depositFinalised.d.cts +15 -57
  141. package/dist/141/polkadotIngressEgress/depositFinalised.d.ts +15 -57
  142. package/dist/141/polkadotIngressEgress/depositFinalised.mjs +2 -2
  143. package/dist/141/swapping/ccmFailed.d.cts +5 -19
  144. package/dist/141/swapping/ccmFailed.d.ts +5 -19
  145. package/dist/141/swapping/swapScheduled.d.cts +5 -19
  146. package/dist/141/swapping/swapScheduled.d.ts +5 -19
  147. package/dist/Processor.cjs +2 -2
  148. package/dist/Processor.mjs +2 -2
  149. package/dist/types.d.cts +1 -3
  150. package/dist/types.d.ts +1 -3
  151. package/package.json +1 -1
@@ -170,7 +170,7 @@ var cfChainsSwapOrigin = z.union([
170
170
  depositBlockHeight: numberOrHex
171
171
  })
172
172
  }),
173
- z.object({ __kind: z.literal("Vault"), value: z.object({ txHash: hexString }) })
173
+ z.object({ __kind: z.literal("Vault"), txHash: hexString })
174
174
  ]);
175
175
  var cfChainsBtcScriptPubkey = z.union([
176
176
  z.object({ __kind: z.literal("P2PKH"), value: hexString }),
@@ -205,16 +205,16 @@ var cfChainsCcmDepositMetadata = z.object({
205
205
  sourceAddress: cfChainsAddressForeignChainAddress.nullish(),
206
206
  channelMetadata: cfChainsCcmChannelMetadata
207
207
  });
208
- var palletCfEthereumIngressEgressPalletDepositAction = z.union([
209
- z.object({ __kind: z.literal("Swap"), value: z.object({ swapId: numberOrHex }) }),
210
- z.object({ __kind: z.literal("LiquidityProvision"), value: z.object({ lpAccount: accountId }) }),
208
+ var palletCfIngressEgressDepositAction = z.union([
209
+ z.object({ __kind: z.literal("Swap"), swapId: numberOrHex }),
210
+ z.object({ __kind: z.literal("LiquidityProvision"), lpAccount: accountId }),
211
211
  z.object({
212
212
  __kind: z.literal("CcmTransfer"),
213
213
  value: z.object({ principalSwapId: numberOrHex.nullish(), gasSwapId: numberOrHex.nullish() })
214
214
  }),
215
215
  z.object({ __kind: z.literal("NoAction") })
216
216
  ]);
217
- var palletCfEthereumIngressEgressDepositIgnoredReason = simpleEnum([
217
+ var palletCfIngressEgressDepositIgnoredReason = simpleEnum([
218
218
  "BelowMinimumDeposit",
219
219
  "NotEnoughToPayFees"
220
220
  ]);
@@ -233,19 +233,6 @@ var cfChainsAllBatchError = z.union([
233
233
  ]);
234
234
  var cfPrimitivesChainsAssetsBtcAsset = simpleEnum(["Btc"]);
235
235
  var cfChainsBtcUtxoId = z.object({ txId: hexString, vout: z.number() });
236
- var palletCfBitcoinIngressEgressPalletDepositAction = z.union([
237
- z.object({ __kind: z.literal("Swap"), value: z.object({ swapId: numberOrHex }) }),
238
- z.object({ __kind: z.literal("LiquidityProvision"), value: z.object({ lpAccount: accountId }) }),
239
- z.object({
240
- __kind: z.literal("CcmTransfer"),
241
- value: z.object({ principalSwapId: numberOrHex.nullish(), gasSwapId: numberOrHex.nullish() })
242
- }),
243
- z.object({ __kind: z.literal("NoAction") })
244
- ]);
245
- var palletCfBitcoinIngressEgressDepositIgnoredReason = simpleEnum([
246
- "BelowMinimumDeposit",
247
- "NotEnoughToPayFees"
248
- ]);
249
236
  var palletCfIngressEgressDepositWitnessBitcoin = z.object({
250
237
  depositAddress: cfChainsBtcScriptPubkey,
251
238
  asset: cfPrimitivesChainsAssetsBtcAsset,
@@ -257,11 +244,15 @@ var palletCfPoolsRangeOrderChange = z.object({
257
244
  liquidity: numberOrHex,
258
245
  amounts: cfAmmCommonPoolPairsMap
259
246
  });
260
- var palletCfPoolsPalletIncreaseOrDecrease = z.union([
247
+ var palletCfPoolsIncreaseOrDecreaseRangeOrderChange = z.union([
261
248
  z.object({ __kind: z.literal("Increase"), value: palletCfPoolsRangeOrderChange }),
262
249
  z.object({ __kind: z.literal("Decrease"), value: palletCfPoolsRangeOrderChange })
263
250
  ]);
264
251
  var cfAmmCommonSide = simpleEnum(["Buy", "Sell"]);
252
+ var palletCfPoolsIncreaseOrDecreaseU128 = z.union([
253
+ z.object({ __kind: z.literal("Increase"), value: numberOrHex }),
254
+ z.object({ __kind: z.literal("Decrease"), value: numberOrHex })
255
+ ]);
265
256
  export {
266
257
  accountId,
267
258
  cfAmmCommonPoolPairsMap,
@@ -289,18 +280,17 @@ export {
289
280
  hexString,
290
281
  numberOrHex,
291
282
  numericString,
292
- palletCfBitcoinIngressEgressDepositIgnoredReason,
293
- palletCfBitcoinIngressEgressPalletDepositAction,
294
283
  palletCfBroadcastPalletSafeMode,
295
284
  palletCfEmissionsPalletSafeMode,
296
285
  palletCfEnvironmentSafeModeUpdate,
297
- palletCfEthereumIngressEgressDepositIgnoredReason,
298
- palletCfEthereumIngressEgressPalletDepositAction,
299
286
  palletCfFundingPalletSafeMode,
287
+ palletCfIngressEgressDepositAction,
288
+ palletCfIngressEgressDepositIgnoredReason,
300
289
  palletCfIngressEgressDepositWitnessBitcoin,
301
290
  palletCfIngressEgressDepositWitnessEthereum,
302
291
  palletCfLpPalletSafeMode,
303
- palletCfPoolsPalletIncreaseOrDecrease,
292
+ palletCfPoolsIncreaseOrDecreaseRangeOrderChange,
293
+ palletCfPoolsIncreaseOrDecreaseU128,
304
294
  palletCfPoolsPalletSafeMode,
305
295
  palletCfPoolsRangeOrderChange,
306
296
  palletCfReputationPalletSafeMode,
@@ -10,7 +10,7 @@ var ethereumIngressEgressDepositIgnored = _zod.z.object({
10
10
  depositAddress: _commoncjs.hexString,
11
11
  asset: _commoncjs.cfPrimitivesChainsAssetsEthAsset,
12
12
  amount: _commoncjs.numberOrHex,
13
- reason: _commoncjs.palletCfEthereumIngressEgressDepositIgnoredReason
13
+ reason: _commoncjs.palletCfIngressEgressDepositIgnoredReason
14
14
  });
15
15
 
16
16
 
@@ -4,13 +4,13 @@ import {
4
4
  cfPrimitivesChainsAssetsEthAsset,
5
5
  hexString,
6
6
  numberOrHex,
7
- palletCfEthereumIngressEgressDepositIgnoredReason
7
+ palletCfIngressEgressDepositIgnoredReason
8
8
  } from "../common.mjs";
9
9
  var ethereumIngressEgressDepositIgnored = z.object({
10
10
  depositAddress: hexString,
11
11
  asset: cfPrimitivesChainsAssetsEthAsset,
12
12
  amount: numberOrHex,
13
- reason: palletCfEthereumIngressEgressDepositIgnoredReason
13
+ reason: palletCfIngressEgressDepositIgnoredReason
14
14
  });
15
15
  export {
16
16
  ethereumIngressEgressDepositIgnored
@@ -11,7 +11,7 @@ var ethereumIngressEgressDepositReceived = _zod.z.object({
11
11
  asset: _commoncjs.cfPrimitivesChainsAssetsEthAsset,
12
12
  amount: _commoncjs.numberOrHex,
13
13
  ingressFee: _commoncjs.numberOrHex,
14
- action: _commoncjs.palletCfEthereumIngressEgressPalletDepositAction
14
+ action: _commoncjs.palletCfIngressEgressDepositAction
15
15
  });
16
16
 
17
17
 
@@ -15,42 +15,22 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
15
15
  ingressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
16
16
  action: z.ZodUnion<[z.ZodObject<{
17
17
  __kind: z.ZodLiteral<"Swap">;
18
- value: z.ZodObject<{
19
- swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
20
- }, "strip", z.ZodTypeAny, {
21
- swapId: bigint;
22
- }, {
23
- swapId: string | number;
24
- }>;
18
+ swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
25
19
  }, "strip", z.ZodTypeAny, {
26
- value: {
27
- swapId: bigint;
28
- };
29
20
  __kind: "Swap";
21
+ swapId: bigint;
30
22
  }, {
31
- value: {
32
- swapId: string | number;
33
- };
34
23
  __kind: "Swap";
24
+ swapId: string | number;
35
25
  }>, z.ZodObject<{
36
26
  __kind: z.ZodLiteral<"LiquidityProvision">;
37
- value: z.ZodObject<{
38
- lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
39
- }, "strip", z.ZodTypeAny, {
40
- lpAccount: string;
41
- }, {
42
- lpAccount: string;
43
- }>;
27
+ lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
44
28
  }, "strip", z.ZodTypeAny, {
45
- value: {
46
- lpAccount: string;
47
- };
48
29
  __kind: "LiquidityProvision";
30
+ lpAccount: string;
49
31
  }, {
50
- value: {
51
- lpAccount: string;
52
- };
53
32
  __kind: "LiquidityProvision";
33
+ lpAccount: string;
54
34
  }>, z.ZodObject<{
55
35
  __kind: z.ZodLiteral<"CcmTransfer">;
56
36
  value: z.ZodObject<{
@@ -88,15 +68,11 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
88
68
  amount: bigint;
89
69
  ingressFee: bigint;
90
70
  action: {
91
- value: {
92
- swapId: bigint;
93
- };
94
71
  __kind: "Swap";
72
+ swapId: bigint;
95
73
  } | {
96
- value: {
97
- lpAccount: string;
98
- };
99
74
  __kind: "LiquidityProvision";
75
+ lpAccount: string;
100
76
  } | {
101
77
  value: {
102
78
  principalSwapId?: bigint | null | undefined;
@@ -114,15 +90,11 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
114
90
  amount: string | number;
115
91
  ingressFee: string | number;
116
92
  action: {
117
- value: {
118
- swapId: string | number;
119
- };
120
93
  __kind: "Swap";
94
+ swapId: string | number;
121
95
  } | {
122
- value: {
123
- lpAccount: string;
124
- };
125
96
  __kind: "LiquidityProvision";
97
+ lpAccount: string;
126
98
  } | {
127
99
  value: {
128
100
  principalSwapId?: string | number | null | undefined;
@@ -15,42 +15,22 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
15
15
  ingressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
16
16
  action: z.ZodUnion<[z.ZodObject<{
17
17
  __kind: z.ZodLiteral<"Swap">;
18
- value: z.ZodObject<{
19
- swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
20
- }, "strip", z.ZodTypeAny, {
21
- swapId: bigint;
22
- }, {
23
- swapId: string | number;
24
- }>;
18
+ swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
25
19
  }, "strip", z.ZodTypeAny, {
26
- value: {
27
- swapId: bigint;
28
- };
29
20
  __kind: "Swap";
21
+ swapId: bigint;
30
22
  }, {
31
- value: {
32
- swapId: string | number;
33
- };
34
23
  __kind: "Swap";
24
+ swapId: string | number;
35
25
  }>, z.ZodObject<{
36
26
  __kind: z.ZodLiteral<"LiquidityProvision">;
37
- value: z.ZodObject<{
38
- lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
39
- }, "strip", z.ZodTypeAny, {
40
- lpAccount: string;
41
- }, {
42
- lpAccount: string;
43
- }>;
27
+ lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
44
28
  }, "strip", z.ZodTypeAny, {
45
- value: {
46
- lpAccount: string;
47
- };
48
29
  __kind: "LiquidityProvision";
30
+ lpAccount: string;
49
31
  }, {
50
- value: {
51
- lpAccount: string;
52
- };
53
32
  __kind: "LiquidityProvision";
33
+ lpAccount: string;
54
34
  }>, z.ZodObject<{
55
35
  __kind: z.ZodLiteral<"CcmTransfer">;
56
36
  value: z.ZodObject<{
@@ -88,15 +68,11 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
88
68
  amount: bigint;
89
69
  ingressFee: bigint;
90
70
  action: {
91
- value: {
92
- swapId: bigint;
93
- };
94
71
  __kind: "Swap";
72
+ swapId: bigint;
95
73
  } | {
96
- value: {
97
- lpAccount: string;
98
- };
99
74
  __kind: "LiquidityProvision";
75
+ lpAccount: string;
100
76
  } | {
101
77
  value: {
102
78
  principalSwapId?: bigint | null | undefined;
@@ -114,15 +90,11 @@ declare const ethereumIngressEgressDepositReceived: z.ZodObject<{
114
90
  amount: string | number;
115
91
  ingressFee: string | number;
116
92
  action: {
117
- value: {
118
- swapId: string | number;
119
- };
120
93
  __kind: "Swap";
94
+ swapId: string | number;
121
95
  } | {
122
- value: {
123
- lpAccount: string;
124
- };
125
96
  __kind: "LiquidityProvision";
97
+ lpAccount: string;
126
98
  } | {
127
99
  value: {
128
100
  principalSwapId?: string | number | null | undefined;
@@ -4,14 +4,14 @@ import {
4
4
  cfPrimitivesChainsAssetsEthAsset,
5
5
  hexString,
6
6
  numberOrHex,
7
- palletCfEthereumIngressEgressPalletDepositAction
7
+ palletCfIngressEgressDepositAction
8
8
  } from "../common.mjs";
9
9
  var ethereumIngressEgressDepositReceived = z.object({
10
10
  depositAddress: hexString,
11
11
  asset: cfPrimitivesChainsAssetsEthAsset,
12
12
  amount: numberOrHex,
13
13
  ingressFee: numberOrHex,
14
- action: palletCfEthereumIngressEgressPalletDepositAction
14
+ action: palletCfIngressEgressDepositAction
15
15
  });
16
16
  export {
17
17
  ethereumIngressEgressDepositReceived
@@ -14,7 +14,7 @@ var liquidityPoolsLimitOrderUpdated = _zod.z.object({
14
14
  side: _commoncjs.cfAmmCommonSide,
15
15
  id: _commoncjs.numberOrHex,
16
16
  tick: _zod.z.number(),
17
- sellAmountChange: _commoncjs.palletCfPoolsPalletIncreaseOrDecrease.nullish(),
17
+ sellAmountChange: _commoncjs.palletCfPoolsIncreaseOrDecreaseU128.nullish(),
18
18
  sellAmountTotal: _commoncjs.numberOrHex,
19
19
  collectedFees: _commoncjs.numberOrHex,
20
20
  boughtAmount: _commoncjs.numberOrHex
@@ -33,93 +33,21 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
33
33
  tick: z.ZodNumber;
34
34
  sellAmountChange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
35
35
  __kind: z.ZodLiteral<"Increase">;
36
- value: z.ZodObject<{
37
- liquidity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
38
- amounts: z.ZodObject<{
39
- base: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
40
- quote: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
41
- }, "strip", z.ZodTypeAny, {
42
- base: bigint;
43
- quote: bigint;
44
- }, {
45
- base: string | number;
46
- quote: string | number;
47
- }>;
48
- }, "strip", z.ZodTypeAny, {
49
- liquidity: bigint;
50
- amounts: {
51
- base: bigint;
52
- quote: bigint;
53
- };
54
- }, {
55
- liquidity: string | number;
56
- amounts: {
57
- base: string | number;
58
- quote: string | number;
59
- };
60
- }>;
36
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
61
37
  }, "strip", z.ZodTypeAny, {
62
- value: {
63
- liquidity: bigint;
64
- amounts: {
65
- base: bigint;
66
- quote: bigint;
67
- };
68
- };
38
+ value: bigint;
69
39
  __kind: "Increase";
70
40
  }, {
71
- value: {
72
- liquidity: string | number;
73
- amounts: {
74
- base: string | number;
75
- quote: string | number;
76
- };
77
- };
41
+ value: string | number;
78
42
  __kind: "Increase";
79
43
  }>, z.ZodObject<{
80
44
  __kind: z.ZodLiteral<"Decrease">;
81
- value: z.ZodObject<{
82
- liquidity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
83
- amounts: z.ZodObject<{
84
- base: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
85
- quote: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
86
- }, "strip", z.ZodTypeAny, {
87
- base: bigint;
88
- quote: bigint;
89
- }, {
90
- base: string | number;
91
- quote: string | number;
92
- }>;
93
- }, "strip", z.ZodTypeAny, {
94
- liquidity: bigint;
95
- amounts: {
96
- base: bigint;
97
- quote: bigint;
98
- };
99
- }, {
100
- liquidity: string | number;
101
- amounts: {
102
- base: string | number;
103
- quote: string | number;
104
- };
105
- }>;
45
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
106
46
  }, "strip", z.ZodTypeAny, {
107
- value: {
108
- liquidity: bigint;
109
- amounts: {
110
- base: bigint;
111
- quote: bigint;
112
- };
113
- };
47
+ value: bigint;
114
48
  __kind: "Decrease";
115
49
  }, {
116
- value: {
117
- liquidity: string | number;
118
- amounts: {
119
- base: string | number;
120
- quote: string | number;
121
- };
122
- };
50
+ value: string | number;
123
51
  __kind: "Decrease";
124
52
  }>]>>>;
125
53
  sellAmountTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
@@ -136,22 +64,10 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
136
64
  sellAmountTotal: bigint;
137
65
  boughtAmount: bigint;
138
66
  sellAmountChange?: {
139
- value: {
140
- liquidity: bigint;
141
- amounts: {
142
- base: bigint;
143
- quote: bigint;
144
- };
145
- };
67
+ value: bigint;
146
68
  __kind: "Increase";
147
69
  } | {
148
- value: {
149
- liquidity: bigint;
150
- amounts: {
151
- base: bigint;
152
- quote: bigint;
153
- };
154
- };
70
+ value: bigint;
155
71
  __kind: "Decrease";
156
72
  } | null | undefined;
157
73
  }, {
@@ -171,22 +87,10 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
171
87
  sellAmountTotal: string | number;
172
88
  boughtAmount: string | number;
173
89
  sellAmountChange?: {
174
- value: {
175
- liquidity: string | number;
176
- amounts: {
177
- base: string | number;
178
- quote: string | number;
179
- };
180
- };
90
+ value: string | number;
181
91
  __kind: "Increase";
182
92
  } | {
183
- value: {
184
- liquidity: string | number;
185
- amounts: {
186
- base: string | number;
187
- quote: string | number;
188
- };
189
- };
93
+ value: string | number;
190
94
  __kind: "Decrease";
191
95
  } | null | undefined;
192
96
  }>;
@@ -33,93 +33,21 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
33
33
  tick: z.ZodNumber;
34
34
  sellAmountChange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
35
35
  __kind: z.ZodLiteral<"Increase">;
36
- value: z.ZodObject<{
37
- liquidity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
38
- amounts: z.ZodObject<{
39
- base: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
40
- quote: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
41
- }, "strip", z.ZodTypeAny, {
42
- base: bigint;
43
- quote: bigint;
44
- }, {
45
- base: string | number;
46
- quote: string | number;
47
- }>;
48
- }, "strip", z.ZodTypeAny, {
49
- liquidity: bigint;
50
- amounts: {
51
- base: bigint;
52
- quote: bigint;
53
- };
54
- }, {
55
- liquidity: string | number;
56
- amounts: {
57
- base: string | number;
58
- quote: string | number;
59
- };
60
- }>;
36
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
61
37
  }, "strip", z.ZodTypeAny, {
62
- value: {
63
- liquidity: bigint;
64
- amounts: {
65
- base: bigint;
66
- quote: bigint;
67
- };
68
- };
38
+ value: bigint;
69
39
  __kind: "Increase";
70
40
  }, {
71
- value: {
72
- liquidity: string | number;
73
- amounts: {
74
- base: string | number;
75
- quote: string | number;
76
- };
77
- };
41
+ value: string | number;
78
42
  __kind: "Increase";
79
43
  }>, z.ZodObject<{
80
44
  __kind: z.ZodLiteral<"Decrease">;
81
- value: z.ZodObject<{
82
- liquidity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
83
- amounts: z.ZodObject<{
84
- base: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
85
- quote: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
86
- }, "strip", z.ZodTypeAny, {
87
- base: bigint;
88
- quote: bigint;
89
- }, {
90
- base: string | number;
91
- quote: string | number;
92
- }>;
93
- }, "strip", z.ZodTypeAny, {
94
- liquidity: bigint;
95
- amounts: {
96
- base: bigint;
97
- quote: bigint;
98
- };
99
- }, {
100
- liquidity: string | number;
101
- amounts: {
102
- base: string | number;
103
- quote: string | number;
104
- };
105
- }>;
45
+ value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
106
46
  }, "strip", z.ZodTypeAny, {
107
- value: {
108
- liquidity: bigint;
109
- amounts: {
110
- base: bigint;
111
- quote: bigint;
112
- };
113
- };
47
+ value: bigint;
114
48
  __kind: "Decrease";
115
49
  }, {
116
- value: {
117
- liquidity: string | number;
118
- amounts: {
119
- base: string | number;
120
- quote: string | number;
121
- };
122
- };
50
+ value: string | number;
123
51
  __kind: "Decrease";
124
52
  }>]>>>;
125
53
  sellAmountTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
@@ -136,22 +64,10 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
136
64
  sellAmountTotal: bigint;
137
65
  boughtAmount: bigint;
138
66
  sellAmountChange?: {
139
- value: {
140
- liquidity: bigint;
141
- amounts: {
142
- base: bigint;
143
- quote: bigint;
144
- };
145
- };
67
+ value: bigint;
146
68
  __kind: "Increase";
147
69
  } | {
148
- value: {
149
- liquidity: bigint;
150
- amounts: {
151
- base: bigint;
152
- quote: bigint;
153
- };
154
- };
70
+ value: bigint;
155
71
  __kind: "Decrease";
156
72
  } | null | undefined;
157
73
  }, {
@@ -171,22 +87,10 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
171
87
  sellAmountTotal: string | number;
172
88
  boughtAmount: string | number;
173
89
  sellAmountChange?: {
174
- value: {
175
- liquidity: string | number;
176
- amounts: {
177
- base: string | number;
178
- quote: string | number;
179
- };
180
- };
90
+ value: string | number;
181
91
  __kind: "Increase";
182
92
  } | {
183
- value: {
184
- liquidity: string | number;
185
- amounts: {
186
- base: string | number;
187
- quote: string | number;
188
- };
189
- };
93
+ value: string | number;
190
94
  __kind: "Decrease";
191
95
  } | null | undefined;
192
96
  }>;
@@ -5,7 +5,7 @@ import {
5
5
  cfAmmCommonSide,
6
6
  cfPrimitivesChainsAssetsAnyAsset,
7
7
  numberOrHex,
8
- palletCfPoolsPalletIncreaseOrDecrease
8
+ palletCfPoolsIncreaseOrDecreaseU128
9
9
  } from "../common.mjs";
10
10
  var liquidityPoolsLimitOrderUpdated = z.object({
11
11
  lp: accountId,
@@ -14,7 +14,7 @@ var liquidityPoolsLimitOrderUpdated = z.object({
14
14
  side: cfAmmCommonSide,
15
15
  id: numberOrHex,
16
16
  tick: z.number(),
17
- sellAmountChange: palletCfPoolsPalletIncreaseOrDecrease.nullish(),
17
+ sellAmountChange: palletCfPoolsIncreaseOrDecreaseU128.nullish(),
18
18
  sellAmountTotal: numberOrHex,
19
19
  collectedFees: numberOrHex,
20
20
  boughtAmount: numberOrHex
@@ -13,7 +13,7 @@ var liquidityPoolsRangeOrderUpdated = _zod.z.object({
13
13
  quoteAsset: _commoncjs.cfPrimitivesChainsAssetsAnyAsset,
14
14
  id: _commoncjs.numberOrHex,
15
15
  tickRange: _zod.z.object({ start: _zod.z.number(), end: _zod.z.number() }),
16
- sizeChange: _commoncjs.palletCfPoolsPalletIncreaseOrDecrease.nullish(),
16
+ sizeChange: _commoncjs.palletCfPoolsIncreaseOrDecreaseRangeOrderChange.nullish(),
17
17
  liquidityTotal: _commoncjs.numberOrHex,
18
18
  collectedFees: _commoncjs.cfAmmCommonPoolPairsMap
19
19
  });
@@ -5,7 +5,7 @@ import {
5
5
  cfAmmCommonPoolPairsMap,
6
6
  cfPrimitivesChainsAssetsAnyAsset,
7
7
  numberOrHex,
8
- palletCfPoolsPalletIncreaseOrDecrease
8
+ palletCfPoolsIncreaseOrDecreaseRangeOrderChange
9
9
  } from "../common.mjs";
10
10
  var liquidityPoolsRangeOrderUpdated = z.object({
11
11
  lp: accountId,
@@ -13,7 +13,7 @@ var liquidityPoolsRangeOrderUpdated = z.object({
13
13
  quoteAsset: cfPrimitivesChainsAssetsAnyAsset,
14
14
  id: numberOrHex,
15
15
  tickRange: z.object({ start: z.number(), end: z.number() }),
16
- sizeChange: palletCfPoolsPalletIncreaseOrDecrease.nullish(),
16
+ sizeChange: palletCfPoolsIncreaseOrDecreaseRangeOrderChange.nullish(),
17
17
  liquidityTotal: numberOrHex,
18
18
  collectedFees: cfAmmCommonPoolPairsMap
19
19
  });