@otim/utils 0.0.2-development.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 (421) hide show
  1. package/LICENSE +201 -0
  2. package/dist/api/api.d.mts +18 -0
  3. package/dist/api/api.d.ts +18 -0
  4. package/dist/api/api.d.ts.map +1 -0
  5. package/dist/api/core/error.d.mts +74 -0
  6. package/dist/api/core/error.d.ts +74 -0
  7. package/dist/api/core/error.d.ts.map +1 -0
  8. package/dist/api/core/index.d.mts +4 -0
  9. package/dist/api/core/index.d.ts +4 -0
  10. package/dist/api/core/index.d.ts.map +1 -0
  11. package/dist/api/core/instance.d.mts +13 -0
  12. package/dist/api/core/instance.d.ts +13 -0
  13. package/dist/api/core/instance.d.ts.map +1 -0
  14. package/dist/api/core/service.d.mts +51 -0
  15. package/dist/api/core/service.d.ts +51 -0
  16. package/dist/api/core/service.d.ts.map +1 -0
  17. package/dist/api/index.d.mts +7 -0
  18. package/dist/api/index.d.ts +7 -0
  19. package/dist/api/index.d.ts.map +1 -0
  20. package/dist/api/index.js +2061 -0
  21. package/dist/api/index.js.map +7 -0
  22. package/dist/api/index.mjs +2030 -0
  23. package/dist/api/index.mjs.map +7 -0
  24. package/dist/api/schemas/account.d.mts +44 -0
  25. package/dist/api/schemas/account.d.ts +44 -0
  26. package/dist/api/schemas/account.d.ts.map +1 -0
  27. package/dist/api/schemas/activity.d.mts +277 -0
  28. package/dist/api/schemas/activity.d.ts +277 -0
  29. package/dist/api/schemas/activity.d.ts.map +1 -0
  30. package/dist/api/schemas/auth.d.mts +127 -0
  31. package/dist/api/schemas/auth.d.ts +127 -0
  32. package/dist/api/schemas/auth.d.ts.map +1 -0
  33. package/dist/api/schemas/chain.d.mts +15 -0
  34. package/dist/api/schemas/chain.d.ts +15 -0
  35. package/dist/api/schemas/chain.d.ts.map +1 -0
  36. package/dist/api/schemas/config.d.mts +33 -0
  37. package/dist/api/schemas/config.d.ts +33 -0
  38. package/dist/api/schemas/config.d.ts.map +1 -0
  39. package/dist/api/schemas/contacts.d.mts +27 -0
  40. package/dist/api/schemas/contacts.d.ts +27 -0
  41. package/dist/api/schemas/contacts.d.ts.map +1 -0
  42. package/dist/api/schemas/index.d.mts +12 -0
  43. package/dist/api/schemas/index.d.ts +12 -0
  44. package/dist/api/schemas/index.d.ts.map +1 -0
  45. package/dist/api/schemas/instruction.d.mts +446 -0
  46. package/dist/api/schemas/instruction.d.ts +446 -0
  47. package/dist/api/schemas/instruction.d.ts.map +1 -0
  48. package/dist/api/schemas/integration.d.mts +166 -0
  49. package/dist/api/schemas/integration.d.ts +166 -0
  50. package/dist/api/schemas/integration.d.ts.map +1 -0
  51. package/dist/api/schemas/operating-account.d.mts +11 -0
  52. package/dist/api/schemas/operating-account.d.ts +11 -0
  53. package/dist/api/schemas/operating-account.d.ts.map +1 -0
  54. package/dist/api/schemas/payments.d.mts +196 -0
  55. package/dist/api/schemas/payments.d.ts +196 -0
  56. package/dist/api/schemas/payments.d.ts.map +1 -0
  57. package/dist/api/schemas/transaction.d.mts +37 -0
  58. package/dist/api/schemas/transaction.d.ts +37 -0
  59. package/dist/api/schemas/transaction.d.ts.map +1 -0
  60. package/dist/api/services/account.d.mts +8 -0
  61. package/dist/api/services/account.d.ts +8 -0
  62. package/dist/api/services/account.d.ts.map +1 -0
  63. package/dist/api/services/activity.d.mts +7 -0
  64. package/dist/api/services/activity.d.ts +7 -0
  65. package/dist/api/services/activity.d.ts.map +1 -0
  66. package/dist/api/services/auth.d.mts +12 -0
  67. package/dist/api/services/auth.d.ts +12 -0
  68. package/dist/api/services/auth.d.ts.map +1 -0
  69. package/dist/api/services/base.d.mts +10 -0
  70. package/dist/api/services/base.d.ts +10 -0
  71. package/dist/api/services/base.d.ts.map +1 -0
  72. package/dist/api/services/config.d.mts +10 -0
  73. package/dist/api/services/config.d.ts +10 -0
  74. package/dist/api/services/config.d.ts.map +1 -0
  75. package/dist/api/services/contacts.d.mts +8 -0
  76. package/dist/api/services/contacts.d.ts +8 -0
  77. package/dist/api/services/contacts.d.ts.map +1 -0
  78. package/dist/api/services/developer.d.mts +6 -0
  79. package/dist/api/services/developer.d.ts +6 -0
  80. package/dist/api/services/developer.d.ts.map +1 -0
  81. package/dist/api/services/index.d.mts +13 -0
  82. package/dist/api/services/index.d.ts +13 -0
  83. package/dist/api/services/index.d.ts.map +1 -0
  84. package/dist/api/services/instruction.d.mts +12 -0
  85. package/dist/api/services/instruction.d.ts +12 -0
  86. package/dist/api/services/instruction.d.ts.map +1 -0
  87. package/dist/api/services/integration.d.mts +8 -0
  88. package/dist/api/services/integration.d.ts +8 -0
  89. package/dist/api/services/integration.d.ts.map +1 -0
  90. package/dist/api/services/operating-account.d.mts +8 -0
  91. package/dist/api/services/operating-account.d.ts +8 -0
  92. package/dist/api/services/operating-account.d.ts.map +1 -0
  93. package/dist/api/services/payments.d.mts +13 -0
  94. package/dist/api/services/payments.d.ts +13 -0
  95. package/dist/api/services/payments.d.ts.map +1 -0
  96. package/dist/api/services/transaction.d.mts +8 -0
  97. package/dist/api/services/transaction.d.ts +8 -0
  98. package/dist/api/services/transaction.d.ts.map +1 -0
  99. package/dist/api/services/uniswap-token-list-service.d.mts +66 -0
  100. package/dist/api/services/uniswap-token-list-service.d.ts +66 -0
  101. package/dist/api/services/uniswap-token-list-service.d.ts.map +1 -0
  102. package/dist/api/utils/index.d.mts +2 -0
  103. package/dist/api/utils/index.d.ts +2 -0
  104. package/dist/api/utils/index.d.ts.map +1 -0
  105. package/dist/api/utils/pagination.d.mts +32 -0
  106. package/dist/api/utils/pagination.d.ts +32 -0
  107. package/dist/api/utils/pagination.d.ts.map +1 -0
  108. package/dist/chains/config/all-chains.d.mts +4243 -0
  109. package/dist/chains/config/all-chains.d.ts +4243 -0
  110. package/dist/chains/config/all-chains.d.ts.map +1 -0
  111. package/dist/chains/config/custom-chains.d.mts +49 -0
  112. package/dist/chains/config/custom-chains.d.ts +49 -0
  113. package/dist/chains/config/custom-chains.d.ts.map +1 -0
  114. package/dist/chains/config/mainnet-chains.d.mts +1063 -0
  115. package/dist/chains/config/mainnet-chains.d.ts +1063 -0
  116. package/dist/chains/config/mainnet-chains.d.ts.map +1 -0
  117. package/dist/chains/config/supported-chains.d.mts +2172 -0
  118. package/dist/chains/config/supported-chains.d.ts +2172 -0
  119. package/dist/chains/config/supported-chains.d.ts.map +1 -0
  120. package/dist/chains/config/testnet-chains.d.mts +1110 -0
  121. package/dist/chains/config/testnet-chains.d.ts +1110 -0
  122. package/dist/chains/config/testnet-chains.d.ts.map +1 -0
  123. package/dist/chains/index.d.mts +16 -0
  124. package/dist/chains/index.d.ts +16 -0
  125. package/dist/chains/index.d.ts.map +1 -0
  126. package/dist/chains/index.js +490 -0
  127. package/dist/chains/index.js.map +7 -0
  128. package/dist/chains/index.mjs +505 -0
  129. package/dist/chains/index.mjs.map +7 -0
  130. package/dist/chains/lambda/chain-mapping.d.mts +55 -0
  131. package/dist/chains/lambda/chain-mapping.d.ts +55 -0
  132. package/dist/chains/lambda/chain-mapping.d.ts.map +1 -0
  133. package/dist/chains/lambda/index.d.mts +2 -0
  134. package/dist/chains/lambda/index.d.ts +2 -0
  135. package/dist/chains/lambda/index.d.ts.map +1 -0
  136. package/dist/chains/tokens/chain-tokens.d.mts +6 -0
  137. package/dist/chains/tokens/chain-tokens.d.ts +6 -0
  138. package/dist/chains/tokens/chain-tokens.d.ts.map +1 -0
  139. package/dist/chains/tokens/token-addresses.d.mts +8 -0
  140. package/dist/chains/tokens/token-addresses.d.ts +8 -0
  141. package/dist/chains/tokens/token-addresses.d.ts.map +1 -0
  142. package/dist/chains/tokens/token-metadata.d.mts +5 -0
  143. package/dist/chains/tokens/token-metadata.d.ts +5 -0
  144. package/dist/chains/tokens/token-metadata.d.ts.map +1 -0
  145. package/dist/chains/types.d.mts +23 -0
  146. package/dist/chains/types.d.ts +23 -0
  147. package/dist/chains/types.d.ts.map +1 -0
  148. package/dist/chains/utils/filter-tokens.d.mts +3 -0
  149. package/dist/chains/utils/filter-tokens.d.ts +3 -0
  150. package/dist/chains/utils/filter-tokens.d.ts.map +1 -0
  151. package/dist/chains/utils/stablecoin.d.mts +7 -0
  152. package/dist/chains/utils/stablecoin.d.ts +7 -0
  153. package/dist/chains/utils/stablecoin.d.ts.map +1 -0
  154. package/dist/chains/utils/token-maps.d.mts +10 -0
  155. package/dist/chains/utils/token-maps.d.ts +10 -0
  156. package/dist/chains/utils/token-maps.d.ts.map +1 -0
  157. package/dist/constants.d.mts +31 -0
  158. package/dist/constants.d.ts +31 -0
  159. package/dist/constants.d.ts.map +1 -0
  160. package/dist/constants.js +47 -0
  161. package/dist/constants.js.map +7 -0
  162. package/dist/constants.mjs +26 -0
  163. package/dist/constants.mjs.map +7 -0
  164. package/dist/env.d.mts +17 -0
  165. package/dist/env.d.ts +17 -0
  166. package/dist/env.d.ts.map +1 -0
  167. package/dist/formatters/index.d.mts +2 -0
  168. package/dist/formatters/index.d.ts +2 -0
  169. package/dist/formatters/index.d.ts.map +1 -0
  170. package/dist/formatters/index.js +19 -0
  171. package/dist/formatters/index.js.map +7 -0
  172. package/dist/formatters/index.mjs +1 -0
  173. package/dist/formatters/index.mjs.map +7 -0
  174. package/dist/helpers/address.d.mts +7 -0
  175. package/dist/helpers/address.d.ts +7 -0
  176. package/dist/helpers/address.d.ts.map +1 -0
  177. package/dist/helpers/blockchain.d.mts +41 -0
  178. package/dist/helpers/blockchain.d.ts +41 -0
  179. package/dist/helpers/blockchain.d.ts.map +1 -0
  180. package/dist/helpers/date.d.mts +70 -0
  181. package/dist/helpers/date.d.ts +70 -0
  182. package/dist/helpers/date.d.ts.map +1 -0
  183. package/dist/helpers/datetime.d.mts +57 -0
  184. package/dist/helpers/datetime.d.ts +57 -0
  185. package/dist/helpers/datetime.d.ts.map +1 -0
  186. package/dist/helpers/domain.d.mts +2 -0
  187. package/dist/helpers/domain.d.ts +2 -0
  188. package/dist/helpers/domain.d.ts.map +1 -0
  189. package/dist/helpers/index.d.mts +19 -0
  190. package/dist/helpers/index.d.ts +19 -0
  191. package/dist/helpers/index.d.ts.map +1 -0
  192. package/dist/helpers/index.js +1322 -0
  193. package/dist/helpers/index.js.map +7 -0
  194. package/dist/helpers/index.mjs +1294 -0
  195. package/dist/helpers/index.mjs.map +7 -0
  196. package/dist/helpers/intl.d.mts +20 -0
  197. package/dist/helpers/intl.d.ts +20 -0
  198. package/dist/helpers/intl.d.ts.map +1 -0
  199. package/dist/helpers/logger.d.mts +26 -0
  200. package/dist/helpers/logger.d.ts +26 -0
  201. package/dist/helpers/logger.d.ts.map +1 -0
  202. package/dist/helpers/mask-options.d.mts +10 -0
  203. package/dist/helpers/mask-options.d.ts +10 -0
  204. package/dist/helpers/mask-options.d.ts.map +1 -0
  205. package/dist/helpers/num-formatter.d.mts +3 -0
  206. package/dist/helpers/num-formatter.d.ts +3 -0
  207. package/dist/helpers/num-formatter.d.ts.map +1 -0
  208. package/dist/helpers/polling.d.mts +39 -0
  209. package/dist/helpers/polling.d.ts +39 -0
  210. package/dist/helpers/polling.d.ts.map +1 -0
  211. package/dist/helpers/random.d.mts +10 -0
  212. package/dist/helpers/random.d.ts +10 -0
  213. package/dist/helpers/random.d.ts.map +1 -0
  214. package/dist/helpers/sdk-loader.d.mts +25 -0
  215. package/dist/helpers/sdk-loader.d.ts +25 -0
  216. package/dist/helpers/sdk-loader.d.ts.map +1 -0
  217. package/dist/helpers/signatures.d.mts +17 -0
  218. package/dist/helpers/signatures.d.ts +17 -0
  219. package/dist/helpers/signatures.d.ts.map +1 -0
  220. package/dist/helpers/string.d.mts +17 -0
  221. package/dist/helpers/string.d.ts +17 -0
  222. package/dist/helpers/string.d.ts.map +1 -0
  223. package/dist/helpers/types.d.mts +39 -0
  224. package/dist/helpers/types.d.ts +39 -0
  225. package/dist/helpers/types.d.ts.map +1 -0
  226. package/dist/helpers/url.d.mts +11 -0
  227. package/dist/helpers/url.d.ts +11 -0
  228. package/dist/helpers/url.d.ts.map +1 -0
  229. package/dist/helpers/window.d.mts +37 -0
  230. package/dist/helpers/window.d.ts +37 -0
  231. package/dist/helpers/window.d.ts.map +1 -0
  232. package/dist/helpers/zod.d.mts +30 -0
  233. package/dist/helpers/zod.d.ts +30 -0
  234. package/dist/helpers/zod.d.ts.map +1 -0
  235. package/dist/index.d.mts +1 -0
  236. package/dist/index.d.ts +1 -0
  237. package/dist/index.d.ts.map +1 -0
  238. package/dist/index.js +2 -0
  239. package/dist/index.js.map +7 -0
  240. package/dist/index.mjs +1 -0
  241. package/dist/index.mjs.map +7 -0
  242. package/dist/instructions/actions/index.d.mts +5 -0
  243. package/dist/instructions/actions/index.d.ts +5 -0
  244. package/dist/instructions/actions/index.d.ts.map +1 -0
  245. package/dist/instructions/actions/refuel/index.d.mts +15 -0
  246. package/dist/instructions/actions/refuel/index.d.ts +15 -0
  247. package/dist/instructions/actions/refuel/index.d.ts.map +1 -0
  248. package/dist/instructions/actions/swap/index.d.mts +19 -0
  249. package/dist/instructions/actions/swap/index.d.ts +19 -0
  250. package/dist/instructions/actions/swap/index.d.ts.map +1 -0
  251. package/dist/instructions/actions/sweep/index.d.mts +16 -0
  252. package/dist/instructions/actions/sweep/index.d.ts +16 -0
  253. package/dist/instructions/actions/sweep/index.d.ts.map +1 -0
  254. package/dist/instructions/actions/transfer/index.d.mts +13 -0
  255. package/dist/instructions/actions/transfer/index.d.ts +13 -0
  256. package/dist/instructions/actions/transfer/index.d.ts.map +1 -0
  257. package/dist/instructions/activate.d.mts +84 -0
  258. package/dist/instructions/activate.d.ts +84 -0
  259. package/dist/instructions/activate.d.ts.map +1 -0
  260. package/dist/instructions/build.d.mts +146 -0
  261. package/dist/instructions/build.d.ts +146 -0
  262. package/dist/instructions/build.d.ts.map +1 -0
  263. package/dist/instructions/constants.d.mts +9 -0
  264. package/dist/instructions/constants.d.ts +9 -0
  265. package/dist/instructions/constants.d.ts.map +1 -0
  266. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +609 -0
  267. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +609 -0
  268. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +1 -0
  269. package/dist/instructions/index.d.mts +6 -0
  270. package/dist/instructions/index.d.ts +6 -0
  271. package/dist/instructions/index.d.ts.map +1 -0
  272. package/dist/instructions/index.js +1152 -0
  273. package/dist/instructions/index.js.map +7 -0
  274. package/dist/instructions/index.mjs +1119 -0
  275. package/dist/instructions/index.mjs.map +7 -0
  276. package/dist/instructions/types.d.mts +289 -0
  277. package/dist/instructions/types.d.ts +289 -0
  278. package/dist/instructions/types.d.ts.map +1 -0
  279. package/dist/payments/action-names.d.mts +16 -0
  280. package/dist/payments/action-names.d.ts +16 -0
  281. package/dist/payments/action-names.d.ts.map +1 -0
  282. package/dist/payments/actions/index.d.mts +5 -0
  283. package/dist/payments/actions/index.d.ts +5 -0
  284. package/dist/payments/actions/index.d.ts.map +1 -0
  285. package/dist/payments/actions/sweep-cctp.d.mts +15 -0
  286. package/dist/payments/actions/sweep-cctp.d.ts +15 -0
  287. package/dist/payments/actions/sweep-cctp.d.ts.map +1 -0
  288. package/dist/payments/actions/sweep-erc20.d.mts +12 -0
  289. package/dist/payments/actions/sweep-erc20.d.ts +12 -0
  290. package/dist/payments/actions/sweep-erc20.d.ts.map +1 -0
  291. package/dist/payments/actions/sweep-uniswap-v3.d.mts +17 -0
  292. package/dist/payments/actions/sweep-uniswap-v3.d.ts +17 -0
  293. package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +1 -0
  294. package/dist/payments/actions/sweep.d.mts +12 -0
  295. package/dist/payments/actions/sweep.d.ts +12 -0
  296. package/dist/payments/actions/sweep.d.ts.map +1 -0
  297. package/dist/payments/build.d.mts +27 -0
  298. package/dist/payments/build.d.ts +27 -0
  299. package/dist/payments/build.d.ts.map +1 -0
  300. package/dist/payments/chain-token-config-builder.d.mts +10 -0
  301. package/dist/payments/chain-token-config-builder.d.ts +10 -0
  302. package/dist/payments/chain-token-config-builder.d.ts.map +1 -0
  303. package/dist/payments/comprehensive-payment-request.d.mts +25 -0
  304. package/dist/payments/comprehensive-payment-request.d.ts +25 -0
  305. package/dist/payments/comprehensive-payment-request.d.ts.map +1 -0
  306. package/dist/payments/config/cctp.d.mts +14 -0
  307. package/dist/payments/config/cctp.d.ts +14 -0
  308. package/dist/payments/config/cctp.d.ts.map +1 -0
  309. package/dist/payments/config/index.d.mts +3 -0
  310. package/dist/payments/config/index.d.ts +3 -0
  311. package/dist/payments/config/index.d.ts.map +1 -0
  312. package/dist/payments/config/tokens.d.mts +14 -0
  313. package/dist/payments/config/tokens.d.ts +14 -0
  314. package/dist/payments/config/tokens.d.ts.map +1 -0
  315. package/dist/payments/index.d.mts +16 -0
  316. package/dist/payments/index.d.ts +16 -0
  317. package/dist/payments/index.d.ts.map +1 -0
  318. package/dist/payments/index.js +1303 -0
  319. package/dist/payments/index.js.map +7 -0
  320. package/dist/payments/index.mjs +1281 -0
  321. package/dist/payments/index.mjs.map +7 -0
  322. package/dist/payments/instruction-registry.d.mts +19 -0
  323. package/dist/payments/instruction-registry.d.ts +19 -0
  324. package/dist/payments/instruction-registry.d.ts.map +1 -0
  325. package/dist/payments/payment-metadata-builder.d.mts +56 -0
  326. package/dist/payments/payment-metadata-builder.d.ts +56 -0
  327. package/dist/payments/payment-metadata-builder.d.ts.map +1 -0
  328. package/dist/payments/payment-metadata.d.mts +15 -0
  329. package/dist/payments/payment-metadata.d.ts +15 -0
  330. package/dist/payments/payment-metadata.d.ts.map +1 -0
  331. package/dist/payments/payment-request-token-resolver.d.mts +25 -0
  332. package/dist/payments/payment-request-token-resolver.d.ts +25 -0
  333. package/dist/payments/payment-request-token-resolver.d.ts.map +1 -0
  334. package/dist/payments/types.d.mts +40 -0
  335. package/dist/payments/types.d.ts +40 -0
  336. package/dist/payments/types.d.ts.map +1 -0
  337. package/dist/payments/validation.d.mts +19 -0
  338. package/dist/payments/validation.d.ts +19 -0
  339. package/dist/payments/validation.d.ts.map +1 -0
  340. package/dist/schemas/account.d.mts +9 -0
  341. package/dist/schemas/account.d.ts +9 -0
  342. package/dist/schemas/account.d.ts.map +1 -0
  343. package/dist/schemas/brand.d.mts +7 -0
  344. package/dist/schemas/brand.d.ts +7 -0
  345. package/dist/schemas/brand.d.ts.map +1 -0
  346. package/dist/schemas/contact.d.mts +18 -0
  347. package/dist/schemas/contact.d.ts +18 -0
  348. package/dist/schemas/contact.d.ts.map +1 -0
  349. package/dist/schemas/index.d.mts +10 -0
  350. package/dist/schemas/index.d.ts +10 -0
  351. package/dist/schemas/index.d.ts.map +1 -0
  352. package/dist/schemas/index.js +433 -0
  353. package/dist/schemas/index.js.map +7 -0
  354. package/dist/schemas/index.mjs +410 -0
  355. package/dist/schemas/index.mjs.map +7 -0
  356. package/dist/schemas/instruction.d.mts +248 -0
  357. package/dist/schemas/instruction.d.ts +248 -0
  358. package/dist/schemas/instruction.d.ts.map +1 -0
  359. package/dist/schemas/misc.d.mts +36 -0
  360. package/dist/schemas/misc.d.ts +36 -0
  361. package/dist/schemas/misc.d.ts.map +1 -0
  362. package/dist/schemas/payment.d.mts +64 -0
  363. package/dist/schemas/payment.d.ts +64 -0
  364. package/dist/schemas/payment.d.ts.map +1 -0
  365. package/dist/schemas/token.d.mts +17 -0
  366. package/dist/schemas/token.d.ts +17 -0
  367. package/dist/schemas/token.d.ts.map +1 -0
  368. package/dist/schemas/transaction.d.mts +65 -0
  369. package/dist/schemas/transaction.d.ts +65 -0
  370. package/dist/schemas/transaction.d.ts.map +1 -0
  371. package/dist/schemas/user.d.mts +24 -0
  372. package/dist/schemas/user.d.ts +24 -0
  373. package/dist/schemas/user.d.ts.map +1 -0
  374. package/dist/server/client.d.mts +3 -0
  375. package/dist/server/client.d.ts +3 -0
  376. package/dist/server/client.d.ts.map +1 -0
  377. package/dist/server/index.d.mts +3 -0
  378. package/dist/server/index.d.ts +3 -0
  379. package/dist/server/index.d.ts.map +1 -0
  380. package/dist/server/index.js +420 -0
  381. package/dist/server/index.js.map +7 -0
  382. package/dist/server/index.mjs +389 -0
  383. package/dist/server/index.mjs.map +7 -0
  384. package/dist/server/routes/account.d.mts +4 -0
  385. package/dist/server/routes/account.d.ts +4 -0
  386. package/dist/server/routes/account.d.ts.map +1 -0
  387. package/dist/server/routes/auth.d.mts +28 -0
  388. package/dist/server/routes/auth.d.ts +28 -0
  389. package/dist/server/routes/auth.d.ts.map +1 -0
  390. package/dist/server/routes/bridge.d.mts +192 -0
  391. package/dist/server/routes/bridge.d.ts +192 -0
  392. package/dist/server/routes/bridge.d.ts.map +1 -0
  393. package/dist/server/routes/config.d.mts +3 -0
  394. package/dist/server/routes/config.d.ts +3 -0
  395. package/dist/server/routes/config.d.ts.map +1 -0
  396. package/dist/server/routes/index.d.mts +8 -0
  397. package/dist/server/routes/index.d.ts +8 -0
  398. package/dist/server/routes/index.d.ts.map +1 -0
  399. package/dist/server/routes/instruction.d.mts +4 -0
  400. package/dist/server/routes/instruction.d.ts +4 -0
  401. package/dist/server/routes/instruction.d.ts.map +1 -0
  402. package/dist/server/routes/integration.d.mts +4 -0
  403. package/dist/server/routes/integration.d.ts +4 -0
  404. package/dist/server/routes/integration.d.ts.map +1 -0
  405. package/dist/server/routes/payments.d.mts +4 -0
  406. package/dist/server/routes/payments.d.ts +4 -0
  407. package/dist/server/routes/payments.d.ts.map +1 -0
  408. package/dist/server/routes/verify.d.mts +3 -0
  409. package/dist/server/routes/verify.d.ts +3 -0
  410. package/dist/server/routes/verify.d.ts.map +1 -0
  411. package/dist/wallet/wagmi/config.d.mts +18 -0
  412. package/dist/wallet/wagmi/config.d.ts +18 -0
  413. package/dist/wallet/wagmi/config.d.ts.map +1 -0
  414. package/dist/wallet/wagmi/index.d.mts +2 -0
  415. package/dist/wallet/wagmi/index.d.ts +2 -0
  416. package/dist/wallet/wagmi/index.d.ts.map +1 -0
  417. package/dist/wallet/wagmi/index.js +429 -0
  418. package/dist/wallet/wagmi/index.js.map +7 -0
  419. package/dist/wallet/wagmi/index.mjs +431 -0
  420. package/dist/wallet/wagmi/index.mjs.map +7 -0
  421. package/package.json +222 -0
@@ -0,0 +1,1110 @@
1
+ import type { Optional } from "@otim/utils/helpers";
2
+ import type { Chain } from "viem/chains";
3
+ export declare const testnetChains: readonly [{
4
+ blockExplorers: {
5
+ readonly default: {
6
+ readonly name: "Etherscan";
7
+ readonly url: "https://sepolia.etherscan.io";
8
+ readonly apiUrl: "https://api-sepolia.etherscan.io/api";
9
+ };
10
+ };
11
+ blockTime?: number | undefined | undefined;
12
+ contracts: {
13
+ readonly multicall3: {
14
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
15
+ readonly blockCreated: 751532;
16
+ };
17
+ readonly ensUniversalResolver: {
18
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
19
+ readonly blockCreated: 8928790;
20
+ };
21
+ };
22
+ ensTlds?: readonly string[] | undefined;
23
+ id: 11155111;
24
+ name: "Sepolia";
25
+ nativeCurrency: {
26
+ readonly name: "Sepolia Ether";
27
+ readonly symbol: "ETH";
28
+ readonly decimals: 18;
29
+ };
30
+ experimental_preconfirmationTime?: number | undefined | undefined;
31
+ rpcUrls: {
32
+ readonly default: {
33
+ readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
34
+ };
35
+ };
36
+ sourceId?: number | undefined | undefined;
37
+ testnet: true;
38
+ custom?: Record<string, unknown> | undefined;
39
+ fees?: import("viem").ChainFees<undefined> | undefined;
40
+ formatters?: undefined;
41
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
42
+ }, {
43
+ blockExplorers: {
44
+ readonly default: {
45
+ readonly name: "Basescan";
46
+ readonly url: "https://sepolia.basescan.org";
47
+ readonly apiUrl: "https://api-sepolia.basescan.org/api";
48
+ };
49
+ };
50
+ blockTime: 2000;
51
+ contracts: {
52
+ readonly disputeGameFactory: {
53
+ readonly 11155111: {
54
+ readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
55
+ };
56
+ };
57
+ readonly l2OutputOracle: {
58
+ readonly 11155111: {
59
+ readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
60
+ };
61
+ };
62
+ readonly portal: {
63
+ readonly 11155111: {
64
+ readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
65
+ readonly blockCreated: 4446677;
66
+ };
67
+ };
68
+ readonly l1StandardBridge: {
69
+ readonly 11155111: {
70
+ readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
71
+ readonly blockCreated: 4446677;
72
+ };
73
+ };
74
+ readonly multicall3: {
75
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
76
+ readonly blockCreated: 1059647;
77
+ };
78
+ readonly gasPriceOracle: {
79
+ readonly address: "0x420000000000000000000000000000000000000F";
80
+ };
81
+ readonly l1Block: {
82
+ readonly address: "0x4200000000000000000000000000000000000015";
83
+ };
84
+ readonly l2CrossDomainMessenger: {
85
+ readonly address: "0x4200000000000000000000000000000000000007";
86
+ };
87
+ readonly l2Erc721Bridge: {
88
+ readonly address: "0x4200000000000000000000000000000000000014";
89
+ };
90
+ readonly l2StandardBridge: {
91
+ readonly address: "0x4200000000000000000000000000000000000010";
92
+ };
93
+ readonly l2ToL1MessagePasser: {
94
+ readonly address: "0x4200000000000000000000000000000000000016";
95
+ };
96
+ };
97
+ ensTlds?: readonly string[] | undefined;
98
+ id: 84532;
99
+ name: "Base Sepolia";
100
+ nativeCurrency: {
101
+ readonly name: "Sepolia Ether";
102
+ readonly symbol: "ETH";
103
+ readonly decimals: 18;
104
+ };
105
+ experimental_preconfirmationTime?: number | undefined | undefined;
106
+ rpcUrls: {
107
+ readonly default: {
108
+ readonly http: readonly ["https://sepolia.base.org"];
109
+ };
110
+ };
111
+ sourceId: 11155111;
112
+ testnet: true;
113
+ custom?: Record<string, unknown> | undefined;
114
+ fees?: import("viem").ChainFees<undefined> | undefined;
115
+ formatters: {
116
+ readonly block: {
117
+ exclude: [] | undefined;
118
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
119
+ baseFeePerGas: bigint | null;
120
+ blobGasUsed: bigint;
121
+ difficulty: bigint;
122
+ excessBlobGas: bigint;
123
+ extraData: import("viem").Hex;
124
+ gasLimit: bigint;
125
+ gasUsed: bigint;
126
+ hash: `0x${string}` | null;
127
+ logsBloom: `0x${string}` | null;
128
+ miner: import("viem").Address;
129
+ mixHash: import("viem").Hash;
130
+ nonce: `0x${string}` | null;
131
+ number: bigint | null;
132
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
133
+ parentHash: import("viem").Hash;
134
+ receiptsRoot: import("viem").Hex;
135
+ sealFields: import("viem").Hex[];
136
+ sha3Uncles: import("viem").Hash;
137
+ size: bigint;
138
+ stateRoot: import("viem").Hash;
139
+ timestamp: bigint;
140
+ totalDifficulty: bigint | null;
141
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
142
+ transactionsRoot: import("viem").Hash;
143
+ uncles: import("viem").Hash[];
144
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
145
+ withdrawalsRoot?: `0x${string}` | undefined;
146
+ } & {};
147
+ type: "block";
148
+ };
149
+ readonly transaction: {
150
+ exclude: [] | undefined;
151
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
152
+ blockHash: `0x${string}` | null;
153
+ blockNumber: bigint | null;
154
+ from: import("viem").Address;
155
+ gas: bigint;
156
+ hash: import("viem").Hash;
157
+ input: import("viem").Hex;
158
+ nonce: number;
159
+ r: import("viem").Hex;
160
+ s: import("viem").Hex;
161
+ to: import("viem").Address | null;
162
+ transactionIndex: number | null;
163
+ typeHex: import("viem").Hex | null;
164
+ v: bigint;
165
+ value: bigint;
166
+ yParity: number;
167
+ gasPrice?: undefined | undefined;
168
+ maxFeePerBlobGas?: undefined | undefined;
169
+ maxFeePerGas: bigint;
170
+ maxPriorityFeePerGas: bigint;
171
+ isSystemTx?: boolean;
172
+ mint?: bigint | undefined | undefined;
173
+ sourceHash: import("viem").Hex;
174
+ type: "deposit";
175
+ } | {
176
+ r: import("viem").Hex;
177
+ s: import("viem").Hex;
178
+ v: bigint;
179
+ value: bigint;
180
+ gas: bigint;
181
+ to: import("viem").Address | null;
182
+ from: import("viem").Address;
183
+ nonce: number;
184
+ blockHash: `0x${string}` | null;
185
+ blockNumber: bigint | null;
186
+ transactionIndex: number | null;
187
+ hash: import("viem").Hash;
188
+ input: import("viem").Hex;
189
+ typeHex: import("viem").Hex | null;
190
+ accessList?: undefined | undefined;
191
+ authorizationList?: undefined | undefined;
192
+ blobVersionedHashes?: undefined | undefined;
193
+ chainId?: number | undefined;
194
+ yParity?: undefined | undefined;
195
+ type: "legacy";
196
+ gasPrice: bigint;
197
+ maxFeePerBlobGas?: undefined | undefined;
198
+ maxFeePerGas?: undefined | undefined;
199
+ maxPriorityFeePerGas?: undefined | undefined;
200
+ isSystemTx?: undefined | undefined;
201
+ mint?: undefined | undefined;
202
+ sourceHash?: undefined | undefined;
203
+ } | {
204
+ blockHash: `0x${string}` | null;
205
+ blockNumber: bigint | null;
206
+ from: import("viem").Address;
207
+ gas: bigint;
208
+ hash: import("viem").Hash;
209
+ input: import("viem").Hex;
210
+ nonce: number;
211
+ r: import("viem").Hex;
212
+ s: import("viem").Hex;
213
+ to: import("viem").Address | null;
214
+ transactionIndex: number | null;
215
+ typeHex: import("viem").Hex | null;
216
+ v: bigint;
217
+ value: bigint;
218
+ yParity: number;
219
+ accessList: import("viem").AccessList;
220
+ authorizationList?: undefined | undefined;
221
+ blobVersionedHashes?: undefined | undefined;
222
+ chainId: number;
223
+ type: "eip2930";
224
+ gasPrice: bigint;
225
+ maxFeePerBlobGas?: undefined | undefined;
226
+ maxFeePerGas?: undefined | undefined;
227
+ maxPriorityFeePerGas?: undefined | undefined;
228
+ isSystemTx?: undefined | undefined;
229
+ mint?: undefined | undefined;
230
+ sourceHash?: undefined | undefined;
231
+ } | {
232
+ blockHash: `0x${string}` | null;
233
+ blockNumber: bigint | null;
234
+ from: import("viem").Address;
235
+ gas: bigint;
236
+ hash: import("viem").Hash;
237
+ input: import("viem").Hex;
238
+ nonce: number;
239
+ r: import("viem").Hex;
240
+ s: import("viem").Hex;
241
+ to: import("viem").Address | null;
242
+ transactionIndex: number | null;
243
+ typeHex: import("viem").Hex | null;
244
+ v: bigint;
245
+ value: bigint;
246
+ yParity: number;
247
+ accessList: import("viem").AccessList;
248
+ authorizationList?: undefined | undefined;
249
+ blobVersionedHashes?: undefined | undefined;
250
+ chainId: number;
251
+ type: "eip1559";
252
+ gasPrice?: undefined | undefined;
253
+ maxFeePerBlobGas?: undefined | undefined;
254
+ maxFeePerGas: bigint;
255
+ maxPriorityFeePerGas: bigint;
256
+ isSystemTx?: undefined | undefined;
257
+ mint?: undefined | undefined;
258
+ sourceHash?: undefined | undefined;
259
+ } | {
260
+ blockHash: `0x${string}` | null;
261
+ blockNumber: bigint | null;
262
+ from: import("viem").Address;
263
+ gas: bigint;
264
+ hash: import("viem").Hash;
265
+ input: import("viem").Hex;
266
+ nonce: number;
267
+ r: import("viem").Hex;
268
+ s: import("viem").Hex;
269
+ to: import("viem").Address | null;
270
+ transactionIndex: number | null;
271
+ typeHex: import("viem").Hex | null;
272
+ v: bigint;
273
+ value: bigint;
274
+ yParity: number;
275
+ accessList: import("viem").AccessList;
276
+ authorizationList?: undefined | undefined;
277
+ blobVersionedHashes: readonly import("viem").Hex[];
278
+ chainId: number;
279
+ type: "eip4844";
280
+ gasPrice?: undefined | undefined;
281
+ maxFeePerBlobGas: bigint;
282
+ maxFeePerGas: bigint;
283
+ maxPriorityFeePerGas: bigint;
284
+ isSystemTx?: undefined | undefined;
285
+ mint?: undefined | undefined;
286
+ sourceHash?: undefined | undefined;
287
+ } | {
288
+ blockHash: `0x${string}` | null;
289
+ blockNumber: bigint | null;
290
+ from: import("viem").Address;
291
+ gas: bigint;
292
+ hash: import("viem").Hash;
293
+ input: import("viem").Hex;
294
+ nonce: number;
295
+ r: import("viem").Hex;
296
+ s: import("viem").Hex;
297
+ to: import("viem").Address | null;
298
+ transactionIndex: number | null;
299
+ typeHex: import("viem").Hex | null;
300
+ v: bigint;
301
+ value: bigint;
302
+ yParity: number;
303
+ accessList: import("viem").AccessList;
304
+ authorizationList: import("viem").SignedAuthorizationList;
305
+ blobVersionedHashes?: undefined | undefined;
306
+ chainId: number;
307
+ type: "eip7702";
308
+ gasPrice?: undefined | undefined;
309
+ maxFeePerBlobGas?: undefined | undefined;
310
+ maxFeePerGas: bigint;
311
+ maxPriorityFeePerGas: bigint;
312
+ isSystemTx?: undefined | undefined;
313
+ mint?: undefined | undefined;
314
+ sourceHash?: undefined | undefined;
315
+ }) & {};
316
+ type: "transaction";
317
+ };
318
+ readonly transactionReceipt: {
319
+ exclude: [] | undefined;
320
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
321
+ blobGasPrice?: bigint | undefined;
322
+ blobGasUsed?: bigint | undefined;
323
+ blockHash: import("viem").Hash;
324
+ blockNumber: bigint;
325
+ contractAddress: import("viem").Address | null | undefined;
326
+ cumulativeGasUsed: bigint;
327
+ effectiveGasPrice: bigint;
328
+ from: import("viem").Address;
329
+ gasUsed: bigint;
330
+ logs: import("viem").Log<bigint, number, false>[];
331
+ logsBloom: import("viem").Hex;
332
+ root?: `0x${string}` | undefined;
333
+ status: "success" | "reverted";
334
+ to: import("viem").Address | null;
335
+ transactionHash: import("viem").Hash;
336
+ transactionIndex: number;
337
+ type: import("viem").TransactionType;
338
+ l1GasPrice: bigint | null;
339
+ l1GasUsed: bigint | null;
340
+ l1Fee: bigint | null;
341
+ l1FeeScalar: number | null;
342
+ } & {};
343
+ type: "transactionReceipt";
344
+ };
345
+ };
346
+ serializers: {
347
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
348
+ };
349
+ readonly network: "base-sepolia";
350
+ }, {
351
+ blockExplorers: {
352
+ readonly default: {
353
+ readonly name: "Arbiscan";
354
+ readonly url: "https://sepolia.arbiscan.io";
355
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
356
+ };
357
+ };
358
+ blockTime: 250;
359
+ contracts: {
360
+ readonly multicall3: {
361
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
362
+ readonly blockCreated: 81930;
363
+ };
364
+ };
365
+ ensTlds?: readonly string[] | undefined;
366
+ id: 421614;
367
+ name: "Arbitrum Sepolia";
368
+ nativeCurrency: {
369
+ readonly name: "Arbitrum Sepolia Ether";
370
+ readonly symbol: "ETH";
371
+ readonly decimals: 18;
372
+ };
373
+ experimental_preconfirmationTime?: number | undefined | undefined;
374
+ rpcUrls: {
375
+ readonly default: {
376
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
377
+ };
378
+ };
379
+ sourceId?: number | undefined | undefined;
380
+ testnet: true;
381
+ custom?: Record<string, unknown> | undefined;
382
+ fees?: import("viem").ChainFees<undefined> | undefined;
383
+ formatters?: undefined;
384
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
385
+ }, {
386
+ blockExplorers: {
387
+ readonly default: {
388
+ readonly name: "Blockscout";
389
+ readonly url: "https://optimism-sepolia.blockscout.com";
390
+ readonly apiUrl: "https://optimism-sepolia.blockscout.com/api";
391
+ };
392
+ };
393
+ blockTime: 2000;
394
+ contracts: {
395
+ readonly disputeGameFactory: {
396
+ readonly 11155111: {
397
+ readonly address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1";
398
+ };
399
+ };
400
+ readonly l2OutputOracle: {
401
+ readonly 11155111: {
402
+ readonly address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F";
403
+ };
404
+ };
405
+ readonly multicall3: {
406
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
407
+ readonly blockCreated: 1620204;
408
+ };
409
+ readonly portal: {
410
+ readonly 11155111: {
411
+ readonly address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC";
412
+ };
413
+ };
414
+ readonly l1StandardBridge: {
415
+ readonly 11155111: {
416
+ readonly address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1";
417
+ };
418
+ };
419
+ readonly gasPriceOracle: {
420
+ readonly address: "0x420000000000000000000000000000000000000F";
421
+ };
422
+ readonly l1Block: {
423
+ readonly address: "0x4200000000000000000000000000000000000015";
424
+ };
425
+ readonly l2CrossDomainMessenger: {
426
+ readonly address: "0x4200000000000000000000000000000000000007";
427
+ };
428
+ readonly l2Erc721Bridge: {
429
+ readonly address: "0x4200000000000000000000000000000000000014";
430
+ };
431
+ readonly l2StandardBridge: {
432
+ readonly address: "0x4200000000000000000000000000000000000010";
433
+ };
434
+ readonly l2ToL1MessagePasser: {
435
+ readonly address: "0x4200000000000000000000000000000000000016";
436
+ };
437
+ };
438
+ ensTlds?: readonly string[] | undefined;
439
+ id: 11155420;
440
+ name: "OP Sepolia";
441
+ nativeCurrency: {
442
+ readonly name: "Sepolia Ether";
443
+ readonly symbol: "ETH";
444
+ readonly decimals: 18;
445
+ };
446
+ experimental_preconfirmationTime?: number | undefined | undefined;
447
+ rpcUrls: {
448
+ readonly default: {
449
+ readonly http: readonly ["https://sepolia.optimism.io"];
450
+ };
451
+ };
452
+ sourceId: 11155111;
453
+ testnet: true;
454
+ custom?: Record<string, unknown> | undefined;
455
+ fees?: import("viem").ChainFees<undefined> | undefined;
456
+ formatters: {
457
+ readonly block: {
458
+ exclude: [] | undefined;
459
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
460
+ baseFeePerGas: bigint | null;
461
+ blobGasUsed: bigint;
462
+ difficulty: bigint;
463
+ excessBlobGas: bigint;
464
+ extraData: import("viem").Hex;
465
+ gasLimit: bigint;
466
+ gasUsed: bigint;
467
+ hash: `0x${string}` | null;
468
+ logsBloom: `0x${string}` | null;
469
+ miner: import("viem").Address;
470
+ mixHash: import("viem").Hash;
471
+ nonce: `0x${string}` | null;
472
+ number: bigint | null;
473
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
474
+ parentHash: import("viem").Hash;
475
+ receiptsRoot: import("viem").Hex;
476
+ sealFields: import("viem").Hex[];
477
+ sha3Uncles: import("viem").Hash;
478
+ size: bigint;
479
+ stateRoot: import("viem").Hash;
480
+ timestamp: bigint;
481
+ totalDifficulty: bigint | null;
482
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
483
+ transactionsRoot: import("viem").Hash;
484
+ uncles: import("viem").Hash[];
485
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
486
+ withdrawalsRoot?: `0x${string}` | undefined;
487
+ } & {};
488
+ type: "block";
489
+ };
490
+ readonly transaction: {
491
+ exclude: [] | undefined;
492
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
493
+ blockHash: `0x${string}` | null;
494
+ blockNumber: bigint | null;
495
+ from: import("viem").Address;
496
+ gas: bigint;
497
+ hash: import("viem").Hash;
498
+ input: import("viem").Hex;
499
+ nonce: number;
500
+ r: import("viem").Hex;
501
+ s: import("viem").Hex;
502
+ to: import("viem").Address | null;
503
+ transactionIndex: number | null;
504
+ typeHex: import("viem").Hex | null;
505
+ v: bigint;
506
+ value: bigint;
507
+ yParity: number;
508
+ gasPrice?: undefined | undefined;
509
+ maxFeePerBlobGas?: undefined | undefined;
510
+ maxFeePerGas: bigint;
511
+ maxPriorityFeePerGas: bigint;
512
+ isSystemTx?: boolean;
513
+ mint?: bigint | undefined | undefined;
514
+ sourceHash: import("viem").Hex;
515
+ type: "deposit";
516
+ } | {
517
+ r: import("viem").Hex;
518
+ s: import("viem").Hex;
519
+ v: bigint;
520
+ value: bigint;
521
+ gas: bigint;
522
+ to: import("viem").Address | null;
523
+ from: import("viem").Address;
524
+ nonce: number;
525
+ blockHash: `0x${string}` | null;
526
+ blockNumber: bigint | null;
527
+ transactionIndex: number | null;
528
+ hash: import("viem").Hash;
529
+ input: import("viem").Hex;
530
+ typeHex: import("viem").Hex | null;
531
+ accessList?: undefined | undefined;
532
+ authorizationList?: undefined | undefined;
533
+ blobVersionedHashes?: undefined | undefined;
534
+ chainId?: number | undefined;
535
+ yParity?: undefined | undefined;
536
+ type: "legacy";
537
+ gasPrice: bigint;
538
+ maxFeePerBlobGas?: undefined | undefined;
539
+ maxFeePerGas?: undefined | undefined;
540
+ maxPriorityFeePerGas?: undefined | undefined;
541
+ isSystemTx?: undefined | undefined;
542
+ mint?: undefined | undefined;
543
+ sourceHash?: undefined | undefined;
544
+ } | {
545
+ blockHash: `0x${string}` | null;
546
+ blockNumber: bigint | null;
547
+ from: import("viem").Address;
548
+ gas: bigint;
549
+ hash: import("viem").Hash;
550
+ input: import("viem").Hex;
551
+ nonce: number;
552
+ r: import("viem").Hex;
553
+ s: import("viem").Hex;
554
+ to: import("viem").Address | null;
555
+ transactionIndex: number | null;
556
+ typeHex: import("viem").Hex | null;
557
+ v: bigint;
558
+ value: bigint;
559
+ yParity: number;
560
+ accessList: import("viem").AccessList;
561
+ authorizationList?: undefined | undefined;
562
+ blobVersionedHashes?: undefined | undefined;
563
+ chainId: number;
564
+ type: "eip2930";
565
+ gasPrice: bigint;
566
+ maxFeePerBlobGas?: undefined | undefined;
567
+ maxFeePerGas?: undefined | undefined;
568
+ maxPriorityFeePerGas?: undefined | undefined;
569
+ isSystemTx?: undefined | undefined;
570
+ mint?: undefined | undefined;
571
+ sourceHash?: undefined | undefined;
572
+ } | {
573
+ blockHash: `0x${string}` | null;
574
+ blockNumber: bigint | null;
575
+ from: import("viem").Address;
576
+ gas: bigint;
577
+ hash: import("viem").Hash;
578
+ input: import("viem").Hex;
579
+ nonce: number;
580
+ r: import("viem").Hex;
581
+ s: import("viem").Hex;
582
+ to: import("viem").Address | null;
583
+ transactionIndex: number | null;
584
+ typeHex: import("viem").Hex | null;
585
+ v: bigint;
586
+ value: bigint;
587
+ yParity: number;
588
+ accessList: import("viem").AccessList;
589
+ authorizationList?: undefined | undefined;
590
+ blobVersionedHashes?: undefined | undefined;
591
+ chainId: number;
592
+ type: "eip1559";
593
+ gasPrice?: undefined | undefined;
594
+ maxFeePerBlobGas?: undefined | undefined;
595
+ maxFeePerGas: bigint;
596
+ maxPriorityFeePerGas: bigint;
597
+ isSystemTx?: undefined | undefined;
598
+ mint?: undefined | undefined;
599
+ sourceHash?: undefined | undefined;
600
+ } | {
601
+ blockHash: `0x${string}` | null;
602
+ blockNumber: bigint | null;
603
+ from: import("viem").Address;
604
+ gas: bigint;
605
+ hash: import("viem").Hash;
606
+ input: import("viem").Hex;
607
+ nonce: number;
608
+ r: import("viem").Hex;
609
+ s: import("viem").Hex;
610
+ to: import("viem").Address | null;
611
+ transactionIndex: number | null;
612
+ typeHex: import("viem").Hex | null;
613
+ v: bigint;
614
+ value: bigint;
615
+ yParity: number;
616
+ accessList: import("viem").AccessList;
617
+ authorizationList?: undefined | undefined;
618
+ blobVersionedHashes: readonly import("viem").Hex[];
619
+ chainId: number;
620
+ type: "eip4844";
621
+ gasPrice?: undefined | undefined;
622
+ maxFeePerBlobGas: bigint;
623
+ maxFeePerGas: bigint;
624
+ maxPriorityFeePerGas: bigint;
625
+ isSystemTx?: undefined | undefined;
626
+ mint?: undefined | undefined;
627
+ sourceHash?: undefined | undefined;
628
+ } | {
629
+ blockHash: `0x${string}` | null;
630
+ blockNumber: bigint | null;
631
+ from: import("viem").Address;
632
+ gas: bigint;
633
+ hash: import("viem").Hash;
634
+ input: import("viem").Hex;
635
+ nonce: number;
636
+ r: import("viem").Hex;
637
+ s: import("viem").Hex;
638
+ to: import("viem").Address | null;
639
+ transactionIndex: number | null;
640
+ typeHex: import("viem").Hex | null;
641
+ v: bigint;
642
+ value: bigint;
643
+ yParity: number;
644
+ accessList: import("viem").AccessList;
645
+ authorizationList: import("viem").SignedAuthorizationList;
646
+ blobVersionedHashes?: undefined | undefined;
647
+ chainId: number;
648
+ type: "eip7702";
649
+ gasPrice?: undefined | undefined;
650
+ maxFeePerBlobGas?: undefined | undefined;
651
+ maxFeePerGas: bigint;
652
+ maxPriorityFeePerGas: bigint;
653
+ isSystemTx?: undefined | undefined;
654
+ mint?: undefined | undefined;
655
+ sourceHash?: undefined | undefined;
656
+ }) & {};
657
+ type: "transaction";
658
+ };
659
+ readonly transactionReceipt: {
660
+ exclude: [] | undefined;
661
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
662
+ blobGasPrice?: bigint | undefined;
663
+ blobGasUsed?: bigint | undefined;
664
+ blockHash: import("viem").Hash;
665
+ blockNumber: bigint;
666
+ contractAddress: import("viem").Address | null | undefined;
667
+ cumulativeGasUsed: bigint;
668
+ effectiveGasPrice: bigint;
669
+ from: import("viem").Address;
670
+ gasUsed: bigint;
671
+ logs: import("viem").Log<bigint, number, false>[];
672
+ logsBloom: import("viem").Hex;
673
+ root?: `0x${string}` | undefined;
674
+ status: "success" | "reverted";
675
+ to: import("viem").Address | null;
676
+ transactionHash: import("viem").Hash;
677
+ transactionIndex: number;
678
+ type: import("viem").TransactionType;
679
+ l1GasPrice: bigint | null;
680
+ l1GasUsed: bigint | null;
681
+ l1Fee: bigint | null;
682
+ l1FeeScalar: number | null;
683
+ } & {};
684
+ type: "transactionReceipt";
685
+ };
686
+ };
687
+ serializers: {
688
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
689
+ };
690
+ }, {
691
+ blockExplorers: {
692
+ readonly default: {
693
+ readonly name: "BscScan";
694
+ readonly url: "https://testnet.bscscan.com";
695
+ readonly apiUrl: "https://api-testnet.bscscan.com/api";
696
+ };
697
+ };
698
+ blockTime?: number | undefined | undefined;
699
+ contracts: {
700
+ readonly multicall3: {
701
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
702
+ readonly blockCreated: 17422483;
703
+ };
704
+ };
705
+ ensTlds?: readonly string[] | undefined;
706
+ id: 97;
707
+ name: "BNB Smart Chain Testnet";
708
+ nativeCurrency: {
709
+ readonly decimals: 18;
710
+ readonly name: "BNB";
711
+ readonly symbol: "tBNB";
712
+ };
713
+ experimental_preconfirmationTime?: number | undefined | undefined;
714
+ rpcUrls: {
715
+ readonly default: {
716
+ readonly http: readonly ["https://data-seed-prebsc-1-s1.bnbchain.org:8545"];
717
+ };
718
+ };
719
+ sourceId?: number | undefined | undefined;
720
+ testnet: true;
721
+ custom?: Record<string, unknown> | undefined;
722
+ fees?: import("viem").ChainFees<undefined> | undefined;
723
+ formatters?: undefined;
724
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
725
+ }, {
726
+ blockExplorers: {
727
+ readonly default: {
728
+ readonly name: "Uniscan";
729
+ readonly url: "https://sepolia.uniscan.xyz";
730
+ readonly apiUrl: "https://api-sepolia.uniscan.xyz/api";
731
+ };
732
+ };
733
+ blockTime: 1000;
734
+ contracts: {
735
+ readonly multicall3: {
736
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
737
+ readonly blockCreated: 0;
738
+ };
739
+ readonly portal: {
740
+ readonly 11155111: {
741
+ readonly address: "0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD";
742
+ };
743
+ };
744
+ readonly l1StandardBridge: {
745
+ readonly 11155111: {
746
+ readonly address: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2";
747
+ };
748
+ };
749
+ readonly disputeGameFactory: {
750
+ readonly 11155111: {
751
+ readonly address: "0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b";
752
+ };
753
+ };
754
+ readonly gasPriceOracle: {
755
+ readonly address: "0x420000000000000000000000000000000000000F";
756
+ };
757
+ readonly l1Block: {
758
+ readonly address: "0x4200000000000000000000000000000000000015";
759
+ };
760
+ readonly l2CrossDomainMessenger: {
761
+ readonly address: "0x4200000000000000000000000000000000000007";
762
+ };
763
+ readonly l2Erc721Bridge: {
764
+ readonly address: "0x4200000000000000000000000000000000000014";
765
+ };
766
+ readonly l2StandardBridge: {
767
+ readonly address: "0x4200000000000000000000000000000000000010";
768
+ };
769
+ readonly l2ToL1MessagePasser: {
770
+ readonly address: "0x4200000000000000000000000000000000000016";
771
+ };
772
+ };
773
+ ensTlds?: readonly string[] | undefined;
774
+ id: 1301;
775
+ name: "Unichain Sepolia";
776
+ nativeCurrency: {
777
+ readonly name: "Ether";
778
+ readonly symbol: "ETH";
779
+ readonly decimals: 18;
780
+ };
781
+ experimental_preconfirmationTime?: number | undefined | undefined;
782
+ rpcUrls: {
783
+ readonly default: {
784
+ readonly http: readonly ["https://sepolia.unichain.org"];
785
+ };
786
+ };
787
+ sourceId: 11155111;
788
+ testnet: true;
789
+ custom?: Record<string, unknown> | undefined;
790
+ fees?: import("viem").ChainFees<undefined> | undefined;
791
+ formatters: {
792
+ readonly block: {
793
+ exclude: [] | undefined;
794
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
795
+ baseFeePerGas: bigint | null;
796
+ blobGasUsed: bigint;
797
+ difficulty: bigint;
798
+ excessBlobGas: bigint;
799
+ extraData: import("viem").Hex;
800
+ gasLimit: bigint;
801
+ gasUsed: bigint;
802
+ hash: `0x${string}` | null;
803
+ logsBloom: `0x${string}` | null;
804
+ miner: import("viem").Address;
805
+ mixHash: import("viem").Hash;
806
+ nonce: `0x${string}` | null;
807
+ number: bigint | null;
808
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
809
+ parentHash: import("viem").Hash;
810
+ receiptsRoot: import("viem").Hex;
811
+ sealFields: import("viem").Hex[];
812
+ sha3Uncles: import("viem").Hash;
813
+ size: bigint;
814
+ stateRoot: import("viem").Hash;
815
+ timestamp: bigint;
816
+ totalDifficulty: bigint | null;
817
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
818
+ transactionsRoot: import("viem").Hash;
819
+ uncles: import("viem").Hash[];
820
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
821
+ withdrawalsRoot?: `0x${string}` | undefined;
822
+ } & {};
823
+ type: "block";
824
+ };
825
+ readonly transaction: {
826
+ exclude: [] | undefined;
827
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
828
+ blockHash: `0x${string}` | null;
829
+ blockNumber: bigint | null;
830
+ from: import("viem").Address;
831
+ gas: bigint;
832
+ hash: import("viem").Hash;
833
+ input: import("viem").Hex;
834
+ nonce: number;
835
+ r: import("viem").Hex;
836
+ s: import("viem").Hex;
837
+ to: import("viem").Address | null;
838
+ transactionIndex: number | null;
839
+ typeHex: import("viem").Hex | null;
840
+ v: bigint;
841
+ value: bigint;
842
+ yParity: number;
843
+ gasPrice?: undefined | undefined;
844
+ maxFeePerBlobGas?: undefined | undefined;
845
+ maxFeePerGas: bigint;
846
+ maxPriorityFeePerGas: bigint;
847
+ isSystemTx?: boolean;
848
+ mint?: bigint | undefined | undefined;
849
+ sourceHash: import("viem").Hex;
850
+ type: "deposit";
851
+ } | {
852
+ r: import("viem").Hex;
853
+ s: import("viem").Hex;
854
+ v: bigint;
855
+ value: bigint;
856
+ gas: bigint;
857
+ to: import("viem").Address | null;
858
+ from: import("viem").Address;
859
+ nonce: number;
860
+ blockHash: `0x${string}` | null;
861
+ blockNumber: bigint | null;
862
+ transactionIndex: number | null;
863
+ hash: import("viem").Hash;
864
+ input: import("viem").Hex;
865
+ typeHex: import("viem").Hex | null;
866
+ accessList?: undefined | undefined;
867
+ authorizationList?: undefined | undefined;
868
+ blobVersionedHashes?: undefined | undefined;
869
+ chainId?: number | undefined;
870
+ yParity?: undefined | undefined;
871
+ type: "legacy";
872
+ gasPrice: bigint;
873
+ maxFeePerBlobGas?: undefined | undefined;
874
+ maxFeePerGas?: undefined | undefined;
875
+ maxPriorityFeePerGas?: undefined | undefined;
876
+ isSystemTx?: undefined | undefined;
877
+ mint?: undefined | undefined;
878
+ sourceHash?: undefined | undefined;
879
+ } | {
880
+ blockHash: `0x${string}` | null;
881
+ blockNumber: bigint | null;
882
+ from: import("viem").Address;
883
+ gas: bigint;
884
+ hash: import("viem").Hash;
885
+ input: import("viem").Hex;
886
+ nonce: number;
887
+ r: import("viem").Hex;
888
+ s: import("viem").Hex;
889
+ to: import("viem").Address | null;
890
+ transactionIndex: number | null;
891
+ typeHex: import("viem").Hex | null;
892
+ v: bigint;
893
+ value: bigint;
894
+ yParity: number;
895
+ accessList: import("viem").AccessList;
896
+ authorizationList?: undefined | undefined;
897
+ blobVersionedHashes?: undefined | undefined;
898
+ chainId: number;
899
+ type: "eip2930";
900
+ gasPrice: bigint;
901
+ maxFeePerBlobGas?: undefined | undefined;
902
+ maxFeePerGas?: undefined | undefined;
903
+ maxPriorityFeePerGas?: undefined | undefined;
904
+ isSystemTx?: undefined | undefined;
905
+ mint?: undefined | undefined;
906
+ sourceHash?: undefined | undefined;
907
+ } | {
908
+ blockHash: `0x${string}` | null;
909
+ blockNumber: bigint | null;
910
+ from: import("viem").Address;
911
+ gas: bigint;
912
+ hash: import("viem").Hash;
913
+ input: import("viem").Hex;
914
+ nonce: number;
915
+ r: import("viem").Hex;
916
+ s: import("viem").Hex;
917
+ to: import("viem").Address | null;
918
+ transactionIndex: number | null;
919
+ typeHex: import("viem").Hex | null;
920
+ v: bigint;
921
+ value: bigint;
922
+ yParity: number;
923
+ accessList: import("viem").AccessList;
924
+ authorizationList?: undefined | undefined;
925
+ blobVersionedHashes?: undefined | undefined;
926
+ chainId: number;
927
+ type: "eip1559";
928
+ gasPrice?: undefined | undefined;
929
+ maxFeePerBlobGas?: undefined | undefined;
930
+ maxFeePerGas: bigint;
931
+ maxPriorityFeePerGas: bigint;
932
+ isSystemTx?: undefined | undefined;
933
+ mint?: undefined | undefined;
934
+ sourceHash?: undefined | undefined;
935
+ } | {
936
+ blockHash: `0x${string}` | null;
937
+ blockNumber: bigint | null;
938
+ from: import("viem").Address;
939
+ gas: bigint;
940
+ hash: import("viem").Hash;
941
+ input: import("viem").Hex;
942
+ nonce: number;
943
+ r: import("viem").Hex;
944
+ s: import("viem").Hex;
945
+ to: import("viem").Address | null;
946
+ transactionIndex: number | null;
947
+ typeHex: import("viem").Hex | null;
948
+ v: bigint;
949
+ value: bigint;
950
+ yParity: number;
951
+ accessList: import("viem").AccessList;
952
+ authorizationList?: undefined | undefined;
953
+ blobVersionedHashes: readonly import("viem").Hex[];
954
+ chainId: number;
955
+ type: "eip4844";
956
+ gasPrice?: undefined | undefined;
957
+ maxFeePerBlobGas: bigint;
958
+ maxFeePerGas: bigint;
959
+ maxPriorityFeePerGas: bigint;
960
+ isSystemTx?: undefined | undefined;
961
+ mint?: undefined | undefined;
962
+ sourceHash?: undefined | undefined;
963
+ } | {
964
+ blockHash: `0x${string}` | null;
965
+ blockNumber: bigint | null;
966
+ from: import("viem").Address;
967
+ gas: bigint;
968
+ hash: import("viem").Hash;
969
+ input: import("viem").Hex;
970
+ nonce: number;
971
+ r: import("viem").Hex;
972
+ s: import("viem").Hex;
973
+ to: import("viem").Address | null;
974
+ transactionIndex: number | null;
975
+ typeHex: import("viem").Hex | null;
976
+ v: bigint;
977
+ value: bigint;
978
+ yParity: number;
979
+ accessList: import("viem").AccessList;
980
+ authorizationList: import("viem").SignedAuthorizationList;
981
+ blobVersionedHashes?: undefined | undefined;
982
+ chainId: number;
983
+ type: "eip7702";
984
+ gasPrice?: undefined | undefined;
985
+ maxFeePerBlobGas?: undefined | undefined;
986
+ maxFeePerGas: bigint;
987
+ maxPriorityFeePerGas: bigint;
988
+ isSystemTx?: undefined | undefined;
989
+ mint?: undefined | undefined;
990
+ sourceHash?: undefined | undefined;
991
+ }) & {};
992
+ type: "transaction";
993
+ };
994
+ readonly transactionReceipt: {
995
+ exclude: [] | undefined;
996
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
997
+ blobGasPrice?: bigint | undefined;
998
+ blobGasUsed?: bigint | undefined;
999
+ blockHash: import("viem").Hash;
1000
+ blockNumber: bigint;
1001
+ contractAddress: import("viem").Address | null | undefined;
1002
+ cumulativeGasUsed: bigint;
1003
+ effectiveGasPrice: bigint;
1004
+ from: import("viem").Address;
1005
+ gasUsed: bigint;
1006
+ logs: import("viem").Log<bigint, number, false>[];
1007
+ logsBloom: import("viem").Hex;
1008
+ root?: `0x${string}` | undefined;
1009
+ status: "success" | "reverted";
1010
+ to: import("viem").Address | null;
1011
+ transactionHash: import("viem").Hash;
1012
+ transactionIndex: number;
1013
+ type: import("viem").TransactionType;
1014
+ l1GasPrice: bigint | null;
1015
+ l1GasUsed: bigint | null;
1016
+ l1Fee: bigint | null;
1017
+ l1FeeScalar: number | null;
1018
+ } & {};
1019
+ type: "transactionReceipt";
1020
+ };
1021
+ };
1022
+ serializers: {
1023
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
1024
+ };
1025
+ }, {
1026
+ blockExplorers: {
1027
+ readonly default: {
1028
+ readonly name: "PolygonScan";
1029
+ readonly url: "https://amoy.polygonscan.com";
1030
+ readonly apiUrl: "https://api-amoy.polygonscan.com/api";
1031
+ };
1032
+ };
1033
+ blockTime?: number | undefined | undefined;
1034
+ contracts: {
1035
+ readonly multicall3: {
1036
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1037
+ readonly blockCreated: 3127388;
1038
+ };
1039
+ };
1040
+ ensTlds?: readonly string[] | undefined;
1041
+ id: 80002;
1042
+ name: "Polygon Amoy";
1043
+ nativeCurrency: {
1044
+ readonly name: "POL";
1045
+ readonly symbol: "POL";
1046
+ readonly decimals: 18;
1047
+ };
1048
+ experimental_preconfirmationTime?: number | undefined | undefined;
1049
+ rpcUrls: {
1050
+ readonly default: {
1051
+ readonly http: readonly ["https://rpc-amoy.polygon.technology"];
1052
+ };
1053
+ };
1054
+ sourceId?: number | undefined | undefined;
1055
+ testnet: true;
1056
+ custom?: Record<string, unknown> | undefined;
1057
+ fees?: import("viem").ChainFees<undefined> | undefined;
1058
+ formatters?: undefined;
1059
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1060
+ }, {
1061
+ readonly id: 3151908;
1062
+ readonly name: "Pecorino Host";
1063
+ readonly nativeCurrency: {
1064
+ readonly decimals: 18;
1065
+ readonly name: "ETH";
1066
+ readonly symbol: "ETH";
1067
+ };
1068
+ readonly rpcUrls: {
1069
+ readonly default: {
1070
+ readonly http: readonly ["https://host-rpc.pecorino.signet.sh/"];
1071
+ };
1072
+ readonly public: {
1073
+ readonly http: readonly ["https://host-rpc.pecorino.signet.sh/"];
1074
+ };
1075
+ };
1076
+ readonly blockExplorers: {
1077
+ readonly default: {
1078
+ readonly name: "Pecorino Host Explorer";
1079
+ readonly url: "https://explorer-host.pecorino.signet.sh/";
1080
+ };
1081
+ };
1082
+ readonly testnet: true;
1083
+ }, {
1084
+ readonly id: 14174;
1085
+ readonly name: "Pecorino Signet";
1086
+ readonly nativeCurrency: {
1087
+ readonly decimals: 18;
1088
+ readonly name: "USD";
1089
+ readonly symbol: "USD";
1090
+ };
1091
+ readonly rpcUrls: {
1092
+ readonly default: {
1093
+ readonly http: readonly ["https://rpc.pecorino.signet.sh/"];
1094
+ };
1095
+ readonly public: {
1096
+ readonly http: readonly ["https://rpc.pecorino.signet.sh/"];
1097
+ };
1098
+ };
1099
+ readonly blockExplorers: {
1100
+ readonly default: {
1101
+ readonly name: "Pecorino Signet Explorer";
1102
+ readonly url: "https://explorer.pecorino.signet.sh/";
1103
+ };
1104
+ };
1105
+ readonly testnet: true;
1106
+ }];
1107
+ export declare const testnetChainsById: Map<number, Chain>;
1108
+ export declare function getTestnetChain(chainId: number): Optional<Chain>;
1109
+ export declare function isTestnetChain(chainId: number): boolean;
1110
+ //# sourceMappingURL=testnet-chains.d.ts.map