@elizaos/plugin-wallet 2.0.0-beta.1 → 2.0.3-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/README.md +70 -45
  2. package/auto-enable.ts +1 -1
  3. package/dist/actions/failure-codes.d.ts +12 -0
  4. package/dist/actions/index.d.ts +1 -0
  5. package/dist/analytics/birdeye/actions/wallet-search-address.d.ts +7 -0
  6. package/dist/analytics/birdeye/birdeye-task.d.ts +27 -0
  7. package/dist/analytics/birdeye/birdeye.d.ts +140 -0
  8. package/dist/analytics/birdeye/constants.d.ts +68 -0
  9. package/dist/analytics/birdeye/providers/agent-portfolio-provider.d.ts +8 -0
  10. package/dist/analytics/birdeye/providers/market.d.ts +18 -0
  11. package/dist/analytics/birdeye/providers/portfolio-factory.d.ts +10 -0
  12. package/dist/analytics/birdeye/providers/trending.d.ts +19 -0
  13. package/dist/analytics/birdeye/providers/wallet.d.ts +5 -0
  14. package/dist/analytics/birdeye/search-category.d.ts +52 -0
  15. package/dist/analytics/birdeye/service.d.ts +94 -0
  16. package/dist/analytics/birdeye/types/api/common.d.ts +199 -0
  17. package/dist/analytics/birdeye/types/api/defi.d.ts +187 -0
  18. package/dist/analytics/birdeye/types/api/pair.d.ts +182 -0
  19. package/dist/analytics/birdeye/types/api/search.d.ts +64 -0
  20. package/dist/analytics/birdeye/types/api/token.d.ts +580 -0
  21. package/dist/analytics/birdeye/types/api/trader.d.ts +70 -0
  22. package/dist/analytics/birdeye/types/api/wallet.d.ts +161 -0
  23. package/dist/analytics/birdeye/types/shared.d.ts +83 -0
  24. package/dist/analytics/birdeye/utils.d.ts +74 -0
  25. package/dist/analytics/dexscreener/errors.d.ts +2 -0
  26. package/dist/analytics/dexscreener/index.d.ts +3 -0
  27. package/dist/analytics/dexscreener/search-category.d.ts +3 -0
  28. package/dist/analytics/dexscreener/service.d.ts +34 -0
  29. package/dist/analytics/dexscreener/types.d.ts +131 -0
  30. package/dist/analytics/lpinfo/index.d.ts +31 -0
  31. package/dist/analytics/lpinfo/kamino/index.d.ts +7 -0
  32. package/dist/analytics/lpinfo/kamino/providers/kaminoLiquidityProvider.d.ts +6 -0
  33. package/dist/analytics/lpinfo/kamino/providers/kaminoPoolProvider.d.ts +6 -0
  34. package/dist/analytics/lpinfo/kamino/providers/kaminoProvider.d.ts +6 -0
  35. package/dist/analytics/lpinfo/kamino/services/kaminoLiquidityService.d.ts +203 -0
  36. package/dist/analytics/lpinfo/kamino/services/kaminoService.d.ts +171 -0
  37. package/dist/analytics/lpinfo/steer/index.d.ts +7 -0
  38. package/dist/analytics/lpinfo/steer/providers/steerLiquidityProvider.d.ts +6 -0
  39. package/dist/analytics/lpinfo/steer/services/steerLiquidityService.d.ts +208 -0
  40. package/dist/analytics/lpinfo/steer/steer-display-types.d.ts +97 -0
  41. package/dist/analytics/news/index.d.ts +32 -0
  42. package/dist/analytics/news/interfaces/types.d.ts +177 -0
  43. package/dist/analytics/news/providers/defiNewsProvider.d.ts +106 -0
  44. package/dist/analytics/news/services/newsDataService.d.ts +72 -0
  45. package/dist/analytics/news/utils/formatters.d.ts +54 -0
  46. package/dist/analytics/token-info/action.d.ts +6 -0
  47. package/dist/analytics/token-info/index.d.ts +3 -0
  48. package/dist/analytics/token-info/params.d.ts +10 -0
  49. package/dist/analytics/token-info/providers.d.ts +4 -0
  50. package/dist/analytics/token-info/service.d.ts +19 -0
  51. package/dist/analytics/token-info/types.d.ts +45 -0
  52. package/dist/api/wallet-routes.d.ts +100 -0
  53. package/dist/audit/audit-log.d.ts +29 -0
  54. package/dist/browser-shim/build-shim.d.ts +31 -0
  55. package/dist/browser-shim/index.d.ts +1 -0
  56. package/dist/chains/evm/actions/helpers.d.ts +31 -0
  57. package/dist/chains/evm/actions/swap.d.ts +53 -0
  58. package/dist/chains/evm/actions/transfer.d.ts +10 -0
  59. package/dist/chains/evm/bridge-router.d.ts +44 -0
  60. package/dist/chains/evm/build.d.ts +2 -0
  61. package/dist/chains/evm/chain-handler.d.ts +37 -0
  62. package/dist/chains/evm/constants.d.ts +16 -0
  63. package/dist/chains/evm/dex/aerodrome/index.d.ts +6 -0
  64. package/dist/chains/evm/dex/aerodrome/services/AerodromeLpService.d.ts +27 -0
  65. package/dist/chains/evm/dex/aerodrome/types.d.ts +435 -0
  66. package/dist/chains/evm/dex/pancakeswp/index.d.ts +6 -0
  67. package/dist/chains/evm/dex/pancakeswp/services/PancakeSwapV3LpService.d.ts +28 -0
  68. package/dist/chains/evm/dex/pancakeswp/types.d.ts +19 -0
  69. package/dist/chains/evm/dex/uniswap/index.d.ts +6 -0
  70. package/dist/chains/evm/dex/uniswap/services/UniswapV3LpService.d.ts +28 -0
  71. package/dist/chains/evm/dex/uniswap/types.d.ts +458 -0
  72. package/dist/chains/evm/generated/specs/spec-helpers.d.ts +35 -0
  73. package/dist/chains/evm/generated/specs/specs.d.ts +99 -0
  74. package/dist/chains/evm/gov-router.d.ts +6 -0
  75. package/dist/chains/evm/index.browser.d.ts +3 -0
  76. package/dist/chains/evm/index.d.ts +6 -0
  77. package/dist/chains/evm/prompts.d.ts +24 -0
  78. package/dist/chains/evm/providers/get-balance.d.ts +2 -0
  79. package/dist/chains/evm/providers/wallet.d.ts +35 -0
  80. package/dist/chains/evm/routes/sign.d.ts +13 -0
  81. package/dist/chains/evm/rpc-providers.d.ts +26 -0
  82. package/dist/chains/evm/service.d.ts +26 -0
  83. package/dist/chains/evm/templates/index.d.ts +1 -0
  84. package/dist/chains/evm/types/index.d.ts +296 -0
  85. package/dist/chains/evm/vitest.config.d.ts +2 -0
  86. package/dist/chains/registry.d.ts +3 -0
  87. package/dist/chains/solana/actions/confirmation.d.ts +9 -0
  88. package/dist/chains/solana/bn.d.ts +6 -0
  89. package/dist/chains/solana/build.d.ts +2 -0
  90. package/dist/chains/solana/constants.d.ts +2 -0
  91. package/dist/chains/solana/dex/meteora/e2e/scenarios.d.ts +10 -0
  92. package/dist/chains/solana/dex/meteora/e2e/test-utils.d.ts +28 -0
  93. package/dist/chains/solana/dex/meteora/index.d.ts +3 -0
  94. package/dist/chains/solana/dex/meteora/providers/positionProvider.d.ts +9 -0
  95. package/dist/chains/solana/dex/meteora/services/MeteoraLpService.d.ts +37 -0
  96. package/dist/chains/solana/dex/meteora/utils/dlmm.d.ts +6 -0
  97. package/dist/chains/solana/dex/meteora/utils/loadWallet.d.ts +14 -0
  98. package/dist/chains/solana/dex/meteora/utils/sendTransaction.d.ts +2 -0
  99. package/dist/chains/solana/dex/orca/index.d.ts +6 -0
  100. package/dist/chains/solana/dex/orca/providers/positionProvider.d.ts +10 -0
  101. package/dist/chains/solana/dex/orca/services/srv_orca.d.ts +10 -0
  102. package/dist/chains/solana/dex/orca/types.d.ts +61 -0
  103. package/dist/chains/solana/dex/orca/utils/loadWallet.d.ts +1 -0
  104. package/dist/chains/solana/dex/orca/utils/sendTransaction.d.ts +2 -0
  105. package/dist/chains/solana/dex/raydium/index.d.ts +6 -0
  106. package/dist/chains/solana/dex/raydium/providers/positionProvider.d.ts +10 -0
  107. package/dist/chains/solana/dex/raydium/services/srv_raydium.d.ts +104 -0
  108. package/dist/chains/solana/dex/raydium/types.d.ts +42 -0
  109. package/dist/chains/solana/environment.d.ts +15 -0
  110. package/dist/chains/solana/generated/specs/spec-helpers.d.ts +35 -0
  111. package/dist/chains/solana/generated/specs/specs.d.ts +73 -0
  112. package/dist/chains/solana/index.browser.d.ts +3 -0
  113. package/dist/chains/solana/index.d.ts +7 -0
  114. package/dist/chains/solana/keypairUtils.d.ts +7 -0
  115. package/dist/chains/solana/prompts.d.ts +12 -0
  116. package/dist/chains/solana/providers/wallet.d.ts +2 -0
  117. package/dist/chains/solana/routes/index.d.ts +2 -0
  118. package/dist/chains/solana/routes/sign.d.ts +16 -0
  119. package/dist/chains/solana/service.d.ts +237 -0
  120. package/dist/chains/solana/types.d.ts +377 -0
  121. package/dist/chains/solana/vitest.config.d.ts +2 -0
  122. package/dist/chains/wallet-action.d.ts +3 -0
  123. package/dist/contracts.d.ts +58 -0
  124. package/dist/core-augmentation.d.ts +9 -0
  125. package/dist/index.d.mts +27 -34727
  126. package/dist/index.d.ts +27 -0
  127. package/dist/index.mjs +28246 -21186
  128. package/dist/index.mjs.map +153 -0
  129. package/dist/lib/server-wallet-trade.d.ts +22 -0
  130. package/dist/lib/server-wallet-trade.js +333 -0
  131. package/dist/lib/server-wallet-trade.js.map +11 -0
  132. package/dist/lib/wallet-export-guard.d.ts +45 -0
  133. package/dist/lp/actions/liquidity.d.ts +2 -0
  134. package/dist/lp/e2e/real-token-tests.d.ts +6 -0
  135. package/dist/lp/e2e/scenarios.d.ts +9 -0
  136. package/dist/lp/e2e/test-utils.d.ts +28 -0
  137. package/dist/lp/lp-manager-entry.d.ts +18 -0
  138. package/dist/lp/services/ConcentratedLiquidityService.d.ts +32 -0
  139. package/dist/lp/services/DexInteractionService.d.ts +34 -0
  140. package/dist/lp/services/LpManagementService.d.ts +116 -0
  141. package/dist/lp/services/UserLpProfileService.d.ts +18 -0
  142. package/dist/lp/services/VaultService.d.ts +21 -0
  143. package/dist/lp/services/YieldOptimizationService.d.ts +59 -0
  144. package/dist/lp/services/__tests__/MockLpService.d.ts +17 -0
  145. package/dist/lp/types.d.ts +439 -0
  146. package/dist/lp/utils/solanaClient.d.ts +26 -0
  147. package/dist/plugin.d.ts +7 -0
  148. package/dist/policy/policy.d.ts +14 -0
  149. package/dist/providers/canonical-provider.d.ts +19 -0
  150. package/dist/providers/wallet-provider.d.ts +5 -0
  151. package/dist/register-routes.d.ts +1 -0
  152. package/dist/routes/plugin.d.ts +14 -0
  153. package/dist/routes/wallet-market-overview-route.d.ts +7 -0
  154. package/dist/sdk/abi.d.ts +396 -0
  155. package/dist/sdk/bridge/abis.d.ts +63 -0
  156. package/dist/sdk/bridge/client.d.ts +48 -0
  157. package/dist/sdk/bridge/index.d.ts +14 -0
  158. package/dist/sdk/bridge/solana.d.ts +131 -0
  159. package/dist/sdk/bridge/types.d.ts +92 -0
  160. package/dist/sdk/convenience.d.ts +104 -0
  161. package/dist/sdk/escrow/MutualStakeEscrow.d.ts +75 -0
  162. package/dist/sdk/escrow/types.d.ts +58 -0
  163. package/dist/sdk/escrow/verifiers.d.ts +25 -0
  164. package/dist/sdk/identity/erc8004.d.ts +304 -0
  165. package/dist/sdk/identity/reputation.d.ts +317 -0
  166. package/dist/sdk/identity/uaid.d.ts +192 -0
  167. package/dist/sdk/identity/validation.d.ts +282 -0
  168. package/dist/sdk/index.d.ts +133 -0
  169. package/dist/sdk/index.js +5284 -0
  170. package/dist/sdk/index.js.map +40 -0
  171. package/dist/sdk/policy/SpendingPolicy.d.ts +105 -0
  172. package/dist/sdk/policy/UptoBillingPolicy.d.ts +87 -0
  173. package/dist/sdk/router/PaymentRouter.d.ts +77 -0
  174. package/dist/sdk/router/index.d.ts +2 -0
  175. package/dist/sdk/swap/SwapModule.d.ts +47 -0
  176. package/dist/sdk/swap/abi.d.ts +50 -0
  177. package/dist/sdk/swap/index.d.ts +11 -0
  178. package/dist/sdk/swap/types.d.ts +101 -0
  179. package/dist/sdk/tokens/decimals.d.ts +64 -0
  180. package/dist/sdk/tokens/registry.d.ts +81 -0
  181. package/dist/sdk/tokens/solana.d.ts +107 -0
  182. package/dist/sdk/tokens/transfers.d.ts +94 -0
  183. package/dist/sdk/types.d.ts +129 -0
  184. package/dist/sdk/wallet-core.d.ts +29450 -0
  185. package/dist/sdk/x402/budget.d.ts +51 -0
  186. package/dist/sdk/x402/chains/abstract/index.d.ts +134 -0
  187. package/dist/sdk/x402/client.d.ts +66 -0
  188. package/dist/sdk/x402/index.d.ts +8 -0
  189. package/dist/sdk/x402/middleware.d.ts +37 -0
  190. package/dist/sdk/x402/multi-asset.d.ts +53 -0
  191. package/dist/sdk/x402/types.d.ts +109 -0
  192. package/dist/security/wallet-context-safety.d.ts +7 -0
  193. package/dist/security/wallet-financial-confirmation.d.ts +23 -0
  194. package/dist/services/wallet-backend-service.d.ts +39 -0
  195. package/dist/types/wallet-router.d.ts +130 -0
  196. package/dist/utils/intent-trajectory.d.ts +34 -0
  197. package/dist/wallet/backend.d.ts +41 -0
  198. package/dist/wallet/errors.d.ts +17 -0
  199. package/dist/wallet/index.d.ts +6 -0
  200. package/dist/wallet/local-eoa-backend.d.ts +37 -0
  201. package/dist/wallet/pending.d.ts +47 -0
  202. package/dist/wallet/select-backend.d.ts +11 -0
  203. package/dist/wallet/steward-backend.d.ts +22 -0
  204. package/dist/wallet-action.d.ts +1 -0
  205. package/dist/wallet-action.js +6292 -0
  206. package/dist/wallet-action.js.map +44 -0
  207. package/package.json +35 -21
  208. package/registry-entry.json +134 -0
  209. package/src/analytics/birdeye/actions/wallet-search-address.ts +85 -5
  210. package/src/analytics/birdeye/birdeye-task.ts +25 -9
  211. package/src/analytics/birdeye/birdeye.ts +6 -7
  212. package/src/analytics/birdeye/constants.ts +0 -1
  213. package/src/analytics/birdeye/providers/agent-portfolio-provider.ts +0 -1
  214. package/src/analytics/birdeye/providers/market.ts +51 -45
  215. package/src/analytics/birdeye/providers/portfolio-factory.ts +79 -38
  216. package/src/analytics/birdeye/providers/trending.ts +43 -46
  217. package/src/analytics/birdeye/providers/wallet.ts +0 -1
  218. package/src/analytics/birdeye/search-category.test.ts +1 -1
  219. package/src/analytics/birdeye/search-category.ts +77 -12
  220. package/src/analytics/birdeye/service.test.ts +146 -0
  221. package/src/analytics/birdeye/service.ts +220 -105
  222. package/src/analytics/birdeye/types/api/common.ts +0 -1
  223. package/src/analytics/birdeye/types/api/defi.ts +0 -1
  224. package/src/analytics/birdeye/types/api/pair.ts +0 -1
  225. package/src/analytics/birdeye/types/api/search.ts +0 -1
  226. package/src/analytics/birdeye/types/api/token.ts +0 -1
  227. package/src/analytics/birdeye/types/api/trader.ts +0 -1
  228. package/src/analytics/birdeye/types/api/wallet.ts +0 -1
  229. package/src/analytics/birdeye/types/shared.ts +0 -11
  230. package/src/analytics/birdeye/utils.test.ts +69 -0
  231. package/src/analytics/birdeye/utils.ts +11 -8
  232. package/src/analytics/dexscreener/search-category.ts +0 -1
  233. package/src/analytics/dexscreener/service.ts +7 -12
  234. package/src/analytics/dexscreener/types.ts +0 -1
  235. package/src/analytics/lpinfo/index.ts +5 -2
  236. package/src/analytics/lpinfo/kamino/README.md +2 -2
  237. package/src/analytics/lpinfo/kamino/index.ts +9 -2
  238. package/src/analytics/lpinfo/kamino/providers/kaminoLiquidityProvider.ts +6 -26
  239. package/src/analytics/lpinfo/kamino/providers/kaminoPoolProvider.ts +11 -12
  240. package/src/analytics/lpinfo/kamino/providers/kaminoProvider.ts +76 -32
  241. package/src/analytics/lpinfo/kamino/services/kaminoLiquidityService.ts +78 -38
  242. package/src/analytics/lpinfo/kamino/services/kaminoService.ts +71 -31
  243. package/src/analytics/lpinfo/steer/index.ts +7 -2
  244. package/src/analytics/lpinfo/steer/providers/steerLiquidityProvider.ts +25 -26
  245. package/src/analytics/lpinfo/steer/services/steerLiquidityService.ts +367 -149
  246. package/src/analytics/news/index.ts +7 -2
  247. package/src/analytics/news/interfaces/types.ts +0 -1
  248. package/src/analytics/news/providers/defiNewsProvider.ts +17 -44
  249. package/src/analytics/news/services/newsDataService.ts +1 -22
  250. package/src/analytics/news/utils/formatters.test.ts +60 -0
  251. package/src/analytics/news/utils/formatters.ts +0 -1
  252. package/src/analytics/token-info/action.ts +52 -212
  253. package/src/analytics/token-info/index.ts +1 -1
  254. package/src/analytics/token-info/params.test.ts +69 -0
  255. package/src/analytics/token-info/params.ts +13 -11
  256. package/src/analytics/token-info/providers.ts +46 -17
  257. package/src/analytics/token-info/service.ts +3 -3
  258. package/src/analytics/token-info/types.ts +2 -2
  259. package/src/api/wallet-routes.test.ts +56 -0
  260. package/src/api/wallet-routes.ts +1728 -0
  261. package/src/audit/audit-log.ts +57 -2
  262. package/src/browser-shim/build-shim.ts +1 -1
  263. package/src/browser-shim/shim.template.js +107 -117
  264. package/src/chains/{wallet-router.test.ts → __tests__/wallet-router.test.ts} +57 -10
  265. package/src/chains/evm/actions/helpers.ts +9 -7
  266. package/src/chains/evm/actions/swap.ts +176 -22
  267. package/src/chains/evm/actions/transfer.ts +29 -22
  268. package/src/chains/evm/biome.json +1 -1
  269. package/src/chains/evm/build.ts +6 -1
  270. package/src/chains/evm/constants.ts +19 -0
  271. package/src/chains/evm/contracts/artifacts/OZGovernor.json +25 -1682
  272. package/src/chains/evm/dex/aerodrome/index.ts +6 -1
  273. package/src/chains/evm/dex/aerodrome/services/AerodromeLpService.ts +41 -15
  274. package/src/chains/evm/dex/aerodrome/types.ts +1 -2
  275. package/src/chains/evm/dex/pancakeswp/index.ts +6 -1
  276. package/src/chains/evm/dex/pancakeswp/services/PancakeSwapV3LpService.ts +54 -17
  277. package/src/chains/evm/dex/pancakeswp/types.ts +1 -2
  278. package/src/chains/evm/dex/uniswap/index.ts +6 -1
  279. package/src/chains/evm/dex/uniswap/services/UniswapV3LpService.ts +20 -9
  280. package/src/chains/evm/dex/uniswap/types.ts +1 -2
  281. package/src/chains/evm/gov-router.ts +3 -1
  282. package/src/chains/evm/index.browser.ts +1 -1
  283. package/src/chains/evm/index.ts +5 -1
  284. package/src/chains/evm/prompts.ts +5 -0
  285. package/src/chains/evm/providers/get-balance.ts +1 -1
  286. package/src/chains/evm/providers/wallet.ts +80 -9
  287. package/src/chains/evm/routes/sign.ts +35 -26
  288. package/src/chains/evm/rpc-providers.ts +1 -1
  289. package/src/chains/evm/types/index.ts +22 -2
  290. package/src/chains/registry.ts +1 -1
  291. package/src/chains/wallet-action.ts +301 -91
  292. package/src/index.ts +9 -5
  293. package/src/lib/wallet-export-guard.test.ts +233 -0
  294. package/src/lib/wallet-export-guard.ts +1 -1
  295. package/src/lp/actions/liquidity.ts +53 -26
  296. package/src/lp/e2e/real-token-tests.ts +0 -1
  297. package/src/lp/e2e/scenarios.ts +1 -2
  298. package/src/lp/e2e/test-utils.ts +20 -7
  299. package/src/lp/lp-manager-entry.ts +2 -5
  300. package/src/lp/services/ConcentratedLiquidityService.ts +3 -10
  301. package/src/lp/services/DexInteractionService.ts +1 -2
  302. package/src/lp/services/LpManagementService.test.ts +0 -1
  303. package/src/lp/services/LpManagementService.ts +75 -35
  304. package/src/lp/services/UserLpProfileService.ts +2 -3
  305. package/src/lp/services/VaultService.ts +10 -4
  306. package/src/lp/services/YieldOptimizationService.ts +29 -13
  307. package/src/lp/services/__tests__/MockLpService.ts +1 -2
  308. package/src/lp/types.ts +9 -13
  309. package/src/lp/utils/solanaClient.ts +4 -2
  310. package/src/plugin.routes.test.ts +24 -0
  311. package/src/plugin.ts +30 -13
  312. package/src/providers/canonical-provider.ts +1 -1
  313. package/src/providers/{unified-wallet-provider.ts → wallet-provider.ts} +3 -3
  314. package/src/routes/__fixtures__/coingecko-markets.recorded.json +97 -0
  315. package/src/routes/wallet-market-overview-route.ts +1 -1
  316. package/src/routes/wallet-market-overview.contract.test.ts +139 -0
  317. package/src/routes/wallet-market-overview.real.test.ts +83 -0
  318. package/src/sdk/escrow/MutualStakeEscrow.ts +1 -2
  319. package/src/sdk/identity/erc8004.ts +1 -1
  320. package/src/sdk/identity/validation.ts +3 -4
  321. package/src/sdk/index.ts +2 -2
  322. package/src/sdk/policy/SpendingPolicy.ts +1 -1
  323. package/src/sdk/router/PaymentRouter.ts +8 -11
  324. package/src/sdk/swap/SwapModule.ts +1 -1
  325. package/src/sdk/tokens/registry.ts +1 -1
  326. package/src/sdk/x402/middleware.ts +2 -8
  327. package/src/security/__tests__/wallet-context-safety.test.ts +79 -0
  328. package/src/security/__tests__/wallet-financial-confirmation.test.ts +88 -0
  329. package/src/security/wallet-context-safety.ts +128 -0
  330. package/src/security/wallet-financial-confirmation.ts +150 -0
  331. package/src/services/wallet-backend-service.ts +15 -1
  332. package/src/utils/intent-trajectory.ts +2 -2
  333. package/src/wallet/steward-backend.ts +4 -4
  334. package/dist/LpManagementService-BWrQ5-cO.mjs +0 -353
  335. package/dist/MockLpService-D_Apn4Fd.mjs +0 -99
  336. package/dist/aerodrome-CfnESC32.mjs +0 -890
  337. package/dist/chunk-hT5z_Zn9.mjs +0 -35
  338. package/dist/lib/server-wallet-trade.d.mts +0 -34
  339. package/dist/lib/server-wallet-trade.mjs +0 -306
  340. package/dist/meteora-BPX39hZo.mjs +0 -22640
  341. package/dist/orca-Bybp1HXO.mjs +0 -249
  342. package/dist/pancakeswp-CkEXlXti.mjs +0 -604
  343. package/dist/plugin-ZO_MTyd0.mjs +0 -529
  344. package/dist/raydium-rfaM9yEf.mjs +0 -539
  345. package/dist/sdk/index.d.mts +0 -32492
  346. package/dist/sdk/index.mjs +0 -6415
  347. package/dist/types-D5252NZk.mjs +0 -487
  348. package/dist/uniswap-CReXgXVN.mjs +0 -573
  349. package/dist/wallet-action.d.mts +0 -6
  350. package/dist/wallet-action.mjs +0 -820
  351. package/src/analytics/birdeye/tasks/birdeye.ts +0 -232
  352. package/src/analytics/lpinfo/index.d.ts +0 -7
  353. package/src/chains/evm/contracts/artifacts/TimelockController.json +0 -1007
  354. package/src/chains/evm/contracts/artifacts/VoteToken.json +0 -895
  355. package/src/lp/tasks/LpAutoRebalanceTask.ts +0 -117
  356. package/src/lp/tasks/__tests__/LpAutoRebalanceTask.test.ts +0 -370
@@ -0,0 +1,192 @@
1
+ /**
2
+ * uaid.ts — Universal Agent Identifier (UAID) Resolution Layer
3
+ *
4
+ * Provides cross-chain agent identity resolution via the HOL Registry Broker.
5
+ * UAIDs are chain-agnostic identifiers that bridge ERC-8004 tokens on EVM chains
6
+ * to agents on Solana, Hedera, off-chain frameworks, and any other protocol.
7
+ *
8
+ * This module is an optional extension — agents that only operate on EVM chains
9
+ * can continue using ERC8004Client directly.
10
+ *
11
+ * Registry: https://hol.org
12
+ * SDK: @hol-org/rb-client (peer dependency — install only if needed)
13
+ *
14
+ * @module identity/uaid
15
+ */
16
+ import type { Address } from "viem";
17
+ import type { AgentIdentity, AgentRegistrationFile, SupportedChain } from "./erc8004.js";
18
+ /** Supported protocol types in the UAID ecosystem */
19
+ export type UAIDProtocol = "erc8004" | "a2a" | "openconvai" | "virtuals" | "x402" | "hedera" | "solana" | string;
20
+ /** A parsed UAID with its component parts */
21
+ export interface ParsedUAID {
22
+ /** Raw UAID string */
23
+ raw: string;
24
+ /** Agent identifier portion */
25
+ aid: string;
26
+ /** Unique identifier portion */
27
+ uid: string;
28
+ /** Protocol used for resolution */
29
+ protocol: UAIDProtocol;
30
+ /** Native identifier on the protocol's own chain/system */
31
+ nativeId?: string;
32
+ }
33
+ /** Result of resolving a UAID to a known identity */
34
+ export interface UAIDResolution {
35
+ /** Whether resolution succeeded */
36
+ resolved: boolean;
37
+ /** The UAID that was resolved */
38
+ uaid: string;
39
+ /** Resolved agent identity (if ERC-8004 backed) */
40
+ identity: UniversalAgentIdentity | null;
41
+ /** Protocol the agent was resolved through */
42
+ protocol: UAIDProtocol;
43
+ /** Chain the identity lives on (if applicable) */
44
+ chain?: string;
45
+ /** Trust score from the registry (0-100) */
46
+ trustScore?: number;
47
+ /** Whether the agent is verified in the HOL registry */
48
+ registryVerified: boolean;
49
+ /** Error message if resolution failed */
50
+ error?: string;
51
+ }
52
+ /**
53
+ * Universal agent identity — superset of ERC-8004 AgentIdentity that works
54
+ * across chains. For EVM agents, this mirrors AgentIdentity. For non-EVM
55
+ * agents, it provides equivalent fields using native identifiers.
56
+ */
57
+ export interface UniversalAgentIdentity {
58
+ /** Identifier — ERC-8004 tokenId for EVM, native ID for others */
59
+ agentId: string;
60
+ /** Owner — EVM address, Hedera account, Solana pubkey, etc. */
61
+ owner: string;
62
+ /** Agent URI / metadata endpoint */
63
+ agentURI: string;
64
+ /** Payment address (chain-native format) */
65
+ paymentAddress: string;
66
+ /** Registration metadata (if available) */
67
+ registrationFile: AgentRegistrationFile | null;
68
+ /** Source protocol */
69
+ protocol: UAIDProtocol;
70
+ /** Source chain */
71
+ chain: string;
72
+ /** UAID for cross-chain reference */
73
+ uaid: string;
74
+ }
75
+ /** Configuration for the UAID resolver */
76
+ export interface UAIDResolverConfig {
77
+ /** HOL Registry Broker API key (optional for read-only resolution) */
78
+ apiKey?: string;
79
+ /** Custom broker base URL (defaults to production) */
80
+ brokerUrl?: string;
81
+ /** Request timeout in ms (default: 10000) */
82
+ timeoutMs?: number;
83
+ /** Cache resolved identities for this many ms (default: 300000 = 5 min) */
84
+ cacheTtlMs?: number;
85
+ }
86
+ /** Parameters for registering an ERC-8004 identity as a UAID */
87
+ export interface RegisterUAIDParams {
88
+ /** ERC-8004 agent ID (tokenId) */
89
+ agentId: bigint;
90
+ /** Chain the identity is registered on */
91
+ chain: SupportedChain;
92
+ /** Registry contract address (uses known defaults if omitted) */
93
+ registryAddress?: Address;
94
+ /** Agent name for the registry */
95
+ name: string;
96
+ /** Agent description */
97
+ description: string;
98
+ /** Optional: additional capabilities to advertise */
99
+ capabilities?: string[];
100
+ }
101
+ export declare class UAIDResolver {
102
+ private readonly brokerUrl;
103
+ private readonly apiKey?;
104
+ private readonly timeoutMs;
105
+ private readonly cacheTtlMs;
106
+ private readonly cache;
107
+ constructor(config?: UAIDResolverConfig);
108
+ /**
109
+ * Resolve a UAID to an agent identity.
110
+ *
111
+ * Works across chains — the resolver contacts the HOL Registry Broker to
112
+ * find the agent's identity regardless of whether it lives on EVM, Hedera,
113
+ * Solana, or off-chain.
114
+ *
115
+ * @param uaid - Universal Agent Identifier string
116
+ * @returns Resolution result with identity details
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * const resolver = new UAIDResolver();
121
+ * const result = await resolver.resolve('uaid:aid:0x8004...;uid=42;proto=erc8004');
122
+ * if (result.resolved) {
123
+ * console.log(result.identity?.paymentAddress);
124
+ * }
125
+ * ```
126
+ */
127
+ resolve(uaid: string): Promise<UAIDResolution>;
128
+ /**
129
+ * Search the HOL registry for agents matching criteria.
130
+ *
131
+ * @param query - Search terms (name, capability, protocol)
132
+ * @param options - Optional filters
133
+ * @returns Array of matching UAIDResolution results
134
+ */
135
+ search(query: string, options?: {
136
+ protocol?: UAIDProtocol;
137
+ limit?: number;
138
+ minTrustScore?: number;
139
+ }): Promise<UAIDResolution[]>;
140
+ /**
141
+ * Convert an ERC-8004 AgentIdentity to a UniversalAgentIdentity.
142
+ *
143
+ * Useful when you already have an on-chain identity and want to work
144
+ * with the universal format (e.g., for cross-chain discovery).
145
+ */
146
+ erc8004ToUniversal(identity: AgentIdentity, chain: SupportedChain): UniversalAgentIdentity;
147
+ /**
148
+ * Build a UAID string for an ERC-8004 agent.
149
+ *
150
+ * This creates the identifier — it does NOT register with the HOL registry.
151
+ * Use registerERC8004Agent() to make the agent discoverable cross-chain.
152
+ */
153
+ buildERC8004UAID(agentId: bigint, chain: SupportedChain, ownerAddress: Address): string;
154
+ /**
155
+ * Register an ERC-8004 agent in the HOL registry for cross-chain discovery.
156
+ *
157
+ * After registration, agents on Solana, Hedera, or any protocol can
158
+ * discover and verify this agent's identity via its UAID.
159
+ *
160
+ * Requires an API key with write permissions.
161
+ *
162
+ * @param params - Registration parameters
163
+ * @returns The assigned UAID
164
+ */
165
+ registerERC8004Agent(params: RegisterUAIDParams): Promise<string>;
166
+ /**
167
+ * Verify an agent's identity via UAID — works across any chain.
168
+ *
169
+ * This is the cross-chain equivalent of ERC8004Client.lookupAgentIdentity().
170
+ * For EVM agents, it verifies the UAID maps to a valid on-chain ERC-8004 token.
171
+ * For non-EVM agents, it verifies through the registry's native trust mechanism.
172
+ *
173
+ * @param uaid - Universal Agent Identifier to verify
174
+ * @returns Verification result
175
+ */
176
+ verify(uaid: string): Promise<{
177
+ verified: boolean;
178
+ identity: UniversalAgentIdentity | null;
179
+ trustScore: number;
180
+ protocol: UAIDProtocol;
181
+ error?: string;
182
+ }>;
183
+ /**
184
+ * Parse a UAID string into its components.
185
+ *
186
+ * Format: `uaid:aid:<identifier>;uid=<unique-id>;proto=<protocol>[;nativeId=<id>]`
187
+ */
188
+ static parseUAID(uaid: string): ParsedUAID | null;
189
+ /** Clear the resolution cache */
190
+ clearCache(): void;
191
+ private brokerRequest;
192
+ }
@@ -0,0 +1,282 @@
1
+ /**
2
+ * ERC-8004: Trustless Agents — Validation Registry Client
3
+ *
4
+ * On-chain validation system for AI agents. Validators can be requested to
5
+ * validate an agent's capabilities, and their responses are recorded on-chain.
6
+ *
7
+ * Note: The ValidationRegistry is part of the ERC-8004 spec. Official registry
8
+ * addresses are absent from erc-8004-contracts, so deployments must supply the
9
+ * ValidationRegistry address alongside Identity and Reputation registries.
10
+ *
11
+ * Spec: https://eips.ethereum.org/EIPS/eip-8004
12
+ */
13
+ import { type Address, type Hash, type Hex, type WalletClient } from "viem";
14
+ import { type SupportedChain } from "./erc8004.js";
15
+ export declare const ValidationRegistryAbi: readonly [{
16
+ readonly name: "validationRequest";
17
+ readonly type: "function";
18
+ readonly stateMutability: "nonpayable";
19
+ readonly inputs: readonly [{
20
+ readonly name: "validator";
21
+ readonly type: "address";
22
+ }, {
23
+ readonly name: "agentId";
24
+ readonly type: "uint256";
25
+ }, {
26
+ readonly name: "requestURI";
27
+ readonly type: "string";
28
+ }, {
29
+ readonly name: "requestHash";
30
+ readonly type: "bytes32";
31
+ }];
32
+ readonly outputs: readonly [];
33
+ }, {
34
+ readonly name: "validationResponse";
35
+ readonly type: "function";
36
+ readonly stateMutability: "nonpayable";
37
+ readonly inputs: readonly [{
38
+ readonly name: "requestHash";
39
+ readonly type: "bytes32";
40
+ }, {
41
+ readonly name: "response";
42
+ readonly type: "uint8";
43
+ }, {
44
+ readonly name: "responseURI";
45
+ readonly type: "string";
46
+ }, {
47
+ readonly name: "responseHash";
48
+ readonly type: "bytes32";
49
+ }, {
50
+ readonly name: "tag";
51
+ readonly type: "string";
52
+ }];
53
+ readonly outputs: readonly [];
54
+ }, {
55
+ readonly name: "getValidationStatus";
56
+ readonly type: "function";
57
+ readonly stateMutability: "view";
58
+ readonly inputs: readonly [{
59
+ readonly name: "requestHash";
60
+ readonly type: "bytes32";
61
+ }];
62
+ readonly outputs: readonly [{
63
+ readonly name: "validator";
64
+ readonly type: "address";
65
+ }, {
66
+ readonly name: "agentId";
67
+ readonly type: "uint256";
68
+ }, {
69
+ readonly name: "requestURI";
70
+ readonly type: "string";
71
+ }, {
72
+ readonly name: "response";
73
+ readonly type: "uint8";
74
+ }, {
75
+ readonly name: "responseURI";
76
+ readonly type: "string";
77
+ }, {
78
+ readonly name: "responseHash";
79
+ readonly type: "bytes32";
80
+ }, {
81
+ readonly name: "tag";
82
+ readonly type: "string";
83
+ }, {
84
+ readonly name: "responded";
85
+ readonly type: "bool";
86
+ }];
87
+ }, {
88
+ readonly name: "getAgentValidations";
89
+ readonly type: "function";
90
+ readonly stateMutability: "view";
91
+ readonly inputs: readonly [{
92
+ readonly name: "agentId";
93
+ readonly type: "uint256";
94
+ }];
95
+ readonly outputs: readonly [{
96
+ readonly name: "requestHashes";
97
+ readonly type: "bytes32[]";
98
+ }];
99
+ }, {
100
+ readonly name: "getValidatorRequests";
101
+ readonly type: "function";
102
+ readonly stateMutability: "view";
103
+ readonly inputs: readonly [{
104
+ readonly name: "validator";
105
+ readonly type: "address";
106
+ }];
107
+ readonly outputs: readonly [{
108
+ readonly name: "requestHashes";
109
+ readonly type: "bytes32[]";
110
+ }];
111
+ }, {
112
+ readonly name: "getSummary";
113
+ readonly type: "function";
114
+ readonly stateMutability: "view";
115
+ readonly inputs: readonly [{
116
+ readonly name: "agentId";
117
+ readonly type: "uint256";
118
+ }, {
119
+ readonly name: "validators";
120
+ readonly type: "address[]";
121
+ }, {
122
+ readonly name: "category";
123
+ readonly type: "string";
124
+ }];
125
+ readonly outputs: readonly [{
126
+ readonly name: "totalRequests";
127
+ readonly type: "uint256";
128
+ }, {
129
+ readonly name: "totalResponses";
130
+ readonly type: "uint256";
131
+ }, {
132
+ readonly name: "passCount";
133
+ readonly type: "uint256";
134
+ }, {
135
+ readonly name: "failCount";
136
+ readonly type: "uint256";
137
+ }];
138
+ }, {
139
+ readonly name: "getIdentityRegistry";
140
+ readonly type: "function";
141
+ readonly stateMutability: "view";
142
+ readonly inputs: readonly [];
143
+ readonly outputs: readonly [{
144
+ readonly name: "";
145
+ readonly type: "address";
146
+ }];
147
+ }, {
148
+ readonly name: "getVersion";
149
+ readonly type: "function";
150
+ readonly stateMutability: "view";
151
+ readonly inputs: readonly [];
152
+ readonly outputs: readonly [{
153
+ readonly name: "";
154
+ readonly type: "string";
155
+ }];
156
+ }, {
157
+ readonly name: "ValidationRequest";
158
+ readonly type: "event";
159
+ readonly inputs: readonly [{
160
+ readonly name: "validator";
161
+ readonly type: "address";
162
+ readonly indexed: true;
163
+ }, {
164
+ readonly name: "agentId";
165
+ readonly type: "uint256";
166
+ readonly indexed: true;
167
+ }, {
168
+ readonly name: "requestURI";
169
+ readonly type: "string";
170
+ readonly indexed: false;
171
+ }, {
172
+ readonly name: "requestHash";
173
+ readonly type: "bytes32";
174
+ readonly indexed: false;
175
+ }];
176
+ }, {
177
+ readonly name: "ValidationResponse";
178
+ readonly type: "event";
179
+ readonly inputs: readonly [{
180
+ readonly name: "validator";
181
+ readonly type: "address";
182
+ readonly indexed: true;
183
+ }, {
184
+ readonly name: "agentId";
185
+ readonly type: "uint256";
186
+ readonly indexed: true;
187
+ }, {
188
+ readonly name: "requestHash";
189
+ readonly type: "bytes32";
190
+ readonly indexed: false;
191
+ }, {
192
+ readonly name: "response";
193
+ readonly type: "uint8";
194
+ readonly indexed: false;
195
+ }, {
196
+ readonly name: "responseURI";
197
+ readonly type: "string";
198
+ readonly indexed: false;
199
+ }, {
200
+ readonly name: "responseHash";
201
+ readonly type: "bytes32";
202
+ readonly indexed: false;
203
+ }, {
204
+ readonly name: "tag";
205
+ readonly type: "string";
206
+ readonly indexed: false;
207
+ }];
208
+ }];
209
+ export interface ValidationClientConfig {
210
+ validationAddress?: Address;
211
+ chain: SupportedChain;
212
+ rpcUrl?: string;
213
+ }
214
+ export interface RequestValidationParams {
215
+ validator: Address;
216
+ agentId: bigint;
217
+ requestURI: string;
218
+ requestHash: Hex;
219
+ }
220
+ export interface RespondToValidationParams {
221
+ requestHash: Hex;
222
+ response: number;
223
+ responseURI: string;
224
+ responseHash: Hex;
225
+ tag: string;
226
+ }
227
+ export interface ValidationStatus {
228
+ validator: Address;
229
+ agentId: bigint;
230
+ requestURI: string;
231
+ response: number;
232
+ responseURI: string;
233
+ responseHash: Hex;
234
+ tag: string;
235
+ responded: boolean;
236
+ }
237
+ export interface ValidationSummary {
238
+ totalRequests: bigint;
239
+ totalResponses: bigint;
240
+ passCount: bigint;
241
+ failCount: bigint;
242
+ }
243
+ export declare class ValidationClient {
244
+ private readonly publicClient;
245
+ private readonly validationAddress;
246
+ private readonly chain;
247
+ constructor(config: ValidationClientConfig);
248
+ private getReadContract;
249
+ private getWriteContract;
250
+ /**
251
+ * Submit a validation request. Must be called by the owner/operator of the agentId.
252
+ */
253
+ requestValidation(walletClient: WalletClient, params: RequestValidationParams): Promise<Hash>;
254
+ /**
255
+ * Respond to a validation request. Must be called by the requested validator.
256
+ */
257
+ respondToValidation(walletClient: WalletClient, params: RespondToValidationParams): Promise<Hash>;
258
+ /**
259
+ * Check the status of a validation request by its hash.
260
+ */
261
+ getValidationStatus(requestHash: Hex): Promise<ValidationStatus>;
262
+ /**
263
+ * Get all validation request hashes for an agent.
264
+ */
265
+ getAgentValidations(agentId: bigint): Promise<Hex[]>;
266
+ /**
267
+ * Get all validation request hashes assigned to a validator.
268
+ */
269
+ getValidatorRequests(validatorAddress: Address): Promise<Hex[]>;
270
+ /**
271
+ * Get a summary of validations for an agent, optionally filtered by validators and category.
272
+ */
273
+ getSummary(agentId: bigint, validators?: Address[], category?: string): Promise<ValidationSummary>;
274
+ /**
275
+ * Get the linked identity registry address.
276
+ */
277
+ getIdentityRegistry(): Promise<Address>;
278
+ /**
279
+ * Get the registry contract version.
280
+ */
281
+ getVersion(): Promise<string>;
282
+ }
@@ -0,0 +1,133 @@
1
+ import { type Address, type Chain, type Hash, type Hex, type WalletClient } from "viem";
2
+ import type { ActivityEntry, BatchTransfer, BudgetForecast, ExecuteResult, PendingTx, QueuedEvent, WalletHealth } from "./types.js";
3
+ import { type AgentWallet as Wallet } from "./wallet-core.js";
4
+ export { AgentAccountFactoryV2Abi, AgentAccountV2Abi } from "./abi.js";
5
+ export type { ActivityEntry, AgentWalletConfig, BatchTransfer, BudgetForecast, BudgetStatus, ExecuteResult, PendingTx, QueuedEvent, SpendPolicy, WalletHealth, } from "./types.js";
6
+ export { agentTransferToken, checkBudget, createWallet, NATIVE_TOKEN, requireWalletAccount, setSpendPolicy, } from "./wallet-core.js";
7
+ export type { X402ClientConfig, X402PaymentPayload, X402PaymentRequired, X402PaymentRequirements, X402ResourceInfo, X402ServiceBudget, X402SettlementResponse, X402TransactionLog, } from "./x402/index.js";
8
+ export { createX402Client, createX402Fetch, DEFAULT_SUPPORTED_NETWORKS, USDC_ADDRESSES, wrapWithX402, X402BudgetExceededError, X402BudgetTracker, X402Client, X402PaymentError, } from "./x402/index.js";
9
+ declare const CHAINS: Record<string, Chain>;
10
+ /**
11
+ * Execute a transaction as the agent. If within limits, executes immediately.
12
+ * If over limits, queues for owner approval and returns the pending tx ID.
13
+ */
14
+ export declare function agentExecute(wallet: Wallet, params: {
15
+ to: Address;
16
+ value?: bigint;
17
+ data?: Hex;
18
+ }): Promise<ExecuteResult>;
19
+ /**
20
+ * Get a pending transaction by ID.
21
+ */
22
+ export declare function getPendingApprovals(wallet: Wallet, fromId?: bigint, toId?: bigint): Promise<PendingTx[]>;
23
+ /**
24
+ * Approve a pending transaction. Only callable by the NFT owner.
25
+ */
26
+ export declare function approveTransaction(wallet: Wallet, txId: bigint): Promise<Hash>;
27
+ /**
28
+ * Cancel a pending transaction. Only callable by the NFT owner.
29
+ */
30
+ export declare function cancelTransaction(wallet: Wallet, txId: bigint): Promise<Hash>;
31
+ /**
32
+ * Add or remove an operator (agent hot wallet).
33
+ */
34
+ export declare function setOperator(wallet: Wallet, operator: Address, authorized: boolean): Promise<Hash>;
35
+ /**
36
+ * Deploy a new AgentAccountV2 wallet via the factory (CREATE2).
37
+ * Returns the deterministic wallet address.
38
+ */
39
+ export declare function deployWallet(config: {
40
+ factoryAddress: Address;
41
+ tokenContract: Address;
42
+ tokenId: bigint;
43
+ chain: keyof typeof CHAINS;
44
+ rpcUrl?: string;
45
+ walletClient: WalletClient;
46
+ }): Promise<{
47
+ walletAddress: Address;
48
+ txHash: Hash;
49
+ }>;
50
+ /**
51
+ * Compute the deterministic wallet address without deploying.
52
+ */
53
+ export declare function getWalletAddress(config: {
54
+ factoryAddress: Address;
55
+ tokenContract: Address;
56
+ tokenId: bigint;
57
+ chain: string;
58
+ rpcUrl?: string;
59
+ }): Promise<Address>;
60
+ /**
61
+ * [MAX-ADDED] Budget forecast with period-aware remaining capacity.
62
+ * Why: Agents need to know not just "how much is left" but "when does budget reset"
63
+ * so they can plan spending across time windows and avoid unnecessary queuing.
64
+ */
65
+ export declare function getBudgetForecast(wallet: Wallet, token?: Address, now?: number): Promise<BudgetForecast>;
66
+ /**
67
+ * [MAX-ADDED] Wallet health check — diagnostic snapshot for agent self-monitoring.
68
+ * Why: Agents need a single-call way to verify their wallet is properly configured,
69
+ * check operator status, and monitor queue depth before executing transactions.
70
+ */
71
+ export declare function getWalletHealth(wallet: Wallet, operatorsToCheck?: Address[], tokensToCheck?: Address[], now?: number): Promise<WalletHealth>;
72
+ /**
73
+ * [MAX-ADDED] Batch agent token transfers — multiple transfers in sequential calls.
74
+ * Why: Agents often need to pay multiple recipients (tips, fees, splits). This helper
75
+ * reduces boilerplate and returns all tx hashes. Each is a separate on-chain tx
76
+ * (true batching would need a multicall contract, but this is the safe SDK-level helper).
77
+ */
78
+ export declare function batchAgentTransfer(wallet: Wallet, transfers: BatchTransfer[]): Promise<Hash[]>;
79
+ /**
80
+ * [MAX-ADDED] Activity history — query past wallet events for self-auditing.
81
+ * Why: Agents need to verify what happened on-chain (transfers, operator changes,
82
+ * policy updates) without relying on external indexers. This queries event logs directly.
83
+ */
84
+ export declare function getActivityHistory(wallet: Wallet, options?: {
85
+ fromBlock?: bigint;
86
+ toBlock?: bigint | "latest";
87
+ }): Promise<ActivityEntry[]>;
88
+ /**
89
+ * Watch for TransactionQueued events (over-limit transactions needing approval).
90
+ * Returns an unwatch function.
91
+ */
92
+ export declare function onTransactionQueued(wallet: Wallet, callback: (event: QueuedEvent) => void): () => void;
93
+ /**
94
+ * Watch for TransactionExecuted events.
95
+ */
96
+ export declare function onTransactionExecuted(wallet: Wallet, callback: (event: {
97
+ target: Address;
98
+ value: bigint;
99
+ executor: Address;
100
+ transactionHash: Hash;
101
+ }) => void): () => void;
102
+ export type { BridgeChain, BridgeOptions, BridgeResult, BurnResult, } from "./bridge/index.js";
103
+ export { BRIDGE_CHAIN_IDS, BridgeError, BridgeModule, CCTP_DOMAIN_IDS, createBridge, ERC20BridgeAbi, FINALITY_THRESHOLD, MESSAGE_TRANSMITTER_V2, MessageTransmitterV2Abi, TOKEN_MESSENGER_V2, TokenMessengerV2Abi, USDC_CONTRACT, } from "./bridge/index.js";
104
+ export type { AgentIdentity, AgentModelMetadata, AgentRegistrationFile, AgentRegistrationRef, AgentServiceEndpoint, ERC8004ClientConfig, MetadataEntry, RegistrationResult, SupportedChain, SupportedTrustMechanism, } from "./identity/erc8004.js";
105
+ export { buildDataURI, ERC8004Client, ERC8004IdentityRegistryAbi, formatAgentRegistry, KNOWN_REGISTRY_ADDRESSES, METADATA_KEYS, parseDataURI, REGISTRATION_FILE_TYPE, resolveAgentURI, validateRegistrationFile, } from "./identity/erc8004.js";
106
+ export type { AgentReputationSummary, FeedbackEntry, FeedbackFilters, GiveFeedbackParams, ReputationClientConfig, RespondToFeedbackParams, } from "./identity/reputation.js";
107
+ export { ReputationClient, ReputationRegistryAbi, } from "./identity/reputation.js";
108
+ export type { ParsedUAID, RegisterUAIDParams, UAIDProtocol, UAIDResolution, UAIDResolverConfig, UniversalAgentIdentity, } from "./identity/uaid.js";
109
+ export { UAIDResolver } from "./identity/uaid.js";
110
+ export type { RequestValidationParams, RespondToValidationParams, ValidationClientConfig, ValidationStatus, ValidationSummary, } from "./identity/validation.js";
111
+ export { ValidationClient, ValidationRegistryAbi, } from "./identity/validation.js";
112
+ export type { SwapModuleConfig, SwapOptions, SwapQuote, SwapResult, UniswapFeeTier, } from "./swap/index.js";
113
+ export { applySlippage, attachSwap, BASE_TOKENS, calcDeadline, calcProtocolFee, DEFAULT_SLIPPAGE_BPS, ERC20Abi, PROTOCOL_FEE_BPS, PROTOCOL_FEE_COLLECTOR, SwapModule, UniswapV3QuoterV2Abi, UniswapV3RouterAbi, } from "./swap/index.js";
114
+ export { setPolicyFromEnv, walletFromEnv, x402FromEnv, } from "./convenience.js";
115
+ export { MutualStakeEscrow } from "./escrow/MutualStakeEscrow.js";
116
+ export type { CreateEscrowParams, EscrowCreated, EscrowDetails, TxResult as EscrowTxResult, } from "./escrow/types.js";
117
+ export { TaskStatus } from "./escrow/types.js";
118
+ export { encodeHashVerifierData, encodeOptimisticVerifierData, resolveVerifierAddress, VERIFIER_ADDRESSES, } from "./escrow/verifiers.js";
119
+ export type { AuditEntry, DraftEntry, PaymentIntent, PolicyResult, PolicyStatus, SpendingPolicyConfig, } from "./policy/SpendingPolicy.js";
120
+ export { SpendingPolicy } from "./policy/SpendingPolicy.js";
121
+ export type { UptoAuthorizationRecord, UptoAuthorizationRequest, UptoAuthorizationStatus, UptoBillingSnapshot, UptoSettlementOptions, UptoSettlementRecord, WalletLedgerDelta, } from "./policy/UptoBillingPolicy.js";
122
+ export { UptoBillingPolicy } from "./policy/UptoBillingPolicy.js";
123
+ export type { PaymentContext, PaymentRail, RailConfig, RailStatus, RoutingDecision, } from "./router/index.js";
124
+ export { PaymentRouter } from "./router/index.js";
125
+ export type { TokenInfo } from "./tokens/decimals.js";
126
+ export { formatBalance, parseAmount, toHuman, toRaw, } from "./tokens/decimals.js";
127
+ export type { AddTokenParams, TokenEntry } from "./tokens/registry.js";
128
+ export { ARBITRUM_REGISTRY, AVALANCHE_REGISTRY, BASE_REGISTRY, BASE_SEPOLIA_REGISTRY, ETHEREUM_REGISTRY, getGlobalRegistry, getNativeToken, LINEA_REGISTRY, OPTIMISM_REGISTRY, POLYGON_REGISTRY, SONIC_REGISTRY, TokenRegistry, UNICHAIN_REGISTRY, WORLDCHAIN_REGISTRY, } from "./tokens/registry.js";
129
+ export type { SolanaTokenInfo, SolanaTokenSymbol, SolanaTxResult, SolanaWalletConfig, SolBalanceResult, SplBalanceResult, } from "./tokens/solana.js";
130
+ export { createSolanaWallet, SOLANA_TOKEN_DECIMALS, SOLANA_TOKENS, SolanaWallet, } from "./tokens/solana.js";
131
+ export type { NativeBalanceResult, TokenBalanceResult, TransferContext, TransferOptions, } from "./tokens/transfers.js";
132
+ export { encodeERC20Transfer, getBalances, getNativeBalance, getTokenBalance, sendNative, sendToken, } from "./tokens/transfers.js";
133
+ export { buildSupportedAssets, isStablecoin, parseNetworkChainId, resolveAssetAddress, resolveAssetDecimals, } from "./x402/multi-asset.js";