@chainflip/processor 1.5.1 → 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 (271) hide show
  1. package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
  2. package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
  3. package/dist/100/common.cjs +15 -6
  4. package/dist/100/common.d.cts +25 -25
  5. package/dist/100/common.d.ts +25 -25
  6. package/dist/100/common.mjs +14 -5
  7. package/dist/100/environment/runtimeSafeModeUpdated.d.cts +28 -28
  8. package/dist/100/environment/runtimeSafeModeUpdated.d.ts +28 -28
  9. package/dist/100/funding/boundExecutorAddress.d.cts +2 -2
  10. package/dist/100/funding/boundExecutorAddress.d.ts +2 -2
  11. package/dist/100/funding/boundRedeemAddress.d.cts +2 -2
  12. package/dist/100/funding/boundRedeemAddress.d.ts +2 -2
  13. package/dist/100/funding/failedFundingAttempt.d.cts +2 -2
  14. package/dist/100/funding/failedFundingAttempt.d.ts +2 -2
  15. package/dist/100/funding/funded.d.cts +2 -2
  16. package/dist/100/funding/funded.d.ts +2 -2
  17. package/dist/100/funding/redemptionRequested.d.cts +2 -2
  18. package/dist/100/funding/redemptionRequested.d.ts +2 -2
  19. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +15 -15
  20. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +15 -15
  21. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
  22. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
  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/102/common.cjs +3 -3
  38. package/dist/102/common.mjs +2 -2
  39. package/dist/111/common.cjs +3 -3
  40. package/dist/111/common.mjs +2 -2
  41. package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
  42. package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +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 +15 -15
  50. package/dist/120/swapping/ccmFailed.d.ts +15 -15
  51. package/dist/120/swapping/withdrawalRequested.d.cts +15 -15
  52. package/dist/120/swapping/withdrawalRequested.d.ts +15 -15
  53. package/dist/131/common.cjs +15 -6
  54. package/dist/131/common.d.cts +25 -25
  55. package/dist/131/common.d.ts +25 -25
  56. package/dist/131/common.mjs +14 -5
  57. package/dist/131/environment/runtimeSafeModeUpdated.d.cts +40 -40
  58. package/dist/131/environment/runtimeSafeModeUpdated.d.ts +40 -40
  59. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.cts +15 -15
  60. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.ts +15 -15
  61. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
  62. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
  63. package/dist/131/swapping/batchSwapFailed.d.cts +8 -8
  64. package/dist/131/swapping/batchSwapFailed.d.ts +8 -8
  65. package/dist/131/swapping/ccmFailed.d.cts +35 -35
  66. package/dist/131/swapping/ccmFailed.d.ts +35 -35
  67. package/dist/131/swapping/maximumSwapAmountSet.d.cts +6 -6
  68. package/dist/131/swapping/maximumSwapAmountSet.d.ts +6 -6
  69. package/dist/131/swapping/swapAmountConfiscated.d.cts +12 -12
  70. package/dist/131/swapping/swapAmountConfiscated.d.ts +12 -12
  71. package/dist/131/swapping/swapDepositAddressReady.d.cts +48 -48
  72. package/dist/131/swapping/swapDepositAddressReady.d.ts +48 -48
  73. package/dist/131/swapping/swapEgressIgnored.d.cts +12 -12
  74. package/dist/131/swapping/swapEgressIgnored.d.ts +12 -12
  75. package/dist/131/swapping/swapEgressScheduled.d.cts +8 -8
  76. package/dist/131/swapping/swapEgressScheduled.d.ts +8 -8
  77. package/dist/131/swapping/swapExecuted.d.cts +12 -12
  78. package/dist/131/swapping/swapExecuted.d.ts +12 -12
  79. package/dist/131/swapping/swapScheduled.d.cts +49 -49
  80. package/dist/131/swapping/swapScheduled.d.ts +49 -49
  81. package/dist/131/swapping/withdrawalRequested.d.cts +21 -21
  82. package/dist/131/swapping/withdrawalRequested.d.ts +21 -21
  83. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.cts +2 -2
  84. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.ts +2 -2
  85. package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +4 -4
  86. package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +4 -4
  87. package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
  88. package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
  89. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  90. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  91. package/dist/141/common.cjs +19 -7
  92. package/dist/141/common.d.cts +30 -30
  93. package/dist/141/common.d.ts +30 -30
  94. package/dist/141/common.mjs +18 -6
  95. package/dist/141/evmThresholdSigner/failureReportProcessed.d.cts +2 -2
  96. package/dist/141/evmThresholdSigner/failureReportProcessed.d.ts +2 -2
  97. package/dist/141/evmThresholdSigner/retryRequested.d.cts +2 -2
  98. package/dist/141/evmThresholdSigner/retryRequested.d.ts +2 -2
  99. package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
  100. package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
  101. package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
  102. package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
  103. package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
  104. package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
  105. package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
  106. package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
  107. package/dist/141/liquidityPools/limitOrderUpdated.d.cts +4 -4
  108. package/dist/141/liquidityPools/limitOrderUpdated.d.ts +4 -4
  109. package/dist/141/liquidityPools/rangeOrderUpdated.d.cts +4 -4
  110. package/dist/141/liquidityPools/rangeOrderUpdated.d.ts +4 -4
  111. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.cts +18 -18
  112. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +18 -18
  113. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.cts +18 -18
  114. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.ts +18 -18
  115. package/dist/141/polkadotIngressEgress/boostFundsAdded.d.cts +2 -2
  116. package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +2 -2
  117. package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
  118. package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
  119. package/dist/141/polkadotIngressEgress/stoppedBoosting.d.cts +2 -2
  120. package/dist/141/polkadotIngressEgress/stoppedBoosting.d.ts +2 -2
  121. package/dist/141/swapping/batchSwapFailed.d.cts +8 -8
  122. package/dist/141/swapping/batchSwapFailed.d.ts +8 -8
  123. package/dist/141/swapping/ccmDepositReceived.d.cts +90 -90
  124. package/dist/141/swapping/ccmDepositReceived.d.ts +90 -90
  125. package/dist/141/swapping/ccmFailed.d.cts +126 -126
  126. package/dist/141/swapping/ccmFailed.d.ts +126 -126
  127. package/dist/141/swapping/maximumSwapAmountSet.d.cts +6 -6
  128. package/dist/141/swapping/maximumSwapAmountSet.d.ts +6 -6
  129. package/dist/141/swapping/swapAmountConfiscated.d.cts +12 -12
  130. package/dist/141/swapping/swapAmountConfiscated.d.ts +12 -12
  131. package/dist/141/swapping/swapDepositAddressReady.d.cts +64 -64
  132. package/dist/141/swapping/swapDepositAddressReady.d.ts +64 -64
  133. package/dist/141/swapping/swapEgressIgnored.d.cts +24 -24
  134. package/dist/141/swapping/swapEgressIgnored.d.ts +24 -24
  135. package/dist/141/swapping/swapEgressScheduled.d.cts +11 -11
  136. package/dist/141/swapping/swapEgressScheduled.d.ts +11 -11
  137. package/dist/141/swapping/swapExecuted.d.cts +88 -88
  138. package/dist/141/swapping/swapExecuted.d.ts +88 -88
  139. package/dist/141/swapping/swapScheduled.d.cts +150 -150
  140. package/dist/141/swapping/swapScheduled.d.ts +150 -150
  141. package/dist/141/swapping/withdrawalRequested.d.cts +36 -36
  142. package/dist/141/swapping/withdrawalRequested.d.ts +36 -36
  143. package/dist/150/arbitrumIngressEgress/ccmBroadcastRequested.d.cts +2 -2
  144. package/dist/150/arbitrumIngressEgress/ccmBroadcastRequested.d.ts +2 -2
  145. package/dist/150/arbitrumIngressEgress/ccmEgressInvalid.d.cts +4 -4
  146. package/dist/150/arbitrumIngressEgress/ccmEgressInvalid.d.ts +4 -4
  147. package/dist/150/assetBalances/refundScheduled.d.cts +50 -50
  148. package/dist/150/assetBalances/refundScheduled.d.ts +50 -50
  149. package/dist/150/assetBalances/refundSkipped.d.cts +70 -70
  150. package/dist/150/assetBalances/refundSkipped.d.ts +70 -70
  151. package/dist/150/common.cjs +25 -8
  152. package/dist/150/common.d.cts +64 -64
  153. package/dist/150/common.d.ts +64 -64
  154. package/dist/150/common.mjs +24 -7
  155. package/dist/150/liquidityPools/limitOrderUpdated.d.cts +8 -8
  156. package/dist/150/liquidityPools/limitOrderUpdated.d.ts +8 -8
  157. package/dist/150/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  158. package/dist/150/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  159. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.cts +24 -24
  160. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.ts +24 -24
  161. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
  162. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
  163. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
  164. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
  165. package/dist/150/solanaIngressEgress/boostFundsAdded.d.cts +2 -2
  166. package/dist/150/solanaIngressEgress/boostFundsAdded.d.ts +2 -2
  167. package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.cts +16 -16
  168. package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.ts +16 -16
  169. package/dist/150/solanaIngressEgress/depositFinalised.d.cts +2 -2
  170. package/dist/150/solanaIngressEgress/depositFinalised.d.ts +2 -2
  171. package/dist/150/solanaIngressEgress/depositIgnored.d.cts +2 -2
  172. package/dist/150/solanaIngressEgress/depositIgnored.d.ts +2 -2
  173. package/dist/150/solanaIngressEgress/depositWitnessRejected.d.cts +20 -20
  174. package/dist/150/solanaIngressEgress/depositWitnessRejected.d.ts +20 -20
  175. package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  176. package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  177. package/dist/150/solanaThresholdSigner/failureReportProcessed.d.cts +2 -2
  178. package/dist/150/solanaThresholdSigner/failureReportProcessed.d.ts +2 -2
  179. package/dist/150/solanaThresholdSigner/retryRequested.d.cts +2 -2
  180. package/dist/150/solanaThresholdSigner/retryRequested.d.ts +2 -2
  181. package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
  182. package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
  183. package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
  184. package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
  185. package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
  186. package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
  187. package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
  188. package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
  189. package/dist/150/swapping/batchSwapFailed.d.cts +8 -8
  190. package/dist/150/swapping/batchSwapFailed.d.ts +8 -8
  191. package/dist/150/swapping/ccmDepositReceived.d.cts +104 -104
  192. package/dist/150/swapping/ccmDepositReceived.d.ts +104 -104
  193. package/dist/150/swapping/ccmFailed.d.cts +151 -151
  194. package/dist/150/swapping/ccmFailed.d.ts +151 -151
  195. package/dist/150/swapping/maximumSwapAmountSet.d.cts +6 -6
  196. package/dist/150/swapping/maximumSwapAmountSet.d.ts +6 -6
  197. package/dist/150/swapping/refundEgressIgnored.d.cts +24 -24
  198. package/dist/150/swapping/refundEgressIgnored.d.ts +24 -24
  199. package/dist/150/swapping/refundEgressScheduled.d.cts +8 -8
  200. package/dist/150/swapping/refundEgressScheduled.d.ts +8 -8
  201. package/dist/150/swapping/swapAmountConfiscated.d.cts +12 -12
  202. package/dist/150/swapping/swapAmountConfiscated.d.ts +12 -12
  203. package/dist/150/swapping/swapDepositAddressReady.d.cts +127 -127
  204. package/dist/150/swapping/swapDepositAddressReady.d.ts +127 -127
  205. package/dist/150/swapping/swapEgressIgnored.d.cts +24 -24
  206. package/dist/150/swapping/swapEgressIgnored.d.ts +24 -24
  207. package/dist/150/swapping/swapEgressScheduled.d.cts +8 -8
  208. package/dist/150/swapping/swapEgressScheduled.d.ts +8 -8
  209. package/dist/150/swapping/swapExecuted.d.cts +94 -94
  210. package/dist/150/swapping/swapExecuted.d.ts +94 -94
  211. package/dist/150/swapping/swapScheduled.d.cts +175 -175
  212. package/dist/150/swapping/swapScheduled.d.ts +175 -175
  213. package/dist/150/swapping/withdrawalRequested.d.cts +40 -40
  214. package/dist/150/swapping/withdrawalRequested.d.ts +40 -40
  215. package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.cts +61 -61
  216. package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.ts +61 -61
  217. package/dist/160/arbitrumIngressEgress/depositBoosted.d.cts +8 -8
  218. package/dist/160/arbitrumIngressEgress/depositBoosted.d.ts +8 -8
  219. package/dist/160/arbitrumIngressEgress/depositFinalised.d.cts +6 -6
  220. package/dist/160/arbitrumIngressEgress/depositFinalised.d.ts +6 -6
  221. package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.cts +14 -14
  222. package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.ts +14 -14
  223. package/dist/160/bitcoinIngressEgress/depositBoosted.d.cts +8 -8
  224. package/dist/160/bitcoinIngressEgress/depositBoosted.d.ts +8 -8
  225. package/dist/160/bitcoinIngressEgress/depositFinalised.d.cts +6 -6
  226. package/dist/160/bitcoinIngressEgress/depositFinalised.d.ts +6 -6
  227. package/dist/160/common.cjs +25 -8
  228. package/dist/160/common.d.cts +88 -88
  229. package/dist/160/common.d.ts +88 -88
  230. package/dist/160/common.mjs +24 -7
  231. package/dist/160/liquidityPools/limitOrderUpdated.d.cts +8 -8
  232. package/dist/160/liquidityPools/limitOrderUpdated.d.ts +8 -8
  233. package/dist/160/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  234. package/dist/160/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  235. package/dist/160/liquidityProvider/accountCredited.d.cts +2 -2
  236. package/dist/160/liquidityProvider/accountCredited.d.ts +2 -2
  237. package/dist/160/liquidityProvider/accountDebited.d.cts +2 -2
  238. package/dist/160/liquidityProvider/accountDebited.d.ts +2 -2
  239. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.cts +28 -28
  240. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +28 -28
  241. package/dist/160/liquidityProvider/liquidityDepositCredited.d.cts +2 -2
  242. package/dist/160/liquidityProvider/liquidityDepositCredited.d.ts +2 -2
  243. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
  244. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
  245. package/dist/160/swapping/batchSwapFailed.d.cts +8 -8
  246. package/dist/160/swapping/batchSwapFailed.d.ts +8 -8
  247. package/dist/160/swapping/ccmFailed.d.cts +56 -56
  248. package/dist/160/swapping/ccmFailed.d.ts +56 -56
  249. package/dist/160/swapping/maximumSwapAmountSet.d.cts +6 -6
  250. package/dist/160/swapping/maximumSwapAmountSet.d.ts +6 -6
  251. package/dist/160/swapping/refundEgressIgnored.d.cts +12 -12
  252. package/dist/160/swapping/refundEgressIgnored.d.ts +12 -12
  253. package/dist/160/swapping/refundEgressScheduled.d.cts +8 -8
  254. package/dist/160/swapping/refundEgressScheduled.d.ts +8 -8
  255. package/dist/160/swapping/swapAmountConfiscated.d.cts +7 -7
  256. package/dist/160/swapping/swapAmountConfiscated.d.ts +7 -7
  257. package/dist/160/swapping/swapDepositAddressReady.d.cts +66 -66
  258. package/dist/160/swapping/swapDepositAddressReady.d.ts +66 -66
  259. package/dist/160/swapping/swapEgressIgnored.d.cts +12 -12
  260. package/dist/160/swapping/swapEgressIgnored.d.ts +12 -12
  261. package/dist/160/swapping/swapEgressScheduled.d.cts +8 -8
  262. package/dist/160/swapping/swapEgressScheduled.d.ts +8 -8
  263. package/dist/160/swapping/swapExecuted.d.cts +12 -12
  264. package/dist/160/swapping/swapExecuted.d.ts +12 -12
  265. package/dist/160/swapping/swapRequested.d.cts +110 -110
  266. package/dist/160/swapping/swapRequested.d.ts +110 -110
  267. package/dist/160/swapping/withdrawalRequested.d.cts +30 -30
  268. package/dist/160/swapping/withdrawalRequested.d.ts +30 -30
  269. package/dist/Processor.cjs +7 -1
  270. package/dist/Processor.mjs +7 -1
  271. package/package.json +1 -1
@@ -1841,47 +1841,47 @@ declare const palletCfTokenholderGovernanceProposal: z.ZodUnion<[z.ZodObject<{
1841
1841
  __kind: "SetCommunityKey";
1842
1842
  }>]>;
1843
1843
  declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
1844
- __kind: z.ZodLiteral<"Eth">;
1844
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
1845
1845
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1846
1846
  }, "strip", z.ZodTypeAny, {
1847
1847
  value: `0x${string}`;
1848
- __kind: "Eth";
1848
+ __kind: "Ethereum";
1849
1849
  }, {
1850
1850
  value: string;
1851
1851
  __kind: "Eth";
1852
1852
  }>, z.ZodObject<{
1853
- __kind: z.ZodLiteral<"Dot">;
1854
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1853
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
1854
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1855
1855
  }, "strip", z.ZodTypeAny, {
1856
- value: `0x${string}`;
1857
- __kind: "Dot";
1856
+ value: string;
1857
+ __kind: "Polkadot";
1858
1858
  }, {
1859
1859
  value: string;
1860
1860
  __kind: "Dot";
1861
1861
  }>, z.ZodObject<{
1862
- __kind: z.ZodLiteral<"Btc">;
1863
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1862
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
1863
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1864
1864
  }, "strip", z.ZodTypeAny, {
1865
- value: `0x${string}`;
1866
- __kind: "Btc";
1865
+ value: string;
1866
+ __kind: "Bitcoin";
1867
1867
  }, {
1868
1868
  value: string;
1869
1869
  __kind: "Btc";
1870
1870
  }>, z.ZodObject<{
1871
- __kind: z.ZodLiteral<"Arb">;
1871
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
1872
1872
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1873
1873
  }, "strip", z.ZodTypeAny, {
1874
1874
  value: `0x${string}`;
1875
- __kind: "Arb";
1875
+ __kind: "Arbitrum";
1876
1876
  }, {
1877
1877
  value: string;
1878
1878
  __kind: "Arb";
1879
1879
  }>, z.ZodObject<{
1880
- __kind: z.ZodLiteral<"Sol">;
1881
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1880
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
1881
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1882
1882
  }, "strip", z.ZodTypeAny, {
1883
- value: `0x${string}`;
1884
- __kind: "Sol";
1883
+ value: string;
1884
+ __kind: "Solana";
1885
1885
  }, {
1886
1886
  value: string;
1887
1887
  __kind: "Sol";
@@ -1922,47 +1922,47 @@ declare const cfPrimitivesBeneficiary: z.ZodObject<{
1922
1922
  declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
1923
1923
  retryDuration: z.ZodNumber;
1924
1924
  refundAddress: z.ZodUnion<[z.ZodObject<{
1925
- __kind: z.ZodLiteral<"Eth">;
1925
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
1926
1926
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1927
1927
  }, "strip", z.ZodTypeAny, {
1928
1928
  value: `0x${string}`;
1929
- __kind: "Eth";
1929
+ __kind: "Ethereum";
1930
1930
  }, {
1931
1931
  value: string;
1932
1932
  __kind: "Eth";
1933
1933
  }>, z.ZodObject<{
1934
- __kind: z.ZodLiteral<"Dot">;
1935
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1934
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
1935
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1936
1936
  }, "strip", z.ZodTypeAny, {
1937
- value: `0x${string}`;
1938
- __kind: "Dot";
1937
+ value: string;
1938
+ __kind: "Polkadot";
1939
1939
  }, {
1940
1940
  value: string;
1941
1941
  __kind: "Dot";
1942
1942
  }>, z.ZodObject<{
1943
- __kind: z.ZodLiteral<"Btc">;
1944
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1943
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
1944
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1945
1945
  }, "strip", z.ZodTypeAny, {
1946
- value: `0x${string}`;
1947
- __kind: "Btc";
1946
+ value: string;
1947
+ __kind: "Bitcoin";
1948
1948
  }, {
1949
1949
  value: string;
1950
1950
  __kind: "Btc";
1951
1951
  }>, z.ZodObject<{
1952
- __kind: z.ZodLiteral<"Arb">;
1952
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
1953
1953
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1954
1954
  }, "strip", z.ZodTypeAny, {
1955
1955
  value: `0x${string}`;
1956
- __kind: "Arb";
1956
+ __kind: "Arbitrum";
1957
1957
  }, {
1958
1958
  value: string;
1959
1959
  __kind: "Arb";
1960
1960
  }>, z.ZodObject<{
1961
- __kind: z.ZodLiteral<"Sol">;
1962
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1961
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
1962
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
- value: `0x${string}`;
1965
- __kind: "Sol";
1964
+ value: string;
1965
+ __kind: "Solana";
1966
1966
  }, {
1967
1967
  value: string;
1968
1968
  __kind: "Sol";
@@ -1972,19 +1972,19 @@ declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
1972
1972
  retryDuration: number;
1973
1973
  refundAddress: {
1974
1974
  value: `0x${string}`;
1975
- __kind: "Eth";
1975
+ __kind: "Ethereum";
1976
1976
  } | {
1977
- value: `0x${string}`;
1978
- __kind: "Dot";
1977
+ value: string;
1978
+ __kind: "Polkadot";
1979
1979
  } | {
1980
- value: `0x${string}`;
1981
- __kind: "Btc";
1980
+ value: string;
1981
+ __kind: "Bitcoin";
1982
1982
  } | {
1983
1983
  value: `0x${string}`;
1984
- __kind: "Arb";
1984
+ __kind: "Arbitrum";
1985
1985
  } | {
1986
- value: `0x${string}`;
1987
- __kind: "Sol";
1986
+ value: string;
1987
+ __kind: "Solana";
1988
1988
  };
1989
1989
  minPrice: bigint;
1990
1990
  }, {
@@ -2010,47 +2010,47 @@ declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
2010
2010
  declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
2011
2011
  __kind: z.ZodLiteral<"DepositChannel">;
2012
2012
  depositAddress: z.ZodUnion<[z.ZodObject<{
2013
- __kind: z.ZodLiteral<"Eth">;
2013
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
2014
2014
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2015
2015
  }, "strip", z.ZodTypeAny, {
2016
2016
  value: `0x${string}`;
2017
- __kind: "Eth";
2017
+ __kind: "Ethereum";
2018
2018
  }, {
2019
2019
  value: string;
2020
2020
  __kind: "Eth";
2021
2021
  }>, z.ZodObject<{
2022
- __kind: z.ZodLiteral<"Dot">;
2023
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2022
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
2023
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2024
2024
  }, "strip", z.ZodTypeAny, {
2025
- value: `0x${string}`;
2026
- __kind: "Dot";
2025
+ value: string;
2026
+ __kind: "Polkadot";
2027
2027
  }, {
2028
2028
  value: string;
2029
2029
  __kind: "Dot";
2030
2030
  }>, z.ZodObject<{
2031
- __kind: z.ZodLiteral<"Btc">;
2032
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2031
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
2032
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2033
2033
  }, "strip", z.ZodTypeAny, {
2034
- value: `0x${string}`;
2035
- __kind: "Btc";
2034
+ value: string;
2035
+ __kind: "Bitcoin";
2036
2036
  }, {
2037
2037
  value: string;
2038
2038
  __kind: "Btc";
2039
2039
  }>, z.ZodObject<{
2040
- __kind: z.ZodLiteral<"Arb">;
2040
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
2041
2041
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2042
2042
  }, "strip", z.ZodTypeAny, {
2043
2043
  value: `0x${string}`;
2044
- __kind: "Arb";
2044
+ __kind: "Arbitrum";
2045
2045
  }, {
2046
2046
  value: string;
2047
2047
  __kind: "Arb";
2048
2048
  }>, z.ZodObject<{
2049
- __kind: z.ZodLiteral<"Sol">;
2050
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2049
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
2050
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2051
2051
  }, "strip", z.ZodTypeAny, {
2052
- value: `0x${string}`;
2053
- __kind: "Sol";
2052
+ value: string;
2053
+ __kind: "Solana";
2054
2054
  }, {
2055
2055
  value: string;
2056
2056
  __kind: "Sol";
@@ -2061,19 +2061,19 @@ declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
2061
2061
  __kind: "DepositChannel";
2062
2062
  depositAddress: {
2063
2063
  value: `0x${string}`;
2064
- __kind: "Eth";
2064
+ __kind: "Ethereum";
2065
2065
  } | {
2066
- value: `0x${string}`;
2067
- __kind: "Dot";
2066
+ value: string;
2067
+ __kind: "Polkadot";
2068
2068
  } | {
2069
- value: `0x${string}`;
2070
- __kind: "Btc";
2069
+ value: string;
2070
+ __kind: "Bitcoin";
2071
2071
  } | {
2072
2072
  value: `0x${string}`;
2073
- __kind: "Arb";
2073
+ __kind: "Arbitrum";
2074
2074
  } | {
2075
- value: `0x${string}`;
2076
- __kind: "Sol";
2075
+ value: string;
2076
+ __kind: "Solana";
2077
2077
  };
2078
2078
  channelId: bigint;
2079
2079
  depositBlockHeight: bigint;
@@ -1841,47 +1841,47 @@ declare const palletCfTokenholderGovernanceProposal: z.ZodUnion<[z.ZodObject<{
1841
1841
  __kind: "SetCommunityKey";
1842
1842
  }>]>;
1843
1843
  declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
1844
- __kind: z.ZodLiteral<"Eth">;
1844
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
1845
1845
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1846
1846
  }, "strip", z.ZodTypeAny, {
1847
1847
  value: `0x${string}`;
1848
- __kind: "Eth";
1848
+ __kind: "Ethereum";
1849
1849
  }, {
1850
1850
  value: string;
1851
1851
  __kind: "Eth";
1852
1852
  }>, z.ZodObject<{
1853
- __kind: z.ZodLiteral<"Dot">;
1854
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1853
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
1854
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1855
1855
  }, "strip", z.ZodTypeAny, {
1856
- value: `0x${string}`;
1857
- __kind: "Dot";
1856
+ value: string;
1857
+ __kind: "Polkadot";
1858
1858
  }, {
1859
1859
  value: string;
1860
1860
  __kind: "Dot";
1861
1861
  }>, z.ZodObject<{
1862
- __kind: z.ZodLiteral<"Btc">;
1863
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1862
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
1863
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1864
1864
  }, "strip", z.ZodTypeAny, {
1865
- value: `0x${string}`;
1866
- __kind: "Btc";
1865
+ value: string;
1866
+ __kind: "Bitcoin";
1867
1867
  }, {
1868
1868
  value: string;
1869
1869
  __kind: "Btc";
1870
1870
  }>, z.ZodObject<{
1871
- __kind: z.ZodLiteral<"Arb">;
1871
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
1872
1872
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1873
1873
  }, "strip", z.ZodTypeAny, {
1874
1874
  value: `0x${string}`;
1875
- __kind: "Arb";
1875
+ __kind: "Arbitrum";
1876
1876
  }, {
1877
1877
  value: string;
1878
1878
  __kind: "Arb";
1879
1879
  }>, z.ZodObject<{
1880
- __kind: z.ZodLiteral<"Sol">;
1881
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1880
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
1881
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1882
1882
  }, "strip", z.ZodTypeAny, {
1883
- value: `0x${string}`;
1884
- __kind: "Sol";
1883
+ value: string;
1884
+ __kind: "Solana";
1885
1885
  }, {
1886
1886
  value: string;
1887
1887
  __kind: "Sol";
@@ -1922,47 +1922,47 @@ declare const cfPrimitivesBeneficiary: z.ZodObject<{
1922
1922
  declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
1923
1923
  retryDuration: z.ZodNumber;
1924
1924
  refundAddress: z.ZodUnion<[z.ZodObject<{
1925
- __kind: z.ZodLiteral<"Eth">;
1925
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
1926
1926
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1927
1927
  }, "strip", z.ZodTypeAny, {
1928
1928
  value: `0x${string}`;
1929
- __kind: "Eth";
1929
+ __kind: "Ethereum";
1930
1930
  }, {
1931
1931
  value: string;
1932
1932
  __kind: "Eth";
1933
1933
  }>, z.ZodObject<{
1934
- __kind: z.ZodLiteral<"Dot">;
1935
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1934
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
1935
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1936
1936
  }, "strip", z.ZodTypeAny, {
1937
- value: `0x${string}`;
1938
- __kind: "Dot";
1937
+ value: string;
1938
+ __kind: "Polkadot";
1939
1939
  }, {
1940
1940
  value: string;
1941
1941
  __kind: "Dot";
1942
1942
  }>, z.ZodObject<{
1943
- __kind: z.ZodLiteral<"Btc">;
1944
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1943
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
1944
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1945
1945
  }, "strip", z.ZodTypeAny, {
1946
- value: `0x${string}`;
1947
- __kind: "Btc";
1946
+ value: string;
1947
+ __kind: "Bitcoin";
1948
1948
  }, {
1949
1949
  value: string;
1950
1950
  __kind: "Btc";
1951
1951
  }>, z.ZodObject<{
1952
- __kind: z.ZodLiteral<"Arb">;
1952
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
1953
1953
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1954
1954
  }, "strip", z.ZodTypeAny, {
1955
1955
  value: `0x${string}`;
1956
- __kind: "Arb";
1956
+ __kind: "Arbitrum";
1957
1957
  }, {
1958
1958
  value: string;
1959
1959
  __kind: "Arb";
1960
1960
  }>, z.ZodObject<{
1961
- __kind: z.ZodLiteral<"Sol">;
1962
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1961
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
1962
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
- value: `0x${string}`;
1965
- __kind: "Sol";
1964
+ value: string;
1965
+ __kind: "Solana";
1966
1966
  }, {
1967
1967
  value: string;
1968
1968
  __kind: "Sol";
@@ -1972,19 +1972,19 @@ declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
1972
1972
  retryDuration: number;
1973
1973
  refundAddress: {
1974
1974
  value: `0x${string}`;
1975
- __kind: "Eth";
1975
+ __kind: "Ethereum";
1976
1976
  } | {
1977
- value: `0x${string}`;
1978
- __kind: "Dot";
1977
+ value: string;
1978
+ __kind: "Polkadot";
1979
1979
  } | {
1980
- value: `0x${string}`;
1981
- __kind: "Btc";
1980
+ value: string;
1981
+ __kind: "Bitcoin";
1982
1982
  } | {
1983
1983
  value: `0x${string}`;
1984
- __kind: "Arb";
1984
+ __kind: "Arbitrum";
1985
1985
  } | {
1986
- value: `0x${string}`;
1987
- __kind: "Sol";
1986
+ value: string;
1987
+ __kind: "Solana";
1988
1988
  };
1989
1989
  minPrice: bigint;
1990
1990
  }, {
@@ -2010,47 +2010,47 @@ declare const cfChainsChannelRefundParametersEncodedAddress: z.ZodObject<{
2010
2010
  declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
2011
2011
  __kind: z.ZodLiteral<"DepositChannel">;
2012
2012
  depositAddress: z.ZodUnion<[z.ZodObject<{
2013
- __kind: z.ZodLiteral<"Eth">;
2013
+ __kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
2014
2014
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2015
2015
  }, "strip", z.ZodTypeAny, {
2016
2016
  value: `0x${string}`;
2017
- __kind: "Eth";
2017
+ __kind: "Ethereum";
2018
2018
  }, {
2019
2019
  value: string;
2020
2020
  __kind: "Eth";
2021
2021
  }>, z.ZodObject<{
2022
- __kind: z.ZodLiteral<"Dot">;
2023
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2022
+ __kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
2023
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2024
2024
  }, "strip", z.ZodTypeAny, {
2025
- value: `0x${string}`;
2026
- __kind: "Dot";
2025
+ value: string;
2026
+ __kind: "Polkadot";
2027
2027
  }, {
2028
2028
  value: string;
2029
2029
  __kind: "Dot";
2030
2030
  }>, z.ZodObject<{
2031
- __kind: z.ZodLiteral<"Btc">;
2032
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2031
+ __kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
2032
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2033
2033
  }, "strip", z.ZodTypeAny, {
2034
- value: `0x${string}`;
2035
- __kind: "Btc";
2034
+ value: string;
2035
+ __kind: "Bitcoin";
2036
2036
  }, {
2037
2037
  value: string;
2038
2038
  __kind: "Btc";
2039
2039
  }>, z.ZodObject<{
2040
- __kind: z.ZodLiteral<"Arb">;
2040
+ __kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
2041
2041
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2042
2042
  }, "strip", z.ZodTypeAny, {
2043
2043
  value: `0x${string}`;
2044
- __kind: "Arb";
2044
+ __kind: "Arbitrum";
2045
2045
  }, {
2046
2046
  value: string;
2047
2047
  __kind: "Arb";
2048
2048
  }>, z.ZodObject<{
2049
- __kind: z.ZodLiteral<"Sol">;
2050
- value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2049
+ __kind: z.ZodEffects<z.ZodLiteral<"Sol">, "Solana", "Sol">;
2050
+ value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
2051
2051
  }, "strip", z.ZodTypeAny, {
2052
- value: `0x${string}`;
2053
- __kind: "Sol";
2052
+ value: string;
2053
+ __kind: "Solana";
2054
2054
  }, {
2055
2055
  value: string;
2056
2056
  __kind: "Sol";
@@ -2061,19 +2061,19 @@ declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
2061
2061
  __kind: "DepositChannel";
2062
2062
  depositAddress: {
2063
2063
  value: `0x${string}`;
2064
- __kind: "Eth";
2064
+ __kind: "Ethereum";
2065
2065
  } | {
2066
- value: `0x${string}`;
2067
- __kind: "Dot";
2066
+ value: string;
2067
+ __kind: "Polkadot";
2068
2068
  } | {
2069
- value: `0x${string}`;
2070
- __kind: "Btc";
2069
+ value: string;
2070
+ __kind: "Bitcoin";
2071
2071
  } | {
2072
2072
  value: `0x${string}`;
2073
- __kind: "Arb";
2073
+ __kind: "Arbitrum";
2074
2074
  } | {
2075
- value: `0x${string}`;
2076
- __kind: "Sol";
2075
+ value: string;
2076
+ __kind: "Solana";
2077
2077
  };
2078
2078
  channelId: bigint;
2079
2079
  depositBlockHeight: bigint;
@@ -1,6 +1,8 @@
1
1
  // generated/150/common.ts
2
2
  import { z } from "zod";
3
- import { encode } from "@chainflip/utils/ss58";
3
+ import * as ss58 from "@chainflip/utils/ss58";
4
+ import * as base58 from "@chainflip/utils/base58";
5
+ import { hexToBytes } from "@chainflip/utils/bytes";
4
6
  var palletCfEmissionsPalletSafeMode = z.object({ emissionsSyncEnabled: z.boolean() });
5
7
  var palletCfFundingPalletSafeMode = z.object({ redeemEnabled: z.boolean() });
6
8
  var palletCfSwappingPalletSafeMode = z.object({
@@ -116,11 +118,26 @@ var palletCfTokenholderGovernanceProposal = z.union([
116
118
  z.object({ __kind: z.literal("SetCommunityKey"), value: hexString })
117
119
  ]);
118
120
  var cfChainsAddressEncodedAddress = z.union([
119
- z.object({ __kind: z.literal("Eth"), value: hexString }),
120
- z.object({ __kind: z.literal("Dot"), value: hexString }),
121
- z.object({ __kind: z.literal("Btc"), value: hexString }),
122
- z.object({ __kind: z.literal("Arb"), value: hexString }),
123
- z.object({ __kind: z.literal("Sol"), value: hexString })
121
+ z.object({
122
+ __kind: z.literal("Eth").transform(() => "Ethereum"),
123
+ value: hexString
124
+ }),
125
+ z.object({
126
+ __kind: z.literal("Dot").transform(() => "Polkadot"),
127
+ value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
128
+ }),
129
+ z.object({
130
+ __kind: z.literal("Btc").transform(() => "Bitcoin"),
131
+ value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
132
+ }),
133
+ z.object({
134
+ __kind: z.literal("Arb").transform(() => "Arbitrum"),
135
+ value: hexString
136
+ }),
137
+ z.object({
138
+ __kind: z.literal("Sol").transform(() => "Solana"),
139
+ value: hexString.transform((value) => base58.encode(hexToBytes(value)))
140
+ })
124
141
  ]);
125
142
  var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
126
143
  "Eth",
@@ -141,7 +158,7 @@ var cfChainsCcmChannelMetadata = z.object({
141
158
  var accountId = z.union([
142
159
  hexString,
143
160
  z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
144
- ]).transform((value) => encode({ data: value, ss58Format: 2112 }));
161
+ ]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
145
162
  var cfPrimitivesBeneficiary = z.object({ account: accountId, bps: z.number() });
146
163
  var cfChainsChannelRefundParametersEncodedAddress = z.object({
147
164
  retryDuration: z.number(),
@@ -35,20 +35,20 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
35
35
  __kind: z.ZodLiteral<"Increase">;
36
36
  value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- __kind: "Increase";
39
38
  value: bigint;
40
- }, {
41
39
  __kind: "Increase";
40
+ }, {
42
41
  value: string | number;
42
+ __kind: "Increase";
43
43
  }>, z.ZodObject<{
44
44
  __kind: z.ZodLiteral<"Decrease">;
45
45
  value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- __kind: "Decrease";
48
47
  value: bigint;
49
- }, {
50
48
  __kind: "Decrease";
49
+ }, {
51
50
  value: string | number;
51
+ __kind: "Decrease";
52
52
  }>]>>>;
53
53
  sellAmountTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
54
54
  collectedFees: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
@@ -64,11 +64,11 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
64
64
  collectedFees: bigint;
65
65
  boughtAmount: bigint;
66
66
  sellAmountChange?: {
67
- __kind: "Increase";
68
67
  value: bigint;
68
+ __kind: "Increase";
69
69
  } | {
70
- __kind: "Decrease";
71
70
  value: bigint;
71
+ __kind: "Decrease";
72
72
  } | null | undefined;
73
73
  }, {
74
74
  lp: string;
@@ -87,11 +87,11 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
87
87
  collectedFees: string | number;
88
88
  boughtAmount: string | number;
89
89
  sellAmountChange?: {
90
- __kind: "Increase";
91
90
  value: string | number;
91
+ __kind: "Increase";
92
92
  } | {
93
- __kind: "Decrease";
94
93
  value: string | number;
94
+ __kind: "Decrease";
95
95
  } | null | undefined;
96
96
  }>;
97
97
 
@@ -35,20 +35,20 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
35
35
  __kind: z.ZodLiteral<"Increase">;
36
36
  value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- __kind: "Increase";
39
38
  value: bigint;
40
- }, {
41
39
  __kind: "Increase";
40
+ }, {
42
41
  value: string | number;
42
+ __kind: "Increase";
43
43
  }>, z.ZodObject<{
44
44
  __kind: z.ZodLiteral<"Decrease">;
45
45
  value: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- __kind: "Decrease";
48
47
  value: bigint;
49
- }, {
50
48
  __kind: "Decrease";
49
+ }, {
51
50
  value: string | number;
51
+ __kind: "Decrease";
52
52
  }>]>>>;
53
53
  sellAmountTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
54
54
  collectedFees: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
@@ -64,11 +64,11 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
64
64
  collectedFees: bigint;
65
65
  boughtAmount: bigint;
66
66
  sellAmountChange?: {
67
- __kind: "Increase";
68
67
  value: bigint;
68
+ __kind: "Increase";
69
69
  } | {
70
- __kind: "Decrease";
71
70
  value: bigint;
71
+ __kind: "Decrease";
72
72
  } | null | undefined;
73
73
  }, {
74
74
  lp: string;
@@ -87,11 +87,11 @@ declare const liquidityPoolsLimitOrderUpdated: z.ZodObject<{
87
87
  collectedFees: string | number;
88
88
  boughtAmount: string | number;
89
89
  sellAmountChange?: {
90
- __kind: "Increase";
91
90
  value: string | number;
91
+ __kind: "Increase";
92
92
  } | {
93
- __kind: "Decrease";
94
93
  value: string | number;
94
+ __kind: "Decrease";
95
95
  } | null | undefined;
96
96
  }>;
97
97