tapimo 0.14.0 → 0.15.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 (1141) hide show
  1. package/README.md +7 -4
  2. package/dist/ApiKey.js +1 -1
  3. package/dist/ApiKey.js.map +1 -1
  4. package/dist/ApiKeys.d.ts +95 -14
  5. package/dist/ApiKeys.d.ts.map +1 -1
  6. package/dist/ApiKeys.js +360 -49
  7. package/dist/ApiKeys.js.map +1 -1
  8. package/dist/App.d.ts +12457 -10365
  9. package/dist/App.d.ts.map +1 -1
  10. package/dist/App.js +300 -22
  11. package/dist/App.js.map +1 -1
  12. package/dist/Assets.d.ts.map +1 -1
  13. package/dist/Assets.js +2 -1
  14. package/dist/Assets.js.map +1 -1
  15. package/dist/Handler.d.ts +0 -1
  16. package/dist/Handler.d.ts.map +1 -1
  17. package/dist/Handler.js +0 -1
  18. package/dist/Handler.js.map +1 -1
  19. package/dist/Scope.d.ts +13 -5
  20. package/dist/Scope.d.ts.map +1 -1
  21. package/dist/Scope.js +16 -5
  22. package/dist/Scope.js.map +1 -1
  23. package/dist/Webhooks.js +1 -1
  24. package/dist/Webhooks.js.map +1 -1
  25. package/dist/admin/App.d.ts +3057 -549
  26. package/dist/admin/App.d.ts.map +1 -1
  27. package/dist/admin/App.js +26 -5
  28. package/dist/admin/App.js.map +1 -1
  29. package/dist/admin/apps/api-keys.d.ts +159 -7
  30. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  31. package/dist/admin/apps/api-keys.js +95 -43
  32. package/dist/admin/apps/api-keys.js.map +1 -1
  33. package/dist/admin/apps/earn-vaults.d.ts +1398 -0
  34. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  35. package/dist/admin/apps/earn-vaults.js +463 -7
  36. package/dist/admin/apps/earn-vaults.js.map +1 -1
  37. package/dist/admin/apps/organizations.d.ts +267 -15
  38. package/dist/admin/apps/organizations.d.ts.map +1 -1
  39. package/dist/admin/apps/organizations.js +241 -25
  40. package/dist/admin/apps/organizations.js.map +1 -1
  41. package/dist/admin/apps/routes-support.d.ts +95 -0
  42. package/dist/admin/apps/routes-support.d.ts.map +1 -0
  43. package/dist/admin/apps/routes-support.js +151 -0
  44. package/dist/admin/apps/routes-support.js.map +1 -0
  45. package/dist/admin/apps/routes.d.ts +2764 -0
  46. package/dist/admin/apps/routes.d.ts.map +1 -0
  47. package/dist/admin/apps/routes.js +728 -0
  48. package/dist/admin/apps/routes.js.map +1 -0
  49. package/dist/admin/apps/subsidies.d.ts +501 -0
  50. package/dist/admin/apps/subsidies.d.ts.map +1 -0
  51. package/dist/admin/apps/subsidies.js +384 -0
  52. package/dist/admin/apps/subsidies.js.map +1 -0
  53. package/dist/admin/apps/verified-tokens.d.ts +88 -88
  54. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  55. package/dist/admin/apps/verified-tokens.js +3 -3
  56. package/dist/admin/apps/verified-tokens.js.map +1 -1
  57. package/dist/admin/ui.generated.d.ts +1 -1
  58. package/dist/admin/ui.generated.d.ts.map +1 -1
  59. package/dist/admin/ui.generated.js +129 -69
  60. package/dist/admin/ui.generated.js.map +1 -1
  61. package/dist/analytics/Analytics.d.ts +5 -2
  62. package/dist/analytics/Analytics.d.ts.map +1 -1
  63. package/dist/analytics/Analytics.js +31 -1
  64. package/dist/analytics/Analytics.js.map +1 -1
  65. package/dist/analytics/tables/requestEvents.d.ts +2 -1
  66. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  67. package/dist/analytics/tables/requestEvents.js +10 -1
  68. package/dist/analytics/tables/requestEvents.js.map +1 -1
  69. package/dist/analytics/tables/routesLifecycleIntervals.d.ts +72 -0
  70. package/dist/analytics/tables/routesLifecycleIntervals.d.ts.map +1 -0
  71. package/dist/analytics/tables/routesLifecycleIntervals.js +56 -0
  72. package/dist/analytics/tables/routesLifecycleIntervals.js.map +1 -0
  73. package/dist/apps/Zones.d.ts +21 -12526
  74. package/dist/apps/Zones.d.ts.map +1 -1
  75. package/dist/apps/Zones.js +37 -5
  76. package/dist/apps/Zones.js.map +1 -1
  77. package/dist/apps/data/App.d.ts +3971 -2595
  78. package/dist/apps/data/App.d.ts.map +1 -1
  79. package/dist/apps/data/App.js +76 -21
  80. package/dist/apps/data/App.js.map +1 -1
  81. package/dist/apps/data/routes/activities.d.ts +364 -34
  82. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  83. package/dist/apps/data/routes/activities.js +495 -190
  84. package/dist/apps/data/routes/activities.js.map +1 -1
  85. package/dist/apps/data/routes/addresses.d.ts +72 -0
  86. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  87. package/dist/apps/data/routes/blocks.d.ts +37 -37
  88. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  89. package/dist/apps/data/routes/coingecko.js +47 -21
  90. package/dist/apps/data/routes/coingecko.js.map +1 -1
  91. package/dist/apps/data/routes/earn.d.ts +1450 -337
  92. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  93. package/dist/apps/data/routes/earn.js +1226 -144
  94. package/dist/apps/data/routes/earn.js.map +1 -1
  95. package/dist/apps/data/routes/fee-amm.d.ts +5 -0
  96. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  97. package/dist/apps/data/routes/fee-amm.js +31 -19
  98. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  99. package/dist/apps/data/routes/indexer.d.ts +125 -0
  100. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  101. package/dist/apps/data/routes/indexer.js +83 -27
  102. package/dist/apps/data/routes/indexer.js.map +1 -1
  103. package/dist/apps/data/routes/rpc.d.ts +507 -33
  104. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  105. package/dist/apps/data/routes/rpc.js +266 -156
  106. package/dist/apps/data/routes/rpc.js.map +1 -1
  107. package/dist/apps/data/routes/tokenlist.d.ts +47 -15
  108. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  109. package/dist/apps/data/routes/tokenlist.js +68 -11
  110. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  111. package/dist/apps/data/routes/tokens.d.ts +2 -0
  112. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  113. package/dist/apps/data/routes/tokens.js +26 -14
  114. package/dist/apps/data/routes/tokens.js.map +1 -1
  115. package/dist/apps/data/routes/transfers.d.ts +28 -12
  116. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  117. package/dist/apps/data/routes/transfers.js +9 -7
  118. package/dist/apps/data/routes/transfers.js.map +1 -1
  119. package/dist/apps/data/routes/valuation.d.ts +30 -30
  120. package/dist/apps/data/routes/verified-tokens.d.ts +9 -9
  121. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  122. package/dist/apps/data/routes/verified-tokens.js +64 -20
  123. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  124. package/dist/apps/data/routes/webhooks.d.ts +613 -176
  125. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  126. package/dist/apps/data/routes/webhooks.js +291 -195
  127. package/dist/apps/data/routes/webhooks.js.map +1 -1
  128. package/dist/apps/data/routes/zones.d.ts.map +1 -1
  129. package/dist/apps/data/routes/zones.js +20 -12
  130. package/dist/apps/data/routes/zones.js.map +1 -1
  131. package/dist/apps/docs/reference.js +2 -2
  132. package/dist/apps/docs/reference.js.map +1 -1
  133. package/dist/apps/index.d.ts +1 -1
  134. package/dist/apps/index.d.ts.map +1 -1
  135. package/dist/apps/index.js +1 -1
  136. package/dist/apps/index.js.map +1 -1
  137. package/dist/apps/management/App.d.ts +3763 -3385
  138. package/dist/apps/management/App.d.ts.map +1 -1
  139. package/dist/apps/management/App.js +5 -14
  140. package/dist/apps/management/App.js.map +1 -1
  141. package/dist/apps/management/Billing.d.ts +48 -7
  142. package/dist/apps/management/Billing.d.ts.map +1 -1
  143. package/dist/apps/management/Billing.js +204 -25
  144. package/dist/apps/management/Billing.js.map +1 -1
  145. package/dist/apps/management/routes/api-keys.d.ts +106 -4
  146. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  147. package/dist/apps/management/routes/api-keys.js +43 -15
  148. package/dist/apps/management/routes/api-keys.js.map +1 -1
  149. package/dist/apps/management/routes/billing.d.ts +290 -4
  150. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  151. package/dist/apps/management/routes/billing.js +274 -49
  152. package/dist/apps/management/routes/billing.js.map +1 -1
  153. package/dist/apps/management/routes/faucet.d.ts +6 -6
  154. package/dist/apps/management/routes/faucet.js +1 -1
  155. package/dist/apps/management/routes/faucet.js.map +1 -1
  156. package/dist/apps/management/routes/invitations.d.ts +77 -2
  157. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  158. package/dist/apps/management/routes/invitations.js +117 -13
  159. package/dist/apps/management/routes/invitations.js.map +1 -1
  160. package/dist/apps/management/routes/invite-links.d.ts +4 -4
  161. package/dist/apps/management/routes/me.d.ts.map +1 -1
  162. package/dist/apps/management/routes/me.js +6 -2
  163. package/dist/apps/management/routes/me.js.map +1 -1
  164. package/dist/apps/management/routes/members.d.ts +30 -30
  165. package/dist/apps/management/routes/orgs.d.ts +18 -2
  166. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  167. package/dist/apps/management/routes/orgs.js +52 -12
  168. package/dist/apps/management/routes/orgs.js.map +1 -1
  169. package/dist/apps/management/routes/projects.d.ts +4 -4
  170. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  171. package/dist/apps/management/routes/projects.js +6 -1
  172. package/dist/apps/management/routes/projects.js.map +1 -1
  173. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  174. package/dist/apps/management/routes/scopes.js +4 -1
  175. package/dist/apps/management/routes/scopes.js.map +1 -1
  176. package/dist/apps/management/routes/usage.d.ts +24 -24
  177. package/dist/apps/management/routes/usage.js +21 -4
  178. package/dist/apps/management/routes/usage.js.map +1 -1
  179. package/dist/apps/management/routes/verified-token-requests.d.ts +2 -2
  180. package/dist/apps/management/routes/webhooks.d.ts +280 -214
  181. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  182. package/dist/apps/management/routes/webhooks.js +58 -12
  183. package/dist/apps/management/routes/webhooks.js.map +1 -1
  184. package/dist/apps/mcp.d.ts +1 -1
  185. package/dist/apps/mcp.js +7 -7
  186. package/dist/apps/mcp.js.map +1 -1
  187. package/dist/apps/mpp/App.d.ts.map +1 -1
  188. package/dist/apps/mpp/App.js +35 -7
  189. package/dist/apps/mpp/App.js.map +1 -1
  190. package/dist/apps/mpp/internal/Adapter.d.ts +2 -0
  191. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  192. package/dist/apps/mpp/internal/Adapter.js +30 -1
  193. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  194. package/dist/apps/mpp/internal/Policy.d.ts +22 -4
  195. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  196. package/dist/apps/mpp/internal/Policy.js +24 -6
  197. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  198. package/dist/apps/mpp/internal/Sponsorship.d.ts +3 -0
  199. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
  200. package/dist/apps/mpp/internal/Sponsorship.js +6 -3
  201. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
  202. package/dist/apps/relay/App.d.ts +2 -0
  203. package/dist/apps/relay/App.d.ts.map +1 -1
  204. package/dist/apps/relay/App.js +134 -75
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/relay/Sponsorships.d.ts +5 -3
  207. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  208. package/dist/apps/relay/Sponsorships.js +209 -28
  209. package/dist/apps/relay/Sponsorships.js.map +1 -1
  210. package/dist/apps/{funding → routes}/Access.d.ts +4 -4
  211. package/dist/apps/routes/Access.d.ts.map +1 -0
  212. package/dist/apps/{funding → routes}/Access.js +4 -4
  213. package/dist/apps/routes/Access.js.map +1 -0
  214. package/dist/apps/{funding → routes}/App.d.ts +418 -124
  215. package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
  216. package/dist/apps/{funding → routes}/App.js +16 -16
  217. package/dist/apps/routes/App.js.map +1 -0
  218. package/dist/apps/routes/Inventory.d.ts.map +1 -0
  219. package/dist/apps/{funding → routes}/Inventory.js +2 -2
  220. package/dist/apps/routes/Inventory.js.map +1 -0
  221. package/dist/apps/routes/index.d.ts +2 -0
  222. package/dist/apps/routes/index.d.ts.map +1 -0
  223. package/dist/apps/routes/index.js +2 -0
  224. package/dist/apps/routes/index.js.map +1 -0
  225. package/dist/apps/{funding → routes}/routes/chains.d.ts +7 -7
  226. package/dist/apps/routes/routes/chains.d.ts.map +1 -0
  227. package/dist/apps/{funding → routes}/routes/chains.js +25 -25
  228. package/dist/apps/routes/routes/chains.js.map +1 -0
  229. package/dist/apps/{funding → routes}/routes/deposit-addresses.d.ts +107 -43
  230. package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
  231. package/dist/apps/{funding → routes}/routes/deposit-addresses.js +497 -222
  232. package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
  233. package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
  234. package/dist/apps/routes/routes/providers.d.ts.map +1 -0
  235. package/dist/apps/routes/routes/providers.js +57 -0
  236. package/dist/apps/routes/routes/providers.js.map +1 -0
  237. package/dist/apps/{funding → routes}/routes/quotes.d.ts +19 -16
  238. package/dist/apps/routes/routes/quotes.d.ts.map +1 -0
  239. package/dist/apps/{funding → routes}/routes/quotes.js +55 -38
  240. package/dist/apps/routes/routes/quotes.js.map +1 -0
  241. package/dist/apps/{funding → routes}/routes/transfers.d.ts +379 -74
  242. package/dist/apps/routes/routes/transfers.d.ts.map +1 -0
  243. package/dist/apps/routes/routes/transfers.js +1140 -0
  244. package/dist/apps/routes/routes/transfers.js.map +1 -0
  245. package/dist/cli/Cli.d.ts +30 -0
  246. package/dist/cli/Cli.d.ts.map +1 -1
  247. package/dist/cli/commands/admin.d.ts +36 -0
  248. package/dist/cli/commands/admin.d.ts.map +1 -1
  249. package/dist/cli/commands/admin.js +273 -0
  250. package/dist/cli/commands/admin.js.map +1 -1
  251. package/dist/cloudflare.d.ts +16 -14
  252. package/dist/cloudflare.d.ts.map +1 -1
  253. package/dist/cloudflare.js +26 -21
  254. package/dist/cloudflare.js.map +1 -1
  255. package/dist/db/Db.d.ts +63 -21
  256. package/dist/db/Db.d.ts.map +1 -1
  257. package/dist/db/Db.js +1030 -15
  258. package/dist/db/Db.js.map +1 -1
  259. package/dist/db/Schema.d.ts +780 -133
  260. package/dist/db/Schema.d.ts.map +1 -1
  261. package/dist/db/Schema.js +575 -162
  262. package/dist/db/Schema.js.map +1 -1
  263. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
  264. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
  265. package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
  266. package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
  267. package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
  268. package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
  269. package/dist/db/tables/apiKeyAdmissions.js +142 -0
  270. package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
  271. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
  272. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
  273. package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
  274. package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
  275. package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
  276. package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
  277. package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
  278. package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
  279. package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
  280. package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
  281. package/dist/db/tables/apiKeyRevocations.js +98 -0
  282. package/dist/db/tables/apiKeyRevocations.js.map +1 -0
  283. package/dist/db/tables/authAccounts.d.ts +47 -0
  284. package/dist/db/tables/authAccounts.d.ts.map +1 -0
  285. package/dist/db/tables/authAccounts.js +72 -0
  286. package/dist/db/tables/authAccounts.js.map +1 -0
  287. package/dist/db/tables/authSessions.d.ts +12 -0
  288. package/dist/db/tables/authSessions.d.ts.map +1 -0
  289. package/dist/db/tables/authSessions.js +2 -0
  290. package/dist/db/tables/authSessions.js.map +1 -0
  291. package/dist/db/tables/authVerifications.d.ts +12 -0
  292. package/dist/db/tables/authVerifications.d.ts.map +1 -0
  293. package/dist/db/tables/authVerifications.js +2 -0
  294. package/dist/db/tables/authVerifications.js.map +1 -0
  295. package/dist/db/tables/invitations.d.ts +17 -1
  296. package/dist/db/tables/invitations.d.ts.map +1 -1
  297. package/dist/db/tables/invitations.js +123 -43
  298. package/dist/db/tables/invitations.js.map +1 -1
  299. package/dist/db/tables/memberships.d.ts +8 -0
  300. package/dist/db/tables/memberships.d.ts.map +1 -1
  301. package/dist/db/tables/memberships.js +51 -2
  302. package/dist/db/tables/memberships.js.map +1 -1
  303. package/dist/db/tables/organizations.d.ts +32 -10
  304. package/dist/db/tables/organizations.d.ts.map +1 -1
  305. package/dist/db/tables/organizations.js +110 -49
  306. package/dist/db/tables/organizations.js.map +1 -1
  307. package/dist/db/tables/projects.d.ts +2 -0
  308. package/dist/db/tables/projects.d.ts.map +1 -1
  309. package/dist/db/tables/projects.js +12 -3
  310. package/dist/db/tables/projects.js.map +1 -1
  311. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  312. package/dist/db/tables/requestUsage.js.map +1 -1
  313. package/dist/db/tables/rewardAccounts.d.ts +86 -0
  314. package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
  315. package/dist/db/tables/rewardAccounts.js +88 -0
  316. package/dist/db/tables/rewardAccounts.js.map +1 -0
  317. package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
  318. package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
  319. package/dist/db/tables/rewardCampaignDistributors.js +30 -0
  320. package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
  321. package/dist/db/tables/rewardCampaigns.d.ts +171 -0
  322. package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
  323. package/dist/db/tables/rewardCampaigns.js +392 -0
  324. package/dist/db/tables/rewardCampaigns.js.map +1 -0
  325. package/dist/db/tables/rewardCredits.d.ts +53 -0
  326. package/dist/db/tables/rewardCredits.d.ts.map +1 -0
  327. package/dist/db/tables/rewardCredits.js +63 -0
  328. package/dist/db/tables/rewardCredits.js.map +1 -0
  329. package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
  330. package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
  331. package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
  332. package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
  333. package/dist/db/tables/rewardRuns.d.ts +188 -0
  334. package/dist/db/tables/rewardRuns.d.ts.map +1 -0
  335. package/dist/db/tables/rewardRuns.js +278 -0
  336. package/dist/db/tables/rewardRuns.js.map +1 -0
  337. package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
  338. package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
  339. package/dist/db/tables/rewardTransactionAttempts.js +163 -0
  340. package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
  341. package/dist/db/tables/routesCatalog.d.ts +58 -0
  342. package/dist/db/tables/routesCatalog.d.ts.map +1 -0
  343. package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
  344. package/dist/db/tables/routesCatalog.js.map +1 -0
  345. package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
  346. package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
  347. package/dist/db/tables/routesDepositAddresses.js +587 -0
  348. package/dist/db/tables/routesDepositAddresses.js.map +1 -0
  349. package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
  350. package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
  351. package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
  352. package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
  353. package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
  354. package/dist/db/tables/routesDeposits.d.ts.map +1 -0
  355. package/dist/db/tables/routesDeposits.js +576 -0
  356. package/dist/db/tables/routesDeposits.js.map +1 -0
  357. package/dist/db/tables/routesIdempotency.d.ts +166 -0
  358. package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
  359. package/dist/db/tables/routesIdempotency.js +330 -0
  360. package/dist/db/tables/routesIdempotency.js.map +1 -0
  361. package/dist/db/tables/routesSubsidies.d.ts +27 -0
  362. package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
  363. package/dist/db/tables/routesSubsidies.js +45 -0
  364. package/dist/db/tables/routesSubsidies.js.map +1 -0
  365. package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
  366. package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
  367. package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
  368. package/dist/db/tables/routesTransferEvents.js.map +1 -0
  369. package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
  370. package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
  371. package/dist/db/tables/routesTransferSubsidies.js +17 -0
  372. package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
  373. package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
  374. package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
  375. package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
  376. package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
  377. package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
  378. package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
  379. package/dist/db/tables/{fundingTransferTransactions.js → routesTransferTransactions.js} +31 -13
  380. package/dist/db/tables/routesTransferTransactions.js.map +1 -0
  381. package/dist/db/tables/routesTransfers.d.ts +319 -0
  382. package/dist/db/tables/routesTransfers.d.ts.map +1 -0
  383. package/dist/db/tables/routesTransfers.js +372 -0
  384. package/dist/db/tables/routesTransfers.js.map +1 -0
  385. package/dist/db/tables/sponsoredTransactions.d.ts +75 -20
  386. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  387. package/dist/db/tables/sponsoredTransactions.js +124 -54
  388. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  389. package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
  390. package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
  391. package/dist/db/tables/sponsorshipAttributions.js +77 -0
  392. package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
  393. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
  394. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
  395. package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
  396. package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
  397. package/dist/db/tables/stripeCustomers.d.ts +11 -0
  398. package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
  399. package/dist/db/tables/stripeCustomers.js +13 -0
  400. package/dist/db/tables/stripeCustomers.js.map +1 -1
  401. package/dist/db/tables/users.d.ts +17 -1
  402. package/dist/db/tables/users.d.ts.map +1 -1
  403. package/dist/db/tables/users.js +47 -2
  404. package/dist/db/tables/users.js.map +1 -1
  405. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  406. package/dist/db/tables/webhookQueueEvents.js +5 -1
  407. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  408. package/dist/db/tables/webhookSubscriptions.d.ts +19 -11
  409. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  410. package/dist/db/tables/webhookSubscriptions.js +45 -13
  411. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  412. package/dist/handlers/internal/executionError.d.ts +2 -2
  413. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  414. package/dist/handlers/internal/executionError.js +1 -2
  415. package/dist/handlers/internal/executionError.js.map +1 -1
  416. package/dist/handlers/internal/multisig.d.ts +4 -232
  417. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  418. package/dist/handlers/internal/multisig.js +11 -537
  419. package/dist/handlers/internal/multisig.js.map +1 -1
  420. package/dist/handlers/internal/sponsorship.d.ts +19 -8
  421. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  422. package/dist/handlers/internal/sponsorship.js +13 -9
  423. package/dist/handlers/internal/sponsorship.js.map +1 -1
  424. package/dist/handlers/relay.d.ts +9 -12
  425. package/dist/handlers/relay.d.ts.map +1 -1
  426. package/dist/handlers/relay.js +81 -85
  427. package/dist/handlers/relay.js.map +1 -1
  428. package/dist/index.d.ts +0 -17
  429. package/dist/index.d.ts.map +1 -1
  430. package/dist/index.js +0 -17
  431. package/dist/index.js.map +1 -1
  432. package/dist/internal/AssetResponse.d.ts +12 -0
  433. package/dist/internal/AssetResponse.d.ts.map +1 -0
  434. package/dist/internal/AssetResponse.js +21 -0
  435. package/dist/internal/AssetResponse.js.map +1 -0
  436. package/dist/internal/Auth.d.ts +48 -12
  437. package/dist/internal/Auth.d.ts.map +1 -1
  438. package/dist/internal/Auth.js +603 -175
  439. package/dist/internal/Auth.js.map +1 -1
  440. package/dist/internal/BetterAuth.d.ts +1488 -0
  441. package/dist/internal/BetterAuth.d.ts.map +1 -0
  442. package/dist/internal/BetterAuth.js +253 -0
  443. package/dist/internal/BetterAuth.js.map +1 -0
  444. package/dist/internal/Cache.d.ts +2 -0
  445. package/dist/internal/Cache.d.ts.map +1 -1
  446. package/dist/internal/Cache.js +2 -0
  447. package/dist/internal/Cache.js.map +1 -1
  448. package/dist/internal/EarnRates.d.ts +26 -3
  449. package/dist/internal/EarnRates.d.ts.map +1 -1
  450. package/dist/internal/EarnRates.js +84 -19
  451. package/dist/internal/EarnRates.js.map +1 -1
  452. package/dist/internal/EarnSharePrices.d.ts +120 -0
  453. package/dist/internal/EarnSharePrices.d.ts.map +1 -0
  454. package/dist/internal/EarnSharePrices.js +179 -0
  455. package/dist/internal/EarnSharePrices.js.map +1 -0
  456. package/dist/internal/EarnVaults.d.ts +4 -0
  457. package/dist/internal/EarnVaults.d.ts.map +1 -1
  458. package/dist/internal/EarnVaults.js +27 -10
  459. package/dist/internal/EarnVaults.js.map +1 -1
  460. package/dist/internal/Email.d.ts +37 -0
  461. package/dist/internal/Email.d.ts.map +1 -0
  462. package/dist/internal/Email.js +16 -0
  463. package/dist/internal/Email.js.map +1 -0
  464. package/dist/internal/Log.d.ts +32 -28
  465. package/dist/internal/Log.d.ts.map +1 -1
  466. package/dist/internal/Log.js +18 -11
  467. package/dist/internal/Log.js.map +1 -1
  468. package/dist/internal/MetricSink.d.ts +3 -0
  469. package/dist/internal/MetricSink.d.ts.map +1 -1
  470. package/dist/internal/MetricSink.js +67 -8
  471. package/dist/internal/MetricSink.js.map +1 -1
  472. package/dist/internal/Mpp.d.ts.map +1 -1
  473. package/dist/internal/Mpp.js +20 -25
  474. package/dist/internal/Mpp.js.map +1 -1
  475. package/dist/internal/OpenApi.d.ts +26 -3
  476. package/dist/internal/OpenApi.d.ts.map +1 -1
  477. package/dist/internal/OpenApi.js +25 -10
  478. package/dist/internal/OpenApi.js.map +1 -1
  479. package/dist/internal/Provider.d.ts +1 -1
  480. package/dist/internal/Provider.d.ts.map +1 -1
  481. package/dist/internal/RateLimit.d.ts.map +1 -1
  482. package/dist/internal/RateLimit.js +13 -1
  483. package/dist/internal/RateLimit.js.map +1 -1
  484. package/dist/internal/Store.d.ts +16 -0
  485. package/dist/internal/Store.d.ts.map +1 -1
  486. package/dist/internal/Store.js +59 -8
  487. package/dist/internal/Store.js.map +1 -1
  488. package/dist/internal/Tidx.d.ts +9 -2
  489. package/dist/internal/Tidx.d.ts.map +1 -1
  490. package/dist/internal/Tidx.js +78 -11
  491. package/dist/internal/Tidx.js.map +1 -1
  492. package/dist/internal/Timing.d.ts +26 -0
  493. package/dist/internal/Timing.d.ts.map +1 -1
  494. package/dist/internal/Timing.js +63 -5
  495. package/dist/internal/Timing.js.map +1 -1
  496. package/dist/internal/VercelOidc.d.ts +94 -0
  497. package/dist/internal/VercelOidc.d.ts.map +1 -0
  498. package/dist/internal/VercelOidc.js +128 -0
  499. package/dist/internal/VercelOidc.js.map +1 -0
  500. package/dist/internal/VerifiedTokens.d.ts +2 -8
  501. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  502. package/dist/internal/VerifiedTokens.js +24 -24
  503. package/dist/internal/VerifiedTokens.js.map +1 -1
  504. package/dist/internal/Viem.d.ts +30 -2067
  505. package/dist/internal/Viem.d.ts.map +1 -1
  506. package/dist/internal/Viem.js +167 -17
  507. package/dist/internal/Viem.js.map +1 -1
  508. package/dist/internal/Webhooks.d.ts +12 -4
  509. package/dist/internal/Webhooks.d.ts.map +1 -1
  510. package/dist/internal/Webhooks.js +9 -3
  511. package/dist/internal/Webhooks.js.map +1 -1
  512. package/dist/internal/ZoneRpc.d.ts +7 -0
  513. package/dist/internal/ZoneRpc.d.ts.map +1 -0
  514. package/dist/internal/ZoneRpc.js +49 -0
  515. package/dist/internal/ZoneRpc.js.map +1 -0
  516. package/dist/internal/index.d.ts +3 -1
  517. package/dist/internal/index.d.ts.map +1 -1
  518. package/dist/internal/index.js +3 -1
  519. package/dist/internal/index.js.map +1 -1
  520. package/dist/internal/rewards/Audit.d.ts +88 -0
  521. package/dist/internal/rewards/Audit.d.ts.map +1 -0
  522. package/dist/internal/rewards/Audit.js +134 -0
  523. package/dist/internal/rewards/Audit.js.map +1 -0
  524. package/dist/internal/rewards/Campaigns.d.ts +572 -0
  525. package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
  526. package/dist/internal/rewards/Campaigns.js +531 -0
  527. package/dist/internal/rewards/Campaigns.js.map +1 -0
  528. package/dist/internal/rewards/Credits.d.ts +76 -0
  529. package/dist/internal/rewards/Credits.d.ts.map +1 -0
  530. package/dist/internal/rewards/Credits.js +95 -0
  531. package/dist/internal/rewards/Credits.js.map +1 -0
  532. package/dist/internal/rewards/Events.d.ts +100 -0
  533. package/dist/internal/rewards/Events.d.ts.map +1 -0
  534. package/dist/internal/rewards/Events.js +340 -0
  535. package/dist/internal/rewards/Events.js.map +1 -0
  536. package/dist/internal/rewards/Projection.d.ts +237 -0
  537. package/dist/internal/rewards/Projection.d.ts.map +1 -0
  538. package/dist/internal/rewards/Projection.js +616 -0
  539. package/dist/internal/rewards/Projection.js.map +1 -0
  540. package/dist/internal/rewards/Rates.d.ts +44 -0
  541. package/dist/internal/rewards/Rates.d.ts.map +1 -0
  542. package/dist/internal/rewards/Rates.js +60 -0
  543. package/dist/internal/rewards/Rates.js.map +1 -0
  544. package/dist/internal/rewards/Read.d.ts +158 -0
  545. package/dist/internal/rewards/Read.d.ts.map +1 -0
  546. package/dist/internal/rewards/Read.js +292 -0
  547. package/dist/internal/rewards/Read.js.map +1 -0
  548. package/dist/internal/rewards/Runner.d.ts +164 -0
  549. package/dist/internal/rewards/Runner.d.ts.map +1 -0
  550. package/dist/internal/rewards/Runner.js +1778 -0
  551. package/dist/internal/rewards/Runner.js.map +1 -0
  552. package/dist/internal/rewards/Signer.d.ts +224 -0
  553. package/dist/internal/rewards/Signer.d.ts.map +1 -0
  554. package/dist/internal/rewards/Signer.js +135 -0
  555. package/dist/internal/rewards/Signer.js.map +1 -0
  556. package/dist/internal/rewards/index.d.ts +15 -0
  557. package/dist/internal/rewards/index.d.ts.map +1 -0
  558. package/dist/internal/rewards/index.js +15 -0
  559. package/dist/internal/rewards/index.js.map +1 -0
  560. package/dist/internal/{funding → routes}/Action.d.ts +12 -1
  561. package/dist/internal/routes/Action.d.ts.map +1 -0
  562. package/dist/internal/{funding → routes}/Action.js +17 -9
  563. package/dist/internal/routes/Action.js.map +1 -0
  564. package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
  565. package/dist/internal/routes/Catalog.d.ts.map +1 -0
  566. package/dist/internal/{funding → routes}/Catalog.js +29 -29
  567. package/dist/internal/routes/Catalog.js.map +1 -0
  568. package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
  569. package/dist/internal/routes/Chain.d.ts.map +1 -0
  570. package/dist/internal/{funding → routes}/Chain.js +3 -3
  571. package/dist/internal/routes/Chain.js.map +1 -0
  572. package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
  573. package/dist/internal/routes/Deposit.d.ts.map +1 -0
  574. package/dist/internal/{funding → routes}/Deposit.js +60 -27
  575. package/dist/internal/routes/Deposit.js.map +1 -0
  576. package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
  577. package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
  578. package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
  579. package/dist/internal/routes/DepositAddress.js.map +1 -0
  580. package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
  581. package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
  582. package/dist/internal/{funding → routes}/DepositWebhook.js +4 -4
  583. package/dist/internal/routes/DepositWebhook.js.map +1 -0
  584. package/dist/internal/routes/Economics.d.ts +25 -0
  585. package/dist/internal/routes/Economics.d.ts.map +1 -0
  586. package/dist/internal/routes/Economics.js +28 -0
  587. package/dist/internal/routes/Economics.js.map +1 -0
  588. package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
  589. package/dist/internal/routes/Evidence.d.ts.map +1 -0
  590. package/dist/internal/{funding → routes}/Evidence.js +7 -7
  591. package/dist/internal/routes/Evidence.js.map +1 -0
  592. package/dist/internal/routes/Observability.d.ts +154 -0
  593. package/dist/internal/routes/Observability.d.ts.map +1 -0
  594. package/dist/internal/routes/Observability.js +389 -0
  595. package/dist/internal/routes/Observability.js.map +1 -0
  596. package/dist/internal/{funding → routes}/Provider.d.ts +311 -105
  597. package/dist/internal/routes/Provider.d.ts.map +1 -0
  598. package/dist/internal/{funding → routes}/Provider.js +229 -98
  599. package/dist/internal/routes/Provider.js.map +1 -0
  600. package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
  601. package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
  602. package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
  603. package/dist/internal/routes/Reconciliation.js.map +1 -0
  604. package/dist/internal/routes/Route.d.ts +21 -0
  605. package/dist/internal/routes/Route.d.ts.map +1 -0
  606. package/dist/internal/{funding → routes}/Route.js +1 -1
  607. package/dist/internal/routes/Route.js.map +1 -0
  608. package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
  609. package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
  610. package/dist/internal/{funding → routes}/SourceObservation.js +8 -8
  611. package/dist/internal/routes/SourceObservation.js.map +1 -0
  612. package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
  613. package/dist/internal/routes/Subsidy.d.ts.map +1 -0
  614. package/dist/internal/{funding → routes}/Subsidy.js +43 -3
  615. package/dist/internal/routes/Subsidy.js.map +1 -0
  616. package/dist/internal/{funding → routes}/Token.d.ts +4 -4
  617. package/dist/internal/routes/Token.d.ts.map +1 -0
  618. package/dist/internal/{funding → routes}/Token.js +3 -3
  619. package/dist/internal/routes/Token.js.map +1 -0
  620. package/dist/internal/{funding → routes}/Transfer.d.ts +241 -46
  621. package/dist/internal/routes/Transfer.d.ts.map +1 -0
  622. package/dist/internal/routes/Transfer.js +728 -0
  623. package/dist/internal/routes/Transfer.js.map +1 -0
  624. package/dist/internal/{funding → routes}/TransferReconciliation.d.ts +13 -10
  625. package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
  626. package/dist/internal/routes/TransferReconciliation.js +422 -0
  627. package/dist/internal/routes/TransferReconciliation.js.map +1 -0
  628. package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
  629. package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
  630. package/dist/internal/routes/TransferSubsidy.js +256 -0
  631. package/dist/internal/routes/TransferSubsidy.js.map +1 -0
  632. package/dist/internal/{funding → routes}/TransferWebhook.d.ts +5 -5
  633. package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
  634. package/dist/internal/{funding → routes}/TransferWebhook.js +3 -3
  635. package/dist/internal/routes/TransferWebhook.js.map +1 -0
  636. package/dist/internal/{funding → routes}/index.d.ts +2 -0
  637. package/dist/internal/routes/index.d.ts.map +1 -0
  638. package/dist/internal/{funding → routes}/index.js +2 -0
  639. package/dist/internal/routes/index.js.map +1 -0
  640. package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
  641. package/dist/internal/routes/providers/across.d.ts.map +1 -0
  642. package/dist/internal/{funding → routes}/providers/across.js +13 -13
  643. package/dist/internal/routes/providers/across.js.map +1 -0
  644. package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
  645. package/dist/internal/routes/providers/relay.d.ts.map +1 -0
  646. package/dist/internal/{funding → routes}/providers/relay.js +194 -110
  647. package/dist/internal/routes/providers/relay.js.map +1 -0
  648. package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
  649. package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
  650. package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
  651. package/dist/internal/routes/providers/rhino.js.map +1 -0
  652. package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
  653. package/dist/internal/routes/providers/squid.d.ts.map +1 -0
  654. package/dist/internal/{funding → routes}/providers/squid.js +14 -14
  655. package/dist/internal/routes/providers/squid.js.map +1 -0
  656. package/dist/internal/{funding → routes}/providers/stargate.d.ts +46 -18
  657. package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
  658. package/dist/internal/routes/providers/stargate.js +898 -0
  659. package/dist/internal/routes/providers/stargate.js.map +1 -0
  660. package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
  661. package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
  662. package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
  663. package/dist/internal/routes/providers/symbiosis.js.map +1 -0
  664. package/dist/internal/webhookDestinations/slack.js +12 -12
  665. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  666. package/dist/providers/index.d.ts +12 -12
  667. package/dist/providers/index.d.ts.map +1 -1
  668. package/dist/providers/index.js +12 -12
  669. package/dist/providers/index.js.map +1 -1
  670. package/dist/server.d.ts +19 -0
  671. package/dist/server.d.ts.map +1 -0
  672. package/dist/server.js +19 -0
  673. package/dist/server.js.map +1 -0
  674. package/package.json +15 -4
  675. package/src/ApiKey.ts +1 -1
  676. package/src/ApiKeys.test.ts +1033 -3
  677. package/src/ApiKeys.ts +489 -48
  678. package/src/App.test-d.ts +1 -1
  679. package/src/App.test.ts +216 -25
  680. package/src/App.ts +334 -31
  681. package/src/Assets.test.ts +2 -2
  682. package/src/Assets.ts +3 -1
  683. package/src/Auth.test-d.ts +1 -1
  684. package/src/Client.test-d.ts +539 -110
  685. package/src/Handler.ts +0 -1
  686. package/src/OpenApi.contract.test.ts +195 -0
  687. package/src/Scope.ts +17 -5
  688. package/src/Webhooks.ts +1 -1
  689. package/src/admin/App.test.ts +30 -2
  690. package/src/admin/App.ts +42 -6
  691. package/src/admin/apps/api-keys.test.ts +267 -5
  692. package/src/admin/apps/api-keys.ts +100 -50
  693. package/src/admin/apps/earn-vaults.test.ts +158 -0
  694. package/src/admin/apps/earn-vaults.ts +679 -6
  695. package/src/admin/apps/organizations.test.ts +306 -17
  696. package/src/admin/apps/organizations.ts +299 -24
  697. package/src/admin/apps/routes-support.test.ts +200 -0
  698. package/src/admin/apps/routes-support.ts +201 -0
  699. package/src/admin/apps/routes.test.ts +450 -0
  700. package/src/admin/apps/routes.ts +896 -0
  701. package/src/admin/apps/scopes.test.ts +15 -5
  702. package/src/admin/apps/subsidies.test.ts +306 -0
  703. package/src/admin/apps/subsidies.ts +457 -0
  704. package/src/admin/apps/verified-tokens.test.ts +8 -3
  705. package/src/admin/apps/verified-tokens.ts +3 -3
  706. package/src/admin/ui/plugin.ts +1 -2
  707. package/src/admin/ui/src/components/RewardCampaignForm.tsx +1009 -0
  708. package/src/admin/ui/src/lib/config.ts +11 -2
  709. package/src/admin/ui/src/lib/earn-vaults.ts +2 -2
  710. package/src/admin/ui/src/lib/organizations.test.ts +83 -50
  711. package/src/admin/ui/src/lib/organizations.ts +106 -25
  712. package/src/admin/ui/src/lib/query-client.ts +1 -1
  713. package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
  714. package/src/admin/ui/src/lib/routes.test.ts +88 -0
  715. package/src/admin/ui/src/lib/routes.ts +304 -0
  716. package/src/admin/ui/src/lib/subsidies.ts +75 -0
  717. package/src/admin/ui/src/routeTree.gen.ts +63 -0
  718. package/src/admin/ui/src/routes/__root.tsx +12 -1
  719. package/src/admin/ui/src/routes/api-keys.tsx +196 -84
  720. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +105 -70
  721. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +239 -23
  722. package/src/admin/ui/src/routes/routes.tsx +1615 -0
  723. package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
  724. package/src/admin/ui/src/routes/subsidies.tsx +799 -0
  725. package/src/admin/ui.generated.ts +144 -69
  726. package/src/analytics/Analytics.test.ts +108 -18
  727. package/src/analytics/Analytics.ts +38 -6
  728. package/src/analytics/tables/requestEvents.test.ts +100 -0
  729. package/src/analytics/tables/requestEvents.ts +10 -1
  730. package/src/analytics/tables/routesLifecycleIntervals.ts +140 -0
  731. package/src/apps/Zones.test.ts +15 -0
  732. package/src/apps/Zones.ts +52 -5
  733. package/src/apps/composition.test.ts +68 -60
  734. package/src/apps/data/App.test.ts +154 -2
  735. package/src/apps/data/App.ts +88 -28
  736. package/src/apps/data/routes/activities.test.ts +419 -7
  737. package/src/apps/data/routes/activities.ts +683 -216
  738. package/src/apps/data/routes/balances.test.ts +2 -2
  739. package/src/apps/data/routes/blocks.test.ts +46 -1
  740. package/src/apps/data/routes/coingecko.test.ts +419 -1
  741. package/src/apps/data/routes/coingecko.ts +309 -253
  742. package/src/apps/data/routes/earn.discovery.test.ts +274 -0
  743. package/src/apps/data/routes/earn.test.ts +1294 -17
  744. package/src/apps/data/routes/earn.ts +1838 -321
  745. package/src/apps/data/routes/exchanges.test.ts +12 -15
  746. package/src/apps/data/routes/fee-amm.test.ts +224 -0
  747. package/src/apps/data/routes/fee-amm.ts +191 -160
  748. package/src/apps/data/routes/indexer.test.ts +389 -0
  749. package/src/apps/data/routes/indexer.ts +165 -69
  750. package/src/apps/data/routes/receipts.test.ts +1 -1
  751. package/src/apps/data/routes/rpc.test.ts +352 -8
  752. package/src/apps/data/routes/rpc.ts +407 -219
  753. package/src/apps/data/routes/rpc.zone.test.ts +340 -0
  754. package/src/apps/data/routes/tokenlist.test.ts +285 -0
  755. package/src/apps/data/routes/tokenlist.ts +173 -88
  756. package/src/apps/data/routes/tokens.test.ts +93 -3
  757. package/src/apps/data/routes/tokens.ts +39 -23
  758. package/src/apps/data/routes/transactions.test.ts +1 -1
  759. package/src/apps/data/routes/transfers.test.ts +56 -24
  760. package/src/apps/data/routes/transfers.ts +19 -8
  761. package/src/apps/data/routes/valuation.test.ts +1 -1
  762. package/src/apps/data/routes/verified-tokens.test.ts +345 -0
  763. package/src/apps/data/routes/verified-tokens.ts +99 -29
  764. package/src/apps/data/routes/webhooks.test.ts +645 -83
  765. package/src/apps/data/routes/webhooks.ts +1089 -857
  766. package/src/apps/data/routes/zones.test.ts +148 -71
  767. package/src/apps/data/routes/zones.ts +71 -55
  768. package/src/apps/docs/reference.ts +2 -2
  769. package/src/apps/index.ts +1 -1
  770. package/src/apps/management/App.ts +9 -51
  771. package/src/apps/management/Billing.test.ts +375 -14
  772. package/src/apps/management/Billing.ts +265 -29
  773. package/src/apps/management/routes/api-keys.test.ts +269 -7
  774. package/src/apps/management/routes/api-keys.ts +61 -20
  775. package/src/apps/management/routes/billing.test.ts +477 -15
  776. package/src/apps/management/routes/billing.ts +377 -50
  777. package/src/apps/management/routes/faucet.test.ts +1 -1
  778. package/src/apps/management/routes/faucet.ts +1 -1
  779. package/src/apps/management/routes/invitations.test.ts +270 -3
  780. package/src/apps/management/routes/invitations.ts +185 -15
  781. package/src/apps/management/routes/invoicePreview.test.ts +549 -0
  782. package/src/apps/management/routes/me.test.ts +246 -5
  783. package/src/apps/management/routes/me.ts +7 -2
  784. package/src/apps/management/routes/members.test.ts +108 -0
  785. package/src/apps/management/routes/orgs.test.ts +191 -3
  786. package/src/apps/management/routes/orgs.ts +58 -11
  787. package/src/apps/management/routes/projects.test.ts +33 -3
  788. package/src/apps/management/routes/projects.ts +6 -1
  789. package/src/apps/management/routes/scopes.test.ts +30 -2
  790. package/src/apps/management/routes/scopes.ts +4 -1
  791. package/src/apps/management/routes/usage.test.ts +32 -0
  792. package/src/apps/management/routes/usage.ts +22 -4
  793. package/src/apps/management/routes/webhooks.test.ts +49 -26
  794. package/src/apps/management/routes/webhooks.ts +78 -22
  795. package/src/apps/mcp.test.ts +6 -6
  796. package/src/apps/mcp.ts +7 -7
  797. package/src/apps/mpp/App.ts +37 -7
  798. package/src/apps/mpp/Mpp.test.ts +49 -8
  799. package/src/apps/mpp/Mpp.zone.test.ts +219 -0
  800. package/src/apps/mpp/internal/Adapter.ts +34 -0
  801. package/src/apps/mpp/internal/Policy.test.ts +86 -31
  802. package/src/apps/mpp/internal/Policy.ts +49 -7
  803. package/src/apps/mpp/internal/Sponsorship.test.ts +207 -0
  804. package/src/apps/mpp/internal/Sponsorship.ts +9 -3
  805. package/src/apps/relay/App.test.ts +839 -64
  806. package/src/apps/relay/App.ts +148 -81
  807. package/src/apps/relay/App.zone-billing.test.ts +257 -0
  808. package/src/apps/relay/Sponsorships.test.ts +67 -4
  809. package/src/apps/relay/Sponsorships.ts +233 -32
  810. package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
  811. package/src/apps/{funding → routes}/Access.ts +6 -6
  812. package/src/apps/routes/App.test.ts +165 -0
  813. package/src/apps/routes/App.ts +96 -0
  814. package/src/apps/{funding → routes}/Inventory.ts +2 -2
  815. package/src/apps/routes/index.ts +1 -0
  816. package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
  817. package/src/apps/{funding → routes}/routes/chains.ts +23 -23
  818. package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1358 -458
  819. package/src/apps/{funding → routes}/routes/deposit-addresses.ts +566 -246
  820. package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
  821. package/src/apps/{funding → routes}/routes/providers.ts +23 -23
  822. package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
  823. package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
  824. package/src/apps/{funding → routes}/routes/transfers.test.ts +1100 -353
  825. package/src/apps/routes/routes/transfers.ts +1332 -0
  826. package/src/cli/Cli.test.ts +1 -1
  827. package/src/cli/commands/admin.test.ts +748 -1
  828. package/src/cli/commands/admin.ts +278 -0
  829. package/src/cloudflare.ts +52 -47
  830. package/src/db/Db.test.ts +245 -2
  831. package/src/db/Db.ts +1476 -34
  832. package/src/db/Schema.ts +729 -228
  833. package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
  834. package/src/db/tables/apiKeyAdmissions.ts +218 -0
  835. package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
  836. package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
  837. package/src/db/tables/apiKeyRevocations.test.ts +74 -0
  838. package/src/db/tables/apiKeyRevocations.ts +121 -0
  839. package/src/db/tables/authAccounts.ts +105 -0
  840. package/src/db/tables/authSessions.ts +13 -0
  841. package/src/db/tables/authVerifications.ts +13 -0
  842. package/src/db/tables/invitations.ts +142 -45
  843. package/src/db/tables/memberships.ts +79 -3
  844. package/src/db/tables/organizations.test.ts +690 -13
  845. package/src/db/tables/organizations.ts +139 -55
  846. package/src/db/tables/projects.test.ts +16 -0
  847. package/src/db/tables/projects.ts +13 -3
  848. package/src/db/tables/requestUsage.ts +4 -1
  849. package/src/db/tables/rewardAccounts.ts +178 -0
  850. package/src/db/tables/rewardCampaignDistributors.ts +68 -0
  851. package/src/db/tables/rewardCampaigns.test.ts +1388 -0
  852. package/src/db/tables/rewardCampaigns.ts +647 -0
  853. package/src/db/tables/rewardCredits.ts +110 -0
  854. package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
  855. package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
  856. package/src/db/tables/rewardRuns.ts +514 -0
  857. package/src/db/tables/rewardTransactionAttempts.ts +272 -0
  858. package/src/db/tables/routesCatalog.test.ts +185 -0
  859. package/src/db/tables/routesCatalog.ts +163 -0
  860. package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
  861. package/src/db/tables/routesDepositAddresses.ts +1008 -0
  862. package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
  863. package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
  864. package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +316 -46
  865. package/src/db/tables/routesDeposits.ts +1062 -0
  866. package/src/db/tables/routesIdempotency.test.ts +796 -0
  867. package/src/db/tables/routesIdempotency.ts +496 -0
  868. package/src/db/tables/routesSubsidies.test.ts +120 -0
  869. package/src/db/tables/routesSubsidies.ts +71 -0
  870. package/src/db/tables/{fundingTransferEvents.ts → routesTransferEvents.ts} +4 -4
  871. package/src/db/tables/routesTransferSubsidies.ts +38 -0
  872. package/src/db/tables/routesTransferSubsidyNonces.ts +124 -0
  873. package/src/db/tables/routesTransferTransactions.test.ts +195 -0
  874. package/src/db/tables/{fundingTransferTransactions.ts → routesTransferTransactions.ts} +63 -18
  875. package/src/db/tables/routesTransfers.test.ts +338 -0
  876. package/src/db/tables/routesTransfers.ts +662 -0
  877. package/src/db/tables/sponsoredTransactions.test.ts +269 -45
  878. package/src/db/tables/sponsoredTransactions.ts +225 -65
  879. package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
  880. package/src/db/tables/sponsorshipAttributions.ts +168 -0
  881. package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
  882. package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
  883. package/src/db/tables/stripeCustomers.test.ts +85 -0
  884. package/src/db/tables/stripeCustomers.ts +24 -0
  885. package/src/db/tables/users.test.ts +129 -0
  886. package/src/db/tables/users.ts +49 -3
  887. package/src/db/tables/webhookQueueEvents.ts +8 -1
  888. package/src/db/tables/webhookSubscriptions.ts +95 -20
  889. package/src/handlers/internal/executionError.ts +3 -4
  890. package/src/handlers/internal/multisig.ts +13 -816
  891. package/src/handlers/internal/sponsorship.ts +26 -10
  892. package/src/handlers/relay.test-d.ts +9 -1
  893. package/src/handlers/relay.test.ts +823 -3
  894. package/src/handlers/relay.ts +127 -107
  895. package/src/index.test-d.ts +7 -0
  896. package/src/index.ts +0 -17
  897. package/src/internal/AssetResponse.ts +26 -0
  898. package/src/internal/Auth.test.ts +1564 -9
  899. package/src/internal/Auth.ts +833 -239
  900. package/src/internal/BetterAuth.test.ts +242 -0
  901. package/src/internal/BetterAuth.ts +349 -0
  902. package/src/internal/Cache.ts +2 -0
  903. package/src/internal/EarnRates.test.ts +17 -0
  904. package/src/internal/EarnRates.ts +124 -31
  905. package/src/internal/EarnSharePrices.test.ts +182 -0
  906. package/src/internal/EarnSharePrices.ts +313 -0
  907. package/src/internal/EarnVaults.test.ts +21 -0
  908. package/src/internal/EarnVaults.ts +33 -11
  909. package/src/internal/Email.ts +54 -0
  910. package/src/internal/Idempotency.test.ts +2 -2
  911. package/src/internal/Log.test-d.ts +8 -7
  912. package/src/internal/Log.test.ts +114 -16
  913. package/src/internal/Log.ts +53 -40
  914. package/src/internal/MetricSink.test.ts +313 -26
  915. package/src/internal/MetricSink.ts +73 -8
  916. package/src/internal/Mpp.test.ts +31 -0
  917. package/src/internal/Mpp.ts +21 -24
  918. package/src/internal/OpenApi.ts +45 -12
  919. package/src/internal/Provider.test.ts +1 -1
  920. package/src/internal/Provider.ts +1 -1
  921. package/src/internal/RateLimit.test.ts +21 -3
  922. package/src/internal/RateLimit.ts +12 -1
  923. package/src/internal/Store.test-d.ts +1 -1
  924. package/src/internal/Store.test.ts +151 -8
  925. package/src/internal/Store.ts +76 -9
  926. package/src/internal/Tidx.test.ts +59 -8
  927. package/src/internal/Tidx.ts +86 -14
  928. package/src/internal/Timing.test.ts +77 -0
  929. package/src/internal/Timing.ts +83 -6
  930. package/src/internal/VercelOidc.test.ts +188 -0
  931. package/src/internal/VercelOidc.ts +193 -0
  932. package/src/internal/VerifiedTokens.test.ts +60 -6
  933. package/src/internal/VerifiedTokens.ts +21 -24
  934. package/src/internal/Viem.batch.test.ts +80 -0
  935. package/src/internal/Viem.test.ts +201 -2
  936. package/src/internal/Viem.ts +221 -25
  937. package/src/internal/Webhooks.test.ts +85 -6
  938. package/src/internal/Webhooks.ts +22 -4
  939. package/src/internal/ZoneRpc.ts +50 -0
  940. package/src/internal/exchange/Provider.test.ts +2 -2
  941. package/src/internal/index.test.ts +3 -1
  942. package/src/internal/index.ts +3 -1
  943. package/src/internal/rewards/Audit.ts +231 -0
  944. package/src/internal/rewards/Campaigns.test.ts +1234 -0
  945. package/src/internal/rewards/Campaigns.ts +1205 -0
  946. package/src/internal/rewards/Credits.ts +165 -0
  947. package/src/internal/rewards/Events.local.test.ts +113 -0
  948. package/src/internal/rewards/Events.test.ts +152 -0
  949. package/src/internal/rewards/Events.ts +468 -0
  950. package/src/internal/rewards/Projection.test.ts +681 -0
  951. package/src/internal/rewards/Projection.ts +987 -0
  952. package/src/internal/rewards/Rates.test.ts +171 -0
  953. package/src/internal/rewards/Rates.ts +110 -0
  954. package/src/internal/rewards/Read.test.ts +501 -0
  955. package/src/internal/rewards/Read.ts +476 -0
  956. package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
  957. package/src/internal/rewards/Runner.states.test.ts +188 -0
  958. package/src/internal/rewards/Runner.test.ts +90 -0
  959. package/src/internal/rewards/Runner.ts +2229 -0
  960. package/src/internal/rewards/Signer.test.ts +79 -0
  961. package/src/internal/rewards/Signer.ts +180 -0
  962. package/src/internal/rewards/index.ts +14 -0
  963. package/src/internal/{funding → routes}/Action.test.ts +63 -14
  964. package/src/internal/{funding → routes}/Action.ts +35 -8
  965. package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
  966. package/src/internal/{funding → routes}/Catalog.ts +39 -39
  967. package/src/internal/{funding → routes}/Chain.test.ts +1 -1
  968. package/src/internal/{funding → routes}/Chain.ts +11 -11
  969. package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
  970. package/src/internal/{funding → routes}/Deposit.ts +93 -45
  971. package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
  972. package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
  973. package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
  974. package/src/internal/{funding → routes}/DepositWebhook.ts +9 -9
  975. package/src/internal/routes/Economics.test.ts +42 -0
  976. package/src/internal/routes/Economics.ts +47 -0
  977. package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
  978. package/src/internal/{funding → routes}/Evidence.ts +9 -9
  979. package/src/internal/routes/Observability.test.ts +636 -0
  980. package/src/internal/routes/Observability.ts +668 -0
  981. package/src/internal/{funding → routes}/Provider.test.ts +489 -153
  982. package/src/internal/{funding → routes}/Provider.ts +489 -186
  983. package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
  984. package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
  985. package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
  986. package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
  987. package/src/internal/{funding → routes}/Route.ts +7 -7
  988. package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
  989. package/src/internal/{funding → routes}/SourceObservation.ts +13 -13
  990. package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
  991. package/src/internal/routes/Subsidy.test.ts +169 -0
  992. package/src/internal/{funding → routes}/Subsidy.ts +86 -6
  993. package/src/internal/{funding → routes}/Token.test.ts +1 -1
  994. package/src/internal/{funding → routes}/Token.ts +5 -5
  995. package/src/internal/routes/Transfer.test.ts +1199 -0
  996. package/src/internal/routes/Transfer.ts +1206 -0
  997. package/src/internal/routes/TransferReconciliation.test.ts +731 -0
  998. package/src/internal/routes/TransferReconciliation.ts +527 -0
  999. package/src/internal/routes/TransferSubsidy.test.ts +172 -0
  1000. package/src/internal/routes/TransferSubsidy.ts +447 -0
  1001. package/src/internal/{funding → routes}/TransferWebhook.test.ts +13 -13
  1002. package/src/internal/{funding → routes}/TransferWebhook.ts +7 -7
  1003. package/src/internal/{funding → routes}/index.test.ts +5 -3
  1004. package/src/internal/{funding → routes}/index.ts +2 -0
  1005. package/src/internal/{funding → routes}/providers/across.ts +16 -16
  1006. package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
  1007. package/src/internal/{funding → routes}/providers/relay.test.ts +165 -32
  1008. package/src/internal/{funding → routes}/providers/relay.ts +228 -121
  1009. package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
  1010. package/src/internal/{funding → routes}/providers/squid.ts +17 -17
  1011. package/src/internal/routes/providers/stargate.test.ts +728 -0
  1012. package/src/internal/routes/providers/stargate.ts +1276 -0
  1013. package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
  1014. package/src/internal/webhookDestinations/slack.ts +10 -10
  1015. package/src/providers/index.ts +13 -13
  1016. package/src/server.ts +18 -0
  1017. package/dist/apps/funding/Access.d.ts.map +0 -1
  1018. package/dist/apps/funding/Access.js.map +0 -1
  1019. package/dist/apps/funding/App.js.map +0 -1
  1020. package/dist/apps/funding/Inventory.d.ts.map +0 -1
  1021. package/dist/apps/funding/Inventory.js.map +0 -1
  1022. package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
  1023. package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
  1024. package/dist/apps/funding/ProviderAttempts.js +0 -24
  1025. package/dist/apps/funding/ProviderAttempts.js.map +0 -1
  1026. package/dist/apps/funding/index.d.ts +0 -2
  1027. package/dist/apps/funding/index.d.ts.map +0 -1
  1028. package/dist/apps/funding/index.js +0 -2
  1029. package/dist/apps/funding/index.js.map +0 -1
  1030. package/dist/apps/funding/routes/chains.d.ts.map +0 -1
  1031. package/dist/apps/funding/routes/chains.js.map +0 -1
  1032. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
  1033. package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
  1034. package/dist/apps/funding/routes/providers.d.ts.map +0 -1
  1035. package/dist/apps/funding/routes/providers.js +0 -57
  1036. package/dist/apps/funding/routes/providers.js.map +0 -1
  1037. package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
  1038. package/dist/apps/funding/routes/quotes.js.map +0 -1
  1039. package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
  1040. package/dist/apps/funding/routes/transfers.js +0 -828
  1041. package/dist/apps/funding/routes/transfers.js.map +0 -1
  1042. package/dist/db/tables/fundingCatalog.d.ts +0 -58
  1043. package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
  1044. package/dist/db/tables/fundingCatalog.js.map +0 -1
  1045. package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
  1046. package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
  1047. package/dist/db/tables/fundingDepositAddresses.js +0 -235
  1048. package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
  1049. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
  1050. package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
  1051. package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
  1052. package/dist/db/tables/fundingDeposits.js +0 -295
  1053. package/dist/db/tables/fundingDeposits.js.map +0 -1
  1054. package/dist/db/tables/fundingIdempotency.d.ts +0 -91
  1055. package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
  1056. package/dist/db/tables/fundingIdempotency.js +0 -103
  1057. package/dist/db/tables/fundingIdempotency.js.map +0 -1
  1058. package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
  1059. package/dist/db/tables/fundingTransferEvents.js.map +0 -1
  1060. package/dist/db/tables/fundingTransferTransactions.d.ts +0 -53
  1061. package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
  1062. package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
  1063. package/dist/db/tables/fundingTransfers.d.ts +0 -99
  1064. package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
  1065. package/dist/db/tables/fundingTransfers.js +0 -110
  1066. package/dist/db/tables/fundingTransfers.js.map +0 -1
  1067. package/dist/internal/funding/Action.d.ts.map +0 -1
  1068. package/dist/internal/funding/Action.js.map +0 -1
  1069. package/dist/internal/funding/Catalog.d.ts.map +0 -1
  1070. package/dist/internal/funding/Catalog.js.map +0 -1
  1071. package/dist/internal/funding/Chain.d.ts.map +0 -1
  1072. package/dist/internal/funding/Chain.js.map +0 -1
  1073. package/dist/internal/funding/Deposit.d.ts.map +0 -1
  1074. package/dist/internal/funding/Deposit.js.map +0 -1
  1075. package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
  1076. package/dist/internal/funding/DepositAddress.js.map +0 -1
  1077. package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
  1078. package/dist/internal/funding/DepositWebhook.js.map +0 -1
  1079. package/dist/internal/funding/Evidence.d.ts.map +0 -1
  1080. package/dist/internal/funding/Evidence.js.map +0 -1
  1081. package/dist/internal/funding/Provider.d.ts.map +0 -1
  1082. package/dist/internal/funding/Provider.js.map +0 -1
  1083. package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
  1084. package/dist/internal/funding/Reconciliation.js.map +0 -1
  1085. package/dist/internal/funding/Route.d.ts +0 -21
  1086. package/dist/internal/funding/Route.d.ts.map +0 -1
  1087. package/dist/internal/funding/Route.js.map +0 -1
  1088. package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
  1089. package/dist/internal/funding/SourceObservation.js.map +0 -1
  1090. package/dist/internal/funding/Subsidy.d.ts.map +0 -1
  1091. package/dist/internal/funding/Subsidy.js.map +0 -1
  1092. package/dist/internal/funding/Token.d.ts.map +0 -1
  1093. package/dist/internal/funding/Token.js.map +0 -1
  1094. package/dist/internal/funding/Transfer.d.ts.map +0 -1
  1095. package/dist/internal/funding/Transfer.js +0 -462
  1096. package/dist/internal/funding/Transfer.js.map +0 -1
  1097. package/dist/internal/funding/TransferReconciliation.d.ts.map +0 -1
  1098. package/dist/internal/funding/TransferReconciliation.js +0 -192
  1099. package/dist/internal/funding/TransferReconciliation.js.map +0 -1
  1100. package/dist/internal/funding/TransferWebhook.d.ts.map +0 -1
  1101. package/dist/internal/funding/TransferWebhook.js.map +0 -1
  1102. package/dist/internal/funding/index.d.ts.map +0 -1
  1103. package/dist/internal/funding/index.js.map +0 -1
  1104. package/dist/internal/funding/providers/across.d.ts.map +0 -1
  1105. package/dist/internal/funding/providers/across.js.map +0 -1
  1106. package/dist/internal/funding/providers/relay.d.ts.map +0 -1
  1107. package/dist/internal/funding/providers/relay.js.map +0 -1
  1108. package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
  1109. package/dist/internal/funding/providers/rhino.js.map +0 -1
  1110. package/dist/internal/funding/providers/squid.d.ts.map +0 -1
  1111. package/dist/internal/funding/providers/squid.js.map +0 -1
  1112. package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
  1113. package/dist/internal/funding/providers/stargate.js +0 -579
  1114. package/dist/internal/funding/providers/stargate.js.map +0 -1
  1115. package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
  1116. package/dist/internal/funding/providers/symbiosis.js.map +0 -1
  1117. package/src/apps/funding/App.test.ts +0 -78
  1118. package/src/apps/funding/App.ts +0 -88
  1119. package/src/apps/funding/ProviderAttempts.ts +0 -26
  1120. package/src/apps/funding/index.ts +0 -1
  1121. package/src/apps/funding/routes/transfers.ts +0 -987
  1122. package/src/db/tables/fundingCatalog.test.ts +0 -122
  1123. package/src/db/tables/fundingCatalog.ts +0 -163
  1124. package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
  1125. package/src/db/tables/fundingDepositAddresses.ts +0 -443
  1126. package/src/db/tables/fundingDeposits.ts +0 -572
  1127. package/src/db/tables/fundingIdempotency.test.ts +0 -182
  1128. package/src/db/tables/fundingIdempotency.ts +0 -180
  1129. package/src/db/tables/fundingTransferTransactions.test.ts +0 -112
  1130. package/src/db/tables/fundingTransfers.test.ts +0 -115
  1131. package/src/db/tables/fundingTransfers.ts +0 -189
  1132. package/src/handlers/internal/multisig.test.ts +0 -818
  1133. package/src/internal/funding/Subsidy.test.ts +0 -75
  1134. package/src/internal/funding/Transfer.test.ts +0 -524
  1135. package/src/internal/funding/Transfer.ts +0 -762
  1136. package/src/internal/funding/TransferReconciliation.test.ts +0 -147
  1137. package/src/internal/funding/TransferReconciliation.ts +0 -264
  1138. package/src/internal/funding/providers/stargate.test.ts +0 -328
  1139. package/src/internal/funding/providers/stargate.ts +0 -856
  1140. /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
  1141. /package/src/internal/{funding → routes}/Route.test.ts +0 -0
@@ -14,9 +14,9 @@ export declare namespace schema {
14
14
  }>>;
15
15
  eventType: z.ZodMiniEnum<{
16
16
  "block:created": "block:created";
17
- "funding:deposit.updated": "funding:deposit.updated";
18
- "funding:transfer.updated": "funding:transfer.updated";
19
17
  "log:emitted": "log:emitted";
18
+ "routes:deposit.updated": "routes:deposit.updated";
19
+ "routes:transfer.updated": "routes:transfer.updated";
20
20
  "token:transfer": "token:transfer";
21
21
  "transaction:included": "transaction:included";
22
22
  }>;
@@ -55,7 +55,7 @@ export declare namespace schema {
55
55
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
56
56
  eventId: z.ZodMiniString<string>;
57
57
  id: z.ZodMiniString<string>;
58
- requestUrl: z.ZodMiniString<string>;
58
+ requestUrl: z.ZodMiniURL;
59
59
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
60
60
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
61
61
  status: z.ZodMiniEnum<{
@@ -68,11 +68,7 @@ export declare namespace schema {
68
68
  /** Schemas for creating an organization webhook. */
69
69
  namespace createWebhook {
70
70
  /** Organization webhook creation requires an explicit network. */
71
- const Body: z.ZodMiniIntersection<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
72
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
73
- mainnet: "mainnet";
74
- testnet: "testnet";
75
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
71
+ const Body: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
76
72
  context: z.ZodMiniOptional<z.ZodMiniObject<{
77
73
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
78
74
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -96,11 +92,12 @@ export declare namespace schema {
96
92
  sender: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
97
93
  token: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
98
94
  }, z.core.$strip>>;
95
+ chainId: z.ZodMiniNumber<number>;
96
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
97
+ production: "production";
98
+ sandbox: "sandbox";
99
+ }>>;
99
100
  }, z.core.$strip>, z.ZodMiniObject<{
100
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
101
- mainnet: "mainnet";
102
- testnet: "testnet";
103
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
104
101
  context: z.ZodMiniOptional<z.ZodMiniObject<{
105
102
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
106
103
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -256,11 +253,12 @@ export declare namespace schema {
256
253
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
257
254
  }, z.core.$strict>]>>;
258
255
  }, z.core.$strict>>;
256
+ chainId: z.ZodMiniNumber<number>;
257
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
258
+ production: "production";
259
+ sandbox: "sandbox";
260
+ }>>;
259
261
  }, z.core.$strip>, z.ZodMiniObject<{
260
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
261
- mainnet: "mainnet";
262
- testnet: "testnet";
263
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
264
262
  context: z.ZodMiniOptional<z.ZodMiniObject<{
265
263
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
266
264
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -324,11 +322,12 @@ export declare namespace schema {
324
322
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
325
323
  }, z.core.$strict>]>>;
326
324
  }, z.core.$strict>;
325
+ chainId: z.ZodMiniNumber<number>;
326
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
327
+ production: "production";
328
+ sandbox: "sandbox";
329
+ }>>;
327
330
  }, z.core.$strip>, z.ZodMiniObject<{
328
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
329
- mainnet: "mainnet";
330
- testnet: "testnet";
331
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
332
331
  context: z.ZodMiniOptional<z.ZodMiniObject<{
333
332
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
334
333
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -390,11 +389,12 @@ export declare namespace schema {
390
389
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
391
390
  }, z.core.$strict>]>>;
392
391
  }, z.core.$strict>>;
392
+ chainId: z.ZodMiniNumber<number>;
393
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
394
+ production: "production";
395
+ sandbox: "sandbox";
396
+ }>>;
393
397
  }, z.core.$strip>, z.ZodMiniObject<{
394
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
395
- mainnet: "mainnet";
396
- testnet: "testnet";
397
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
398
398
  context: z.ZodMiniOptional<z.ZodMiniObject<{
399
399
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
400
400
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -411,7 +411,7 @@ export declare namespace schema {
411
411
  type: z.ZodMiniLiteral<"betterstack">;
412
412
  url: z.ZodMiniURL;
413
413
  }, z.core.$strip>], "type">;
414
- eventType: z.ZodMiniLiteral<"funding:deposit.updated">;
414
+ eventType: z.ZodMiniLiteral<"routes:deposit.updated">;
415
415
  filters: z.ZodMiniOptional<z.ZodMiniObject<{
416
416
  depositAddressId: z.ZodMiniOptional<z.ZodMiniString<string>>;
417
417
  recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
@@ -425,11 +425,12 @@ export declare namespace schema {
425
425
  settling: "settling";
426
426
  }>>;
427
427
  }, z.core.$strict>>;
428
+ chainId: z.ZodMiniNumber<number>;
429
+ environment: z.ZodMiniEnum<{
430
+ production: "production";
431
+ sandbox: "sandbox";
432
+ }>;
428
433
  }, z.core.$strip>, z.ZodMiniObject<{
429
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
430
- mainnet: "mainnet";
431
- testnet: "testnet";
432
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
433
434
  context: z.ZodMiniOptional<z.ZodMiniObject<{
434
435
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
435
436
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -446,7 +447,7 @@ export declare namespace schema {
446
447
  type: z.ZodMiniLiteral<"betterstack">;
447
448
  url: z.ZodMiniURL;
448
449
  }, z.core.$strip>], "type">;
449
- eventType: z.ZodMiniLiteral<"funding:transfer.updated">;
450
+ eventType: z.ZodMiniLiteral<"routes:transfer.updated">;
450
451
  filters: z.ZodMiniOptional<z.ZodMiniObject<{
451
452
  id: z.ZodMiniOptional<z.ZodMiniString<string>>;
452
453
  status: z.ZodMiniOptional<z.ZodMiniEnum<{
@@ -459,13 +460,12 @@ export declare namespace schema {
459
460
  refunding: "refunding";
460
461
  }>>;
461
462
  }, z.core.$strict>>;
462
- }, z.core.$strip>], "eventType">, z.ZodMiniObject<{
463
463
  chainId: z.ZodMiniNumber<number>;
464
- environment: z.ZodMiniOptional<z.ZodMiniEnum<{
464
+ environment: z.ZodMiniEnum<{
465
465
  production: "production";
466
466
  sandbox: "sandbox";
467
- }>>;
468
- }, z.core.$strip>>;
467
+ }>;
468
+ }, z.core.$strip>], "eventType">;
469
469
  /** Created webhook with transport credentials redacted. */
470
470
  const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
471
471
  chainId: z.ZodMiniNumber<number>;
@@ -476,9 +476,9 @@ export declare namespace schema {
476
476
  }>>;
477
477
  eventType: z.ZodMiniEnum<{
478
478
  "block:created": "block:created";
479
- "funding:deposit.updated": "funding:deposit.updated";
480
- "funding:transfer.updated": "funding:transfer.updated";
481
479
  "log:emitted": "log:emitted";
480
+ "routes:deposit.updated": "routes:deposit.updated";
481
+ "routes:transfer.updated": "routes:transfer.updated";
482
482
  "token:transfer": "token:transfer";
483
483
  "transaction:included": "transaction:included";
484
484
  }>;
@@ -512,9 +512,9 @@ export declare namespace schema {
512
512
  }>>;
513
513
  eventType: z.ZodMiniEnum<{
514
514
  "block:created": "block:created";
515
- "funding:deposit.updated": "funding:deposit.updated";
516
- "funding:transfer.updated": "funding:transfer.updated";
517
515
  "log:emitted": "log:emitted";
516
+ "routes:deposit.updated": "routes:deposit.updated";
517
+ "routes:transfer.updated": "routes:transfer.updated";
518
518
  "token:transfer": "token:transfer";
519
519
  "transaction:included": "transaction:included";
520
520
  }>;
@@ -547,9 +547,9 @@ export declare namespace schema {
547
547
  }>>;
548
548
  eventType: z.ZodMiniEnum<{
549
549
  "block:created": "block:created";
550
- "funding:deposit.updated": "funding:deposit.updated";
551
- "funding:transfer.updated": "funding:transfer.updated";
552
550
  "log:emitted": "log:emitted";
551
+ "routes:deposit.updated": "routes:deposit.updated";
552
+ "routes:transfer.updated": "routes:transfer.updated";
553
553
  "token:transfer": "token:transfer";
554
554
  "transaction:included": "transaction:included";
555
555
  }>;
@@ -606,7 +606,7 @@ export declare namespace schema {
606
606
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
607
607
  eventId: z.ZodMiniString<string>;
608
608
  id: z.ZodMiniString<string>;
609
- requestUrl: z.ZodMiniString<string>;
609
+ requestUrl: z.ZodMiniURL;
610
610
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
611
611
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
612
612
  status: z.ZodMiniEnum<{
@@ -636,7 +636,7 @@ export declare namespace schema {
636
636
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
637
637
  eventId: z.ZodMiniString<string>;
638
638
  id: z.ZodMiniString<string>;
639
- requestUrl: z.ZodMiniString<string>;
639
+ requestUrl: z.ZodMiniURL;
640
640
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
641
641
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
642
642
  status: z.ZodMiniEnum<{
@@ -951,10 +951,14 @@ export declare namespace schema {
951
951
  }>;
952
952
  statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
953
953
  code: z.ZodMiniEnum<{
954
+ billing_past_due: "billing_past_due";
955
+ billing_required: "billing_required";
954
956
  delivery_failed: "delivery_failed";
955
957
  delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
956
958
  manual_recovery_required: "manual_recovery_required";
957
959
  refund_failed: "refund_failed";
960
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
961
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
958
962
  source_amount_not_supported: "source_amount_not_supported";
959
963
  source_token_mismatch: "source_token_mismatch";
960
964
  subsidy_balance_unavailable: "subsidy_balance_unavailable";
@@ -964,7 +968,7 @@ export declare namespace schema {
964
968
  }, z.core.$strip>>;
965
969
  updatedAt: z.ZodMiniISODateTime;
966
970
  }, z.core.$strip>;
967
- type: z.ZodMiniLiteral<"funding:deposit.updated">;
971
+ type: z.ZodMiniLiteral<"routes:deposit.updated">;
968
972
  }, z.core.$strip>, z.ZodMiniObject<{
969
973
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
970
974
  mainnet: "mainnet";
@@ -992,6 +996,12 @@ export declare namespace schema {
992
996
  decimals: z.ZodMiniNumber<number>;
993
997
  formatted: z.ZodMiniString<string>;
994
998
  }, z.core.$strip>>;
999
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
1000
+ baseUnits: z.ZodMiniString<string>;
1001
+ currency: z.ZodMiniString<string>;
1002
+ decimals: z.ZodMiniNumber<number>;
1003
+ formatted: z.ZodMiniString<string>;
1004
+ }, z.core.$strip>>;
995
1005
  destinationChain: z.ZodMiniObject<{
996
1006
  addressFormat: z.ZodMiniEnum<{
997
1007
  base58: "base58";
@@ -1106,6 +1116,7 @@ export declare namespace schema {
1106
1116
  verified: z.ZodMiniBoolean<boolean>;
1107
1117
  }, z.core.$strip>;
1108
1118
  sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1119
+ subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
1109
1120
  status: z.ZodMiniEnum<{
1110
1121
  "action-required": "action-required";
1111
1122
  "awaiting-source": "awaiting-source";
@@ -1117,21 +1128,27 @@ export declare namespace schema {
1117
1128
  }>;
1118
1129
  statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
1119
1130
  code: z.ZodMiniEnum<{
1131
+ billing_past_due: "billing_past_due";
1132
+ billing_required: "billing_required";
1120
1133
  destination_amount_below_minimum: "destination_amount_below_minimum";
1121
1134
  destination_recovered: "destination_recovered";
1122
1135
  manual_recovery_required: "manual_recovery_required";
1123
1136
  refund_failed: "refund_failed";
1137
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
1138
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
1124
1139
  source_amount_above_maximum: "source_amount_above_maximum";
1125
1140
  source_amount_below_minimum: "source_amount_below_minimum";
1126
1141
  source_chain_mismatch: "source_chain_mismatch";
1127
1142
  source_token_mismatch: "source_token_mismatch";
1143
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
1144
+ subsidy_failed: "subsidy_failed";
1128
1145
  }>;
1129
1146
  message: z.ZodMiniString<string>;
1130
1147
  }, z.core.$strip>>;
1131
1148
  updatedAt: z.ZodMiniISODateTime;
1132
1149
  version: z.ZodMiniNumber<number>;
1133
1150
  }, z.core.$strip>;
1134
- type: z.ZodMiniLiteral<"funding:transfer.updated">;
1151
+ type: z.ZodMiniLiteral<"routes:transfer.updated">;
1135
1152
  }, z.core.$strip>, z.ZodMiniObject<{
1136
1153
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1137
1154
  mainnet: "mainnet";
@@ -1178,9 +1195,9 @@ export declare namespace schema {
1178
1195
  }>>;
1179
1196
  eventType: z.ZodMiniEnum<{
1180
1197
  "block:created": "block:created";
1181
- "funding:deposit.updated": "funding:deposit.updated";
1182
- "funding:transfer.updated": "funding:transfer.updated";
1183
1198
  "log:emitted": "log:emitted";
1199
+ "routes:deposit.updated": "routes:deposit.updated";
1200
+ "routes:transfer.updated": "routes:transfer.updated";
1184
1201
  "token:transfer": "token:transfer";
1185
1202
  "transaction:included": "transaction:included";
1186
1203
  }>;
@@ -1245,8 +1262,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1245
1262
  orgId: string;
1246
1263
  };
1247
1264
  } & {
1248
- json: ({
1249
- chainId?: unknown;
1265
+ json: {
1250
1266
  context?: {
1251
1267
  description?: string | undefined;
1252
1268
  metadata?: Record<string, string> | undefined;
@@ -1270,8 +1286,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1270
1286
  sender?: `0x${string}` | undefined;
1271
1287
  token?: `0x${string}` | undefined;
1272
1288
  } | undefined;
1289
+ chainId: number;
1290
+ environment?: "production" | "sandbox" | undefined;
1273
1291
  } | {
1274
- chainId?: unknown;
1275
1292
  context?: {
1276
1293
  description?: string | undefined;
1277
1294
  metadata?: Record<string, string> | undefined;
@@ -1427,8 +1444,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1427
1444
  lte?: `0x${string}` | undefined;
1428
1445
  } | `0x${string}` | undefined;
1429
1446
  } | undefined;
1447
+ chainId: number;
1448
+ environment?: "production" | "sandbox" | undefined;
1430
1449
  } | {
1431
- chainId?: unknown;
1432
1450
  context?: {
1433
1451
  description?: string | undefined;
1434
1452
  metadata?: Record<string, string> | undefined;
@@ -1492,8 +1510,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1492
1510
  lte?: `0x${string}` | undefined;
1493
1511
  } | `0x${string}` | undefined;
1494
1512
  };
1513
+ chainId: number;
1514
+ environment?: "production" | "sandbox" | undefined;
1495
1515
  } | {
1496
- chainId?: unknown;
1497
1516
  context?: {
1498
1517
  description?: string | undefined;
1499
1518
  metadata?: Record<string, string> | undefined;
@@ -1555,8 +1574,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1555
1574
  lte?: `0x${string}` | undefined;
1556
1575
  } | `0x${string}` | undefined;
1557
1576
  } | undefined;
1577
+ chainId: number;
1578
+ environment?: "production" | "sandbox" | undefined;
1558
1579
  } | {
1559
- chainId?: unknown;
1560
1580
  context?: {
1561
1581
  description?: string | undefined;
1562
1582
  metadata?: Record<string, string> | undefined;
@@ -1573,14 +1593,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1573
1593
  type: "betterstack";
1574
1594
  url: string;
1575
1595
  };
1576
- eventType: "funding:deposit.updated";
1596
+ eventType: "routes:deposit.updated";
1577
1597
  filters?: {
1578
1598
  depositAddressId?: string | undefined;
1579
1599
  recipient?: `0x${string}` | undefined;
1580
1600
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1581
1601
  } | undefined;
1602
+ chainId: number;
1603
+ environment: "production" | "sandbox";
1582
1604
  } | {
1583
- chainId?: unknown;
1584
1605
  context?: {
1585
1606
  description?: string | undefined;
1586
1607
  metadata?: Record<string, string> | undefined;
@@ -1597,14 +1618,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1597
1618
  type: "betterstack";
1598
1619
  url: string;
1599
1620
  };
1600
- eventType: "funding:transfer.updated";
1621
+ eventType: "routes:transfer.updated";
1601
1622
  filters?: {
1602
1623
  id?: string | undefined;
1603
1624
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
1604
1625
  } | undefined;
1605
- }) & {
1606
1626
  chainId: number;
1607
- environment?: "production" | "sandbox" | undefined;
1627
+ environment: "production" | "sandbox";
1608
1628
  };
1609
1629
  };
1610
1630
  } | {
@@ -1623,8 +1643,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1623
1643
  orgId: string;
1624
1644
  };
1625
1645
  } & {
1626
- json: ({
1627
- chainId?: unknown;
1646
+ json: {
1628
1647
  context?: {
1629
1648
  description?: string | undefined;
1630
1649
  metadata?: Record<string, string> | undefined;
@@ -1648,8 +1667,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1648
1667
  sender?: `0x${string}` | undefined;
1649
1668
  token?: `0x${string}` | undefined;
1650
1669
  } | undefined;
1670
+ chainId: number;
1671
+ environment?: "production" | "sandbox" | undefined;
1651
1672
  } | {
1652
- chainId?: unknown;
1653
1673
  context?: {
1654
1674
  description?: string | undefined;
1655
1675
  metadata?: Record<string, string> | undefined;
@@ -1805,8 +1825,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1805
1825
  lte?: `0x${string}` | undefined;
1806
1826
  } | `0x${string}` | undefined;
1807
1827
  } | undefined;
1828
+ chainId: number;
1829
+ environment?: "production" | "sandbox" | undefined;
1808
1830
  } | {
1809
- chainId?: unknown;
1810
1831
  context?: {
1811
1832
  description?: string | undefined;
1812
1833
  metadata?: Record<string, string> | undefined;
@@ -1870,8 +1891,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1870
1891
  lte?: `0x${string}` | undefined;
1871
1892
  } | `0x${string}` | undefined;
1872
1893
  };
1894
+ chainId: number;
1895
+ environment?: "production" | "sandbox" | undefined;
1873
1896
  } | {
1874
- chainId?: unknown;
1875
1897
  context?: {
1876
1898
  description?: string | undefined;
1877
1899
  metadata?: Record<string, string> | undefined;
@@ -1933,8 +1955,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1933
1955
  lte?: `0x${string}` | undefined;
1934
1956
  } | `0x${string}` | undefined;
1935
1957
  } | undefined;
1958
+ chainId: number;
1959
+ environment?: "production" | "sandbox" | undefined;
1936
1960
  } | {
1937
- chainId?: unknown;
1938
1961
  context?: {
1939
1962
  description?: string | undefined;
1940
1963
  metadata?: Record<string, string> | undefined;
@@ -1951,14 +1974,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1951
1974
  type: "betterstack";
1952
1975
  url: string;
1953
1976
  };
1954
- eventType: "funding:deposit.updated";
1977
+ eventType: "routes:deposit.updated";
1955
1978
  filters?: {
1956
1979
  depositAddressId?: string | undefined;
1957
1980
  recipient?: `0x${string}` | undefined;
1958
1981
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1959
1982
  } | undefined;
1983
+ chainId: number;
1984
+ environment: "production" | "sandbox";
1960
1985
  } | {
1961
- chainId?: unknown;
1962
1986
  context?: {
1963
1987
  description?: string | undefined;
1964
1988
  metadata?: Record<string, string> | undefined;
@@ -1975,14 +1999,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1975
1999
  type: "betterstack";
1976
2000
  url: string;
1977
2001
  };
1978
- eventType: "funding:transfer.updated";
2002
+ eventType: "routes:transfer.updated";
1979
2003
  filters?: {
1980
2004
  id?: string | undefined;
1981
2005
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
1982
2006
  } | undefined;
1983
- }) & {
1984
2007
  chainId: number;
1985
- environment?: "production" | "sandbox" | undefined;
2008
+ environment: "production" | "sandbox";
1986
2009
  };
1987
2010
  };
1988
2011
  } | {
@@ -2001,8 +2024,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2001
2024
  orgId: string;
2002
2025
  };
2003
2026
  } & {
2004
- json: ({
2005
- chainId?: unknown;
2027
+ json: {
2006
2028
  context?: {
2007
2029
  description?: string | undefined;
2008
2030
  metadata?: Record<string, string> | undefined;
@@ -2026,8 +2048,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2026
2048
  sender?: `0x${string}` | undefined;
2027
2049
  token?: `0x${string}` | undefined;
2028
2050
  } | undefined;
2051
+ chainId: number;
2052
+ environment?: "production" | "sandbox" | undefined;
2029
2053
  } | {
2030
- chainId?: unknown;
2031
2054
  context?: {
2032
2055
  description?: string | undefined;
2033
2056
  metadata?: Record<string, string> | undefined;
@@ -2183,8 +2206,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2183
2206
  lte?: `0x${string}` | undefined;
2184
2207
  } | `0x${string}` | undefined;
2185
2208
  } | undefined;
2209
+ chainId: number;
2210
+ environment?: "production" | "sandbox" | undefined;
2186
2211
  } | {
2187
- chainId?: unknown;
2188
2212
  context?: {
2189
2213
  description?: string | undefined;
2190
2214
  metadata?: Record<string, string> | undefined;
@@ -2248,8 +2272,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2248
2272
  lte?: `0x${string}` | undefined;
2249
2273
  } | `0x${string}` | undefined;
2250
2274
  };
2275
+ chainId: number;
2276
+ environment?: "production" | "sandbox" | undefined;
2251
2277
  } | {
2252
- chainId?: unknown;
2253
2278
  context?: {
2254
2279
  description?: string | undefined;
2255
2280
  metadata?: Record<string, string> | undefined;
@@ -2311,8 +2336,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2311
2336
  lte?: `0x${string}` | undefined;
2312
2337
  } | `0x${string}` | undefined;
2313
2338
  } | undefined;
2339
+ chainId: number;
2340
+ environment?: "production" | "sandbox" | undefined;
2314
2341
  } | {
2315
- chainId?: unknown;
2316
2342
  context?: {
2317
2343
  description?: string | undefined;
2318
2344
  metadata?: Record<string, string> | undefined;
@@ -2329,14 +2355,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2329
2355
  type: "betterstack";
2330
2356
  url: string;
2331
2357
  };
2332
- eventType: "funding:deposit.updated";
2358
+ eventType: "routes:deposit.updated";
2333
2359
  filters?: {
2334
2360
  depositAddressId?: string | undefined;
2335
2361
  recipient?: `0x${string}` | undefined;
2336
2362
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2337
2363
  } | undefined;
2364
+ chainId: number;
2365
+ environment: "production" | "sandbox";
2338
2366
  } | {
2339
- chainId?: unknown;
2340
2367
  context?: {
2341
2368
  description?: string | undefined;
2342
2369
  metadata?: Record<string, string> | undefined;
@@ -2353,20 +2380,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2353
2380
  type: "betterstack";
2354
2381
  url: string;
2355
2382
  };
2356
- eventType: "funding:transfer.updated";
2383
+ eventType: "routes:transfer.updated";
2357
2384
  filters?: {
2358
2385
  id?: string | undefined;
2359
2386
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2360
2387
  } | undefined;
2361
- }) & {
2362
2388
  chainId: number;
2363
- environment?: "production" | "sandbox" | undefined;
2389
+ environment: "production" | "sandbox";
2364
2390
  };
2365
2391
  };
2366
2392
  } | {
2367
2393
  output: {
2368
2394
  error: {
2369
- code: "body_invalid";
2395
+ code: "chain_id_unsupported";
2370
2396
  details?: readonly Response.error.Detail[] | undefined;
2371
2397
  message: string;
2372
2398
  };
@@ -2379,8 +2405,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2379
2405
  orgId: string;
2380
2406
  };
2381
2407
  } & {
2382
- json: ({
2383
- chainId?: unknown;
2408
+ json: {
2384
2409
  context?: {
2385
2410
  description?: string | undefined;
2386
2411
  metadata?: Record<string, string> | undefined;
@@ -2404,8 +2429,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2404
2429
  sender?: `0x${string}` | undefined;
2405
2430
  token?: `0x${string}` | undefined;
2406
2431
  } | undefined;
2432
+ chainId: number;
2433
+ environment?: "production" | "sandbox" | undefined;
2407
2434
  } | {
2408
- chainId?: unknown;
2409
2435
  context?: {
2410
2436
  description?: string | undefined;
2411
2437
  metadata?: Record<string, string> | undefined;
@@ -2561,8 +2587,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2561
2587
  lte?: `0x${string}` | undefined;
2562
2588
  } | `0x${string}` | undefined;
2563
2589
  } | undefined;
2590
+ chainId: number;
2591
+ environment?: "production" | "sandbox" | undefined;
2564
2592
  } | {
2565
- chainId?: unknown;
2566
2593
  context?: {
2567
2594
  description?: string | undefined;
2568
2595
  metadata?: Record<string, string> | undefined;
@@ -2626,8 +2653,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2626
2653
  lte?: `0x${string}` | undefined;
2627
2654
  } | `0x${string}` | undefined;
2628
2655
  };
2656
+ chainId: number;
2657
+ environment?: "production" | "sandbox" | undefined;
2629
2658
  } | {
2630
- chainId?: unknown;
2631
2659
  context?: {
2632
2660
  description?: string | undefined;
2633
2661
  metadata?: Record<string, string> | undefined;
@@ -2689,8 +2717,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2689
2717
  lte?: `0x${string}` | undefined;
2690
2718
  } | `0x${string}` | undefined;
2691
2719
  } | undefined;
2720
+ chainId: number;
2721
+ environment?: "production" | "sandbox" | undefined;
2692
2722
  } | {
2693
- chainId?: unknown;
2694
2723
  context?: {
2695
2724
  description?: string | undefined;
2696
2725
  metadata?: Record<string, string> | undefined;
@@ -2707,14 +2736,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2707
2736
  type: "betterstack";
2708
2737
  url: string;
2709
2738
  };
2710
- eventType: "funding:deposit.updated";
2739
+ eventType: "routes:deposit.updated";
2711
2740
  filters?: {
2712
2741
  depositAddressId?: string | undefined;
2713
2742
  recipient?: `0x${string}` | undefined;
2714
2743
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2715
2744
  } | undefined;
2745
+ chainId: number;
2746
+ environment: "production" | "sandbox";
2716
2747
  } | {
2717
- chainId?: unknown;
2718
2748
  context?: {
2719
2749
  description?: string | undefined;
2720
2750
  metadata?: Record<string, string> | undefined;
@@ -2731,20 +2761,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2731
2761
  type: "betterstack";
2732
2762
  url: string;
2733
2763
  };
2734
- eventType: "funding:transfer.updated";
2764
+ eventType: "routes:transfer.updated";
2735
2765
  filters?: {
2736
2766
  id?: string | undefined;
2737
2767
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2738
2768
  } | undefined;
2739
- }) & {
2740
2769
  chainId: number;
2741
- environment?: "production" | "sandbox" | undefined;
2770
+ environment: "production" | "sandbox";
2742
2771
  };
2743
2772
  };
2744
2773
  } | {
2745
2774
  output: {
2746
2775
  error: {
2747
- code: "chain_id_unsupported";
2776
+ code: "param_invalid";
2748
2777
  details?: readonly Response.error.Detail[] | undefined;
2749
2778
  message: string;
2750
2779
  };
@@ -2757,8 +2786,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2757
2786
  orgId: string;
2758
2787
  };
2759
2788
  } & {
2760
- json: ({
2761
- chainId?: unknown;
2789
+ json: {
2762
2790
  context?: {
2763
2791
  description?: string | undefined;
2764
2792
  metadata?: Record<string, string> | undefined;
@@ -2782,8 +2810,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2782
2810
  sender?: `0x${string}` | undefined;
2783
2811
  token?: `0x${string}` | undefined;
2784
2812
  } | undefined;
2813
+ chainId: number;
2814
+ environment?: "production" | "sandbox" | undefined;
2785
2815
  } | {
2786
- chainId?: unknown;
2787
2816
  context?: {
2788
2817
  description?: string | undefined;
2789
2818
  metadata?: Record<string, string> | undefined;
@@ -2939,8 +2968,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2939
2968
  lte?: `0x${string}` | undefined;
2940
2969
  } | `0x${string}` | undefined;
2941
2970
  } | undefined;
2971
+ chainId: number;
2972
+ environment?: "production" | "sandbox" | undefined;
2942
2973
  } | {
2943
- chainId?: unknown;
2944
2974
  context?: {
2945
2975
  description?: string | undefined;
2946
2976
  metadata?: Record<string, string> | undefined;
@@ -3004,8 +3034,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3004
3034
  lte?: `0x${string}` | undefined;
3005
3035
  } | `0x${string}` | undefined;
3006
3036
  };
3037
+ chainId: number;
3038
+ environment?: "production" | "sandbox" | undefined;
3007
3039
  } | {
3008
- chainId?: unknown;
3009
3040
  context?: {
3010
3041
  description?: string | undefined;
3011
3042
  metadata?: Record<string, string> | undefined;
@@ -3067,8 +3098,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3067
3098
  lte?: `0x${string}` | undefined;
3068
3099
  } | `0x${string}` | undefined;
3069
3100
  } | undefined;
3101
+ chainId: number;
3102
+ environment?: "production" | "sandbox" | undefined;
3070
3103
  } | {
3071
- chainId?: unknown;
3072
3104
  context?: {
3073
3105
  description?: string | undefined;
3074
3106
  metadata?: Record<string, string> | undefined;
@@ -3085,14 +3117,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3085
3117
  type: "betterstack";
3086
3118
  url: string;
3087
3119
  };
3088
- eventType: "funding:deposit.updated";
3120
+ eventType: "routes:deposit.updated";
3089
3121
  filters?: {
3090
3122
  depositAddressId?: string | undefined;
3091
3123
  recipient?: `0x${string}` | undefined;
3092
3124
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3093
3125
  } | undefined;
3126
+ chainId: number;
3127
+ environment: "production" | "sandbox";
3094
3128
  } | {
3095
- chainId?: unknown;
3096
3129
  context?: {
3097
3130
  description?: string | undefined;
3098
3131
  metadata?: Record<string, string> | undefined;
@@ -3109,20 +3142,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3109
3142
  type: "betterstack";
3110
3143
  url: string;
3111
3144
  };
3112
- eventType: "funding:transfer.updated";
3145
+ eventType: "routes:transfer.updated";
3113
3146
  filters?: {
3114
3147
  id?: string | undefined;
3115
3148
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3116
3149
  } | undefined;
3117
- }) & {
3118
3150
  chainId: number;
3119
- environment?: "production" | "sandbox" | undefined;
3151
+ environment: "production" | "sandbox";
3120
3152
  };
3121
3153
  };
3122
3154
  } | {
3123
3155
  output: {
3124
3156
  error: {
3125
- code: "param_invalid";
3157
+ code: "body_invalid";
3126
3158
  details?: readonly Response.error.Detail[] | undefined;
3127
3159
  message: string;
3128
3160
  };
@@ -3135,8 +3167,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3135
3167
  orgId: string;
3136
3168
  };
3137
3169
  } & {
3138
- json: ({
3139
- chainId?: unknown;
3170
+ json: {
3140
3171
  context?: {
3141
3172
  description?: string | undefined;
3142
3173
  metadata?: Record<string, string> | undefined;
@@ -3160,8 +3191,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3160
3191
  sender?: `0x${string}` | undefined;
3161
3192
  token?: `0x${string}` | undefined;
3162
3193
  } | undefined;
3194
+ chainId: number;
3195
+ environment?: "production" | "sandbox" | undefined;
3163
3196
  } | {
3164
- chainId?: unknown;
3165
3197
  context?: {
3166
3198
  description?: string | undefined;
3167
3199
  metadata?: Record<string, string> | undefined;
@@ -3317,8 +3349,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3317
3349
  lte?: `0x${string}` | undefined;
3318
3350
  } | `0x${string}` | undefined;
3319
3351
  } | undefined;
3352
+ chainId: number;
3353
+ environment?: "production" | "sandbox" | undefined;
3320
3354
  } | {
3321
- chainId?: unknown;
3322
3355
  context?: {
3323
3356
  description?: string | undefined;
3324
3357
  metadata?: Record<string, string> | undefined;
@@ -3382,8 +3415,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3382
3415
  lte?: `0x${string}` | undefined;
3383
3416
  } | `0x${string}` | undefined;
3384
3417
  };
3418
+ chainId: number;
3419
+ environment?: "production" | "sandbox" | undefined;
3385
3420
  } | {
3386
- chainId?: unknown;
3387
3421
  context?: {
3388
3422
  description?: string | undefined;
3389
3423
  metadata?: Record<string, string> | undefined;
@@ -3445,8 +3479,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3445
3479
  lte?: `0x${string}` | undefined;
3446
3480
  } | `0x${string}` | undefined;
3447
3481
  } | undefined;
3482
+ chainId: number;
3483
+ environment?: "production" | "sandbox" | undefined;
3448
3484
  } | {
3449
- chainId?: unknown;
3450
3485
  context?: {
3451
3486
  description?: string | undefined;
3452
3487
  metadata?: Record<string, string> | undefined;
@@ -3463,14 +3498,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3463
3498
  type: "betterstack";
3464
3499
  url: string;
3465
3500
  };
3466
- eventType: "funding:deposit.updated";
3501
+ eventType: "routes:deposit.updated";
3467
3502
  filters?: {
3468
3503
  depositAddressId?: string | undefined;
3469
3504
  recipient?: `0x${string}` | undefined;
3470
3505
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3471
3506
  } | undefined;
3507
+ chainId: number;
3508
+ environment: "production" | "sandbox";
3472
3509
  } | {
3473
- chainId?: unknown;
3474
3510
  context?: {
3475
3511
  description?: string | undefined;
3476
3512
  metadata?: Record<string, string> | undefined;
@@ -3487,14 +3523,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3487
3523
  type: "betterstack";
3488
3524
  url: string;
3489
3525
  };
3490
- eventType: "funding:transfer.updated";
3526
+ eventType: "routes:transfer.updated";
3491
3527
  filters?: {
3492
3528
  id?: string | undefined;
3493
3529
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3494
3530
  } | undefined;
3495
- }) & {
3496
3531
  chainId: number;
3497
- environment?: "production" | "sandbox" | undefined;
3532
+ environment: "production" | "sandbox";
3498
3533
  };
3499
3534
  };
3500
3535
  } | {
@@ -3513,8 +3548,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3513
3548
  orgId: string;
3514
3549
  };
3515
3550
  } & {
3516
- json: ({
3517
- chainId?: unknown;
3551
+ json: {
3518
3552
  context?: {
3519
3553
  description?: string | undefined;
3520
3554
  metadata?: Record<string, string> | undefined;
@@ -3538,8 +3572,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3538
3572
  sender?: `0x${string}` | undefined;
3539
3573
  token?: `0x${string}` | undefined;
3540
3574
  } | undefined;
3575
+ chainId: number;
3576
+ environment?: "production" | "sandbox" | undefined;
3541
3577
  } | {
3542
- chainId?: unknown;
3543
3578
  context?: {
3544
3579
  description?: string | undefined;
3545
3580
  metadata?: Record<string, string> | undefined;
@@ -3695,8 +3730,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3695
3730
  lte?: `0x${string}` | undefined;
3696
3731
  } | `0x${string}` | undefined;
3697
3732
  } | undefined;
3733
+ chainId: number;
3734
+ environment?: "production" | "sandbox" | undefined;
3698
3735
  } | {
3699
- chainId?: unknown;
3700
3736
  context?: {
3701
3737
  description?: string | undefined;
3702
3738
  metadata?: Record<string, string> | undefined;
@@ -3760,8 +3796,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3760
3796
  lte?: `0x${string}` | undefined;
3761
3797
  } | `0x${string}` | undefined;
3762
3798
  };
3799
+ chainId: number;
3800
+ environment?: "production" | "sandbox" | undefined;
3763
3801
  } | {
3764
- chainId?: unknown;
3765
3802
  context?: {
3766
3803
  description?: string | undefined;
3767
3804
  metadata?: Record<string, string> | undefined;
@@ -3823,8 +3860,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3823
3860
  lte?: `0x${string}` | undefined;
3824
3861
  } | `0x${string}` | undefined;
3825
3862
  } | undefined;
3863
+ chainId: number;
3864
+ environment?: "production" | "sandbox" | undefined;
3826
3865
  } | {
3827
- chainId?: unknown;
3828
3866
  context?: {
3829
3867
  description?: string | undefined;
3830
3868
  metadata?: Record<string, string> | undefined;
@@ -3841,14 +3879,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3841
3879
  type: "betterstack";
3842
3880
  url: string;
3843
3881
  };
3844
- eventType: "funding:deposit.updated";
3882
+ eventType: "routes:deposit.updated";
3845
3883
  filters?: {
3846
3884
  depositAddressId?: string | undefined;
3847
3885
  recipient?: `0x${string}` | undefined;
3848
3886
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3849
3887
  } | undefined;
3888
+ chainId: number;
3889
+ environment: "production" | "sandbox";
3850
3890
  } | {
3851
- chainId?: unknown;
3852
3891
  context?: {
3853
3892
  description?: string | undefined;
3854
3893
  metadata?: Record<string, string> | undefined;
@@ -3865,14 +3904,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3865
3904
  type: "betterstack";
3866
3905
  url: string;
3867
3906
  };
3868
- eventType: "funding:transfer.updated";
3907
+ eventType: "routes:transfer.updated";
3869
3908
  filters?: {
3870
3909
  id?: string | undefined;
3871
3910
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3872
3911
  } | undefined;
3873
- }) & {
3874
3912
  chainId: number;
3875
- environment?: "production" | "sandbox" | undefined;
3913
+ environment: "production" | "sandbox";
3876
3914
  };
3877
3915
  };
3878
3916
  } | {
@@ -3891,8 +3929,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3891
3929
  orgId: string;
3892
3930
  };
3893
3931
  } & {
3894
- json: ({
3895
- chainId?: unknown;
3932
+ json: {
3896
3933
  context?: {
3897
3934
  description?: string | undefined;
3898
3935
  metadata?: Record<string, string> | undefined;
@@ -3916,8 +3953,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3916
3953
  sender?: `0x${string}` | undefined;
3917
3954
  token?: `0x${string}` | undefined;
3918
3955
  } | undefined;
3956
+ chainId: number;
3957
+ environment?: "production" | "sandbox" | undefined;
3919
3958
  } | {
3920
- chainId?: unknown;
3921
3959
  context?: {
3922
3960
  description?: string | undefined;
3923
3961
  metadata?: Record<string, string> | undefined;
@@ -4073,8 +4111,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4073
4111
  lte?: `0x${string}` | undefined;
4074
4112
  } | `0x${string}` | undefined;
4075
4113
  } | undefined;
4114
+ chainId: number;
4115
+ environment?: "production" | "sandbox" | undefined;
4076
4116
  } | {
4077
- chainId?: unknown;
4078
4117
  context?: {
4079
4118
  description?: string | undefined;
4080
4119
  metadata?: Record<string, string> | undefined;
@@ -4138,8 +4177,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4138
4177
  lte?: `0x${string}` | undefined;
4139
4178
  } | `0x${string}` | undefined;
4140
4179
  };
4180
+ chainId: number;
4181
+ environment?: "production" | "sandbox" | undefined;
4141
4182
  } | {
4142
- chainId?: unknown;
4143
4183
  context?: {
4144
4184
  description?: string | undefined;
4145
4185
  metadata?: Record<string, string> | undefined;
@@ -4201,8 +4241,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4201
4241
  lte?: `0x${string}` | undefined;
4202
4242
  } | `0x${string}` | undefined;
4203
4243
  } | undefined;
4244
+ chainId: number;
4245
+ environment?: "production" | "sandbox" | undefined;
4204
4246
  } | {
4205
- chainId?: unknown;
4206
4247
  context?: {
4207
4248
  description?: string | undefined;
4208
4249
  metadata?: Record<string, string> | undefined;
@@ -4219,14 +4260,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4219
4260
  type: "betterstack";
4220
4261
  url: string;
4221
4262
  };
4222
- eventType: "funding:deposit.updated";
4263
+ eventType: "routes:deposit.updated";
4223
4264
  filters?: {
4224
4265
  depositAddressId?: string | undefined;
4225
4266
  recipient?: `0x${string}` | undefined;
4226
4267
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4227
4268
  } | undefined;
4269
+ chainId: number;
4270
+ environment: "production" | "sandbox";
4228
4271
  } | {
4229
- chainId?: unknown;
4230
4272
  context?: {
4231
4273
  description?: string | undefined;
4232
4274
  metadata?: Record<string, string> | undefined;
@@ -4243,14 +4285,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4243
4285
  type: "betterstack";
4244
4286
  url: string;
4245
4287
  };
4246
- eventType: "funding:transfer.updated";
4288
+ eventType: "routes:transfer.updated";
4247
4289
  filters?: {
4248
4290
  id?: string | undefined;
4249
4291
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4250
4292
  } | undefined;
4251
- }) & {
4252
4293
  chainId: number;
4253
- environment?: "production" | "sandbox" | undefined;
4294
+ environment: "production" | "sandbox";
4254
4295
  };
4255
4296
  };
4256
4297
  } | {
@@ -4269,8 +4310,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4269
4310
  orgId: string;
4270
4311
  };
4271
4312
  } & {
4272
- json: ({
4273
- chainId?: unknown;
4313
+ json: {
4274
4314
  context?: {
4275
4315
  description?: string | undefined;
4276
4316
  metadata?: Record<string, string> | undefined;
@@ -4294,8 +4334,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4294
4334
  sender?: `0x${string}` | undefined;
4295
4335
  token?: `0x${string}` | undefined;
4296
4336
  } | undefined;
4337
+ chainId: number;
4338
+ environment?: "production" | "sandbox" | undefined;
4297
4339
  } | {
4298
- chainId?: unknown;
4299
4340
  context?: {
4300
4341
  description?: string | undefined;
4301
4342
  metadata?: Record<string, string> | undefined;
@@ -4451,8 +4492,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4451
4492
  lte?: `0x${string}` | undefined;
4452
4493
  } | `0x${string}` | undefined;
4453
4494
  } | undefined;
4495
+ chainId: number;
4496
+ environment?: "production" | "sandbox" | undefined;
4454
4497
  } | {
4455
- chainId?: unknown;
4456
4498
  context?: {
4457
4499
  description?: string | undefined;
4458
4500
  metadata?: Record<string, string> | undefined;
@@ -4516,8 +4558,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4516
4558
  lte?: `0x${string}` | undefined;
4517
4559
  } | `0x${string}` | undefined;
4518
4560
  };
4561
+ chainId: number;
4562
+ environment?: "production" | "sandbox" | undefined;
4519
4563
  } | {
4520
- chainId?: unknown;
4521
4564
  context?: {
4522
4565
  description?: string | undefined;
4523
4566
  metadata?: Record<string, string> | undefined;
@@ -4579,8 +4622,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4579
4622
  lte?: `0x${string}` | undefined;
4580
4623
  } | `0x${string}` | undefined;
4581
4624
  } | undefined;
4625
+ chainId: number;
4626
+ environment?: "production" | "sandbox" | undefined;
4582
4627
  } | {
4583
- chainId?: unknown;
4584
4628
  context?: {
4585
4629
  description?: string | undefined;
4586
4630
  metadata?: Record<string, string> | undefined;
@@ -4597,14 +4641,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4597
4641
  type: "betterstack";
4598
4642
  url: string;
4599
4643
  };
4600
- eventType: "funding:deposit.updated";
4644
+ eventType: "routes:deposit.updated";
4601
4645
  filters?: {
4602
4646
  depositAddressId?: string | undefined;
4603
4647
  recipient?: `0x${string}` | undefined;
4604
4648
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4605
4649
  } | undefined;
4650
+ chainId: number;
4651
+ environment: "production" | "sandbox";
4606
4652
  } | {
4607
- chainId?: unknown;
4608
4653
  context?: {
4609
4654
  description?: string | undefined;
4610
4655
  metadata?: Record<string, string> | undefined;
@@ -4621,14 +4666,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4621
4666
  type: "betterstack";
4622
4667
  url: string;
4623
4668
  };
4624
- eventType: "funding:transfer.updated";
4669
+ eventType: "routes:transfer.updated";
4625
4670
  filters?: {
4626
4671
  id?: string | undefined;
4627
4672
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4628
4673
  } | undefined;
4629
- }) & {
4630
4674
  chainId: number;
4631
- environment?: "production" | "sandbox" | undefined;
4675
+ environment: "production" | "sandbox";
4632
4676
  };
4633
4677
  };
4634
4678
  } | {
@@ -4647,8 +4691,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4647
4691
  orgId: string;
4648
4692
  };
4649
4693
  } & {
4650
- json: ({
4651
- chainId?: unknown;
4694
+ json: {
4652
4695
  context?: {
4653
4696
  description?: string | undefined;
4654
4697
  metadata?: Record<string, string> | undefined;
@@ -4672,8 +4715,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4672
4715
  sender?: `0x${string}` | undefined;
4673
4716
  token?: `0x${string}` | undefined;
4674
4717
  } | undefined;
4718
+ chainId: number;
4719
+ environment?: "production" | "sandbox" | undefined;
4675
4720
  } | {
4676
- chainId?: unknown;
4677
4721
  context?: {
4678
4722
  description?: string | undefined;
4679
4723
  metadata?: Record<string, string> | undefined;
@@ -4829,8 +4873,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4829
4873
  lte?: `0x${string}` | undefined;
4830
4874
  } | `0x${string}` | undefined;
4831
4875
  } | undefined;
4876
+ chainId: number;
4877
+ environment?: "production" | "sandbox" | undefined;
4832
4878
  } | {
4833
- chainId?: unknown;
4834
4879
  context?: {
4835
4880
  description?: string | undefined;
4836
4881
  metadata?: Record<string, string> | undefined;
@@ -4894,8 +4939,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4894
4939
  lte?: `0x${string}` | undefined;
4895
4940
  } | `0x${string}` | undefined;
4896
4941
  };
4942
+ chainId: number;
4943
+ environment?: "production" | "sandbox" | undefined;
4897
4944
  } | {
4898
- chainId?: unknown;
4899
4945
  context?: {
4900
4946
  description?: string | undefined;
4901
4947
  metadata?: Record<string, string> | undefined;
@@ -4957,8 +5003,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4957
5003
  lte?: `0x${string}` | undefined;
4958
5004
  } | `0x${string}` | undefined;
4959
5005
  } | undefined;
5006
+ chainId: number;
5007
+ environment?: "production" | "sandbox" | undefined;
4960
5008
  } | {
4961
- chainId?: unknown;
4962
5009
  context?: {
4963
5010
  description?: string | undefined;
4964
5011
  metadata?: Record<string, string> | undefined;
@@ -4975,14 +5022,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4975
5022
  type: "betterstack";
4976
5023
  url: string;
4977
5024
  };
4978
- eventType: "funding:deposit.updated";
5025
+ eventType: "routes:deposit.updated";
4979
5026
  filters?: {
4980
5027
  depositAddressId?: string | undefined;
4981
5028
  recipient?: `0x${string}` | undefined;
4982
5029
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4983
5030
  } | undefined;
5031
+ chainId: number;
5032
+ environment: "production" | "sandbox";
4984
5033
  } | {
4985
- chainId?: unknown;
4986
5034
  context?: {
4987
5035
  description?: string | undefined;
4988
5036
  metadata?: Record<string, string> | undefined;
@@ -4999,14 +5047,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4999
5047
  type: "betterstack";
5000
5048
  url: string;
5001
5049
  };
5002
- eventType: "funding:transfer.updated";
5050
+ eventType: "routes:transfer.updated";
5003
5051
  filters?: {
5004
5052
  id?: string | undefined;
5005
5053
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5006
5054
  } | undefined;
5007
- }) & {
5008
5055
  chainId: number;
5009
- environment?: "production" | "sandbox" | undefined;
5056
+ environment: "production" | "sandbox";
5010
5057
  };
5011
5058
  };
5012
5059
  } | {
@@ -5025,8 +5072,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5025
5072
  orgId: string;
5026
5073
  };
5027
5074
  } & {
5028
- json: ({
5029
- chainId?: unknown;
5075
+ json: {
5030
5076
  context?: {
5031
5077
  description?: string | undefined;
5032
5078
  metadata?: Record<string, string> | undefined;
@@ -5050,8 +5096,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5050
5096
  sender?: `0x${string}` | undefined;
5051
5097
  token?: `0x${string}` | undefined;
5052
5098
  } | undefined;
5099
+ chainId: number;
5100
+ environment?: "production" | "sandbox" | undefined;
5053
5101
  } | {
5054
- chainId?: unknown;
5055
5102
  context?: {
5056
5103
  description?: string | undefined;
5057
5104
  metadata?: Record<string, string> | undefined;
@@ -5207,8 +5254,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5207
5254
  lte?: `0x${string}` | undefined;
5208
5255
  } | `0x${string}` | undefined;
5209
5256
  } | undefined;
5257
+ chainId: number;
5258
+ environment?: "production" | "sandbox" | undefined;
5210
5259
  } | {
5211
- chainId?: unknown;
5212
5260
  context?: {
5213
5261
  description?: string | undefined;
5214
5262
  metadata?: Record<string, string> | undefined;
@@ -5272,8 +5320,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5272
5320
  lte?: `0x${string}` | undefined;
5273
5321
  } | `0x${string}` | undefined;
5274
5322
  };
5323
+ chainId: number;
5324
+ environment?: "production" | "sandbox" | undefined;
5275
5325
  } | {
5276
- chainId?: unknown;
5277
5326
  context?: {
5278
5327
  description?: string | undefined;
5279
5328
  metadata?: Record<string, string> | undefined;
@@ -5335,8 +5384,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5335
5384
  lte?: `0x${string}` | undefined;
5336
5385
  } | `0x${string}` | undefined;
5337
5386
  } | undefined;
5387
+ chainId: number;
5388
+ environment?: "production" | "sandbox" | undefined;
5338
5389
  } | {
5339
- chainId?: unknown;
5340
5390
  context?: {
5341
5391
  description?: string | undefined;
5342
5392
  metadata?: Record<string, string> | undefined;
@@ -5353,14 +5403,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5353
5403
  type: "betterstack";
5354
5404
  url: string;
5355
5405
  };
5356
- eventType: "funding:deposit.updated";
5406
+ eventType: "routes:deposit.updated";
5357
5407
  filters?: {
5358
5408
  depositAddressId?: string | undefined;
5359
5409
  recipient?: `0x${string}` | undefined;
5360
5410
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5361
5411
  } | undefined;
5412
+ chainId: number;
5413
+ environment: "production" | "sandbox";
5362
5414
  } | {
5363
- chainId?: unknown;
5364
5415
  context?: {
5365
5416
  description?: string | undefined;
5366
5417
  metadata?: Record<string, string> | undefined;
@@ -5377,14 +5428,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5377
5428
  type: "betterstack";
5378
5429
  url: string;
5379
5430
  };
5380
- eventType: "funding:transfer.updated";
5431
+ eventType: "routes:transfer.updated";
5381
5432
  filters?: {
5382
5433
  id?: string | undefined;
5383
5434
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5384
5435
  } | undefined;
5385
- }) & {
5386
5436
  chainId: number;
5387
- environment?: "production" | "sandbox" | undefined;
5437
+ environment: "production" | "sandbox";
5388
5438
  };
5389
5439
  };
5390
5440
  } | {
@@ -5403,8 +5453,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5403
5453
  orgId: string;
5404
5454
  };
5405
5455
  } & {
5406
- json: ({
5407
- chainId?: unknown;
5456
+ json: {
5408
5457
  context?: {
5409
5458
  description?: string | undefined;
5410
5459
  metadata?: Record<string, string> | undefined;
@@ -5428,8 +5477,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5428
5477
  sender?: `0x${string}` | undefined;
5429
5478
  token?: `0x${string}` | undefined;
5430
5479
  } | undefined;
5480
+ chainId: number;
5481
+ environment?: "production" | "sandbox" | undefined;
5431
5482
  } | {
5432
- chainId?: unknown;
5433
5483
  context?: {
5434
5484
  description?: string | undefined;
5435
5485
  metadata?: Record<string, string> | undefined;
@@ -5585,8 +5635,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5585
5635
  lte?: `0x${string}` | undefined;
5586
5636
  } | `0x${string}` | undefined;
5587
5637
  } | undefined;
5638
+ chainId: number;
5639
+ environment?: "production" | "sandbox" | undefined;
5588
5640
  } | {
5589
- chainId?: unknown;
5590
5641
  context?: {
5591
5642
  description?: string | undefined;
5592
5643
  metadata?: Record<string, string> | undefined;
@@ -5650,8 +5701,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5650
5701
  lte?: `0x${string}` | undefined;
5651
5702
  } | `0x${string}` | undefined;
5652
5703
  };
5704
+ chainId: number;
5705
+ environment?: "production" | "sandbox" | undefined;
5653
5706
  } | {
5654
- chainId?: unknown;
5655
5707
  context?: {
5656
5708
  description?: string | undefined;
5657
5709
  metadata?: Record<string, string> | undefined;
@@ -5713,8 +5765,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5713
5765
  lte?: `0x${string}` | undefined;
5714
5766
  } | `0x${string}` | undefined;
5715
5767
  } | undefined;
5768
+ chainId: number;
5769
+ environment?: "production" | "sandbox" | undefined;
5716
5770
  } | {
5717
- chainId?: unknown;
5718
5771
  context?: {
5719
5772
  description?: string | undefined;
5720
5773
  metadata?: Record<string, string> | undefined;
@@ -5731,14 +5784,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5731
5784
  type: "betterstack";
5732
5785
  url: string;
5733
5786
  };
5734
- eventType: "funding:deposit.updated";
5787
+ eventType: "routes:deposit.updated";
5735
5788
  filters?: {
5736
5789
  depositAddressId?: string | undefined;
5737
5790
  recipient?: `0x${string}` | undefined;
5738
5791
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5739
5792
  } | undefined;
5793
+ chainId: number;
5794
+ environment: "production" | "sandbox";
5740
5795
  } | {
5741
- chainId?: unknown;
5742
5796
  context?: {
5743
5797
  description?: string | undefined;
5744
5798
  metadata?: Record<string, string> | undefined;
@@ -5755,14 +5809,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5755
5809
  type: "betterstack";
5756
5810
  url: string;
5757
5811
  };
5758
- eventType: "funding:transfer.updated";
5812
+ eventType: "routes:transfer.updated";
5759
5813
  filters?: {
5760
5814
  id?: string | undefined;
5761
5815
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5762
5816
  } | undefined;
5763
- }) & {
5764
5817
  chainId: number;
5765
- environment?: "production" | "sandbox" | undefined;
5818
+ environment: "production" | "sandbox";
5766
5819
  };
5767
5820
  };
5768
5821
  } | {
@@ -5781,8 +5834,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5781
5834
  orgId: string;
5782
5835
  };
5783
5836
  } & {
5784
- json: ({
5785
- chainId?: unknown;
5837
+ json: {
5786
5838
  context?: {
5787
5839
  description?: string | undefined;
5788
5840
  metadata?: Record<string, string> | undefined;
@@ -5806,8 +5858,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5806
5858
  sender?: `0x${string}` | undefined;
5807
5859
  token?: `0x${string}` | undefined;
5808
5860
  } | undefined;
5861
+ chainId: number;
5862
+ environment?: "production" | "sandbox" | undefined;
5809
5863
  } | {
5810
- chainId?: unknown;
5811
5864
  context?: {
5812
5865
  description?: string | undefined;
5813
5866
  metadata?: Record<string, string> | undefined;
@@ -5963,8 +6016,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5963
6016
  lte?: `0x${string}` | undefined;
5964
6017
  } | `0x${string}` | undefined;
5965
6018
  } | undefined;
6019
+ chainId: number;
6020
+ environment?: "production" | "sandbox" | undefined;
5966
6021
  } | {
5967
- chainId?: unknown;
5968
6022
  context?: {
5969
6023
  description?: string | undefined;
5970
6024
  metadata?: Record<string, string> | undefined;
@@ -6028,8 +6082,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6028
6082
  lte?: `0x${string}` | undefined;
6029
6083
  } | `0x${string}` | undefined;
6030
6084
  };
6085
+ chainId: number;
6086
+ environment?: "production" | "sandbox" | undefined;
6031
6087
  } | {
6032
- chainId?: unknown;
6033
6088
  context?: {
6034
6089
  description?: string | undefined;
6035
6090
  metadata?: Record<string, string> | undefined;
@@ -6091,8 +6146,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6091
6146
  lte?: `0x${string}` | undefined;
6092
6147
  } | `0x${string}` | undefined;
6093
6148
  } | undefined;
6149
+ chainId: number;
6150
+ environment?: "production" | "sandbox" | undefined;
6094
6151
  } | {
6095
- chainId?: unknown;
6096
6152
  context?: {
6097
6153
  description?: string | undefined;
6098
6154
  metadata?: Record<string, string> | undefined;
@@ -6109,14 +6165,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6109
6165
  type: "betterstack";
6110
6166
  url: string;
6111
6167
  };
6112
- eventType: "funding:deposit.updated";
6168
+ eventType: "routes:deposit.updated";
6113
6169
  filters?: {
6114
6170
  depositAddressId?: string | undefined;
6115
6171
  recipient?: `0x${string}` | undefined;
6116
6172
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6117
6173
  } | undefined;
6174
+ chainId: number;
6175
+ environment: "production" | "sandbox";
6118
6176
  } | {
6119
- chainId?: unknown;
6120
6177
  context?: {
6121
6178
  description?: string | undefined;
6122
6179
  metadata?: Record<string, string> | undefined;
@@ -6133,14 +6190,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6133
6190
  type: "betterstack";
6134
6191
  url: string;
6135
6192
  };
6136
- eventType: "funding:transfer.updated";
6193
+ eventType: "routes:transfer.updated";
6137
6194
  filters?: {
6138
6195
  id?: string | undefined;
6139
6196
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6140
6197
  } | undefined;
6141
- }) & {
6142
6198
  chainId: number;
6143
- environment?: "production" | "sandbox" | undefined;
6199
+ environment: "production" | "sandbox";
6144
6200
  };
6145
6201
  };
6146
6202
  } | {
@@ -6148,7 +6204,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6148
6204
  chainId: number;
6149
6205
  createdAt: string;
6150
6206
  environment?: "production" | "sandbox" | undefined;
6151
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6207
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6152
6208
  expiresAt?: string | undefined;
6153
6209
  failureCount: number;
6154
6210
  filters: {
@@ -6174,7 +6230,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6174
6230
  chainId: number;
6175
6231
  createdAt: string;
6176
6232
  environment?: "production" | "sandbox" | undefined;
6177
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6233
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6178
6234
  expiresAt?: string | undefined;
6179
6235
  failureCount: number;
6180
6236
  filters: {
@@ -6199,7 +6255,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6199
6255
  chainId: number;
6200
6256
  createdAt: string;
6201
6257
  environment?: "production" | "sandbox" | undefined;
6202
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6258
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6203
6259
  expiresAt?: string | undefined;
6204
6260
  failureCount: number;
6205
6261
  filters: {
@@ -6229,8 +6285,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6229
6285
  orgId: string;
6230
6286
  };
6231
6287
  } & {
6232
- json: ({
6233
- chainId?: unknown;
6288
+ json: {
6234
6289
  context?: {
6235
6290
  description?: string | undefined;
6236
6291
  metadata?: Record<string, string> | undefined;
@@ -6254,8 +6309,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6254
6309
  sender?: `0x${string}` | undefined;
6255
6310
  token?: `0x${string}` | undefined;
6256
6311
  } | undefined;
6312
+ chainId: number;
6313
+ environment?: "production" | "sandbox" | undefined;
6257
6314
  } | {
6258
- chainId?: unknown;
6259
6315
  context?: {
6260
6316
  description?: string | undefined;
6261
6317
  metadata?: Record<string, string> | undefined;
@@ -6411,8 +6467,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6411
6467
  lte?: `0x${string}` | undefined;
6412
6468
  } | `0x${string}` | undefined;
6413
6469
  } | undefined;
6470
+ chainId: number;
6471
+ environment?: "production" | "sandbox" | undefined;
6414
6472
  } | {
6415
- chainId?: unknown;
6416
6473
  context?: {
6417
6474
  description?: string | undefined;
6418
6475
  metadata?: Record<string, string> | undefined;
@@ -6476,8 +6533,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6476
6533
  lte?: `0x${string}` | undefined;
6477
6534
  } | `0x${string}` | undefined;
6478
6535
  };
6536
+ chainId: number;
6537
+ environment?: "production" | "sandbox" | undefined;
6479
6538
  } | {
6480
- chainId?: unknown;
6481
6539
  context?: {
6482
6540
  description?: string | undefined;
6483
6541
  metadata?: Record<string, string> | undefined;
@@ -6539,8 +6597,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6539
6597
  lte?: `0x${string}` | undefined;
6540
6598
  } | `0x${string}` | undefined;
6541
6599
  } | undefined;
6600
+ chainId: number;
6601
+ environment?: "production" | "sandbox" | undefined;
6542
6602
  } | {
6543
- chainId?: unknown;
6544
6603
  context?: {
6545
6604
  description?: string | undefined;
6546
6605
  metadata?: Record<string, string> | undefined;
@@ -6557,14 +6616,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6557
6616
  type: "betterstack";
6558
6617
  url: string;
6559
6618
  };
6560
- eventType: "funding:deposit.updated";
6619
+ eventType: "routes:deposit.updated";
6561
6620
  filters?: {
6562
6621
  depositAddressId?: string | undefined;
6563
6622
  recipient?: `0x${string}` | undefined;
6564
6623
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6565
6624
  } | undefined;
6625
+ chainId: number;
6626
+ environment: "production" | "sandbox";
6566
6627
  } | {
6567
- chainId?: unknown;
6568
6628
  context?: {
6569
6629
  description?: string | undefined;
6570
6630
  metadata?: Record<string, string> | undefined;
@@ -6581,14 +6641,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6581
6641
  type: "betterstack";
6582
6642
  url: string;
6583
6643
  };
6584
- eventType: "funding:transfer.updated";
6644
+ eventType: "routes:transfer.updated";
6585
6645
  filters?: {
6586
6646
  id?: string | undefined;
6587
6647
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6588
6648
  } | undefined;
6589
- }) & {
6590
6649
  chainId: number;
6591
- environment?: "production" | "sandbox" | undefined;
6650
+ environment: "production" | "sandbox";
6592
6651
  };
6593
6652
  };
6594
6653
  };
@@ -6713,7 +6772,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6713
6772
  chainId: number;
6714
6773
  createdAt: string;
6715
6774
  environment?: "production" | "sandbox" | undefined;
6716
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6775
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6717
6776
  expiresAt?: string | undefined;
6718
6777
  failureCount: number;
6719
6778
  filters: {
@@ -7459,12 +7518,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7459
7518
  sourceTransferIndex?: number | undefined;
7460
7519
  status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
7461
7520
  statusReason?: {
7462
- code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7521
+ code: "billing_past_due" | "billing_required" | "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7463
7522
  message: string;
7464
7523
  } | undefined;
7465
7524
  updatedAt: string;
7466
7525
  };
7467
- type: "funding:deposit.updated";
7526
+ type: "routes:deposit.updated";
7468
7527
  } | {
7469
7528
  chainId: number;
7470
7529
  context?: {
@@ -7491,6 +7550,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7491
7550
  decimals: number;
7492
7551
  formatted: string;
7493
7552
  } | undefined;
7553
+ destinationAmountRequired?: {
7554
+ baseUnits: string;
7555
+ currency: string;
7556
+ decimals: number;
7557
+ formatted: string;
7558
+ } | undefined;
7494
7559
  destinationChain: {
7495
7560
  addressFormat: "base58" | "base58check" | "hex";
7496
7561
  id: string;
@@ -7578,15 +7643,16 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7578
7643
  verified: boolean;
7579
7644
  };
7580
7645
  sourceTransactionHashes?: string[] | undefined;
7646
+ subsidize: boolean;
7581
7647
  status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
7582
7648
  statusReason?: {
7583
- code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
7649
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7584
7650
  message: string;
7585
7651
  } | undefined;
7586
7652
  updatedAt: string;
7587
7653
  version: number;
7588
7654
  };
7589
- type: "funding:transfer.updated";
7655
+ type: "routes:transfer.updated";
7590
7656
  } | {
7591
7657
  chainId: number;
7592
7658
  context?: {
@@ -7867,7 +7933,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7867
7933
  } | {
7868
7934
  output: {
7869
7935
  error: {
7870
- code: "body_invalid";
7936
+ code: "param_invalid";
7871
7937
  details?: readonly Response.error.Detail[] | undefined;
7872
7938
  message: string;
7873
7939
  };
@@ -7888,7 +7954,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7888
7954
  } | {
7889
7955
  output: {
7890
7956
  error: {
7891
- code: "param_invalid";
7957
+ code: "body_invalid";
7892
7958
  details?: readonly Response.error.Detail[] | undefined;
7893
7959
  message: string;
7894
7960
  };
@@ -7995,7 +8061,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7995
8061
  chainId: number;
7996
8062
  createdAt: string;
7997
8063
  environment?: "production" | "sandbox" | undefined;
7998
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
8064
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
7999
8065
  expiresAt?: string | undefined;
8000
8066
  failureCount: number;
8001
8067
  filters: {