@wormhole-foundation/sdk-definitions 4.22.0-beta.0 → 5.0.0-beta.0

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 (318) hide show
  1. package/package.json +15 -47
  2. package/dist/cjs/address.d.ts +0 -53
  3. package/dist/cjs/address.d.ts.map +0 -1
  4. package/dist/cjs/address.js +0 -66
  5. package/dist/cjs/address.js.map +0 -1
  6. package/dist/cjs/attestation.d.ts +0 -53
  7. package/dist/cjs/attestation.d.ts.map +0 -1
  8. package/dist/cjs/attestation.js +0 -23
  9. package/dist/cjs/attestation.js.map +0 -1
  10. package/dist/cjs/chain.d.ts +0 -217
  11. package/dist/cjs/chain.d.ts.map +0 -1
  12. package/dist/cjs/chain.js +0 -301
  13. package/dist/cjs/chain.js.map +0 -1
  14. package/dist/cjs/contracts.d.ts +0 -31
  15. package/dist/cjs/contracts.d.ts.map +0 -1
  16. package/dist/cjs/contracts.js +0 -46
  17. package/dist/cjs/contracts.js.map +0 -1
  18. package/dist/cjs/index.d.ts +0 -18
  19. package/dist/cjs/index.d.ts.map +0 -1
  20. package/dist/cjs/index.js +0 -47
  21. package/dist/cjs/index.js.map +0 -1
  22. package/dist/cjs/layout-items/amount.d.ts +0 -5
  23. package/dist/cjs/layout-items/amount.d.ts.map +0 -1
  24. package/dist/cjs/layout-items/amount.js +0 -8
  25. package/dist/cjs/layout-items/amount.js.map +0 -1
  26. package/dist/cjs/layout-items/boolean.d.ts +0 -9
  27. package/dist/cjs/layout-items/boolean.d.ts.map +0 -1
  28. package/dist/cjs/layout-items/boolean.js +0 -12
  29. package/dist/cjs/layout-items/boolean.js.map +0 -1
  30. package/dist/cjs/layout-items/chain.d.ts +0 -85
  31. package/dist/cjs/layout-items/chain.d.ts.map +0 -1
  32. package/dist/cjs/layout-items/chain.js +0 -33
  33. package/dist/cjs/layout-items/chain.js.map +0 -1
  34. package/dist/cjs/layout-items/circle.d.ts +0 -9
  35. package/dist/cjs/layout-items/circle.d.ts.map +0 -1
  36. package/dist/cjs/layout-items/circle.js +0 -12
  37. package/dist/cjs/layout-items/circle.js.map +0 -1
  38. package/dist/cjs/layout-items/date.d.ts +0 -5
  39. package/dist/cjs/layout-items/date.d.ts.map +0 -1
  40. package/dist/cjs/layout-items/date.js +0 -8
  41. package/dist/cjs/layout-items/date.js.map +0 -1
  42. package/dist/cjs/layout-items/guardianSet.d.ts +0 -5
  43. package/dist/cjs/layout-items/guardianSet.d.ts.map +0 -1
  44. package/dist/cjs/layout-items/guardianSet.js +0 -8
  45. package/dist/cjs/layout-items/guardianSet.js.map +0 -1
  46. package/dist/cjs/layout-items/index.d.ts +0 -12
  47. package/dist/cjs/layout-items/index.d.ts.map +0 -1
  48. package/dist/cjs/layout-items/index.js +0 -28
  49. package/dist/cjs/layout-items/index.js.map +0 -1
  50. package/dist/cjs/layout-items/payloadId.d.ts +0 -8
  51. package/dist/cjs/layout-items/payloadId.d.ts.map +0 -1
  52. package/dist/cjs/layout-items/payloadId.js +0 -12
  53. package/dist/cjs/layout-items/payloadId.js.map +0 -1
  54. package/dist/cjs/layout-items/sequence.d.ts +0 -5
  55. package/dist/cjs/layout-items/sequence.d.ts.map +0 -1
  56. package/dist/cjs/layout-items/sequence.js +0 -8
  57. package/dist/cjs/layout-items/sequence.js.map +0 -1
  58. package/dist/cjs/layout-items/signature.d.ts +0 -41
  59. package/dist/cjs/layout-items/signature.d.ts.map +0 -1
  60. package/dist/cjs/layout-items/signature.js +0 -18
  61. package/dist/cjs/layout-items/signature.js.map +0 -1
  62. package/dist/cjs/layout-items/string.d.ts +0 -13
  63. package/dist/cjs/layout-items/string.d.ts.map +0 -1
  64. package/dist/cjs/layout-items/string.js +0 -22
  65. package/dist/cjs/layout-items/string.js.map +0 -1
  66. package/dist/cjs/layout-items/universalAddress.d.ts +0 -10
  67. package/dist/cjs/layout-items/universalAddress.d.ts.map +0 -1
  68. package/dist/cjs/layout-items/universalAddress.js +0 -13
  69. package/dist/cjs/layout-items/universalAddress.js.map +0 -1
  70. package/dist/cjs/package.json +0 -1
  71. package/dist/cjs/platform.d.ts +0 -70
  72. package/dist/cjs/platform.d.ts.map +0 -1
  73. package/dist/cjs/platform.js +0 -38
  74. package/dist/cjs/platform.js.map +0 -1
  75. package/dist/cjs/protocol.d.ts +0 -44
  76. package/dist/cjs/protocol.d.ts.map +0 -1
  77. package/dist/cjs/protocol.js +0 -50
  78. package/dist/cjs/protocol.js.map +0 -1
  79. package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.d.ts +0 -216
  80. package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.d.ts.map +0 -1
  81. package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.js +0 -41
  82. package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.js.map +0 -1
  83. package/dist/cjs/protocols/circleBridge/circleBridge.d.ts +0 -134
  84. package/dist/cjs/protocols/circleBridge/circleBridge.d.ts.map +0 -1
  85. package/dist/cjs/protocols/circleBridge/circleBridge.js +0 -38
  86. package/dist/cjs/protocols/circleBridge/circleBridge.js.map +0 -1
  87. package/dist/cjs/protocols/circleBridge/circleBridgeLayout.d.ts +0 -172
  88. package/dist/cjs/protocols/circleBridge/circleBridgeLayout.d.ts.map +0 -1
  89. package/dist/cjs/protocols/circleBridge/circleBridgeLayout.js +0 -38
  90. package/dist/cjs/protocols/circleBridge/circleBridgeLayout.js.map +0 -1
  91. package/dist/cjs/protocols/circleBridge/index.d.ts +0 -5
  92. package/dist/cjs/protocols/circleBridge/index.d.ts.map +0 -1
  93. package/dist/cjs/protocols/circleBridge/index.js +0 -20
  94. package/dist/cjs/protocols/circleBridge/index.js.map +0 -1
  95. package/dist/cjs/protocols/core/core.d.ts +0 -75
  96. package/dist/cjs/protocols/core/core.d.ts.map +0 -1
  97. package/dist/cjs/protocols/core/core.js +0 -4
  98. package/dist/cjs/protocols/core/core.js.map +0 -1
  99. package/dist/cjs/protocols/core/index.d.ts +0 -3
  100. package/dist/cjs/protocols/core/index.d.ts.map +0 -1
  101. package/dist/cjs/protocols/core/index.js +0 -18
  102. package/dist/cjs/protocols/core/index.js.map +0 -1
  103. package/dist/cjs/protocols/executor/api.d.ts +0 -67
  104. package/dist/cjs/protocols/executor/api.d.ts.map +0 -1
  105. package/dist/cjs/protocols/executor/api.js +0 -88
  106. package/dist/cjs/protocols/executor/api.js.map +0 -1
  107. package/dist/cjs/protocols/executor/index.d.ts +0 -4
  108. package/dist/cjs/protocols/executor/index.d.ts.map +0 -1
  109. package/dist/cjs/protocols/executor/index.js +0 -20
  110. package/dist/cjs/protocols/executor/index.js.map +0 -1
  111. package/dist/cjs/protocols/executor/relayInstruction.d.ts +0 -124
  112. package/dist/cjs/protocols/executor/relayInstruction.d.ts.map +0 -1
  113. package/dist/cjs/protocols/executor/relayInstruction.js +0 -38
  114. package/dist/cjs/protocols/executor/relayInstruction.js.map +0 -1
  115. package/dist/cjs/protocols/executor/signedQuote.d.ts +0 -102
  116. package/dist/cjs/protocols/executor/signedQuote.d.ts.map +0 -1
  117. package/dist/cjs/protocols/executor/signedQuote.js +0 -46
  118. package/dist/cjs/protocols/executor/signedQuote.js.map +0 -1
  119. package/dist/cjs/protocols/governance/gateway.d.ts +0 -16
  120. package/dist/cjs/protocols/governance/gateway.d.ts.map +0 -1
  121. package/dist/cjs/protocols/governance/gateway.js +0 -4
  122. package/dist/cjs/protocols/governance/gateway.js.map +0 -1
  123. package/dist/cjs/protocols/governance/generalPurpose.d.ts +0 -16
  124. package/dist/cjs/protocols/governance/generalPurpose.d.ts.map +0 -1
  125. package/dist/cjs/protocols/governance/generalPurpose.js +0 -4
  126. package/dist/cjs/protocols/governance/generalPurpose.js.map +0 -1
  127. package/dist/cjs/protocols/governance/globalAccountant.d.ts +0 -17
  128. package/dist/cjs/protocols/governance/globalAccountant.d.ts.map +0 -1
  129. package/dist/cjs/protocols/governance/globalAccountant.js +0 -10
  130. package/dist/cjs/protocols/governance/globalAccountant.js.map +0 -1
  131. package/dist/cjs/protocols/governance/ibcReceiver.d.ts +0 -16
  132. package/dist/cjs/protocols/governance/ibcReceiver.d.ts.map +0 -1
  133. package/dist/cjs/protocols/governance/ibcReceiver.js +0 -4
  134. package/dist/cjs/protocols/governance/ibcReceiver.js.map +0 -1
  135. package/dist/cjs/protocols/governance/index.d.ts +0 -7
  136. package/dist/cjs/protocols/governance/index.d.ts.map +0 -1
  137. package/dist/cjs/protocols/governance/index.js +0 -18
  138. package/dist/cjs/protocols/governance/index.js.map +0 -1
  139. package/dist/cjs/protocols/governance/layout.d.ts +0 -1187
  140. package/dist/cjs/protocols/governance/layout.d.ts.map +0 -1
  141. package/dist/cjs/protocols/governance/layout.js +0 -253
  142. package/dist/cjs/protocols/governance/layout.js.map +0 -1
  143. package/dist/cjs/protocols/governance/wormchainGovernance.d.ts +0 -16
  144. package/dist/cjs/protocols/governance/wormchainGovernance.d.ts.map +0 -1
  145. package/dist/cjs/protocols/governance/wormchainGovernance.js +0 -4
  146. package/dist/cjs/protocols/governance/wormchainGovernance.js.map +0 -1
  147. package/dist/cjs/protocols/ibc/ibc.d.ts +0 -97
  148. package/dist/cjs/protocols/ibc/ibc.d.ts.map +0 -1
  149. package/dist/cjs/protocols/ibc/ibc.js +0 -79
  150. package/dist/cjs/protocols/ibc/ibc.js.map +0 -1
  151. package/dist/cjs/protocols/ibc/index.d.ts +0 -3
  152. package/dist/cjs/protocols/ibc/index.d.ts.map +0 -1
  153. package/dist/cjs/protocols/ibc/index.js +0 -18
  154. package/dist/cjs/protocols/ibc/index.js.map +0 -1
  155. package/dist/cjs/protocols/index.d.ts +0 -10
  156. package/dist/cjs/protocols/index.d.ts.map +0 -1
  157. package/dist/cjs/protocols/index.js +0 -26
  158. package/dist/cjs/protocols/index.js.map +0 -1
  159. package/dist/cjs/protocols/nftBridge/index.d.ts +0 -2
  160. package/dist/cjs/protocols/nftBridge/index.d.ts.map +0 -1
  161. package/dist/cjs/protocols/nftBridge/index.js +0 -18
  162. package/dist/cjs/protocols/nftBridge/index.js.map +0 -1
  163. package/dist/cjs/protocols/nftBridge/nftBridge.d.ts +0 -13
  164. package/dist/cjs/protocols/nftBridge/nftBridge.d.ts.map +0 -1
  165. package/dist/cjs/protocols/nftBridge/nftBridge.js +0 -4
  166. package/dist/cjs/protocols/nftBridge/nftBridge.js.map +0 -1
  167. package/dist/cjs/protocols/portico/index.d.ts +0 -3
  168. package/dist/cjs/protocols/portico/index.d.ts.map +0 -1
  169. package/dist/cjs/protocols/portico/index.js +0 -19
  170. package/dist/cjs/protocols/portico/index.js.map +0 -1
  171. package/dist/cjs/protocols/portico/portico.d.ts +0 -71
  172. package/dist/cjs/protocols/portico/portico.d.ts.map +0 -1
  173. package/dist/cjs/protocols/portico/portico.js +0 -25
  174. package/dist/cjs/protocols/portico/portico.js.map +0 -1
  175. package/dist/cjs/protocols/portico/porticoLayout.d.ts +0 -321
  176. package/dist/cjs/protocols/portico/porticoLayout.d.ts.map +0 -1
  177. package/dist/cjs/protocols/portico/porticoLayout.js +0 -44
  178. package/dist/cjs/protocols/portico/porticoLayout.js.map +0 -1
  179. package/dist/cjs/protocols/relayer/index.d.ts +0 -3
  180. package/dist/cjs/protocols/relayer/index.d.ts.map +0 -1
  181. package/dist/cjs/protocols/relayer/index.js +0 -18
  182. package/dist/cjs/protocols/relayer/index.js.map +0 -1
  183. package/dist/cjs/protocols/relayer/relayer.d.ts +0 -22
  184. package/dist/cjs/protocols/relayer/relayer.d.ts.map +0 -1
  185. package/dist/cjs/protocols/relayer/relayer.js +0 -4
  186. package/dist/cjs/protocols/relayer/relayer.js.map +0 -1
  187. package/dist/cjs/protocols/relayer/relayerLayout.d.ts +0 -430
  188. package/dist/cjs/protocols/relayer/relayerLayout.d.ts.map +0 -1
  189. package/dist/cjs/protocols/relayer/relayerLayout.js +0 -75
  190. package/dist/cjs/protocols/relayer/relayerLayout.js.map +0 -1
  191. package/dist/cjs/protocols/tbtc/index.d.ts +0 -3
  192. package/dist/cjs/protocols/tbtc/index.d.ts.map +0 -1
  193. package/dist/cjs/protocols/tbtc/index.js +0 -19
  194. package/dist/cjs/protocols/tbtc/index.js.map +0 -1
  195. package/dist/cjs/protocols/tbtc/tbtc.d.ts +0 -35
  196. package/dist/cjs/protocols/tbtc/tbtc.d.ts.map +0 -1
  197. package/dist/cjs/protocols/tbtc/tbtc.js +0 -24
  198. package/dist/cjs/protocols/tbtc/tbtc.js.map +0 -1
  199. package/dist/cjs/protocols/tbtc/tbtcLayout.d.ts +0 -142
  200. package/dist/cjs/protocols/tbtc/tbtcLayout.d.ts.map +0 -1
  201. package/dist/cjs/protocols/tbtc/tbtcLayout.js +0 -20
  202. package/dist/cjs/protocols/tbtc/tbtcLayout.js.map +0 -1
  203. package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +0 -115
  204. package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts.map +0 -1
  205. package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.js +0 -21
  206. package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.js.map +0 -1
  207. package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.d.ts +0 -87
  208. package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.d.ts.map +0 -1
  209. package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.js +0 -14
  210. package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.js.map +0 -1
  211. package/dist/cjs/protocols/tokenBridge/index.d.ts +0 -6
  212. package/dist/cjs/protocols/tokenBridge/index.d.ts.map +0 -1
  213. package/dist/cjs/protocols/tokenBridge/index.js +0 -21
  214. package/dist/cjs/protocols/tokenBridge/index.js.map +0 -1
  215. package/dist/cjs/protocols/tokenBridge/tokenBridge.d.ts +0 -235
  216. package/dist/cjs/protocols/tokenBridge/tokenBridge.d.ts.map +0 -1
  217. package/dist/cjs/protocols/tokenBridge/tokenBridge.js +0 -39
  218. package/dist/cjs/protocols/tokenBridge/tokenBridge.js.map +0 -1
  219. package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts +0 -286
  220. package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts.map +0 -1
  221. package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.js +0 -70
  222. package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.js.map +0 -1
  223. package/dist/cjs/registry.d.ts +0 -20
  224. package/dist/cjs/registry.d.ts.map +0 -1
  225. package/dist/cjs/registry.js +0 -3
  226. package/dist/cjs/registry.js.map +0 -1
  227. package/dist/cjs/rpc.d.ts +0 -4
  228. package/dist/cjs/rpc.d.ts.map +0 -1
  229. package/dist/cjs/rpc.js +0 -3
  230. package/dist/cjs/rpc.js.map +0 -1
  231. package/dist/cjs/signature.d.ts +0 -16
  232. package/dist/cjs/signature.d.ts.map +0 -1
  233. package/dist/cjs/signature.js +0 -52
  234. package/dist/cjs/signature.js.map +0 -1
  235. package/dist/cjs/signer.d.ts +0 -53
  236. package/dist/cjs/signer.d.ts.map +0 -1
  237. package/dist/cjs/signer.js +0 -51
  238. package/dist/cjs/signer.js.map +0 -1
  239. package/dist/cjs/testing/index.d.ts +0 -3
  240. package/dist/cjs/testing/index.d.ts.map +0 -1
  241. package/dist/cjs/testing/index.js +0 -29
  242. package/dist/cjs/testing/index.js.map +0 -1
  243. package/dist/cjs/testing/mocks/api.d.ts +0 -7
  244. package/dist/cjs/testing/mocks/api.d.ts.map +0 -1
  245. package/dist/cjs/testing/mocks/api.js +0 -14
  246. package/dist/cjs/testing/mocks/api.js.map +0 -1
  247. package/dist/cjs/testing/mocks/chain.d.ts +0 -8
  248. package/dist/cjs/testing/mocks/chain.d.ts.map +0 -1
  249. package/dist/cjs/testing/mocks/chain.js +0 -15
  250. package/dist/cjs/testing/mocks/chain.js.map +0 -1
  251. package/dist/cjs/testing/mocks/guardian.d.ts +0 -25
  252. package/dist/cjs/testing/mocks/guardian.d.ts.map +0 -1
  253. package/dist/cjs/testing/mocks/guardian.js +0 -77
  254. package/dist/cjs/testing/mocks/guardian.js.map +0 -1
  255. package/dist/cjs/testing/mocks/index.d.ts +0 -6
  256. package/dist/cjs/testing/mocks/index.d.ts.map +0 -1
  257. package/dist/cjs/testing/mocks/index.js +0 -22
  258. package/dist/cjs/testing/mocks/index.js.map +0 -1
  259. package/dist/cjs/testing/mocks/platform.d.ts +0 -15
  260. package/dist/cjs/testing/mocks/platform.d.ts.map +0 -1
  261. package/dist/cjs/testing/mocks/platform.js +0 -98
  262. package/dist/cjs/testing/mocks/platform.js.map +0 -1
  263. package/dist/cjs/testing/mocks/rpc.d.ts +0 -7
  264. package/dist/cjs/testing/mocks/rpc.d.ts.map +0 -1
  265. package/dist/cjs/testing/mocks/rpc.js +0 -14
  266. package/dist/cjs/testing/mocks/rpc.js.map +0 -1
  267. package/dist/cjs/testing/mocks/tokenBridge.d.ts +0 -19
  268. package/dist/cjs/testing/mocks/tokenBridge.d.ts.map +0 -1
  269. package/dist/cjs/testing/mocks/tokenBridge.js +0 -47
  270. package/dist/cjs/testing/mocks/tokenBridge.js.map +0 -1
  271. package/dist/cjs/testing/utils/address.d.ts +0 -9
  272. package/dist/cjs/testing/utils/address.d.ts.map +0 -1
  273. package/dist/cjs/testing/utils/address.js +0 -65
  274. package/dist/cjs/testing/utils/address.js.map +0 -1
  275. package/dist/cjs/testing/utils/index.d.ts +0 -3
  276. package/dist/cjs/testing/utils/index.d.ts.map +0 -1
  277. package/dist/cjs/testing/utils/index.js +0 -25
  278. package/dist/cjs/testing/utils/index.js.map +0 -1
  279. package/dist/cjs/testing/utils/vaa.d.ts +0 -10
  280. package/dist/cjs/testing/utils/vaa.d.ts.map +0 -1
  281. package/dist/cjs/testing/utils/vaa.js +0 -16
  282. package/dist/cjs/testing/utils/vaa.js.map +0 -1
  283. package/dist/cjs/types.d.ts +0 -94
  284. package/dist/cjs/types.d.ts.map +0 -1
  285. package/dist/cjs/types.js +0 -125
  286. package/dist/cjs/types.js.map +0 -1
  287. package/dist/cjs/universalAddress.d.ts +0 -24
  288. package/dist/cjs/universalAddress.d.ts.map +0 -1
  289. package/dist/cjs/universalAddress.js +0 -79
  290. package/dist/cjs/universalAddress.js.map +0 -1
  291. package/dist/cjs/unsignedTransaction.d.ts +0 -13
  292. package/dist/cjs/unsignedTransaction.d.ts.map +0 -1
  293. package/dist/cjs/unsignedTransaction.js +0 -3
  294. package/dist/cjs/unsignedTransaction.js.map +0 -1
  295. package/dist/cjs/utils.d.ts +0 -7
  296. package/dist/cjs/utils.d.ts.map +0 -1
  297. package/dist/cjs/utils.js +0 -15
  298. package/dist/cjs/utils.js.map +0 -1
  299. package/dist/cjs/vaa/create.d.ts +0 -15
  300. package/dist/cjs/vaa/create.d.ts.map +0 -1
  301. package/dist/cjs/vaa/create.js +0 -34
  302. package/dist/cjs/vaa/create.js.map +0 -1
  303. package/dist/cjs/vaa/functions.d.ts +0 -98
  304. package/dist/cjs/vaa/functions.d.ts.map +0 -1
  305. package/dist/cjs/vaa/functions.js +0 -225
  306. package/dist/cjs/vaa/functions.js.map +0 -1
  307. package/dist/cjs/vaa/index.d.ts +0 -5
  308. package/dist/cjs/vaa/index.d.ts.map +0 -1
  309. package/dist/cjs/vaa/index.js +0 -21
  310. package/dist/cjs/vaa/index.js.map +0 -1
  311. package/dist/cjs/vaa/registration.d.ts +0 -19
  312. package/dist/cjs/vaa/registration.d.ts.map +0 -1
  313. package/dist/cjs/vaa/registration.js +0 -19
  314. package/dist/cjs/vaa/registration.js.map +0 -1
  315. package/dist/cjs/vaa/vaa.d.ts +0 -190
  316. package/dist/cjs/vaa/vaa.d.ts.map +0 -1
  317. package/dist/cjs/vaa/vaa.js +0 -31
  318. package/dist/cjs/vaa/vaa.js.map +0 -1
package/dist/cjs/chain.js DELETED
@@ -1,301 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChainContext = void 0;
4
- const tokens_1 = require("@wormhole-foundation/sdk-base/tokens");
5
- const address_js_1 = require("./address.js");
6
- const protocol_js_1 = require("./protocol.js");
7
- const types_js_1 = require("./types.js");
8
- /**
9
- * A ChainContext provides a consistent interface for interacting with a chain.
10
- * It holds the configuration for the chain and cached RPC and protocol clients.
11
- *
12
- */
13
- class ChainContext {
14
- network;
15
- chain;
16
- config;
17
- platform;
18
- rpc;
19
- // Cached Protocol clients
20
- protocols = new Map();
21
- constructor(chain, platform, rpc) {
22
- this.config = platform.config[chain];
23
- this.platform = platform;
24
- this.chain = this.config.key;
25
- this.network = this.config.network;
26
- this.rpc = rpc;
27
- }
28
- /**
29
- * Get an RPC connection for this chain, uses the configuration passed in
30
- * the initial constructor
31
- *
32
- * @returns the RPC connection for this chain
33
- */
34
- getRpc() {
35
- this.rpc = this.rpc ? this.rpc : this.platform.getRpc(this.chain);
36
- return this.rpc;
37
- }
38
- /**
39
- * Get the number of decimals for a token
40
- *
41
- * @param token the token to get the decimals for
42
- * @returns the number of decimals for the token
43
- */
44
- async getDecimals(token) {
45
- if ((0, types_js_1.isNative)(token))
46
- return this.config.nativeTokenDecimals;
47
- // try to find it in the token cache first
48
- if (this.config.tokenMap) {
49
- const tokenAddress = (0, types_js_1.canonicalAddress)({ chain: this.chain, address: token });
50
- const found = (0, tokens_1.getTokenByAddress)(this.network, this.chain, tokenAddress);
51
- if (found)
52
- return found.decimals;
53
- }
54
- return this.platform.utils().getDecimals(this.network, this.chain, await this.getRpc(), token);
55
- }
56
- /**
57
- * Get the balance of a token for a given address
58
- *
59
- * @param walletAddr the address to get the balance for
60
- * @param token the token to get the balance for
61
- * @returns the balance of the token for the address
62
- *
63
- */
64
- async getBalance(walletAddr, token) {
65
- return this.platform
66
- .utils()
67
- .getBalance(this.network, this.chain, await this.getRpc(), walletAddr, token);
68
- }
69
- /**
70
- * Get the latest block number seen by the chain according to the RPC
71
- *
72
- * @returns the latest block number
73
- */
74
- async getLatestBlock() {
75
- return this.platform.utils().getLatestBlock(await this.getRpc());
76
- }
77
- /**
78
- * Get the latest _finalized_ block number seen by the chain according to the RPC
79
- *
80
- * @returns the latest finalized block number
81
- */
82
- async getLatestFinalizedBlock() {
83
- return this.platform.utils().getLatestFinalizedBlock(await this.getRpc());
84
- }
85
- /**
86
- * Parse the Wormhole Core messages from a transaction
87
- *
88
- * @param txid the transaction to parse
89
- * @returns the Wormhole Core messages emitted by the transaction
90
- */
91
- async parseTransaction(txid) {
92
- return this.platform.parseWormholeMessages(this.chain, await this.getRpc(), txid);
93
- }
94
- /**
95
- * Send a transaction and wait for it to be confirmed
96
- *
97
- * @param stxns the signed transaction to send
98
- * @returns the transaction hashes of the sent transactions
99
- */
100
- async sendWait(stxns) {
101
- return this.platform.utils().sendWait(this.chain, await this.getRpc(), stxns);
102
- }
103
- /**
104
- * Get the token data from the local cache if available
105
- * @param symbol the symbol of the token to get
106
- * @returns the token data if available
107
- */
108
- getToken(symbol) {
109
- if (!this.config.tokenMap)
110
- return;
111
- if (!(symbol in this.config.tokenMap))
112
- return;
113
- return this.config.tokenMap[symbol];
114
- }
115
- /**
116
- * Get the token id of the wrapped token for the native gas token
117
- *
118
- * @returns the wrapped token for the native gas token
119
- */
120
- async getNativeWrappedTokenId() {
121
- // see if we have it configured
122
- if (this.config.wrappedNative) {
123
- const { address } = this.config.wrappedNative;
124
- return { chain: this.chain, address: (0, address_js_1.toNative)(this.chain, address) };
125
- }
126
- // otherwise grab it from the token bridge fn
127
- const tb = await this.getTokenBridge();
128
- return { chain: this.chain, address: await tb.getWrappedNative() };
129
- }
130
- /**
131
- * Get the token account for a given address and token
132
- *
133
- * @remarks
134
- * This is really only useful in the context of Solana but in order
135
- * to provide a consistent interface, we provide it here.
136
- *
137
- * @param address the address to get the token account for
138
- * @param token the token to get the token account for
139
- * @returns the token account for the address and token
140
- */
141
- async getTokenAccount(address, token) {
142
- // Noop by default, override in implementation if necessary
143
- return { chain: this.chain, address };
144
- }
145
- /**
146
- * Check if a token uses the Token2022 program
147
- *
148
- * @remarks
149
- * This is really only useful in the context of Solana but in order
150
- * to provide a consistent interface, we provide it here.
151
- *
152
- * @param token the token to check
153
- * @returns true if the token uses the Token2022 program, false otherwise
154
- */
155
- async isToken2022(token) {
156
- // Return false by default, override in implementation if necessary
157
- return false;
158
- }
159
- /**
160
- * Check to see if a given protocol is supported by this chain
161
- * by checking if it is registered in the platform and the configuration
162
- * is available and correct
163
- *
164
- * @param protocolName the name of the Protocol to check for support
165
- * @returns a boolean indicating if this protocol is supported
166
- */
167
- supportsProtocol(protocolName) {
168
- return (0, protocol_js_1.protocolIsRegistered)(this.chain, protocolName);
169
- }
170
- /**
171
- * Construct a protocol client for the given protocol
172
- *
173
- * Note: If no contracts are passed, we assume the default contracts should be used
174
- * and that the protocol client is cacheable
175
- *
176
- * @param protocolName The name of the protocol to construct a client for
177
- * @returns An instance of the protocol client that implements the protocol interface for the chain
178
- */
179
- async getProtocol(protocolName, contracts, rpc) {
180
- if (!contracts && this.protocols.has(protocolName))
181
- return this.protocols.get(protocolName);
182
- const _contracts = contracts
183
- ? { ...this.config.contracts, ...contracts }
184
- : this.config.contracts;
185
- const _rpc = rpc ?? (await this.getRpc());
186
- const ctor = this.platform.getProtocolInitializer(protocolName);
187
- let protocol;
188
- if (rpc) {
189
- if (contracts)
190
- // TODO: the platforms `getProtocol` does not allow passing contracts
191
- // it would need to be updated to allow this
192
- throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");
193
- // This ultimately calls fromRpc which _should_ handle version fetching
194
- protocol = await this.platform.getProtocol(protocolName, _rpc);
195
- }
196
- else {
197
- if ((0, protocol_js_1.isVersionedProtocolInitializer)(ctor)) {
198
- const version = await ctor.getVersion(_rpc, _contracts);
199
- protocol = new ctor(this.network, this.chain, _rpc, _contracts, version);
200
- }
201
- else {
202
- protocol = new ctor(this.network, this.chain, _rpc, _contracts);
203
- }
204
- }
205
- if (!contracts)
206
- this.protocols.set(protocolName, protocol);
207
- return protocol;
208
- }
209
- /**
210
- * Check to see if the Wormhole Core protocol is supported by this chain
211
- * @returns a boolean indicating if this chain supports the Wormhole Core protocol
212
- */
213
- supportsWormholeCore = () => this.supportsProtocol("WormholeCore");
214
- /**
215
- * Get the Wormhole Core protocol client for this chain
216
- * @returns the Wormhole Core protocol client for this chain
217
- */
218
- getWormholeCore = () => this.getProtocol("WormholeCore");
219
- /**
220
- * Check to see if the Token Bridge protocol is supported by this chain
221
- * @returns a boolean indicating if this chain supports the Token Bridge protocol
222
- */
223
- supportsTokenBridge = () => this.supportsProtocol("TokenBridge");
224
- /**
225
- * Get the Token Bridge protocol client for this chain
226
- * @returns the Token Bridge protocol client for this chain
227
- */
228
- getTokenBridge = () => this.getProtocol("TokenBridge");
229
- /**
230
- * Check to see if the Automatic Token Bridge protocol is supported by this chain
231
- * @returns a boolean indicating if this chain supports the Automatic Token Bridge protocol
232
- */
233
- supportsAutomaticTokenBridge = () => this.supportsProtocol("AutomaticTokenBridge");
234
- /**
235
- * Get the Automatic Token Bridge protocol client for this chain
236
- * @returns the Automatic Token Bridge protocol client for this chain
237
- */
238
- getAutomaticTokenBridge = () => this.getProtocol("AutomaticTokenBridge");
239
- /**
240
- * Check to see if the Executor Token Bridge protocol is supported by this chain
241
- * @returns a boolean indicating if this chain supports the Executor Token Bridge protocol
242
- */
243
- supportsExecutorTokenBridge = () => this.supportsProtocol("ExecutorTokenBridge");
244
- /**
245
- * Get the Executor Token Bridge protocol client for this chain
246
- * @returns the Executor Token Bridge protocol client for this chain
247
- */
248
- getExecutorTokenBridge = () => this.getProtocol("ExecutorTokenBridge");
249
- /**
250
- * Check to see if the Circle Bridge protocol is supported by this chain
251
- * @returns a boolean indicating if this chain supports the Circle Bridge protocol
252
- */
253
- supportsCircleBridge = () => this.supportsProtocol("CircleBridge");
254
- /**
255
- * Get the Circle Bridge protocol client for this chain
256
- * @returns the Circle Bridge protocol client for this chain
257
- */
258
- getCircleBridge = () => this.getProtocol("CircleBridge");
259
- /**
260
- * Check to see if the Automatic Circle Bridge protocol is supported by this chain
261
- * @returns a boolean indicating if this chain supports the Automatic Circle Bridge protocol
262
- */
263
- supportsAutomaticCircleBridge = () => this.supportsProtocol("AutomaticCircleBridge");
264
- /**
265
- * Get the Automatic Circle Bridge protocol client for this chain
266
- * @returns the Automatic Circle Bridge protocol client for this chain
267
- */
268
- getAutomaticCircleBridge = () => this.getProtocol("AutomaticCircleBridge");
269
- /**
270
- * Check to see if the IBC Bridge protocol is supported by this chain
271
- * @returns a boolean indicating if this chain supports the IBC Bridge protocol
272
- */
273
- supportsIbcBridge = () => this.supportsProtocol("IbcBridge");
274
- /**
275
- * Get the IBC Bridge protocol client for this chain
276
- * @returns the IBC Bridge protocol client for this chain
277
- */
278
- getIbcBridge = () => this.getProtocol("IbcBridge");
279
- /**
280
- * Check to see if the Portico Bridge protocol is supported by this chain
281
- * @returns a boolean indicating if this chain supports the Portico Bridge protocol
282
- */
283
- supportsPorticoBridge = () => this.supportsProtocol("PorticoBridge");
284
- /**
285
- * Get the Portico Bridge protocol client for this chain
286
- * @returns the Portico Bridge protocol client for this chain
287
- */
288
- getPorticoBridge = () => this.getProtocol("PorticoBridge");
289
- /**
290
- * Check to see if the TBTC Bridge protocol is supported by this chain
291
- * @returns a boolean indicating if this chain supports the TBTC Bridge protocol
292
- */
293
- supportsTBTCBridge = () => this.supportsProtocol("TBTCBridge");
294
- /**
295
- * Get the TBTC Bridge protocol client for this chain
296
- * @returns the TBTC Bridge protocol client for this chain
297
- */
298
- getTBTCBridge = () => this.getProtocol("TBTCBridge");
299
- }
300
- exports.ChainContext = ChainContext;
301
- //# sourceMappingURL=chain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain.js","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":";;;AAQA,iEAAyE;AAEzE,6CAAwC;AAaxC,+CAAqF;AAQrF,yCAAwD;AAExD;;;;GAIG;AACH,MAAsB,YAAY;IAKvB,OAAO,CAAI;IACX,KAAK,CAAI;IACT,MAAM,CAAoB;IAC1B,QAAQ,CAAwB;IAE/B,GAAG,CAAoB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H,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC7D;;;OAGG;IACH,YAAY,GAAG,GAA6B,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAE7E;;;OAGG;IACH,qBAAqB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACrE;;;OAGG;IACH,gBAAgB,GAAG,GAAiC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAEzF;;;OAGG;IACH,kBAAkB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAE/D;;;OAGG;IACH,aAAa,GAAG,GAA8B,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;CACjF;AAxUD,oCAwUC"}
@@ -1,31 +0,0 @@
1
- import type { Chain, Network } from "@wormhole-foundation/sdk-base";
2
- import { contracts } from "@wormhole-foundation/sdk-base";
3
- type UnknownContracts = Record<string, any>;
4
- /** The Contract addresses set in configuration for a given chain */
5
- export type Contracts = {
6
- coreBridge?: string;
7
- tokenBridge?: string;
8
- tokenBridgeRelayer?: string;
9
- executorTokenBridge?: contracts.ExecutorTokenBridgeContracts;
10
- nftBridge?: string;
11
- relayer?: string;
12
- cctp?: contracts.CircleContracts;
13
- gateway?: string;
14
- translator?: string;
15
- portico?: contracts.PorticoContracts;
16
- tbtc?: string;
17
- executor?: string;
18
- customConsistencyLevel?: string;
19
- executorQuoter?: string;
20
- } & UnknownContracts;
21
- /**
22
- *
23
- * Get the contracts for a given network and chain
24
- *
25
- * @param n the network to get contracts for
26
- * @param c the chain to get contracts for
27
- * @returns the contracts for the given network and chain
28
- */
29
- export declare function getContracts(n: Network, c: Chain): Contracts;
30
- export {};
31
- //# sourceMappingURL=contracts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAI1D,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5C,oEAAoE;AACpE,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,gBAAgB,CAAC;AAErB;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,GAAG,SAAS,CAsC5D"}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getContracts = void 0;
4
- const sdk_base_1 = require("@wormhole-foundation/sdk-base");
5
- /**
6
- *
7
- * Get the contracts for a given network and chain
8
- *
9
- * @param n the network to get contracts for
10
- * @param c the chain to get contracts for
11
- * @returns the contracts for the given network and chain
12
- */
13
- function getContracts(n, c) {
14
- const ct = {
15
- coreBridge: sdk_base_1.contracts.coreBridge.get(n, c),
16
- tokenBridge: sdk_base_1.contracts.tokenBridge.get(n, c),
17
- nftBridge: sdk_base_1.contracts.nftBridge.get(n, c),
18
- relayer: sdk_base_1.contracts.relayer.get(n, c),
19
- tokenBridgeRelayer: sdk_base_1.contracts.tokenBridgeRelayer.get(n, c),
20
- tbtc: sdk_base_1.contracts.tbtc.get(n, c),
21
- executor: sdk_base_1.contracts.executor.get(n, c),
22
- customConsistencyLevel: sdk_base_1.contracts.customConsistencyLevel.get(n, c),
23
- executorQuoter: sdk_base_1.contracts.executorQuoter.get(n, c),
24
- };
25
- if (sdk_base_1.contracts.executorTokenBridge.has(n, c)) {
26
- ct.executorTokenBridge = sdk_base_1.contracts.executorTokenBridge.get(n, c);
27
- }
28
- if (sdk_base_1.contracts.circleContracts.has(n, c)) {
29
- ct.cctp = sdk_base_1.contracts.circleContracts.get(n, c);
30
- }
31
- if (sdk_base_1.contracts.gateway.has(n, c)) {
32
- ct.gateway = sdk_base_1.contracts.gateway.get(n, c);
33
- }
34
- if (sdk_base_1.contracts.translator.has(n, c)) {
35
- ct.translator = sdk_base_1.contracts.translator.get(n, c);
36
- }
37
- if (sdk_base_1.contracts.portico.has(n, c)) {
38
- ct.portico = sdk_base_1.contracts.portico.get(n, c);
39
- }
40
- if (sdk_base_1.contracts.tbtc.has(n, c)) {
41
- ct.tbtc = sdk_base_1.contracts.tbtc.get(n, c);
42
- }
43
- return ct;
44
- }
45
- exports.getContracts = getContracts;
46
- //# sourceMappingURL=contracts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/contracts.ts"],"names":[],"mappings":";;;AACA,4DAA0D;AAwB1D;;;;;;;GAOG;AACH,SAAgB,YAAY,CAAC,CAAU,EAAE,CAAQ;IAC/C,MAAM,EAAE,GAAc;QACpB,UAAU,EAAE,oBAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,CAA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,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,oBAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QACnC,EAAE,CAAC,UAAU,GAAG,oBAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,oBAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QAChC,EAAE,CAAC,OAAO,GAAG,oBAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,oBAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QAC7B,EAAE,CAAC,IAAI,GAAG,oBAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAtCD,oCAsCC"}
@@ -1,18 +0,0 @@
1
- export * from "./registry.js";
2
- export * from "./address.js";
3
- export * from "./protocol.js";
4
- export * from "./universalAddress.js";
5
- export * from "./unsignedTransaction.js";
6
- export * from "./vaa/index.js";
7
- export * from "./utils.js";
8
- export * from "./platform.js";
9
- export * from "./chain.js";
10
- export * from "./contracts.js";
11
- export * from "./signature.js";
12
- export * from "./signer.js";
13
- export * from "./rpc.js";
14
- export * from "./attestation.js";
15
- export * from "./types.js";
16
- export * from "./protocols/index.js";
17
- export * as layoutItems from "./layout-items/index.js";
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC"}
package/dist/cjs/index.js DELETED
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.layoutItems = void 0;
30
- __exportStar(require("./registry.js"), exports);
31
- __exportStar(require("./address.js"), exports);
32
- __exportStar(require("./protocol.js"), exports);
33
- __exportStar(require("./universalAddress.js"), exports);
34
- __exportStar(require("./unsignedTransaction.js"), exports);
35
- __exportStar(require("./vaa/index.js"), exports);
36
- __exportStar(require("./utils.js"), exports);
37
- __exportStar(require("./platform.js"), exports);
38
- __exportStar(require("./chain.js"), exports);
39
- __exportStar(require("./contracts.js"), exports);
40
- __exportStar(require("./signature.js"), exports);
41
- __exportStar(require("./signer.js"), exports);
42
- __exportStar(require("./rpc.js"), exports);
43
- __exportStar(require("./attestation.js"), exports);
44
- __exportStar(require("./types.js"), exports);
45
- __exportStar(require("./protocols/index.js"), exports);
46
- exports.layoutItems = __importStar(require("./layout-items/index.js"));
47
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B;AAC9B,wDAAsC;AACtC,2DAAyC;AACzC,iDAA+B;AAC/B,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B;AAC/B,8CAA4B;AAC5B,2CAAyB;AACzB,mDAAiC;AACjC,6CAA2B;AAC3B,uDAAqC;AACrC,uEAAuD"}
@@ -1,5 +0,0 @@
1
- export declare const amountItem: {
2
- readonly binary: "uint";
3
- readonly size: 32;
4
- };
5
- //# sourceMappingURL=amount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"amount.d.ts","sourceRoot":"","sources":["../../../src/layout-items/amount.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;CAGI,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.amountItem = void 0;
4
- exports.amountItem = {
5
- binary: "uint",
6
- size: 32,
7
- };
8
- //# sourceMappingURL=amount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"amount.js","sourceRoot":"","sources":["../../../src/layout-items/amount.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,EAAE;CACiB,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const boolItem: {
2
- readonly binary: "uint";
3
- readonly size: 1;
4
- readonly custom: {
5
- to: (encoded: number) => boolean;
6
- from: (val: boolean) => number;
7
- };
8
- };
9
- //# sourceMappingURL=boolean.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;sBAIH,MAAM,KAAG,OAAO;oBAClB,OAAO,KAAG,MAAM;;CAEL,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.boolItem = void 0;
4
- exports.boolItem = {
5
- binary: "uint",
6
- size: 1,
7
- custom: {
8
- to: (encoded) => encoded > 0,
9
- from: (val) => (val ? 1 : 0),
10
- },
11
- };
12
- //# sourceMappingURL=boolean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,CAAC;IACP,MAAM,EAAE;QACN,EAAE,EAAE,CAAC,OAAe,EAAW,EAAE,CAAC,OAAO,GAAG,CAAC;QAC7C,IAAI,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACF;CACpB,CAAC"}
@@ -1,85 +0,0 @@
1
- type AllowNull<T, B extends boolean> = B extends true ? T | null : T;
2
- export declare const chainItem: <const C extends readonly ("Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore")[] = ["Solana", "Ethereum", "Bsc", "Polygon", "Avalanche", "Algorand", "Klaytn", "Celo", "Near", "Moonbeam", "Injective", "Osmosis", "Sui", "Aptos", "Arbitrum", "Optimism", "Pythnet", "Btc", "Base", "Sei", "Linea", "Berachain", "Seievm", "Unichain", "Worldchain", "Ink", "HyperEVM", "Monad", "Mezo", "Fogo", "Sonic", "Converge", "Plume", "XRPLEVM", "Plasma", "CreditCoin", "Stacks", "Moca", "MegaETH", "Xrpl", "ZeroGravity", "Tempo", "Nexus", "Wormchain", "Cosmoshub", "Evmos", "Kujira", "Neutron", "Celestia", "Stargaze", "Seda", "Dymension", "Provenance", "Noble", "Sepolia", "ArbitrumSepolia", "BaseSepolia", "OptimismSepolia", "Holesky", "PolygonSepolia", "MonadTestnet", "HyperCore"], const N extends boolean = false>(opts?: {
3
- allowedChains?: C;
4
- allowNull?: N;
5
- }) => {
6
- readonly custom: {
7
- to: (val: number) => AllowNull<C[number], N>;
8
- from: (val: AllowNull<C[number], N>) => number;
9
- };
10
- readonly binary: "uint";
11
- readonly size: 2;
12
- };
13
- export declare const fixedChainItem: <const C extends "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">(chain: C) => {
14
- readonly custom: {
15
- to: C;
16
- from: {
17
- Solana: 1;
18
- Ethereum: 2;
19
- Bsc: 4;
20
- Polygon: 5;
21
- Avalanche: 6;
22
- Algorand: 8;
23
- Klaytn: 13;
24
- Celo: 14;
25
- Near: 15;
26
- Moonbeam: 16;
27
- Injective: 19;
28
- Osmosis: 20;
29
- Sui: 21;
30
- Aptos: 22;
31
- Arbitrum: 23;
32
- Optimism: 24;
33
- Pythnet: 26;
34
- Btc: 29;
35
- Base: 30;
36
- Sei: 32;
37
- Linea: 38;
38
- Berachain: 39;
39
- Seievm: 40;
40
- Unichain: 44;
41
- Worldchain: 45;
42
- Ink: 46;
43
- HyperEVM: 47;
44
- Monad: 48;
45
- Mezo: 50;
46
- Fogo: 51;
47
- Sonic: 52;
48
- Converge: 53;
49
- Plume: 55;
50
- XRPLEVM: 57;
51
- Plasma: 58;
52
- CreditCoin: 59;
53
- Stacks: 60;
54
- Moca: 63;
55
- MegaETH: 64;
56
- Xrpl: 66;
57
- ZeroGravity: 67;
58
- Tempo: 68;
59
- Nexus: 69;
60
- Wormchain: 3104;
61
- Cosmoshub: 4000;
62
- Evmos: 4001;
63
- Kujira: 4002;
64
- Neutron: 4003;
65
- Celestia: 4004;
66
- Stargaze: 4005;
67
- Seda: 4006;
68
- Dymension: 4007;
69
- Provenance: 4008;
70
- Noble: 4009;
71
- Sepolia: 10002;
72
- ArbitrumSepolia: 10003;
73
- BaseSepolia: 10004;
74
- OptimismSepolia: 10005;
75
- Holesky: 10006;
76
- PolygonSepolia: 10007;
77
- MonadTestnet: 10009;
78
- HyperCore: 65000;
79
- }[C extends bigint ? `bigint(${C})` : C extends boolean ? `boolean(${C})` : C];
80
- };
81
- readonly binary: "uint";
82
- readonly size: 2;
83
- };
84
- export {};
85
- //# sourceMappingURL=chain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/layout-items/chain.ts"],"names":[],"mappings":"AAUA,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAErE,eAAO,MAAM,SAAS,89CAGb;IACP,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;;kBAIe,MAAM,KAAG,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBAe9B,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM;;;;CAEpB,CAAC;AAE/B,eAAO,MAAM,cAAc,kwBAAkC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAC"}