viem 2.57.4 → 2.57.6

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 (372) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/_cjs/actions/public/waitForTransactionReceipt.js +5 -2
  3. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  4. package/_cjs/actions/wallet/waitForCallsStatus.js +25 -2
  5. package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
  6. package/_cjs/chains/definitions/arcTestnet.js +11 -8
  7. package/_cjs/chains/definitions/arcTestnet.js.map +1 -1
  8. package/_cjs/chains/definitions/qmsTestnet.js +30 -0
  9. package/_cjs/chains/definitions/qmsTestnet.js.map +1 -0
  10. package/_cjs/chains/definitions/tempo.js +1 -1
  11. package/_cjs/chains/definitions/tempoModerato.js +2 -2
  12. package/_cjs/chains/index.js +7 -5
  13. package/_cjs/chains/index.js.map +1 -1
  14. package/_cjs/clients/transports/ipc.js +19 -10
  15. package/_cjs/clients/transports/ipc.js.map +1 -1
  16. package/_cjs/clients/transports/webSocket.js +19 -10
  17. package/_cjs/clients/transports/webSocket.js.map +1 -1
  18. package/_cjs/errors/version.js +1 -1
  19. package/_cjs/tempo/Abis.js +297 -1
  20. package/_cjs/tempo/Abis.js.map +1 -1
  21. package/_cjs/tempo/Account.js +40 -40
  22. package/_cjs/tempo/Account.js.map +1 -1
  23. package/_cjs/tempo/Addresses.js +2 -1
  24. package/_cjs/tempo/Addresses.js.map +1 -1
  25. package/_cjs/tempo/Decorator.js +9 -8
  26. package/_cjs/tempo/Decorator.js.map +1 -1
  27. package/_cjs/tempo/ExecutionError.js +95 -4
  28. package/_cjs/tempo/ExecutionError.js.map +1 -1
  29. package/_cjs/tempo/Formatters.js +8 -7
  30. package/_cjs/tempo/Formatters.js.map +1 -1
  31. package/_cjs/tempo/KeyAuthorizationManager.js +25 -16
  32. package/_cjs/tempo/KeyAuthorizationManager.js.map +1 -1
  33. package/_cjs/tempo/Relay.js +9 -4
  34. package/_cjs/tempo/Relay.js.map +1 -1
  35. package/_cjs/tempo/Transaction.js +9 -9
  36. package/_cjs/tempo/Transaction.js.map +1 -1
  37. package/_cjs/tempo/Transport.js +21 -11
  38. package/_cjs/tempo/Transport.js.map +1 -1
  39. package/_cjs/tempo/{multisig → accounts}/Config.js +8 -8
  40. package/_cjs/tempo/{multisig → accounts}/Config.js.map +1 -1
  41. package/_cjs/tempo/{multisig → accounts}/Operation.js +10 -10
  42. package/_cjs/tempo/{multisig → accounts}/Operation.js.map +1 -1
  43. package/_cjs/tempo/{multisig → accounts}/Signature.js +2 -2
  44. package/_cjs/tempo/accounts/Signature.js.map +1 -0
  45. package/_cjs/tempo/actions/accessKey.js +442 -47
  46. package/_cjs/tempo/actions/accessKey.js.map +1 -1
  47. package/_cjs/tempo/actions/{multisig.js → accounts.js} +16 -20
  48. package/_cjs/tempo/actions/accounts.js.map +1 -0
  49. package/_cjs/tempo/actions/amm.js +90 -4
  50. package/_cjs/tempo/actions/amm.js.map +1 -1
  51. package/_cjs/tempo/actions/channel.js +183 -7
  52. package/_cjs/tempo/actions/channel.js.map +1 -1
  53. package/_cjs/tempo/actions/dex.js +507 -14
  54. package/_cjs/tempo/actions/dex.js.map +1 -1
  55. package/_cjs/tempo/actions/earn/deployment.js +4 -3
  56. package/_cjs/tempo/actions/earn/deployment.js.map +1 -1
  57. package/_cjs/tempo/actions/earn.js +22 -21
  58. package/_cjs/tempo/actions/earn.js.map +1 -1
  59. package/_cjs/tempo/actions/fee.js +85 -5
  60. package/_cjs/tempo/actions/fee.js.map +1 -1
  61. package/_cjs/tempo/actions/index.js +2 -2
  62. package/_cjs/tempo/actions/index.js.map +1 -1
  63. package/_cjs/tempo/actions/nonce.js +54 -1
  64. package/_cjs/tempo/actions/nonce.js.map +1 -1
  65. package/_cjs/tempo/actions/policy.js +35 -6
  66. package/_cjs/tempo/actions/policy.js.map +1 -1
  67. package/_cjs/tempo/actions/propAmm.js +18 -8
  68. package/_cjs/tempo/actions/propAmm.js.map +1 -1
  69. package/_cjs/tempo/actions/receivePolicy.js +7 -6
  70. package/_cjs/tempo/actions/receivePolicy.js.map +1 -1
  71. package/_cjs/tempo/actions/reward.js +7 -6
  72. package/_cjs/tempo/actions/reward.js.map +1 -1
  73. package/_cjs/tempo/actions/token.js +433 -22
  74. package/_cjs/tempo/actions/token.js.map +1 -1
  75. package/_cjs/tempo/actions/validator.js +12 -11
  76. package/_cjs/tempo/actions/validator.js.map +1 -1
  77. package/_cjs/tempo/actions/virtualAddress.js +3 -2
  78. package/_cjs/tempo/actions/virtualAddress.js.map +1 -1
  79. package/_cjs/tempo/actions/zone.js +12 -11
  80. package/_cjs/tempo/actions/zone.js.map +1 -1
  81. package/_cjs/tempo/chainConfig.js +37 -37
  82. package/_cjs/tempo/chainConfig.js.map +1 -1
  83. package/_cjs/tempo/errors.js +57 -1
  84. package/_cjs/tempo/errors.js.map +1 -1
  85. package/_cjs/tempo/index.js +3 -3
  86. package/_cjs/tempo/index.js.map +1 -1
  87. package/_cjs/tempo/internal/errors.js +46 -0
  88. package/_cjs/tempo/internal/errors.js.map +1 -0
  89. package/_cjs/tempo/internal/relay/{multisig.js → accounts.js} +90 -93
  90. package/_cjs/tempo/internal/relay/accounts.js.map +1 -0
  91. package/_cjs/tempo/internal/relay/keyAuthorization.js +296 -0
  92. package/_cjs/tempo/internal/relay/keyAuthorization.js.map +1 -0
  93. package/_cjs/tempo/internal/relay/plugin.js +17 -7
  94. package/_cjs/tempo/internal/relay/plugin.js.map +1 -1
  95. package/_cjs/tempo/internal/resolveError.js +128 -0
  96. package/_cjs/tempo/internal/resolveError.js.map +1 -0
  97. package/_cjs/tempo/internal/utils.js +1 -0
  98. package/_cjs/tempo/internal/utils.js.map +1 -1
  99. package/_cjs/utils/hash/normalizeSignature.js +1 -1
  100. package/_cjs/utils/hash/normalizeSignature.js.map +1 -1
  101. package/_cjs/utils/rpc/http.js +66 -31
  102. package/_cjs/utils/rpc/http.js.map +1 -1
  103. package/_cjs/utils/rpc/socket.js +1 -1
  104. package/_cjs/utils/rpc/socket.js.map +1 -1
  105. package/_esm/actions/public/waitForTransactionReceipt.js +5 -2
  106. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  107. package/_esm/actions/wallet/waitForCallsStatus.js +39 -2
  108. package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
  109. package/_esm/chains/definitions/arcTestnet.js +11 -8
  110. package/_esm/chains/definitions/arcTestnet.js.map +1 -1
  111. package/_esm/chains/definitions/qmsTestnet.js +27 -0
  112. package/_esm/chains/definitions/qmsTestnet.js.map +1 -0
  113. package/_esm/chains/definitions/tempo.js +1 -1
  114. package/_esm/chains/definitions/tempoModerato.js +2 -2
  115. package/_esm/chains/index.js +1 -0
  116. package/_esm/chains/index.js.map +1 -1
  117. package/_esm/clients/transports/ipc.js +21 -10
  118. package/_esm/clients/transports/ipc.js.map +1 -1
  119. package/_esm/clients/transports/webSocket.js +21 -10
  120. package/_esm/clients/transports/webSocket.js.map +1 -1
  121. package/_esm/errors/version.js +1 -1
  122. package/_esm/tempo/Abis.js +297 -0
  123. package/_esm/tempo/Abis.js.map +1 -1
  124. package/_esm/tempo/Account.js +42 -42
  125. package/_esm/tempo/Account.js.map +1 -1
  126. package/_esm/tempo/Addresses.js +1 -0
  127. package/_esm/tempo/Addresses.js.map +1 -1
  128. package/_esm/tempo/Client.js +3 -3
  129. package/_esm/tempo/Decorator.js +9 -8
  130. package/_esm/tempo/Decorator.js.map +1 -1
  131. package/_esm/tempo/ExecutionError.js +96 -3
  132. package/_esm/tempo/ExecutionError.js.map +1 -1
  133. package/_esm/tempo/Formatters.js +11 -10
  134. package/_esm/tempo/Formatters.js.map +1 -1
  135. package/_esm/tempo/KeyAuthorizationManager.js +58 -16
  136. package/_esm/tempo/KeyAuthorizationManager.js.map +1 -1
  137. package/_esm/tempo/Relay.js +49 -8
  138. package/_esm/tempo/Relay.js.map +1 -1
  139. package/_esm/tempo/Transaction.js +11 -11
  140. package/_esm/tempo/Transaction.js.map +1 -1
  141. package/_esm/tempo/Transport.js +22 -12
  142. package/_esm/tempo/Transport.js.map +1 -1
  143. package/_esm/tempo/{multisig → accounts}/Config.js +14 -14
  144. package/_esm/tempo/{multisig → accounts}/Config.js.map +1 -1
  145. package/_esm/tempo/{multisig → accounts}/Operation.js +17 -17
  146. package/_esm/tempo/{multisig → accounts}/Operation.js.map +1 -1
  147. package/_esm/tempo/accounts/Signature.js +9 -0
  148. package/_esm/tempo/accounts/Signature.js.map +1 -0
  149. package/_esm/tempo/actions/accessKey.js +499 -48
  150. package/_esm/tempo/actions/accessKey.js.map +1 -1
  151. package/_esm/tempo/actions/{multisig.js → accounts.js} +34 -38
  152. package/_esm/tempo/actions/accounts.js.map +1 -0
  153. package/_esm/tempo/actions/amm.js +95 -4
  154. package/_esm/tempo/actions/amm.js.map +1 -1
  155. package/_esm/tempo/actions/channel.js +191 -7
  156. package/_esm/tempo/actions/channel.js.map +1 -1
  157. package/_esm/tempo/actions/dex.js +537 -14
  158. package/_esm/tempo/actions/dex.js.map +1 -1
  159. package/_esm/tempo/actions/earn/deployment.js +4 -3
  160. package/_esm/tempo/actions/earn/deployment.js.map +1 -1
  161. package/_esm/tempo/actions/earn.js +22 -21
  162. package/_esm/tempo/actions/earn.js.map +1 -1
  163. package/_esm/tempo/actions/fee.js +90 -6
  164. package/_esm/tempo/actions/fee.js.map +1 -1
  165. package/_esm/tempo/actions/index.js +1 -1
  166. package/_esm/tempo/actions/index.js.map +1 -1
  167. package/_esm/tempo/actions/nonce.js +57 -1
  168. package/_esm/tempo/actions/nonce.js.map +1 -1
  169. package/_esm/tempo/actions/policy.js +36 -6
  170. package/_esm/tempo/actions/policy.js.map +1 -1
  171. package/_esm/tempo/actions/propAmm.js +18 -8
  172. package/_esm/tempo/actions/propAmm.js.map +1 -1
  173. package/_esm/tempo/actions/receivePolicy.js +7 -6
  174. package/_esm/tempo/actions/receivePolicy.js.map +1 -1
  175. package/_esm/tempo/actions/reward.js +7 -6
  176. package/_esm/tempo/actions/reward.js.map +1 -1
  177. package/_esm/tempo/actions/token.js +461 -22
  178. package/_esm/tempo/actions/token.js.map +1 -1
  179. package/_esm/tempo/actions/validator.js +12 -11
  180. package/_esm/tempo/actions/validator.js.map +1 -1
  181. package/_esm/tempo/actions/virtualAddress.js +3 -2
  182. package/_esm/tempo/actions/virtualAddress.js.map +1 -1
  183. package/_esm/tempo/actions/zone.js +12 -11
  184. package/_esm/tempo/actions/zone.js.map +1 -1
  185. package/_esm/tempo/chainConfig.js +38 -38
  186. package/_esm/tempo/chainConfig.js.map +1 -1
  187. package/_esm/tempo/errors.js +63 -0
  188. package/_esm/tempo/errors.js.map +1 -1
  189. package/_esm/tempo/index.js +2 -1
  190. package/_esm/tempo/index.js.map +1 -1
  191. package/_esm/tempo/internal/errors.js +51 -0
  192. package/_esm/tempo/internal/errors.js.map +1 -0
  193. package/_esm/tempo/internal/relay/{multisig.js → accounts.js} +93 -98
  194. package/_esm/tempo/internal/relay/accounts.js.map +1 -0
  195. package/_esm/tempo/internal/relay/feePayer.js +1 -1
  196. package/_esm/tempo/internal/relay/feePayer.js.map +1 -1
  197. package/_esm/tempo/internal/relay/keyAuthorization.js +334 -0
  198. package/_esm/tempo/internal/relay/keyAuthorization.js.map +1 -0
  199. package/_esm/tempo/internal/relay/plugin.js +15 -6
  200. package/_esm/tempo/internal/relay/plugin.js.map +1 -1
  201. package/_esm/tempo/internal/resolveError.js +130 -0
  202. package/_esm/tempo/internal/resolveError.js.map +1 -0
  203. package/_esm/tempo/internal/utils.js +2 -0
  204. package/_esm/tempo/internal/utils.js.map +1 -1
  205. package/_esm/utils/hash/normalizeSignature.js +3 -2
  206. package/_esm/utils/hash/normalizeSignature.js.map +1 -1
  207. package/_esm/utils/rpc/http.js +74 -31
  208. package/_esm/utils/rpc/http.js.map +1 -1
  209. package/_esm/utils/rpc/socket.js +3 -1
  210. package/_esm/utils/rpc/socket.js.map +1 -1
  211. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  212. package/_types/actions/wallet/waitForCallsStatus.d.ts.map +1 -1
  213. package/_types/chains/definitions/arcTestnet.d.ts +5 -5
  214. package/_types/chains/definitions/arcTestnet.d.ts.map +1 -1
  215. package/_types/chains/definitions/qmsTestnet.d.ts +50 -0
  216. package/_types/chains/definitions/qmsTestnet.d.ts.map +1 -0
  217. package/_types/chains/definitions/tempo.d.ts +2 -2
  218. package/_types/chains/definitions/tempoModerato.d.ts +4 -4
  219. package/_types/chains/index.d.ts +1 -0
  220. package/_types/chains/index.d.ts.map +1 -1
  221. package/_types/clients/transports/ipc.d.ts.map +1 -1
  222. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  223. package/_types/errors/version.d.ts +1 -1
  224. package/_types/tempo/Abis.d.ts +807 -0
  225. package/_types/tempo/Abis.d.ts.map +1 -1
  226. package/_types/tempo/Account.d.ts +28 -28
  227. package/_types/tempo/Account.d.ts.map +1 -1
  228. package/_types/tempo/Addresses.d.ts +1 -0
  229. package/_types/tempo/Addresses.d.ts.map +1 -1
  230. package/_types/tempo/Client.d.ts +3 -3
  231. package/_types/tempo/Decorator.d.ts +64 -38
  232. package/_types/tempo/Decorator.d.ts.map +1 -1
  233. package/_types/tempo/ExecutionError.d.ts +3 -1
  234. package/_types/tempo/ExecutionError.d.ts.map +1 -1
  235. package/_types/tempo/Formatters.d.ts.map +1 -1
  236. package/_types/tempo/KeyAuthorizationManager.d.ts +45 -2
  237. package/_types/tempo/KeyAuthorizationManager.d.ts.map +1 -1
  238. package/_types/tempo/Relay.d.ts +62 -12
  239. package/_types/tempo/Relay.d.ts.map +1 -1
  240. package/_types/tempo/Transaction.d.ts +14 -11
  241. package/_types/tempo/Transaction.d.ts.map +1 -1
  242. package/_types/tempo/Transport.d.ts +20 -7
  243. package/_types/tempo/Transport.d.ts.map +1 -1
  244. package/_types/tempo/{multisig → accounts}/Config.d.ts +7 -7
  245. package/_types/tempo/accounts/Config.d.ts.map +1 -0
  246. package/_types/tempo/{multisig → accounts}/Operation.d.ts +7 -7
  247. package/_types/tempo/accounts/Operation.d.ts.map +1 -0
  248. package/_types/tempo/{multisig → accounts}/Signature.d.ts +1 -1
  249. package/_types/tempo/accounts/Signature.d.ts.map +1 -0
  250. package/_types/tempo/actions/accessKey.d.ts +214 -25
  251. package/_types/tempo/actions/accessKey.d.ts.map +1 -1
  252. package/_types/tempo/actions/{multisig.d.ts → accounts.d.ts} +31 -29
  253. package/_types/tempo/actions/accounts.d.ts.map +1 -0
  254. package/_types/tempo/actions/amm.d.ts +39 -0
  255. package/_types/tempo/actions/amm.d.ts.map +1 -1
  256. package/_types/tempo/actions/channel.d.ts +77 -7
  257. package/_types/tempo/actions/channel.d.ts.map +1 -1
  258. package/_types/tempo/actions/dex.d.ts +222 -16
  259. package/_types/tempo/actions/dex.d.ts.map +1 -1
  260. package/_types/tempo/actions/earn/deployment.d.ts +7 -6
  261. package/_types/tempo/actions/earn/deployment.d.ts.map +1 -1
  262. package/_types/tempo/actions/earn.d.ts +15 -14
  263. package/_types/tempo/actions/earn.d.ts.map +1 -1
  264. package/_types/tempo/actions/fee.d.ts +32 -6
  265. package/_types/tempo/actions/fee.d.ts.map +1 -1
  266. package/_types/tempo/actions/index.d.ts +1 -1
  267. package/_types/tempo/actions/index.d.ts.map +1 -1
  268. package/_types/tempo/actions/nonce.d.ts +35 -0
  269. package/_types/tempo/actions/nonce.d.ts.map +1 -1
  270. package/_types/tempo/actions/policy.d.ts +29 -8
  271. package/_types/tempo/actions/policy.d.ts.map +1 -1
  272. package/_types/tempo/actions/propAmm.d.ts +9 -1
  273. package/_types/tempo/actions/propAmm.d.ts.map +1 -1
  274. package/_types/tempo/actions/receivePolicy.d.ts +10 -6
  275. package/_types/tempo/actions/receivePolicy.d.ts.map +1 -1
  276. package/_types/tempo/actions/reward.d.ts +7 -3
  277. package/_types/tempo/actions/reward.d.ts.map +1 -1
  278. package/_types/tempo/actions/token.d.ts +200 -32
  279. package/_types/tempo/actions/token.d.ts.map +1 -1
  280. package/_types/tempo/actions/validator.d.ts +17 -5
  281. package/_types/tempo/actions/validator.d.ts.map +1 -1
  282. package/_types/tempo/actions/virtualAddress.d.ts +4 -3
  283. package/_types/tempo/actions/virtualAddress.d.ts.map +1 -1
  284. package/_types/tempo/actions/zone.d.ts +10 -9
  285. package/_types/tempo/actions/zone.d.ts.map +1 -1
  286. package/_types/tempo/errors.d.ts +63 -1
  287. package/_types/tempo/errors.d.ts.map +1 -1
  288. package/_types/tempo/index.d.ts +3 -2
  289. package/_types/tempo/index.d.ts.map +1 -1
  290. package/_types/tempo/internal/errors.d.ts +59 -0
  291. package/_types/tempo/internal/errors.d.ts.map +1 -0
  292. package/_types/tempo/internal/relay/accounts.d.ts +15 -0
  293. package/_types/tempo/internal/relay/accounts.d.ts.map +1 -0
  294. package/_types/tempo/internal/relay/keyAuthorization.d.ts +25 -0
  295. package/_types/tempo/internal/relay/keyAuthorization.d.ts.map +1 -0
  296. package/_types/tempo/internal/relay/plugin.d.ts +6 -3
  297. package/_types/tempo/internal/relay/plugin.d.ts.map +1 -1
  298. package/_types/tempo/internal/resolveError.d.ts +8 -0
  299. package/_types/tempo/internal/resolveError.d.ts.map +1 -0
  300. package/_types/tempo/internal/utils.d.ts.map +1 -1
  301. package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
  302. package/_types/utils/rpc/http.d.ts.map +1 -1
  303. package/_types/utils/rpc/socket.d.ts.map +1 -1
  304. package/actions/public/waitForTransactionReceipt.ts +8 -2
  305. package/actions/wallet/waitForCallsStatus.ts +41 -2
  306. package/chains/definitions/arcTestnet.ts +11 -8
  307. package/chains/definitions/qmsTestnet.ts +27 -0
  308. package/chains/definitions/tempo.ts +1 -1
  309. package/chains/definitions/tempoModerato.ts +2 -2
  310. package/chains/index.ts +1 -0
  311. package/clients/transports/ipc.ts +38 -29
  312. package/clients/transports/webSocket.ts +42 -33
  313. package/errors/version.ts +1 -1
  314. package/package.json +2 -2
  315. package/tempo/Abis.ts +298 -0
  316. package/tempo/Account.ts +95 -84
  317. package/tempo/Addresses.ts +1 -0
  318. package/tempo/Client.ts +3 -3
  319. package/tempo/Decorator.ts +91 -60
  320. package/tempo/ExecutionError.ts +102 -4
  321. package/tempo/Formatters.ts +14 -13
  322. package/tempo/KeyAuthorizationManager.ts +71 -19
  323. package/tempo/Relay.ts +70 -14
  324. package/tempo/Transaction.ts +31 -23
  325. package/tempo/Transport.ts +49 -21
  326. package/tempo/{multisig → accounts}/Config.ts +21 -21
  327. package/tempo/{multisig → accounts}/Operation.ts +26 -26
  328. package/tempo/{multisig → accounts}/Signature.ts +5 -3
  329. package/tempo/actions/accessKey.ts +675 -104
  330. package/tempo/actions/{multisig.ts → accounts.ts} +54 -59
  331. package/tempo/actions/amm.ts +126 -4
  332. package/tempo/actions/channel.ts +248 -14
  333. package/tempo/actions/dex.ts +599 -33
  334. package/tempo/actions/earn/deployment.ts +11 -9
  335. package/tempo/actions/earn.ts +40 -35
  336. package/tempo/actions/fee.ts +111 -9
  337. package/tempo/actions/index.ts +1 -1
  338. package/tempo/actions/nonce.ts +86 -1
  339. package/tempo/actions/policy.ts +66 -14
  340. package/tempo/actions/propAmm.ts +36 -9
  341. package/tempo/actions/receivePolicy.ts +26 -15
  342. package/tempo/actions/reward.ts +17 -9
  343. package/tempo/actions/token.ts +519 -54
  344. package/tempo/actions/validator.ts +40 -16
  345. package/tempo/actions/virtualAddress.ts +7 -5
  346. package/tempo/actions/zone.ts +25 -20
  347. package/tempo/chainConfig.ts +52 -52
  348. package/tempo/errors.ts +114 -1
  349. package/tempo/index.ts +5 -4
  350. package/tempo/internal/errors.ts +110 -0
  351. package/tempo/internal/relay/{multisig.ts → accounts.ts} +118 -118
  352. package/tempo/internal/relay/feePayer.ts +1 -1
  353. package/tempo/internal/relay/keyAuthorization.ts +415 -0
  354. package/tempo/internal/relay/plugin.ts +20 -7
  355. package/tempo/internal/resolveError.ts +169 -0
  356. package/tempo/internal/utils.ts +2 -0
  357. package/utils/hash/normalizeSignature.ts +3 -2
  358. package/utils/rpc/http.ts +76 -30
  359. package/utils/rpc/socket.ts +3 -1
  360. package/_cjs/tempo/actions/multisig.js.map +0 -1
  361. package/_cjs/tempo/internal/relay/multisig.js.map +0 -1
  362. package/_cjs/tempo/multisig/Signature.js.map +0 -1
  363. package/_esm/tempo/actions/multisig.js.map +0 -1
  364. package/_esm/tempo/internal/relay/multisig.js.map +0 -1
  365. package/_esm/tempo/multisig/Signature.js +0 -9
  366. package/_esm/tempo/multisig/Signature.js.map +0 -1
  367. package/_types/tempo/actions/multisig.d.ts.map +0 -1
  368. package/_types/tempo/internal/relay/multisig.d.ts +0 -4
  369. package/_types/tempo/internal/relay/multisig.d.ts.map +0 -1
  370. package/_types/tempo/multisig/Config.d.ts.map +0 -1
  371. package/_types/tempo/multisig/Operation.d.ts.map +0 -1
  372. package/_types/tempo/multisig/Signature.d.ts.map +0 -1
@@ -13,6 +13,8 @@ import type { Chain } from '../../types/chain.js'
13
13
  import type { TransactionReceipt } from '../../types/transaction.js'
14
14
  import * as Abis from '../Abis.js'
15
15
  import * as Addresses from '../Addresses.js'
16
+ import type * as Errors from '../errors.js'
17
+ import { withExecutionError } from '../internal/errors.js'
16
18
  import type { ReadParameters, WriteParameters } from '../internal/types.js'
17
19
  import { defineCall } from '../internal/utils.js'
18
20
 
@@ -77,7 +79,7 @@ export namespace add {
77
79
  export type ReturnValue = WriteContractReturnType
78
80
 
79
81
  // TODO: exhaustive error type
80
- export type ErrorType = BaseErrorType
82
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
81
83
 
82
84
  /** @internal */
83
85
  export async function inner<
@@ -104,7 +106,7 @@ export namespace add {
104
106
  inboundAddress,
105
107
  outboundAddress,
106
108
  })
107
- return (await action(client, {
109
+ return (await withExecutionError(action)(client, {
108
110
  ...rest,
109
111
  ...callData,
110
112
  } as never)) as never
@@ -223,6 +225,8 @@ export namespace addSync {
223
225
  export type ReturnValue = {
224
226
  receipt: TransactionReceipt
225
227
  }
228
+
229
+ export type ErrorType = add.ErrorType
226
230
  }
227
231
 
228
232
  /**
@@ -274,7 +278,7 @@ export namespace changeOwner {
274
278
  export type ReturnValue = WriteContractReturnType
275
279
 
276
280
  // TODO: exhaustive error type
277
- export type ErrorType = BaseErrorType
281
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
278
282
 
279
283
  /** @internal */
280
284
  export async function inner<
@@ -288,7 +292,7 @@ export namespace changeOwner {
288
292
  ): Promise<ReturnType<action>> {
289
293
  const { newOwner, ...rest } = parameters
290
294
  const callData = changeOwner.call({ newOwner })
291
- return (await action(client, {
295
+ return (await withExecutionError(action)(client, {
292
296
  ...rest,
293
297
  ...callData,
294
298
  } as never)) as never
@@ -387,6 +391,8 @@ export namespace changeOwnerSync {
387
391
  export type ReturnValue = {
388
392
  receipt: TransactionReceipt
389
393
  }
394
+
395
+ export type ErrorType = changeOwner.ErrorType
390
396
  }
391
397
 
392
398
  /**
@@ -441,7 +447,7 @@ export namespace changeStatus {
441
447
  export type ReturnValue = WriteContractReturnType
442
448
 
443
449
  // TODO: exhaustive error type
444
- export type ErrorType = BaseErrorType
450
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
445
451
 
446
452
  /** @internal */
447
453
  export async function inner<
@@ -455,7 +461,7 @@ export namespace changeStatus {
455
461
  ): Promise<ReturnType<action>> {
456
462
  const { validator, active, ...rest } = parameters
457
463
  const callData = changeStatus.call({ validator, active })
458
- return (await action(client, {
464
+ return (await withExecutionError(action)(client, {
459
465
  ...rest,
460
466
  ...callData,
461
467
  } as never)) as never
@@ -556,6 +562,8 @@ export namespace changeStatusSync {
556
562
  export type ReturnValue = {
557
563
  receipt: TransactionReceipt
558
564
  }
565
+
566
+ export type ErrorType = changeStatus.ErrorType
559
567
  }
560
568
 
561
569
  /**
@@ -586,7 +594,7 @@ export async function getNextFullDkgCeremony<
586
594
  client: Client<Transport, chain, account>,
587
595
  parameters: getNextFullDkgCeremony.Parameters = {},
588
596
  ): Promise<getNextFullDkgCeremony.ReturnValue> {
589
- return readContract(client, {
597
+ return withExecutionError(readContract)(client, {
590
598
  ...parameters,
591
599
  ...getNextFullDkgCeremony.call(),
592
600
  })
@@ -635,6 +643,8 @@ export namespace getNextFullDkgCeremony {
635
643
  functionName: 'getNextFullDkgCeremony',
636
644
  })
637
645
  }
646
+
647
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
638
648
  }
639
649
 
640
650
  /**
@@ -665,7 +675,7 @@ export async function getOwner<
665
675
  client: Client<Transport, chain, account>,
666
676
  parameters: getOwner.Parameters = {},
667
677
  ): Promise<getOwner.ReturnValue> {
668
- return readContract(client, {
678
+ return withExecutionError(readContract)(client, {
669
679
  ...parameters,
670
680
  ...getOwner.call(),
671
681
  })
@@ -714,6 +724,8 @@ export namespace getOwner {
714
724
  functionName: 'owner',
715
725
  })
716
726
  }
727
+
728
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
717
729
  }
718
730
 
719
731
  /**
@@ -747,7 +759,7 @@ export async function get<
747
759
  parameters: get.Parameters,
748
760
  ): Promise<get.ReturnValue> {
749
761
  const { validator, ...rest } = parameters
750
- return readContract(client, {
762
+ return withExecutionError(readContract)(client, {
751
763
  ...rest,
752
764
  ...get.call({ validator }),
753
765
  })
@@ -805,6 +817,8 @@ export namespace get {
805
817
  functionName: 'validators',
806
818
  })
807
819
  }
820
+
821
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
808
822
  }
809
823
 
810
824
  /**
@@ -838,7 +852,7 @@ export async function getByIndex<
838
852
  parameters: getByIndex.Parameters,
839
853
  ): Promise<getByIndex.ReturnValue> {
840
854
  const { index, ...rest } = parameters
841
- return readContract(client, {
855
+ return withExecutionError(readContract)(client, {
842
856
  ...rest,
843
857
  ...getByIndex.call({ index }),
844
858
  })
@@ -897,6 +911,8 @@ export namespace getByIndex {
897
911
  functionName: 'validatorsArray',
898
912
  })
899
913
  }
914
+
915
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
900
916
  }
901
917
 
902
918
  /**
@@ -927,7 +943,7 @@ export async function getCount<
927
943
  client: Client<Transport, chain, account>,
928
944
  parameters: getCount.Parameters = {},
929
945
  ): Promise<getCount.ReturnValue> {
930
- return readContract(client, {
946
+ return withExecutionError(readContract)(client, {
931
947
  ...parameters,
932
948
  ...getCount.call(),
933
949
  })
@@ -976,6 +992,8 @@ export namespace getCount {
976
992
  functionName: 'validatorCount',
977
993
  })
978
994
  }
995
+
996
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
979
997
  }
980
998
 
981
999
  /**
@@ -1006,7 +1024,7 @@ export async function list<
1006
1024
  client: Client<Transport, chain, account>,
1007
1025
  parameters: list.Parameters = {},
1008
1026
  ): Promise<list.ReturnValue> {
1009
- return readContract(client, {
1027
+ return withExecutionError(readContract)(client, {
1010
1028
  ...parameters,
1011
1029
  ...list.call(),
1012
1030
  })
@@ -1055,6 +1073,8 @@ export namespace list {
1055
1073
  functionName: 'getValidators',
1056
1074
  })
1057
1075
  }
1076
+
1077
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1058
1078
  }
1059
1079
 
1060
1080
  /**
@@ -1106,7 +1126,7 @@ export namespace setNextFullDkgCeremony {
1106
1126
  export type ReturnValue = WriteContractReturnType
1107
1127
 
1108
1128
  // TODO: exhaustive error type
1109
- export type ErrorType = BaseErrorType
1129
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1110
1130
 
1111
1131
  /** @internal */
1112
1132
  export async function inner<
@@ -1120,7 +1140,7 @@ export namespace setNextFullDkgCeremony {
1120
1140
  ): Promise<ReturnType<action>> {
1121
1141
  const { epoch, ...rest } = parameters
1122
1142
  const callData = setNextFullDkgCeremony.call({ epoch })
1123
- return (await action(client, {
1143
+ return (await withExecutionError(action)(client, {
1124
1144
  ...rest,
1125
1145
  ...callData,
1126
1146
  } as never)) as never
@@ -1223,6 +1243,8 @@ export namespace setNextFullDkgCeremonySync {
1223
1243
  export type ReturnValue = {
1224
1244
  receipt: TransactionReceipt
1225
1245
  }
1246
+
1247
+ export type ErrorType = setNextFullDkgCeremony.ErrorType
1226
1248
  }
1227
1249
 
1228
1250
  /**
@@ -1283,7 +1305,7 @@ export namespace update {
1283
1305
  export type ReturnValue = WriteContractReturnType
1284
1306
 
1285
1307
  // TODO: exhaustive error type
1286
- export type ErrorType = BaseErrorType
1308
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1287
1309
 
1288
1310
  /** @internal */
1289
1311
  export async function inner<
@@ -1308,7 +1330,7 @@ export namespace update {
1308
1330
  inboundAddress,
1309
1331
  outboundAddress,
1310
1332
  })
1311
- return (await action(client, {
1333
+ return (await withExecutionError(action)(client, {
1312
1334
  ...rest,
1313
1335
  ...callData,
1314
1336
  } as never)) as never
@@ -1414,4 +1436,6 @@ export namespace updateSync {
1414
1436
  export type ReturnValue = {
1415
1437
  receipt: TransactionReceipt
1416
1438
  }
1439
+
1440
+ export type ErrorType = update.ErrorType
1417
1441
  }
@@ -16,6 +16,8 @@ import type { Compute } from '../../types/utils.js'
16
16
  import { parseEventLogs } from '../../utils/abi/parseEventLogs.js'
17
17
  import * as Abis from '../Abis.js'
18
18
  import * as Addresses from '../Addresses.js'
19
+ import type * as Errors from '../errors.js'
20
+ import { withExecutionError } from '../internal/errors.js'
19
21
  import type { ReadParameters, WriteParameters } from '../internal/types.js'
20
22
  import { defineCall } from '../internal/utils.js'
21
23
  import type { TransactionReceipt } from '../Transaction.js'
@@ -50,7 +52,7 @@ export async function getMasterAddress<
50
52
  client: Client<Transport, chain, account>,
51
53
  parameters: getMasterAddress.Parameters,
52
54
  ): Promise<getMasterAddress.ReturnValue> {
53
- const address = await readContract(client, {
55
+ const address = await withExecutionError(readContract)(client, {
54
56
  ...parameters,
55
57
  ...getMasterAddress.call({ masterId: parameters.masterId }),
56
58
  })
@@ -69,7 +71,7 @@ export namespace getMasterAddress {
69
71
  export type ReturnValue = Address | null
70
72
 
71
73
  // TODO: exhaustive error type
72
- export type ErrorType = BaseErrorType
74
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
73
75
 
74
76
  /**
75
77
  * Defines a call to the `getMaster` function.
@@ -191,7 +193,7 @@ export namespace registerMaster {
191
193
  export type ReturnValue = WriteContractReturnType
192
194
 
193
195
  // TODO: exhaustive error type
194
- export type ErrorType = BaseErrorType
196
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
195
197
 
196
198
  /** @internal */
197
199
  export async function inner<
@@ -205,7 +207,7 @@ export namespace registerMaster {
205
207
  ): Promise<ReturnType<action>> {
206
208
  const { salt, ...rest } = parameters
207
209
  const call = registerMaster.call({ salt })
208
- return (await action(client, {
210
+ return (await withExecutionError(action)(client, {
209
211
  ...rest,
210
212
  ...call,
211
213
  } as never)) as never
@@ -329,5 +331,5 @@ export namespace registerMasterSync {
329
331
  >
330
332
 
331
333
  // TODO: exhaustive error type
332
- export type ErrorType = BaseErrorType
334
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
333
335
  }
@@ -50,10 +50,12 @@ import { withResolvers } from '../../utils/promise/withResolvers.js'
50
50
  import { stringify } from '../../utils/stringify.js'
51
51
  import * as Abis from '../Abis.js'
52
52
  import * as Addresses from '../Addresses.js'
53
+ import type * as Errors from '../errors.js'
53
54
  import {
54
55
  WaitForTempoBlockTimeoutError,
55
56
  type WaitForTempoBlockTimeoutErrorType,
56
57
  } from '../errors.js'
58
+ import { withExecutionError } from '../internal/errors.js'
57
59
  import type {
58
60
  GetAccountParameter,
59
61
  ReadParameters,
@@ -178,7 +180,7 @@ export async function deposit<
178
180
  recipient,
179
181
  tempoRefundRecipient,
180
182
  }
181
- return sendTransaction(client, {
183
+ return withExecutionError(sendTransaction)(client, {
182
184
  ...rest,
183
185
  account,
184
186
  calls: deposit.calls(args),
@@ -217,7 +219,7 @@ export namespace deposit {
217
219
  export type ReturnValue = SendTransactionReturnType
218
220
 
219
221
  // TODO: exhaustive error type
220
- export type ErrorType = BaseErrorType
222
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
221
223
 
222
224
  /**
223
225
  * Defines the calls to approve and deposit tokens into a zone.
@@ -304,7 +306,7 @@ export async function depositSync<
304
306
  recipient,
305
307
  tempoRefundRecipient,
306
308
  }
307
- const receipt = await sendTransactionSync(client, {
309
+ const receipt = await withExecutionError(sendTransactionSync)(client, {
308
310
  ...rest,
309
311
  account,
310
312
  throwOnReceiptRevert,
@@ -327,7 +329,7 @@ export namespace depositSync {
327
329
  }>
328
330
 
329
331
  // TODO: exhaustive error type
330
- export type ErrorType = BaseErrorType
332
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
331
333
  }
332
334
 
333
335
  /**
@@ -617,7 +619,7 @@ export async function encryptedDeposit<
617
619
  'Prepared encrypted deposit chain ID does not match client chain.',
618
620
  )
619
621
  }
620
- return sendTransaction(client, {
622
+ return withExecutionError(sendTransaction)(client, {
621
623
  ...pickWriteParameters(parameters as never),
622
624
  calls: encryptedDeposit.calls({
623
625
  ...parameters,
@@ -638,7 +640,7 @@ export async function encryptedDeposit<
638
640
  token: parameters.token,
639
641
  zoneId: parameters.zoneId,
640
642
  })
641
- return sendTransaction(client, {
643
+ return withExecutionError(sendTransaction)(client, {
642
644
  ...rest,
643
645
  account,
644
646
  calls: encryptedDeposit.calls(prepared),
@@ -693,7 +695,7 @@ export namespace encryptedDeposit {
693
695
  export type ReturnValue = SendTransactionReturnType
694
696
 
695
697
  // TODO: exhaustive error type
696
- export type ErrorType = BaseErrorType
698
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
697
699
 
698
700
  /**
699
701
  * Prepares an encrypted deposit instruction without broadcasting it.
@@ -1014,7 +1016,7 @@ export async function encryptedDepositSync<
1014
1016
  'Prepared encrypted deposit chain ID does not match client chain.',
1015
1017
  )
1016
1018
  }
1017
- const receipt = await sendTransactionSync(client, {
1019
+ const receipt = await withExecutionError(sendTransactionSync)(client, {
1018
1020
  ...pickWriteParameters(parameters as never),
1019
1021
  ...pickWriteSyncParameters(parameters as never),
1020
1022
  throwOnReceiptRevert,
@@ -1038,7 +1040,7 @@ export async function encryptedDepositSync<
1038
1040
  token: parameters.token,
1039
1041
  zoneId: parameters.zoneId,
1040
1042
  })
1041
- const receipt = await sendTransactionSync(client, {
1043
+ const receipt = await withExecutionError(sendTransactionSync)(client, {
1042
1044
  ...rest,
1043
1045
  account,
1044
1046
  throwOnReceiptRevert,
@@ -1062,7 +1064,7 @@ export namespace encryptedDepositSync {
1062
1064
  }>
1063
1065
 
1064
1066
  // TODO: exhaustive error type
1065
- export type ErrorType = BaseErrorType
1067
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1066
1068
  }
1067
1069
 
1068
1070
  /**
@@ -1150,7 +1152,7 @@ export async function getWithdrawalFee<
1150
1152
  parameters: getWithdrawalFee.Parameters = {},
1151
1153
  ): Promise<getWithdrawalFee.ReturnType> {
1152
1154
  const { callbackGas = 0n, ...rest } = parameters
1153
- return readContract(client, {
1155
+ return withExecutionError(readContract)(client, {
1154
1156
  ...rest,
1155
1157
  address: Addresses.zoneOutbox,
1156
1158
  abi: Abis.zoneOutbox,
@@ -1167,7 +1169,10 @@ export namespace getWithdrawalFee {
1167
1169
 
1168
1170
  export type ReturnType = bigint
1169
1171
 
1170
- export type ErrorType = RequestErrorType | BaseErrorType
1172
+ export type ErrorType =
1173
+ | Errors.ExecutionErrorType
1174
+ | RequestErrorType
1175
+ | BaseErrorType
1171
1176
  }
1172
1177
 
1173
1178
  /**
@@ -1403,7 +1408,7 @@ export async function requestWithdrawal<
1403
1408
  if (!to) throw new Error('`to` is required.')
1404
1409
 
1405
1410
  const args = { ...parameters, to }
1406
- return sendTransaction(client, {
1411
+ return withExecutionError(sendTransaction)(client, {
1407
1412
  ...pickWriteParameters(parameters as never),
1408
1413
  calls: requestWithdrawal.calls(args),
1409
1414
  gas: parameters.gas ?? defaultWithdrawalGas,
@@ -1440,7 +1445,7 @@ export namespace requestWithdrawal {
1440
1445
  export type ReturnValue = SendTransactionReturnType
1441
1446
 
1442
1447
  // TODO: exhaustive error type
1443
- export type ErrorType = BaseErrorType
1448
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1444
1449
 
1445
1450
  /**
1446
1451
  * Defines the calls to approve and request a withdrawal from a zone.
@@ -1700,7 +1705,7 @@ export async function requestWithdrawalSync<
1700
1705
  if (!to) throw new Error('`to` is required.')
1701
1706
 
1702
1707
  const args = { ...parameters, to }
1703
- const receipt = await sendTransactionSync(client, {
1708
+ const receipt = await withExecutionError(sendTransactionSync)(client, {
1704
1709
  ...pickWriteParameters(parameters as never),
1705
1710
  ...pickWriteSyncParameters(parameters as never),
1706
1711
  calls: requestWithdrawal.calls(args),
@@ -1741,7 +1746,7 @@ export namespace requestWithdrawalSync {
1741
1746
  }>
1742
1747
 
1743
1748
  // TODO: exhaustive error type
1744
- export type ErrorType = BaseErrorType
1749
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1745
1750
  }
1746
1751
 
1747
1752
  /**
@@ -1790,7 +1795,7 @@ export async function requestVerifiableWithdrawal<
1790
1795
  if (!to) throw new Error('`to` is required.')
1791
1796
 
1792
1797
  const args = { ...parameters, to }
1793
- return sendTransaction(client, {
1798
+ return withExecutionError(sendTransaction)(client, {
1794
1799
  ...pickWriteParameters(parameters as never),
1795
1800
  calls: requestVerifiableWithdrawal.calls(args),
1796
1801
  gas: parameters.gas ?? defaultWithdrawalGas,
@@ -1815,7 +1820,7 @@ export namespace requestVerifiableWithdrawal {
1815
1820
  export type ReturnValue = SendTransactionReturnType
1816
1821
 
1817
1822
  // TODO: exhaustive error type
1818
- export type ErrorType = BaseErrorType
1823
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1819
1824
 
1820
1825
  /**
1821
1826
  * Defines the calls to approve and request a verifiable withdrawal from a zone.
@@ -1903,7 +1908,7 @@ export async function requestVerifiableWithdrawalSync<
1903
1908
  if (!to) throw new Error('`to` is required.')
1904
1909
 
1905
1910
  const args = { ...parameters, to }
1906
- const receipt = await sendTransactionSync(client, {
1911
+ const receipt = await withExecutionError(sendTransactionSync)(client, {
1907
1912
  ...pickWriteParameters(parameters as never),
1908
1913
  ...pickWriteSyncParameters(parameters as never),
1909
1914
  calls: requestVerifiableWithdrawal.calls(args),
@@ -1928,7 +1933,7 @@ export namespace requestVerifiableWithdrawalSync {
1928
1933
  }>
1929
1934
 
1930
1935
  // TODO: exhaustive error type
1931
- export type ErrorType = BaseErrorType
1936
+ export type ErrorType = Errors.ExecutionErrorType | BaseErrorType
1932
1937
  }
1933
1938
 
1934
1939
  /**