viem 2.42.0 → 2.43.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 (1750) hide show
  1. package/CHANGELOG.md +86 -24
  2. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +2 -2
  3. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  4. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +23 -6
  5. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -1
  6. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +4 -4
  7. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  8. package/_cjs/actions/public/verifyHash.js +5 -3
  9. package/_cjs/actions/public/verifyHash.js.map +1 -1
  10. package/_cjs/actions/wallet/prepareTransactionRequest.js +6 -1
  11. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  12. package/_cjs/chains/definitions/birdlayer.js.map +1 -1
  13. package/_cjs/chains/definitions/bob.js.map +1 -1
  14. package/_cjs/chains/definitions/bobSepolia.js.map +1 -1
  15. package/_cjs/chains/definitions/crab.js.map +1 -1
  16. package/_cjs/chains/definitions/creatorTestnet.js.map +1 -1
  17. package/_cjs/chains/definitions/datahavenTestnet.js +29 -0
  18. package/_cjs/chains/definitions/datahavenTestnet.js.map +1 -0
  19. package/_cjs/chains/definitions/dodochainTestnet.js.map +1 -1
  20. package/_cjs/chains/definitions/funkiSepolia.js.map +1 -1
  21. package/_cjs/chains/definitions/garnet.js.map +1 -1
  22. package/_cjs/chains/definitions/koi.js.map +1 -1
  23. package/_cjs/chains/definitions/omni.js.map +1 -1
  24. package/_cjs/chains/definitions/polygon.js +1 -1
  25. package/_cjs/chains/definitions/polygonAmoy.js +1 -1
  26. package/_cjs/chains/definitions/polygonAmoy.js.map +1 -1
  27. package/_cjs/chains/definitions/pyrope.js.map +1 -1
  28. package/_cjs/chains/definitions/redstone.js.map +1 -1
  29. package/_cjs/chains/definitions/skale/skaleBase.js +23 -0
  30. package/_cjs/chains/definitions/skale/skaleBase.js.map +1 -0
  31. package/_cjs/chains/definitions/skale/skaleBaseSepoliaTestnet.js +25 -0
  32. package/_cjs/chains/definitions/skale/skaleBaseSepoliaTestnet.js.map +1 -0
  33. package/_cjs/chains/definitions/somnia.js +23 -0
  34. package/_cjs/chains/definitions/somnia.js.map +1 -0
  35. package/_cjs/chains/definitions/tempoDevnet.js +22 -0
  36. package/_cjs/chains/definitions/tempoDevnet.js.map +1 -0
  37. package/_cjs/chains/definitions/tempoLocalnet.js +19 -0
  38. package/_cjs/chains/definitions/tempoLocalnet.js.map +1 -0
  39. package/_cjs/chains/definitions/tempoTestnet.js +28 -0
  40. package/_cjs/chains/definitions/tempoTestnet.js.map +1 -0
  41. package/_cjs/chains/definitions/xrplevm.js +25 -0
  42. package/_cjs/chains/definitions/xrplevm.js.map +1 -0
  43. package/_cjs/chains/index.js +28 -12
  44. package/_cjs/chains/index.js.map +1 -1
  45. package/_cjs/errors/node.js +1 -1
  46. package/_cjs/errors/node.js.map +1 -1
  47. package/_cjs/errors/version.js +1 -1
  48. package/_cjs/index.js +4 -3
  49. package/_cjs/index.js.map +1 -1
  50. package/_cjs/op-stack/index.js.map +1 -1
  51. package/_cjs/tempo/Abis.js +1707 -0
  52. package/_cjs/tempo/Abis.js.map +1 -0
  53. package/_cjs/tempo/Account.js +252 -0
  54. package/_cjs/tempo/Account.js.map +1 -0
  55. package/_cjs/tempo/Addresses.js +12 -0
  56. package/_cjs/tempo/Addresses.js.map +1 -0
  57. package/_cjs/tempo/Decorator.js +135 -0
  58. package/_cjs/tempo/Decorator.js.map +1 -0
  59. package/_cjs/tempo/Formatters.js +99 -0
  60. package/_cjs/tempo/Formatters.js.map +1 -0
  61. package/_cjs/tempo/P256.js +6 -0
  62. package/_cjs/tempo/P256.js.map +1 -0
  63. package/_cjs/tempo/Secp256k1.js +6 -0
  64. package/_cjs/tempo/Secp256k1.js.map +1 -0
  65. package/_cjs/tempo/TokenIds.js +5 -0
  66. package/_cjs/tempo/TokenIds.js.map +1 -0
  67. package/_cjs/tempo/Transaction.js +174 -0
  68. package/_cjs/tempo/Transaction.js.map +1 -0
  69. package/_cjs/tempo/Transport.js +118 -0
  70. package/_cjs/tempo/Transport.js.map +1 -0
  71. package/_cjs/tempo/WebAuthnP256.js +58 -0
  72. package/_cjs/tempo/WebAuthnP256.js.map +1 -0
  73. package/_cjs/tempo/WebCryptoP256.js +6 -0
  74. package/_cjs/tempo/WebCryptoP256.js.map +1 -0
  75. package/_cjs/tempo/actions/amm.js +358 -0
  76. package/_cjs/tempo/actions/amm.js.map +1 -0
  77. package/_cjs/tempo/actions/dex.js +521 -0
  78. package/_cjs/tempo/actions/dex.js.map +1 -0
  79. package/_cjs/tempo/actions/faucet.js +28 -0
  80. package/_cjs/tempo/actions/faucet.js.map +1 -0
  81. package/_cjs/tempo/actions/fee.js +108 -0
  82. package/_cjs/tempo/actions/fee.js.map +1 -0
  83. package/_cjs/tempo/actions/index.js +12 -0
  84. package/_cjs/tempo/actions/index.js.map +1 -0
  85. package/_cjs/tempo/actions/nonce.js +78 -0
  86. package/_cjs/tempo/actions/nonce.js.map +1 -0
  87. package/_cjs/tempo/actions/policy.js +346 -0
  88. package/_cjs/tempo/actions/policy.js.map +1 -0
  89. package/_cjs/tempo/actions/reward.js +214 -0
  90. package/_cjs/tempo/actions/reward.js.map +1 -0
  91. package/_cjs/tempo/actions/token.js +1176 -0
  92. package/_cjs/tempo/actions/token.js.map +1 -0
  93. package/_cjs/tempo/chainConfig.js +84 -0
  94. package/_cjs/tempo/chainConfig.js.map +1 -0
  95. package/_cjs/tempo/index.js +22 -0
  96. package/_cjs/tempo/index.js.map +1 -0
  97. package/_cjs/tempo/internal/nonceKeyStore.js +43 -0
  98. package/_cjs/tempo/internal/nonceKeyStore.js.map +1 -0
  99. package/_cjs/tempo/internal/types.js +3 -0
  100. package/_cjs/tempo/internal/types.js.map +1 -0
  101. package/_cjs/tempo/internal/utils.js +32 -0
  102. package/_cjs/tempo/internal/utils.js.map +1 -0
  103. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  104. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  105. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  106. package/_cjs/utils/abi/parseEventLogs.js +45 -32
  107. package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
  108. package/_cjs/utils/chain/defineChain.js +15 -1
  109. package/_cjs/utils/chain/defineChain.js.map +1 -1
  110. package/_cjs/utils/cursor.js +1 -1
  111. package/_cjs/utils/cursor.js.map +1 -1
  112. package/_cjs/utils/formatters/log.js +5 -0
  113. package/_cjs/utils/formatters/log.js.map +1 -1
  114. package/_cjs/utils/formatters/transaction.js +1 -2
  115. package/_cjs/utils/formatters/transaction.js.map +1 -1
  116. package/_cjs/utils/rpc/socket.js +2 -2
  117. package/_cjs/utils/rpc/socket.js.map +1 -1
  118. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +2 -2
  119. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  120. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +25 -8
  121. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -1
  122. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +4 -4
  123. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  124. package/_esm/actions/public/verifyHash.js +5 -3
  125. package/_esm/actions/public/verifyHash.js.map +1 -1
  126. package/_esm/actions/wallet/prepareTransactionRequest.js +6 -1
  127. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  128. package/_esm/chains/definitions/birdlayer.js +1 -1
  129. package/_esm/chains/definitions/birdlayer.js.map +1 -1
  130. package/_esm/chains/definitions/bob.js +1 -1
  131. package/_esm/chains/definitions/bob.js.map +1 -1
  132. package/_esm/chains/definitions/bobSepolia.js +1 -1
  133. package/_esm/chains/definitions/bobSepolia.js.map +1 -1
  134. package/_esm/chains/definitions/crab.js +1 -1
  135. package/_esm/chains/definitions/crab.js.map +1 -1
  136. package/_esm/chains/definitions/creatorTestnet.js +1 -1
  137. package/_esm/chains/definitions/creatorTestnet.js.map +1 -1
  138. package/_esm/chains/definitions/datahavenTestnet.js +26 -0
  139. package/_esm/chains/definitions/datahavenTestnet.js.map +1 -0
  140. package/_esm/chains/definitions/dodochainTestnet.js +1 -1
  141. package/_esm/chains/definitions/dodochainTestnet.js.map +1 -1
  142. package/_esm/chains/definitions/funkiSepolia.js +1 -1
  143. package/_esm/chains/definitions/funkiSepolia.js.map +1 -1
  144. package/_esm/chains/definitions/garnet.js +1 -1
  145. package/_esm/chains/definitions/garnet.js.map +1 -1
  146. package/_esm/chains/definitions/koi.js +1 -1
  147. package/_esm/chains/definitions/koi.js.map +1 -1
  148. package/_esm/chains/definitions/omni.js +1 -1
  149. package/_esm/chains/definitions/omni.js.map +1 -1
  150. package/_esm/chains/definitions/polygon.js +1 -1
  151. package/_esm/chains/definitions/polygonAmoy.js +1 -1
  152. package/_esm/chains/definitions/polygonAmoy.js.map +1 -1
  153. package/_esm/chains/definitions/pyrope.js +1 -1
  154. package/_esm/chains/definitions/pyrope.js.map +1 -1
  155. package/_esm/chains/definitions/redstone.js +1 -1
  156. package/_esm/chains/definitions/redstone.js.map +1 -1
  157. package/_esm/chains/definitions/skale/skaleBase.js +20 -0
  158. package/_esm/chains/definitions/skale/skaleBase.js.map +1 -0
  159. package/_esm/chains/definitions/skale/skaleBaseSepoliaTestnet.js +22 -0
  160. package/_esm/chains/definitions/skale/skaleBaseSepoliaTestnet.js.map +1 -0
  161. package/_esm/chains/definitions/somnia.js +20 -0
  162. package/_esm/chains/definitions/somnia.js.map +1 -0
  163. package/_esm/chains/definitions/tempoDevnet.js +19 -0
  164. package/_esm/chains/definitions/tempoDevnet.js.map +1 -0
  165. package/_esm/chains/definitions/tempoLocalnet.js +16 -0
  166. package/_esm/chains/definitions/tempoLocalnet.js.map +1 -0
  167. package/_esm/chains/definitions/tempoTestnet.js +25 -0
  168. package/_esm/chains/definitions/tempoTestnet.js.map +1 -0
  169. package/_esm/chains/definitions/xrplevm.js +22 -0
  170. package/_esm/chains/definitions/xrplevm.js.map +1 -0
  171. package/_esm/chains/index.js +8 -0
  172. package/_esm/chains/index.js.map +1 -1
  173. package/_esm/errors/node.js +1 -1
  174. package/_esm/errors/node.js.map +1 -1
  175. package/_esm/errors/version.js +1 -1
  176. package/_esm/index.js +1 -1
  177. package/_esm/index.js.map +1 -1
  178. package/_esm/op-stack/index.js +0 -1
  179. package/_esm/op-stack/index.js.map +1 -1
  180. package/_esm/tempo/Abis.js +1705 -0
  181. package/_esm/tempo/Abis.js.map +1 -0
  182. package/_esm/tempo/Account.js +368 -0
  183. package/_esm/tempo/Account.js.map +1 -0
  184. package/_esm/tempo/Addresses.js +9 -0
  185. package/_esm/tempo/Addresses.js.map +1 -0
  186. package/_esm/tempo/Decorator.js +135 -0
  187. package/_esm/tempo/Decorator.js.map +1 -0
  188. package/_esm/tempo/Formatters.js +110 -0
  189. package/_esm/tempo/Formatters.js.map +1 -0
  190. package/_esm/tempo/P256.js +3 -0
  191. package/_esm/tempo/P256.js.map +1 -0
  192. package/_esm/tempo/Secp256k1.js +3 -0
  193. package/_esm/tempo/Secp256k1.js.map +1 -0
  194. package/_esm/tempo/TokenIds.js +2 -0
  195. package/_esm/tempo/TokenIds.js.map +1 -0
  196. package/_esm/tempo/Transaction.js +187 -0
  197. package/_esm/tempo/Transaction.js.map +1 -0
  198. package/_esm/tempo/Transport.js +139 -0
  199. package/_esm/tempo/Transport.js.map +1 -0
  200. package/_esm/tempo/WebAuthnP256.js +97 -0
  201. package/_esm/tempo/WebAuthnP256.js.map +1 -0
  202. package/_esm/tempo/WebCryptoP256.js +3 -0
  203. package/_esm/tempo/WebCryptoP256.js.map +1 -0
  204. package/_esm/tempo/actions/amm.js +818 -0
  205. package/_esm/tempo/actions/amm.js.map +1 -0
  206. package/_esm/tempo/actions/dex.js +1417 -0
  207. package/_esm/tempo/actions/dex.js.map +1 -0
  208. package/_esm/tempo/actions/faucet.js +73 -0
  209. package/_esm/tempo/actions/faucet.js.map +1 -0
  210. package/_esm/tempo/actions/fee.js +241 -0
  211. package/_esm/tempo/actions/fee.js.map +1 -0
  212. package/_esm/tempo/actions/index.js +10 -0
  213. package/_esm/tempo/actions/index.js.map +1 -0
  214. package/_esm/tempo/actions/nonce.js +229 -0
  215. package/_esm/tempo/actions/nonce.js.map +1 -0
  216. package/_esm/tempo/actions/policy.js +878 -0
  217. package/_esm/tempo/actions/policy.js.map +1 -0
  218. package/_esm/tempo/actions/reward.js +654 -0
  219. package/_esm/tempo/actions/reward.js.map +1 -0
  220. package/_esm/tempo/actions/token.js +2943 -0
  221. package/_esm/tempo/actions/token.js.map +1 -0
  222. package/_esm/tempo/chainConfig.js +91 -0
  223. package/_esm/tempo/chainConfig.js.map +1 -0
  224. package/_esm/tempo/index.js +17 -0
  225. package/_esm/tempo/index.js.map +1 -0
  226. package/_esm/tempo/internal/nonceKeyStore.js +41 -0
  227. package/_esm/tempo/internal/nonceKeyStore.js.map +1 -0
  228. package/_esm/tempo/internal/types.js +2 -0
  229. package/_esm/tempo/internal/types.js.map +1 -0
  230. package/_esm/tempo/internal/utils.js +34 -0
  231. package/_esm/tempo/internal/utils.js.map +1 -0
  232. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  233. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  234. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  235. package/_esm/utils/abi/parseEventLogs.js +56 -36
  236. package/_esm/utils/abi/parseEventLogs.js.map +1 -1
  237. package/_esm/utils/chain/defineChain.js +14 -1
  238. package/_esm/utils/chain/defineChain.js.map +1 -1
  239. package/_esm/utils/cursor.js +1 -1
  240. package/_esm/utils/cursor.js.map +1 -1
  241. package/_esm/utils/formatters/log.js +5 -0
  242. package/_esm/utils/formatters/log.js.map +1 -1
  243. package/_esm/utils/formatters/transaction.js +1 -2
  244. package/_esm/utils/formatters/transaction.js.map +1 -1
  245. package/_esm/utils/rpc/socket.js +4 -3
  246. package/_esm/utils/rpc/socket.js.map +1 -1
  247. package/_types/account-abstraction/accounts/implementations/toSimple7702SmartAccount.d.ts +20 -284
  248. package/_types/account-abstraction/accounts/implementations/toSimple7702SmartAccount.d.ts.map +1 -1
  249. package/_types/account-abstraction/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  250. package/_types/actions/getContract.d.ts +4 -4
  251. package/_types/actions/getContract.d.ts.map +1 -1
  252. package/_types/actions/public/simulateContract.d.ts +2 -2
  253. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  254. package/_types/actions/public/verifyHash.d.ts +2 -0
  255. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  256. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  257. package/_types/chains/definitions/0g.d.ts +2 -0
  258. package/_types/chains/definitions/0g.d.ts.map +1 -1
  259. package/_types/chains/definitions/0gGalileoTestnet.d.ts +2 -0
  260. package/_types/chains/definitions/0gGalileoTestnet.d.ts.map +1 -1
  261. package/_types/chains/definitions/0gMainnet.d.ts +2 -0
  262. package/_types/chains/definitions/0gMainnet.d.ts.map +1 -1
  263. package/_types/chains/definitions/0gTestnet.d.ts +2 -0
  264. package/_types/chains/definitions/0gTestnet.d.ts.map +1 -1
  265. package/_types/chains/definitions/5ireChain.d.ts +2 -0
  266. package/_types/chains/definitions/5ireChain.d.ts.map +1 -1
  267. package/_types/chains/definitions/abey.d.ts +2 -0
  268. package/_types/chains/definitions/abey.d.ts.map +1 -1
  269. package/_types/chains/definitions/abstract.d.ts +2 -0
  270. package/_types/chains/definitions/abstract.d.ts.map +1 -1
  271. package/_types/chains/definitions/abstractTestnet.d.ts +2 -0
  272. package/_types/chains/definitions/abstractTestnet.d.ts.map +1 -1
  273. package/_types/chains/definitions/acala.d.ts +2 -0
  274. package/_types/chains/definitions/acala.d.ts.map +1 -1
  275. package/_types/chains/definitions/acria.d.ts +2 -0
  276. package/_types/chains/definitions/acria.d.ts.map +1 -1
  277. package/_types/chains/definitions/adf.d.ts +2 -0
  278. package/_types/chains/definitions/adf.d.ts.map +1 -1
  279. package/_types/chains/definitions/agungTestnet.d.ts +2 -0
  280. package/_types/chains/definitions/agungTestnet.d.ts.map +1 -1
  281. package/_types/chains/definitions/aioz.d.ts +2 -0
  282. package/_types/chains/definitions/aioz.d.ts.map +1 -1
  283. package/_types/chains/definitions/alephZero.d.ts +2 -0
  284. package/_types/chains/definitions/alephZero.d.ts.map +1 -1
  285. package/_types/chains/definitions/alephZeroTestnet.d.ts +2 -0
  286. package/_types/chains/definitions/alephZeroTestnet.d.ts.map +1 -1
  287. package/_types/chains/definitions/alienX.d.ts +2 -0
  288. package/_types/chains/definitions/alienX.d.ts.map +1 -1
  289. package/_types/chains/definitions/alienXHalTestnet.d.ts +2 -0
  290. package/_types/chains/definitions/alienXHalTestnet.d.ts.map +1 -1
  291. package/_types/chains/definitions/ancient8.d.ts +2 -0
  292. package/_types/chains/definitions/ancient8.d.ts.map +1 -1
  293. package/_types/chains/definitions/ancient8Sepolia.d.ts +2 -0
  294. package/_types/chains/definitions/ancient8Sepolia.d.ts.map +1 -1
  295. package/_types/chains/definitions/anvil.d.ts +2 -0
  296. package/_types/chains/definitions/anvil.d.ts.map +1 -1
  297. package/_types/chains/definitions/apeChain.d.ts +2 -0
  298. package/_types/chains/definitions/apeChain.d.ts.map +1 -1
  299. package/_types/chains/definitions/apexTestnet.d.ts +2 -0
  300. package/_types/chains/definitions/apexTestnet.d.ts.map +1 -1
  301. package/_types/chains/definitions/arbitrum.d.ts +2 -0
  302. package/_types/chains/definitions/arbitrum.d.ts.map +1 -1
  303. package/_types/chains/definitions/arbitrumGoerli.d.ts +2 -0
  304. package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -1
  305. package/_types/chains/definitions/arbitrumNova.d.ts +2 -0
  306. package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -1
  307. package/_types/chains/definitions/arbitrumSepolia.d.ts +2 -0
  308. package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
  309. package/_types/chains/definitions/arcTestnet.d.ts +2 -0
  310. package/_types/chains/definitions/arcTestnet.d.ts.map +1 -1
  311. package/_types/chains/definitions/arenaz.d.ts +2 -0
  312. package/_types/chains/definitions/arenaz.d.ts.map +1 -1
  313. package/_types/chains/definitions/areonNetwork.d.ts +2 -0
  314. package/_types/chains/definitions/areonNetwork.d.ts.map +1 -1
  315. package/_types/chains/definitions/areonNetworkTestnet.d.ts +2 -0
  316. package/_types/chains/definitions/areonNetworkTestnet.d.ts.map +1 -1
  317. package/_types/chains/definitions/areum.d.ts +2 -0
  318. package/_types/chains/definitions/areum.d.ts.map +1 -1
  319. package/_types/chains/definitions/artelaTestnet.d.ts +2 -0
  320. package/_types/chains/definitions/artelaTestnet.d.ts.map +1 -1
  321. package/_types/chains/definitions/arthera.d.ts +2 -0
  322. package/_types/chains/definitions/arthera.d.ts.map +1 -1
  323. package/_types/chains/definitions/artheraTestnet.d.ts +2 -0
  324. package/_types/chains/definitions/artheraTestnet.d.ts.map +1 -1
  325. package/_types/chains/definitions/assetChain.d.ts +2 -0
  326. package/_types/chains/definitions/assetChain.d.ts.map +1 -1
  327. package/_types/chains/definitions/assetChainTestnet.d.ts +2 -0
  328. package/_types/chains/definitions/assetChainTestnet.d.ts.map +1 -1
  329. package/_types/chains/definitions/astar.d.ts +2 -0
  330. package/_types/chains/definitions/astar.d.ts.map +1 -1
  331. package/_types/chains/definitions/astarZkEVM.d.ts +2 -0
  332. package/_types/chains/definitions/astarZkEVM.d.ts.map +1 -1
  333. package/_types/chains/definitions/astarZkyoto.d.ts +2 -0
  334. package/_types/chains/definitions/astarZkyoto.d.ts.map +1 -1
  335. package/_types/chains/definitions/atletaOlympia.d.ts +2 -0
  336. package/_types/chains/definitions/atletaOlympia.d.ts.map +1 -1
  337. package/_types/chains/definitions/aurora.d.ts +2 -0
  338. package/_types/chains/definitions/aurora.d.ts.map +1 -1
  339. package/_types/chains/definitions/auroraTestnet.d.ts +2 -0
  340. package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -1
  341. package/_types/chains/definitions/auroria.d.ts +2 -0
  342. package/_types/chains/definitions/auroria.d.ts.map +1 -1
  343. package/_types/chains/definitions/autheoTestnet.d.ts +2 -0
  344. package/_types/chains/definitions/autheoTestnet.d.ts.map +1 -1
  345. package/_types/chains/definitions/avalanche.d.ts +2 -0
  346. package/_types/chains/definitions/avalanche.d.ts.map +1 -1
  347. package/_types/chains/definitions/avalancheFuji.d.ts +2 -0
  348. package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -1
  349. package/_types/chains/definitions/b3.d.ts +2 -0
  350. package/_types/chains/definitions/b3.d.ts.map +1 -1
  351. package/_types/chains/definitions/b3Sepolia.d.ts +2 -0
  352. package/_types/chains/definitions/b3Sepolia.d.ts.map +1 -1
  353. package/_types/chains/definitions/bahamut.d.ts +2 -0
  354. package/_types/chains/definitions/bahamut.d.ts.map +1 -1
  355. package/_types/chains/definitions/base.d.ts +4 -0
  356. package/_types/chains/definitions/base.d.ts.map +1 -1
  357. package/_types/chains/definitions/baseGoerli.d.ts +2 -0
  358. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  359. package/_types/chains/definitions/baseSepolia.d.ts +4 -0
  360. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  361. package/_types/chains/definitions/basecampTestnet.d.ts +2 -0
  362. package/_types/chains/definitions/basecampTestnet.d.ts.map +1 -1
  363. package/_types/chains/definitions/beam.d.ts +2 -0
  364. package/_types/chains/definitions/beam.d.ts.map +1 -1
  365. package/_types/chains/definitions/beamTestnet.d.ts +2 -0
  366. package/_types/chains/definitions/beamTestnet.d.ts.map +1 -1
  367. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +2 -0
  368. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -1
  369. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +2 -0
  370. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -1
  371. package/_types/chains/definitions/berachain.d.ts +2 -0
  372. package/_types/chains/definitions/berachain.d.ts.map +1 -1
  373. package/_types/chains/definitions/berachainBepolia.d.ts +2 -0
  374. package/_types/chains/definitions/berachainBepolia.d.ts.map +1 -1
  375. package/_types/chains/definitions/berachainTestnet.d.ts +2 -0
  376. package/_types/chains/definitions/berachainTestnet.d.ts.map +1 -1
  377. package/_types/chains/definitions/berachainTestnetbArtio.d.ts +2 -0
  378. package/_types/chains/definitions/berachainTestnetbArtio.d.ts.map +1 -1
  379. package/_types/chains/definitions/bevmMainnet.d.ts +2 -0
  380. package/_types/chains/definitions/bevmMainnet.d.ts.map +1 -1
  381. package/_types/chains/definitions/bifrost.d.ts +2 -0
  382. package/_types/chains/definitions/bifrost.d.ts.map +1 -1
  383. package/_types/chains/definitions/birdlayer.d.ts +2 -0
  384. package/_types/chains/definitions/birdlayer.d.ts.map +1 -1
  385. package/_types/chains/definitions/bitTorrent.d.ts +2 -0
  386. package/_types/chains/definitions/bitTorrent.d.ts.map +1 -1
  387. package/_types/chains/definitions/bitTorrentTestnet.d.ts +2 -0
  388. package/_types/chains/definitions/bitTorrentTestnet.d.ts.map +1 -1
  389. package/_types/chains/definitions/bitgert.d.ts +2 -0
  390. package/_types/chains/definitions/bitgert.d.ts.map +1 -1
  391. package/_types/chains/definitions/bitkub.d.ts +2 -0
  392. package/_types/chains/definitions/bitkub.d.ts.map +1 -1
  393. package/_types/chains/definitions/bitkubTestnet.d.ts +2 -0
  394. package/_types/chains/definitions/bitkubTestnet.d.ts.map +1 -1
  395. package/_types/chains/definitions/bitlayer.d.ts +2 -0
  396. package/_types/chains/definitions/bitlayer.d.ts.map +1 -1
  397. package/_types/chains/definitions/bitlayerTestnet.d.ts +2 -0
  398. package/_types/chains/definitions/bitlayerTestnet.d.ts.map +1 -1
  399. package/_types/chains/definitions/bitrock.d.ts +2 -0
  400. package/_types/chains/definitions/bitrock.d.ts.map +1 -1
  401. package/_types/chains/definitions/blast.d.ts +2 -0
  402. package/_types/chains/definitions/blast.d.ts.map +1 -1
  403. package/_types/chains/definitions/blastSepolia.d.ts +2 -0
  404. package/_types/chains/definitions/blastSepolia.d.ts.map +1 -1
  405. package/_types/chains/definitions/bob.d.ts +2 -0
  406. package/_types/chains/definitions/bob.d.ts.map +1 -1
  407. package/_types/chains/definitions/bobSepolia.d.ts +2 -0
  408. package/_types/chains/definitions/bobSepolia.d.ts.map +1 -1
  409. package/_types/chains/definitions/boba.d.ts +2 -0
  410. package/_types/chains/definitions/boba.d.ts.map +1 -1
  411. package/_types/chains/definitions/bobaSepolia.d.ts +2 -0
  412. package/_types/chains/definitions/bobaSepolia.d.ts.map +1 -1
  413. package/_types/chains/definitions/boolBetaMainnet.d.ts +2 -0
  414. package/_types/chains/definitions/boolBetaMainnet.d.ts.map +1 -1
  415. package/_types/chains/definitions/botanix.d.ts +2 -0
  416. package/_types/chains/definitions/botanix.d.ts.map +1 -1
  417. package/_types/chains/definitions/botanixTestnet.d.ts +2 -0
  418. package/_types/chains/definitions/botanixTestnet.d.ts.map +1 -1
  419. package/_types/chains/definitions/bounceBit.d.ts +2 -0
  420. package/_types/chains/definitions/bounceBit.d.ts.map +1 -1
  421. package/_types/chains/definitions/bounceBitTestnet.d.ts +2 -0
  422. package/_types/chains/definitions/bounceBitTestnet.d.ts.map +1 -1
  423. package/_types/chains/definitions/bronos.d.ts +2 -0
  424. package/_types/chains/definitions/bronos.d.ts.map +1 -1
  425. package/_types/chains/definitions/bronosTestnet.d.ts +2 -0
  426. package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -1
  427. package/_types/chains/definitions/bsc.d.ts +2 -0
  428. package/_types/chains/definitions/bsc.d.ts.map +1 -1
  429. package/_types/chains/definitions/bscGreenfield.d.ts +2 -0
  430. package/_types/chains/definitions/bscGreenfield.d.ts.map +1 -1
  431. package/_types/chains/definitions/bscTestnet.d.ts +2 -0
  432. package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
  433. package/_types/chains/definitions/bsquared.d.ts +2 -0
  434. package/_types/chains/definitions/bsquared.d.ts.map +1 -1
  435. package/_types/chains/definitions/bsquaredTestnet.d.ts +2 -0
  436. package/_types/chains/definitions/bsquaredTestnet.d.ts.map +1 -1
  437. package/_types/chains/definitions/btr.d.ts +2 -0
  438. package/_types/chains/definitions/btr.d.ts.map +1 -1
  439. package/_types/chains/definitions/btrTestnet.d.ts +2 -0
  440. package/_types/chains/definitions/btrTestnet.d.ts.map +1 -1
  441. package/_types/chains/definitions/bxn.d.ts +2 -0
  442. package/_types/chains/definitions/bxn.d.ts.map +1 -1
  443. package/_types/chains/definitions/bxnTestnet.d.ts +2 -0
  444. package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -1
  445. package/_types/chains/definitions/cannon.d.ts +2 -0
  446. package/_types/chains/definitions/cannon.d.ts.map +1 -1
  447. package/_types/chains/definitions/canto.d.ts +2 -0
  448. package/_types/chains/definitions/canto.d.ts.map +1 -1
  449. package/_types/chains/definitions/celo.d.ts +2 -0
  450. package/_types/chains/definitions/celo.d.ts.map +1 -1
  451. package/_types/chains/definitions/celoAlfajores.d.ts +2 -0
  452. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  453. package/_types/chains/definitions/celoSepolia.d.ts +2 -0
  454. package/_types/chains/definitions/celoSepolia.d.ts.map +1 -1
  455. package/_types/chains/definitions/chang.d.ts +2 -0
  456. package/_types/chains/definitions/chang.d.ts.map +1 -1
  457. package/_types/chains/definitions/chiliz.d.ts +2 -0
  458. package/_types/chains/definitions/chiliz.d.ts.map +1 -1
  459. package/_types/chains/definitions/chips.d.ts +2 -0
  460. package/_types/chains/definitions/chips.d.ts.map +1 -1
  461. package/_types/chains/definitions/citreaTestnet.d.ts +2 -0
  462. package/_types/chains/definitions/citreaTestnet.d.ts.map +1 -1
  463. package/_types/chains/definitions/classic.d.ts +2 -0
  464. package/_types/chains/definitions/classic.d.ts.map +1 -1
  465. package/_types/chains/definitions/coinbit.d.ts +2 -0
  466. package/_types/chains/definitions/coinbit.d.ts.map +1 -1
  467. package/_types/chains/definitions/coinex.d.ts +2 -0
  468. package/_types/chains/definitions/coinex.d.ts.map +1 -1
  469. package/_types/chains/definitions/confluxESpace.d.ts +2 -0
  470. package/_types/chains/definitions/confluxESpace.d.ts.map +1 -1
  471. package/_types/chains/definitions/confluxESpaceTestnet.d.ts +2 -0
  472. package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -1
  473. package/_types/chains/definitions/coreDao.d.ts +2 -0
  474. package/_types/chains/definitions/coreDao.d.ts.map +1 -1
  475. package/_types/chains/definitions/coreTestnet1.d.ts +2 -0
  476. package/_types/chains/definitions/coreTestnet1.d.ts.map +1 -1
  477. package/_types/chains/definitions/coreTestnet2.d.ts +2 -0
  478. package/_types/chains/definitions/coreTestnet2.d.ts.map +1 -1
  479. package/_types/chains/definitions/corn.d.ts +2 -0
  480. package/_types/chains/definitions/corn.d.ts.map +1 -1
  481. package/_types/chains/definitions/cornTestnet.d.ts +2 -0
  482. package/_types/chains/definitions/cornTestnet.d.ts.map +1 -1
  483. package/_types/chains/definitions/crab.d.ts +2 -0
  484. package/_types/chains/definitions/crab.d.ts.map +1 -1
  485. package/_types/chains/definitions/creatorTestnet.d.ts +2 -0
  486. package/_types/chains/definitions/creatorTestnet.d.ts.map +1 -1
  487. package/_types/chains/definitions/creditCoin3Devnet.d.ts +2 -0
  488. package/_types/chains/definitions/creditCoin3Devnet.d.ts.map +1 -1
  489. package/_types/chains/definitions/creditCoin3Mainnet.d.ts +2 -0
  490. package/_types/chains/definitions/creditCoin3Mainnet.d.ts.map +1 -1
  491. package/_types/chains/definitions/creditCoin3Testnet.d.ts +2 -0
  492. package/_types/chains/definitions/creditCoin3Testnet.d.ts.map +1 -1
  493. package/_types/chains/definitions/cronos.d.ts +2 -0
  494. package/_types/chains/definitions/cronos.d.ts.map +1 -1
  495. package/_types/chains/definitions/cronosTestnet.d.ts +2 -0
  496. package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -1
  497. package/_types/chains/definitions/cronoszkEVM.d.ts +2 -0
  498. package/_types/chains/definitions/cronoszkEVM.d.ts.map +1 -1
  499. package/_types/chains/definitions/cronoszkEVMTestnet.d.ts +2 -0
  500. package/_types/chains/definitions/cronoszkEVMTestnet.d.ts.map +1 -1
  501. package/_types/chains/definitions/crossbell.d.ts +2 -0
  502. package/_types/chains/definitions/crossbell.d.ts.map +1 -1
  503. package/_types/chains/definitions/crossfi.d.ts +2 -0
  504. package/_types/chains/definitions/crossfi.d.ts.map +1 -1
  505. package/_types/chains/definitions/curtis.d.ts +2 -0
  506. package/_types/chains/definitions/curtis.d.ts.map +1 -1
  507. package/_types/chains/definitions/cyber.d.ts +2 -0
  508. package/_types/chains/definitions/cyber.d.ts.map +1 -1
  509. package/_types/chains/definitions/cyberTestnet.d.ts +2 -0
  510. package/_types/chains/definitions/cyberTestnet.d.ts.map +1 -1
  511. package/_types/chains/definitions/dailyNetwork.d.ts +2 -0
  512. package/_types/chains/definitions/dailyNetwork.d.ts.map +1 -1
  513. package/_types/chains/definitions/dailyNetworkTestnet.d.ts +2 -0
  514. package/_types/chains/definitions/dailyNetworkTestnet.d.ts.map +1 -1
  515. package/_types/chains/definitions/darwinia.d.ts +2 -0
  516. package/_types/chains/definitions/darwinia.d.ts.map +1 -1
  517. package/_types/chains/definitions/datahavenTestnet.d.ts +42 -0
  518. package/_types/chains/definitions/datahavenTestnet.d.ts.map +1 -0
  519. package/_types/chains/definitions/dbkchain.d.ts +2 -0
  520. package/_types/chains/definitions/dbkchain.d.ts.map +1 -1
  521. package/_types/chains/definitions/dchain.d.ts +2 -0
  522. package/_types/chains/definitions/dchain.d.ts.map +1 -1
  523. package/_types/chains/definitions/dchainTestnet.d.ts +2 -0
  524. package/_types/chains/definitions/dchainTestnet.d.ts.map +1 -1
  525. package/_types/chains/definitions/defichainEvm.d.ts +2 -0
  526. package/_types/chains/definitions/defichainEvm.d.ts.map +1 -1
  527. package/_types/chains/definitions/defichainEvmTestnet.d.ts +2 -0
  528. package/_types/chains/definitions/defichainEvmTestnet.d.ts.map +1 -1
  529. package/_types/chains/definitions/degen.d.ts +2 -0
  530. package/_types/chains/definitions/degen.d.ts.map +1 -1
  531. package/_types/chains/definitions/dfk.d.ts +2 -0
  532. package/_types/chains/definitions/dfk.d.ts.map +1 -1
  533. package/_types/chains/definitions/diode.d.ts +2 -0
  534. package/_types/chains/definitions/diode.d.ts.map +1 -1
  535. package/_types/chains/definitions/disChain.d.ts +2 -0
  536. package/_types/chains/definitions/disChain.d.ts.map +1 -1
  537. package/_types/chains/definitions/dodochainTestnet.d.ts +2 -0
  538. package/_types/chains/definitions/dodochainTestnet.d.ts.map +1 -1
  539. package/_types/chains/definitions/dogechain.d.ts +2 -0
  540. package/_types/chains/definitions/dogechain.d.ts.map +1 -1
  541. package/_types/chains/definitions/domaTestnet.d.ts +2 -0
  542. package/_types/chains/definitions/domaTestnet.d.ts.map +1 -1
  543. package/_types/chains/definitions/donatuz.d.ts +2 -0
  544. package/_types/chains/definitions/donatuz.d.ts.map +1 -1
  545. package/_types/chains/definitions/dosChain.d.ts +2 -0
  546. package/_types/chains/definitions/dosChain.d.ts.map +1 -1
  547. package/_types/chains/definitions/dosChainTestnet.d.ts +2 -0
  548. package/_types/chains/definitions/dosChainTestnet.d.ts.map +1 -1
  549. package/_types/chains/definitions/dreyerxMainnet.d.ts +2 -0
  550. package/_types/chains/definitions/dreyerxMainnet.d.ts.map +1 -1
  551. package/_types/chains/definitions/dreyerxTestnet.d.ts +2 -0
  552. package/_types/chains/definitions/dreyerxTestnet.d.ts.map +1 -1
  553. package/_types/chains/definitions/dustboyIoT.d.ts +2 -0
  554. package/_types/chains/definitions/dustboyIoT.d.ts.map +1 -1
  555. package/_types/chains/definitions/dymension.d.ts +2 -0
  556. package/_types/chains/definitions/dymension.d.ts.map +1 -1
  557. package/_types/chains/definitions/edexa.d.ts +2 -0
  558. package/_types/chains/definitions/edexa.d.ts.map +1 -1
  559. package/_types/chains/definitions/edexaTestnet.d.ts +2 -0
  560. package/_types/chains/definitions/edexaTestnet.d.ts.map +1 -1
  561. package/_types/chains/definitions/edgeless.d.ts +2 -0
  562. package/_types/chains/definitions/edgeless.d.ts.map +1 -1
  563. package/_types/chains/definitions/edgelessTestnet.d.ts +2 -0
  564. package/_types/chains/definitions/edgelessTestnet.d.ts.map +1 -1
  565. package/_types/chains/definitions/edgeware.d.ts +2 -0
  566. package/_types/chains/definitions/edgeware.d.ts.map +1 -1
  567. package/_types/chains/definitions/edgewareTestnet.d.ts +2 -0
  568. package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -1
  569. package/_types/chains/definitions/eduChain.d.ts +2 -0
  570. package/_types/chains/definitions/eduChain.d.ts.map +1 -1
  571. package/_types/chains/definitions/eduChainTestnet.d.ts +2 -0
  572. package/_types/chains/definitions/eduChainTestnet.d.ts.map +1 -1
  573. package/_types/chains/definitions/ekta.d.ts +2 -0
  574. package/_types/chains/definitions/ekta.d.ts.map +1 -1
  575. package/_types/chains/definitions/ektaTestnet.d.ts +2 -0
  576. package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -1
  577. package/_types/chains/definitions/elastos.d.ts +2 -0
  578. package/_types/chains/definitions/elastos.d.ts.map +1 -1
  579. package/_types/chains/definitions/elastosTestnet.d.ts +2 -0
  580. package/_types/chains/definitions/elastosTestnet.d.ts.map +1 -1
  581. package/_types/chains/definitions/electroneum.d.ts +2 -0
  582. package/_types/chains/definitions/electroneum.d.ts.map +1 -1
  583. package/_types/chains/definitions/electroneumTestnet.d.ts +2 -0
  584. package/_types/chains/definitions/electroneumTestnet.d.ts.map +1 -1
  585. package/_types/chains/definitions/elysiumTestnet.d.ts +2 -0
  586. package/_types/chains/definitions/elysiumTestnet.d.ts.map +1 -1
  587. package/_types/chains/definitions/energy.d.ts +2 -0
  588. package/_types/chains/definitions/energy.d.ts.map +1 -1
  589. package/_types/chains/definitions/eni.d.ts +2 -0
  590. package/_types/chains/definitions/eni.d.ts.map +1 -1
  591. package/_types/chains/definitions/eniTestnet.d.ts +2 -0
  592. package/_types/chains/definitions/eniTestnet.d.ts.map +1 -1
  593. package/_types/chains/definitions/enuls.d.ts +2 -0
  594. package/_types/chains/definitions/enuls.d.ts.map +1 -1
  595. package/_types/chains/definitions/eon.d.ts +2 -0
  596. package/_types/chains/definitions/eon.d.ts.map +1 -1
  597. package/_types/chains/definitions/eos.d.ts +2 -0
  598. package/_types/chains/definitions/eos.d.ts.map +1 -1
  599. package/_types/chains/definitions/eosTestnet.d.ts +2 -0
  600. package/_types/chains/definitions/eosTestnet.d.ts.map +1 -1
  601. package/_types/chains/definitions/eteria.d.ts +2 -0
  602. package/_types/chains/definitions/eteria.d.ts.map +1 -1
  603. package/_types/chains/definitions/etherlink.d.ts +2 -0
  604. package/_types/chains/definitions/etherlink.d.ts.map +1 -1
  605. package/_types/chains/definitions/etherlinkShadownetTestnet.d.ts +2 -0
  606. package/_types/chains/definitions/etherlinkShadownetTestnet.d.ts.map +1 -1
  607. package/_types/chains/definitions/etherlinkTestnet.d.ts +2 -0
  608. package/_types/chains/definitions/etherlinkTestnet.d.ts.map +1 -1
  609. package/_types/chains/definitions/ethernity.d.ts +2 -0
  610. package/_types/chains/definitions/ethernity.d.ts.map +1 -1
  611. package/_types/chains/definitions/etp.d.ts +2 -0
  612. package/_types/chains/definitions/etp.d.ts.map +1 -1
  613. package/_types/chains/definitions/evmos.d.ts +2 -0
  614. package/_types/chains/definitions/evmos.d.ts.map +1 -1
  615. package/_types/chains/definitions/evmosTestnet.d.ts +2 -0
  616. package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -1
  617. package/_types/chains/definitions/exSat.d.ts +2 -0
  618. package/_types/chains/definitions/exSat.d.ts.map +1 -1
  619. package/_types/chains/definitions/exSatTestnet.d.ts +2 -0
  620. package/_types/chains/definitions/exSatTestnet.d.ts.map +1 -1
  621. package/_types/chains/definitions/excelonMainnet.d.ts +2 -0
  622. package/_types/chains/definitions/excelonMainnet.d.ts.map +1 -1
  623. package/_types/chains/definitions/expanse.d.ts +2 -0
  624. package/_types/chains/definitions/expanse.d.ts.map +1 -1
  625. package/_types/chains/definitions/fantom.d.ts +2 -0
  626. package/_types/chains/definitions/fantom.d.ts.map +1 -1
  627. package/_types/chains/definitions/fantomSonicTestnet.d.ts +2 -0
  628. package/_types/chains/definitions/fantomSonicTestnet.d.ts.map +1 -1
  629. package/_types/chains/definitions/fantomTestnet.d.ts +2 -0
  630. package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -1
  631. package/_types/chains/definitions/fibo.d.ts +2 -0
  632. package/_types/chains/definitions/fibo.d.ts.map +1 -1
  633. package/_types/chains/definitions/filecoin.d.ts +2 -0
  634. package/_types/chains/definitions/filecoin.d.ts.map +1 -1
  635. package/_types/chains/definitions/filecoinCalibration.d.ts +2 -0
  636. package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -1
  637. package/_types/chains/definitions/filecoinHyperspace.d.ts +2 -0
  638. package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -1
  639. package/_types/chains/definitions/flame.d.ts +2 -0
  640. package/_types/chains/definitions/flame.d.ts.map +1 -1
  641. package/_types/chains/definitions/flare.d.ts +2 -0
  642. package/_types/chains/definitions/flare.d.ts.map +1 -1
  643. package/_types/chains/definitions/flareTestnet.d.ts +2 -0
  644. package/_types/chains/definitions/flareTestnet.d.ts.map +1 -1
  645. package/_types/chains/definitions/flowMainnet.d.ts +2 -0
  646. package/_types/chains/definitions/flowMainnet.d.ts.map +1 -1
  647. package/_types/chains/definitions/flowPreviewnet.d.ts +2 -0
  648. package/_types/chains/definitions/flowPreviewnet.d.ts.map +1 -1
  649. package/_types/chains/definitions/flowTestnet.d.ts +2 -0
  650. package/_types/chains/definitions/flowTestnet.d.ts.map +1 -1
  651. package/_types/chains/definitions/fluence.d.ts +2 -0
  652. package/_types/chains/definitions/fluence.d.ts.map +1 -1
  653. package/_types/chains/definitions/fluenceStage.d.ts +2 -0
  654. package/_types/chains/definitions/fluenceStage.d.ts.map +1 -1
  655. package/_types/chains/definitions/fluenceTestnet.d.ts +2 -0
  656. package/_types/chains/definitions/fluenceTestnet.d.ts.map +1 -1
  657. package/_types/chains/definitions/fluentTestnet.d.ts +2 -0
  658. package/_types/chains/definitions/fluentTestnet.d.ts.map +1 -1
  659. package/_types/chains/definitions/form.d.ts +2 -0
  660. package/_types/chains/definitions/form.d.ts.map +1 -1
  661. package/_types/chains/definitions/formTestnet.d.ts +2 -0
  662. package/_types/chains/definitions/formTestnet.d.ts.map +1 -1
  663. package/_types/chains/definitions/forma.d.ts +2 -0
  664. package/_types/chains/definitions/forma.d.ts.map +1 -1
  665. package/_types/chains/definitions/forta.d.ts +2 -0
  666. package/_types/chains/definitions/forta.d.ts.map +1 -1
  667. package/_types/chains/definitions/foundry.d.ts +2 -0
  668. package/_types/chains/definitions/foundry.d.ts.map +1 -1
  669. package/_types/chains/definitions/fraxtal.d.ts +2 -0
  670. package/_types/chains/definitions/fraxtal.d.ts.map +1 -1
  671. package/_types/chains/definitions/fraxtalTestnet.d.ts +2 -0
  672. package/_types/chains/definitions/fraxtalTestnet.d.ts.map +1 -1
  673. package/_types/chains/definitions/funkiMainnet.d.ts +2 -0
  674. package/_types/chains/definitions/funkiMainnet.d.ts.map +1 -1
  675. package/_types/chains/definitions/funkiSepolia.d.ts +2 -0
  676. package/_types/chains/definitions/funkiSepolia.d.ts.map +1 -1
  677. package/_types/chains/definitions/fuse.d.ts +2 -0
  678. package/_types/chains/definitions/fuse.d.ts.map +1 -1
  679. package/_types/chains/definitions/fuseSparknet.d.ts +2 -0
  680. package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -1
  681. package/_types/chains/definitions/fusion.d.ts +2 -0
  682. package/_types/chains/definitions/fusion.d.ts.map +1 -1
  683. package/_types/chains/definitions/fusionTestnet.d.ts +2 -0
  684. package/_types/chains/definitions/fusionTestnet.d.ts.map +1 -1
  685. package/_types/chains/definitions/garnet.d.ts +2 -0
  686. package/_types/chains/definitions/garnet.d.ts.map +1 -1
  687. package/_types/chains/definitions/gatechain.d.ts +2 -0
  688. package/_types/chains/definitions/gatechain.d.ts.map +1 -1
  689. package/_types/chains/definitions/geist.d.ts +2 -0
  690. package/_types/chains/definitions/geist.d.ts.map +1 -1
  691. package/_types/chains/definitions/genesys.d.ts +2 -0
  692. package/_types/chains/definitions/genesys.d.ts.map +1 -1
  693. package/_types/chains/definitions/giwaSepolia.d.ts +4 -0
  694. package/_types/chains/definitions/giwaSepolia.d.ts.map +1 -1
  695. package/_types/chains/definitions/glideL1Protocol.d.ts +2 -0
  696. package/_types/chains/definitions/glideL1Protocol.d.ts.map +1 -1
  697. package/_types/chains/definitions/glideL2Protocol.d.ts +2 -0
  698. package/_types/chains/definitions/glideL2Protocol.d.ts.map +1 -1
  699. package/_types/chains/definitions/gnosis.d.ts +2 -0
  700. package/_types/chains/definitions/gnosis.d.ts.map +1 -1
  701. package/_types/chains/definitions/gnosisChiado.d.ts +2 -0
  702. package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -1
  703. package/_types/chains/definitions/goChain.d.ts +2 -0
  704. package/_types/chains/definitions/goChain.d.ts.map +1 -1
  705. package/_types/chains/definitions/goat.d.ts +2 -0
  706. package/_types/chains/definitions/goat.d.ts.map +1 -1
  707. package/_types/chains/definitions/gobi.d.ts +2 -0
  708. package/_types/chains/definitions/gobi.d.ts.map +1 -1
  709. package/_types/chains/definitions/godwoken.d.ts +2 -0
  710. package/_types/chains/definitions/godwoken.d.ts.map +1 -1
  711. package/_types/chains/definitions/goerli.d.ts +2 -0
  712. package/_types/chains/definitions/goerli.d.ts.map +1 -1
  713. package/_types/chains/definitions/graphite.d.ts +2 -0
  714. package/_types/chains/definitions/graphite.d.ts.map +1 -1
  715. package/_types/chains/definitions/graphiteTestnet.d.ts +2 -0
  716. package/_types/chains/definitions/graphiteTestnet.d.ts.map +1 -1
  717. package/_types/chains/definitions/gravity.d.ts +2 -0
  718. package/_types/chains/definitions/gravity.d.ts.map +1 -1
  719. package/_types/chains/definitions/gunz.d.ts +2 -0
  720. package/_types/chains/definitions/gunz.d.ts.map +1 -1
  721. package/_types/chains/definitions/guruNetwork.d.ts +2 -0
  722. package/_types/chains/definitions/guruNetwork.d.ts.map +1 -1
  723. package/_types/chains/definitions/guruTestnet.d.ts +2 -0
  724. package/_types/chains/definitions/guruTestnet.d.ts.map +1 -1
  725. package/_types/chains/definitions/ham.d.ts +2 -0
  726. package/_types/chains/definitions/ham.d.ts.map +1 -1
  727. package/_types/chains/definitions/happychainTestnet.d.ts +2 -0
  728. package/_types/chains/definitions/happychainTestnet.d.ts.map +1 -1
  729. package/_types/chains/definitions/haqqMainnet.d.ts +2 -0
  730. package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -1
  731. package/_types/chains/definitions/haqqTestedge2.d.ts +2 -0
  732. package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -1
  733. package/_types/chains/definitions/hardhat.d.ts +2 -0
  734. package/_types/chains/definitions/hardhat.d.ts.map +1 -1
  735. package/_types/chains/definitions/harmonyOne.d.ts +2 -0
  736. package/_types/chains/definitions/harmonyOne.d.ts.map +1 -1
  737. package/_types/chains/definitions/hashKeyChain.d.ts +2 -0
  738. package/_types/chains/definitions/hashKeyChain.d.ts.map +1 -1
  739. package/_types/chains/definitions/hashkeyChainTestnet.d.ts +2 -0
  740. package/_types/chains/definitions/hashkeyChainTestnet.d.ts.map +1 -1
  741. package/_types/chains/definitions/haustTestnet.d.ts +2 -0
  742. package/_types/chains/definitions/haustTestnet.d.ts.map +1 -1
  743. package/_types/chains/definitions/hedera.d.ts +2 -0
  744. package/_types/chains/definitions/hedera.d.ts.map +1 -1
  745. package/_types/chains/definitions/hederaPreviewnet.d.ts +2 -0
  746. package/_types/chains/definitions/hederaPreviewnet.d.ts.map +1 -1
  747. package/_types/chains/definitions/hederaTestnet.d.ts +2 -0
  748. package/_types/chains/definitions/hederaTestnet.d.ts.map +1 -1
  749. package/_types/chains/definitions/hela.d.ts +2 -0
  750. package/_types/chains/definitions/hela.d.ts.map +1 -1
  751. package/_types/chains/definitions/heliosTestnet.d.ts +2 -0
  752. package/_types/chains/definitions/heliosTestnet.d.ts.map +1 -1
  753. package/_types/chains/definitions/hemi.d.ts +2 -0
  754. package/_types/chains/definitions/hemi.d.ts.map +1 -1
  755. package/_types/chains/definitions/hemiSepolia.d.ts +2 -0
  756. package/_types/chains/definitions/hemiSepolia.d.ts.map +1 -1
  757. package/_types/chains/definitions/henesys.d.ts +2 -0
  758. package/_types/chains/definitions/henesys.d.ts.map +1 -1
  759. package/_types/chains/definitions/holesky.d.ts +2 -0
  760. package/_types/chains/definitions/holesky.d.ts.map +1 -1
  761. package/_types/chains/definitions/hoodi.d.ts +2 -0
  762. package/_types/chains/definitions/hoodi.d.ts.map +1 -1
  763. package/_types/chains/definitions/hpb.d.ts +2 -0
  764. package/_types/chains/definitions/hpb.d.ts.map +1 -1
  765. package/_types/chains/definitions/huddle01Mainnet.d.ts +2 -0
  766. package/_types/chains/definitions/huddle01Mainnet.d.ts.map +1 -1
  767. package/_types/chains/definitions/huddle01Testnet.d.ts +2 -0
  768. package/_types/chains/definitions/huddle01Testnet.d.ts.map +1 -1
  769. package/_types/chains/definitions/humanity.d.ts +2 -0
  770. package/_types/chains/definitions/humanity.d.ts.map +1 -1
  771. package/_types/chains/definitions/humanityTestnet.d.ts +2 -0
  772. package/_types/chains/definitions/humanityTestnet.d.ts.map +1 -1
  773. package/_types/chains/definitions/humanode.d.ts +2 -0
  774. package/_types/chains/definitions/humanode.d.ts.map +1 -1
  775. package/_types/chains/definitions/humanodeTestnet5.d.ts +2 -0
  776. package/_types/chains/definitions/humanodeTestnet5.d.ts.map +1 -1
  777. package/_types/chains/definitions/hychain.d.ts +2 -0
  778. package/_types/chains/definitions/hychain.d.ts.map +1 -1
  779. package/_types/chains/definitions/hychainTestnet.d.ts +2 -0
  780. package/_types/chains/definitions/hychainTestnet.d.ts.map +1 -1
  781. package/_types/chains/definitions/hyperEvm.d.ts +2 -0
  782. package/_types/chains/definitions/hyperEvm.d.ts.map +1 -1
  783. package/_types/chains/definitions/hyperliquidEvmTestnet.d.ts +2 -0
  784. package/_types/chains/definitions/hyperliquidEvmTestnet.d.ts.map +1 -1
  785. package/_types/chains/definitions/iSunCoin.d.ts +2 -0
  786. package/_types/chains/definitions/iSunCoin.d.ts.map +1 -1
  787. package/_types/chains/definitions/icbNetwork.d.ts +2 -0
  788. package/_types/chains/definitions/icbNetwork.d.ts.map +1 -1
  789. package/_types/chains/definitions/idchain.d.ts +2 -0
  790. package/_types/chains/definitions/idchain.d.ts.map +1 -1
  791. package/_types/chains/definitions/immutableZkEvm.d.ts +2 -0
  792. package/_types/chains/definitions/immutableZkEvm.d.ts.map +1 -1
  793. package/_types/chains/definitions/immutableZkEvmTestnet.d.ts +2 -0
  794. package/_types/chains/definitions/immutableZkEvmTestnet.d.ts.map +1 -1
  795. package/_types/chains/definitions/inEVM.d.ts +2 -0
  796. package/_types/chains/definitions/inEVM.d.ts.map +1 -1
  797. package/_types/chains/definitions/initVerse.d.ts +2 -0
  798. package/_types/chains/definitions/initVerse.d.ts.map +1 -1
  799. package/_types/chains/definitions/initVerseGenesis.d.ts +2 -0
  800. package/_types/chains/definitions/initVerseGenesis.d.ts.map +1 -1
  801. package/_types/chains/definitions/injective.d.ts +2 -0
  802. package/_types/chains/definitions/injective.d.ts.map +1 -1
  803. package/_types/chains/definitions/injectiveTestnet.d.ts +2 -0
  804. package/_types/chains/definitions/injectiveTestnet.d.ts.map +1 -1
  805. package/_types/chains/definitions/ink.d.ts +2 -0
  806. package/_types/chains/definitions/ink.d.ts.map +1 -1
  807. package/_types/chains/definitions/inkSepolia.d.ts +2 -0
  808. package/_types/chains/definitions/inkSepolia.d.ts.map +1 -1
  809. package/_types/chains/definitions/iota.d.ts +2 -0
  810. package/_types/chains/definitions/iota.d.ts.map +1 -1
  811. package/_types/chains/definitions/iotaTestnet.d.ts +2 -0
  812. package/_types/chains/definitions/iotaTestnet.d.ts.map +1 -1
  813. package/_types/chains/definitions/iotex.d.ts +2 -0
  814. package/_types/chains/definitions/iotex.d.ts.map +1 -1
  815. package/_types/chains/definitions/iotexTestnet.d.ts +2 -0
  816. package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -1
  817. package/_types/chains/definitions/jasmyChain.d.ts +2 -0
  818. package/_types/chains/definitions/jasmyChain.d.ts.map +1 -1
  819. package/_types/chains/definitions/jasmyChainTestnet.d.ts +2 -0
  820. package/_types/chains/definitions/jasmyChainTestnet.d.ts.map +1 -1
  821. package/_types/chains/definitions/jbc.d.ts +2 -0
  822. package/_types/chains/definitions/jbc.d.ts.map +1 -1
  823. package/_types/chains/definitions/jbcTestnet.d.ts +2 -0
  824. package/_types/chains/definitions/jbcTestnet.d.ts.map +1 -1
  825. package/_types/chains/definitions/jocMainnet.d.ts +2 -0
  826. package/_types/chains/definitions/jocMainnet.d.ts.map +1 -1
  827. package/_types/chains/definitions/jocTestnet.d.ts +2 -0
  828. package/_types/chains/definitions/jocTestnet.d.ts.map +1 -1
  829. package/_types/chains/definitions/jovay.d.ts +2 -0
  830. package/_types/chains/definitions/jovay.d.ts.map +1 -1
  831. package/_types/chains/definitions/jovaySepolia.d.ts +2 -0
  832. package/_types/chains/definitions/jovaySepolia.d.ts.map +1 -1
  833. package/_types/chains/definitions/juneo.d.ts +2 -0
  834. package/_types/chains/definitions/juneo.d.ts.map +1 -1
  835. package/_types/chains/definitions/juneoBCH1Chain.d.ts +2 -0
  836. package/_types/chains/definitions/juneoBCH1Chain.d.ts.map +1 -1
  837. package/_types/chains/definitions/juneoDAI1Chain.d.ts +2 -0
  838. package/_types/chains/definitions/juneoDAI1Chain.d.ts.map +1 -1
  839. package/_types/chains/definitions/juneoDOGE1Chain.d.ts +2 -0
  840. package/_types/chains/definitions/juneoDOGE1Chain.d.ts.map +1 -1
  841. package/_types/chains/definitions/juneoEUR1Chain.d.ts +2 -0
  842. package/_types/chains/definitions/juneoEUR1Chain.d.ts.map +1 -1
  843. package/_types/chains/definitions/juneoGLD1Chain.d.ts +2 -0
  844. package/_types/chains/definitions/juneoGLD1Chain.d.ts.map +1 -1
  845. package/_types/chains/definitions/juneoLINK1Chain.d.ts +2 -0
  846. package/_types/chains/definitions/juneoLINK1Chain.d.ts.map +1 -1
  847. package/_types/chains/definitions/juneoLTC1Chain.d.ts +2 -0
  848. package/_types/chains/definitions/juneoLTC1Chain.d.ts.map +1 -1
  849. package/_types/chains/definitions/juneoSGD1Chain.d.ts +2 -0
  850. package/_types/chains/definitions/juneoSGD1Chain.d.ts.map +1 -1
  851. package/_types/chains/definitions/juneoSocotraTestnet.d.ts +2 -0
  852. package/_types/chains/definitions/juneoSocotraTestnet.d.ts.map +1 -1
  853. package/_types/chains/definitions/juneoUSD1Chain.d.ts +2 -0
  854. package/_types/chains/definitions/juneoUSD1Chain.d.ts.map +1 -1
  855. package/_types/chains/definitions/juneoUSDT1Chain.d.ts +2 -0
  856. package/_types/chains/definitions/juneoUSDT1Chain.d.ts.map +1 -1
  857. package/_types/chains/definitions/juneomBTC1Chain.d.ts +2 -0
  858. package/_types/chains/definitions/juneomBTC1Chain.d.ts.map +1 -1
  859. package/_types/chains/definitions/kaia.d.ts +2 -0
  860. package/_types/chains/definitions/kaia.d.ts.map +1 -1
  861. package/_types/chains/definitions/kairos.d.ts +2 -0
  862. package/_types/chains/definitions/kairos.d.ts.map +1 -1
  863. package/_types/chains/definitions/kakarotSepolia.d.ts +2 -0
  864. package/_types/chains/definitions/kakarotSepolia.d.ts.map +1 -1
  865. package/_types/chains/definitions/kakarotStarknetSepolia.d.ts +2 -0
  866. package/_types/chains/definitions/kakarotStarknetSepolia.d.ts.map +1 -1
  867. package/_types/chains/definitions/kardiaChain.d.ts +2 -0
  868. package/_types/chains/definitions/kardiaChain.d.ts.map +1 -1
  869. package/_types/chains/definitions/karura.d.ts +2 -0
  870. package/_types/chains/definitions/karura.d.ts.map +1 -1
  871. package/_types/chains/definitions/katana.d.ts +2 -0
  872. package/_types/chains/definitions/katana.d.ts.map +1 -1
  873. package/_types/chains/definitions/kava.d.ts +2 -0
  874. package/_types/chains/definitions/kava.d.ts.map +1 -1
  875. package/_types/chains/definitions/kavaTestnet.d.ts +2 -0
  876. package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -1
  877. package/_types/chains/definitions/kcc.d.ts +2 -0
  878. package/_types/chains/definitions/kcc.d.ts.map +1 -1
  879. package/_types/chains/definitions/kiiTestnet.d.ts +2 -0
  880. package/_types/chains/definitions/kiiTestnet.d.ts.map +1 -1
  881. package/_types/chains/definitions/kinto.d.ts +2 -0
  882. package/_types/chains/definitions/kinto.d.ts.map +1 -1
  883. package/_types/chains/definitions/klaytn.d.ts +2 -0
  884. package/_types/chains/definitions/klaytn.d.ts.map +1 -1
  885. package/_types/chains/definitions/klaytnBaobab.d.ts +2 -0
  886. package/_types/chains/definitions/klaytnBaobab.d.ts.map +1 -1
  887. package/_types/chains/definitions/koi.d.ts +2 -0
  888. package/_types/chains/definitions/koi.d.ts.map +1 -1
  889. package/_types/chains/definitions/kroma.d.ts +2 -0
  890. package/_types/chains/definitions/kroma.d.ts.map +1 -1
  891. package/_types/chains/definitions/kromaSepolia.d.ts +2 -0
  892. package/_types/chains/definitions/kromaSepolia.d.ts.map +1 -1
  893. package/_types/chains/definitions/l3x.d.ts +2 -0
  894. package/_types/chains/definitions/l3x.d.ts.map +1 -1
  895. package/_types/chains/definitions/l3xTestnet.d.ts +2 -0
  896. package/_types/chains/definitions/l3xTestnet.d.ts.map +1 -1
  897. package/_types/chains/definitions/lavita.d.ts +2 -0
  898. package/_types/chains/definitions/lavita.d.ts.map +1 -1
  899. package/_types/chains/definitions/lens.d.ts +2 -0
  900. package/_types/chains/definitions/lens.d.ts.map +1 -1
  901. package/_types/chains/definitions/lensTestnet.d.ts +2 -0
  902. package/_types/chains/definitions/lensTestnet.d.ts.map +1 -1
  903. package/_types/chains/definitions/lestnet.d.ts +2 -0
  904. package/_types/chains/definitions/lestnet.d.ts.map +1 -1
  905. package/_types/chains/definitions/lightlinkPegasus.d.ts +2 -0
  906. package/_types/chains/definitions/lightlinkPegasus.d.ts.map +1 -1
  907. package/_types/chains/definitions/lightlinkPhoenix.d.ts +2 -0
  908. package/_types/chains/definitions/lightlinkPhoenix.d.ts.map +1 -1
  909. package/_types/chains/definitions/linea.d.ts +2 -0
  910. package/_types/chains/definitions/linea.d.ts.map +1 -1
  911. package/_types/chains/definitions/lineaGoerli.d.ts +2 -0
  912. package/_types/chains/definitions/lineaGoerli.d.ts.map +1 -1
  913. package/_types/chains/definitions/lineaSepolia.d.ts +2 -0
  914. package/_types/chains/definitions/lineaSepolia.d.ts.map +1 -1
  915. package/_types/chains/definitions/lineaTestnet.d.ts +2 -0
  916. package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -1
  917. package/_types/chains/definitions/lisk.d.ts +2 -0
  918. package/_types/chains/definitions/lisk.d.ts.map +1 -1
  919. package/_types/chains/definitions/liskSepolia.d.ts +2 -0
  920. package/_types/chains/definitions/liskSepolia.d.ts.map +1 -1
  921. package/_types/chains/definitions/loadAlphanet.d.ts +2 -0
  922. package/_types/chains/definitions/loadAlphanet.d.ts.map +1 -1
  923. package/_types/chains/definitions/localhost.d.ts +2 -0
  924. package/_types/chains/definitions/localhost.d.ts.map +1 -1
  925. package/_types/chains/definitions/loop.d.ts +2 -0
  926. package/_types/chains/definitions/loop.d.ts.map +1 -1
  927. package/_types/chains/definitions/lukso.d.ts +2 -0
  928. package/_types/chains/definitions/lukso.d.ts.map +1 -1
  929. package/_types/chains/definitions/luksoTestnet.d.ts +2 -0
  930. package/_types/chains/definitions/luksoTestnet.d.ts.map +1 -1
  931. package/_types/chains/definitions/lumiaMainnet.d.ts +2 -0
  932. package/_types/chains/definitions/lumiaMainnet.d.ts.map +1 -1
  933. package/_types/chains/definitions/lumiaTestnet.d.ts +2 -0
  934. package/_types/chains/definitions/lumiaTestnet.d.ts.map +1 -1
  935. package/_types/chains/definitions/lumoz.d.ts +2 -0
  936. package/_types/chains/definitions/lumoz.d.ts.map +1 -1
  937. package/_types/chains/definitions/lumozTestnet.d.ts +2 -0
  938. package/_types/chains/definitions/lumozTestnet.d.ts.map +1 -1
  939. package/_types/chains/definitions/lycan.d.ts +2 -0
  940. package/_types/chains/definitions/lycan.d.ts.map +1 -1
  941. package/_types/chains/definitions/lyra.d.ts +2 -0
  942. package/_types/chains/definitions/lyra.d.ts.map +1 -1
  943. package/_types/chains/definitions/mainnet.d.ts +2 -0
  944. package/_types/chains/definitions/mainnet.d.ts.map +1 -1
  945. package/_types/chains/definitions/mandala.d.ts +2 -0
  946. package/_types/chains/definitions/mandala.d.ts.map +1 -1
  947. package/_types/chains/definitions/manta.d.ts +2 -0
  948. package/_types/chains/definitions/manta.d.ts.map +1 -1
  949. package/_types/chains/definitions/mantaSepoliaTestnet.d.ts +2 -0
  950. package/_types/chains/definitions/mantaSepoliaTestnet.d.ts.map +1 -1
  951. package/_types/chains/definitions/mantaTestnet.d.ts +2 -0
  952. package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -1
  953. package/_types/chains/definitions/mantle.d.ts +2 -0
  954. package/_types/chains/definitions/mantle.d.ts.map +1 -1
  955. package/_types/chains/definitions/mantleSepoliaTestnet.d.ts +2 -0
  956. package/_types/chains/definitions/mantleSepoliaTestnet.d.ts.map +1 -1
  957. package/_types/chains/definitions/mantleTestnet.d.ts +2 -0
  958. package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -1
  959. package/_types/chains/definitions/mantraDuKongEVMTestnet.d.ts +2 -0
  960. package/_types/chains/definitions/mantraDuKongEVMTestnet.d.ts.map +1 -1
  961. package/_types/chains/definitions/mantraEVM.d.ts +2 -0
  962. package/_types/chains/definitions/mantraEVM.d.ts.map +1 -1
  963. package/_types/chains/definitions/mapProtocol.d.ts +2 -0
  964. package/_types/chains/definitions/mapProtocol.d.ts.map +1 -1
  965. package/_types/chains/definitions/matchain.d.ts +2 -0
  966. package/_types/chains/definitions/matchain.d.ts.map +1 -1
  967. package/_types/chains/definitions/matchainTestnet.d.ts +2 -0
  968. package/_types/chains/definitions/matchainTestnet.d.ts.map +1 -1
  969. package/_types/chains/definitions/mchVerse.d.ts +2 -0
  970. package/_types/chains/definitions/mchVerse.d.ts.map +1 -1
  971. package/_types/chains/definitions/megaethTestnet.d.ts +2 -0
  972. package/_types/chains/definitions/megaethTestnet.d.ts.map +1 -1
  973. package/_types/chains/definitions/mekong.d.ts +2 -0
  974. package/_types/chains/definitions/mekong.d.ts.map +1 -1
  975. package/_types/chains/definitions/meld.d.ts +2 -0
  976. package/_types/chains/definitions/meld.d.ts.map +1 -1
  977. package/_types/chains/definitions/memecore.d.ts +2 -0
  978. package/_types/chains/definitions/memecore.d.ts.map +1 -1
  979. package/_types/chains/definitions/memecoreFormicariumTestnet.d.ts +2 -0
  980. package/_types/chains/definitions/memecoreFormicariumTestnet.d.ts.map +1 -1
  981. package/_types/chains/definitions/merlin.d.ts +2 -0
  982. package/_types/chains/definitions/merlin.d.ts.map +1 -1
  983. package/_types/chains/definitions/merlinErigonTestnet.d.ts +2 -0
  984. package/_types/chains/definitions/merlinErigonTestnet.d.ts.map +1 -1
  985. package/_types/chains/definitions/metachain.d.ts +2 -0
  986. package/_types/chains/definitions/metachain.d.ts.map +1 -1
  987. package/_types/chains/definitions/metachainIstanbul.d.ts +2 -0
  988. package/_types/chains/definitions/metachainIstanbul.d.ts.map +1 -1
  989. package/_types/chains/definitions/metadium.d.ts +2 -0
  990. package/_types/chains/definitions/metadium.d.ts.map +1 -1
  991. package/_types/chains/definitions/metalL2.d.ts +2 -0
  992. package/_types/chains/definitions/metalL2.d.ts.map +1 -1
  993. package/_types/chains/definitions/meter.d.ts +2 -0
  994. package/_types/chains/definitions/meter.d.ts.map +1 -1
  995. package/_types/chains/definitions/meterTestnet.d.ts +2 -0
  996. package/_types/chains/definitions/meterTestnet.d.ts.map +1 -1
  997. package/_types/chains/definitions/metis.d.ts +2 -0
  998. package/_types/chains/definitions/metis.d.ts.map +1 -1
  999. package/_types/chains/definitions/metisGoerli.d.ts +2 -0
  1000. package/_types/chains/definitions/metisGoerli.d.ts.map +1 -1
  1001. package/_types/chains/definitions/metisSepolia.d.ts +2 -0
  1002. package/_types/chains/definitions/metisSepolia.d.ts.map +1 -1
  1003. package/_types/chains/definitions/mev.d.ts +2 -0
  1004. package/_types/chains/definitions/mev.d.ts.map +1 -1
  1005. package/_types/chains/definitions/mevTestnet.d.ts +2 -0
  1006. package/_types/chains/definitions/mevTestnet.d.ts.map +1 -1
  1007. package/_types/chains/definitions/mint.d.ts +2 -0
  1008. package/_types/chains/definitions/mint.d.ts.map +1 -1
  1009. package/_types/chains/definitions/mintSepoliaTestnet.d.ts +2 -0
  1010. package/_types/chains/definitions/mintSepoliaTestnet.d.ts.map +1 -1
  1011. package/_types/chains/definitions/mitosisTestnet.d.ts +2 -0
  1012. package/_types/chains/definitions/mitosisTestnet.d.ts.map +1 -1
  1013. package/_types/chains/definitions/mode.d.ts +2 -0
  1014. package/_types/chains/definitions/mode.d.ts.map +1 -1
  1015. package/_types/chains/definitions/modeTestnet.d.ts +2 -0
  1016. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -1
  1017. package/_types/chains/definitions/monad.d.ts +2 -0
  1018. package/_types/chains/definitions/monad.d.ts.map +1 -1
  1019. package/_types/chains/definitions/monadTestnet.d.ts +2 -0
  1020. package/_types/chains/definitions/monadTestnet.d.ts.map +1 -1
  1021. package/_types/chains/definitions/moonbaseAlpha.d.ts +2 -0
  1022. package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -1
  1023. package/_types/chains/definitions/moonbeam.d.ts +2 -0
  1024. package/_types/chains/definitions/moonbeam.d.ts.map +1 -1
  1025. package/_types/chains/definitions/moonbeamDev.d.ts +2 -0
  1026. package/_types/chains/definitions/moonbeamDev.d.ts.map +1 -1
  1027. package/_types/chains/definitions/moonriver.d.ts +2 -0
  1028. package/_types/chains/definitions/moonriver.d.ts.map +1 -1
  1029. package/_types/chains/definitions/morph.d.ts +2 -0
  1030. package/_types/chains/definitions/morph.d.ts.map +1 -1
  1031. package/_types/chains/definitions/morphHolesky.d.ts +2 -0
  1032. package/_types/chains/definitions/morphHolesky.d.ts.map +1 -1
  1033. package/_types/chains/definitions/morphSepolia.d.ts +2 -0
  1034. package/_types/chains/definitions/morphSepolia.d.ts.map +1 -1
  1035. package/_types/chains/definitions/nahmii.d.ts +2 -0
  1036. package/_types/chains/definitions/nahmii.d.ts.map +1 -1
  1037. package/_types/chains/definitions/nautilus.d.ts +2 -0
  1038. package/_types/chains/definitions/nautilus.d.ts.map +1 -1
  1039. package/_types/chains/definitions/near.d.ts +2 -0
  1040. package/_types/chains/definitions/near.d.ts.map +1 -1
  1041. package/_types/chains/definitions/nearTestnet.d.ts +2 -0
  1042. package/_types/chains/definitions/nearTestnet.d.ts.map +1 -1
  1043. package/_types/chains/definitions/neonDevnet.d.ts +2 -0
  1044. package/_types/chains/definitions/neonDevnet.d.ts.map +1 -1
  1045. package/_types/chains/definitions/neonMainnet.d.ts +2 -0
  1046. package/_types/chains/definitions/neonMainnet.d.ts.map +1 -1
  1047. package/_types/chains/definitions/neoxMainnet.d.ts +2 -0
  1048. package/_types/chains/definitions/neoxMainnet.d.ts.map +1 -1
  1049. package/_types/chains/definitions/neoxT4.d.ts +2 -0
  1050. package/_types/chains/definitions/neoxT4.d.ts.map +1 -1
  1051. package/_types/chains/definitions/newton.d.ts +2 -0
  1052. package/_types/chains/definitions/newton.d.ts.map +1 -1
  1053. package/_types/chains/definitions/nexi.d.ts +2 -0
  1054. package/_types/chains/definitions/nexi.d.ts.map +1 -1
  1055. package/_types/chains/definitions/nexilix.d.ts +2 -0
  1056. package/_types/chains/definitions/nexilix.d.ts.map +1 -1
  1057. package/_types/chains/definitions/nibiru.d.ts +2 -0
  1058. package/_types/chains/definitions/nibiru.d.ts.map +1 -1
  1059. package/_types/chains/definitions/nitrographTestnet.d.ts +2 -0
  1060. package/_types/chains/definitions/nitrographTestnet.d.ts.map +1 -1
  1061. package/_types/chains/definitions/nomina.d.ts +2 -0
  1062. package/_types/chains/definitions/nomina.d.ts.map +1 -1
  1063. package/_types/chains/definitions/oasisTestnet.d.ts +2 -0
  1064. package/_types/chains/definitions/oasisTestnet.d.ts.map +1 -1
  1065. package/_types/chains/definitions/oasys.d.ts +2 -0
  1066. package/_types/chains/definitions/oasys.d.ts.map +1 -1
  1067. package/_types/chains/definitions/odysseyTestnet.d.ts +2 -0
  1068. package/_types/chains/definitions/odysseyTestnet.d.ts.map +1 -1
  1069. package/_types/chains/definitions/okc.d.ts +2 -0
  1070. package/_types/chains/definitions/okc.d.ts.map +1 -1
  1071. package/_types/chains/definitions/omax.d.ts +2 -0
  1072. package/_types/chains/definitions/omax.d.ts.map +1 -1
  1073. package/_types/chains/definitions/omni.d.ts +2 -0
  1074. package/_types/chains/definitions/omni.d.ts.map +1 -1
  1075. package/_types/chains/definitions/omniOmega.d.ts +2 -0
  1076. package/_types/chains/definitions/omniOmega.d.ts.map +1 -1
  1077. package/_types/chains/definitions/oneWorld.d.ts +2 -0
  1078. package/_types/chains/definitions/oneWorld.d.ts.map +1 -1
  1079. package/_types/chains/definitions/oortmainnetDev.d.ts +2 -0
  1080. package/_types/chains/definitions/oortmainnetDev.d.ts.map +1 -1
  1081. package/_types/chains/definitions/opBNB.d.ts +2 -0
  1082. package/_types/chains/definitions/opBNB.d.ts.map +1 -1
  1083. package/_types/chains/definitions/opBNBTestnet.d.ts +2 -0
  1084. package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -1
  1085. package/_types/chains/definitions/openledger.d.ts +2 -0
  1086. package/_types/chains/definitions/openledger.d.ts.map +1 -1
  1087. package/_types/chains/definitions/optimism.d.ts +2 -0
  1088. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  1089. package/_types/chains/definitions/optimismGoerli.d.ts +2 -0
  1090. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  1091. package/_types/chains/definitions/optimismSepolia.d.ts +2 -0
  1092. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  1093. package/_types/chains/definitions/optopia.d.ts +2 -0
  1094. package/_types/chains/definitions/optopia.d.ts.map +1 -1
  1095. package/_types/chains/definitions/optopiaTestnet.d.ts +2 -0
  1096. package/_types/chains/definitions/optopiaTestnet.d.ts.map +1 -1
  1097. package/_types/chains/definitions/orderly.d.ts +2 -0
  1098. package/_types/chains/definitions/orderly.d.ts.map +1 -1
  1099. package/_types/chains/definitions/orderlySepolia.d.ts +2 -0
  1100. package/_types/chains/definitions/orderlySepolia.d.ts.map +1 -1
  1101. package/_types/chains/definitions/otimDevnet.d.ts +2 -0
  1102. package/_types/chains/definitions/otimDevnet.d.ts.map +1 -1
  1103. package/_types/chains/definitions/palm.d.ts +2 -0
  1104. package/_types/chains/definitions/palm.d.ts.map +1 -1
  1105. package/_types/chains/definitions/palmTestnet.d.ts +2 -0
  1106. package/_types/chains/definitions/palmTestnet.d.ts.map +1 -1
  1107. package/_types/chains/definitions/peaq.d.ts +2 -0
  1108. package/_types/chains/definitions/peaq.d.ts.map +1 -1
  1109. package/_types/chains/definitions/pgn.d.ts +2 -0
  1110. package/_types/chains/definitions/pgn.d.ts.map +1 -1
  1111. package/_types/chains/definitions/pgnTestnet.d.ts +2 -0
  1112. package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
  1113. package/_types/chains/definitions/phoenix.d.ts +2 -0
  1114. package/_types/chains/definitions/phoenix.d.ts.map +1 -1
  1115. package/_types/chains/definitions/planq.d.ts +2 -0
  1116. package/_types/chains/definitions/planq.d.ts.map +1 -1
  1117. package/_types/chains/definitions/plasma.d.ts +2 -0
  1118. package/_types/chains/definitions/plasma.d.ts.map +1 -1
  1119. package/_types/chains/definitions/plasmaDevnet.d.ts +2 -0
  1120. package/_types/chains/definitions/plasmaDevnet.d.ts.map +1 -1
  1121. package/_types/chains/definitions/plasmaTestnet.d.ts +2 -0
  1122. package/_types/chains/definitions/plasmaTestnet.d.ts.map +1 -1
  1123. package/_types/chains/definitions/playfiAlbireo.d.ts +2 -0
  1124. package/_types/chains/definitions/playfiAlbireo.d.ts.map +1 -1
  1125. package/_types/chains/definitions/plinga.d.ts +2 -0
  1126. package/_types/chains/definitions/plinga.d.ts.map +1 -1
  1127. package/_types/chains/definitions/plume.d.ts +2 -0
  1128. package/_types/chains/definitions/plume.d.ts.map +1 -1
  1129. package/_types/chains/definitions/plumeDevnet.d.ts +2 -0
  1130. package/_types/chains/definitions/plumeDevnet.d.ts.map +1 -1
  1131. package/_types/chains/definitions/plumeMainnet.d.ts +2 -0
  1132. package/_types/chains/definitions/plumeMainnet.d.ts.map +1 -1
  1133. package/_types/chains/definitions/plumeSepolia.d.ts +2 -0
  1134. package/_types/chains/definitions/plumeSepolia.d.ts.map +1 -1
  1135. package/_types/chains/definitions/plumeTestnet.d.ts +2 -0
  1136. package/_types/chains/definitions/plumeTestnet.d.ts.map +1 -1
  1137. package/_types/chains/definitions/polterTestnet.d.ts +2 -0
  1138. package/_types/chains/definitions/polterTestnet.d.ts.map +1 -1
  1139. package/_types/chains/definitions/polygon.d.ts +3 -1
  1140. package/_types/chains/definitions/polygon.d.ts.map +1 -1
  1141. package/_types/chains/definitions/polygonAmoy.d.ts +3 -1
  1142. package/_types/chains/definitions/polygonAmoy.d.ts.map +1 -1
  1143. package/_types/chains/definitions/polygonMumbai.d.ts +2 -0
  1144. package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -1
  1145. package/_types/chains/definitions/polygonZkEvm.d.ts +2 -0
  1146. package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -1
  1147. package/_types/chains/definitions/polygonZkEvmCardona.d.ts +2 -0
  1148. package/_types/chains/definitions/polygonZkEvmCardona.d.ts.map +1 -1
  1149. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +2 -0
  1150. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -1
  1151. package/_types/chains/definitions/polynomial.d.ts +2 -0
  1152. package/_types/chains/definitions/polynomial.d.ts.map +1 -1
  1153. package/_types/chains/definitions/polynomialSepolia.d.ts +2 -0
  1154. package/_types/chains/definitions/polynomialSepolia.d.ts.map +1 -1
  1155. package/_types/chains/definitions/potos.d.ts +2 -0
  1156. package/_types/chains/definitions/potos.d.ts.map +1 -1
  1157. package/_types/chains/definitions/potosTestnet.d.ts +2 -0
  1158. package/_types/chains/definitions/potosTestnet.d.ts.map +1 -1
  1159. package/_types/chains/definitions/premiumBlock.d.ts +2 -0
  1160. package/_types/chains/definitions/premiumBlock.d.ts.map +1 -1
  1161. package/_types/chains/definitions/pulsechain.d.ts +2 -0
  1162. package/_types/chains/definitions/pulsechain.d.ts.map +1 -1
  1163. package/_types/chains/definitions/pulsechainV4.d.ts +2 -0
  1164. package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -1
  1165. package/_types/chains/definitions/pumpfiTestnet.d.ts +2 -0
  1166. package/_types/chains/definitions/pumpfiTestnet.d.ts.map +1 -1
  1167. package/_types/chains/definitions/pyrope.d.ts +2 -0
  1168. package/_types/chains/definitions/pyrope.d.ts.map +1 -1
  1169. package/_types/chains/definitions/qMainnet.d.ts +2 -0
  1170. package/_types/chains/definitions/qMainnet.d.ts.map +1 -1
  1171. package/_types/chains/definitions/qTestnet.d.ts +2 -0
  1172. package/_types/chains/definitions/qTestnet.d.ts.map +1 -1
  1173. package/_types/chains/definitions/ql1.d.ts +2 -0
  1174. package/_types/chains/definitions/ql1.d.ts.map +1 -1
  1175. package/_types/chains/definitions/quai.d.ts +2 -0
  1176. package/_types/chains/definitions/quai.d.ts.map +1 -1
  1177. package/_types/chains/definitions/quaiTestnet.d.ts +2 -0
  1178. package/_types/chains/definitions/quaiTestnet.d.ts.map +1 -1
  1179. package/_types/chains/definitions/reactiveTestnet.d.ts +2 -0
  1180. package/_types/chains/definitions/reactiveTestnet.d.ts.map +1 -1
  1181. package/_types/chains/definitions/real.d.ts +2 -0
  1182. package/_types/chains/definitions/real.d.ts.map +1 -1
  1183. package/_types/chains/definitions/redbellyMainnet.d.ts +2 -0
  1184. package/_types/chains/definitions/redbellyMainnet.d.ts.map +1 -1
  1185. package/_types/chains/definitions/redbellyTestnet.d.ts +2 -0
  1186. package/_types/chains/definitions/redbellyTestnet.d.ts.map +1 -1
  1187. package/_types/chains/definitions/reddio.d.ts +2 -0
  1188. package/_types/chains/definitions/reddio.d.ts.map +1 -1
  1189. package/_types/chains/definitions/reddioSepolia.d.ts +2 -0
  1190. package/_types/chains/definitions/reddioSepolia.d.ts.map +1 -1
  1191. package/_types/chains/definitions/redstone.d.ts +2 -0
  1192. package/_types/chains/definitions/redstone.d.ts.map +1 -1
  1193. package/_types/chains/definitions/rei.d.ts +2 -0
  1194. package/_types/chains/definitions/rei.d.ts.map +1 -1
  1195. package/_types/chains/definitions/reyaNetwork.d.ts +2 -0
  1196. package/_types/chains/definitions/reyaNetwork.d.ts.map +1 -1
  1197. package/_types/chains/definitions/riseTestnet.d.ts +2 -0
  1198. package/_types/chains/definitions/riseTestnet.d.ts.map +1 -1
  1199. package/_types/chains/definitions/rivalz.d.ts +2 -0
  1200. package/_types/chains/definitions/rivalz.d.ts.map +1 -1
  1201. package/_types/chains/definitions/rollux.d.ts +2 -0
  1202. package/_types/chains/definitions/rollux.d.ts.map +1 -1
  1203. package/_types/chains/definitions/rolluxTestnet.d.ts +2 -0
  1204. package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -1
  1205. package/_types/chains/definitions/ronin.d.ts +2 -0
  1206. package/_types/chains/definitions/ronin.d.ts.map +1 -1
  1207. package/_types/chains/definitions/root.d.ts +2 -0
  1208. package/_types/chains/definitions/root.d.ts.map +1 -1
  1209. package/_types/chains/definitions/rootPorcini.d.ts +2 -0
  1210. package/_types/chains/definitions/rootPorcini.d.ts.map +1 -1
  1211. package/_types/chains/definitions/rootstock.d.ts +2 -0
  1212. package/_types/chains/definitions/rootstock.d.ts.map +1 -1
  1213. package/_types/chains/definitions/rootstockTestnet.d.ts +2 -0
  1214. package/_types/chains/definitions/rootstockTestnet.d.ts.map +1 -1
  1215. package/_types/chains/definitions/rss3.d.ts +2 -0
  1216. package/_types/chains/definitions/rss3.d.ts.map +1 -1
  1217. package/_types/chains/definitions/rss3Sepolia.d.ts +2 -0
  1218. package/_types/chains/definitions/rss3Sepolia.d.ts.map +1 -1
  1219. package/_types/chains/definitions/saakuru.d.ts +2 -0
  1220. package/_types/chains/definitions/saakuru.d.ts.map +1 -1
  1221. package/_types/chains/definitions/saga.d.ts +2 -0
  1222. package/_types/chains/definitions/saga.d.ts.map +1 -1
  1223. package/_types/chains/definitions/saigon.d.ts +2 -0
  1224. package/_types/chains/definitions/saigon.d.ts.map +1 -1
  1225. package/_types/chains/definitions/sanko.d.ts +2 -0
  1226. package/_types/chains/definitions/sanko.d.ts.map +1 -1
  1227. package/_types/chains/definitions/sapphire.d.ts +2 -0
  1228. package/_types/chains/definitions/sapphire.d.ts.map +1 -1
  1229. package/_types/chains/definitions/sapphireTestnet.d.ts +2 -0
  1230. package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -1
  1231. package/_types/chains/definitions/satoshivm.d.ts +2 -0
  1232. package/_types/chains/definitions/satoshivm.d.ts.map +1 -1
  1233. package/_types/chains/definitions/satoshivmTestnet.d.ts +2 -0
  1234. package/_types/chains/definitions/satoshivmTestnet.d.ts.map +1 -1
  1235. package/_types/chains/definitions/scroll.d.ts +2 -0
  1236. package/_types/chains/definitions/scroll.d.ts.map +1 -1
  1237. package/_types/chains/definitions/scrollSepolia.d.ts +2 -0
  1238. package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -1
  1239. package/_types/chains/definitions/sei.d.ts +2 -0
  1240. package/_types/chains/definitions/sei.d.ts.map +1 -1
  1241. package/_types/chains/definitions/seiDevnet.d.ts +2 -0
  1242. package/_types/chains/definitions/seiDevnet.d.ts.map +1 -1
  1243. package/_types/chains/definitions/seiTestnet.d.ts +2 -0
  1244. package/_types/chains/definitions/seiTestnet.d.ts.map +1 -1
  1245. package/_types/chains/definitions/seismicDevnet.d.ts +2 -0
  1246. package/_types/chains/definitions/seismicDevnet.d.ts.map +1 -1
  1247. package/_types/chains/definitions/sepolia.d.ts +2 -0
  1248. package/_types/chains/definitions/sepolia.d.ts.map +1 -1
  1249. package/_types/chains/definitions/shape.d.ts +2 -0
  1250. package/_types/chains/definitions/shape.d.ts.map +1 -1
  1251. package/_types/chains/definitions/shapeSepolia.d.ts +2 -0
  1252. package/_types/chains/definitions/shapeSepolia.d.ts.map +1 -1
  1253. package/_types/chains/definitions/shardeum.d.ts +2 -0
  1254. package/_types/chains/definitions/shardeum.d.ts.map +1 -1
  1255. package/_types/chains/definitions/shardeumSphinx.d.ts +2 -0
  1256. package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -1
  1257. package/_types/chains/definitions/shibarium.d.ts +2 -0
  1258. package/_types/chains/definitions/shibarium.d.ts.map +1 -1
  1259. package/_types/chains/definitions/shibariumTestnet.d.ts +2 -0
  1260. package/_types/chains/definitions/shibariumTestnet.d.ts.map +1 -1
  1261. package/_types/chains/definitions/shiden.d.ts +2 -0
  1262. package/_types/chains/definitions/shiden.d.ts.map +1 -1
  1263. package/_types/chains/definitions/shimmer.d.ts +2 -0
  1264. package/_types/chains/definitions/shimmer.d.ts.map +1 -1
  1265. package/_types/chains/definitions/shimmerTestnet.d.ts +2 -0
  1266. package/_types/chains/definitions/shimmerTestnet.d.ts.map +1 -1
  1267. package/_types/chains/definitions/sidra.d.ts +2 -0
  1268. package/_types/chains/definitions/sidra.d.ts.map +1 -1
  1269. package/_types/chains/definitions/silentdata.d.ts +2 -0
  1270. package/_types/chains/definitions/silentdata.d.ts.map +1 -1
  1271. package/_types/chains/definitions/silicon.d.ts +2 -0
  1272. package/_types/chains/definitions/silicon.d.ts.map +1 -1
  1273. package/_types/chains/definitions/siliconSepolia.d.ts +2 -0
  1274. package/_types/chains/definitions/siliconSepolia.d.ts.map +1 -1
  1275. package/_types/chains/definitions/sixProtocol.d.ts +2 -0
  1276. package/_types/chains/definitions/sixProtocol.d.ts.map +1 -1
  1277. package/_types/chains/definitions/skale/brawl.d.ts +2 -0
  1278. package/_types/chains/definitions/skale/brawl.d.ts.map +1 -1
  1279. package/_types/chains/definitions/skale/calypso.d.ts +2 -0
  1280. package/_types/chains/definitions/skale/calypso.d.ts.map +1 -1
  1281. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +2 -0
  1282. package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -1
  1283. package/_types/chains/definitions/skale/cryptoBlades.d.ts +2 -0
  1284. package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -1
  1285. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +2 -0
  1286. package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -1
  1287. package/_types/chains/definitions/skale/europa.d.ts +2 -0
  1288. package/_types/chains/definitions/skale/europa.d.ts.map +1 -1
  1289. package/_types/chains/definitions/skale/europaTestnet.d.ts +2 -0
  1290. package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -1
  1291. package/_types/chains/definitions/skale/exorde.d.ts +2 -0
  1292. package/_types/chains/definitions/skale/exorde.d.ts.map +1 -1
  1293. package/_types/chains/definitions/skale/humanProtocol.d.ts +2 -0
  1294. package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -1
  1295. package/_types/chains/definitions/skale/nebula.d.ts +2 -0
  1296. package/_types/chains/definitions/skale/nebula.d.ts.map +1 -1
  1297. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +2 -0
  1298. package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -1
  1299. package/_types/chains/definitions/skale/razor.d.ts +2 -0
  1300. package/_types/chains/definitions/skale/razor.d.ts.map +1 -1
  1301. package/_types/chains/definitions/skale/skaleBase.d.ts +49 -0
  1302. package/_types/chains/definitions/skale/skaleBase.d.ts.map +1 -0
  1303. package/_types/chains/definitions/skale/skaleBaseSepoliaTestnet.d.ts +49 -0
  1304. package/_types/chains/definitions/skale/skaleBaseSepoliaTestnet.d.ts.map +1 -0
  1305. package/_types/chains/definitions/skale/titan.d.ts +2 -0
  1306. package/_types/chains/definitions/skale/titan.d.ts.map +1 -1
  1307. package/_types/chains/definitions/skale/titanTestnet.d.ts +2 -0
  1308. package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -1
  1309. package/_types/chains/definitions/sketchpad.d.ts +2 -0
  1310. package/_types/chains/definitions/sketchpad.d.ts.map +1 -1
  1311. package/_types/chains/definitions/snax.d.ts +2 -0
  1312. package/_types/chains/definitions/snax.d.ts.map +1 -1
  1313. package/_types/chains/definitions/snaxTestnet.d.ts +2 -0
  1314. package/_types/chains/definitions/snaxTestnet.d.ts.map +1 -1
  1315. package/_types/chains/definitions/somnia.d.ts +49 -0
  1316. package/_types/chains/definitions/somnia.d.ts.map +1 -0
  1317. package/_types/chains/definitions/somniaTestnet.d.ts +2 -0
  1318. package/_types/chains/definitions/somniaTestnet.d.ts.map +1 -1
  1319. package/_types/chains/definitions/soneium.d.ts +2 -0
  1320. package/_types/chains/definitions/soneium.d.ts.map +1 -1
  1321. package/_types/chains/definitions/soneiumMinato.d.ts +2 -0
  1322. package/_types/chains/definitions/soneiumMinato.d.ts.map +1 -1
  1323. package/_types/chains/definitions/songbird.d.ts +2 -0
  1324. package/_types/chains/definitions/songbird.d.ts.map +1 -1
  1325. package/_types/chains/definitions/songbirdTestnet.d.ts +2 -0
  1326. package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -1
  1327. package/_types/chains/definitions/sonic.d.ts +2 -0
  1328. package/_types/chains/definitions/sonic.d.ts.map +1 -1
  1329. package/_types/chains/definitions/sonicBlazeTestnet.d.ts +2 -0
  1330. package/_types/chains/definitions/sonicBlazeTestnet.d.ts.map +1 -1
  1331. package/_types/chains/definitions/sonicTestnet.d.ts +2 -0
  1332. package/_types/chains/definitions/sonicTestnet.d.ts.map +1 -1
  1333. package/_types/chains/definitions/sophon.d.ts +2 -0
  1334. package/_types/chains/definitions/sophon.d.ts.map +1 -1
  1335. package/_types/chains/definitions/sophonTestnet.d.ts +2 -0
  1336. package/_types/chains/definitions/sophonTestnet.d.ts.map +1 -1
  1337. package/_types/chains/definitions/sova.d.ts +2 -0
  1338. package/_types/chains/definitions/sova.d.ts.map +1 -1
  1339. package/_types/chains/definitions/sovaSepolia.d.ts +2 -0
  1340. package/_types/chains/definitions/sovaSepolia.d.ts.map +1 -1
  1341. package/_types/chains/definitions/spicy.d.ts +2 -0
  1342. package/_types/chains/definitions/spicy.d.ts.map +1 -1
  1343. package/_types/chains/definitions/stableTestnet.d.ts +2 -0
  1344. package/_types/chains/definitions/stableTestnet.d.ts.map +1 -1
  1345. package/_types/chains/definitions/statusNetworkSepolia.d.ts +2 -0
  1346. package/_types/chains/definitions/statusNetworkSepolia.d.ts.map +1 -1
  1347. package/_types/chains/definitions/step.d.ts +2 -0
  1348. package/_types/chains/definitions/step.d.ts.map +1 -1
  1349. package/_types/chains/definitions/story.d.ts +2 -0
  1350. package/_types/chains/definitions/story.d.ts.map +1 -1
  1351. package/_types/chains/definitions/storyAeneid.d.ts +2 -0
  1352. package/_types/chains/definitions/storyAeneid.d.ts.map +1 -1
  1353. package/_types/chains/definitions/storyOdyssey.d.ts +2 -0
  1354. package/_types/chains/definitions/storyOdyssey.d.ts.map +1 -1
  1355. package/_types/chains/definitions/storyTestnet.d.ts +2 -0
  1356. package/_types/chains/definitions/storyTestnet.d.ts.map +1 -1
  1357. package/_types/chains/definitions/stratis.d.ts +2 -0
  1358. package/_types/chains/definitions/stratis.d.ts.map +1 -1
  1359. package/_types/chains/definitions/superlumio.d.ts +2 -0
  1360. package/_types/chains/definitions/superlumio.d.ts.map +1 -1
  1361. package/_types/chains/definitions/superposition.d.ts +2 -0
  1362. package/_types/chains/definitions/superposition.d.ts.map +1 -1
  1363. package/_types/chains/definitions/superseed.d.ts +2 -0
  1364. package/_types/chains/definitions/superseed.d.ts.map +1 -1
  1365. package/_types/chains/definitions/superseedSepolia.d.ts +2 -0
  1366. package/_types/chains/definitions/superseedSepolia.d.ts.map +1 -1
  1367. package/_types/chains/definitions/surgeTestnet.d.ts +2 -0
  1368. package/_types/chains/definitions/surgeTestnet.d.ts.map +1 -1
  1369. package/_types/chains/definitions/swan.d.ts +2 -0
  1370. package/_types/chains/definitions/swan.d.ts.map +1 -1
  1371. package/_types/chains/definitions/swanProximaTestnet.d.ts +2 -0
  1372. package/_types/chains/definitions/swanProximaTestnet.d.ts.map +1 -1
  1373. package/_types/chains/definitions/swanSaturnTestnet.d.ts +2 -0
  1374. package/_types/chains/definitions/swanSaturnTestnet.d.ts.map +1 -1
  1375. package/_types/chains/definitions/swellchain.d.ts +2 -0
  1376. package/_types/chains/definitions/swellchain.d.ts.map +1 -1
  1377. package/_types/chains/definitions/swellchainTestnet.d.ts +2 -0
  1378. package/_types/chains/definitions/swellchainTestnet.d.ts.map +1 -1
  1379. package/_types/chains/definitions/swissdlt.d.ts +2 -0
  1380. package/_types/chains/definitions/swissdlt.d.ts.map +1 -1
  1381. package/_types/chains/definitions/syscoin.d.ts +2 -0
  1382. package/_types/chains/definitions/syscoin.d.ts.map +1 -1
  1383. package/_types/chains/definitions/syscoinTestnet.d.ts +2 -0
  1384. package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -1
  1385. package/_types/chains/definitions/tac.d.ts +2 -0
  1386. package/_types/chains/definitions/tac.d.ts.map +1 -1
  1387. package/_types/chains/definitions/tacSPB.d.ts +2 -0
  1388. package/_types/chains/definitions/tacSPB.d.ts.map +1 -1
  1389. package/_types/chains/definitions/taiko.d.ts +2 -0
  1390. package/_types/chains/definitions/taiko.d.ts.map +1 -1
  1391. package/_types/chains/definitions/taikoHekla.d.ts +2 -0
  1392. package/_types/chains/definitions/taikoHekla.d.ts.map +1 -1
  1393. package/_types/chains/definitions/taikoHoodi.d.ts +2 -0
  1394. package/_types/chains/definitions/taikoHoodi.d.ts.map +1 -1
  1395. package/_types/chains/definitions/taikoJolnir.d.ts +2 -0
  1396. package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -1
  1397. package/_types/chains/definitions/taikoKatla.d.ts +2 -0
  1398. package/_types/chains/definitions/taikoKatla.d.ts.map +1 -1
  1399. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +2 -0
  1400. package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -1
  1401. package/_types/chains/definitions/taraxa.d.ts +2 -0
  1402. package/_types/chains/definitions/taraxa.d.ts.map +1 -1
  1403. package/_types/chains/definitions/taraxaTestnet.d.ts +2 -0
  1404. package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -1
  1405. package/_types/chains/definitions/teaSepolia.d.ts +2 -0
  1406. package/_types/chains/definitions/teaSepolia.d.ts.map +1 -1
  1407. package/_types/chains/definitions/telcoinTestnet.d.ts +2 -0
  1408. package/_types/chains/definitions/telcoinTestnet.d.ts.map +1 -1
  1409. package/_types/chains/definitions/telos.d.ts +2 -0
  1410. package/_types/chains/definitions/telos.d.ts.map +1 -1
  1411. package/_types/chains/definitions/telosTestnet.d.ts +2 -0
  1412. package/_types/chains/definitions/telosTestnet.d.ts.map +1 -1
  1413. package/_types/chains/definitions/tempoDevnet.d.ts +908 -0
  1414. package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -0
  1415. package/_types/chains/definitions/tempoLocalnet.d.ts +906 -0
  1416. package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -0
  1417. package/_types/chains/definitions/tempoTestnet.d.ts +908 -0
  1418. package/_types/chains/definitions/tempoTestnet.d.ts.map +1 -0
  1419. package/_types/chains/definitions/tenet.d.ts +2 -0
  1420. package/_types/chains/definitions/tenet.d.ts.map +1 -1
  1421. package/_types/chains/definitions/ternoa.d.ts +2 -0
  1422. package/_types/chains/definitions/ternoa.d.ts.map +1 -1
  1423. package/_types/chains/definitions/thaiChain.d.ts +2 -0
  1424. package/_types/chains/definitions/thaiChain.d.ts.map +1 -1
  1425. package/_types/chains/definitions/that.d.ts +2 -0
  1426. package/_types/chains/definitions/that.d.ts.map +1 -1
  1427. package/_types/chains/definitions/theta.d.ts +2 -0
  1428. package/_types/chains/definitions/theta.d.ts.map +1 -1
  1429. package/_types/chains/definitions/thetaTestnet.d.ts +2 -0
  1430. package/_types/chains/definitions/thetaTestnet.d.ts.map +1 -1
  1431. package/_types/chains/definitions/thunderCore.d.ts +2 -0
  1432. package/_types/chains/definitions/thunderCore.d.ts.map +1 -1
  1433. package/_types/chains/definitions/thunderTestnet.d.ts +2 -0
  1434. package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -1
  1435. package/_types/chains/definitions/tiktrixTestnet.d.ts +2 -0
  1436. package/_types/chains/definitions/tiktrixTestnet.d.ts.map +1 -1
  1437. package/_types/chains/definitions/tomb.d.ts +2 -0
  1438. package/_types/chains/definitions/tomb.d.ts.map +1 -1
  1439. package/_types/chains/definitions/treasure.d.ts +2 -0
  1440. package/_types/chains/definitions/treasure.d.ts.map +1 -1
  1441. package/_types/chains/definitions/treasureTopaz.d.ts +2 -0
  1442. package/_types/chains/definitions/treasureTopaz.d.ts.map +1 -1
  1443. package/_types/chains/definitions/tron.d.ts +2 -0
  1444. package/_types/chains/definitions/tron.d.ts.map +1 -1
  1445. package/_types/chains/definitions/tronNile.d.ts +2 -0
  1446. package/_types/chains/definitions/tronNile.d.ts.map +1 -1
  1447. package/_types/chains/definitions/tronShasta.d.ts +2 -0
  1448. package/_types/chains/definitions/tronShasta.d.ts.map +1 -1
  1449. package/_types/chains/definitions/ubiq.d.ts +2 -0
  1450. package/_types/chains/definitions/ubiq.d.ts.map +1 -1
  1451. package/_types/chains/definitions/ultra.d.ts +2 -0
  1452. package/_types/chains/definitions/ultra.d.ts.map +1 -1
  1453. package/_types/chains/definitions/ultraTestnet.d.ts +2 -0
  1454. package/_types/chains/definitions/ultraTestnet.d.ts.map +1 -1
  1455. package/_types/chains/definitions/ultron.d.ts +2 -0
  1456. package/_types/chains/definitions/ultron.d.ts.map +1 -1
  1457. package/_types/chains/definitions/ultronTestnet.d.ts +2 -0
  1458. package/_types/chains/definitions/ultronTestnet.d.ts.map +1 -1
  1459. package/_types/chains/definitions/unichain.d.ts +2 -0
  1460. package/_types/chains/definitions/unichain.d.ts.map +1 -1
  1461. package/_types/chains/definitions/unichainSepolia.d.ts +2 -0
  1462. package/_types/chains/definitions/unichainSepolia.d.ts.map +1 -1
  1463. package/_types/chains/definitions/unique.d.ts +2 -0
  1464. package/_types/chains/definitions/unique.d.ts.map +1 -1
  1465. package/_types/chains/definitions/uniqueOpal.d.ts +2 -0
  1466. package/_types/chains/definitions/uniqueOpal.d.ts.map +1 -1
  1467. package/_types/chains/definitions/uniqueQuartz.d.ts +2 -0
  1468. package/_types/chains/definitions/uniqueQuartz.d.ts.map +1 -1
  1469. package/_types/chains/definitions/unreal.d.ts +2 -0
  1470. package/_types/chains/definitions/unreal.d.ts.map +1 -1
  1471. package/_types/chains/definitions/vana.d.ts +2 -0
  1472. package/_types/chains/definitions/vana.d.ts.map +1 -1
  1473. package/_types/chains/definitions/vanaMoksha.d.ts +2 -0
  1474. package/_types/chains/definitions/vanaMoksha.d.ts.map +1 -1
  1475. package/_types/chains/definitions/vanar.d.ts +2 -0
  1476. package/_types/chains/definitions/vanar.d.ts.map +1 -1
  1477. package/_types/chains/definitions/vechain.d.ts +2 -0
  1478. package/_types/chains/definitions/vechain.d.ts.map +1 -1
  1479. package/_types/chains/definitions/velas.d.ts +2 -0
  1480. package/_types/chains/definitions/velas.d.ts.map +1 -1
  1481. package/_types/chains/definitions/viction.d.ts +2 -0
  1482. package/_types/chains/definitions/viction.d.ts.map +1 -1
  1483. package/_types/chains/definitions/victionTestnet.d.ts +2 -0
  1484. package/_types/chains/definitions/victionTestnet.d.ts.map +1 -1
  1485. package/_types/chains/definitions/vision.d.ts +2 -0
  1486. package/_types/chains/definitions/vision.d.ts.map +1 -1
  1487. package/_types/chains/definitions/visionTestnet.d.ts +2 -0
  1488. package/_types/chains/definitions/visionTestnet.d.ts.map +1 -1
  1489. package/_types/chains/definitions/wanchain.d.ts +2 -0
  1490. package/_types/chains/definitions/wanchain.d.ts.map +1 -1
  1491. package/_types/chains/definitions/wanchainTestnet.d.ts +2 -0
  1492. package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -1
  1493. package/_types/chains/definitions/weavevmAlphanet.d.ts +2 -0
  1494. package/_types/chains/definitions/weavevmAlphanet.d.ts.map +1 -1
  1495. package/_types/chains/definitions/wemix.d.ts +2 -0
  1496. package/_types/chains/definitions/wemix.d.ts.map +1 -1
  1497. package/_types/chains/definitions/wemixTestnet.d.ts +2 -0
  1498. package/_types/chains/definitions/wemixTestnet.d.ts.map +1 -1
  1499. package/_types/chains/definitions/westendAssetHub.d.ts +2 -0
  1500. package/_types/chains/definitions/westendAssetHub.d.ts.map +1 -1
  1501. package/_types/chains/definitions/whitechain.d.ts +2 -0
  1502. package/_types/chains/definitions/whitechain.d.ts.map +1 -1
  1503. package/_types/chains/definitions/whitechainTestnet.d.ts +2 -0
  1504. package/_types/chains/definitions/whitechainTestnet.d.ts.map +1 -1
  1505. package/_types/chains/definitions/wmcTestnet.d.ts +2 -0
  1506. package/_types/chains/definitions/wmcTestnet.d.ts.map +1 -1
  1507. package/_types/chains/definitions/worldLand.d.ts +2 -0
  1508. package/_types/chains/definitions/worldLand.d.ts.map +1 -1
  1509. package/_types/chains/definitions/worldchain.d.ts +2 -0
  1510. package/_types/chains/definitions/worldchain.d.ts.map +1 -1
  1511. package/_types/chains/definitions/worldchainSepolia.d.ts +2 -0
  1512. package/_types/chains/definitions/worldchainSepolia.d.ts.map +1 -1
  1513. package/_types/chains/definitions/xLayer.d.ts +2 -0
  1514. package/_types/chains/definitions/xLayer.d.ts.map +1 -1
  1515. package/_types/chains/definitions/xLayerTestnet.d.ts +2 -0
  1516. package/_types/chains/definitions/xLayerTestnet.d.ts.map +1 -1
  1517. package/_types/chains/definitions/xai.d.ts +2 -0
  1518. package/_types/chains/definitions/xai.d.ts.map +1 -1
  1519. package/_types/chains/definitions/xaiTestnet.d.ts +2 -0
  1520. package/_types/chains/definitions/xaiTestnet.d.ts.map +1 -1
  1521. package/_types/chains/definitions/xdc.d.ts +2 -0
  1522. package/_types/chains/definitions/xdc.d.ts.map +1 -1
  1523. package/_types/chains/definitions/xdcTestnet.d.ts +2 -0
  1524. package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -1
  1525. package/_types/chains/definitions/xoneMainnet.d.ts +2 -0
  1526. package/_types/chains/definitions/xoneMainnet.d.ts.map +1 -1
  1527. package/_types/chains/definitions/xoneTestnet.d.ts +2 -0
  1528. package/_types/chains/definitions/xoneTestnet.d.ts.map +1 -1
  1529. package/_types/chains/definitions/xphereMainnet.d.ts +2 -0
  1530. package/_types/chains/definitions/xphereMainnet.d.ts.map +1 -1
  1531. package/_types/chains/definitions/xphereTestnet.d.ts +2 -0
  1532. package/_types/chains/definitions/xphereTestnet.d.ts.map +1 -1
  1533. package/_types/chains/definitions/xrOne.d.ts +2 -0
  1534. package/_types/chains/definitions/xrOne.d.ts.map +1 -1
  1535. package/_types/chains/definitions/xrSepolia.d.ts +2 -0
  1536. package/_types/chains/definitions/xrSepolia.d.ts.map +1 -1
  1537. package/_types/chains/definitions/xrplevm.d.ts +49 -0
  1538. package/_types/chains/definitions/xrplevm.d.ts.map +1 -0
  1539. package/_types/chains/definitions/xrplevmDevnet.d.ts +2 -0
  1540. package/_types/chains/definitions/xrplevmDevnet.d.ts.map +1 -1
  1541. package/_types/chains/definitions/xrplevmTestnet.d.ts +2 -0
  1542. package/_types/chains/definitions/xrplevmTestnet.d.ts.map +1 -1
  1543. package/_types/chains/definitions/yooldoVerse.d.ts +2 -0
  1544. package/_types/chains/definitions/yooldoVerse.d.ts.map +1 -1
  1545. package/_types/chains/definitions/yooldoVerseTestnet.d.ts +2 -0
  1546. package/_types/chains/definitions/yooldoVerseTestnet.d.ts.map +1 -1
  1547. package/_types/chains/definitions/zenchainTestnet.d.ts +2 -0
  1548. package/_types/chains/definitions/zenchainTestnet.d.ts.map +1 -1
  1549. package/_types/chains/definitions/zeniq.d.ts +2 -0
  1550. package/_types/chains/definitions/zeniq.d.ts.map +1 -1
  1551. package/_types/chains/definitions/zeroNetwork.d.ts +2 -0
  1552. package/_types/chains/definitions/zeroNetwork.d.ts.map +1 -1
  1553. package/_types/chains/definitions/zetachain.d.ts +2 -0
  1554. package/_types/chains/definitions/zetachain.d.ts.map +1 -1
  1555. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +2 -0
  1556. package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -1
  1557. package/_types/chains/definitions/zhejiang.d.ts +2 -0
  1558. package/_types/chains/definitions/zhejiang.d.ts.map +1 -1
  1559. package/_types/chains/definitions/zilliqa.d.ts +2 -0
  1560. package/_types/chains/definitions/zilliqa.d.ts.map +1 -1
  1561. package/_types/chains/definitions/zilliqaTestnet.d.ts +2 -0
  1562. package/_types/chains/definitions/zilliqaTestnet.d.ts.map +1 -1
  1563. package/_types/chains/definitions/zircuit.d.ts +2 -0
  1564. package/_types/chains/definitions/zircuit.d.ts.map +1 -1
  1565. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +2 -0
  1566. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts.map +1 -1
  1567. package/_types/chains/definitions/zircuitTestnet.d.ts +2 -0
  1568. package/_types/chains/definitions/zircuitTestnet.d.ts.map +1 -1
  1569. package/_types/chains/definitions/zkFair.d.ts +2 -0
  1570. package/_types/chains/definitions/zkFair.d.ts.map +1 -1
  1571. package/_types/chains/definitions/zkFairTestnet.d.ts +2 -0
  1572. package/_types/chains/definitions/zkFairTestnet.d.ts.map +1 -1
  1573. package/_types/chains/definitions/zkLinkNova.d.ts +2 -0
  1574. package/_types/chains/definitions/zkLinkNova.d.ts.map +1 -1
  1575. package/_types/chains/definitions/zkLinkNovaSepoliaTestnet.d.ts +2 -0
  1576. package/_types/chains/definitions/zkLinkNovaSepoliaTestnet.d.ts.map +1 -1
  1577. package/_types/chains/definitions/zksync.d.ts +2 -0
  1578. package/_types/chains/definitions/zksync.d.ts.map +1 -1
  1579. package/_types/chains/definitions/zksyncInMemoryNode.d.ts +2 -0
  1580. package/_types/chains/definitions/zksyncInMemoryNode.d.ts.map +1 -1
  1581. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +2 -0
  1582. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts.map +1 -1
  1583. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +2 -0
  1584. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts.map +1 -1
  1585. package/_types/chains/definitions/zksyncLocalHyperchainL1.d.ts +2 -0
  1586. package/_types/chains/definitions/zksyncLocalHyperchainL1.d.ts.map +1 -1
  1587. package/_types/chains/definitions/zksyncLocalNode.d.ts +2 -0
  1588. package/_types/chains/definitions/zksyncLocalNode.d.ts.map +1 -1
  1589. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +2 -0
  1590. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts.map +1 -1
  1591. package/_types/chains/definitions/zora.d.ts +2 -0
  1592. package/_types/chains/definitions/zora.d.ts.map +1 -1
  1593. package/_types/chains/definitions/zoraSepolia.d.ts +2 -0
  1594. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  1595. package/_types/chains/definitions/zoraTestnet.d.ts +2 -0
  1596. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  1597. package/_types/chains/index.d.ts +8 -0
  1598. package/_types/chains/index.d.ts.map +1 -1
  1599. package/_types/errors/node.d.ts.map +1 -1
  1600. package/_types/errors/version.d.ts +1 -1
  1601. package/_types/index.d.ts +1 -1
  1602. package/_types/index.d.ts.map +1 -1
  1603. package/_types/op-stack/index.d.ts.map +1 -1
  1604. package/_types/tempo/Abis.d.ts +2698 -0
  1605. package/_types/tempo/Abis.d.ts.map +1 -0
  1606. package/_types/tempo/Account.d.ts +236 -0
  1607. package/_types/tempo/Account.d.ts.map +1 -0
  1608. package/_types/tempo/Addresses.d.ts +9 -0
  1609. package/_types/tempo/Addresses.d.ts.map +1 -0
  1610. package/_types/tempo/Decorator.d.ts +2758 -0
  1611. package/_types/tempo/Decorator.d.ts.map +1 -0
  1612. package/_types/tempo/Formatters.d.ts +5 -0
  1613. package/_types/tempo/Formatters.d.ts.map +1 -0
  1614. package/_types/tempo/P256.d.ts +2 -0
  1615. package/_types/tempo/P256.d.ts.map +1 -0
  1616. package/_types/tempo/Secp256k1.d.ts +2 -0
  1617. package/_types/tempo/Secp256k1.d.ts.map +1 -0
  1618. package/_types/tempo/TokenIds.d.ts +2 -0
  1619. package/_types/tempo/TokenIds.d.ts.map +1 -0
  1620. package/_types/tempo/Transaction.d.ts +82 -0
  1621. package/_types/tempo/Transaction.d.ts.map +1 -0
  1622. package/_types/tempo/Transport.d.ts +39 -0
  1623. package/_types/tempo/Transport.d.ts.map +1 -0
  1624. package/_types/tempo/WebAuthnP256.d.ts +82 -0
  1625. package/_types/tempo/WebAuthnP256.d.ts.map +1 -0
  1626. package/_types/tempo/WebCryptoP256.d.ts +2 -0
  1627. package/_types/tempo/WebCryptoP256.d.ts.map +1 -0
  1628. package/_types/tempo/actions/amm.d.ts +1998 -0
  1629. package/_types/tempo/actions/amm.d.ts.map +1 -0
  1630. package/_types/tempo/actions/dex.d.ts +3898 -0
  1631. package/_types/tempo/actions/dex.d.ts.map +1 -0
  1632. package/_types/tempo/actions/faucet.d.ts +75 -0
  1633. package/_types/tempo/actions/faucet.d.ts.map +1 -0
  1634. package/_types/tempo/actions/fee.d.ts +369 -0
  1635. package/_types/tempo/actions/fee.d.ts.map +1 -0
  1636. package/_types/tempo/actions/index.d.ts +9 -0
  1637. package/_types/tempo/actions/index.d.ts.map +1 -0
  1638. package/_types/tempo/actions/nonce.d.ts +263 -0
  1639. package/_types/tempo/actions/nonce.d.ts.map +1 -0
  1640. package/_types/tempo/actions/policy.d.ts +1670 -0
  1641. package/_types/tempo/actions/policy.d.ts.map +1 -0
  1642. package/_types/tempo/actions/reward.d.ts +2440 -0
  1643. package/_types/tempo/actions/reward.d.ts.map +1 -0
  1644. package/_types/tempo/actions/token.d.ts +16067 -0
  1645. package/_types/tempo/actions/token.d.ts.map +1 -0
  1646. package/_types/tempo/chainConfig.d.ts +432 -0
  1647. package/_types/tempo/chainConfig.d.ts.map +1 -0
  1648. package/_types/tempo/index.d.ts +52 -0
  1649. package/_types/tempo/index.d.ts.map +1 -0
  1650. package/_types/tempo/internal/nonceKeyStore.d.ts +26 -0
  1651. package/_types/tempo/internal/nonceKeyStore.d.ts.map +1 -0
  1652. package/_types/tempo/internal/types.d.ts +13 -0
  1653. package/_types/tempo/internal/types.d.ts.map +1 -0
  1654. package/_types/tempo/internal/utils.d.ts +17 -0
  1655. package/_types/tempo/internal/utils.d.ts.map +1 -0
  1656. package/_types/types/chain.d.ts +11 -5
  1657. package/_types/types/chain.d.ts.map +1 -1
  1658. package/_types/types/contract.d.ts +12 -11
  1659. package/_types/types/contract.d.ts.map +1 -1
  1660. package/_types/types/log.d.ts +2 -0
  1661. package/_types/types/log.d.ts.map +1 -1
  1662. package/_types/types/utils.d.ts +1 -0
  1663. package/_types/types/utils.d.ts.map +1 -1
  1664. package/_types/utils/abi/decodeAbiParameters.d.ts +2 -2
  1665. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  1666. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  1667. package/_types/utils/abi/encodeAbiParameters.d.ts +2 -2
  1668. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  1669. package/_types/utils/abi/parseEventLogs.d.ts.map +1 -1
  1670. package/_types/utils/chain/defineChain.d.ts +5 -1
  1671. package/_types/utils/chain/defineChain.d.ts.map +1 -1
  1672. package/_types/utils/formatters/log.d.ts.map +1 -1
  1673. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  1674. package/_types/utils/rpc/socket.d.ts.map +1 -1
  1675. package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +2 -2
  1676. package/account-abstraction/accounts/implementations/toSimple7702SmartAccount.ts +72 -26
  1677. package/account-abstraction/actions/bundler/waitForUserOperationReceipt.ts +4 -3
  1678. package/actions/getContract.ts +4 -4
  1679. package/actions/public/simulateContract.ts +4 -4
  1680. package/actions/public/verifyHash.ts +9 -4
  1681. package/actions/wallet/prepareTransactionRequest.ts +12 -7
  1682. package/chains/definitions/birdlayer.ts +1 -1
  1683. package/chains/definitions/bob.ts +1 -1
  1684. package/chains/definitions/bobSepolia.ts +1 -1
  1685. package/chains/definitions/crab.ts +1 -1
  1686. package/chains/definitions/creatorTestnet.ts +1 -1
  1687. package/chains/definitions/datahavenTestnet.ts +26 -0
  1688. package/chains/definitions/dodochainTestnet.ts +1 -1
  1689. package/chains/definitions/funkiSepolia.ts +1 -1
  1690. package/chains/definitions/garnet.ts +1 -1
  1691. package/chains/definitions/koi.ts +1 -1
  1692. package/chains/definitions/omni.ts +1 -1
  1693. package/chains/definitions/polygon.ts +1 -1
  1694. package/chains/definitions/polygonAmoy.ts +1 -1
  1695. package/chains/definitions/pyrope.ts +1 -1
  1696. package/chains/definitions/redstone.ts +1 -1
  1697. package/chains/definitions/skale/skaleBase.ts +20 -0
  1698. package/chains/definitions/skale/skaleBaseSepoliaTestnet.ts +22 -0
  1699. package/chains/definitions/somnia.ts +20 -0
  1700. package/chains/definitions/tempoDevnet.ts +19 -0
  1701. package/chains/definitions/tempoLocalnet.ts +16 -0
  1702. package/chains/definitions/tempoTestnet.ts +25 -0
  1703. package/chains/definitions/xrplevm.ts +22 -0
  1704. package/chains/index.ts +8 -0
  1705. package/errors/node.ts +1 -1
  1706. package/errors/version.ts +1 -1
  1707. package/index.ts +5 -1
  1708. package/op-stack/index.ts +0 -1
  1709. package/package.json +19 -3
  1710. package/tempo/Abis.ts +1716 -0
  1711. package/tempo/Account.ts +574 -0
  1712. package/tempo/Addresses.ts +9 -0
  1713. package/tempo/Decorator.ts +3150 -0
  1714. package/tempo/Formatters.ts +159 -0
  1715. package/tempo/P256.ts +2 -0
  1716. package/tempo/Secp256k1.ts +2 -0
  1717. package/tempo/TokenIds.ts +1 -0
  1718. package/tempo/Transaction.ts +392 -0
  1719. package/tempo/Transport.ts +202 -0
  1720. package/tempo/WebAuthnP256.ts +146 -0
  1721. package/tempo/WebCryptoP256.ts +2 -0
  1722. package/tempo/actions/amm.ts +1221 -0
  1723. package/tempo/actions/dex.ts +2150 -0
  1724. package/tempo/actions/faucet.ts +119 -0
  1725. package/tempo/actions/fee.ts +366 -0
  1726. package/tempo/actions/index.ts +9 -0
  1727. package/tempo/actions/nonce.ts +345 -0
  1728. package/tempo/actions/package.json +6 -0
  1729. package/tempo/actions/policy.ts +1329 -0
  1730. package/tempo/actions/reward.ts +940 -0
  1731. package/tempo/actions/token.ts +4456 -0
  1732. package/tempo/chainConfig.ts +114 -0
  1733. package/tempo/index.ts +59 -0
  1734. package/tempo/internal/nonceKeyStore.ts +50 -0
  1735. package/tempo/internal/types.ts +55 -0
  1736. package/tempo/internal/utils.ts +57 -0
  1737. package/tempo/package.json +6 -0
  1738. package/types/chain.ts +18 -5
  1739. package/types/contract.ts +42 -12
  1740. package/types/log.ts +2 -0
  1741. package/types/utils.ts +2 -0
  1742. package/utils/abi/decodeAbiParameters.ts +9 -3
  1743. package/utils/abi/decodeEventLog.ts +4 -1
  1744. package/utils/abi/encodeAbiParameters.ts +2 -1
  1745. package/utils/abi/parseEventLogs.ts +64 -47
  1746. package/utils/chain/defineChain.ts +32 -2
  1747. package/utils/cursor.ts +1 -1
  1748. package/utils/formatters/log.ts +5 -0
  1749. package/utils/formatters/transaction.ts +2 -3
  1750. package/utils/rpc/socket.ts +5 -4
@@ -0,0 +1,3898 @@
1
+ import type { Address } from 'abitype';
2
+ import { type ReadContractReturnType } from '../../actions/public/readContract.js';
3
+ import { type WatchContractEventParameters } from '../../actions/public/watchContractEvent.js';
4
+ import { type WriteContractReturnType, writeContract } from '../../actions/wallet/writeContract.js';
5
+ import { writeContractSync } from '../../actions/wallet/writeContractSync.js';
6
+ import type { Client } from '../../clients/createClient.js';
7
+ import type { Transport } from '../../clients/transports/createTransport.js';
8
+ import type { BaseErrorType } from '../../errors/base.js';
9
+ import type { Account } from '../../types/account.js';
10
+ import type { Chain } from '../../types/chain.js';
11
+ import type { ExtractAbiItem, GetEventArgs } from '../../types/contract.js';
12
+ import type { Log as viem_Log } from '../../types/log.js';
13
+ import type { Compute, UnionOmit } from '../../types/utils.js';
14
+ import * as Abis from '../Abis.js';
15
+ import type { GetAccountParameter, ReadParameters, WriteParameters } from '../internal/types.js';
16
+ import type { TransactionReceipt } from '../Transaction.js';
17
+ /**
18
+ * Order type for limit orders.
19
+ */
20
+ type OrderType = 'buy' | 'sell';
21
+ /**
22
+ * Buys a specific amount of tokens.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * import { createClient, http, parseUnits } from 'viem'
27
+ * import { privateKeyToAccount } from 'viem/accounts'
28
+ * import { tempo } from 'tempo.ts/chains'
29
+ * import { Actions } from 'tempo.ts/viem'
30
+ *
31
+ * const client = createClient({
32
+ * account: privateKeyToAccount('0x...'),
33
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
34
+ * transport: http(),
35
+ * })
36
+ *
37
+ * const hash = await Actions.dex.buy(client, {
38
+ * tokenIn: '0x20c...11',
39
+ * tokenOut: '0x20c...20',
40
+ * amountOut: parseUnits('100', 6),
41
+ * maxAmountIn: parseUnits('105', 6),
42
+ * })
43
+ * ```
44
+ *
45
+ * @param client - Client.
46
+ * @param parameters - Parameters.
47
+ * @returns The transaction hash.
48
+ */
49
+ export declare function buy<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: buy.Parameters<chain, account>): Promise<buy.ReturnValue>;
50
+ export declare namespace buy {
51
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
52
+ type Args = {
53
+ /** Amount of tokenOut to buy. */
54
+ amountOut: bigint;
55
+ /** Maximum amount of tokenIn to spend. */
56
+ maxAmountIn: bigint;
57
+ /** Address of the token to spend. */
58
+ tokenIn: Address;
59
+ /** Address of the token to buy. */
60
+ tokenOut: Address;
61
+ };
62
+ type ReturnValue = WriteContractReturnType;
63
+ type ErrorType = BaseErrorType;
64
+ /** @internal */
65
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: buy.Parameters<chain, account>): Promise<ReturnType<action>>;
66
+ /**
67
+ * Defines a call to the `swapExactAmountOut` function.
68
+ *
69
+ * Can be passed as a parameter to:
70
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
71
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
72
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * import { createClient, http, parseUnits, walletActions } from 'viem'
77
+ * import { tempo } from 'tempo.ts/chains'
78
+ * import { Actions } from 'tempo.ts/viem'
79
+ *
80
+ * const client = createClient({
81
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
82
+ * transport: http(),
83
+ * }).extend(walletActions)
84
+ *
85
+ * const { result } = await client.sendCalls({
86
+ * calls: [
87
+ * Actions.dex.buy.call({
88
+ * tokenIn: '0x20c0...beef',
89
+ * tokenOut: '0x20c0...babe',
90
+ * amountOut: parseUnits('100', 6),
91
+ * maxAmountIn: parseUnits('105', 6),
92
+ * }),
93
+ * ]
94
+ * })
95
+ * ```
96
+ *
97
+ * @param args - Arguments.
98
+ * @returns The call.
99
+ */
100
+ function call(args: Args): {
101
+ abi: [{
102
+ readonly name: "swapExactAmountOut";
103
+ readonly type: "function";
104
+ readonly stateMutability: "nonpayable";
105
+ readonly inputs: readonly [{
106
+ readonly type: "address";
107
+ readonly name: "tokenIn";
108
+ }, {
109
+ readonly type: "address";
110
+ readonly name: "tokenOut";
111
+ }, {
112
+ readonly type: "uint128";
113
+ readonly name: "amountOut";
114
+ }, {
115
+ readonly type: "uint128";
116
+ readonly name: "maxAmountIn";
117
+ }];
118
+ readonly outputs: readonly [{
119
+ readonly type: "uint128";
120
+ readonly name: "amountIn";
121
+ }];
122
+ }];
123
+ functionName: "swapExactAmountOut";
124
+ } & {
125
+ args: readonly [tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountOut: bigint, maxAmountIn: bigint];
126
+ } & {
127
+ address: Address;
128
+ } & {
129
+ data: import("../../index.js").Hex;
130
+ to: Address;
131
+ };
132
+ }
133
+ /**
134
+ * Buys a specific amount of tokens.
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * import { createClient, http, parseUnits } from 'viem'
139
+ * import { privateKeyToAccount } from 'viem/accounts'
140
+ * import { tempo } from 'tempo.ts/chains'
141
+ * import { Actions } from 'tempo.ts/viem'
142
+ *
143
+ * const client = createClient({
144
+ * account: privateKeyToAccount('0x...'),
145
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
146
+ * transport: http(),
147
+ * })
148
+ *
149
+ * const result = await Actions.dex.buySync(client, {
150
+ * tokenIn: '0x20c...11',
151
+ * tokenOut: '0x20c...20',
152
+ * amountOut: parseUnits('100', 6),
153
+ * maxAmountIn: parseUnits('105', 6),
154
+ * })
155
+ * ```
156
+ *
157
+ * @param client - Client.
158
+ * @param parameters - Parameters.
159
+ * @returns The transaction receipt.
160
+ */
161
+ export declare function buySync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: buySync.Parameters<chain, account>): Promise<buySync.ReturnValue>;
162
+ export declare namespace buySync {
163
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = buy.Parameters<chain, account>;
164
+ type Args = buy.Args;
165
+ type ReturnValue = Compute<{
166
+ /** Transaction receipt. */
167
+ receipt: TransactionReceipt;
168
+ }>;
169
+ type ErrorType = BaseErrorType;
170
+ }
171
+ /**
172
+ * Cancels an order from the orderbook.
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { createClient, http } from 'viem'
177
+ * import { privateKeyToAccount } from 'viem/accounts'
178
+ * import { tempo } from 'tempo.ts/chains'
179
+ * import { Actions } from 'tempo.ts/viem'
180
+ *
181
+ * const client = createClient({
182
+ * account: privateKeyToAccount('0x...'),
183
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
184
+ * transport: http(),
185
+ * })
186
+ *
187
+ * const hash = await Actions.dex.cancel(client, {
188
+ * orderId: 123n,
189
+ * })
190
+ * ```
191
+ *
192
+ * @param client - Client.
193
+ * @param parameters - Parameters.
194
+ * @returns The transaction hash.
195
+ */
196
+ export declare function cancel<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: cancel.Parameters<chain, account>): Promise<cancel.ReturnValue>;
197
+ export declare namespace cancel {
198
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
199
+ type Args = {
200
+ /** Order ID to cancel. */
201
+ orderId: bigint;
202
+ };
203
+ type ReturnValue = WriteContractReturnType;
204
+ type ErrorType = BaseErrorType;
205
+ /** @internal */
206
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: cancel.Parameters<chain, account>): Promise<ReturnType<action>>;
207
+ /**
208
+ * Defines a call to the `cancel` function.
209
+ *
210
+ * Can be passed as a parameter to:
211
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
212
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
213
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
214
+ *
215
+ * @example
216
+ * ```ts
217
+ * import { createClient, http, walletActions } from 'viem'
218
+ * import { tempo } from 'tempo.ts/chains'
219
+ * import { Actions } from 'tempo.ts/viem'
220
+ *
221
+ * const client = createClient({
222
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
223
+ * transport: http(),
224
+ * }).extend(walletActions)
225
+ *
226
+ * const { result } = await client.sendCalls({
227
+ * calls: [
228
+ * Actions.dex.cancel.call({
229
+ * orderId: 123n,
230
+ * }),
231
+ * ]
232
+ * })
233
+ * ```
234
+ *
235
+ * @param args - Arguments.
236
+ * @returns The call.
237
+ */
238
+ function call(args: Args): {
239
+ abi: [{
240
+ readonly name: "cancel";
241
+ readonly type: "function";
242
+ readonly stateMutability: "nonpayable";
243
+ readonly inputs: readonly [{
244
+ readonly type: "uint128";
245
+ readonly name: "orderId";
246
+ }];
247
+ readonly outputs: readonly [];
248
+ }];
249
+ functionName: "cancel";
250
+ } & {
251
+ args: readonly [orderId: bigint];
252
+ } & {
253
+ address: Address;
254
+ } & {
255
+ data: import("../../index.js").Hex;
256
+ to: Address;
257
+ };
258
+ /**
259
+ * Extracts the `OrderCancelled` event from logs.
260
+ *
261
+ * @param logs - The logs.
262
+ * @returns The `OrderCancelled` event.
263
+ */
264
+ function extractEvent(logs: viem_Log[]): viem_Log<bigint, number, false, undefined, true, readonly [{
265
+ readonly name: "createPair";
266
+ readonly type: "function";
267
+ readonly stateMutability: "nonpayable";
268
+ readonly inputs: readonly [{
269
+ readonly type: "address";
270
+ readonly name: "base";
271
+ }];
272
+ readonly outputs: readonly [{
273
+ readonly type: "bytes32";
274
+ readonly name: "key";
275
+ }];
276
+ }, {
277
+ readonly name: "place";
278
+ readonly type: "function";
279
+ readonly stateMutability: "nonpayable";
280
+ readonly inputs: readonly [{
281
+ readonly type: "address";
282
+ readonly name: "token";
283
+ }, {
284
+ readonly type: "uint128";
285
+ readonly name: "amount";
286
+ }, {
287
+ readonly type: "bool";
288
+ readonly name: "isBid";
289
+ }, {
290
+ readonly type: "int16";
291
+ readonly name: "tick";
292
+ }];
293
+ readonly outputs: readonly [{
294
+ readonly type: "uint128";
295
+ readonly name: "orderId";
296
+ }];
297
+ }, {
298
+ readonly name: "placeFlip";
299
+ readonly type: "function";
300
+ readonly stateMutability: "nonpayable";
301
+ readonly inputs: readonly [{
302
+ readonly type: "address";
303
+ readonly name: "token";
304
+ }, {
305
+ readonly type: "uint128";
306
+ readonly name: "amount";
307
+ }, {
308
+ readonly type: "bool";
309
+ readonly name: "isBid";
310
+ }, {
311
+ readonly type: "int16";
312
+ readonly name: "tick";
313
+ }, {
314
+ readonly type: "int16";
315
+ readonly name: "flipTick";
316
+ }];
317
+ readonly outputs: readonly [{
318
+ readonly type: "uint128";
319
+ readonly name: "orderId";
320
+ }];
321
+ }, {
322
+ readonly name: "cancel";
323
+ readonly type: "function";
324
+ readonly stateMutability: "nonpayable";
325
+ readonly inputs: readonly [{
326
+ readonly type: "uint128";
327
+ readonly name: "orderId";
328
+ }];
329
+ readonly outputs: readonly [];
330
+ }, {
331
+ readonly name: "executeBlock";
332
+ readonly type: "function";
333
+ readonly stateMutability: "nonpayable";
334
+ readonly inputs: readonly [];
335
+ readonly outputs: readonly [];
336
+ }, {
337
+ readonly name: "swapExactAmountIn";
338
+ readonly type: "function";
339
+ readonly stateMutability: "nonpayable";
340
+ readonly inputs: readonly [{
341
+ readonly type: "address";
342
+ readonly name: "tokenIn";
343
+ }, {
344
+ readonly type: "address";
345
+ readonly name: "tokenOut";
346
+ }, {
347
+ readonly type: "uint128";
348
+ readonly name: "amountIn";
349
+ }, {
350
+ readonly type: "uint128";
351
+ readonly name: "minAmountOut";
352
+ }];
353
+ readonly outputs: readonly [{
354
+ readonly type: "uint128";
355
+ readonly name: "amountOut";
356
+ }];
357
+ }, {
358
+ readonly name: "swapExactAmountOut";
359
+ readonly type: "function";
360
+ readonly stateMutability: "nonpayable";
361
+ readonly inputs: readonly [{
362
+ readonly type: "address";
363
+ readonly name: "tokenIn";
364
+ }, {
365
+ readonly type: "address";
366
+ readonly name: "tokenOut";
367
+ }, {
368
+ readonly type: "uint128";
369
+ readonly name: "amountOut";
370
+ }, {
371
+ readonly type: "uint128";
372
+ readonly name: "maxAmountIn";
373
+ }];
374
+ readonly outputs: readonly [{
375
+ readonly type: "uint128";
376
+ readonly name: "amountIn";
377
+ }];
378
+ }, {
379
+ readonly name: "quoteSwapExactAmountIn";
380
+ readonly type: "function";
381
+ readonly stateMutability: "view";
382
+ readonly inputs: readonly [{
383
+ readonly type: "address";
384
+ readonly name: "tokenIn";
385
+ }, {
386
+ readonly type: "address";
387
+ readonly name: "tokenOut";
388
+ }, {
389
+ readonly type: "uint128";
390
+ readonly name: "amountIn";
391
+ }];
392
+ readonly outputs: readonly [{
393
+ readonly type: "uint128";
394
+ readonly name: "amountOut";
395
+ }];
396
+ }, {
397
+ readonly name: "quoteSwapExactAmountOut";
398
+ readonly type: "function";
399
+ readonly stateMutability: "view";
400
+ readonly inputs: readonly [{
401
+ readonly type: "address";
402
+ readonly name: "tokenIn";
403
+ }, {
404
+ readonly type: "address";
405
+ readonly name: "tokenOut";
406
+ }, {
407
+ readonly type: "uint128";
408
+ readonly name: "amountOut";
409
+ }];
410
+ readonly outputs: readonly [{
411
+ readonly type: "uint128";
412
+ readonly name: "amountIn";
413
+ }];
414
+ }, {
415
+ readonly name: "balanceOf";
416
+ readonly type: "function";
417
+ readonly stateMutability: "view";
418
+ readonly inputs: readonly [{
419
+ readonly type: "address";
420
+ readonly name: "user";
421
+ }, {
422
+ readonly type: "address";
423
+ readonly name: "token";
424
+ }];
425
+ readonly outputs: readonly [{
426
+ readonly type: "uint128";
427
+ }];
428
+ }, {
429
+ readonly name: "withdraw";
430
+ readonly type: "function";
431
+ readonly stateMutability: "nonpayable";
432
+ readonly inputs: readonly [{
433
+ readonly type: "address";
434
+ readonly name: "token";
435
+ }, {
436
+ readonly type: "uint128";
437
+ readonly name: "amount";
438
+ }];
439
+ readonly outputs: readonly [];
440
+ }, {
441
+ readonly name: "getOrder";
442
+ readonly type: "function";
443
+ readonly stateMutability: "view";
444
+ readonly inputs: readonly [{
445
+ readonly type: "uint128";
446
+ readonly name: "orderId";
447
+ }];
448
+ readonly outputs: readonly [{
449
+ readonly type: "tuple";
450
+ readonly components: readonly [{
451
+ readonly type: "uint128";
452
+ readonly name: "orderId";
453
+ }, {
454
+ readonly type: "address";
455
+ readonly name: "maker";
456
+ }, {
457
+ readonly type: "bytes32";
458
+ readonly name: "bookKey";
459
+ }, {
460
+ readonly type: "bool";
461
+ readonly name: "isBid";
462
+ }, {
463
+ readonly type: "int16";
464
+ readonly name: "tick";
465
+ }, {
466
+ readonly type: "uint128";
467
+ readonly name: "amount";
468
+ }, {
469
+ readonly type: "uint128";
470
+ readonly name: "remaining";
471
+ }, {
472
+ readonly type: "uint128";
473
+ readonly name: "prev";
474
+ }, {
475
+ readonly type: "uint128";
476
+ readonly name: "next";
477
+ }, {
478
+ readonly type: "bool";
479
+ readonly name: "isFlip";
480
+ }, {
481
+ readonly type: "int16";
482
+ readonly name: "flipTick";
483
+ }];
484
+ }];
485
+ }, {
486
+ readonly name: "getTickLevel";
487
+ readonly type: "function";
488
+ readonly stateMutability: "view";
489
+ readonly inputs: readonly [{
490
+ readonly type: "address";
491
+ readonly name: "base";
492
+ }, {
493
+ readonly type: "int16";
494
+ readonly name: "tick";
495
+ }, {
496
+ readonly type: "bool";
497
+ readonly name: "isBid";
498
+ }];
499
+ readonly outputs: readonly [{
500
+ readonly type: "uint128";
501
+ readonly name: "head";
502
+ }, {
503
+ readonly type: "uint128";
504
+ readonly name: "tail";
505
+ }, {
506
+ readonly type: "uint128";
507
+ readonly name: "totalLiquidity";
508
+ }];
509
+ }, {
510
+ readonly name: "pairKey";
511
+ readonly type: "function";
512
+ readonly stateMutability: "pure";
513
+ readonly inputs: readonly [{
514
+ readonly type: "address";
515
+ readonly name: "tokenA";
516
+ }, {
517
+ readonly type: "address";
518
+ readonly name: "tokenB";
519
+ }];
520
+ readonly outputs: readonly [{
521
+ readonly type: "bytes32";
522
+ }];
523
+ }, {
524
+ readonly name: "activeOrderId";
525
+ readonly type: "function";
526
+ readonly stateMutability: "view";
527
+ readonly inputs: readonly [];
528
+ readonly outputs: readonly [{
529
+ readonly type: "uint128";
530
+ }];
531
+ }, {
532
+ readonly name: "pendingOrderId";
533
+ readonly type: "function";
534
+ readonly stateMutability: "view";
535
+ readonly inputs: readonly [];
536
+ readonly outputs: readonly [{
537
+ readonly type: "uint128";
538
+ }];
539
+ }, {
540
+ readonly name: "books";
541
+ readonly type: "function";
542
+ readonly stateMutability: "view";
543
+ readonly inputs: readonly [{
544
+ readonly type: "bytes32";
545
+ readonly name: "pairKey";
546
+ }];
547
+ readonly outputs: readonly [{
548
+ readonly type: "tuple";
549
+ readonly components: readonly [{
550
+ readonly type: "address";
551
+ readonly name: "base";
552
+ }, {
553
+ readonly type: "address";
554
+ readonly name: "quote";
555
+ }, {
556
+ readonly type: "int16";
557
+ readonly name: "bestBidTick";
558
+ }, {
559
+ readonly type: "int16";
560
+ readonly name: "bestAskTick";
561
+ }];
562
+ }];
563
+ }, {
564
+ readonly name: "MIN_TICK";
565
+ readonly type: "function";
566
+ readonly stateMutability: "pure";
567
+ readonly inputs: readonly [];
568
+ readonly outputs: readonly [{
569
+ readonly type: "int16";
570
+ }];
571
+ }, {
572
+ readonly name: "MAX_TICK";
573
+ readonly type: "function";
574
+ readonly stateMutability: "pure";
575
+ readonly inputs: readonly [];
576
+ readonly outputs: readonly [{
577
+ readonly type: "int16";
578
+ }];
579
+ }, {
580
+ readonly name: "TICK_SPACING";
581
+ readonly type: "function";
582
+ readonly stateMutability: "pure";
583
+ readonly inputs: readonly [];
584
+ readonly outputs: readonly [{
585
+ readonly type: "int16";
586
+ }];
587
+ }, {
588
+ readonly name: "PRICE_SCALE";
589
+ readonly type: "function";
590
+ readonly stateMutability: "pure";
591
+ readonly inputs: readonly [];
592
+ readonly outputs: readonly [{
593
+ readonly type: "uint32";
594
+ }];
595
+ }, {
596
+ readonly name: "MIN_PRICE";
597
+ readonly type: "function";
598
+ readonly stateMutability: "pure";
599
+ readonly inputs: readonly [];
600
+ readonly outputs: readonly [{
601
+ readonly type: "uint32";
602
+ }];
603
+ }, {
604
+ readonly name: "MAX_PRICE";
605
+ readonly type: "function";
606
+ readonly stateMutability: "pure";
607
+ readonly inputs: readonly [];
608
+ readonly outputs: readonly [{
609
+ readonly type: "uint32";
610
+ }];
611
+ }, {
612
+ readonly name: "tickToPrice";
613
+ readonly type: "function";
614
+ readonly stateMutability: "pure";
615
+ readonly inputs: readonly [{
616
+ readonly type: "int16";
617
+ readonly name: "tick";
618
+ }];
619
+ readonly outputs: readonly [{
620
+ readonly type: "uint32";
621
+ readonly name: "price";
622
+ }];
623
+ }, {
624
+ readonly name: "priceToTick";
625
+ readonly type: "function";
626
+ readonly stateMutability: "pure";
627
+ readonly inputs: readonly [{
628
+ readonly type: "uint32";
629
+ readonly name: "price";
630
+ }];
631
+ readonly outputs: readonly [{
632
+ readonly type: "int16";
633
+ readonly name: "tick";
634
+ }];
635
+ }, {
636
+ readonly name: "PairCreated";
637
+ readonly type: "event";
638
+ readonly inputs: readonly [{
639
+ readonly type: "bytes32";
640
+ readonly name: "key";
641
+ readonly indexed: true;
642
+ }, {
643
+ readonly type: "address";
644
+ readonly name: "base";
645
+ readonly indexed: true;
646
+ }, {
647
+ readonly type: "address";
648
+ readonly name: "quote";
649
+ readonly indexed: true;
650
+ }];
651
+ }, {
652
+ readonly name: "OrderPlaced";
653
+ readonly type: "event";
654
+ readonly inputs: readonly [{
655
+ readonly type: "uint128";
656
+ readonly name: "orderId";
657
+ readonly indexed: true;
658
+ }, {
659
+ readonly type: "address";
660
+ readonly name: "maker";
661
+ readonly indexed: true;
662
+ }, {
663
+ readonly type: "address";
664
+ readonly name: "token";
665
+ readonly indexed: true;
666
+ }, {
667
+ readonly type: "uint128";
668
+ readonly name: "amount";
669
+ }, {
670
+ readonly type: "bool";
671
+ readonly name: "isBid";
672
+ }, {
673
+ readonly type: "int16";
674
+ readonly name: "tick";
675
+ }];
676
+ }, {
677
+ readonly name: "FlipOrderPlaced";
678
+ readonly type: "event";
679
+ readonly inputs: readonly [{
680
+ readonly type: "uint128";
681
+ readonly name: "orderId";
682
+ readonly indexed: true;
683
+ }, {
684
+ readonly type: "address";
685
+ readonly name: "maker";
686
+ readonly indexed: true;
687
+ }, {
688
+ readonly type: "address";
689
+ readonly name: "token";
690
+ readonly indexed: true;
691
+ }, {
692
+ readonly type: "uint128";
693
+ readonly name: "amount";
694
+ }, {
695
+ readonly type: "bool";
696
+ readonly name: "isBid";
697
+ }, {
698
+ readonly type: "int16";
699
+ readonly name: "tick";
700
+ }, {
701
+ readonly type: "int16";
702
+ readonly name: "flipTick";
703
+ }];
704
+ }, {
705
+ readonly name: "OrderFilled";
706
+ readonly type: "event";
707
+ readonly inputs: readonly [{
708
+ readonly type: "uint128";
709
+ readonly name: "orderId";
710
+ readonly indexed: true;
711
+ }, {
712
+ readonly type: "address";
713
+ readonly name: "maker";
714
+ readonly indexed: true;
715
+ }, {
716
+ readonly type: "uint128";
717
+ readonly name: "amountFilled";
718
+ }, {
719
+ readonly type: "bool";
720
+ readonly name: "partialFill";
721
+ }];
722
+ }, {
723
+ readonly name: "OrderFilled";
724
+ readonly type: "event";
725
+ readonly inputs: readonly [{
726
+ readonly type: "uint128";
727
+ readonly name: "orderId";
728
+ readonly indexed: true;
729
+ }, {
730
+ readonly type: "address";
731
+ readonly name: "maker";
732
+ readonly indexed: true;
733
+ }, {
734
+ readonly type: "address";
735
+ readonly name: "taker";
736
+ readonly indexed: true;
737
+ }, {
738
+ readonly type: "uint128";
739
+ readonly name: "amountFilled";
740
+ }, {
741
+ readonly type: "bool";
742
+ readonly name: "partialFill";
743
+ }];
744
+ }, {
745
+ readonly name: "OrderCancelled";
746
+ readonly type: "event";
747
+ readonly inputs: readonly [{
748
+ readonly type: "uint128";
749
+ readonly name: "orderId";
750
+ readonly indexed: true;
751
+ }];
752
+ }, {
753
+ readonly name: "Unauthorized";
754
+ readonly type: "error";
755
+ readonly inputs: readonly [];
756
+ }, {
757
+ readonly name: "PairDoesNotExist";
758
+ readonly type: "error";
759
+ readonly inputs: readonly [];
760
+ }, {
761
+ readonly name: "PairAlreadyExists";
762
+ readonly type: "error";
763
+ readonly inputs: readonly [];
764
+ }, {
765
+ readonly name: "OrderDoesNotExist";
766
+ readonly type: "error";
767
+ readonly inputs: readonly [];
768
+ }, {
769
+ readonly name: "IdenticalTokens";
770
+ readonly type: "error";
771
+ readonly inputs: readonly [];
772
+ }, {
773
+ readonly name: "InvalidToken";
774
+ readonly type: "error";
775
+ readonly inputs: readonly [];
776
+ }, {
777
+ readonly name: "TickOutOfBounds";
778
+ readonly type: "error";
779
+ readonly inputs: readonly [{
780
+ readonly type: "int16";
781
+ readonly name: "tick";
782
+ }];
783
+ }, {
784
+ readonly name: "InvalidTick";
785
+ readonly type: "error";
786
+ readonly inputs: readonly [];
787
+ }, {
788
+ readonly name: "InvalidFlipTick";
789
+ readonly type: "error";
790
+ readonly inputs: readonly [];
791
+ }, {
792
+ readonly name: "InsufficientBalance";
793
+ readonly type: "error";
794
+ readonly inputs: readonly [];
795
+ }, {
796
+ readonly name: "InsufficientLiquidity";
797
+ readonly type: "error";
798
+ readonly inputs: readonly [];
799
+ }, {
800
+ readonly name: "InsufficientOutput";
801
+ readonly type: "error";
802
+ readonly inputs: readonly [];
803
+ }, {
804
+ readonly name: "MaxInputExceeded";
805
+ readonly type: "error";
806
+ readonly inputs: readonly [];
807
+ }, {
808
+ readonly name: "BelowMinimumOrderSize";
809
+ readonly type: "error";
810
+ readonly inputs: readonly [{
811
+ readonly type: "uint128";
812
+ readonly name: "amount";
813
+ }];
814
+ }, {
815
+ readonly name: "InvalidBaseToken";
816
+ readonly type: "error";
817
+ readonly inputs: readonly [];
818
+ }], "OrderCancelled">;
819
+ }
820
+ /**
821
+ * Cancels an order from the orderbook.
822
+ *
823
+ * @example
824
+ * ```ts
825
+ * import { createClient, http } from 'viem'
826
+ * import { privateKeyToAccount } from 'viem/accounts'
827
+ * import { tempo } from 'tempo.ts/chains'
828
+ * import { Actions } from 'tempo.ts/viem'
829
+ *
830
+ * const client = createClient({
831
+ * account: privateKeyToAccount('0x...'),
832
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
833
+ * transport: http(),
834
+ * })
835
+ *
836
+ * const result = await Actions.dex.cancelSync(client, {
837
+ * orderId: 123n,
838
+ * })
839
+ * ```
840
+ *
841
+ * @param client - Client.
842
+ * @param parameters - Parameters.
843
+ * @returns The transaction receipt and event data.
844
+ */
845
+ export declare function cancelSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: cancelSync.Parameters<chain, account>): Promise<cancelSync.ReturnValue>;
846
+ export declare namespace cancelSync {
847
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = cancel.Parameters<chain, account>;
848
+ type Args = cancel.Args;
849
+ type ReturnValue = Compute<GetEventArgs<typeof Abis.stablecoinExchange, 'OrderCancelled', {
850
+ IndexedOnly: false;
851
+ Required: true;
852
+ }> & {
853
+ /** Transaction receipt. */
854
+ receipt: TransactionReceipt;
855
+ }>;
856
+ type ErrorType = BaseErrorType;
857
+ }
858
+ /**
859
+ * Creates a new trading pair on the DEX.
860
+ *
861
+ * @example
862
+ * ```ts
863
+ * import { createClient, http } from 'viem'
864
+ * import { privateKeyToAccount } from 'viem/accounts'
865
+ * import { tempo } from 'tempo.ts/chains'
866
+ * import { Actions } from 'tempo.ts/viem'
867
+ *
868
+ * const client = createClient({
869
+ * account: privateKeyToAccount('0x...'),
870
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
871
+ * transport: http(),
872
+ * })
873
+ *
874
+ * const hash = await Actions.dex.createPair(client, {
875
+ * base: '0x20c...11',
876
+ * })
877
+ * ```
878
+ *
879
+ * @param client - Client.
880
+ * @param parameters - Parameters.
881
+ * @returns The transaction hash.
882
+ */
883
+ export declare function createPair<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: createPair.Parameters<chain, account>): Promise<createPair.ReturnValue>;
884
+ export declare namespace createPair {
885
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
886
+ type Args = {
887
+ /** Address of the base token for the pair. */
888
+ base: Address;
889
+ };
890
+ type ReturnValue = WriteContractReturnType;
891
+ type ErrorType = BaseErrorType;
892
+ /** @internal */
893
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: createPair.Parameters<chain, account>): Promise<ReturnType<action>>;
894
+ /**
895
+ * Defines a call to the `createPair` function.
896
+ *
897
+ * Can be passed as a parameter to:
898
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
899
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
900
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
901
+ *
902
+ * @example
903
+ * ```ts
904
+ * import { createClient, http, walletActions } from 'viem'
905
+ * import { tempo } from 'tempo.ts/chains'
906
+ * import { Actions } from 'tempo.ts/viem'
907
+ *
908
+ * const client = createClient({
909
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
910
+ * transport: http(),
911
+ * }).extend(walletActions)
912
+ *
913
+ * const { result } = await client.sendCalls({
914
+ * calls: [
915
+ * Actions.dex.createPair.call({
916
+ * base: '0x20c0...beef',
917
+ * }),
918
+ * ]
919
+ * })
920
+ * ```
921
+ *
922
+ * @param args - Arguments.
923
+ * @returns The call.
924
+ */
925
+ function call(args: Args): {
926
+ abi: [{
927
+ readonly name: "createPair";
928
+ readonly type: "function";
929
+ readonly stateMutability: "nonpayable";
930
+ readonly inputs: readonly [{
931
+ readonly type: "address";
932
+ readonly name: "base";
933
+ }];
934
+ readonly outputs: readonly [{
935
+ readonly type: "bytes32";
936
+ readonly name: "key";
937
+ }];
938
+ }];
939
+ functionName: "createPair";
940
+ } & {
941
+ args: readonly [base: `0x${string}`];
942
+ } & {
943
+ address: Address;
944
+ } & {
945
+ data: import("../../index.js").Hex;
946
+ to: Address;
947
+ };
948
+ /**
949
+ * Extracts the `PairCreated` event from logs.
950
+ *
951
+ * @param logs - The logs.
952
+ * @returns The `PairCreated` event.
953
+ */
954
+ function extractEvent(logs: viem_Log[]): viem_Log<bigint, number, false, undefined, true, readonly [{
955
+ readonly name: "createPair";
956
+ readonly type: "function";
957
+ readonly stateMutability: "nonpayable";
958
+ readonly inputs: readonly [{
959
+ readonly type: "address";
960
+ readonly name: "base";
961
+ }];
962
+ readonly outputs: readonly [{
963
+ readonly type: "bytes32";
964
+ readonly name: "key";
965
+ }];
966
+ }, {
967
+ readonly name: "place";
968
+ readonly type: "function";
969
+ readonly stateMutability: "nonpayable";
970
+ readonly inputs: readonly [{
971
+ readonly type: "address";
972
+ readonly name: "token";
973
+ }, {
974
+ readonly type: "uint128";
975
+ readonly name: "amount";
976
+ }, {
977
+ readonly type: "bool";
978
+ readonly name: "isBid";
979
+ }, {
980
+ readonly type: "int16";
981
+ readonly name: "tick";
982
+ }];
983
+ readonly outputs: readonly [{
984
+ readonly type: "uint128";
985
+ readonly name: "orderId";
986
+ }];
987
+ }, {
988
+ readonly name: "placeFlip";
989
+ readonly type: "function";
990
+ readonly stateMutability: "nonpayable";
991
+ readonly inputs: readonly [{
992
+ readonly type: "address";
993
+ readonly name: "token";
994
+ }, {
995
+ readonly type: "uint128";
996
+ readonly name: "amount";
997
+ }, {
998
+ readonly type: "bool";
999
+ readonly name: "isBid";
1000
+ }, {
1001
+ readonly type: "int16";
1002
+ readonly name: "tick";
1003
+ }, {
1004
+ readonly type: "int16";
1005
+ readonly name: "flipTick";
1006
+ }];
1007
+ readonly outputs: readonly [{
1008
+ readonly type: "uint128";
1009
+ readonly name: "orderId";
1010
+ }];
1011
+ }, {
1012
+ readonly name: "cancel";
1013
+ readonly type: "function";
1014
+ readonly stateMutability: "nonpayable";
1015
+ readonly inputs: readonly [{
1016
+ readonly type: "uint128";
1017
+ readonly name: "orderId";
1018
+ }];
1019
+ readonly outputs: readonly [];
1020
+ }, {
1021
+ readonly name: "executeBlock";
1022
+ readonly type: "function";
1023
+ readonly stateMutability: "nonpayable";
1024
+ readonly inputs: readonly [];
1025
+ readonly outputs: readonly [];
1026
+ }, {
1027
+ readonly name: "swapExactAmountIn";
1028
+ readonly type: "function";
1029
+ readonly stateMutability: "nonpayable";
1030
+ readonly inputs: readonly [{
1031
+ readonly type: "address";
1032
+ readonly name: "tokenIn";
1033
+ }, {
1034
+ readonly type: "address";
1035
+ readonly name: "tokenOut";
1036
+ }, {
1037
+ readonly type: "uint128";
1038
+ readonly name: "amountIn";
1039
+ }, {
1040
+ readonly type: "uint128";
1041
+ readonly name: "minAmountOut";
1042
+ }];
1043
+ readonly outputs: readonly [{
1044
+ readonly type: "uint128";
1045
+ readonly name: "amountOut";
1046
+ }];
1047
+ }, {
1048
+ readonly name: "swapExactAmountOut";
1049
+ readonly type: "function";
1050
+ readonly stateMutability: "nonpayable";
1051
+ readonly inputs: readonly [{
1052
+ readonly type: "address";
1053
+ readonly name: "tokenIn";
1054
+ }, {
1055
+ readonly type: "address";
1056
+ readonly name: "tokenOut";
1057
+ }, {
1058
+ readonly type: "uint128";
1059
+ readonly name: "amountOut";
1060
+ }, {
1061
+ readonly type: "uint128";
1062
+ readonly name: "maxAmountIn";
1063
+ }];
1064
+ readonly outputs: readonly [{
1065
+ readonly type: "uint128";
1066
+ readonly name: "amountIn";
1067
+ }];
1068
+ }, {
1069
+ readonly name: "quoteSwapExactAmountIn";
1070
+ readonly type: "function";
1071
+ readonly stateMutability: "view";
1072
+ readonly inputs: readonly [{
1073
+ readonly type: "address";
1074
+ readonly name: "tokenIn";
1075
+ }, {
1076
+ readonly type: "address";
1077
+ readonly name: "tokenOut";
1078
+ }, {
1079
+ readonly type: "uint128";
1080
+ readonly name: "amountIn";
1081
+ }];
1082
+ readonly outputs: readonly [{
1083
+ readonly type: "uint128";
1084
+ readonly name: "amountOut";
1085
+ }];
1086
+ }, {
1087
+ readonly name: "quoteSwapExactAmountOut";
1088
+ readonly type: "function";
1089
+ readonly stateMutability: "view";
1090
+ readonly inputs: readonly [{
1091
+ readonly type: "address";
1092
+ readonly name: "tokenIn";
1093
+ }, {
1094
+ readonly type: "address";
1095
+ readonly name: "tokenOut";
1096
+ }, {
1097
+ readonly type: "uint128";
1098
+ readonly name: "amountOut";
1099
+ }];
1100
+ readonly outputs: readonly [{
1101
+ readonly type: "uint128";
1102
+ readonly name: "amountIn";
1103
+ }];
1104
+ }, {
1105
+ readonly name: "balanceOf";
1106
+ readonly type: "function";
1107
+ readonly stateMutability: "view";
1108
+ readonly inputs: readonly [{
1109
+ readonly type: "address";
1110
+ readonly name: "user";
1111
+ }, {
1112
+ readonly type: "address";
1113
+ readonly name: "token";
1114
+ }];
1115
+ readonly outputs: readonly [{
1116
+ readonly type: "uint128";
1117
+ }];
1118
+ }, {
1119
+ readonly name: "withdraw";
1120
+ readonly type: "function";
1121
+ readonly stateMutability: "nonpayable";
1122
+ readonly inputs: readonly [{
1123
+ readonly type: "address";
1124
+ readonly name: "token";
1125
+ }, {
1126
+ readonly type: "uint128";
1127
+ readonly name: "amount";
1128
+ }];
1129
+ readonly outputs: readonly [];
1130
+ }, {
1131
+ readonly name: "getOrder";
1132
+ readonly type: "function";
1133
+ readonly stateMutability: "view";
1134
+ readonly inputs: readonly [{
1135
+ readonly type: "uint128";
1136
+ readonly name: "orderId";
1137
+ }];
1138
+ readonly outputs: readonly [{
1139
+ readonly type: "tuple";
1140
+ readonly components: readonly [{
1141
+ readonly type: "uint128";
1142
+ readonly name: "orderId";
1143
+ }, {
1144
+ readonly type: "address";
1145
+ readonly name: "maker";
1146
+ }, {
1147
+ readonly type: "bytes32";
1148
+ readonly name: "bookKey";
1149
+ }, {
1150
+ readonly type: "bool";
1151
+ readonly name: "isBid";
1152
+ }, {
1153
+ readonly type: "int16";
1154
+ readonly name: "tick";
1155
+ }, {
1156
+ readonly type: "uint128";
1157
+ readonly name: "amount";
1158
+ }, {
1159
+ readonly type: "uint128";
1160
+ readonly name: "remaining";
1161
+ }, {
1162
+ readonly type: "uint128";
1163
+ readonly name: "prev";
1164
+ }, {
1165
+ readonly type: "uint128";
1166
+ readonly name: "next";
1167
+ }, {
1168
+ readonly type: "bool";
1169
+ readonly name: "isFlip";
1170
+ }, {
1171
+ readonly type: "int16";
1172
+ readonly name: "flipTick";
1173
+ }];
1174
+ }];
1175
+ }, {
1176
+ readonly name: "getTickLevel";
1177
+ readonly type: "function";
1178
+ readonly stateMutability: "view";
1179
+ readonly inputs: readonly [{
1180
+ readonly type: "address";
1181
+ readonly name: "base";
1182
+ }, {
1183
+ readonly type: "int16";
1184
+ readonly name: "tick";
1185
+ }, {
1186
+ readonly type: "bool";
1187
+ readonly name: "isBid";
1188
+ }];
1189
+ readonly outputs: readonly [{
1190
+ readonly type: "uint128";
1191
+ readonly name: "head";
1192
+ }, {
1193
+ readonly type: "uint128";
1194
+ readonly name: "tail";
1195
+ }, {
1196
+ readonly type: "uint128";
1197
+ readonly name: "totalLiquidity";
1198
+ }];
1199
+ }, {
1200
+ readonly name: "pairKey";
1201
+ readonly type: "function";
1202
+ readonly stateMutability: "pure";
1203
+ readonly inputs: readonly [{
1204
+ readonly type: "address";
1205
+ readonly name: "tokenA";
1206
+ }, {
1207
+ readonly type: "address";
1208
+ readonly name: "tokenB";
1209
+ }];
1210
+ readonly outputs: readonly [{
1211
+ readonly type: "bytes32";
1212
+ }];
1213
+ }, {
1214
+ readonly name: "activeOrderId";
1215
+ readonly type: "function";
1216
+ readonly stateMutability: "view";
1217
+ readonly inputs: readonly [];
1218
+ readonly outputs: readonly [{
1219
+ readonly type: "uint128";
1220
+ }];
1221
+ }, {
1222
+ readonly name: "pendingOrderId";
1223
+ readonly type: "function";
1224
+ readonly stateMutability: "view";
1225
+ readonly inputs: readonly [];
1226
+ readonly outputs: readonly [{
1227
+ readonly type: "uint128";
1228
+ }];
1229
+ }, {
1230
+ readonly name: "books";
1231
+ readonly type: "function";
1232
+ readonly stateMutability: "view";
1233
+ readonly inputs: readonly [{
1234
+ readonly type: "bytes32";
1235
+ readonly name: "pairKey";
1236
+ }];
1237
+ readonly outputs: readonly [{
1238
+ readonly type: "tuple";
1239
+ readonly components: readonly [{
1240
+ readonly type: "address";
1241
+ readonly name: "base";
1242
+ }, {
1243
+ readonly type: "address";
1244
+ readonly name: "quote";
1245
+ }, {
1246
+ readonly type: "int16";
1247
+ readonly name: "bestBidTick";
1248
+ }, {
1249
+ readonly type: "int16";
1250
+ readonly name: "bestAskTick";
1251
+ }];
1252
+ }];
1253
+ }, {
1254
+ readonly name: "MIN_TICK";
1255
+ readonly type: "function";
1256
+ readonly stateMutability: "pure";
1257
+ readonly inputs: readonly [];
1258
+ readonly outputs: readonly [{
1259
+ readonly type: "int16";
1260
+ }];
1261
+ }, {
1262
+ readonly name: "MAX_TICK";
1263
+ readonly type: "function";
1264
+ readonly stateMutability: "pure";
1265
+ readonly inputs: readonly [];
1266
+ readonly outputs: readonly [{
1267
+ readonly type: "int16";
1268
+ }];
1269
+ }, {
1270
+ readonly name: "TICK_SPACING";
1271
+ readonly type: "function";
1272
+ readonly stateMutability: "pure";
1273
+ readonly inputs: readonly [];
1274
+ readonly outputs: readonly [{
1275
+ readonly type: "int16";
1276
+ }];
1277
+ }, {
1278
+ readonly name: "PRICE_SCALE";
1279
+ readonly type: "function";
1280
+ readonly stateMutability: "pure";
1281
+ readonly inputs: readonly [];
1282
+ readonly outputs: readonly [{
1283
+ readonly type: "uint32";
1284
+ }];
1285
+ }, {
1286
+ readonly name: "MIN_PRICE";
1287
+ readonly type: "function";
1288
+ readonly stateMutability: "pure";
1289
+ readonly inputs: readonly [];
1290
+ readonly outputs: readonly [{
1291
+ readonly type: "uint32";
1292
+ }];
1293
+ }, {
1294
+ readonly name: "MAX_PRICE";
1295
+ readonly type: "function";
1296
+ readonly stateMutability: "pure";
1297
+ readonly inputs: readonly [];
1298
+ readonly outputs: readonly [{
1299
+ readonly type: "uint32";
1300
+ }];
1301
+ }, {
1302
+ readonly name: "tickToPrice";
1303
+ readonly type: "function";
1304
+ readonly stateMutability: "pure";
1305
+ readonly inputs: readonly [{
1306
+ readonly type: "int16";
1307
+ readonly name: "tick";
1308
+ }];
1309
+ readonly outputs: readonly [{
1310
+ readonly type: "uint32";
1311
+ readonly name: "price";
1312
+ }];
1313
+ }, {
1314
+ readonly name: "priceToTick";
1315
+ readonly type: "function";
1316
+ readonly stateMutability: "pure";
1317
+ readonly inputs: readonly [{
1318
+ readonly type: "uint32";
1319
+ readonly name: "price";
1320
+ }];
1321
+ readonly outputs: readonly [{
1322
+ readonly type: "int16";
1323
+ readonly name: "tick";
1324
+ }];
1325
+ }, {
1326
+ readonly name: "PairCreated";
1327
+ readonly type: "event";
1328
+ readonly inputs: readonly [{
1329
+ readonly type: "bytes32";
1330
+ readonly name: "key";
1331
+ readonly indexed: true;
1332
+ }, {
1333
+ readonly type: "address";
1334
+ readonly name: "base";
1335
+ readonly indexed: true;
1336
+ }, {
1337
+ readonly type: "address";
1338
+ readonly name: "quote";
1339
+ readonly indexed: true;
1340
+ }];
1341
+ }, {
1342
+ readonly name: "OrderPlaced";
1343
+ readonly type: "event";
1344
+ readonly inputs: readonly [{
1345
+ readonly type: "uint128";
1346
+ readonly name: "orderId";
1347
+ readonly indexed: true;
1348
+ }, {
1349
+ readonly type: "address";
1350
+ readonly name: "maker";
1351
+ readonly indexed: true;
1352
+ }, {
1353
+ readonly type: "address";
1354
+ readonly name: "token";
1355
+ readonly indexed: true;
1356
+ }, {
1357
+ readonly type: "uint128";
1358
+ readonly name: "amount";
1359
+ }, {
1360
+ readonly type: "bool";
1361
+ readonly name: "isBid";
1362
+ }, {
1363
+ readonly type: "int16";
1364
+ readonly name: "tick";
1365
+ }];
1366
+ }, {
1367
+ readonly name: "FlipOrderPlaced";
1368
+ readonly type: "event";
1369
+ readonly inputs: readonly [{
1370
+ readonly type: "uint128";
1371
+ readonly name: "orderId";
1372
+ readonly indexed: true;
1373
+ }, {
1374
+ readonly type: "address";
1375
+ readonly name: "maker";
1376
+ readonly indexed: true;
1377
+ }, {
1378
+ readonly type: "address";
1379
+ readonly name: "token";
1380
+ readonly indexed: true;
1381
+ }, {
1382
+ readonly type: "uint128";
1383
+ readonly name: "amount";
1384
+ }, {
1385
+ readonly type: "bool";
1386
+ readonly name: "isBid";
1387
+ }, {
1388
+ readonly type: "int16";
1389
+ readonly name: "tick";
1390
+ }, {
1391
+ readonly type: "int16";
1392
+ readonly name: "flipTick";
1393
+ }];
1394
+ }, {
1395
+ readonly name: "OrderFilled";
1396
+ readonly type: "event";
1397
+ readonly inputs: readonly [{
1398
+ readonly type: "uint128";
1399
+ readonly name: "orderId";
1400
+ readonly indexed: true;
1401
+ }, {
1402
+ readonly type: "address";
1403
+ readonly name: "maker";
1404
+ readonly indexed: true;
1405
+ }, {
1406
+ readonly type: "uint128";
1407
+ readonly name: "amountFilled";
1408
+ }, {
1409
+ readonly type: "bool";
1410
+ readonly name: "partialFill";
1411
+ }];
1412
+ }, {
1413
+ readonly name: "OrderFilled";
1414
+ readonly type: "event";
1415
+ readonly inputs: readonly [{
1416
+ readonly type: "uint128";
1417
+ readonly name: "orderId";
1418
+ readonly indexed: true;
1419
+ }, {
1420
+ readonly type: "address";
1421
+ readonly name: "maker";
1422
+ readonly indexed: true;
1423
+ }, {
1424
+ readonly type: "address";
1425
+ readonly name: "taker";
1426
+ readonly indexed: true;
1427
+ }, {
1428
+ readonly type: "uint128";
1429
+ readonly name: "amountFilled";
1430
+ }, {
1431
+ readonly type: "bool";
1432
+ readonly name: "partialFill";
1433
+ }];
1434
+ }, {
1435
+ readonly name: "OrderCancelled";
1436
+ readonly type: "event";
1437
+ readonly inputs: readonly [{
1438
+ readonly type: "uint128";
1439
+ readonly name: "orderId";
1440
+ readonly indexed: true;
1441
+ }];
1442
+ }, {
1443
+ readonly name: "Unauthorized";
1444
+ readonly type: "error";
1445
+ readonly inputs: readonly [];
1446
+ }, {
1447
+ readonly name: "PairDoesNotExist";
1448
+ readonly type: "error";
1449
+ readonly inputs: readonly [];
1450
+ }, {
1451
+ readonly name: "PairAlreadyExists";
1452
+ readonly type: "error";
1453
+ readonly inputs: readonly [];
1454
+ }, {
1455
+ readonly name: "OrderDoesNotExist";
1456
+ readonly type: "error";
1457
+ readonly inputs: readonly [];
1458
+ }, {
1459
+ readonly name: "IdenticalTokens";
1460
+ readonly type: "error";
1461
+ readonly inputs: readonly [];
1462
+ }, {
1463
+ readonly name: "InvalidToken";
1464
+ readonly type: "error";
1465
+ readonly inputs: readonly [];
1466
+ }, {
1467
+ readonly name: "TickOutOfBounds";
1468
+ readonly type: "error";
1469
+ readonly inputs: readonly [{
1470
+ readonly type: "int16";
1471
+ readonly name: "tick";
1472
+ }];
1473
+ }, {
1474
+ readonly name: "InvalidTick";
1475
+ readonly type: "error";
1476
+ readonly inputs: readonly [];
1477
+ }, {
1478
+ readonly name: "InvalidFlipTick";
1479
+ readonly type: "error";
1480
+ readonly inputs: readonly [];
1481
+ }, {
1482
+ readonly name: "InsufficientBalance";
1483
+ readonly type: "error";
1484
+ readonly inputs: readonly [];
1485
+ }, {
1486
+ readonly name: "InsufficientLiquidity";
1487
+ readonly type: "error";
1488
+ readonly inputs: readonly [];
1489
+ }, {
1490
+ readonly name: "InsufficientOutput";
1491
+ readonly type: "error";
1492
+ readonly inputs: readonly [];
1493
+ }, {
1494
+ readonly name: "MaxInputExceeded";
1495
+ readonly type: "error";
1496
+ readonly inputs: readonly [];
1497
+ }, {
1498
+ readonly name: "BelowMinimumOrderSize";
1499
+ readonly type: "error";
1500
+ readonly inputs: readonly [{
1501
+ readonly type: "uint128";
1502
+ readonly name: "amount";
1503
+ }];
1504
+ }, {
1505
+ readonly name: "InvalidBaseToken";
1506
+ readonly type: "error";
1507
+ readonly inputs: readonly [];
1508
+ }], "PairCreated">;
1509
+ }
1510
+ /**
1511
+ * Creates a new trading pair on the DEX.
1512
+ *
1513
+ * @example
1514
+ * ```ts
1515
+ * import { createClient, http } from 'viem'
1516
+ * import { privateKeyToAccount } from 'viem/accounts'
1517
+ * import { tempo } from 'tempo.ts/chains'
1518
+ * import { Actions } from 'tempo.ts/viem'
1519
+ *
1520
+ * const client = createClient({
1521
+ * account: privateKeyToAccount('0x...'),
1522
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1523
+ * transport: http(),
1524
+ * })
1525
+ *
1526
+ * const result = await Actions.dex.createPairSync(client, {
1527
+ * base: '0x20c...11',
1528
+ * })
1529
+ * ```
1530
+ *
1531
+ * @param client - Client.
1532
+ * @param parameters - Parameters.
1533
+ * @returns The transaction receipt and event data.
1534
+ */
1535
+ export declare function createPairSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: createPairSync.Parameters<chain, account>): Promise<createPairSync.ReturnValue>;
1536
+ export declare namespace createPairSync {
1537
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = createPair.Parameters<chain, account>;
1538
+ type Args = createPair.Args;
1539
+ type ReturnValue = Compute<GetEventArgs<typeof Abis.stablecoinExchange, 'PairCreated', {
1540
+ IndexedOnly: false;
1541
+ Required: true;
1542
+ }> & {
1543
+ /** Transaction receipt. */
1544
+ receipt: TransactionReceipt;
1545
+ }>;
1546
+ type ErrorType = BaseErrorType;
1547
+ }
1548
+ /**
1549
+ * Gets a user's token balance on the DEX.
1550
+ *
1551
+ * @example
1552
+ * ```ts
1553
+ * import { createClient, http } from 'viem'
1554
+ * import { tempo } from 'tempo.ts/chains'
1555
+ * import { Actions } from 'tempo.ts/viem'
1556
+ *
1557
+ * const client = createClient({
1558
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1559
+ * transport: http(),
1560
+ * })
1561
+ *
1562
+ * const balance = await Actions.dex.getBalance(client, {
1563
+ * account: '0x...',
1564
+ * token: '0x20c...11',
1565
+ * })
1566
+ * ```
1567
+ *
1568
+ * @param client - Client.
1569
+ * @param parameters - Parameters.
1570
+ * @returns The user's token balance on the DEX.
1571
+ */
1572
+ export declare function getBalance<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: getBalance.Parameters<account>): Promise<getBalance.ReturnValue>;
1573
+ export declare namespace getBalance {
1574
+ type Parameters<account extends Account | undefined = Account | undefined> = ReadParameters & GetAccountParameter<account> & Args;
1575
+ type Args = {
1576
+ /** Address of the account. */
1577
+ account: Address;
1578
+ /** Address of the token. */
1579
+ token: Address;
1580
+ };
1581
+ type ReturnValue = ReadContractReturnType<typeof Abis.stablecoinExchange, 'balanceOf', never>;
1582
+ /**
1583
+ * Defines a call to the `balanceOf` function.
1584
+ *
1585
+ * @param args - Arguments.
1586
+ * @returns The call.
1587
+ */
1588
+ function call(args: Args): {
1589
+ abi: [{
1590
+ readonly name: "balanceOf";
1591
+ readonly type: "function";
1592
+ readonly stateMutability: "view";
1593
+ readonly inputs: readonly [{
1594
+ readonly type: "address";
1595
+ readonly name: "user";
1596
+ }, {
1597
+ readonly type: "address";
1598
+ readonly name: "token";
1599
+ }];
1600
+ readonly outputs: readonly [{
1601
+ readonly type: "uint128";
1602
+ }];
1603
+ }];
1604
+ functionName: "balanceOf";
1605
+ } & {
1606
+ args: readonly [user: `0x${string}`, token: `0x${string}`];
1607
+ } & {
1608
+ address: Address;
1609
+ } & {
1610
+ data: import("../../index.js").Hex;
1611
+ to: Address;
1612
+ };
1613
+ }
1614
+ /**
1615
+ * Gets the quote for buying a specific amount of tokens.
1616
+ *
1617
+ * @example
1618
+ * ```ts
1619
+ * import { createClient, http, parseUnits } from 'viem'
1620
+ * import { tempo } from 'tempo.ts/chains'
1621
+ * import { Actions } from 'tempo.ts/viem'
1622
+ *
1623
+ * const client = createClient({
1624
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1625
+ * transport: http(),
1626
+ * })
1627
+ *
1628
+ * const amountIn = await Actions.dex.getBuyQuote(client, {
1629
+ * amountOut: parseUnits('100', 6),
1630
+ * tokenIn: '0x20c...11',
1631
+ * tokenOut: '0x20c...20',
1632
+ * })
1633
+ * ```
1634
+ *
1635
+ * @param client - Client.
1636
+ * @param parameters - Parameters.
1637
+ * @returns The amount of tokenIn needed to buy the specified amountOut.
1638
+ */
1639
+ export declare function getBuyQuote<chain extends Chain | undefined>(client: Client<Transport, chain>, parameters: getBuyQuote.Parameters): Promise<getBuyQuote.ReturnValue>;
1640
+ export declare namespace getBuyQuote {
1641
+ type Parameters = ReadParameters & Args;
1642
+ type Args = {
1643
+ /** Amount of tokenOut to buy. */
1644
+ amountOut: bigint;
1645
+ /** Address of the token to spend. */
1646
+ tokenIn: Address;
1647
+ /** Address of the token to buy. */
1648
+ tokenOut: Address;
1649
+ };
1650
+ type ReturnValue = ReadContractReturnType<typeof Abis.stablecoinExchange, 'quoteSwapExactAmountOut', never>;
1651
+ /**
1652
+ * Defines a call to the `quoteSwapExactAmountOut` function.
1653
+ *
1654
+ * @param args - Arguments.
1655
+ * @returns The call.
1656
+ */
1657
+ function call(args: Args): {
1658
+ abi: [{
1659
+ readonly name: "quoteSwapExactAmountOut";
1660
+ readonly type: "function";
1661
+ readonly stateMutability: "view";
1662
+ readonly inputs: readonly [{
1663
+ readonly type: "address";
1664
+ readonly name: "tokenIn";
1665
+ }, {
1666
+ readonly type: "address";
1667
+ readonly name: "tokenOut";
1668
+ }, {
1669
+ readonly type: "uint128";
1670
+ readonly name: "amountOut";
1671
+ }];
1672
+ readonly outputs: readonly [{
1673
+ readonly type: "uint128";
1674
+ readonly name: "amountIn";
1675
+ }];
1676
+ }];
1677
+ functionName: "quoteSwapExactAmountOut";
1678
+ } & {
1679
+ args: readonly [tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountOut: bigint];
1680
+ } & {
1681
+ address: Address;
1682
+ } & {
1683
+ data: import("../../index.js").Hex;
1684
+ to: Address;
1685
+ };
1686
+ }
1687
+ /**
1688
+ * Gets an order's details from the orderbook.
1689
+ *
1690
+ * @example
1691
+ * ```ts
1692
+ * import { createClient, http } from 'viem'
1693
+ * import { tempo } from 'tempo.ts/chains'
1694
+ * import { Actions } from 'tempo.ts/viem'
1695
+ *
1696
+ * const client = createClient({
1697
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1698
+ * transport: http(),
1699
+ * })
1700
+ *
1701
+ * const order = await Actions.dex.getOrder(client, {
1702
+ * orderId: 123n,
1703
+ * })
1704
+ * ```
1705
+ *
1706
+ * @param client - Client.
1707
+ * @param parameters - Parameters.
1708
+ * @returns The order details.
1709
+ */
1710
+ export declare function getOrder<chain extends Chain | undefined>(client: Client<Transport, chain>, parameters: getOrder.Parameters): Promise<getOrder.ReturnValue>;
1711
+ export declare namespace getOrder {
1712
+ type Parameters = ReadParameters & Args;
1713
+ type Args = {
1714
+ /** Order ID to query. */
1715
+ orderId: bigint;
1716
+ };
1717
+ type ReturnValue = ReadContractReturnType<typeof Abis.stablecoinExchange, 'getOrder', never>;
1718
+ /**
1719
+ * Defines a call to the `getOrder` function.
1720
+ *
1721
+ * @param args - Arguments.
1722
+ * @returns The call.
1723
+ */
1724
+ function call(args: Args): {
1725
+ abi: [{
1726
+ readonly name: "getOrder";
1727
+ readonly type: "function";
1728
+ readonly stateMutability: "view";
1729
+ readonly inputs: readonly [{
1730
+ readonly type: "uint128";
1731
+ readonly name: "orderId";
1732
+ }];
1733
+ readonly outputs: readonly [{
1734
+ readonly type: "tuple";
1735
+ readonly components: readonly [{
1736
+ readonly type: "uint128";
1737
+ readonly name: "orderId";
1738
+ }, {
1739
+ readonly type: "address";
1740
+ readonly name: "maker";
1741
+ }, {
1742
+ readonly type: "bytes32";
1743
+ readonly name: "bookKey";
1744
+ }, {
1745
+ readonly type: "bool";
1746
+ readonly name: "isBid";
1747
+ }, {
1748
+ readonly type: "int16";
1749
+ readonly name: "tick";
1750
+ }, {
1751
+ readonly type: "uint128";
1752
+ readonly name: "amount";
1753
+ }, {
1754
+ readonly type: "uint128";
1755
+ readonly name: "remaining";
1756
+ }, {
1757
+ readonly type: "uint128";
1758
+ readonly name: "prev";
1759
+ }, {
1760
+ readonly type: "uint128";
1761
+ readonly name: "next";
1762
+ }, {
1763
+ readonly type: "bool";
1764
+ readonly name: "isFlip";
1765
+ }, {
1766
+ readonly type: "int16";
1767
+ readonly name: "flipTick";
1768
+ }];
1769
+ }];
1770
+ }];
1771
+ functionName: "getOrder";
1772
+ } & {
1773
+ args: readonly [orderId: bigint];
1774
+ } & {
1775
+ address: Address;
1776
+ } & {
1777
+ data: import("../../index.js").Hex;
1778
+ to: Address;
1779
+ };
1780
+ }
1781
+ /**
1782
+ * Gets orderbook information for a trading pair.
1783
+ *
1784
+ * @example
1785
+ * ```ts
1786
+ * import { createClient, http } from 'viem'
1787
+ * import { tempo } from 'tempo.ts/chains'
1788
+ * import { Actions } from 'tempo.ts/viem'
1789
+ *
1790
+ * const client = createClient({
1791
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1792
+ * transport: http(),
1793
+ * })
1794
+ *
1795
+ * const book = await Actions.dex.getOrderbook(client, {
1796
+ * base: '0x20c...11',
1797
+ * quote: '0x20c...20',
1798
+ * })
1799
+ * ```
1800
+ *
1801
+ * @param client - Client.
1802
+ * @param parameters - Parameters.
1803
+ * @returns The orderbook information.
1804
+ */
1805
+ export declare function getOrderbook<chain extends Chain | undefined>(client: Client<Transport, chain>, parameters: getOrderbook.Parameters): Promise<getOrderbook.ReturnValue>;
1806
+ export declare namespace getOrderbook {
1807
+ type Parameters = ReadParameters & Args;
1808
+ type Args = {
1809
+ /** Address of the base token. */
1810
+ base: Address;
1811
+ /** Address of the quote token. */
1812
+ quote: Address;
1813
+ };
1814
+ type ReturnValue = ReadContractReturnType<typeof Abis.stablecoinExchange, 'books', never>;
1815
+ /**
1816
+ * Defines a call to the `books` function.
1817
+ *
1818
+ * @param args - Arguments.
1819
+ * @returns The call.
1820
+ */
1821
+ function call(args: Args): {
1822
+ abi: [{
1823
+ readonly name: "books";
1824
+ readonly type: "function";
1825
+ readonly stateMutability: "view";
1826
+ readonly inputs: readonly [{
1827
+ readonly type: "bytes32";
1828
+ readonly name: "pairKey";
1829
+ }];
1830
+ readonly outputs: readonly [{
1831
+ readonly type: "tuple";
1832
+ readonly components: readonly [{
1833
+ readonly type: "address";
1834
+ readonly name: "base";
1835
+ }, {
1836
+ readonly type: "address";
1837
+ readonly name: "quote";
1838
+ }, {
1839
+ readonly type: "int16";
1840
+ readonly name: "bestBidTick";
1841
+ }, {
1842
+ readonly type: "int16";
1843
+ readonly name: "bestAskTick";
1844
+ }];
1845
+ }];
1846
+ }];
1847
+ functionName: "books";
1848
+ } & {
1849
+ args: readonly [`0x${string}`];
1850
+ } & {
1851
+ address: Address;
1852
+ } & {
1853
+ data: import("../../index.js").Hex;
1854
+ to: Address;
1855
+ };
1856
+ }
1857
+ /**
1858
+ * Gets the price level information at a specific tick.
1859
+ *
1860
+ * @example
1861
+ * ```ts
1862
+ * import { createClient, http } from 'viem'
1863
+ * import { tempo } from 'tempo.ts/chains'
1864
+ * import { Actions, Tick } from 'tempo.ts/viem'
1865
+ *
1866
+ * const client = createClient({
1867
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1868
+ * transport: http(),
1869
+ * })
1870
+ *
1871
+ * const level = await Actions.dex.getTickLevel(client, {
1872
+ * base: '0x20c...11',
1873
+ * tick: Tick.fromPrice('1.001'),
1874
+ * isBid: true,
1875
+ * })
1876
+ * ```
1877
+ *
1878
+ * @param client - Client.
1879
+ * @param parameters - Parameters.
1880
+ * @returns The price level information.
1881
+ */
1882
+ export declare function getTickLevel<chain extends Chain | undefined>(client: Client<Transport, chain>, parameters: getTickLevel.Parameters): Promise<getTickLevel.ReturnValue>;
1883
+ export declare namespace getTickLevel {
1884
+ type Parameters = ReadParameters & Args;
1885
+ type Args = {
1886
+ /** Address of the base token. */
1887
+ base: Address;
1888
+ /** Whether to query the bid side (true) or ask side (false). */
1889
+ isBid: boolean;
1890
+ /** Price tick to query. */
1891
+ tick: number;
1892
+ };
1893
+ type ReturnValue = {
1894
+ /** Order ID of the first order at this tick (0 if empty) */
1895
+ head: bigint;
1896
+ /** Order ID of the last order at this tick (0 if empty) */
1897
+ tail: bigint;
1898
+ /** Total liquidity available at this tick level */
1899
+ totalLiquidity: bigint;
1900
+ };
1901
+ /**
1902
+ * Defines a call to the `getTickLevel` function.
1903
+ *
1904
+ * @param args - Arguments.
1905
+ * @returns The call.
1906
+ */
1907
+ function call(args: Args): {
1908
+ abi: [{
1909
+ readonly name: "getTickLevel";
1910
+ readonly type: "function";
1911
+ readonly stateMutability: "view";
1912
+ readonly inputs: readonly [{
1913
+ readonly type: "address";
1914
+ readonly name: "base";
1915
+ }, {
1916
+ readonly type: "int16";
1917
+ readonly name: "tick";
1918
+ }, {
1919
+ readonly type: "bool";
1920
+ readonly name: "isBid";
1921
+ }];
1922
+ readonly outputs: readonly [{
1923
+ readonly type: "uint128";
1924
+ readonly name: "head";
1925
+ }, {
1926
+ readonly type: "uint128";
1927
+ readonly name: "tail";
1928
+ }, {
1929
+ readonly type: "uint128";
1930
+ readonly name: "totalLiquidity";
1931
+ }];
1932
+ }];
1933
+ functionName: "getTickLevel";
1934
+ } & {
1935
+ args: readonly [base: `0x${string}`, tick: number, boolean];
1936
+ } & {
1937
+ address: Address;
1938
+ } & {
1939
+ data: import("../../index.js").Hex;
1940
+ to: Address;
1941
+ };
1942
+ }
1943
+ /**
1944
+ * Gets the quote for selling a specific amount of tokens.
1945
+ *
1946
+ * @example
1947
+ * ```ts
1948
+ * import { createClient, http, parseUnits } from 'viem'
1949
+ * import { tempo } from 'tempo.ts/chains'
1950
+ * import { Actions } from 'tempo.ts/viem'
1951
+ *
1952
+ * const client = createClient({
1953
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
1954
+ * transport: http(),
1955
+ * })
1956
+ *
1957
+ * const amountOut = await Actions.dex.getSellQuote(client, {
1958
+ * amountIn: parseUnits('100', 6),
1959
+ * tokenIn: '0x20c...11',
1960
+ * tokenOut: '0x20c...20',
1961
+ * })
1962
+ * ```
1963
+ *
1964
+ * @param client - Client.
1965
+ * @param parameters - Parameters.
1966
+ * @returns The amount of tokenOut received for selling the specified amountIn.
1967
+ */
1968
+ export declare function getSellQuote<chain extends Chain | undefined>(client: Client<Transport, chain>, parameters: getSellQuote.Parameters): Promise<getSellQuote.ReturnValue>;
1969
+ export declare namespace getSellQuote {
1970
+ type Parameters = ReadParameters & Args;
1971
+ type Args = {
1972
+ /** Amount of tokenIn to sell. */
1973
+ amountIn: bigint;
1974
+ /** Address of the token to sell. */
1975
+ tokenIn: Address;
1976
+ /** Address of the token to receive. */
1977
+ tokenOut: Address;
1978
+ };
1979
+ type ReturnValue = ReadContractReturnType<typeof Abis.stablecoinExchange, 'quoteSwapExactAmountIn', never>;
1980
+ /**
1981
+ * Defines a call to the `quoteSwapExactAmountIn` function.
1982
+ *
1983
+ * @param args - Arguments.
1984
+ * @returns The call.
1985
+ */
1986
+ function call(args: Args): {
1987
+ abi: [{
1988
+ readonly name: "quoteSwapExactAmountIn";
1989
+ readonly type: "function";
1990
+ readonly stateMutability: "view";
1991
+ readonly inputs: readonly [{
1992
+ readonly type: "address";
1993
+ readonly name: "tokenIn";
1994
+ }, {
1995
+ readonly type: "address";
1996
+ readonly name: "tokenOut";
1997
+ }, {
1998
+ readonly type: "uint128";
1999
+ readonly name: "amountIn";
2000
+ }];
2001
+ readonly outputs: readonly [{
2002
+ readonly type: "uint128";
2003
+ readonly name: "amountOut";
2004
+ }];
2005
+ }];
2006
+ functionName: "quoteSwapExactAmountIn";
2007
+ } & {
2008
+ args: readonly [tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn: bigint];
2009
+ } & {
2010
+ address: Address;
2011
+ } & {
2012
+ data: import("../../index.js").Hex;
2013
+ to: Address;
2014
+ };
2015
+ }
2016
+ /**
2017
+ * Places a limit order on the orderbook.
2018
+ *
2019
+ * @example
2020
+ * ```ts
2021
+ * import { createClient, http, parseUnits } from 'viem'
2022
+ * import { privateKeyToAccount } from 'viem/accounts'
2023
+ * import { tempo } from 'tempo.ts/chains'
2024
+ * import { Actions, Tick } from 'tempo.ts/viem'
2025
+ *
2026
+ * const client = createClient({
2027
+ * account: privateKeyToAccount('0x...'),
2028
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
2029
+ * transport: http(),
2030
+ * })
2031
+ *
2032
+ * const hash = await Actions.dex.place(client, {
2033
+ * amount: parseUnits('100', 6),
2034
+ * tick: Tick.fromPrice('0.99'),
2035
+ * token: '0x20c...11',
2036
+ * type: 'buy',
2037
+ * })
2038
+ * ```
2039
+ *
2040
+ * @param client - Client.
2041
+ * @param parameters - Parameters.
2042
+ * @returns The transaction hash.
2043
+ */
2044
+ export declare function place<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: place.Parameters<chain, account>): Promise<place.ReturnValue>;
2045
+ export declare namespace place {
2046
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
2047
+ type Args = {
2048
+ /** Amount of tokens to place in the order. */
2049
+ amount: bigint;
2050
+ /** Price tick for the order. */
2051
+ tick: number;
2052
+ /** Address of the base token. */
2053
+ token: Address;
2054
+ /** Order type - 'buy' to buy the token, 'sell' to sell it. */
2055
+ type: OrderType;
2056
+ };
2057
+ type ReturnValue = WriteContractReturnType;
2058
+ type ErrorType = BaseErrorType;
2059
+ /** @internal */
2060
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: place.Parameters<chain, account>): Promise<ReturnType<action>>;
2061
+ /**
2062
+ * Defines a call to the `place` function.
2063
+ *
2064
+ * Can be passed as a parameter to:
2065
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
2066
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
2067
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
2068
+ *
2069
+ * @example
2070
+ * ```ts
2071
+ * import { createClient, http, parseUnits, walletActions } from 'viem'
2072
+ * import { tempo } from 'tempo.ts/chains'
2073
+ * import { Actions, Tick } from 'tempo.ts/viem'
2074
+ *
2075
+ * const client = createClient({
2076
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
2077
+ * transport: http(),
2078
+ * }).extend(walletActions)
2079
+ *
2080
+ * const { result } = await client.sendCalls({
2081
+ * calls: [
2082
+ * Actions.dex.place.call({
2083
+ * amount: parseUnits('100', 6),
2084
+ * tick: Tick.fromPrice('0.99'),
2085
+ * token: '0x20c0...beef',
2086
+ * type: 'buy',
2087
+ * }),
2088
+ * ]
2089
+ * })
2090
+ * ```
2091
+ *
2092
+ * @param args - Arguments.
2093
+ * @returns The call.
2094
+ */
2095
+ function call(args: Args): {
2096
+ abi: [{
2097
+ readonly name: "place";
2098
+ readonly type: "function";
2099
+ readonly stateMutability: "nonpayable";
2100
+ readonly inputs: readonly [{
2101
+ readonly type: "address";
2102
+ readonly name: "token";
2103
+ }, {
2104
+ readonly type: "uint128";
2105
+ readonly name: "amount";
2106
+ }, {
2107
+ readonly type: "bool";
2108
+ readonly name: "isBid";
2109
+ }, {
2110
+ readonly type: "int16";
2111
+ readonly name: "tick";
2112
+ }];
2113
+ readonly outputs: readonly [{
2114
+ readonly type: "uint128";
2115
+ readonly name: "orderId";
2116
+ }];
2117
+ }];
2118
+ functionName: "place";
2119
+ } & {
2120
+ args: readonly [token: `0x${string}`, amount: bigint, boolean, tick: number];
2121
+ } & {
2122
+ address: Address;
2123
+ } & {
2124
+ data: import("../../index.js").Hex;
2125
+ to: Address;
2126
+ };
2127
+ /**
2128
+ * Extracts the `OrderPlaced` event from logs.
2129
+ *
2130
+ * @param logs - The logs.
2131
+ * @returns The `OrderPlaced` event.
2132
+ */
2133
+ function extractEvent(logs: viem_Log[]): viem_Log<bigint, number, false, undefined, true, readonly [{
2134
+ readonly name: "createPair";
2135
+ readonly type: "function";
2136
+ readonly stateMutability: "nonpayable";
2137
+ readonly inputs: readonly [{
2138
+ readonly type: "address";
2139
+ readonly name: "base";
2140
+ }];
2141
+ readonly outputs: readonly [{
2142
+ readonly type: "bytes32";
2143
+ readonly name: "key";
2144
+ }];
2145
+ }, {
2146
+ readonly name: "place";
2147
+ readonly type: "function";
2148
+ readonly stateMutability: "nonpayable";
2149
+ readonly inputs: readonly [{
2150
+ readonly type: "address";
2151
+ readonly name: "token";
2152
+ }, {
2153
+ readonly type: "uint128";
2154
+ readonly name: "amount";
2155
+ }, {
2156
+ readonly type: "bool";
2157
+ readonly name: "isBid";
2158
+ }, {
2159
+ readonly type: "int16";
2160
+ readonly name: "tick";
2161
+ }];
2162
+ readonly outputs: readonly [{
2163
+ readonly type: "uint128";
2164
+ readonly name: "orderId";
2165
+ }];
2166
+ }, {
2167
+ readonly name: "placeFlip";
2168
+ readonly type: "function";
2169
+ readonly stateMutability: "nonpayable";
2170
+ readonly inputs: readonly [{
2171
+ readonly type: "address";
2172
+ readonly name: "token";
2173
+ }, {
2174
+ readonly type: "uint128";
2175
+ readonly name: "amount";
2176
+ }, {
2177
+ readonly type: "bool";
2178
+ readonly name: "isBid";
2179
+ }, {
2180
+ readonly type: "int16";
2181
+ readonly name: "tick";
2182
+ }, {
2183
+ readonly type: "int16";
2184
+ readonly name: "flipTick";
2185
+ }];
2186
+ readonly outputs: readonly [{
2187
+ readonly type: "uint128";
2188
+ readonly name: "orderId";
2189
+ }];
2190
+ }, {
2191
+ readonly name: "cancel";
2192
+ readonly type: "function";
2193
+ readonly stateMutability: "nonpayable";
2194
+ readonly inputs: readonly [{
2195
+ readonly type: "uint128";
2196
+ readonly name: "orderId";
2197
+ }];
2198
+ readonly outputs: readonly [];
2199
+ }, {
2200
+ readonly name: "executeBlock";
2201
+ readonly type: "function";
2202
+ readonly stateMutability: "nonpayable";
2203
+ readonly inputs: readonly [];
2204
+ readonly outputs: readonly [];
2205
+ }, {
2206
+ readonly name: "swapExactAmountIn";
2207
+ readonly type: "function";
2208
+ readonly stateMutability: "nonpayable";
2209
+ readonly inputs: readonly [{
2210
+ readonly type: "address";
2211
+ readonly name: "tokenIn";
2212
+ }, {
2213
+ readonly type: "address";
2214
+ readonly name: "tokenOut";
2215
+ }, {
2216
+ readonly type: "uint128";
2217
+ readonly name: "amountIn";
2218
+ }, {
2219
+ readonly type: "uint128";
2220
+ readonly name: "minAmountOut";
2221
+ }];
2222
+ readonly outputs: readonly [{
2223
+ readonly type: "uint128";
2224
+ readonly name: "amountOut";
2225
+ }];
2226
+ }, {
2227
+ readonly name: "swapExactAmountOut";
2228
+ readonly type: "function";
2229
+ readonly stateMutability: "nonpayable";
2230
+ readonly inputs: readonly [{
2231
+ readonly type: "address";
2232
+ readonly name: "tokenIn";
2233
+ }, {
2234
+ readonly type: "address";
2235
+ readonly name: "tokenOut";
2236
+ }, {
2237
+ readonly type: "uint128";
2238
+ readonly name: "amountOut";
2239
+ }, {
2240
+ readonly type: "uint128";
2241
+ readonly name: "maxAmountIn";
2242
+ }];
2243
+ readonly outputs: readonly [{
2244
+ readonly type: "uint128";
2245
+ readonly name: "amountIn";
2246
+ }];
2247
+ }, {
2248
+ readonly name: "quoteSwapExactAmountIn";
2249
+ readonly type: "function";
2250
+ readonly stateMutability: "view";
2251
+ readonly inputs: readonly [{
2252
+ readonly type: "address";
2253
+ readonly name: "tokenIn";
2254
+ }, {
2255
+ readonly type: "address";
2256
+ readonly name: "tokenOut";
2257
+ }, {
2258
+ readonly type: "uint128";
2259
+ readonly name: "amountIn";
2260
+ }];
2261
+ readonly outputs: readonly [{
2262
+ readonly type: "uint128";
2263
+ readonly name: "amountOut";
2264
+ }];
2265
+ }, {
2266
+ readonly name: "quoteSwapExactAmountOut";
2267
+ readonly type: "function";
2268
+ readonly stateMutability: "view";
2269
+ readonly inputs: readonly [{
2270
+ readonly type: "address";
2271
+ readonly name: "tokenIn";
2272
+ }, {
2273
+ readonly type: "address";
2274
+ readonly name: "tokenOut";
2275
+ }, {
2276
+ readonly type: "uint128";
2277
+ readonly name: "amountOut";
2278
+ }];
2279
+ readonly outputs: readonly [{
2280
+ readonly type: "uint128";
2281
+ readonly name: "amountIn";
2282
+ }];
2283
+ }, {
2284
+ readonly name: "balanceOf";
2285
+ readonly type: "function";
2286
+ readonly stateMutability: "view";
2287
+ readonly inputs: readonly [{
2288
+ readonly type: "address";
2289
+ readonly name: "user";
2290
+ }, {
2291
+ readonly type: "address";
2292
+ readonly name: "token";
2293
+ }];
2294
+ readonly outputs: readonly [{
2295
+ readonly type: "uint128";
2296
+ }];
2297
+ }, {
2298
+ readonly name: "withdraw";
2299
+ readonly type: "function";
2300
+ readonly stateMutability: "nonpayable";
2301
+ readonly inputs: readonly [{
2302
+ readonly type: "address";
2303
+ readonly name: "token";
2304
+ }, {
2305
+ readonly type: "uint128";
2306
+ readonly name: "amount";
2307
+ }];
2308
+ readonly outputs: readonly [];
2309
+ }, {
2310
+ readonly name: "getOrder";
2311
+ readonly type: "function";
2312
+ readonly stateMutability: "view";
2313
+ readonly inputs: readonly [{
2314
+ readonly type: "uint128";
2315
+ readonly name: "orderId";
2316
+ }];
2317
+ readonly outputs: readonly [{
2318
+ readonly type: "tuple";
2319
+ readonly components: readonly [{
2320
+ readonly type: "uint128";
2321
+ readonly name: "orderId";
2322
+ }, {
2323
+ readonly type: "address";
2324
+ readonly name: "maker";
2325
+ }, {
2326
+ readonly type: "bytes32";
2327
+ readonly name: "bookKey";
2328
+ }, {
2329
+ readonly type: "bool";
2330
+ readonly name: "isBid";
2331
+ }, {
2332
+ readonly type: "int16";
2333
+ readonly name: "tick";
2334
+ }, {
2335
+ readonly type: "uint128";
2336
+ readonly name: "amount";
2337
+ }, {
2338
+ readonly type: "uint128";
2339
+ readonly name: "remaining";
2340
+ }, {
2341
+ readonly type: "uint128";
2342
+ readonly name: "prev";
2343
+ }, {
2344
+ readonly type: "uint128";
2345
+ readonly name: "next";
2346
+ }, {
2347
+ readonly type: "bool";
2348
+ readonly name: "isFlip";
2349
+ }, {
2350
+ readonly type: "int16";
2351
+ readonly name: "flipTick";
2352
+ }];
2353
+ }];
2354
+ }, {
2355
+ readonly name: "getTickLevel";
2356
+ readonly type: "function";
2357
+ readonly stateMutability: "view";
2358
+ readonly inputs: readonly [{
2359
+ readonly type: "address";
2360
+ readonly name: "base";
2361
+ }, {
2362
+ readonly type: "int16";
2363
+ readonly name: "tick";
2364
+ }, {
2365
+ readonly type: "bool";
2366
+ readonly name: "isBid";
2367
+ }];
2368
+ readonly outputs: readonly [{
2369
+ readonly type: "uint128";
2370
+ readonly name: "head";
2371
+ }, {
2372
+ readonly type: "uint128";
2373
+ readonly name: "tail";
2374
+ }, {
2375
+ readonly type: "uint128";
2376
+ readonly name: "totalLiquidity";
2377
+ }];
2378
+ }, {
2379
+ readonly name: "pairKey";
2380
+ readonly type: "function";
2381
+ readonly stateMutability: "pure";
2382
+ readonly inputs: readonly [{
2383
+ readonly type: "address";
2384
+ readonly name: "tokenA";
2385
+ }, {
2386
+ readonly type: "address";
2387
+ readonly name: "tokenB";
2388
+ }];
2389
+ readonly outputs: readonly [{
2390
+ readonly type: "bytes32";
2391
+ }];
2392
+ }, {
2393
+ readonly name: "activeOrderId";
2394
+ readonly type: "function";
2395
+ readonly stateMutability: "view";
2396
+ readonly inputs: readonly [];
2397
+ readonly outputs: readonly [{
2398
+ readonly type: "uint128";
2399
+ }];
2400
+ }, {
2401
+ readonly name: "pendingOrderId";
2402
+ readonly type: "function";
2403
+ readonly stateMutability: "view";
2404
+ readonly inputs: readonly [];
2405
+ readonly outputs: readonly [{
2406
+ readonly type: "uint128";
2407
+ }];
2408
+ }, {
2409
+ readonly name: "books";
2410
+ readonly type: "function";
2411
+ readonly stateMutability: "view";
2412
+ readonly inputs: readonly [{
2413
+ readonly type: "bytes32";
2414
+ readonly name: "pairKey";
2415
+ }];
2416
+ readonly outputs: readonly [{
2417
+ readonly type: "tuple";
2418
+ readonly components: readonly [{
2419
+ readonly type: "address";
2420
+ readonly name: "base";
2421
+ }, {
2422
+ readonly type: "address";
2423
+ readonly name: "quote";
2424
+ }, {
2425
+ readonly type: "int16";
2426
+ readonly name: "bestBidTick";
2427
+ }, {
2428
+ readonly type: "int16";
2429
+ readonly name: "bestAskTick";
2430
+ }];
2431
+ }];
2432
+ }, {
2433
+ readonly name: "MIN_TICK";
2434
+ readonly type: "function";
2435
+ readonly stateMutability: "pure";
2436
+ readonly inputs: readonly [];
2437
+ readonly outputs: readonly [{
2438
+ readonly type: "int16";
2439
+ }];
2440
+ }, {
2441
+ readonly name: "MAX_TICK";
2442
+ readonly type: "function";
2443
+ readonly stateMutability: "pure";
2444
+ readonly inputs: readonly [];
2445
+ readonly outputs: readonly [{
2446
+ readonly type: "int16";
2447
+ }];
2448
+ }, {
2449
+ readonly name: "TICK_SPACING";
2450
+ readonly type: "function";
2451
+ readonly stateMutability: "pure";
2452
+ readonly inputs: readonly [];
2453
+ readonly outputs: readonly [{
2454
+ readonly type: "int16";
2455
+ }];
2456
+ }, {
2457
+ readonly name: "PRICE_SCALE";
2458
+ readonly type: "function";
2459
+ readonly stateMutability: "pure";
2460
+ readonly inputs: readonly [];
2461
+ readonly outputs: readonly [{
2462
+ readonly type: "uint32";
2463
+ }];
2464
+ }, {
2465
+ readonly name: "MIN_PRICE";
2466
+ readonly type: "function";
2467
+ readonly stateMutability: "pure";
2468
+ readonly inputs: readonly [];
2469
+ readonly outputs: readonly [{
2470
+ readonly type: "uint32";
2471
+ }];
2472
+ }, {
2473
+ readonly name: "MAX_PRICE";
2474
+ readonly type: "function";
2475
+ readonly stateMutability: "pure";
2476
+ readonly inputs: readonly [];
2477
+ readonly outputs: readonly [{
2478
+ readonly type: "uint32";
2479
+ }];
2480
+ }, {
2481
+ readonly name: "tickToPrice";
2482
+ readonly type: "function";
2483
+ readonly stateMutability: "pure";
2484
+ readonly inputs: readonly [{
2485
+ readonly type: "int16";
2486
+ readonly name: "tick";
2487
+ }];
2488
+ readonly outputs: readonly [{
2489
+ readonly type: "uint32";
2490
+ readonly name: "price";
2491
+ }];
2492
+ }, {
2493
+ readonly name: "priceToTick";
2494
+ readonly type: "function";
2495
+ readonly stateMutability: "pure";
2496
+ readonly inputs: readonly [{
2497
+ readonly type: "uint32";
2498
+ readonly name: "price";
2499
+ }];
2500
+ readonly outputs: readonly [{
2501
+ readonly type: "int16";
2502
+ readonly name: "tick";
2503
+ }];
2504
+ }, {
2505
+ readonly name: "PairCreated";
2506
+ readonly type: "event";
2507
+ readonly inputs: readonly [{
2508
+ readonly type: "bytes32";
2509
+ readonly name: "key";
2510
+ readonly indexed: true;
2511
+ }, {
2512
+ readonly type: "address";
2513
+ readonly name: "base";
2514
+ readonly indexed: true;
2515
+ }, {
2516
+ readonly type: "address";
2517
+ readonly name: "quote";
2518
+ readonly indexed: true;
2519
+ }];
2520
+ }, {
2521
+ readonly name: "OrderPlaced";
2522
+ readonly type: "event";
2523
+ readonly inputs: readonly [{
2524
+ readonly type: "uint128";
2525
+ readonly name: "orderId";
2526
+ readonly indexed: true;
2527
+ }, {
2528
+ readonly type: "address";
2529
+ readonly name: "maker";
2530
+ readonly indexed: true;
2531
+ }, {
2532
+ readonly type: "address";
2533
+ readonly name: "token";
2534
+ readonly indexed: true;
2535
+ }, {
2536
+ readonly type: "uint128";
2537
+ readonly name: "amount";
2538
+ }, {
2539
+ readonly type: "bool";
2540
+ readonly name: "isBid";
2541
+ }, {
2542
+ readonly type: "int16";
2543
+ readonly name: "tick";
2544
+ }];
2545
+ }, {
2546
+ readonly name: "FlipOrderPlaced";
2547
+ readonly type: "event";
2548
+ readonly inputs: readonly [{
2549
+ readonly type: "uint128";
2550
+ readonly name: "orderId";
2551
+ readonly indexed: true;
2552
+ }, {
2553
+ readonly type: "address";
2554
+ readonly name: "maker";
2555
+ readonly indexed: true;
2556
+ }, {
2557
+ readonly type: "address";
2558
+ readonly name: "token";
2559
+ readonly indexed: true;
2560
+ }, {
2561
+ readonly type: "uint128";
2562
+ readonly name: "amount";
2563
+ }, {
2564
+ readonly type: "bool";
2565
+ readonly name: "isBid";
2566
+ }, {
2567
+ readonly type: "int16";
2568
+ readonly name: "tick";
2569
+ }, {
2570
+ readonly type: "int16";
2571
+ readonly name: "flipTick";
2572
+ }];
2573
+ }, {
2574
+ readonly name: "OrderFilled";
2575
+ readonly type: "event";
2576
+ readonly inputs: readonly [{
2577
+ readonly type: "uint128";
2578
+ readonly name: "orderId";
2579
+ readonly indexed: true;
2580
+ }, {
2581
+ readonly type: "address";
2582
+ readonly name: "maker";
2583
+ readonly indexed: true;
2584
+ }, {
2585
+ readonly type: "uint128";
2586
+ readonly name: "amountFilled";
2587
+ }, {
2588
+ readonly type: "bool";
2589
+ readonly name: "partialFill";
2590
+ }];
2591
+ }, {
2592
+ readonly name: "OrderFilled";
2593
+ readonly type: "event";
2594
+ readonly inputs: readonly [{
2595
+ readonly type: "uint128";
2596
+ readonly name: "orderId";
2597
+ readonly indexed: true;
2598
+ }, {
2599
+ readonly type: "address";
2600
+ readonly name: "maker";
2601
+ readonly indexed: true;
2602
+ }, {
2603
+ readonly type: "address";
2604
+ readonly name: "taker";
2605
+ readonly indexed: true;
2606
+ }, {
2607
+ readonly type: "uint128";
2608
+ readonly name: "amountFilled";
2609
+ }, {
2610
+ readonly type: "bool";
2611
+ readonly name: "partialFill";
2612
+ }];
2613
+ }, {
2614
+ readonly name: "OrderCancelled";
2615
+ readonly type: "event";
2616
+ readonly inputs: readonly [{
2617
+ readonly type: "uint128";
2618
+ readonly name: "orderId";
2619
+ readonly indexed: true;
2620
+ }];
2621
+ }, {
2622
+ readonly name: "Unauthorized";
2623
+ readonly type: "error";
2624
+ readonly inputs: readonly [];
2625
+ }, {
2626
+ readonly name: "PairDoesNotExist";
2627
+ readonly type: "error";
2628
+ readonly inputs: readonly [];
2629
+ }, {
2630
+ readonly name: "PairAlreadyExists";
2631
+ readonly type: "error";
2632
+ readonly inputs: readonly [];
2633
+ }, {
2634
+ readonly name: "OrderDoesNotExist";
2635
+ readonly type: "error";
2636
+ readonly inputs: readonly [];
2637
+ }, {
2638
+ readonly name: "IdenticalTokens";
2639
+ readonly type: "error";
2640
+ readonly inputs: readonly [];
2641
+ }, {
2642
+ readonly name: "InvalidToken";
2643
+ readonly type: "error";
2644
+ readonly inputs: readonly [];
2645
+ }, {
2646
+ readonly name: "TickOutOfBounds";
2647
+ readonly type: "error";
2648
+ readonly inputs: readonly [{
2649
+ readonly type: "int16";
2650
+ readonly name: "tick";
2651
+ }];
2652
+ }, {
2653
+ readonly name: "InvalidTick";
2654
+ readonly type: "error";
2655
+ readonly inputs: readonly [];
2656
+ }, {
2657
+ readonly name: "InvalidFlipTick";
2658
+ readonly type: "error";
2659
+ readonly inputs: readonly [];
2660
+ }, {
2661
+ readonly name: "InsufficientBalance";
2662
+ readonly type: "error";
2663
+ readonly inputs: readonly [];
2664
+ }, {
2665
+ readonly name: "InsufficientLiquidity";
2666
+ readonly type: "error";
2667
+ readonly inputs: readonly [];
2668
+ }, {
2669
+ readonly name: "InsufficientOutput";
2670
+ readonly type: "error";
2671
+ readonly inputs: readonly [];
2672
+ }, {
2673
+ readonly name: "MaxInputExceeded";
2674
+ readonly type: "error";
2675
+ readonly inputs: readonly [];
2676
+ }, {
2677
+ readonly name: "BelowMinimumOrderSize";
2678
+ readonly type: "error";
2679
+ readonly inputs: readonly [{
2680
+ readonly type: "uint128";
2681
+ readonly name: "amount";
2682
+ }];
2683
+ }, {
2684
+ readonly name: "InvalidBaseToken";
2685
+ readonly type: "error";
2686
+ readonly inputs: readonly [];
2687
+ }], "OrderPlaced">;
2688
+ }
2689
+ /**
2690
+ * Places a flip order that automatically flips when filled.
2691
+ *
2692
+ * @example
2693
+ * ```ts
2694
+ * import { createClient, http, parseUnits } from 'viem'
2695
+ * import { privateKeyToAccount } from 'viem/accounts'
2696
+ * import { tempo } from 'tempo.ts/chains'
2697
+ * import { Actions, Tick } from 'tempo.ts/viem'
2698
+ *
2699
+ * const client = createClient({
2700
+ * account: privateKeyToAccount('0x...'),
2701
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
2702
+ * transport: http(),
2703
+ * })
2704
+ *
2705
+ * const hash = await Actions.dex.placeFlip(client, {
2706
+ * amount: parseUnits('100', 6),
2707
+ * flipTick: Tick.fromPrice('1.01'),
2708
+ * tick: Tick.fromPrice('0.99'),
2709
+ * token: '0x20c...11',
2710
+ * type: 'buy',
2711
+ * })
2712
+ * ```
2713
+ *
2714
+ * @param client - Client.
2715
+ * @param parameters - Parameters.
2716
+ * @returns The transaction hash.
2717
+ */
2718
+ export declare function placeFlip<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: placeFlip.Parameters<chain, account>): Promise<placeFlip.ReturnValue>;
2719
+ export declare namespace placeFlip {
2720
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
2721
+ type Args = {
2722
+ /** Amount of tokens to place in the order. */
2723
+ amount: bigint;
2724
+ /** Target tick to flip to when order is filled. */
2725
+ flipTick: number;
2726
+ /** Price tick for the order. */
2727
+ tick: number;
2728
+ /** Address of the base token. */
2729
+ token: Address;
2730
+ /** Order type - 'buy' to buy the token, 'sell' to sell it. */
2731
+ type: OrderType;
2732
+ };
2733
+ type ReturnValue = WriteContractReturnType;
2734
+ type ErrorType = BaseErrorType;
2735
+ /** @internal */
2736
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: placeFlip.Parameters<chain, account>): Promise<ReturnType<action>>;
2737
+ /**
2738
+ * Defines a call to the `placeFlip` function.
2739
+ *
2740
+ * Can be passed as a parameter to:
2741
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
2742
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
2743
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
2744
+ *
2745
+ * @example
2746
+ * ```ts
2747
+ * import { createClient, http, parseUnits, walletActions } from 'viem'
2748
+ * import { tempo } from 'tempo.ts/chains'
2749
+ * import { Actions, Tick } from 'tempo.ts/viem'
2750
+ *
2751
+ * const client = createClient({
2752
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
2753
+ * transport: http(),
2754
+ * }).extend(walletActions)
2755
+ *
2756
+ * const { result } = await client.sendCalls({
2757
+ * calls: [
2758
+ * Actions.dex.placeFlip.call({
2759
+ * amount: parseUnits('100', 6),
2760
+ * flipTick: Tick.fromPrice('1.01'),
2761
+ * tick: Tick.fromPrice('0.99'),
2762
+ * token: '0x20c0...beef',
2763
+ * type: 'buy',
2764
+ * }),
2765
+ * ]
2766
+ * })
2767
+ * ```
2768
+ *
2769
+ * @param args - Arguments.
2770
+ * @returns The call.
2771
+ */
2772
+ function call(args: Args): {
2773
+ abi: [{
2774
+ readonly name: "placeFlip";
2775
+ readonly type: "function";
2776
+ readonly stateMutability: "nonpayable";
2777
+ readonly inputs: readonly [{
2778
+ readonly type: "address";
2779
+ readonly name: "token";
2780
+ }, {
2781
+ readonly type: "uint128";
2782
+ readonly name: "amount";
2783
+ }, {
2784
+ readonly type: "bool";
2785
+ readonly name: "isBid";
2786
+ }, {
2787
+ readonly type: "int16";
2788
+ readonly name: "tick";
2789
+ }, {
2790
+ readonly type: "int16";
2791
+ readonly name: "flipTick";
2792
+ }];
2793
+ readonly outputs: readonly [{
2794
+ readonly type: "uint128";
2795
+ readonly name: "orderId";
2796
+ }];
2797
+ }];
2798
+ functionName: "placeFlip";
2799
+ } & {
2800
+ args: readonly [token: `0x${string}`, amount: bigint, boolean, tick: number, number];
2801
+ } & {
2802
+ address: Address;
2803
+ } & {
2804
+ data: import("../../index.js").Hex;
2805
+ to: Address;
2806
+ };
2807
+ /**
2808
+ * Extracts the `FlipOrderPlaced` event from logs.
2809
+ *
2810
+ * @param logs - The logs.
2811
+ * @returns The `FlipOrderPlaced` event.
2812
+ */
2813
+ function extractEvent(logs: viem_Log[]): viem_Log<bigint, number, false, undefined, true, readonly [{
2814
+ readonly name: "createPair";
2815
+ readonly type: "function";
2816
+ readonly stateMutability: "nonpayable";
2817
+ readonly inputs: readonly [{
2818
+ readonly type: "address";
2819
+ readonly name: "base";
2820
+ }];
2821
+ readonly outputs: readonly [{
2822
+ readonly type: "bytes32";
2823
+ readonly name: "key";
2824
+ }];
2825
+ }, {
2826
+ readonly name: "place";
2827
+ readonly type: "function";
2828
+ readonly stateMutability: "nonpayable";
2829
+ readonly inputs: readonly [{
2830
+ readonly type: "address";
2831
+ readonly name: "token";
2832
+ }, {
2833
+ readonly type: "uint128";
2834
+ readonly name: "amount";
2835
+ }, {
2836
+ readonly type: "bool";
2837
+ readonly name: "isBid";
2838
+ }, {
2839
+ readonly type: "int16";
2840
+ readonly name: "tick";
2841
+ }];
2842
+ readonly outputs: readonly [{
2843
+ readonly type: "uint128";
2844
+ readonly name: "orderId";
2845
+ }];
2846
+ }, {
2847
+ readonly name: "placeFlip";
2848
+ readonly type: "function";
2849
+ readonly stateMutability: "nonpayable";
2850
+ readonly inputs: readonly [{
2851
+ readonly type: "address";
2852
+ readonly name: "token";
2853
+ }, {
2854
+ readonly type: "uint128";
2855
+ readonly name: "amount";
2856
+ }, {
2857
+ readonly type: "bool";
2858
+ readonly name: "isBid";
2859
+ }, {
2860
+ readonly type: "int16";
2861
+ readonly name: "tick";
2862
+ }, {
2863
+ readonly type: "int16";
2864
+ readonly name: "flipTick";
2865
+ }];
2866
+ readonly outputs: readonly [{
2867
+ readonly type: "uint128";
2868
+ readonly name: "orderId";
2869
+ }];
2870
+ }, {
2871
+ readonly name: "cancel";
2872
+ readonly type: "function";
2873
+ readonly stateMutability: "nonpayable";
2874
+ readonly inputs: readonly [{
2875
+ readonly type: "uint128";
2876
+ readonly name: "orderId";
2877
+ }];
2878
+ readonly outputs: readonly [];
2879
+ }, {
2880
+ readonly name: "executeBlock";
2881
+ readonly type: "function";
2882
+ readonly stateMutability: "nonpayable";
2883
+ readonly inputs: readonly [];
2884
+ readonly outputs: readonly [];
2885
+ }, {
2886
+ readonly name: "swapExactAmountIn";
2887
+ readonly type: "function";
2888
+ readonly stateMutability: "nonpayable";
2889
+ readonly inputs: readonly [{
2890
+ readonly type: "address";
2891
+ readonly name: "tokenIn";
2892
+ }, {
2893
+ readonly type: "address";
2894
+ readonly name: "tokenOut";
2895
+ }, {
2896
+ readonly type: "uint128";
2897
+ readonly name: "amountIn";
2898
+ }, {
2899
+ readonly type: "uint128";
2900
+ readonly name: "minAmountOut";
2901
+ }];
2902
+ readonly outputs: readonly [{
2903
+ readonly type: "uint128";
2904
+ readonly name: "amountOut";
2905
+ }];
2906
+ }, {
2907
+ readonly name: "swapExactAmountOut";
2908
+ readonly type: "function";
2909
+ readonly stateMutability: "nonpayable";
2910
+ readonly inputs: readonly [{
2911
+ readonly type: "address";
2912
+ readonly name: "tokenIn";
2913
+ }, {
2914
+ readonly type: "address";
2915
+ readonly name: "tokenOut";
2916
+ }, {
2917
+ readonly type: "uint128";
2918
+ readonly name: "amountOut";
2919
+ }, {
2920
+ readonly type: "uint128";
2921
+ readonly name: "maxAmountIn";
2922
+ }];
2923
+ readonly outputs: readonly [{
2924
+ readonly type: "uint128";
2925
+ readonly name: "amountIn";
2926
+ }];
2927
+ }, {
2928
+ readonly name: "quoteSwapExactAmountIn";
2929
+ readonly type: "function";
2930
+ readonly stateMutability: "view";
2931
+ readonly inputs: readonly [{
2932
+ readonly type: "address";
2933
+ readonly name: "tokenIn";
2934
+ }, {
2935
+ readonly type: "address";
2936
+ readonly name: "tokenOut";
2937
+ }, {
2938
+ readonly type: "uint128";
2939
+ readonly name: "amountIn";
2940
+ }];
2941
+ readonly outputs: readonly [{
2942
+ readonly type: "uint128";
2943
+ readonly name: "amountOut";
2944
+ }];
2945
+ }, {
2946
+ readonly name: "quoteSwapExactAmountOut";
2947
+ readonly type: "function";
2948
+ readonly stateMutability: "view";
2949
+ readonly inputs: readonly [{
2950
+ readonly type: "address";
2951
+ readonly name: "tokenIn";
2952
+ }, {
2953
+ readonly type: "address";
2954
+ readonly name: "tokenOut";
2955
+ }, {
2956
+ readonly type: "uint128";
2957
+ readonly name: "amountOut";
2958
+ }];
2959
+ readonly outputs: readonly [{
2960
+ readonly type: "uint128";
2961
+ readonly name: "amountIn";
2962
+ }];
2963
+ }, {
2964
+ readonly name: "balanceOf";
2965
+ readonly type: "function";
2966
+ readonly stateMutability: "view";
2967
+ readonly inputs: readonly [{
2968
+ readonly type: "address";
2969
+ readonly name: "user";
2970
+ }, {
2971
+ readonly type: "address";
2972
+ readonly name: "token";
2973
+ }];
2974
+ readonly outputs: readonly [{
2975
+ readonly type: "uint128";
2976
+ }];
2977
+ }, {
2978
+ readonly name: "withdraw";
2979
+ readonly type: "function";
2980
+ readonly stateMutability: "nonpayable";
2981
+ readonly inputs: readonly [{
2982
+ readonly type: "address";
2983
+ readonly name: "token";
2984
+ }, {
2985
+ readonly type: "uint128";
2986
+ readonly name: "amount";
2987
+ }];
2988
+ readonly outputs: readonly [];
2989
+ }, {
2990
+ readonly name: "getOrder";
2991
+ readonly type: "function";
2992
+ readonly stateMutability: "view";
2993
+ readonly inputs: readonly [{
2994
+ readonly type: "uint128";
2995
+ readonly name: "orderId";
2996
+ }];
2997
+ readonly outputs: readonly [{
2998
+ readonly type: "tuple";
2999
+ readonly components: readonly [{
3000
+ readonly type: "uint128";
3001
+ readonly name: "orderId";
3002
+ }, {
3003
+ readonly type: "address";
3004
+ readonly name: "maker";
3005
+ }, {
3006
+ readonly type: "bytes32";
3007
+ readonly name: "bookKey";
3008
+ }, {
3009
+ readonly type: "bool";
3010
+ readonly name: "isBid";
3011
+ }, {
3012
+ readonly type: "int16";
3013
+ readonly name: "tick";
3014
+ }, {
3015
+ readonly type: "uint128";
3016
+ readonly name: "amount";
3017
+ }, {
3018
+ readonly type: "uint128";
3019
+ readonly name: "remaining";
3020
+ }, {
3021
+ readonly type: "uint128";
3022
+ readonly name: "prev";
3023
+ }, {
3024
+ readonly type: "uint128";
3025
+ readonly name: "next";
3026
+ }, {
3027
+ readonly type: "bool";
3028
+ readonly name: "isFlip";
3029
+ }, {
3030
+ readonly type: "int16";
3031
+ readonly name: "flipTick";
3032
+ }];
3033
+ }];
3034
+ }, {
3035
+ readonly name: "getTickLevel";
3036
+ readonly type: "function";
3037
+ readonly stateMutability: "view";
3038
+ readonly inputs: readonly [{
3039
+ readonly type: "address";
3040
+ readonly name: "base";
3041
+ }, {
3042
+ readonly type: "int16";
3043
+ readonly name: "tick";
3044
+ }, {
3045
+ readonly type: "bool";
3046
+ readonly name: "isBid";
3047
+ }];
3048
+ readonly outputs: readonly [{
3049
+ readonly type: "uint128";
3050
+ readonly name: "head";
3051
+ }, {
3052
+ readonly type: "uint128";
3053
+ readonly name: "tail";
3054
+ }, {
3055
+ readonly type: "uint128";
3056
+ readonly name: "totalLiquidity";
3057
+ }];
3058
+ }, {
3059
+ readonly name: "pairKey";
3060
+ readonly type: "function";
3061
+ readonly stateMutability: "pure";
3062
+ readonly inputs: readonly [{
3063
+ readonly type: "address";
3064
+ readonly name: "tokenA";
3065
+ }, {
3066
+ readonly type: "address";
3067
+ readonly name: "tokenB";
3068
+ }];
3069
+ readonly outputs: readonly [{
3070
+ readonly type: "bytes32";
3071
+ }];
3072
+ }, {
3073
+ readonly name: "activeOrderId";
3074
+ readonly type: "function";
3075
+ readonly stateMutability: "view";
3076
+ readonly inputs: readonly [];
3077
+ readonly outputs: readonly [{
3078
+ readonly type: "uint128";
3079
+ }];
3080
+ }, {
3081
+ readonly name: "pendingOrderId";
3082
+ readonly type: "function";
3083
+ readonly stateMutability: "view";
3084
+ readonly inputs: readonly [];
3085
+ readonly outputs: readonly [{
3086
+ readonly type: "uint128";
3087
+ }];
3088
+ }, {
3089
+ readonly name: "books";
3090
+ readonly type: "function";
3091
+ readonly stateMutability: "view";
3092
+ readonly inputs: readonly [{
3093
+ readonly type: "bytes32";
3094
+ readonly name: "pairKey";
3095
+ }];
3096
+ readonly outputs: readonly [{
3097
+ readonly type: "tuple";
3098
+ readonly components: readonly [{
3099
+ readonly type: "address";
3100
+ readonly name: "base";
3101
+ }, {
3102
+ readonly type: "address";
3103
+ readonly name: "quote";
3104
+ }, {
3105
+ readonly type: "int16";
3106
+ readonly name: "bestBidTick";
3107
+ }, {
3108
+ readonly type: "int16";
3109
+ readonly name: "bestAskTick";
3110
+ }];
3111
+ }];
3112
+ }, {
3113
+ readonly name: "MIN_TICK";
3114
+ readonly type: "function";
3115
+ readonly stateMutability: "pure";
3116
+ readonly inputs: readonly [];
3117
+ readonly outputs: readonly [{
3118
+ readonly type: "int16";
3119
+ }];
3120
+ }, {
3121
+ readonly name: "MAX_TICK";
3122
+ readonly type: "function";
3123
+ readonly stateMutability: "pure";
3124
+ readonly inputs: readonly [];
3125
+ readonly outputs: readonly [{
3126
+ readonly type: "int16";
3127
+ }];
3128
+ }, {
3129
+ readonly name: "TICK_SPACING";
3130
+ readonly type: "function";
3131
+ readonly stateMutability: "pure";
3132
+ readonly inputs: readonly [];
3133
+ readonly outputs: readonly [{
3134
+ readonly type: "int16";
3135
+ }];
3136
+ }, {
3137
+ readonly name: "PRICE_SCALE";
3138
+ readonly type: "function";
3139
+ readonly stateMutability: "pure";
3140
+ readonly inputs: readonly [];
3141
+ readonly outputs: readonly [{
3142
+ readonly type: "uint32";
3143
+ }];
3144
+ }, {
3145
+ readonly name: "MIN_PRICE";
3146
+ readonly type: "function";
3147
+ readonly stateMutability: "pure";
3148
+ readonly inputs: readonly [];
3149
+ readonly outputs: readonly [{
3150
+ readonly type: "uint32";
3151
+ }];
3152
+ }, {
3153
+ readonly name: "MAX_PRICE";
3154
+ readonly type: "function";
3155
+ readonly stateMutability: "pure";
3156
+ readonly inputs: readonly [];
3157
+ readonly outputs: readonly [{
3158
+ readonly type: "uint32";
3159
+ }];
3160
+ }, {
3161
+ readonly name: "tickToPrice";
3162
+ readonly type: "function";
3163
+ readonly stateMutability: "pure";
3164
+ readonly inputs: readonly [{
3165
+ readonly type: "int16";
3166
+ readonly name: "tick";
3167
+ }];
3168
+ readonly outputs: readonly [{
3169
+ readonly type: "uint32";
3170
+ readonly name: "price";
3171
+ }];
3172
+ }, {
3173
+ readonly name: "priceToTick";
3174
+ readonly type: "function";
3175
+ readonly stateMutability: "pure";
3176
+ readonly inputs: readonly [{
3177
+ readonly type: "uint32";
3178
+ readonly name: "price";
3179
+ }];
3180
+ readonly outputs: readonly [{
3181
+ readonly type: "int16";
3182
+ readonly name: "tick";
3183
+ }];
3184
+ }, {
3185
+ readonly name: "PairCreated";
3186
+ readonly type: "event";
3187
+ readonly inputs: readonly [{
3188
+ readonly type: "bytes32";
3189
+ readonly name: "key";
3190
+ readonly indexed: true;
3191
+ }, {
3192
+ readonly type: "address";
3193
+ readonly name: "base";
3194
+ readonly indexed: true;
3195
+ }, {
3196
+ readonly type: "address";
3197
+ readonly name: "quote";
3198
+ readonly indexed: true;
3199
+ }];
3200
+ }, {
3201
+ readonly name: "OrderPlaced";
3202
+ readonly type: "event";
3203
+ readonly inputs: readonly [{
3204
+ readonly type: "uint128";
3205
+ readonly name: "orderId";
3206
+ readonly indexed: true;
3207
+ }, {
3208
+ readonly type: "address";
3209
+ readonly name: "maker";
3210
+ readonly indexed: true;
3211
+ }, {
3212
+ readonly type: "address";
3213
+ readonly name: "token";
3214
+ readonly indexed: true;
3215
+ }, {
3216
+ readonly type: "uint128";
3217
+ readonly name: "amount";
3218
+ }, {
3219
+ readonly type: "bool";
3220
+ readonly name: "isBid";
3221
+ }, {
3222
+ readonly type: "int16";
3223
+ readonly name: "tick";
3224
+ }];
3225
+ }, {
3226
+ readonly name: "FlipOrderPlaced";
3227
+ readonly type: "event";
3228
+ readonly inputs: readonly [{
3229
+ readonly type: "uint128";
3230
+ readonly name: "orderId";
3231
+ readonly indexed: true;
3232
+ }, {
3233
+ readonly type: "address";
3234
+ readonly name: "maker";
3235
+ readonly indexed: true;
3236
+ }, {
3237
+ readonly type: "address";
3238
+ readonly name: "token";
3239
+ readonly indexed: true;
3240
+ }, {
3241
+ readonly type: "uint128";
3242
+ readonly name: "amount";
3243
+ }, {
3244
+ readonly type: "bool";
3245
+ readonly name: "isBid";
3246
+ }, {
3247
+ readonly type: "int16";
3248
+ readonly name: "tick";
3249
+ }, {
3250
+ readonly type: "int16";
3251
+ readonly name: "flipTick";
3252
+ }];
3253
+ }, {
3254
+ readonly name: "OrderFilled";
3255
+ readonly type: "event";
3256
+ readonly inputs: readonly [{
3257
+ readonly type: "uint128";
3258
+ readonly name: "orderId";
3259
+ readonly indexed: true;
3260
+ }, {
3261
+ readonly type: "address";
3262
+ readonly name: "maker";
3263
+ readonly indexed: true;
3264
+ }, {
3265
+ readonly type: "uint128";
3266
+ readonly name: "amountFilled";
3267
+ }, {
3268
+ readonly type: "bool";
3269
+ readonly name: "partialFill";
3270
+ }];
3271
+ }, {
3272
+ readonly name: "OrderFilled";
3273
+ readonly type: "event";
3274
+ readonly inputs: readonly [{
3275
+ readonly type: "uint128";
3276
+ readonly name: "orderId";
3277
+ readonly indexed: true;
3278
+ }, {
3279
+ readonly type: "address";
3280
+ readonly name: "maker";
3281
+ readonly indexed: true;
3282
+ }, {
3283
+ readonly type: "address";
3284
+ readonly name: "taker";
3285
+ readonly indexed: true;
3286
+ }, {
3287
+ readonly type: "uint128";
3288
+ readonly name: "amountFilled";
3289
+ }, {
3290
+ readonly type: "bool";
3291
+ readonly name: "partialFill";
3292
+ }];
3293
+ }, {
3294
+ readonly name: "OrderCancelled";
3295
+ readonly type: "event";
3296
+ readonly inputs: readonly [{
3297
+ readonly type: "uint128";
3298
+ readonly name: "orderId";
3299
+ readonly indexed: true;
3300
+ }];
3301
+ }, {
3302
+ readonly name: "Unauthorized";
3303
+ readonly type: "error";
3304
+ readonly inputs: readonly [];
3305
+ }, {
3306
+ readonly name: "PairDoesNotExist";
3307
+ readonly type: "error";
3308
+ readonly inputs: readonly [];
3309
+ }, {
3310
+ readonly name: "PairAlreadyExists";
3311
+ readonly type: "error";
3312
+ readonly inputs: readonly [];
3313
+ }, {
3314
+ readonly name: "OrderDoesNotExist";
3315
+ readonly type: "error";
3316
+ readonly inputs: readonly [];
3317
+ }, {
3318
+ readonly name: "IdenticalTokens";
3319
+ readonly type: "error";
3320
+ readonly inputs: readonly [];
3321
+ }, {
3322
+ readonly name: "InvalidToken";
3323
+ readonly type: "error";
3324
+ readonly inputs: readonly [];
3325
+ }, {
3326
+ readonly name: "TickOutOfBounds";
3327
+ readonly type: "error";
3328
+ readonly inputs: readonly [{
3329
+ readonly type: "int16";
3330
+ readonly name: "tick";
3331
+ }];
3332
+ }, {
3333
+ readonly name: "InvalidTick";
3334
+ readonly type: "error";
3335
+ readonly inputs: readonly [];
3336
+ }, {
3337
+ readonly name: "InvalidFlipTick";
3338
+ readonly type: "error";
3339
+ readonly inputs: readonly [];
3340
+ }, {
3341
+ readonly name: "InsufficientBalance";
3342
+ readonly type: "error";
3343
+ readonly inputs: readonly [];
3344
+ }, {
3345
+ readonly name: "InsufficientLiquidity";
3346
+ readonly type: "error";
3347
+ readonly inputs: readonly [];
3348
+ }, {
3349
+ readonly name: "InsufficientOutput";
3350
+ readonly type: "error";
3351
+ readonly inputs: readonly [];
3352
+ }, {
3353
+ readonly name: "MaxInputExceeded";
3354
+ readonly type: "error";
3355
+ readonly inputs: readonly [];
3356
+ }, {
3357
+ readonly name: "BelowMinimumOrderSize";
3358
+ readonly type: "error";
3359
+ readonly inputs: readonly [{
3360
+ readonly type: "uint128";
3361
+ readonly name: "amount";
3362
+ }];
3363
+ }, {
3364
+ readonly name: "InvalidBaseToken";
3365
+ readonly type: "error";
3366
+ readonly inputs: readonly [];
3367
+ }], "FlipOrderPlaced">;
3368
+ }
3369
+ /**
3370
+ * Places a flip order that automatically flips when filled.
3371
+ *
3372
+ * @example
3373
+ * ```ts
3374
+ * import { createClient, http, parseUnits } from 'viem'
3375
+ * import { privateKeyToAccount } from 'viem/accounts'
3376
+ * import { tempo } from 'tempo.ts/chains'
3377
+ * import { Actions, Tick } from 'tempo.ts/viem'
3378
+ *
3379
+ * const client = createClient({
3380
+ * account: privateKeyToAccount('0x...'),
3381
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3382
+ * transport: http(),
3383
+ * })
3384
+ *
3385
+ * const result = await Actions.dex.placeFlipSync(client, {
3386
+ * amount: parseUnits('100', 6),
3387
+ * flipTick: Tick.fromPrice('1.01'),
3388
+ * tick: Tick.fromPrice('0.99'),
3389
+ * token: '0x20c...11',
3390
+ * type: 'buy',
3391
+ * })
3392
+ * ```
3393
+ *
3394
+ * @param client - Client.
3395
+ * @param parameters - Parameters.
3396
+ * @returns The transaction receipt and event data.
3397
+ */
3398
+ export declare function placeFlipSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: placeFlipSync.Parameters<chain, account>): Promise<placeFlipSync.ReturnValue>;
3399
+ export declare namespace placeFlipSync {
3400
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = placeFlip.Parameters<chain, account>;
3401
+ type Args = placeFlip.Args;
3402
+ type ReturnValue = Compute<GetEventArgs<typeof Abis.stablecoinExchange, 'FlipOrderPlaced', {
3403
+ IndexedOnly: false;
3404
+ Required: true;
3405
+ }> & {
3406
+ /** Transaction receipt. */
3407
+ receipt: TransactionReceipt;
3408
+ }>;
3409
+ type ErrorType = BaseErrorType;
3410
+ }
3411
+ /**
3412
+ * Places a limit order on the orderbook.
3413
+ *
3414
+ * @example
3415
+ * ```ts
3416
+ * import { createClient, http, parseUnits } from 'viem'
3417
+ * import { privateKeyToAccount } from 'viem/accounts'
3418
+ * import { tempo } from 'tempo.ts/chains'
3419
+ * import { Actions, Tick } from 'tempo.ts/viem'
3420
+ *
3421
+ * const client = createClient({
3422
+ * account: privateKeyToAccount('0x...'),
3423
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3424
+ * transport: http(),
3425
+ * })
3426
+ *
3427
+ * const result = await Actions.dex.placeSync(client, {
3428
+ * amount: parseUnits('100', 6),
3429
+ * tick: Tick.fromPrice('0.99'),
3430
+ * token: '0x20c...11',
3431
+ * type: 'buy',
3432
+ * })
3433
+ * ```
3434
+ *
3435
+ * @param client - Client.
3436
+ * @param parameters - Parameters.
3437
+ * @returns The transaction receipt and event data.
3438
+ */
3439
+ export declare function placeSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: placeSync.Parameters<chain, account>): Promise<placeSync.ReturnValue>;
3440
+ export declare namespace placeSync {
3441
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = place.Parameters<chain, account>;
3442
+ type Args = place.Args;
3443
+ type ReturnValue = Compute<GetEventArgs<typeof Abis.stablecoinExchange, 'OrderPlaced', {
3444
+ IndexedOnly: false;
3445
+ Required: true;
3446
+ }> & {
3447
+ /** Transaction receipt. */
3448
+ receipt: TransactionReceipt;
3449
+ }>;
3450
+ type ErrorType = BaseErrorType;
3451
+ }
3452
+ /**
3453
+ * Sells a specific amount of tokens.
3454
+ *
3455
+ * @example
3456
+ * ```ts
3457
+ * import { createClient, http, parseUnits } from 'viem'
3458
+ * import { privateKeyToAccount } from 'viem/accounts'
3459
+ * import { tempo } from 'tempo.ts/chains'
3460
+ * import { Actions } from 'tempo.ts/viem'
3461
+ *
3462
+ * const client = createClient({
3463
+ * account: privateKeyToAccount('0x...'),
3464
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3465
+ * transport: http(),
3466
+ * })
3467
+ *
3468
+ * const hash = await Actions.dex.sell(client, {
3469
+ * amountIn: parseUnits('100', 6),
3470
+ * minAmountOut: parseUnits('95', 6),
3471
+ * tokenIn: '0x20c...11',
3472
+ * tokenOut: '0x20c...20',
3473
+ * })
3474
+ * ```
3475
+ *
3476
+ * @param client - Client.
3477
+ * @param parameters - Parameters.
3478
+ * @returns The transaction hash.
3479
+ */
3480
+ export declare function sell<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: sell.Parameters<chain, account>): Promise<sell.ReturnValue>;
3481
+ export declare namespace sell {
3482
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
3483
+ type Args = {
3484
+ /** Amount of tokenIn to sell. */
3485
+ amountIn: bigint;
3486
+ /** Minimum amount of tokenOut to receive. */
3487
+ minAmountOut: bigint;
3488
+ /** Address of the token to sell. */
3489
+ tokenIn: Address;
3490
+ /** Address of the token to receive. */
3491
+ tokenOut: Address;
3492
+ };
3493
+ type ReturnValue = WriteContractReturnType;
3494
+ type ErrorType = BaseErrorType;
3495
+ /** @internal */
3496
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: sell.Parameters<chain, account>): Promise<ReturnType<action>>;
3497
+ /**
3498
+ * Defines a call to the `swapExactAmountIn` function.
3499
+ *
3500
+ * Can be passed as a parameter to:
3501
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
3502
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
3503
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
3504
+ *
3505
+ * @example
3506
+ * ```ts
3507
+ * import { createClient, http, parseUnits, walletActions } from 'viem'
3508
+ * import { tempo } from 'tempo.ts/chains'
3509
+ * import { Actions } from 'tempo.ts/viem'
3510
+ *
3511
+ * const client = createClient({
3512
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3513
+ * transport: http(),
3514
+ * }).extend(walletActions)
3515
+ *
3516
+ * const { result } = await client.sendCalls({
3517
+ * calls: [
3518
+ * Actions.dex.sell.call({
3519
+ * amountIn: parseUnits('100', 6),
3520
+ * minAmountOut: parseUnits('95', 6),
3521
+ * tokenIn: '0x20c0...beef',
3522
+ * tokenOut: '0x20c0...babe',
3523
+ * }),
3524
+ * ]
3525
+ * })
3526
+ * ```
3527
+ *
3528
+ * @param args - Arguments.
3529
+ * @returns The call.
3530
+ */
3531
+ function call(args: Args): {
3532
+ abi: [{
3533
+ readonly name: "swapExactAmountIn";
3534
+ readonly type: "function";
3535
+ readonly stateMutability: "nonpayable";
3536
+ readonly inputs: readonly [{
3537
+ readonly type: "address";
3538
+ readonly name: "tokenIn";
3539
+ }, {
3540
+ readonly type: "address";
3541
+ readonly name: "tokenOut";
3542
+ }, {
3543
+ readonly type: "uint128";
3544
+ readonly name: "amountIn";
3545
+ }, {
3546
+ readonly type: "uint128";
3547
+ readonly name: "minAmountOut";
3548
+ }];
3549
+ readonly outputs: readonly [{
3550
+ readonly type: "uint128";
3551
+ readonly name: "amountOut";
3552
+ }];
3553
+ }];
3554
+ functionName: "swapExactAmountIn";
3555
+ } & {
3556
+ args: readonly [tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn: bigint, minAmountOut: bigint];
3557
+ } & {
3558
+ address: Address;
3559
+ } & {
3560
+ data: import("../../index.js").Hex;
3561
+ to: Address;
3562
+ };
3563
+ }
3564
+ /**
3565
+ * Sells a specific amount of tokens.
3566
+ *
3567
+ * @example
3568
+ * ```ts
3569
+ * import { createClient, http, parseUnits } from 'viem'
3570
+ * import { privateKeyToAccount } from 'viem/accounts'
3571
+ * import { tempo } from 'tempo.ts/chains'
3572
+ * import { Actions } from 'tempo.ts/viem'
3573
+ *
3574
+ * const client = createClient({
3575
+ * account: privateKeyToAccount('0x...'),
3576
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3577
+ * transport: http(),
3578
+ * })
3579
+ *
3580
+ * const result = await Actions.dex.sellSync(client, {
3581
+ * amountIn: parseUnits('100', 6),
3582
+ * minAmountOut: parseUnits('95', 6),
3583
+ * tokenIn: '0x20c...11',
3584
+ * tokenOut: '0x20c...20',
3585
+ * })
3586
+ * ```
3587
+ *
3588
+ * @param client - Client.
3589
+ * @param parameters - Parameters.
3590
+ * @returns The transaction receipt.
3591
+ */
3592
+ export declare function sellSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: sellSync.Parameters<chain, account>): Promise<sellSync.ReturnValue>;
3593
+ export declare namespace sellSync {
3594
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = sell.Parameters<chain, account>;
3595
+ type Args = sell.Args;
3596
+ type ReturnValue = Compute<{
3597
+ /** Transaction receipt. */
3598
+ receipt: TransactionReceipt;
3599
+ }>;
3600
+ type ErrorType = BaseErrorType;
3601
+ }
3602
+ /**
3603
+ * Watches for flip order placed events.
3604
+ *
3605
+ * @example
3606
+ * ```ts
3607
+ * import { createClient, http } from 'viem'
3608
+ * import { tempo } from 'tempo.ts/chains'
3609
+ * import { Actions } from 'tempo.ts/viem'
3610
+ *
3611
+ * const client = createClient({
3612
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3613
+ * transport: http(),
3614
+ * })
3615
+ *
3616
+ * const unwatch = Actions.dex.watchFlipOrderPlaced(client, {
3617
+ * onFlipOrderPlaced: (args, log) => {
3618
+ * console.log('Flip order placed:', args)
3619
+ * },
3620
+ * })
3621
+ * ```
3622
+ *
3623
+ * @param client - Client.
3624
+ * @param parameters - Parameters.
3625
+ * @returns A function to unsubscribe from the event.
3626
+ */
3627
+ export declare function watchFlipOrderPlaced<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchFlipOrderPlaced.Parameters): import("../../actions/public/watchContractEvent.js").WatchContractEventReturnType;
3628
+ export declare namespace watchFlipOrderPlaced {
3629
+ type Args = GetEventArgs<typeof Abis.stablecoinExchange, 'FlipOrderPlaced', {
3630
+ IndexedOnly: false;
3631
+ Required: true;
3632
+ }>;
3633
+ type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.stablecoinExchange, 'FlipOrderPlaced'>, true>;
3634
+ type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.stablecoinExchange, 'FlipOrderPlaced', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
3635
+ /** Address of the maker to filter events. */
3636
+ maker?: Address | undefined;
3637
+ /** Callback to invoke when a flip order is placed. */
3638
+ onFlipOrderPlaced: (args: Args, log: Log) => void;
3639
+ /** Address of the token to filter events. */
3640
+ token?: Address | undefined;
3641
+ };
3642
+ }
3643
+ /**
3644
+ * Watches for order cancelled events.
3645
+ *
3646
+ * @example
3647
+ * ```ts
3648
+ * import { createClient, http } from 'viem'
3649
+ * import { tempo } from 'tempo.ts/chains'
3650
+ * import { Actions } from 'tempo.ts/viem'
3651
+ *
3652
+ * const client = createClient({
3653
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3654
+ * transport: http(),
3655
+ * })
3656
+ *
3657
+ * const unwatch = Actions.dex.watchOrderCancelled(client, {
3658
+ * onOrderCancelled: (args, log) => {
3659
+ * console.log('Order cancelled:', args)
3660
+ * },
3661
+ * })
3662
+ * ```
3663
+ *
3664
+ * @param client - Client.
3665
+ * @param parameters - Parameters.
3666
+ * @returns A function to unsubscribe from the event.
3667
+ */
3668
+ export declare function watchOrderCancelled<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchOrderCancelled.Parameters): import("../../actions/public/watchContractEvent.js").WatchContractEventReturnType;
3669
+ export declare namespace watchOrderCancelled {
3670
+ type Args = GetEventArgs<typeof Abis.stablecoinExchange, 'OrderCancelled', {
3671
+ IndexedOnly: false;
3672
+ Required: true;
3673
+ }>;
3674
+ type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.stablecoinExchange, 'OrderCancelled'>, true>;
3675
+ type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.stablecoinExchange, 'OrderCancelled', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
3676
+ /** Callback to invoke when an order is cancelled. */
3677
+ onOrderCancelled: (args: Args, log: Log) => void;
3678
+ /** Order ID to filter events. */
3679
+ orderId?: bigint | undefined;
3680
+ };
3681
+ }
3682
+ /**
3683
+ * Watches for order filled events.
3684
+ *
3685
+ * @example
3686
+ * ```ts
3687
+ * import { createClient, http } from 'viem'
3688
+ * import { tempo } from 'tempo.ts/chains'
3689
+ * import { Actions } from 'tempo.ts/viem'
3690
+ *
3691
+ * const client = createClient({
3692
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3693
+ * transport: http(),
3694
+ * })
3695
+ *
3696
+ * const unwatch = Actions.dex.watchOrderFilled(client, {
3697
+ * onOrderFilled: (args, log) => {
3698
+ * console.log('Order filled:', args)
3699
+ * },
3700
+ * })
3701
+ * ```
3702
+ *
3703
+ * @param client - Client.
3704
+ * @param parameters - Parameters.
3705
+ * @returns A function to unsubscribe from the event.
3706
+ */
3707
+ export declare function watchOrderFilled<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchOrderFilled.Parameters): import("../../actions/public/watchContractEvent.js").WatchContractEventReturnType;
3708
+ export declare namespace watchOrderFilled {
3709
+ type Args = GetEventArgs<typeof Abis.stablecoinExchange, 'OrderFilled', {
3710
+ IndexedOnly: false;
3711
+ Required: true;
3712
+ }>;
3713
+ type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.stablecoinExchange, 'OrderFilled'>, true>;
3714
+ type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.stablecoinExchange, 'OrderFilled', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
3715
+ /** Address of the maker to filter events. */
3716
+ maker?: Address | undefined;
3717
+ /** Callback to invoke when an order is filled. */
3718
+ onOrderFilled: (args: Args, log: Log) => void;
3719
+ /** Order ID to filter events. */
3720
+ orderId?: bigint | undefined;
3721
+ /** Address of the taker to filter events. */
3722
+ taker?: Address | undefined;
3723
+ };
3724
+ }
3725
+ /**
3726
+ * Watches for order placed events.
3727
+ *
3728
+ * @example
3729
+ * ```ts
3730
+ * import { createClient, http } from 'viem'
3731
+ * import { tempo } from 'tempo.ts/chains'
3732
+ * import { Actions } from 'tempo.ts/viem'
3733
+ *
3734
+ * const client = createClient({
3735
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3736
+ * transport: http(),
3737
+ * })
3738
+ *
3739
+ * const unwatch = Actions.dex.watchOrderPlaced(client, {
3740
+ * onOrderPlaced: (args, log) => {
3741
+ * console.log('Order placed:', args)
3742
+ * },
3743
+ * })
3744
+ * ```
3745
+ *
3746
+ * @param client - Client.
3747
+ * @param parameters - Parameters.
3748
+ * @returns A function to unsubscribe from the event.
3749
+ */
3750
+ export declare function watchOrderPlaced<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchOrderPlaced.Parameters): import("../../actions/public/watchContractEvent.js").WatchContractEventReturnType;
3751
+ export declare namespace watchOrderPlaced {
3752
+ type Args = GetEventArgs<typeof Abis.stablecoinExchange, 'OrderPlaced', {
3753
+ IndexedOnly: false;
3754
+ Required: true;
3755
+ }>;
3756
+ type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.stablecoinExchange, 'OrderPlaced'>, true>;
3757
+ type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.stablecoinExchange, 'OrderPlaced', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
3758
+ /** Address of the maker to filter events. */
3759
+ maker?: Address | undefined;
3760
+ /** Callback to invoke when an order is placed. */
3761
+ onOrderPlaced: (args: Args, log: Log) => void;
3762
+ /** Address of the token to filter events. */
3763
+ token?: Address | undefined;
3764
+ };
3765
+ }
3766
+ /**
3767
+ * Withdraws tokens from the DEX to the caller's wallet.
3768
+ *
3769
+ * @example
3770
+ * ```ts
3771
+ * import { createClient, http } from 'viem'
3772
+ * import { privateKeyToAccount } from 'viem/accounts'
3773
+ * import { tempo } from 'tempo.ts/chains'
3774
+ * import { Actions } from 'tempo.ts/viem'
3775
+ *
3776
+ * const client = createClient({
3777
+ * account: privateKeyToAccount('0x...'),
3778
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3779
+ * transport: http(),
3780
+ * })
3781
+ *
3782
+ * const hash = await Actions.dex.withdraw(client, {
3783
+ * amount: 100n,
3784
+ * token: '0x20c...11',
3785
+ * })
3786
+ * ```
3787
+ *
3788
+ * @param client - Client.
3789
+ * @param parameters - Parameters.
3790
+ * @returns The transaction hash.
3791
+ */
3792
+ export declare function withdraw<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: withdraw.Parameters<chain, account>): Promise<withdraw.ReturnValue>;
3793
+ export declare namespace withdraw {
3794
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
3795
+ type Args = {
3796
+ /** Amount to withdraw. */
3797
+ amount: bigint;
3798
+ /** Address of the token to withdraw. */
3799
+ token: Address;
3800
+ };
3801
+ type ReturnValue = WriteContractReturnType;
3802
+ type ErrorType = BaseErrorType;
3803
+ /** @internal */
3804
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: withdraw.Parameters<chain, account>): Promise<ReturnType<action>>;
3805
+ /**
3806
+ * Defines a call to the `withdraw` function.
3807
+ *
3808
+ * Can be passed as a parameter to:
3809
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
3810
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
3811
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
3812
+ *
3813
+ * @example
3814
+ * ```ts
3815
+ * import { createClient, http, parseUnits, walletActions } from 'viem'
3816
+ * import { tempo } from 'tempo.ts/chains'
3817
+ * import { Actions } from 'tempo.ts/viem'
3818
+ *
3819
+ * const client = createClient({
3820
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3821
+ * transport: http(),
3822
+ * }).extend(walletActions)
3823
+ *
3824
+ * const { result } = await client.sendCalls({
3825
+ * calls: [
3826
+ * Actions.dex.withdraw.call({
3827
+ * amount: parseUnits('100', 6),
3828
+ * token: '0x20c0...beef',
3829
+ * }),
3830
+ * ]
3831
+ * })
3832
+ * ```
3833
+ *
3834
+ * @param args - Arguments.
3835
+ * @returns The call.
3836
+ */
3837
+ function call(args: Args): {
3838
+ abi: [{
3839
+ readonly name: "withdraw";
3840
+ readonly type: "function";
3841
+ readonly stateMutability: "nonpayable";
3842
+ readonly inputs: readonly [{
3843
+ readonly type: "address";
3844
+ readonly name: "token";
3845
+ }, {
3846
+ readonly type: "uint128";
3847
+ readonly name: "amount";
3848
+ }];
3849
+ readonly outputs: readonly [];
3850
+ }];
3851
+ functionName: "withdraw";
3852
+ } & {
3853
+ args: readonly [token: `0x${string}`, amount: bigint];
3854
+ } & {
3855
+ address: Address;
3856
+ } & {
3857
+ data: import("../../index.js").Hex;
3858
+ to: Address;
3859
+ };
3860
+ }
3861
+ /**
3862
+ * Withdraws tokens from the DEX to the caller's wallet.
3863
+ *
3864
+ * @example
3865
+ * ```ts
3866
+ * import { createClient, http } from 'viem'
3867
+ * import { privateKeyToAccount } from 'viem/accounts'
3868
+ * import { tempo } from 'tempo.ts/chains'
3869
+ * import { Actions } from 'tempo.ts/viem'
3870
+ *
3871
+ * const client = createClient({
3872
+ * account: privateKeyToAccount('0x...'),
3873
+ * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
3874
+ * transport: http(),
3875
+ * })
3876
+ *
3877
+ * const result = await Actions.dex.withdrawSync(client, {
3878
+ * amount: 100n,
3879
+ * token: '0x20c...11',
3880
+ * })
3881
+ * ```
3882
+ *
3883
+ * @param client - Client.
3884
+ * @param parameters - Parameters.
3885
+ * @returns The transaction receipt.
3886
+ */
3887
+ export declare function withdrawSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: withdrawSync.Parameters<chain, account>): Promise<withdrawSync.ReturnValue>;
3888
+ export declare namespace withdrawSync {
3889
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = withdraw.Parameters<chain, account>;
3890
+ type Args = withdraw.Args;
3891
+ type ReturnValue = Compute<{
3892
+ /** Transaction receipt. */
3893
+ receipt: TransactionReceipt;
3894
+ }>;
3895
+ type ErrorType = BaseErrorType;
3896
+ }
3897
+ export {};
3898
+ //# sourceMappingURL=dex.d.ts.map