@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,1063 @@
1
+ import type { Optional } from "@otim/utils/helpers";
2
+ import type { Chain } from "viem/chains";
3
+ export declare const mainnetChains: readonly [{
4
+ blockExplorers: {
5
+ readonly default: {
6
+ readonly name: "Etherscan";
7
+ readonly url: "https://etherscan.io";
8
+ readonly apiUrl: "https://api.etherscan.io/api";
9
+ };
10
+ };
11
+ blockTime: 12000;
12
+ contracts: {
13
+ readonly ensUniversalResolver: {
14
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
15
+ readonly blockCreated: 23085558;
16
+ };
17
+ readonly multicall3: {
18
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
19
+ readonly blockCreated: 14353601;
20
+ };
21
+ };
22
+ ensTlds?: readonly string[] | undefined;
23
+ id: 1;
24
+ name: "Ethereum";
25
+ nativeCurrency: {
26
+ readonly name: "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://eth.merkle.io"];
34
+ };
35
+ };
36
+ sourceId?: number | undefined | undefined;
37
+ testnet?: boolean | undefined | undefined;
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://basescan.org";
47
+ readonly apiUrl: "https://api.basescan.org/api";
48
+ };
49
+ };
50
+ blockTime: 2000;
51
+ contracts: {
52
+ readonly disputeGameFactory: {
53
+ readonly 1: {
54
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
55
+ };
56
+ };
57
+ readonly l2OutputOracle: {
58
+ readonly 1: {
59
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
60
+ };
61
+ };
62
+ readonly multicall3: {
63
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
64
+ readonly blockCreated: 5022;
65
+ };
66
+ readonly portal: {
67
+ readonly 1: {
68
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
69
+ readonly blockCreated: 17482143;
70
+ };
71
+ };
72
+ readonly l1StandardBridge: {
73
+ readonly 1: {
74
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
75
+ readonly blockCreated: 17482143;
76
+ };
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: 8453;
99
+ name: "Base";
100
+ nativeCurrency: {
101
+ readonly name: "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://mainnet.base.org"];
109
+ };
110
+ };
111
+ sourceId: 1;
112
+ testnet?: boolean | undefined | undefined;
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
+ }, {
350
+ blockExplorers: {
351
+ readonly default: {
352
+ readonly name: "Arbiscan";
353
+ readonly url: "https://arbiscan.io";
354
+ readonly apiUrl: "https://api.arbiscan.io/api";
355
+ };
356
+ };
357
+ blockTime: 250;
358
+ contracts: {
359
+ readonly multicall3: {
360
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
361
+ readonly blockCreated: 7654707;
362
+ };
363
+ };
364
+ ensTlds?: readonly string[] | undefined;
365
+ id: 42161;
366
+ name: "Arbitrum One";
367
+ nativeCurrency: {
368
+ readonly name: "Ether";
369
+ readonly symbol: "ETH";
370
+ readonly decimals: 18;
371
+ };
372
+ experimental_preconfirmationTime?: number | undefined | undefined;
373
+ rpcUrls: {
374
+ readonly default: {
375
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
376
+ };
377
+ };
378
+ sourceId?: number | undefined | undefined;
379
+ testnet?: boolean | undefined | undefined;
380
+ custom?: Record<string, unknown> | undefined;
381
+ fees?: import("viem").ChainFees<undefined> | undefined;
382
+ formatters?: undefined;
383
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
384
+ }, {
385
+ blockExplorers: {
386
+ readonly default: {
387
+ readonly name: "Optimism Explorer";
388
+ readonly url: "https://optimistic.etherscan.io";
389
+ readonly apiUrl: "https://api-optimistic.etherscan.io/api";
390
+ };
391
+ };
392
+ blockTime: 2000;
393
+ contracts: {
394
+ readonly disputeGameFactory: {
395
+ readonly 1: {
396
+ readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
397
+ };
398
+ };
399
+ readonly l2OutputOracle: {
400
+ readonly 1: {
401
+ readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
402
+ };
403
+ };
404
+ readonly multicall3: {
405
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
406
+ readonly blockCreated: 4286263;
407
+ };
408
+ readonly portal: {
409
+ readonly 1: {
410
+ readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
411
+ };
412
+ };
413
+ readonly l1StandardBridge: {
414
+ readonly 1: {
415
+ readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
416
+ };
417
+ };
418
+ readonly gasPriceOracle: {
419
+ readonly address: "0x420000000000000000000000000000000000000F";
420
+ };
421
+ readonly l1Block: {
422
+ readonly address: "0x4200000000000000000000000000000000000015";
423
+ };
424
+ readonly l2CrossDomainMessenger: {
425
+ readonly address: "0x4200000000000000000000000000000000000007";
426
+ };
427
+ readonly l2Erc721Bridge: {
428
+ readonly address: "0x4200000000000000000000000000000000000014";
429
+ };
430
+ readonly l2StandardBridge: {
431
+ readonly address: "0x4200000000000000000000000000000000000010";
432
+ };
433
+ readonly l2ToL1MessagePasser: {
434
+ readonly address: "0x4200000000000000000000000000000000000016";
435
+ };
436
+ };
437
+ ensTlds?: readonly string[] | undefined;
438
+ id: 10;
439
+ name: "OP Mainnet";
440
+ nativeCurrency: {
441
+ readonly name: "Ether";
442
+ readonly symbol: "ETH";
443
+ readonly decimals: 18;
444
+ };
445
+ experimental_preconfirmationTime?: number | undefined | undefined;
446
+ rpcUrls: {
447
+ readonly default: {
448
+ readonly http: readonly ["https://mainnet.optimism.io"];
449
+ };
450
+ };
451
+ sourceId: 1;
452
+ testnet?: boolean | undefined | undefined;
453
+ custom?: Record<string, unknown> | undefined;
454
+ fees?: import("viem").ChainFees<undefined> | undefined;
455
+ formatters: {
456
+ readonly block: {
457
+ exclude: [] | undefined;
458
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
459
+ baseFeePerGas: bigint | null;
460
+ blobGasUsed: bigint;
461
+ difficulty: bigint;
462
+ excessBlobGas: bigint;
463
+ extraData: import("viem").Hex;
464
+ gasLimit: bigint;
465
+ gasUsed: bigint;
466
+ hash: `0x${string}` | null;
467
+ logsBloom: `0x${string}` | null;
468
+ miner: import("viem").Address;
469
+ mixHash: import("viem").Hash;
470
+ nonce: `0x${string}` | null;
471
+ number: bigint | null;
472
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
473
+ parentHash: import("viem").Hash;
474
+ receiptsRoot: import("viem").Hex;
475
+ sealFields: import("viem").Hex[];
476
+ sha3Uncles: import("viem").Hash;
477
+ size: bigint;
478
+ stateRoot: import("viem").Hash;
479
+ timestamp: bigint;
480
+ totalDifficulty: bigint | null;
481
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
482
+ transactionsRoot: import("viem").Hash;
483
+ uncles: import("viem").Hash[];
484
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
485
+ withdrawalsRoot?: `0x${string}` | undefined;
486
+ } & {};
487
+ type: "block";
488
+ };
489
+ readonly transaction: {
490
+ exclude: [] | undefined;
491
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
492
+ blockHash: `0x${string}` | null;
493
+ blockNumber: bigint | null;
494
+ from: import("viem").Address;
495
+ gas: bigint;
496
+ hash: import("viem").Hash;
497
+ input: import("viem").Hex;
498
+ nonce: number;
499
+ r: import("viem").Hex;
500
+ s: import("viem").Hex;
501
+ to: import("viem").Address | null;
502
+ transactionIndex: number | null;
503
+ typeHex: import("viem").Hex | null;
504
+ v: bigint;
505
+ value: bigint;
506
+ yParity: number;
507
+ gasPrice?: undefined | undefined;
508
+ maxFeePerBlobGas?: undefined | undefined;
509
+ maxFeePerGas: bigint;
510
+ maxPriorityFeePerGas: bigint;
511
+ isSystemTx?: boolean;
512
+ mint?: bigint | undefined | undefined;
513
+ sourceHash: import("viem").Hex;
514
+ type: "deposit";
515
+ } | {
516
+ r: import("viem").Hex;
517
+ s: import("viem").Hex;
518
+ v: bigint;
519
+ value: bigint;
520
+ gas: bigint;
521
+ to: import("viem").Address | null;
522
+ from: import("viem").Address;
523
+ nonce: number;
524
+ blockHash: `0x${string}` | null;
525
+ blockNumber: bigint | null;
526
+ transactionIndex: number | null;
527
+ hash: import("viem").Hash;
528
+ input: import("viem").Hex;
529
+ typeHex: import("viem").Hex | null;
530
+ accessList?: undefined | undefined;
531
+ authorizationList?: undefined | undefined;
532
+ blobVersionedHashes?: undefined | undefined;
533
+ chainId?: number | undefined;
534
+ yParity?: undefined | undefined;
535
+ type: "legacy";
536
+ gasPrice: bigint;
537
+ maxFeePerBlobGas?: undefined | undefined;
538
+ maxFeePerGas?: undefined | undefined;
539
+ maxPriorityFeePerGas?: undefined | undefined;
540
+ isSystemTx?: undefined | undefined;
541
+ mint?: undefined | undefined;
542
+ sourceHash?: undefined | undefined;
543
+ } | {
544
+ blockHash: `0x${string}` | null;
545
+ blockNumber: bigint | null;
546
+ from: import("viem").Address;
547
+ gas: bigint;
548
+ hash: import("viem").Hash;
549
+ input: import("viem").Hex;
550
+ nonce: number;
551
+ r: import("viem").Hex;
552
+ s: import("viem").Hex;
553
+ to: import("viem").Address | null;
554
+ transactionIndex: number | null;
555
+ typeHex: import("viem").Hex | null;
556
+ v: bigint;
557
+ value: bigint;
558
+ yParity: number;
559
+ accessList: import("viem").AccessList;
560
+ authorizationList?: undefined | undefined;
561
+ blobVersionedHashes?: undefined | undefined;
562
+ chainId: number;
563
+ type: "eip2930";
564
+ gasPrice: bigint;
565
+ maxFeePerBlobGas?: undefined | undefined;
566
+ maxFeePerGas?: undefined | undefined;
567
+ maxPriorityFeePerGas?: undefined | undefined;
568
+ isSystemTx?: undefined | undefined;
569
+ mint?: undefined | undefined;
570
+ sourceHash?: undefined | undefined;
571
+ } | {
572
+ blockHash: `0x${string}` | null;
573
+ blockNumber: bigint | null;
574
+ from: import("viem").Address;
575
+ gas: bigint;
576
+ hash: import("viem").Hash;
577
+ input: import("viem").Hex;
578
+ nonce: number;
579
+ r: import("viem").Hex;
580
+ s: import("viem").Hex;
581
+ to: import("viem").Address | null;
582
+ transactionIndex: number | null;
583
+ typeHex: import("viem").Hex | null;
584
+ v: bigint;
585
+ value: bigint;
586
+ yParity: number;
587
+ accessList: import("viem").AccessList;
588
+ authorizationList?: undefined | undefined;
589
+ blobVersionedHashes?: undefined | undefined;
590
+ chainId: number;
591
+ type: "eip1559";
592
+ gasPrice?: undefined | undefined;
593
+ maxFeePerBlobGas?: undefined | undefined;
594
+ maxFeePerGas: bigint;
595
+ maxPriorityFeePerGas: bigint;
596
+ isSystemTx?: undefined | undefined;
597
+ mint?: undefined | undefined;
598
+ sourceHash?: undefined | undefined;
599
+ } | {
600
+ blockHash: `0x${string}` | null;
601
+ blockNumber: bigint | null;
602
+ from: import("viem").Address;
603
+ gas: bigint;
604
+ hash: import("viem").Hash;
605
+ input: import("viem").Hex;
606
+ nonce: number;
607
+ r: import("viem").Hex;
608
+ s: import("viem").Hex;
609
+ to: import("viem").Address | null;
610
+ transactionIndex: number | null;
611
+ typeHex: import("viem").Hex | null;
612
+ v: bigint;
613
+ value: bigint;
614
+ yParity: number;
615
+ accessList: import("viem").AccessList;
616
+ authorizationList?: undefined | undefined;
617
+ blobVersionedHashes: readonly import("viem").Hex[];
618
+ chainId: number;
619
+ type: "eip4844";
620
+ gasPrice?: undefined | undefined;
621
+ maxFeePerBlobGas: bigint;
622
+ maxFeePerGas: bigint;
623
+ maxPriorityFeePerGas: bigint;
624
+ isSystemTx?: undefined | undefined;
625
+ mint?: undefined | undefined;
626
+ sourceHash?: undefined | undefined;
627
+ } | {
628
+ blockHash: `0x${string}` | null;
629
+ blockNumber: bigint | null;
630
+ from: import("viem").Address;
631
+ gas: bigint;
632
+ hash: import("viem").Hash;
633
+ input: import("viem").Hex;
634
+ nonce: number;
635
+ r: import("viem").Hex;
636
+ s: import("viem").Hex;
637
+ to: import("viem").Address | null;
638
+ transactionIndex: number | null;
639
+ typeHex: import("viem").Hex | null;
640
+ v: bigint;
641
+ value: bigint;
642
+ yParity: number;
643
+ accessList: import("viem").AccessList;
644
+ authorizationList: import("viem").SignedAuthorizationList;
645
+ blobVersionedHashes?: undefined | undefined;
646
+ chainId: number;
647
+ type: "eip7702";
648
+ gasPrice?: undefined | undefined;
649
+ maxFeePerBlobGas?: undefined | undefined;
650
+ maxFeePerGas: bigint;
651
+ maxPriorityFeePerGas: bigint;
652
+ isSystemTx?: undefined | undefined;
653
+ mint?: undefined | undefined;
654
+ sourceHash?: undefined | undefined;
655
+ }) & {};
656
+ type: "transaction";
657
+ };
658
+ readonly transactionReceipt: {
659
+ exclude: [] | undefined;
660
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
661
+ blobGasPrice?: bigint | undefined;
662
+ blobGasUsed?: bigint | undefined;
663
+ blockHash: import("viem").Hash;
664
+ blockNumber: bigint;
665
+ contractAddress: import("viem").Address | null | undefined;
666
+ cumulativeGasUsed: bigint;
667
+ effectiveGasPrice: bigint;
668
+ from: import("viem").Address;
669
+ gasUsed: bigint;
670
+ logs: import("viem").Log<bigint, number, false>[];
671
+ logsBloom: import("viem").Hex;
672
+ root?: `0x${string}` | undefined;
673
+ status: "success" | "reverted";
674
+ to: import("viem").Address | null;
675
+ transactionHash: import("viem").Hash;
676
+ transactionIndex: number;
677
+ type: import("viem").TransactionType;
678
+ l1GasPrice: bigint | null;
679
+ l1GasUsed: bigint | null;
680
+ l1Fee: bigint | null;
681
+ l1FeeScalar: number | null;
682
+ } & {};
683
+ type: "transactionReceipt";
684
+ };
685
+ };
686
+ serializers: {
687
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
688
+ };
689
+ }, {
690
+ blockExplorers: {
691
+ readonly default: {
692
+ readonly name: "BscScan";
693
+ readonly url: "https://bscscan.com";
694
+ readonly apiUrl: "https://api.bscscan.com/api";
695
+ };
696
+ };
697
+ blockTime: 750;
698
+ contracts: {
699
+ readonly multicall3: {
700
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
701
+ readonly blockCreated: 15921452;
702
+ };
703
+ };
704
+ ensTlds?: readonly string[] | undefined;
705
+ id: 56;
706
+ name: "BNB Smart Chain";
707
+ nativeCurrency: {
708
+ readonly decimals: 18;
709
+ readonly name: "BNB";
710
+ readonly symbol: "BNB";
711
+ };
712
+ experimental_preconfirmationTime?: number | undefined | undefined;
713
+ rpcUrls: {
714
+ readonly default: {
715
+ readonly http: readonly ["https://56.rpc.thirdweb.com"];
716
+ };
717
+ };
718
+ sourceId?: number | undefined | undefined;
719
+ testnet?: boolean | undefined | undefined;
720
+ custom?: Record<string, unknown> | undefined;
721
+ fees?: import("viem").ChainFees<undefined> | undefined;
722
+ formatters?: undefined;
723
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
724
+ }, {
725
+ blockExplorers: {
726
+ readonly default: {
727
+ readonly name: "Uniscan";
728
+ readonly url: "https://uniscan.xyz";
729
+ readonly apiUrl: "https://api.uniscan.xyz/api";
730
+ };
731
+ };
732
+ blockTime: 1000;
733
+ contracts: {
734
+ readonly multicall3: {
735
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
736
+ readonly blockCreated: 0;
737
+ };
738
+ readonly disputeGameFactory: {
739
+ readonly 1: {
740
+ readonly address: "0x2F12d621a16e2d3285929C9996f478508951dFe4";
741
+ };
742
+ };
743
+ readonly portal: {
744
+ readonly 1: {
745
+ readonly address: "0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2";
746
+ };
747
+ };
748
+ readonly l1StandardBridge: {
749
+ readonly 1: {
750
+ readonly address: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA";
751
+ };
752
+ };
753
+ readonly gasPriceOracle: {
754
+ readonly address: "0x420000000000000000000000000000000000000F";
755
+ };
756
+ readonly l1Block: {
757
+ readonly address: "0x4200000000000000000000000000000000000015";
758
+ };
759
+ readonly l2CrossDomainMessenger: {
760
+ readonly address: "0x4200000000000000000000000000000000000007";
761
+ };
762
+ readonly l2Erc721Bridge: {
763
+ readonly address: "0x4200000000000000000000000000000000000014";
764
+ };
765
+ readonly l2StandardBridge: {
766
+ readonly address: "0x4200000000000000000000000000000000000010";
767
+ };
768
+ readonly l2ToL1MessagePasser: {
769
+ readonly address: "0x4200000000000000000000000000000000000016";
770
+ };
771
+ };
772
+ ensTlds?: readonly string[] | undefined;
773
+ id: 130;
774
+ name: "Unichain";
775
+ nativeCurrency: {
776
+ readonly name: "Ether";
777
+ readonly symbol: "ETH";
778
+ readonly decimals: 18;
779
+ };
780
+ experimental_preconfirmationTime?: number | undefined | undefined;
781
+ rpcUrls: {
782
+ readonly default: {
783
+ readonly http: readonly ["https://mainnet.unichain.org/"];
784
+ };
785
+ };
786
+ sourceId: 1;
787
+ testnet?: boolean | undefined | undefined;
788
+ custom?: Record<string, unknown> | undefined;
789
+ fees?: import("viem").ChainFees<undefined> | undefined;
790
+ formatters: {
791
+ readonly block: {
792
+ exclude: [] | undefined;
793
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
794
+ baseFeePerGas: bigint | null;
795
+ blobGasUsed: bigint;
796
+ difficulty: bigint;
797
+ excessBlobGas: bigint;
798
+ extraData: import("viem").Hex;
799
+ gasLimit: bigint;
800
+ gasUsed: bigint;
801
+ hash: `0x${string}` | null;
802
+ logsBloom: `0x${string}` | null;
803
+ miner: import("viem").Address;
804
+ mixHash: import("viem").Hash;
805
+ nonce: `0x${string}` | null;
806
+ number: bigint | null;
807
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
808
+ parentHash: import("viem").Hash;
809
+ receiptsRoot: import("viem").Hex;
810
+ sealFields: import("viem").Hex[];
811
+ sha3Uncles: import("viem").Hash;
812
+ size: bigint;
813
+ stateRoot: import("viem").Hash;
814
+ timestamp: bigint;
815
+ totalDifficulty: bigint | null;
816
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
817
+ transactionsRoot: import("viem").Hash;
818
+ uncles: import("viem").Hash[];
819
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
820
+ withdrawalsRoot?: `0x${string}` | undefined;
821
+ } & {};
822
+ type: "block";
823
+ };
824
+ readonly transaction: {
825
+ exclude: [] | undefined;
826
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
827
+ blockHash: `0x${string}` | null;
828
+ blockNumber: bigint | null;
829
+ from: import("viem").Address;
830
+ gas: bigint;
831
+ hash: import("viem").Hash;
832
+ input: import("viem").Hex;
833
+ nonce: number;
834
+ r: import("viem").Hex;
835
+ s: import("viem").Hex;
836
+ to: import("viem").Address | null;
837
+ transactionIndex: number | null;
838
+ typeHex: import("viem").Hex | null;
839
+ v: bigint;
840
+ value: bigint;
841
+ yParity: number;
842
+ gasPrice?: undefined | undefined;
843
+ maxFeePerBlobGas?: undefined | undefined;
844
+ maxFeePerGas: bigint;
845
+ maxPriorityFeePerGas: bigint;
846
+ isSystemTx?: boolean;
847
+ mint?: bigint | undefined | undefined;
848
+ sourceHash: import("viem").Hex;
849
+ type: "deposit";
850
+ } | {
851
+ r: import("viem").Hex;
852
+ s: import("viem").Hex;
853
+ v: bigint;
854
+ value: bigint;
855
+ gas: bigint;
856
+ to: import("viem").Address | null;
857
+ from: import("viem").Address;
858
+ nonce: number;
859
+ blockHash: `0x${string}` | null;
860
+ blockNumber: bigint | null;
861
+ transactionIndex: number | null;
862
+ hash: import("viem").Hash;
863
+ input: import("viem").Hex;
864
+ typeHex: import("viem").Hex | null;
865
+ accessList?: undefined | undefined;
866
+ authorizationList?: undefined | undefined;
867
+ blobVersionedHashes?: undefined | undefined;
868
+ chainId?: number | undefined;
869
+ yParity?: undefined | undefined;
870
+ type: "legacy";
871
+ gasPrice: bigint;
872
+ maxFeePerBlobGas?: undefined | undefined;
873
+ maxFeePerGas?: undefined | undefined;
874
+ maxPriorityFeePerGas?: undefined | undefined;
875
+ isSystemTx?: undefined | undefined;
876
+ mint?: undefined | undefined;
877
+ sourceHash?: undefined | undefined;
878
+ } | {
879
+ blockHash: `0x${string}` | null;
880
+ blockNumber: bigint | null;
881
+ from: import("viem").Address;
882
+ gas: bigint;
883
+ hash: import("viem").Hash;
884
+ input: import("viem").Hex;
885
+ nonce: number;
886
+ r: import("viem").Hex;
887
+ s: import("viem").Hex;
888
+ to: import("viem").Address | null;
889
+ transactionIndex: number | null;
890
+ typeHex: import("viem").Hex | null;
891
+ v: bigint;
892
+ value: bigint;
893
+ yParity: number;
894
+ accessList: import("viem").AccessList;
895
+ authorizationList?: undefined | undefined;
896
+ blobVersionedHashes?: undefined | undefined;
897
+ chainId: number;
898
+ type: "eip2930";
899
+ gasPrice: bigint;
900
+ maxFeePerBlobGas?: undefined | undefined;
901
+ maxFeePerGas?: undefined | undefined;
902
+ maxPriorityFeePerGas?: undefined | undefined;
903
+ isSystemTx?: undefined | undefined;
904
+ mint?: undefined | undefined;
905
+ sourceHash?: undefined | undefined;
906
+ } | {
907
+ blockHash: `0x${string}` | null;
908
+ blockNumber: bigint | null;
909
+ from: import("viem").Address;
910
+ gas: bigint;
911
+ hash: import("viem").Hash;
912
+ input: import("viem").Hex;
913
+ nonce: number;
914
+ r: import("viem").Hex;
915
+ s: import("viem").Hex;
916
+ to: import("viem").Address | null;
917
+ transactionIndex: number | null;
918
+ typeHex: import("viem").Hex | null;
919
+ v: bigint;
920
+ value: bigint;
921
+ yParity: number;
922
+ accessList: import("viem").AccessList;
923
+ authorizationList?: undefined | undefined;
924
+ blobVersionedHashes?: undefined | undefined;
925
+ chainId: number;
926
+ type: "eip1559";
927
+ gasPrice?: undefined | undefined;
928
+ maxFeePerBlobGas?: undefined | undefined;
929
+ maxFeePerGas: bigint;
930
+ maxPriorityFeePerGas: bigint;
931
+ isSystemTx?: undefined | undefined;
932
+ mint?: undefined | undefined;
933
+ sourceHash?: undefined | undefined;
934
+ } | {
935
+ blockHash: `0x${string}` | null;
936
+ blockNumber: bigint | null;
937
+ from: import("viem").Address;
938
+ gas: bigint;
939
+ hash: import("viem").Hash;
940
+ input: import("viem").Hex;
941
+ nonce: number;
942
+ r: import("viem").Hex;
943
+ s: import("viem").Hex;
944
+ to: import("viem").Address | null;
945
+ transactionIndex: number | null;
946
+ typeHex: import("viem").Hex | null;
947
+ v: bigint;
948
+ value: bigint;
949
+ yParity: number;
950
+ accessList: import("viem").AccessList;
951
+ authorizationList?: undefined | undefined;
952
+ blobVersionedHashes: readonly import("viem").Hex[];
953
+ chainId: number;
954
+ type: "eip4844";
955
+ gasPrice?: undefined | undefined;
956
+ maxFeePerBlobGas: bigint;
957
+ maxFeePerGas: bigint;
958
+ maxPriorityFeePerGas: bigint;
959
+ isSystemTx?: undefined | undefined;
960
+ mint?: undefined | undefined;
961
+ sourceHash?: undefined | undefined;
962
+ } | {
963
+ blockHash: `0x${string}` | null;
964
+ blockNumber: bigint | null;
965
+ from: import("viem").Address;
966
+ gas: bigint;
967
+ hash: import("viem").Hash;
968
+ input: import("viem").Hex;
969
+ nonce: number;
970
+ r: import("viem").Hex;
971
+ s: import("viem").Hex;
972
+ to: import("viem").Address | null;
973
+ transactionIndex: number | null;
974
+ typeHex: import("viem").Hex | null;
975
+ v: bigint;
976
+ value: bigint;
977
+ yParity: number;
978
+ accessList: import("viem").AccessList;
979
+ authorizationList: import("viem").SignedAuthorizationList;
980
+ blobVersionedHashes?: undefined | undefined;
981
+ chainId: number;
982
+ type: "eip7702";
983
+ gasPrice?: undefined | undefined;
984
+ maxFeePerBlobGas?: undefined | undefined;
985
+ maxFeePerGas: bigint;
986
+ maxPriorityFeePerGas: bigint;
987
+ isSystemTx?: undefined | undefined;
988
+ mint?: undefined | undefined;
989
+ sourceHash?: undefined | undefined;
990
+ }) & {};
991
+ type: "transaction";
992
+ };
993
+ readonly transactionReceipt: {
994
+ exclude: [] | undefined;
995
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
996
+ blobGasPrice?: bigint | undefined;
997
+ blobGasUsed?: bigint | undefined;
998
+ blockHash: import("viem").Hash;
999
+ blockNumber: bigint;
1000
+ contractAddress: import("viem").Address | null | undefined;
1001
+ cumulativeGasUsed: bigint;
1002
+ effectiveGasPrice: bigint;
1003
+ from: import("viem").Address;
1004
+ gasUsed: bigint;
1005
+ logs: import("viem").Log<bigint, number, false>[];
1006
+ logsBloom: import("viem").Hex;
1007
+ root?: `0x${string}` | undefined;
1008
+ status: "success" | "reverted";
1009
+ to: import("viem").Address | null;
1010
+ transactionHash: import("viem").Hash;
1011
+ transactionIndex: number;
1012
+ type: import("viem").TransactionType;
1013
+ l1GasPrice: bigint | null;
1014
+ l1GasUsed: bigint | null;
1015
+ l1Fee: bigint | null;
1016
+ l1FeeScalar: number | null;
1017
+ } & {};
1018
+ type: "transactionReceipt";
1019
+ };
1020
+ };
1021
+ serializers: {
1022
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
1023
+ };
1024
+ }, {
1025
+ blockExplorers: {
1026
+ readonly default: {
1027
+ readonly name: "PolygonScan";
1028
+ readonly url: "https://polygonscan.com";
1029
+ readonly apiUrl: "https://api.polygonscan.com/api";
1030
+ };
1031
+ };
1032
+ blockTime: 2000;
1033
+ contracts: {
1034
+ readonly multicall3: {
1035
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1036
+ readonly blockCreated: 25770160;
1037
+ };
1038
+ };
1039
+ ensTlds?: readonly string[] | undefined;
1040
+ id: 137;
1041
+ name: "Polygon";
1042
+ nativeCurrency: {
1043
+ readonly name: "POL";
1044
+ readonly symbol: "POL";
1045
+ readonly decimals: 18;
1046
+ };
1047
+ experimental_preconfirmationTime?: number | undefined | undefined;
1048
+ rpcUrls: {
1049
+ readonly default: {
1050
+ readonly http: readonly ["https://polygon-rpc.com"];
1051
+ };
1052
+ };
1053
+ sourceId?: number | undefined | undefined;
1054
+ testnet?: boolean | undefined | undefined;
1055
+ custom?: Record<string, unknown> | undefined;
1056
+ fees?: import("viem").ChainFees<undefined> | undefined;
1057
+ formatters?: undefined;
1058
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1059
+ }];
1060
+ export declare const mainnetChainsById: Map<number, Chain>;
1061
+ export declare function getMainnetChain(chainId: number): Optional<Chain>;
1062
+ export declare function isMainnetChain(chainId: number): boolean;
1063
+ //# sourceMappingURL=mainnet-chains.d.ts.map