@andrewkimjoseph/celina-sdk 0.9.7 → 0.9.9

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 (365) hide show
  1. package/build/analytics/mcp-tool-events.js +2 -0
  2. package/build/analytics/mcp-tool-events.js.map +1 -1
  3. package/build/index.d.ts +1 -1
  4. package/build/services/gooddollar.service.d.ts +16 -2
  5. package/build/services/gooddollar.service.js +54 -31
  6. package/build/services/gooddollar.service.js.map +1 -1
  7. package/build/src/a2a/agent-card.d.ts +37 -0
  8. package/build/src/a2a/agent-card.js +46 -0
  9. package/build/src/a2a/agent-card.js.map +1 -0
  10. package/build/src/a2a/index.d.ts +2 -0
  11. package/build/src/a2a/index.js +3 -0
  12. package/build/src/a2a/index.js.map +1 -0
  13. package/build/src/a2a/skills.d.ts +18 -0
  14. package/build/src/a2a/skills.js +101 -0
  15. package/build/src/a2a/skills.js.map +1 -0
  16. package/build/src/abis/aave-pool.d.ts +37 -0
  17. package/build/src/abis/aave-pool.js +26 -0
  18. package/build/src/abis/aave-pool.js.map +1 -0
  19. package/build/src/abis/accounts.d.ts +13 -0
  20. package/build/src/abis/accounts.js +10 -0
  21. package/build/src/abis/accounts.js.map +1 -0
  22. package/build/src/abis/election.d.ts +124 -0
  23. package/build/src/abis/election.js +88 -0
  24. package/build/src/abis/election.js.map +1 -0
  25. package/build/src/abis/gooddollar-broker.d.ts +77 -0
  26. package/build/src/abis/gooddollar-broker.js +44 -0
  27. package/build/src/abis/gooddollar-broker.js.map +1 -0
  28. package/build/src/abis/gooddollar-identity.d.ts +85 -0
  29. package/build/src/abis/gooddollar-identity.js +52 -0
  30. package/build/src/abis/gooddollar-identity.js.map +1 -0
  31. package/build/src/abis/governance.d.ts +86 -0
  32. package/build/src/abis/governance.js +68 -0
  33. package/build/src/abis/governance.js.map +1 -0
  34. package/build/src/abis/locked-gold.d.ts +10 -0
  35. package/build/src/abis/locked-gold.js +10 -0
  36. package/build/src/abis/locked-gold.js.map +1 -0
  37. package/build/src/abis/nft.d.ts +107 -0
  38. package/build/src/abis/nft.js +75 -0
  39. package/build/src/abis/nft.js.map +1 -0
  40. package/build/src/abis/permit2.d.ts +43 -0
  41. package/build/src/abis/permit2.js +30 -0
  42. package/build/src/abis/permit2.js.map +1 -0
  43. package/build/src/abis/self-registry.d.ts +194 -0
  44. package/build/src/abis/self-registry.js +120 -0
  45. package/build/src/abis/self-registry.js.map +1 -0
  46. package/build/src/abis/ubi-scheme.d.ts +91 -0
  47. package/build/src/abis/ubi-scheme.js +66 -0
  48. package/build/src/abis/ubi-scheme.js.map +1 -0
  49. package/build/src/abis/uniswap-state-view.d.ts +34 -0
  50. package/build/src/abis/uniswap-state-view.js +22 -0
  51. package/build/src/abis/uniswap-state-view.js.map +1 -0
  52. package/build/src/abis/uniswap-v4-quoter.d.ts +86 -0
  53. package/build/src/abis/uniswap-v4-quoter.js +64 -0
  54. package/build/src/abis/uniswap-v4-quoter.js.map +1 -0
  55. package/build/src/abis/universal-router.d.ts +16 -0
  56. package/build/src/abis/universal-router.js +14 -0
  57. package/build/src/abis/universal-router.js.map +1 -0
  58. package/build/src/abis/validators-minimal.d.ts +65 -0
  59. package/build/src/abis/validators-minimal.js +39 -0
  60. package/build/src/abis/validators-minimal.js.map +1 -0
  61. package/build/src/analytics/amplitude.d.ts +11 -0
  62. package/build/src/analytics/amplitude.js +76 -0
  63. package/build/src/analytics/amplitude.js.map +1 -0
  64. package/build/src/analytics/config.d.ts +7 -0
  65. package/build/src/analytics/config.js +28 -0
  66. package/build/src/analytics/config.js.map +1 -0
  67. package/build/src/analytics/consumer-package.d.ts +9 -0
  68. package/build/src/analytics/consumer-package.js +143 -0
  69. package/build/src/analytics/consumer-package.js.map +1 -0
  70. package/build/src/analytics/mcp-tool-events.d.ts +5 -0
  71. package/build/src/analytics/mcp-tool-events.js +53 -0
  72. package/build/src/analytics/mcp-tool-events.js.map +1 -0
  73. package/build/src/analytics/wallet-context.d.ts +11 -0
  74. package/build/src/analytics/wallet-context.js +81 -0
  75. package/build/src/analytics/wallet-context.js.map +1 -0
  76. package/build/src/analytics/wallet-extract.d.ts +9 -0
  77. package/build/src/analytics/wallet-extract.js +21 -0
  78. package/build/src/analytics/wallet-extract.js.map +1 -0
  79. package/build/src/analytics/wrap-service.d.ts +5 -0
  80. package/build/src/analytics/wrap-service.js +38 -0
  81. package/build/src/analytics/wrap-service.js.map +1 -0
  82. package/build/src/clients/celo-client.d.ts +17 -0
  83. package/build/src/clients/celo-client.js +28 -0
  84. package/build/src/clients/celo-client.js.map +1 -0
  85. package/build/src/clients/ens-client.d.ts +17 -0
  86. package/build/src/clients/ens-client.js +30 -0
  87. package/build/src/clients/ens-client.js.map +1 -0
  88. package/build/src/clients/mento-sdk.d.ts +2 -0
  89. package/build/src/clients/mento-sdk.js +9 -0
  90. package/build/src/clients/mento-sdk.js.map +1 -0
  91. package/build/src/clients/self-api.d.ts +82 -0
  92. package/build/src/clients/self-api.js +242 -0
  93. package/build/src/clients/self-api.js.map +1 -0
  94. package/build/src/clients/uniswap-sdk.d.ts +4 -0
  95. package/build/src/clients/uniswap-sdk.js +13 -0
  96. package/build/src/clients/uniswap-sdk.js.map +1 -0
  97. package/build/src/config/aave.d.ts +17 -0
  98. package/build/src/config/aave.js +77 -0
  99. package/build/src/config/aave.js.map +1 -0
  100. package/build/src/config/celina-tag.d.ts +4 -0
  101. package/build/src/config/celina-tag.js +13 -0
  102. package/build/src/config/celina-tag.js.map +1 -0
  103. package/build/src/config/celo-core-contracts.d.ts +8 -0
  104. package/build/src/config/celo-core-contracts.js +9 -0
  105. package/build/src/config/celo-core-contracts.js.map +1 -0
  106. package/build/src/config/chains.d.ts +937 -0
  107. package/build/src/config/chains.js +319 -0
  108. package/build/src/config/chains.js.map +1 -0
  109. package/build/src/config/gooddollar.d.ts +16 -0
  110. package/build/src/config/gooddollar.js +24 -0
  111. package/build/src/config/gooddollar.js.map +1 -0
  112. package/build/src/config/sdk-config.d.ts +33 -0
  113. package/build/src/config/sdk-config.js +31 -0
  114. package/build/src/config/sdk-config.js.map +1 -0
  115. package/build/src/config/self.d.ts +22 -0
  116. package/build/src/config/self.js +27 -0
  117. package/build/src/config/self.js.map +1 -0
  118. package/build/src/config/uniswap.d.ts +42 -0
  119. package/build/src/config/uniswap.js +76 -0
  120. package/build/src/config/uniswap.js.map +1 -0
  121. package/build/src/index.d.ts +90 -0
  122. package/build/src/index.js +65 -0
  123. package/build/src/index.js.map +1 -0
  124. package/build/src/oasf/index.d.ts +2 -0
  125. package/build/src/oasf/index.js +3 -0
  126. package/build/src/oasf/index.js.map +1 -0
  127. package/build/src/oasf/record.d.ts +39 -0
  128. package/build/src/oasf/record.js +35 -0
  129. package/build/src/oasf/record.js.map +1 -0
  130. package/build/src/oasf/taxonomy.d.ts +19 -0
  131. package/build/src/oasf/taxonomy.js +46 -0
  132. package/build/src/oasf/taxonomy.js.map +1 -0
  133. package/build/src/services/aave.service.d.ts +58 -0
  134. package/build/src/services/aave.service.js +210 -0
  135. package/build/src/services/aave.service.js.map +1 -0
  136. package/build/src/services/account.service.d.ts +22 -0
  137. package/build/src/services/account.service.js +29 -0
  138. package/build/src/services/account.service.js.map +1 -0
  139. package/build/src/services/blockchain.service.d.ts +107 -0
  140. package/build/src/services/blockchain.service.js +151 -0
  141. package/build/src/services/blockchain.service.js.map +1 -0
  142. package/build/src/services/contract.service.d.ts +78 -0
  143. package/build/src/services/contract.service.js +117 -0
  144. package/build/src/services/contract.service.js.map +1 -0
  145. package/build/src/services/ens.service.d.ts +44 -0
  146. package/build/src/services/ens.service.js +92 -0
  147. package/build/src/services/ens.service.js.map +1 -0
  148. package/build/src/services/gooddollar.service.d.ts +183 -0
  149. package/build/src/services/gooddollar.service.js +675 -0
  150. package/build/src/services/gooddollar.service.js.map +1 -0
  151. package/build/src/services/governance.service.d.ts +96 -0
  152. package/build/src/services/governance.service.js +255 -0
  153. package/build/src/services/governance.service.js.map +1 -0
  154. package/build/src/services/mento-fx.service.d.ts +80 -0
  155. package/build/src/services/mento-fx.service.js +319 -0
  156. package/build/src/services/mento-fx.service.js.map +1 -0
  157. package/build/src/services/nft.service.d.ts +58 -0
  158. package/build/src/services/nft.service.js +222 -0
  159. package/build/src/services/nft.service.js.map +1 -0
  160. package/build/src/services/self-session-store.d.ts +19 -0
  161. package/build/src/services/self-session-store.js +28 -0
  162. package/build/src/services/self-session-store.js.map +1 -0
  163. package/build/src/services/self.service.d.ts +241 -0
  164. package/build/src/services/self.service.js +699 -0
  165. package/build/src/services/self.service.js.map +1 -0
  166. package/build/src/services/staking.service.d.ts +140 -0
  167. package/build/src/services/staking.service.js +444 -0
  168. package/build/src/services/staking.service.js.map +1 -0
  169. package/build/src/services/token.service.d.ts +110 -0
  170. package/build/src/services/token.service.js +189 -0
  171. package/build/src/services/token.service.js.map +1 -0
  172. package/build/src/services/transaction.service.d.ts +68 -0
  173. package/build/src/services/transaction.service.js +198 -0
  174. package/build/src/services/transaction.service.js.map +1 -0
  175. package/build/src/services/uniswap-path-router.d.ts +40 -0
  176. package/build/src/services/uniswap-path-router.js +168 -0
  177. package/build/src/services/uniswap-path-router.js.map +1 -0
  178. package/build/src/services/uniswap-pool-discovery.d.ts +55 -0
  179. package/build/src/services/uniswap-pool-discovery.js +198 -0
  180. package/build/src/services/uniswap-pool-discovery.js.map +1 -0
  181. package/build/src/services/uniswap.service.d.ts +82 -0
  182. package/build/src/services/uniswap.service.js +352 -0
  183. package/build/src/services/uniswap.service.js.map +1 -0
  184. package/build/src/simulation/index.d.ts +5 -0
  185. package/build/src/simulation/index.js +2 -0
  186. package/build/src/simulation/index.js.map +1 -0
  187. package/build/src/simulation/simulate-prepared-step.d.ts +17 -0
  188. package/build/src/simulation/simulate-prepared-step.js +42 -0
  189. package/build/src/simulation/simulate-prepared-step.js.map +1 -0
  190. package/build/src/tools/catalog.d.ts +11 -0
  191. package/build/src/tools/catalog.js +43 -0
  192. package/build/src/tools/catalog.js.map +1 -0
  193. package/build/src/tools/domains/aave.d.ts +2 -0
  194. package/build/src/tools/domains/aave.js +115 -0
  195. package/build/src/tools/domains/aave.js.map +1 -0
  196. package/build/src/tools/domains/blockchain.d.ts +2 -0
  197. package/build/src/tools/domains/blockchain.js +86 -0
  198. package/build/src/tools/domains/blockchain.js.map +1 -0
  199. package/build/src/tools/domains/browser.d.ts +2 -0
  200. package/build/src/tools/domains/browser.js +45 -0
  201. package/build/src/tools/domains/browser.js.map +1 -0
  202. package/build/src/tools/domains/contract.d.ts +2 -0
  203. package/build/src/tools/domains/contract.js +67 -0
  204. package/build/src/tools/domains/contract.js.map +1 -0
  205. package/build/src/tools/domains/ens.d.ts +2 -0
  206. package/build/src/tools/domains/ens.js +16 -0
  207. package/build/src/tools/domains/ens.js.map +1 -0
  208. package/build/src/tools/domains/gooddollar.d.ts +2 -0
  209. package/build/src/tools/domains/gooddollar.js +171 -0
  210. package/build/src/tools/domains/gooddollar.js.map +1 -0
  211. package/build/src/tools/domains/governance.d.ts +2 -0
  212. package/build/src/tools/domains/governance.js +41 -0
  213. package/build/src/tools/domains/governance.js.map +1 -0
  214. package/build/src/tools/domains/index.d.ts +1 -0
  215. package/build/src/tools/domains/index.js +31 -0
  216. package/build/src/tools/domains/index.js.map +1 -0
  217. package/build/src/tools/domains/mento-fx.d.ts +2 -0
  218. package/build/src/tools/domains/mento-fx.js +67 -0
  219. package/build/src/tools/domains/mento-fx.js.map +1 -0
  220. package/build/src/tools/domains/nft.d.ts +2 -0
  221. package/build/src/tools/domains/nft.js +38 -0
  222. package/build/src/tools/domains/nft.js.map +1 -0
  223. package/build/src/tools/domains/self.d.ts +2 -0
  224. package/build/src/tools/domains/self.js +187 -0
  225. package/build/src/tools/domains/self.js.map +1 -0
  226. package/build/src/tools/domains/staking.d.ts +2 -0
  227. package/build/src/tools/domains/staking.js +74 -0
  228. package/build/src/tools/domains/staking.js.map +1 -0
  229. package/build/src/tools/domains/token.d.ts +2 -0
  230. package/build/src/tools/domains/token.js +74 -0
  231. package/build/src/tools/domains/token.js.map +1 -0
  232. package/build/src/tools/domains/transaction.d.ts +2 -0
  233. package/build/src/tools/domains/transaction.js +120 -0
  234. package/build/src/tools/domains/transaction.js.map +1 -0
  235. package/build/src/tools/domains/uniswap.d.ts +2 -0
  236. package/build/src/tools/domains/uniswap.js +67 -0
  237. package/build/src/tools/domains/uniswap.js.map +1 -0
  238. package/build/src/tools/filter.d.ts +2 -0
  239. package/build/src/tools/filter.js +50 -0
  240. package/build/src/tools/filter.js.map +1 -0
  241. package/build/src/tools/index.d.ts +7 -0
  242. package/build/src/tools/index.js +7 -0
  243. package/build/src/tools/index.js.map +1 -0
  244. package/build/src/tools/schemas/common.d.ts +165 -0
  245. package/build/src/tools/schemas/common.js +207 -0
  246. package/build/src/tools/schemas/common.js.map +1 -0
  247. package/build/src/tools/schemas/wallet-params.d.ts +9 -0
  248. package/build/src/tools/schemas/wallet-params.js +52 -0
  249. package/build/src/tools/schemas/wallet-params.js.map +1 -0
  250. package/build/src/tools/swap-routing.d.ts +25 -0
  251. package/build/src/tools/swap-routing.js +174 -0
  252. package/build/src/tools/swap-routing.js.map +1 -0
  253. package/build/src/tools/types.d.ts +124 -0
  254. package/build/src/tools/types.js +2 -0
  255. package/build/src/tools/types.js.map +1 -0
  256. package/build/src/tools/utils/normalize-token.d.ts +2 -0
  257. package/build/src/tools/utils/normalize-token.js +12 -0
  258. package/build/src/tools/utils/normalize-token.js.map +1 -0
  259. package/build/src/tools/utils/wallet.d.ts +4 -0
  260. package/build/src/tools/utils/wallet.js +8 -0
  261. package/build/src/tools/utils/wallet.js.map +1 -0
  262. package/build/src/tools/website-sync.d.ts +28 -0
  263. package/build/src/tools/website-sync.js +165 -0
  264. package/build/src/tools/website-sync.js.map +1 -0
  265. package/build/src/types/prepared.d.ts +28 -0
  266. package/build/src/types/prepared.js +12 -0
  267. package/build/src/types/prepared.js.map +1 -0
  268. package/build/src/utils/celo-format.d.ts +6 -0
  269. package/build/src/utils/celo-format.js +17 -0
  270. package/build/src/utils/celo-format.js.map +1 -0
  271. package/build/src/utils/erc20-allowance-storage.d.ts +20 -0
  272. package/build/src/utils/erc20-allowance-storage.js +64 -0
  273. package/build/src/utils/erc20-allowance-storage.js.map +1 -0
  274. package/build/src/utils/format-date.d.ts +2 -0
  275. package/build/src/utils/format-date.js +13 -0
  276. package/build/src/utils/format-date.js.map +1 -0
  277. package/build/src/utils/format-duration.d.ts +2 -0
  278. package/build/src/utils/format-duration.js +17 -0
  279. package/build/src/utils/format-duration.js.map +1 -0
  280. package/build/src/utils/format-unix-datetime.d.ts +4 -0
  281. package/build/src/utils/format-unix-datetime.js +18 -0
  282. package/build/src/utils/format-unix-datetime.js.map +1 -0
  283. package/build/src/utils/gooddollar-ubi-period.d.ts +23 -0
  284. package/build/src/utils/gooddollar-ubi-period.js +23 -0
  285. package/build/src/utils/gooddollar-ubi-period.js.map +1 -0
  286. package/build/src/utils/normalize-address.d.ts +7 -0
  287. package/build/src/utils/normalize-address.js +16 -0
  288. package/build/src/utils/normalize-address.js.map +1 -0
  289. package/build/src/utils/self-format.d.ts +28 -0
  290. package/build/src/utils/self-format.js +79 -0
  291. package/build/src/utils/self-format.js.map +1 -0
  292. package/build/src/utils/self-signing.d.ts +4 -0
  293. package/build/src/utils/self-signing.js +38 -0
  294. package/build/src/utils/self-signing.js.map +1 -0
  295. package/build/src/utils/transaction-errors.d.ts +3 -0
  296. package/build/src/utils/transaction-errors.js +17 -0
  297. package/build/src/utils/transaction-errors.js.map +1 -0
  298. package/build/tests/catalog/domains/blockchain.d.ts +2 -0
  299. package/build/tests/catalog/domains/blockchain.js +127 -0
  300. package/build/tests/catalog/domains/blockchain.js.map +1 -0
  301. package/build/tests/catalog/domains/chain-ext.d.ts +5 -0
  302. package/build/tests/catalog/domains/chain-ext.js +207 -0
  303. package/build/tests/catalog/domains/chain-ext.js.map +1 -0
  304. package/build/tests/catalog/domains/defi.d.ts +6 -0
  305. package/build/tests/catalog/domains/defi.js +581 -0
  306. package/build/tests/catalog/domains/defi.js.map +1 -0
  307. package/build/tests/catalog/domains/self.d.ts +2 -0
  308. package/build/tests/catalog/domains/self.js +208 -0
  309. package/build/tests/catalog/domains/self.js.map +1 -0
  310. package/build/tests/catalog/domains/token.d.ts +2 -0
  311. package/build/tests/catalog/domains/token.js +70 -0
  312. package/build/tests/catalog/domains/token.js.map +1 -0
  313. package/build/tests/catalog/domains/transaction.d.ts +2 -0
  314. package/build/tests/catalog/domains/transaction.js +96 -0
  315. package/build/tests/catalog/domains/transaction.js.map +1 -0
  316. package/build/tests/catalog/index.d.ts +2 -0
  317. package/build/tests/catalog/index.js +2 -0
  318. package/build/tests/catalog/index.js.map +1 -0
  319. package/build/tests/catalog/operations.d.ts +12 -0
  320. package/build/tests/catalog/operations.js +29 -0
  321. package/build/tests/catalog/operations.js.map +1 -0
  322. package/build/tests/catalog/types.d.ts +24 -0
  323. package/build/tests/catalog/types.js +2 -0
  324. package/build/tests/catalog/types.js.map +1 -0
  325. package/build/tests/fixtures/mainnet.d.ts +54 -0
  326. package/build/tests/fixtures/mainnet.js +53 -0
  327. package/build/tests/fixtures/mainnet.js.map +1 -0
  328. package/build/tests/helpers/assert.d.ts +4 -0
  329. package/build/tests/helpers/assert.js +24 -0
  330. package/build/tests/helpers/assert.js.map +1 -0
  331. package/build/tests/helpers/env.d.ts +11 -0
  332. package/build/tests/helpers/env.js +28 -0
  333. package/build/tests/helpers/env.js.map +1 -0
  334. package/build/tests/helpers/gating.d.ts +3 -0
  335. package/build/tests/helpers/gating.js +23 -0
  336. package/build/tests/helpers/gating.js.map +1 -0
  337. package/build/tests/testing-entry.d.ts +6 -0
  338. package/build/tests/testing-entry.js +6 -0
  339. package/build/tests/testing-entry.js.map +1 -0
  340. package/build/tools/domains/browser.js +4 -1
  341. package/build/tools/domains/browser.js.map +1 -1
  342. package/build/tools/domains/gooddollar.js +11 -7
  343. package/build/tools/domains/gooddollar.js.map +1 -1
  344. package/build/tools/schemas/common.d.ts +7 -0
  345. package/build/tools/schemas/common.js +9 -1
  346. package/build/tools/schemas/common.js.map +1 -1
  347. package/build/tools/swap-routing.d.ts +1 -0
  348. package/build/tools/swap-routing.js +2 -1
  349. package/build/tools/swap-routing.js.map +1 -1
  350. package/package.json +5 -9
  351. package/tests/README.md +0 -78
  352. package/tests/catalog/domains/blockchain.ts +0 -133
  353. package/tests/catalog/domains/chain-ext.ts +0 -219
  354. package/tests/catalog/domains/defi.ts +0 -532
  355. package/tests/catalog/domains/self.ts +0 -220
  356. package/tests/catalog/domains/token.ts +0 -74
  357. package/tests/catalog/domains/transaction.ts +0 -111
  358. package/tests/catalog/index.ts +0 -7
  359. package/tests/catalog/operations.ts +0 -53
  360. package/tests/catalog/types.ts +0 -27
  361. package/tests/fixtures/mainnet.ts +0 -93
  362. package/tests/helpers/assert.ts +0 -30
  363. package/tests/helpers/env.ts +0 -38
  364. package/tests/helpers/gating.ts +0 -36
  365. package/tests/testing-entry.ts +0 -27
@@ -0,0 +1,91 @@
1
+ export declare const ubiSchemeAbi: readonly [{
2
+ readonly name: "claim";
3
+ readonly type: "function";
4
+ readonly stateMutability: "nonpayable";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "bool";
9
+ }];
10
+ }, {
11
+ readonly name: "checkEntitlement";
12
+ readonly type: "function";
13
+ readonly stateMutability: "view";
14
+ readonly inputs: readonly [{
15
+ readonly name: "_member";
16
+ readonly type: "address";
17
+ }];
18
+ readonly outputs: readonly [{
19
+ readonly name: "";
20
+ readonly type: "uint256";
21
+ }];
22
+ }, {
23
+ readonly name: "hasClaimed";
24
+ readonly type: "function";
25
+ readonly stateMutability: "view";
26
+ readonly inputs: readonly [{
27
+ readonly name: "account";
28
+ readonly type: "address";
29
+ }];
30
+ readonly outputs: readonly [{
31
+ readonly name: "";
32
+ readonly type: "bool";
33
+ }];
34
+ }, {
35
+ readonly name: "lastClaimed";
36
+ readonly type: "function";
37
+ readonly stateMutability: "view";
38
+ readonly inputs: readonly [{
39
+ readonly name: "";
40
+ readonly type: "address";
41
+ }];
42
+ readonly outputs: readonly [{
43
+ readonly name: "";
44
+ readonly type: "uint256";
45
+ }];
46
+ }, {
47
+ readonly name: "paused";
48
+ readonly type: "function";
49
+ readonly stateMutability: "view";
50
+ readonly inputs: readonly [];
51
+ readonly outputs: readonly [{
52
+ readonly name: "";
53
+ readonly type: "bool";
54
+ }];
55
+ }, {
56
+ readonly name: "periodStart";
57
+ readonly type: "function";
58
+ readonly stateMutability: "view";
59
+ readonly inputs: readonly [];
60
+ readonly outputs: readonly [{
61
+ readonly name: "";
62
+ readonly type: "uint256";
63
+ }];
64
+ }, {
65
+ readonly name: "estimateNextDailyUBI";
66
+ readonly type: "function";
67
+ readonly stateMutability: "view";
68
+ readonly inputs: readonly [];
69
+ readonly outputs: readonly [{
70
+ readonly name: "";
71
+ readonly type: "uint256";
72
+ }];
73
+ }, {
74
+ readonly name: "dailyUbi";
75
+ readonly type: "function";
76
+ readonly stateMutability: "view";
77
+ readonly inputs: readonly [];
78
+ readonly outputs: readonly [{
79
+ readonly name: "";
80
+ readonly type: "uint256";
81
+ }];
82
+ }, {
83
+ readonly name: "currentDay";
84
+ readonly type: "function";
85
+ readonly stateMutability: "view";
86
+ readonly inputs: readonly [];
87
+ readonly outputs: readonly [{
88
+ readonly name: "";
89
+ readonly type: "uint256";
90
+ }];
91
+ }];
@@ -0,0 +1,66 @@
1
+ export const ubiSchemeAbi = [
2
+ {
3
+ name: "claim",
4
+ type: "function",
5
+ stateMutability: "nonpayable",
6
+ inputs: [],
7
+ outputs: [{ name: "", type: "bool" }],
8
+ },
9
+ {
10
+ name: "checkEntitlement",
11
+ type: "function",
12
+ stateMutability: "view",
13
+ inputs: [{ name: "_member", type: "address" }],
14
+ outputs: [{ name: "", type: "uint256" }],
15
+ },
16
+ {
17
+ name: "hasClaimed",
18
+ type: "function",
19
+ stateMutability: "view",
20
+ inputs: [{ name: "account", type: "address" }],
21
+ outputs: [{ name: "", type: "bool" }],
22
+ },
23
+ {
24
+ name: "lastClaimed",
25
+ type: "function",
26
+ stateMutability: "view",
27
+ inputs: [{ name: "", type: "address" }],
28
+ outputs: [{ name: "", type: "uint256" }],
29
+ },
30
+ {
31
+ name: "paused",
32
+ type: "function",
33
+ stateMutability: "view",
34
+ inputs: [],
35
+ outputs: [{ name: "", type: "bool" }],
36
+ },
37
+ {
38
+ name: "periodStart",
39
+ type: "function",
40
+ stateMutability: "view",
41
+ inputs: [],
42
+ outputs: [{ name: "", type: "uint256" }],
43
+ },
44
+ {
45
+ name: "estimateNextDailyUBI",
46
+ type: "function",
47
+ stateMutability: "view",
48
+ inputs: [],
49
+ outputs: [{ name: "", type: "uint256" }],
50
+ },
51
+ {
52
+ name: "dailyUbi",
53
+ type: "function",
54
+ stateMutability: "view",
55
+ inputs: [],
56
+ outputs: [{ name: "", type: "uint256" }],
57
+ },
58
+ {
59
+ name: "currentDay",
60
+ type: "function",
61
+ stateMutability: "view",
62
+ inputs: [],
63
+ outputs: [{ name: "", type: "uint256" }],
64
+ },
65
+ ];
66
+ //# sourceMappingURL=ubi-scheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ubi-scheme.js","sourceRoot":"","sources":["../../../src/abis/ubi-scheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,I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AE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;CACqB,CAAC"}
@@ -0,0 +1,34 @@
1
+ export declare const stateViewAbi: readonly [{
2
+ readonly name: "getSlot0";
3
+ readonly type: "function";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "poolId";
7
+ readonly type: "bytes32";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "sqrtPriceX96";
11
+ readonly type: "uint160";
12
+ }, {
13
+ readonly name: "tick";
14
+ readonly type: "int24";
15
+ }, {
16
+ readonly name: "protocolFee";
17
+ readonly type: "uint24";
18
+ }, {
19
+ readonly name: "lpFee";
20
+ readonly type: "uint24";
21
+ }];
22
+ }, {
23
+ readonly name: "getLiquidity";
24
+ readonly type: "function";
25
+ readonly stateMutability: "view";
26
+ readonly inputs: readonly [{
27
+ readonly name: "poolId";
28
+ readonly type: "bytes32";
29
+ }];
30
+ readonly outputs: readonly [{
31
+ readonly name: "liquidity";
32
+ readonly type: "uint128";
33
+ }];
34
+ }];
@@ -0,0 +1,22 @@
1
+ export const stateViewAbi = [
2
+ {
3
+ name: "getSlot0",
4
+ type: "function",
5
+ stateMutability: "view",
6
+ inputs: [{ name: "poolId", type: "bytes32" }],
7
+ outputs: [
8
+ { name: "sqrtPriceX96", type: "uint160" },
9
+ { name: "tick", type: "int24" },
10
+ { name: "protocolFee", type: "uint24" },
11
+ { name: "lpFee", type: "uint24" },
12
+ ],
13
+ },
14
+ {
15
+ name: "getLiquidity",
16
+ type: "function",
17
+ stateMutability: "view",
18
+ inputs: [{ name: "poolId", type: "bytes32" }],
19
+ outputs: [{ name: "liquidity", type: "uint128" }],
20
+ },
21
+ ];
22
+ //# sourceMappingURL=uniswap-state-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniswap-state-view.js","sourceRoot":"","sources":["../../../src/abis/uniswap-state-view.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;YACzC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;YAC/B,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;SAClC;KACF;IACD;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAClD;CACO,CAAC"}
@@ -0,0 +1,86 @@
1
+ export declare const v4QuoterAbi: readonly [{
2
+ readonly name: "quoteExactInputSingle";
3
+ readonly type: "function";
4
+ readonly stateMutability: "nonpayable";
5
+ readonly inputs: readonly [{
6
+ readonly name: "params";
7
+ readonly type: "tuple";
8
+ readonly components: readonly [{
9
+ readonly name: "poolKey";
10
+ readonly type: "tuple";
11
+ readonly components: readonly [{
12
+ readonly name: "currency0";
13
+ readonly type: "address";
14
+ }, {
15
+ readonly name: "currency1";
16
+ readonly type: "address";
17
+ }, {
18
+ readonly name: "fee";
19
+ readonly type: "uint24";
20
+ }, {
21
+ readonly name: "tickSpacing";
22
+ readonly type: "int24";
23
+ }, {
24
+ readonly name: "hooks";
25
+ readonly type: "address";
26
+ }];
27
+ }, {
28
+ readonly name: "zeroForOne";
29
+ readonly type: "bool";
30
+ }, {
31
+ readonly name: "exactAmount";
32
+ readonly type: "uint128";
33
+ }, {
34
+ readonly name: "hookData";
35
+ readonly type: "bytes";
36
+ }];
37
+ }];
38
+ readonly outputs: readonly [{
39
+ readonly name: "amountOut";
40
+ readonly type: "uint256";
41
+ }, {
42
+ readonly name: "gasEstimate";
43
+ readonly type: "uint256";
44
+ }];
45
+ }, {
46
+ readonly name: "quoteExactInput";
47
+ readonly type: "function";
48
+ readonly stateMutability: "nonpayable";
49
+ readonly inputs: readonly [{
50
+ readonly name: "params";
51
+ readonly type: "tuple";
52
+ readonly components: readonly [{
53
+ readonly name: "exactCurrency";
54
+ readonly type: "address";
55
+ }, {
56
+ readonly name: "path";
57
+ readonly type: "tuple[]";
58
+ readonly components: readonly [{
59
+ readonly name: "intermediateCurrency";
60
+ readonly type: "address";
61
+ }, {
62
+ readonly name: "fee";
63
+ readonly type: "uint24";
64
+ }, {
65
+ readonly name: "tickSpacing";
66
+ readonly type: "int24";
67
+ }, {
68
+ readonly name: "hooks";
69
+ readonly type: "address";
70
+ }, {
71
+ readonly name: "hookData";
72
+ readonly type: "bytes";
73
+ }];
74
+ }, {
75
+ readonly name: "exactAmount";
76
+ readonly type: "uint128";
77
+ }];
78
+ }];
79
+ readonly outputs: readonly [{
80
+ readonly name: "amountOut";
81
+ readonly type: "uint256";
82
+ }, {
83
+ readonly name: "gasEstimate";
84
+ readonly type: "uint256";
85
+ }];
86
+ }];
@@ -0,0 +1,64 @@
1
+ export const v4QuoterAbi = [
2
+ {
3
+ name: "quoteExactInputSingle",
4
+ type: "function",
5
+ stateMutability: "nonpayable",
6
+ inputs: [
7
+ {
8
+ name: "params",
9
+ type: "tuple",
10
+ components: [
11
+ {
12
+ name: "poolKey",
13
+ type: "tuple",
14
+ components: [
15
+ { name: "currency0", type: "address" },
16
+ { name: "currency1", type: "address" },
17
+ { name: "fee", type: "uint24" },
18
+ { name: "tickSpacing", type: "int24" },
19
+ { name: "hooks", type: "address" },
20
+ ],
21
+ },
22
+ { name: "zeroForOne", type: "bool" },
23
+ { name: "exactAmount", type: "uint128" },
24
+ { name: "hookData", type: "bytes" },
25
+ ],
26
+ },
27
+ ],
28
+ outputs: [
29
+ { name: "amountOut", type: "uint256" },
30
+ { name: "gasEstimate", type: "uint256" },
31
+ ],
32
+ },
33
+ {
34
+ name: "quoteExactInput",
35
+ type: "function",
36
+ stateMutability: "nonpayable",
37
+ inputs: [
38
+ {
39
+ name: "params",
40
+ type: "tuple",
41
+ components: [
42
+ { name: "exactCurrency", type: "address" },
43
+ {
44
+ name: "path",
45
+ type: "tuple[]",
46
+ components: [
47
+ { name: "intermediateCurrency", type: "address" },
48
+ { name: "fee", type: "uint24" },
49
+ { name: "tickSpacing", type: "int24" },
50
+ { name: "hooks", type: "address" },
51
+ { name: "hookData", type: "bytes" },
52
+ ],
53
+ },
54
+ { name: "exactAmount", type: "uint128" },
55
+ ],
56
+ },
57
+ ],
58
+ outputs: [
59
+ { name: "amountOut", type: "uint256" },
60
+ { name: "gasEstimate", type: "uint256" },
61
+ ],
62
+ },
63
+ ];
64
+ //# sourceMappingURL=uniswap-v4-quoter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniswap-v4-quoter.js","sourceRoot":"","sources":["../../../src/abis/uniswap-v4-quoter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;gBACb,UAAU,EAAE;oBACV;wBACE,IAAI,EAAE,SAAS;wBAC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AAE,IAAI,EAAE,SAAS,EAAE;4BAClC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE;yBACpC;qBACF;oBACD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;iBACzC;aACF;SACF;QACD,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YACtC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;SACzC;KACF;CACO,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const universalRouterAbi: readonly [{
2
+ readonly name: "execute";
3
+ readonly type: "function";
4
+ readonly stateMutability: "payable";
5
+ readonly inputs: readonly [{
6
+ readonly name: "commands";
7
+ readonly type: "bytes";
8
+ }, {
9
+ readonly name: "inputs";
10
+ readonly type: "bytes[]";
11
+ }, {
12
+ readonly name: "deadline";
13
+ readonly type: "uint256";
14
+ }];
15
+ readonly outputs: readonly [];
16
+ }];
@@ -0,0 +1,14 @@
1
+ export const universalRouterAbi = [
2
+ {
3
+ name: "execute",
4
+ type: "function",
5
+ stateMutability: "payable",
6
+ inputs: [
7
+ { name: "commands", type: "bytes" },
8
+ { name: "inputs", type: "bytes[]" },
9
+ { name: "deadline", type: "uint256" },
10
+ ],
11
+ outputs: [],
12
+ },
13
+ ];
14
+ //# sourceMappingURL=universal-router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"universal-router.js","sourceRoot":"","sources":["../../../src/abis/universal-router.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,SAAS;QAC1B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE;YACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;SACtC;QACD,OAAO,EAAE,EAAE;KACZ;CACO,CAAC"}
@@ -0,0 +1,65 @@
1
+ /** Minimal Validators ABI for group and member reads (full ABI in validators.json). */
2
+ export declare const validatorsMinimalAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "getRegisteredValidators";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "address[]";
9
+ }];
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "getValidator";
14
+ readonly inputs: readonly [{
15
+ readonly name: "validator";
16
+ readonly type: "address";
17
+ }];
18
+ readonly outputs: readonly [{
19
+ readonly name: "ecdsaPublicKey";
20
+ readonly type: "bytes";
21
+ }, {
22
+ readonly name: "blsPublicKey";
23
+ readonly type: "bytes";
24
+ }, {
25
+ readonly name: "affiliation";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly name: "score";
29
+ readonly type: "uint256";
30
+ }, {
31
+ readonly name: "signer";
32
+ readonly type: "address";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly name: "getValidatorGroup";
38
+ readonly inputs: readonly [{
39
+ readonly name: "group";
40
+ readonly type: "address";
41
+ }];
42
+ readonly outputs: readonly [{
43
+ readonly name: "members";
44
+ readonly type: "address[]";
45
+ }, {
46
+ readonly name: "commission";
47
+ readonly type: "uint256";
48
+ }, {
49
+ readonly name: "lastSlashed";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly name: "name";
53
+ readonly type: "string";
54
+ }, {
55
+ readonly name: "membersHistory";
56
+ readonly type: "uint256[]";
57
+ }, {
58
+ readonly name: "membersHistoryLength";
59
+ readonly type: "uint256";
60
+ }, {
61
+ readonly name: "slashingMultiplier";
62
+ readonly type: "uint256";
63
+ }];
64
+ readonly stateMutability: "view";
65
+ }];
@@ -0,0 +1,39 @@
1
+ /** Minimal Validators ABI for group and member reads (full ABI in validators.json). */
2
+ export const validatorsMinimalAbi = [
3
+ {
4
+ type: "function",
5
+ name: "getRegisteredValidators",
6
+ inputs: [],
7
+ outputs: [{ name: "", type: "address[]" }],
8
+ stateMutability: "view",
9
+ },
10
+ {
11
+ type: "function",
12
+ name: "getValidator",
13
+ inputs: [{ name: "validator", type: "address" }],
14
+ outputs: [
15
+ { name: "ecdsaPublicKey", type: "bytes" },
16
+ { name: "blsPublicKey", type: "bytes" },
17
+ { name: "affiliation", type: "address" },
18
+ { name: "score", type: "uint256" },
19
+ { name: "signer", type: "address" },
20
+ ],
21
+ stateMutability: "view",
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "getValidatorGroup",
26
+ inputs: [{ name: "group", type: "address" }],
27
+ outputs: [
28
+ { name: "members", type: "address[]" },
29
+ { name: "commission", type: "uint256" },
30
+ { name: "lastSlashed", type: "uint256" },
31
+ { name: "name", type: "string" },
32
+ { name: "membersHistory", type: "uint256[]" },
33
+ { name: "membersHistoryLength", type: "uint256" },
34
+ { name: "slashingMultiplier", type: "uint256" },
35
+ ],
36
+ stateMutability: "view",
37
+ },
38
+ ];
39
+ //# sourceMappingURL=validators-minimal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators-minimal.js","sourceRoot":"","sources":["../../../src/abis/validators-minimal.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;QAC1C,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAChD,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE;YACzC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE;YACvC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;YACxC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC5C,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;YACtC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;YACxC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,EAAE;YAC7C,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,EAAE;YACjD,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE;SAChD;QACD,eAAe,EAAE,MAAM;KACxB;CACO,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { SdkConfig } from "../config/sdk-config.js";
2
+ export type TrackMcpToolContext = {
3
+ methodKey: string;
4
+ args: readonly unknown[];
5
+ };
6
+ /** Test-only hook to assert telemetry without calling Amplitude. */
7
+ export declare function setTrackFnForTests(fn: ((eventName: string, config: SdkConfig, context: TrackMcpToolContext, userId: string | undefined) => void) | null): void;
8
+ /** Fire-and-forget MCP tool name event; never throws to callers. */
9
+ export declare function trackMcpTool(eventName: string, config: SdkConfig, context?: TrackMcpToolContext): void;
10
+ /** Await any queued Amplitude events (e.g. end of a Next.js route via `after()`). */
11
+ export declare function flushCelinaAnalytics(): Promise<void>;
@@ -0,0 +1,76 @@
1
+ import { isAnalyticsEnabled, resolveAmplitudeApiKey, resolveDeviceId, } from "./config.js";
2
+ import { resolveAnalyticsWallet } from "./wallet-context.js";
3
+ let initialized = false;
4
+ let testTrackFn = null;
5
+ /** Test-only hook to assert telemetry without calling Amplitude. */
6
+ export function setTrackFnForTests(fn) {
7
+ testTrackFn = fn;
8
+ initialized = false;
9
+ }
10
+ async function ensureInit(config) {
11
+ const apiKey = resolveAmplitudeApiKey(config);
12
+ if (!apiKey) {
13
+ return false;
14
+ }
15
+ if (initialized) {
16
+ return true;
17
+ }
18
+ try {
19
+ const amplitude = await import("@amplitude/analytics-node");
20
+ amplitude.init(apiKey);
21
+ initialized = true;
22
+ return true;
23
+ }
24
+ catch {
25
+ return false;
26
+ }
27
+ }
28
+ /** Fire-and-forget MCP tool name event; never throws to callers. */
29
+ export function trackMcpTool(eventName, config, context) {
30
+ if (!isAnalyticsEnabled(config)) {
31
+ return;
32
+ }
33
+ const userId = context
34
+ ? resolveAnalyticsWallet(context.methodKey, context.args, config)
35
+ : undefined;
36
+ if (testTrackFn) {
37
+ try {
38
+ testTrackFn(eventName, config, context ?? { methodKey: "", args: [] }, userId);
39
+ }
40
+ catch {
41
+ // ignore test hook failures
42
+ }
43
+ return;
44
+ }
45
+ void (async () => {
46
+ try {
47
+ if (!(await ensureInit(config))) {
48
+ return;
49
+ }
50
+ const amplitude = await import("@amplitude/analytics-node");
51
+ await amplitude.track(eventName, undefined, {
52
+ device_id: resolveDeviceId(config),
53
+ ...(userId ? { user_id: userId } : {}),
54
+ }).promise;
55
+ // Serverless (Vercel, Lambda) freezes when the handler returns unless we flush.
56
+ await amplitude.flush().promise;
57
+ }
58
+ catch {
59
+ // telemetry must not break SDK reads
60
+ }
61
+ })();
62
+ }
63
+ /** Await any queued Amplitude events (e.g. end of a Next.js route via `after()`). */
64
+ export async function flushCelinaAnalytics() {
65
+ if (!initialized) {
66
+ return;
67
+ }
68
+ try {
69
+ const amplitude = await import("@amplitude/analytics-node");
70
+ await amplitude.flush().promise;
71
+ }
72
+ catch {
73
+ // ignore flush failures
74
+ }
75
+ }
76
+ //# sourceMappingURL=amplitude.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amplitude.js","sourceRoot":"","sources":["../../../src/analytics/amplitude.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,IAAI,WAAW,GAAG,KAAK,CAAC;AACxB,IAAI,WAAW,GAOJ,IAAI,CAAC;AAEhB,oEAAoE;AACpE,MAAM,UAAU,kBAAkB,CAChC,EAOQ;IAER,WAAW,GAAG,EAAE,CAAC;IACjB,WAAW,GAAG,KAAK,CAAC;AACtB,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,MAAiB;IACzC,MAAM,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC9C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC5D,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,WAAW,GAAG,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,YAAY,CAC1B,SAAiB,EAC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C;IACD,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC5D,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,wBAAwB;IAC1B,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { SdkConfig } from "../config/sdk-config.js";
2
+ /** Public Amplitude project ingestion key (bundled for default telemetry on Node installs). */
3
+ export declare const DEFAULT_AMPLITUDE_API_KEY = "f36f9a7fdc253ed864072edc627b2a55";
4
+ /** Whether Amplitude read telemetry is active for this process. */
5
+ export declare function isAnalyticsEnabled(config: SdkConfig): boolean;
6
+ export declare function resolveAmplitudeApiKey(config: SdkConfig): string | undefined;
7
+ export declare function resolveDeviceId(config: SdkConfig): string;
@@ -0,0 +1,28 @@
1
+ /** Public Amplitude project ingestion key (bundled for default telemetry on Node installs). */
2
+ export const DEFAULT_AMPLITUDE_API_KEY = "f36f9a7fdc253ed864072edc627b2a55";
3
+ const DEFAULT_DEVICE_ID = "celina-sdk";
4
+ /** Whether Amplitude read telemetry is active for this process. */
5
+ export function isAnalyticsEnabled(config) {
6
+ if (typeof process === "undefined") {
7
+ return false;
8
+ }
9
+ if (process.env.CELINA_ANALYTICS_DISABLED === "1") {
10
+ return false;
11
+ }
12
+ if (config.analyticsEnabled === false) {
13
+ return false;
14
+ }
15
+ return true;
16
+ }
17
+ export function resolveAmplitudeApiKey(config) {
18
+ if (!isAnalyticsEnabled(config)) {
19
+ return undefined;
20
+ }
21
+ return (config.amplitudeApiKey ??
22
+ process.env.AMPLITUDE_API_KEY ??
23
+ DEFAULT_AMPLITUDE_API_KEY);
24
+ }
25
+ export function resolveDeviceId(config) {
26
+ return config.analyticsDeviceId ?? DEFAULT_DEVICE_ID;
27
+ }
28
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/analytics/config.ts"],"names":[],"mappings":"AAEA,+FAA+F;AAC/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,kCAAkC,CAAC;AAE5E,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAEvC,mEAAmE;AACnE,MAAM,UAAU,kBAAkB,CAAC,MAAiB;IAClD,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB,KAAK,GAAG,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,MAAM,CAAC,gBAAgB,KAAK,KAAK,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAAiB;IACtD,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,CACL,MAAM,CAAC,eAAe;QACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC7B,yBAAyB,CAC1B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,OAAO,MAAM,CAAC,iBAAiB,IAAI,iBAAiB,CAAC;AACvD,CAAC"}