@chainflip/processor 1.5.0 → 1.5.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 (255) hide show
  1. package/dist/100/common.cjs +15 -6
  2. package/dist/100/common.d.cts +25 -25
  3. package/dist/100/common.d.ts +25 -25
  4. package/dist/100/common.mjs +14 -5
  5. package/dist/100/liquidityProvider/accountCredited.d.cts +6 -6
  6. package/dist/100/liquidityProvider/accountCredited.d.ts +6 -6
  7. package/dist/100/liquidityProvider/accountDebited.d.cts +6 -6
  8. package/dist/100/liquidityProvider/accountDebited.d.ts +6 -6
  9. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +23 -23
  10. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +23 -23
  11. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +21 -21
  12. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +21 -21
  13. package/dist/100/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
  14. package/dist/100/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
  15. package/dist/100/polkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
  16. package/dist/100/polkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
  17. package/dist/100/polkadotIngressEgress/depositIgnored.d.cts +2 -2
  18. package/dist/100/polkadotIngressEgress/depositIgnored.d.ts +2 -2
  19. package/dist/100/polkadotIngressEgress/depositReceived.d.cts +2 -2
  20. package/dist/100/polkadotIngressEgress/depositReceived.d.ts +2 -2
  21. package/dist/100/polkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
  22. package/dist/100/polkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
  23. package/dist/100/swapping/batchSwapFailed.d.cts +2 -2
  24. package/dist/100/swapping/batchSwapFailed.d.ts +2 -2
  25. package/dist/100/swapping/ccmDepositReceived.d.cts +19 -19
  26. package/dist/100/swapping/ccmDepositReceived.d.ts +19 -19
  27. package/dist/100/swapping/ccmFailed.d.cts +15 -15
  28. package/dist/100/swapping/ccmFailed.d.ts +15 -15
  29. package/dist/100/swapping/swapAmountTooLow.d.cts +35 -35
  30. package/dist/100/swapping/swapAmountTooLow.d.ts +35 -35
  31. package/dist/100/swapping/swapDepositAddressReady.d.cts +36 -36
  32. package/dist/100/swapping/swapDepositAddressReady.d.ts +36 -36
  33. package/dist/100/swapping/swapScheduled.d.cts +37 -37
  34. package/dist/100/swapping/swapScheduled.d.ts +37 -37
  35. package/dist/100/swapping/withdrawalRequested.d.cts +15 -15
  36. package/dist/100/swapping/withdrawalRequested.d.ts +15 -15
  37. package/dist/100/witnesser/witnessExecutionFailed.d.cts +2 -2
  38. package/dist/100/witnesser/witnessExecutionFailed.d.ts +2 -2
  39. package/dist/102/common.cjs +3 -3
  40. package/dist/102/common.mjs +2 -2
  41. package/dist/111/common.cjs +3 -3
  42. package/dist/111/common.mjs +2 -2
  43. package/dist/120/common.cjs +15 -6
  44. package/dist/120/common.d.cts +10 -10
  45. package/dist/120/common.d.ts +10 -10
  46. package/dist/120/common.mjs +14 -5
  47. package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
  48. package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
  49. package/dist/120/swapping/ccmFailed.d.cts +79 -79
  50. package/dist/120/swapping/ccmFailed.d.ts +79 -79
  51. package/dist/120/swapping/swapEgressIgnored.d.cts +24 -24
  52. package/dist/120/swapping/swapEgressIgnored.d.ts +24 -24
  53. package/dist/120/swapping/swapEgressScheduled.d.cts +6 -6
  54. package/dist/120/swapping/swapEgressScheduled.d.ts +6 -6
  55. package/dist/120/swapping/swapExecuted.d.cts +12 -12
  56. package/dist/120/swapping/swapExecuted.d.ts +12 -12
  57. package/dist/120/swapping/withdrawalRequested.d.cts +23 -23
  58. package/dist/120/swapping/withdrawalRequested.d.ts +23 -23
  59. package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
  60. package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
  61. package/dist/131/common.cjs +15 -6
  62. package/dist/131/common.d.cts +25 -25
  63. package/dist/131/common.d.ts +25 -25
  64. package/dist/131/common.mjs +14 -5
  65. package/dist/131/environment/runtimeSafeModeUpdated.d.cts +40 -40
  66. package/dist/131/environment/runtimeSafeModeUpdated.d.ts +40 -40
  67. package/dist/131/liquidityPools/limitOrderUpdated.d.cts +8 -8
  68. package/dist/131/liquidityPools/limitOrderUpdated.d.ts +8 -8
  69. package/dist/131/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  70. package/dist/131/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  71. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.cts +15 -15
  72. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.ts +15 -15
  73. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
  74. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
  75. package/dist/131/swapping/batchSwapFailed.d.cts +8 -8
  76. package/dist/131/swapping/batchSwapFailed.d.ts +8 -8
  77. package/dist/131/swapping/ccmFailed.d.cts +35 -35
  78. package/dist/131/swapping/ccmFailed.d.ts +35 -35
  79. package/dist/131/swapping/maximumSwapAmountSet.d.cts +6 -6
  80. package/dist/131/swapping/maximumSwapAmountSet.d.ts +6 -6
  81. package/dist/131/swapping/swapAmountConfiscated.d.cts +12 -12
  82. package/dist/131/swapping/swapAmountConfiscated.d.ts +12 -12
  83. package/dist/131/swapping/swapDepositAddressReady.d.cts +48 -48
  84. package/dist/131/swapping/swapDepositAddressReady.d.ts +48 -48
  85. package/dist/131/swapping/swapEgressIgnored.d.cts +12 -12
  86. package/dist/131/swapping/swapEgressIgnored.d.ts +12 -12
  87. package/dist/131/swapping/swapEgressScheduled.d.cts +8 -8
  88. package/dist/131/swapping/swapEgressScheduled.d.ts +8 -8
  89. package/dist/131/swapping/swapExecuted.d.cts +12 -12
  90. package/dist/131/swapping/swapExecuted.d.ts +12 -12
  91. package/dist/131/swapping/swapScheduled.d.cts +49 -49
  92. package/dist/131/swapping/swapScheduled.d.ts +49 -49
  93. package/dist/131/swapping/withdrawalRequested.d.cts +21 -21
  94. package/dist/131/swapping/withdrawalRequested.d.ts +21 -21
  95. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.cts +2 -2
  96. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.ts +2 -2
  97. package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +4 -4
  98. package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +4 -4
  99. package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
  100. package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
  101. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  102. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  103. package/dist/141/common.cjs +19 -7
  104. package/dist/141/common.d.cts +30 -30
  105. package/dist/141/common.d.ts +30 -30
  106. package/dist/141/common.mjs +18 -6
  107. package/dist/141/ethereumIngressEgress/boostFundsAdded.d.cts +4 -4
  108. package/dist/141/ethereumIngressEgress/boostFundsAdded.d.ts +4 -4
  109. package/dist/141/ethereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  110. package/dist/141/ethereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  111. package/dist/141/ethereumIngressEgress/depositBoosted.d.cts +4 -4
  112. package/dist/141/ethereumIngressEgress/depositBoosted.d.ts +4 -4
  113. package/dist/141/ethereumIngressEgress/depositFinalised.d.cts +4 -4
  114. package/dist/141/ethereumIngressEgress/depositFinalised.d.ts +4 -4
  115. package/dist/141/ethereumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  116. package/dist/141/ethereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  117. package/dist/141/ethereumIngressEgress/stoppedBoosting.d.cts +2 -2
  118. package/dist/141/ethereumIngressEgress/stoppedBoosting.d.ts +2 -2
  119. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.cts +18 -18
  120. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +18 -18
  121. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.cts +18 -18
  122. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.ts +18 -18
  123. package/dist/141/swapping/ccmDepositReceived.d.cts +18 -18
  124. package/dist/141/swapping/ccmDepositReceived.d.ts +18 -18
  125. package/dist/141/swapping/ccmFailed.d.cts +42 -42
  126. package/dist/141/swapping/ccmFailed.d.ts +42 -42
  127. package/dist/141/swapping/swapDepositAddressReady.d.cts +36 -36
  128. package/dist/141/swapping/swapDepositAddressReady.d.ts +36 -36
  129. package/dist/141/swapping/swapScheduled.d.cts +42 -42
  130. package/dist/141/swapping/swapScheduled.d.ts +42 -42
  131. package/dist/141/swapping/withdrawalRequested.d.cts +18 -18
  132. package/dist/141/swapping/withdrawalRequested.d.ts +18 -18
  133. package/dist/150/assetBalances/refundScheduled.d.cts +52 -52
  134. package/dist/150/assetBalances/refundScheduled.d.ts +52 -52
  135. package/dist/150/assetBalances/refundSkipped.d.cts +70 -70
  136. package/dist/150/assetBalances/refundSkipped.d.ts +70 -70
  137. package/dist/150/common.cjs +40 -23
  138. package/dist/150/common.d.cts +205 -338
  139. package/dist/150/common.d.ts +205 -338
  140. package/dist/150/common.mjs +39 -22
  141. package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  142. package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  143. package/dist/150/ethereumIngressEgress/depositBoosted.d.cts +4 -4
  144. package/dist/150/ethereumIngressEgress/depositBoosted.d.ts +4 -4
  145. package/dist/150/ethereumIngressEgress/depositFinalised.d.cts +2 -2
  146. package/dist/150/ethereumIngressEgress/depositFinalised.d.ts +2 -2
  147. package/dist/150/ethereumIngressEgress/depositWitnessRejected.d.cts +16 -16
  148. package/dist/150/ethereumIngressEgress/depositWitnessRejected.d.ts +16 -16
  149. package/dist/150/liquidityPools/limitOrderUpdated.d.cts +8 -8
  150. package/dist/150/liquidityPools/limitOrderUpdated.d.ts +8 -8
  151. package/dist/150/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  152. package/dist/150/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  153. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.cts +24 -24
  154. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.ts +24 -24
  155. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
  156. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
  157. package/dist/150/polkadotIngressEgress/ccmBroadcastRequested.d.cts +2 -2
  158. package/dist/150/polkadotIngressEgress/ccmBroadcastRequested.d.ts +2 -2
  159. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
  160. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
  161. package/dist/150/solanaThresholdSigner/failureReportProcessed.d.cts +2 -2
  162. package/dist/150/solanaThresholdSigner/failureReportProcessed.d.ts +2 -2
  163. package/dist/150/solanaThresholdSigner/retryRequested.d.cts +2 -2
  164. package/dist/150/solanaThresholdSigner/retryRequested.d.ts +2 -2
  165. package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
  166. package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
  167. package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
  168. package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
  169. package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
  170. package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
  171. package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
  172. package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
  173. package/dist/150/swapping/ccmDepositReceived.d.cts +24 -24
  174. package/dist/150/swapping/ccmDepositReceived.d.ts +24 -24
  175. package/dist/150/swapping/ccmFailed.d.cts +56 -56
  176. package/dist/150/swapping/ccmFailed.d.ts +56 -56
  177. package/dist/150/swapping/swapDepositAddressReady.cjs +1 -1
  178. package/dist/150/swapping/swapDepositAddressReady.d.cts +83 -254
  179. package/dist/150/swapping/swapDepositAddressReady.d.ts +83 -254
  180. package/dist/150/swapping/swapDepositAddressReady.mjs +2 -2
  181. package/dist/150/swapping/swapScheduled.d.cts +56 -56
  182. package/dist/150/swapping/swapScheduled.d.ts +56 -56
  183. package/dist/150/swapping/withdrawalRequested.d.cts +24 -24
  184. package/dist/150/swapping/withdrawalRequested.d.ts +24 -24
  185. package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.cts +61 -61
  186. package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.ts +61 -61
  187. package/dist/160/arbitrumIngressEgress/depositBoosted.d.cts +10 -10
  188. package/dist/160/arbitrumIngressEgress/depositBoosted.d.ts +10 -10
  189. package/dist/160/arbitrumIngressEgress/depositFinalised.d.cts +4 -4
  190. package/dist/160/arbitrumIngressEgress/depositFinalised.d.ts +4 -4
  191. package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.cts +14 -14
  192. package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.ts +14 -14
  193. package/dist/160/bitcoinIngressEgress/depositBoosted.d.cts +10 -10
  194. package/dist/160/bitcoinIngressEgress/depositBoosted.d.ts +10 -10
  195. package/dist/160/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
  196. package/dist/160/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
  197. package/dist/160/common.cjs +25 -8
  198. package/dist/160/common.d.cts +88 -88
  199. package/dist/160/common.d.ts +88 -88
  200. package/dist/160/common.mjs +24 -7
  201. package/dist/160/ethereumIngressEgress/ccmEgressInvalid.d.cts +61 -61
  202. package/dist/160/ethereumIngressEgress/ccmEgressInvalid.d.ts +61 -61
  203. package/dist/160/ethereumIngressEgress/depositBoosted.d.cts +10 -10
  204. package/dist/160/ethereumIngressEgress/depositBoosted.d.ts +10 -10
  205. package/dist/160/ethereumIngressEgress/depositFinalised.d.cts +4 -4
  206. package/dist/160/ethereumIngressEgress/depositFinalised.d.ts +4 -4
  207. package/dist/160/liquidityPools/limitOrderUpdated.d.cts +2 -2
  208. package/dist/160/liquidityPools/limitOrderUpdated.d.ts +2 -2
  209. package/dist/160/liquidityPools/rangeOrderUpdated.d.cts +2 -2
  210. package/dist/160/liquidityPools/rangeOrderUpdated.d.ts +2 -2
  211. package/dist/160/liquidityProvider/accountCredited.d.cts +2 -2
  212. package/dist/160/liquidityProvider/accountCredited.d.ts +2 -2
  213. package/dist/160/liquidityProvider/accountDebited.d.cts +2 -2
  214. package/dist/160/liquidityProvider/accountDebited.d.ts +2 -2
  215. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.cts +28 -28
  216. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +28 -28
  217. package/dist/160/liquidityProvider/liquidityDepositCredited.d.cts +2 -2
  218. package/dist/160/liquidityProvider/liquidityDepositCredited.d.ts +2 -2
  219. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
  220. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
  221. package/dist/160/polkadotIngressEgress/ccmEgressInvalid.d.cts +61 -61
  222. package/dist/160/polkadotIngressEgress/ccmEgressInvalid.d.ts +61 -61
  223. package/dist/160/polkadotIngressEgress/depositBoosted.d.cts +8 -8
  224. package/dist/160/polkadotIngressEgress/depositBoosted.d.ts +8 -8
  225. package/dist/160/polkadotIngressEgress/depositFinalised.d.cts +6 -6
  226. package/dist/160/polkadotIngressEgress/depositFinalised.d.ts +6 -6
  227. package/dist/160/solanaBroadcaster/transactionBroadcastRequest.d.cts +2 -2
  228. package/dist/160/solanaBroadcaster/transactionBroadcastRequest.d.ts +2 -2
  229. package/dist/160/swapping/batchSwapFailed.d.cts +8 -8
  230. package/dist/160/swapping/batchSwapFailed.d.ts +8 -8
  231. package/dist/160/swapping/ccmFailed.d.cts +56 -56
  232. package/dist/160/swapping/ccmFailed.d.ts +56 -56
  233. package/dist/160/swapping/maximumSwapAmountSet.d.cts +6 -6
  234. package/dist/160/swapping/maximumSwapAmountSet.d.ts +6 -6
  235. package/dist/160/swapping/refundEgressIgnored.d.cts +12 -12
  236. package/dist/160/swapping/refundEgressIgnored.d.ts +12 -12
  237. package/dist/160/swapping/refundEgressScheduled.d.cts +8 -8
  238. package/dist/160/swapping/refundEgressScheduled.d.ts +8 -8
  239. package/dist/160/swapping/swapAmountConfiscated.d.cts +7 -7
  240. package/dist/160/swapping/swapAmountConfiscated.d.ts +7 -7
  241. package/dist/160/swapping/swapDepositAddressReady.d.cts +66 -66
  242. package/dist/160/swapping/swapDepositAddressReady.d.ts +66 -66
  243. package/dist/160/swapping/swapEgressIgnored.d.cts +12 -12
  244. package/dist/160/swapping/swapEgressIgnored.d.ts +12 -12
  245. package/dist/160/swapping/swapEgressScheduled.d.cts +8 -8
  246. package/dist/160/swapping/swapEgressScheduled.d.ts +8 -8
  247. package/dist/160/swapping/swapExecuted.d.cts +12 -12
  248. package/dist/160/swapping/swapExecuted.d.ts +12 -12
  249. package/dist/160/swapping/swapRequested.d.cts +110 -110
  250. package/dist/160/swapping/swapRequested.d.ts +110 -110
  251. package/dist/160/swapping/withdrawalRequested.d.cts +30 -30
  252. package/dist/160/swapping/withdrawalRequested.d.ts +30 -30
  253. package/dist/Processor.cjs +7 -1
  254. package/dist/Processor.mjs +7 -1
  255. package/package.json +1 -1
@@ -22,29 +22,29 @@ declare const swappingSwapScheduled: z.ZodObject<{
22
22
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
23
  }>;
24
24
  destinationAddress: z.ZodUnion<[z.ZodObject<{
25
- __kind: z.ZodLiteral<"Eth">;
25
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- __kind: "Eth";
28
+ __kind: "Ethereum";
29
29
  value: `0x${string}`;
30
30
  }, {
31
31
  __kind: "Eth";
32
32
  value: string;
33
33
  }>, z.ZodObject<{
34
- __kind: z.ZodLiteral<"Dot">;
35
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
34
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
35
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- __kind: "Dot";
38
- value: `0x${string}`;
37
+ __kind: "Polkadot";
38
+ value: string;
39
39
  }, {
40
40
  __kind: "Dot";
41
41
  value: string;
42
42
  }>, z.ZodObject<{
43
- __kind: z.ZodLiteral<"Btc">;
44
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
43
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
44
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- __kind: "Btc";
47
- value: `0x${string}`;
46
+ __kind: "Bitcoin";
47
+ value: string;
48
48
  }, {
49
49
  __kind: "Btc";
50
50
  value: string;
@@ -52,29 +52,29 @@ declare const swappingSwapScheduled: z.ZodObject<{
52
52
  origin: z.ZodUnion<[z.ZodObject<{
53
53
  __kind: z.ZodLiteral<"DepositChannel">;
54
54
  depositAddress: z.ZodUnion<[z.ZodObject<{
55
- __kind: z.ZodLiteral<"Eth">;
55
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
56
56
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- __kind: "Eth";
58
+ __kind: "Ethereum";
59
59
  value: `0x${string}`;
60
60
  }, {
61
61
  __kind: "Eth";
62
62
  value: string;
63
63
  }>, z.ZodObject<{
64
- __kind: z.ZodLiteral<"Dot">;
65
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
64
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
65
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
66
66
  }, "strip", z.ZodTypeAny, {
67
- __kind: "Dot";
68
- value: `0x${string}`;
67
+ __kind: "Polkadot";
68
+ value: string;
69
69
  }, {
70
70
  __kind: "Dot";
71
71
  value: string;
72
72
  }>, z.ZodObject<{
73
- __kind: z.ZodLiteral<"Btc">;
74
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
73
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
74
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- __kind: "Btc";
77
- value: `0x${string}`;
76
+ __kind: "Bitcoin";
77
+ value: string;
78
78
  }, {
79
79
  __kind: "Btc";
80
80
  value: string;
@@ -84,14 +84,14 @@ declare const swappingSwapScheduled: z.ZodObject<{
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  __kind: "DepositChannel";
86
86
  depositAddress: {
87
- __kind: "Eth";
87
+ __kind: "Ethereum";
88
88
  value: `0x${string}`;
89
89
  } | {
90
- __kind: "Dot";
91
- value: `0x${string}`;
90
+ __kind: "Polkadot";
91
+ value: string;
92
92
  } | {
93
- __kind: "Btc";
94
- value: `0x${string}`;
93
+ __kind: "Bitcoin";
94
+ value: string;
95
95
  };
96
96
  channelId: bigint;
97
97
  depositBlockHeight: bigint;
@@ -327,28 +327,27 @@ declare const swappingSwapScheduled: z.ZodObject<{
327
327
  }>]>;
328
328
  brokerCommission: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>>>;
329
329
  }, "strip", z.ZodTypeAny, {
330
- depositAmount: bigint;
331
330
  destinationAddress: {
332
- __kind: "Eth";
331
+ __kind: "Ethereum";
333
332
  value: `0x${string}`;
334
333
  } | {
335
- __kind: "Dot";
336
- value: `0x${string}`;
334
+ __kind: "Polkadot";
335
+ value: string;
337
336
  } | {
338
- __kind: "Btc";
339
- value: `0x${string}`;
337
+ __kind: "Bitcoin";
338
+ value: string;
340
339
  };
341
340
  origin: {
342
341
  __kind: "DepositChannel";
343
342
  depositAddress: {
344
- __kind: "Eth";
343
+ __kind: "Ethereum";
345
344
  value: `0x${string}`;
346
345
  } | {
347
- __kind: "Dot";
348
- value: `0x${string}`;
346
+ __kind: "Polkadot";
347
+ value: string;
349
348
  } | {
350
- __kind: "Btc";
351
- value: `0x${string}`;
349
+ __kind: "Bitcoin";
350
+ value: string;
352
351
  };
353
352
  channelId: bigint;
354
353
  depositBlockHeight: bigint;
@@ -356,6 +355,7 @@ declare const swappingSwapScheduled: z.ZodObject<{
356
355
  __kind: "Vault";
357
356
  txHash: `0x${string}`;
358
357
  };
358
+ depositAmount: bigint;
359
359
  sourceAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
360
360
  destinationAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
361
361
  swapId: bigint;
@@ -399,7 +399,6 @@ declare const swappingSwapScheduled: z.ZodObject<{
399
399
  };
400
400
  brokerCommission?: bigint | null | undefined;
401
401
  }, {
402
- depositAmount: string | number;
403
402
  destinationAddress: {
404
403
  __kind: "Eth";
405
404
  value: string;
@@ -428,6 +427,7 @@ declare const swappingSwapScheduled: z.ZodObject<{
428
427
  __kind: "Vault";
429
428
  txHash: string;
430
429
  };
430
+ depositAmount: string | number;
431
431
  sourceAsset: {
432
432
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
433
433
  };
@@ -22,29 +22,29 @@ declare const swappingSwapScheduled: z.ZodObject<{
22
22
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
23
23
  }>;
24
24
  destinationAddress: z.ZodUnion<[z.ZodObject<{
25
- __kind: z.ZodLiteral<"Eth">;
25
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- __kind: "Eth";
28
+ __kind: "Ethereum";
29
29
  value: `0x${string}`;
30
30
  }, {
31
31
  __kind: "Eth";
32
32
  value: string;
33
33
  }>, z.ZodObject<{
34
- __kind: z.ZodLiteral<"Dot">;
35
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
34
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
35
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- __kind: "Dot";
38
- value: `0x${string}`;
37
+ __kind: "Polkadot";
38
+ value: string;
39
39
  }, {
40
40
  __kind: "Dot";
41
41
  value: string;
42
42
  }>, z.ZodObject<{
43
- __kind: z.ZodLiteral<"Btc">;
44
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
43
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
44
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- __kind: "Btc";
47
- value: `0x${string}`;
46
+ __kind: "Bitcoin";
47
+ value: string;
48
48
  }, {
49
49
  __kind: "Btc";
50
50
  value: string;
@@ -52,29 +52,29 @@ declare const swappingSwapScheduled: z.ZodObject<{
52
52
  origin: z.ZodUnion<[z.ZodObject<{
53
53
  __kind: z.ZodLiteral<"DepositChannel">;
54
54
  depositAddress: z.ZodUnion<[z.ZodObject<{
55
- __kind: z.ZodLiteral<"Eth">;
55
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
56
56
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- __kind: "Eth";
58
+ __kind: "Ethereum";
59
59
  value: `0x${string}`;
60
60
  }, {
61
61
  __kind: "Eth";
62
62
  value: string;
63
63
  }>, z.ZodObject<{
64
- __kind: z.ZodLiteral<"Dot">;
65
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
64
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
65
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
66
66
  }, "strip", z.ZodTypeAny, {
67
- __kind: "Dot";
68
- value: `0x${string}`;
67
+ __kind: "Polkadot";
68
+ value: string;
69
69
  }, {
70
70
  __kind: "Dot";
71
71
  value: string;
72
72
  }>, z.ZodObject<{
73
- __kind: z.ZodLiteral<"Btc">;
74
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
73
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
74
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- __kind: "Btc";
77
- value: `0x${string}`;
76
+ __kind: "Bitcoin";
77
+ value: string;
78
78
  }, {
79
79
  __kind: "Btc";
80
80
  value: string;
@@ -84,14 +84,14 @@ declare const swappingSwapScheduled: z.ZodObject<{
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  __kind: "DepositChannel";
86
86
  depositAddress: {
87
- __kind: "Eth";
87
+ __kind: "Ethereum";
88
88
  value: `0x${string}`;
89
89
  } | {
90
- __kind: "Dot";
91
- value: `0x${string}`;
90
+ __kind: "Polkadot";
91
+ value: string;
92
92
  } | {
93
- __kind: "Btc";
94
- value: `0x${string}`;
93
+ __kind: "Bitcoin";
94
+ value: string;
95
95
  };
96
96
  channelId: bigint;
97
97
  depositBlockHeight: bigint;
@@ -327,28 +327,27 @@ declare const swappingSwapScheduled: z.ZodObject<{
327
327
  }>]>;
328
328
  brokerCommission: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>>>;
329
329
  }, "strip", z.ZodTypeAny, {
330
- depositAmount: bigint;
331
330
  destinationAddress: {
332
- __kind: "Eth";
331
+ __kind: "Ethereum";
333
332
  value: `0x${string}`;
334
333
  } | {
335
- __kind: "Dot";
336
- value: `0x${string}`;
334
+ __kind: "Polkadot";
335
+ value: string;
337
336
  } | {
338
- __kind: "Btc";
339
- value: `0x${string}`;
337
+ __kind: "Bitcoin";
338
+ value: string;
340
339
  };
341
340
  origin: {
342
341
  __kind: "DepositChannel";
343
342
  depositAddress: {
344
- __kind: "Eth";
343
+ __kind: "Ethereum";
345
344
  value: `0x${string}`;
346
345
  } | {
347
- __kind: "Dot";
348
- value: `0x${string}`;
346
+ __kind: "Polkadot";
347
+ value: string;
349
348
  } | {
350
- __kind: "Btc";
351
- value: `0x${string}`;
349
+ __kind: "Bitcoin";
350
+ value: string;
352
351
  };
353
352
  channelId: bigint;
354
353
  depositBlockHeight: bigint;
@@ -356,6 +355,7 @@ declare const swappingSwapScheduled: z.ZodObject<{
356
355
  __kind: "Vault";
357
356
  txHash: `0x${string}`;
358
357
  };
358
+ depositAmount: bigint;
359
359
  sourceAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
360
360
  destinationAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
361
361
  swapId: bigint;
@@ -399,7 +399,6 @@ declare const swappingSwapScheduled: z.ZodObject<{
399
399
  };
400
400
  brokerCommission?: bigint | null | undefined;
401
401
  }, {
402
- depositAmount: string | number;
403
402
  destinationAddress: {
404
403
  __kind: "Eth";
405
404
  value: string;
@@ -428,6 +427,7 @@ declare const swappingSwapScheduled: z.ZodObject<{
428
427
  __kind: "Vault";
429
428
  txHash: string;
430
429
  };
430
+ depositAmount: string | number;
431
431
  sourceAsset: {
432
432
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
433
433
  };
@@ -12,43 +12,43 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
12
12
  }>, z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>], null>;
13
13
  egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
14
14
  destinationAddress: z.ZodUnion<[z.ZodObject<{
15
- __kind: z.ZodLiteral<"Eth">;
15
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
16
16
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- __kind: "Eth";
18
+ __kind: "Ethereum";
19
19
  value: `0x${string}`;
20
20
  }, {
21
21
  __kind: "Eth";
22
22
  value: string;
23
23
  }>, z.ZodObject<{
24
- __kind: z.ZodLiteral<"Dot">;
25
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
24
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
25
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "Dot";
28
- value: `0x${string}`;
27
+ __kind: "Polkadot";
28
+ value: string;
29
29
  }, {
30
30
  __kind: "Dot";
31
31
  value: string;
32
32
  }>, z.ZodObject<{
33
- __kind: z.ZodLiteral<"Btc">;
34
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
33
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
34
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- __kind: "Btc";
37
- value: `0x${string}`;
36
+ __kind: "Bitcoin";
37
+ value: string;
38
38
  }, {
39
39
  __kind: "Btc";
40
40
  value: string;
41
41
  }>]>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  destinationAddress: {
44
- __kind: "Eth";
44
+ __kind: "Ethereum";
45
45
  value: `0x${string}`;
46
46
  } | {
47
- __kind: "Dot";
48
- value: `0x${string}`;
47
+ __kind: "Polkadot";
48
+ value: string;
49
49
  } | {
50
- __kind: "Btc";
51
- value: `0x${string}`;
50
+ __kind: "Bitcoin";
51
+ value: string;
52
52
  };
53
53
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
54
54
  egressAmount: bigint;
@@ -12,43 +12,43 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
12
12
  }>, z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>], null>;
13
13
  egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
14
14
  destinationAddress: z.ZodUnion<[z.ZodObject<{
15
- __kind: z.ZodLiteral<"Eth">;
15
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
16
16
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- __kind: "Eth";
18
+ __kind: "Ethereum";
19
19
  value: `0x${string}`;
20
20
  }, {
21
21
  __kind: "Eth";
22
22
  value: string;
23
23
  }>, z.ZodObject<{
24
- __kind: z.ZodLiteral<"Dot">;
25
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
24
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
25
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "Dot";
28
- value: `0x${string}`;
27
+ __kind: "Polkadot";
28
+ value: string;
29
29
  }, {
30
30
  __kind: "Dot";
31
31
  value: string;
32
32
  }>, z.ZodObject<{
33
- __kind: z.ZodLiteral<"Btc">;
34
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
33
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
34
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- __kind: "Btc";
37
- value: `0x${string}`;
36
+ __kind: "Bitcoin";
37
+ value: string;
38
38
  }, {
39
39
  __kind: "Btc";
40
40
  value: string;
41
41
  }>]>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  destinationAddress: {
44
- __kind: "Eth";
44
+ __kind: "Ethereum";
45
45
  value: `0x${string}`;
46
46
  } | {
47
- __kind: "Dot";
48
- value: `0x${string}`;
47
+ __kind: "Polkadot";
48
+ value: string;
49
49
  } | {
50
- __kind: "Btc";
51
- value: `0x${string}`;
50
+ __kind: "Bitcoin";
51
+ value: string;
52
52
  };
53
53
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
54
54
  egressAmount: bigint;
@@ -145,6 +145,7 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
145
145
  __kind: "RootNotAllowed";
146
146
  }>]>;
147
147
  }, "strip", z.ZodTypeAny, {
148
+ callHash: `0x${string}`;
148
149
  error: {
149
150
  __kind: "Other";
150
151
  } | {
@@ -181,8 +182,8 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
181
182
  } | {
182
183
  __kind: "RootNotAllowed";
183
184
  };
184
- callHash: `0x${string}`;
185
185
  }, {
186
+ callHash: string;
186
187
  error: {
187
188
  __kind: "Other";
188
189
  } | {
@@ -225,7 +226,6 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
225
226
  } | {
226
227
  __kind: "RootNotAllowed";
227
228
  };
228
- callHash: string;
229
229
  }>;
230
230
 
231
231
  export { witnesserWitnessExecutionFailed };
@@ -145,6 +145,7 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
145
145
  __kind: "RootNotAllowed";
146
146
  }>]>;
147
147
  }, "strip", z.ZodTypeAny, {
148
+ callHash: `0x${string}`;
148
149
  error: {
149
150
  __kind: "Other";
150
151
  } | {
@@ -181,8 +182,8 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
181
182
  } | {
182
183
  __kind: "RootNotAllowed";
183
184
  };
184
- callHash: `0x${string}`;
185
185
  }, {
186
+ callHash: string;
186
187
  error: {
187
188
  __kind: "Other";
188
189
  } | {
@@ -225,7 +226,6 @@ declare const witnesserWitnessExecutionFailed: z.ZodObject<{
225
226
  } | {
226
227
  __kind: "RootNotAllowed";
227
228
  };
228
- callHash: string;
229
229
  }>;
230
230
 
231
231
  export { witnesserWitnessExecutionFailed };
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// generated/102/common.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// generated/102/common.ts
2
2
  var _zod = require('zod');
3
- var _ss58 = require('@chainflip/utils/ss58');
3
+ var _ss58 = require('@chainflip/utils/ss58'); var ss58 = _interopRequireWildcard(_ss58);
4
4
  var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
5
5
  var accountId = _zod.z.union([
6
6
  hexString,
7
7
  _zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
8
- ]).transform((value) => _ss58.encode.call(void 0, { data: value, ss58Format: 2112 }));
8
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
9
9
  var simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
10
10
  var cfPrimitivesAccountRole = simpleEnum([
11
11
  "Unregistered",
@@ -1,11 +1,11 @@
1
1
  // generated/102/common.ts
2
2
  import { z } from "zod";
3
- import { encode } from "@chainflip/utils/ss58";
3
+ import * as ss58 from "@chainflip/utils/ss58";
4
4
  var hexString = z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
5
5
  var accountId = z.union([
6
6
  hexString,
7
7
  z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
8
- ]).transform((value) => encode({ data: value, ss58Format: 2112 }));
8
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
9
9
  var simpleEnum = (values) => z.object({ __kind: z.enum(values) }).transform(({ __kind }) => __kind);
10
10
  var cfPrimitivesAccountRole = simpleEnum([
11
11
  "Unregistered",
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// generated/111/common.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// generated/111/common.ts
2
2
  var _zod = require('zod');
3
- var _ss58 = require('@chainflip/utils/ss58');
3
+ var _ss58 = require('@chainflip/utils/ss58'); var ss58 = _interopRequireWildcard(_ss58);
4
4
  var palletCfBroadcastBroadcastAttemptId = _zod.z.object({
5
5
  broadcastId: _zod.z.number(),
6
6
  attemptCount: _zod.z.number()
@@ -24,7 +24,7 @@ var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot",
24
24
  var accountId = _zod.z.union([
25
25
  hexString,
26
26
  _zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
27
- ]).transform((value) => _ss58.encode.call(void 0, { data: value, ss58Format: 2112 }));
27
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
28
28
  var palletCfPoolsAssetsMapU128 = _zod.z.object({ base: numberOrHex, quote: numberOrHex });
29
29
  var palletCfPoolsRangeOrderChange = _zod.z.object({
30
30
  liquidity: numberOrHex,
@@ -1,6 +1,6 @@
1
1
  // generated/111/common.ts
2
2
  import { z } from "zod";
3
- import { encode } from "@chainflip/utils/ss58";
3
+ import * as ss58 from "@chainflip/utils/ss58";
4
4
  var palletCfBroadcastBroadcastAttemptId = z.object({
5
5
  broadcastId: z.number(),
6
6
  attemptCount: z.number()
@@ -24,7 +24,7 @@ var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot",
24
24
  var accountId = z.union([
25
25
  hexString,
26
26
  z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
27
- ]).transform((value) => encode({ data: value, ss58Format: 2112 }));
27
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
28
28
  var palletCfPoolsAssetsMapU128 = z.object({ base: numberOrHex, quote: numberOrHex });
29
29
  var palletCfPoolsRangeOrderChange = z.object({
30
30
  liquidity: numberOrHex,
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// generated/120/common.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// generated/120/common.ts
2
2
  var _zod = require('zod');
3
- var _ss58 = require('@chainflip/utils/ss58');
3
+ var _ss58 = require('@chainflip/utils/ss58'); var ss58 = _interopRequireWildcard(_ss58);
4
4
  var cfChainsBtcConsolidationParameters = _zod.z.object({
5
5
  consolidationThreshold: _zod.z.number(),
6
6
  consolidationSize: _zod.z.number()
@@ -9,7 +9,7 @@ var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message
9
9
  var accountId = _zod.z.union([
10
10
  hexString,
11
11
  _zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
12
- ]).transform((value) => _ss58.encode.call(void 0, { data: value, ss58Format: 2112 }));
12
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
13
13
  var numericString = _zod.z.string().refine((v) => /^\d+$/.test(v), { message: "Invalid numeric string" });
14
14
  var numberOrHex = _zod.z.union([_zod.z.number(), hexString, numericString]).transform((n) => BigInt(n));
15
15
  var simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
@@ -68,9 +68,18 @@ var cfChainsDotPolkadotTransactionData = _zod.z.object({ encodedExtrinsic: hexSt
68
68
  var cfChainsBtcBitcoinTransactionData = _zod.z.object({ encodedTransaction: hexString });
69
69
  var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot", "Btc"]);
70
70
  var cfChainsAddressEncodedAddress = _zod.z.union([
71
- _zod.z.object({ __kind: _zod.z.literal("Eth"), value: hexString }),
72
- _zod.z.object({ __kind: _zod.z.literal("Dot"), value: hexString }),
73
- _zod.z.object({ __kind: _zod.z.literal("Btc"), value: hexString })
71
+ _zod.z.object({
72
+ __kind: _zod.z.literal("Eth").transform(() => "Ethereum"),
73
+ value: hexString
74
+ }),
75
+ _zod.z.object({
76
+ __kind: _zod.z.literal("Dot").transform(() => "Polkadot"),
77
+ value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
78
+ }),
79
+ _zod.z.object({
80
+ __kind: _zod.z.literal("Btc").transform(() => "Bitcoin"),
81
+ value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
82
+ })
74
83
  ]);
75
84
  var palletCfSwappingCcmFailReason = simpleEnum([
76
85
  "UnsupportedForTargetChain",
@@ -336,29 +336,29 @@ declare const cfPrimitivesChainsAssetsAnyAsset: z.ZodEffects<z.ZodObject<{
336
336
  __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
337
337
  }>;
338
338
  declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
339
- __kind: z.ZodLiteral<"Eth">;
339
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
340
340
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
341
341
  }, "strip", z.ZodTypeAny, {
342
342
  value: `0x${string}`;
343
- __kind: "Eth";
343
+ __kind: "Ethereum";
344
344
  }, {
345
345
  value: string;
346
346
  __kind: "Eth";
347
347
  }>, z.ZodObject<{
348
- __kind: z.ZodLiteral<"Dot">;
349
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
348
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
349
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
350
350
  }, "strip", z.ZodTypeAny, {
351
- value: `0x${string}`;
352
- __kind: "Dot";
351
+ value: string;
352
+ __kind: "Polkadot";
353
353
  }, {
354
354
  value: string;
355
355
  __kind: "Dot";
356
356
  }>, z.ZodObject<{
357
- __kind: z.ZodLiteral<"Btc">;
358
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
357
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
358
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
359
359
  }, "strip", z.ZodTypeAny, {
360
- value: `0x${string}`;
361
- __kind: "Btc";
360
+ value: string;
361
+ __kind: "Bitcoin";
362
362
  }, {
363
363
  value: string;
364
364
  __kind: "Btc";