@coinbase/cdp-sdk 1.1.2 → 1.3.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 (332) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/LICENSE +21 -0
  3. package/README.md +88 -1
  4. package/{dist → _cjs}/accounts/evm/toEvmServerAccount.js +1 -0
  5. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -0
  6. package/{dist → _cjs}/accounts/evm/toEvmSmartAccount.js +1 -0
  7. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -0
  8. package/{dist → _cjs}/accounts/types.js +1 -0
  9. package/_cjs/accounts/types.js.map +1 -0
  10. package/{dist → _cjs}/actions/evm/sendUserOperation.js +1 -0
  11. package/_cjs/actions/evm/sendUserOperation.js.map +1 -0
  12. package/{dist → _cjs}/actions/evm/waitForUserOperation.js +10 -9
  13. package/_cjs/actions/evm/waitForUserOperation.js.map +1 -0
  14. package/{dist → _cjs}/analytics.js +32 -12
  15. package/_cjs/analytics.js.map +1 -0
  16. package/{dist → _cjs}/auth/errors.js +1 -0
  17. package/_cjs/auth/errors.js.map +1 -0
  18. package/{dist → _cjs}/auth/hooks/axios/index.js +2 -1
  19. package/_cjs/auth/hooks/axios/index.js.map +1 -0
  20. package/{dist → _cjs}/auth/hooks/axios/withAuth.js +4 -2
  21. package/_cjs/auth/hooks/axios/withAuth.js.map +1 -0
  22. package/{dist → _cjs}/auth/index.js +4 -3
  23. package/_cjs/auth/index.js.map +1 -0
  24. package/{dist → _cjs}/auth/utils/http.js +6 -5
  25. package/_cjs/auth/utils/http.js.map +1 -0
  26. package/{dist → _cjs}/auth/utils/index.js +3 -2
  27. package/_cjs/auth/utils/index.js.map +1 -0
  28. package/{dist → _cjs}/auth/utils/jwt.js +4 -3
  29. package/_cjs/auth/utils/jwt.js.map +1 -0
  30. package/_cjs/client/cdp.js +101 -0
  31. package/_cjs/client/cdp.js.map +1 -0
  32. package/_cjs/client/evm/evm.js +641 -0
  33. package/_cjs/client/evm/evm.js.map +1 -0
  34. package/{dist → _cjs}/client/evm/evm.types.js +1 -0
  35. package/_cjs/client/evm/evm.types.js.map +1 -0
  36. package/{dist → _cjs}/client/solana/index.js +3 -2
  37. package/_cjs/client/solana/index.js.map +1 -0
  38. package/{dist → _cjs}/client/solana/solana.js +9 -8
  39. package/_cjs/client/solana/solana.js.map +1 -0
  40. package/{dist → _cjs}/client/solana/solana.types.js +1 -0
  41. package/_cjs/client/solana/solana.types.js.map +1 -0
  42. package/{dist → _cjs}/constants.js +1 -0
  43. package/_cjs/constants.js.map +1 -0
  44. package/{dist → _cjs}/errors.js +1 -0
  45. package/_cjs/errors.js.map +1 -0
  46. package/{dist → _cjs}/index.js +4 -3
  47. package/_cjs/index.js.map +1 -0
  48. package/_cjs/openapi-client/cdpApiClient.js +116 -0
  49. package/_cjs/openapi-client/cdpApiClient.js.map +1 -0
  50. package/{dist → _cjs}/openapi-client/errors.js +44 -3
  51. package/_cjs/openapi-client/errors.js.map +1 -0
  52. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +66 -0
  53. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
  54. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +125 -0
  55. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
  56. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +160 -0
  57. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
  58. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +70 -0
  59. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
  60. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +188 -0
  61. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
  62. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js +15 -0
  63. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -0
  64. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +45 -0
  65. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +1 -0
  66. package/{dist → _cjs}/openapi-client/generated/faucets/faucets.js +20 -14
  67. package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -0
  68. package/{dist → _cjs}/openapi-client/generated/faucets/faucets.msw.js +16 -12
  69. package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
  70. package/{dist → _cjs}/openapi-client/generated/index.msw.js +6 -4
  71. package/_cjs/openapi-client/generated/index.msw.js.map +1 -0
  72. package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.js +38 -35
  73. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
  74. package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.msw.js +68 -35
  75. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
  76. package/{dist → _cjs}/openapi-client/index.js +16 -11
  77. package/_cjs/openapi-client/index.js.map +1 -0
  78. package/_cjs/package.json +1 -0
  79. package/{dist → _cjs}/types/calls.js +1 -0
  80. package/_cjs/types/calls.js.map +1 -0
  81. package/{dist → _cjs}/types/contract.js +1 -0
  82. package/_cjs/types/contract.js.map +1 -0
  83. package/{dist → _cjs}/types/misc.js +1 -0
  84. package/_cjs/types/misc.js.map +1 -0
  85. package/{dist → _cjs}/types/multicall.js +1 -0
  86. package/_cjs/types/multicall.js.map +1 -0
  87. package/{dist → _cjs}/types/utils.js +1 -0
  88. package/_cjs/types/utils.js.map +1 -0
  89. package/{dist → _cjs}/utils/wait.js +3 -2
  90. package/_cjs/utils/wait.js.map +1 -0
  91. package/_cjs/version.js +5 -0
  92. package/_cjs/version.js.map +1 -0
  93. package/_esm/accounts/evm/toEvmServerAccount.js +40 -0
  94. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -0
  95. package/_esm/accounts/evm/toEvmSmartAccount.js +22 -0
  96. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -0
  97. package/_esm/accounts/types.js +2 -0
  98. package/_esm/accounts/types.js.map +1 -0
  99. package/_esm/actions/evm/sendUserOperation.js +85 -0
  100. package/_esm/actions/evm/sendUserOperation.js.map +1 -0
  101. package/_esm/actions/evm/waitForUserOperation.js +58 -0
  102. package/_esm/actions/evm/waitForUserOperation.js.map +1 -0
  103. package/_esm/analytics.js +101 -0
  104. package/_esm/analytics.js.map +1 -0
  105. package/_esm/auth/errors.js +57 -0
  106. package/_esm/auth/errors.js.map +1 -0
  107. package/_esm/auth/hooks/axios/index.js +2 -0
  108. package/_esm/auth/hooks/axios/index.js.map +1 -0
  109. package/_esm/auth/hooks/axios/withAuth.js +72 -0
  110. package/_esm/auth/hooks/axios/withAuth.js.map +1 -0
  111. package/_esm/auth/index.js +5 -0
  112. package/_esm/auth/index.js.map +1 -0
  113. package/_esm/auth/utils/http.js +70 -0
  114. package/_esm/auth/utils/http.js.map +1 -0
  115. package/_esm/auth/utils/index.js +3 -0
  116. package/_esm/auth/utils/index.js.map +1 -0
  117. package/_esm/auth/utils/jwt.js +199 -0
  118. package/_esm/auth/utils/jwt.js.map +1 -0
  119. package/{dist → _esm}/client/cdp.js +16 -13
  120. package/_esm/client/cdp.js.map +1 -0
  121. package/{dist → _esm}/client/evm/evm.js +146 -30
  122. package/_esm/client/evm/evm.js.map +1 -0
  123. package/_esm/client/evm/evm.types.js +2 -0
  124. package/_esm/client/evm/evm.types.js.map +1 -0
  125. package/_esm/client/solana/index.js +2 -0
  126. package/_esm/client/solana/index.js.map +1 -0
  127. package/_esm/client/solana/solana.js +204 -0
  128. package/_esm/client/solana/solana.js.map +1 -0
  129. package/_esm/client/solana/solana.types.js +2 -0
  130. package/_esm/client/solana/solana.types.js.map +1 -0
  131. package/_esm/constants.js +5 -0
  132. package/_esm/constants.js.map +1 -0
  133. package/_esm/errors.js +18 -0
  134. package/_esm/errors.js.map +1 -0
  135. package/_esm/index.js +3 -0
  136. package/_esm/index.js.map +1 -0
  137. package/_esm/openapi-client/cdpApiClient.js +108 -0
  138. package/_esm/openapi-client/cdpApiClient.js.map +1 -0
  139. package/_esm/openapi-client/errors.js +104 -0
  140. package/_esm/openapi-client/errors.js.map +1 -0
  141. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +63 -0
  142. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
  143. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +114 -0
  144. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
  145. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +140 -0
  146. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
  147. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +61 -0
  148. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
  149. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +172 -0
  150. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
  151. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js +11 -0
  152. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -0
  153. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +39 -0
  154. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +1 -0
  155. package/_esm/openapi-client/generated/faucets/faucets.js +52 -0
  156. package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -0
  157. package/_esm/openapi-client/generated/faucets/faucets.msw.js +39 -0
  158. package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
  159. package/_esm/openapi-client/generated/index.msw.js +6 -0
  160. package/_esm/openapi-client/generated/index.msw.js.map +1 -0
  161. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +73 -0
  162. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
  163. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +116 -0
  164. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
  165. package/_esm/openapi-client/index.js +31 -0
  166. package/_esm/openapi-client/index.js.map +1 -0
  167. package/_esm/package.json +1 -0
  168. package/_esm/types/calls.js +4 -0
  169. package/_esm/types/calls.js.map +1 -0
  170. package/_esm/types/contract.js +4 -0
  171. package/_esm/types/contract.js.map +1 -0
  172. package/_esm/types/misc.js +3 -0
  173. package/_esm/types/misc.js.map +1 -0
  174. package/_esm/types/multicall.js +2 -0
  175. package/_esm/types/multicall.js.map +1 -0
  176. package/_esm/types/utils.js +4 -0
  177. package/_esm/types/utils.js.map +1 -0
  178. package/_esm/utils/wait.js +32 -0
  179. package/_esm/utils/wait.js.map +1 -0
  180. package/_esm/version.js +2 -0
  181. package/_esm/version.js.map +1 -0
  182. package/{dist → _types}/accounts/evm/toEvmServerAccount.d.ts +3 -2
  183. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -0
  184. package/{dist → _types}/accounts/evm/toEvmSmartAccount.d.ts +3 -2
  185. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -0
  186. package/{dist → _types}/accounts/types.d.ts +3 -2
  187. package/_types/accounts/types.d.ts.map +1 -0
  188. package/{dist → _types}/actions/evm/sendUserOperation.d.ts +5 -5
  189. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -0
  190. package/{dist → _types}/actions/evm/waitForUserOperation.d.ts +4 -3
  191. package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -0
  192. package/{dist → _types}/analytics.d.ts +16 -0
  193. package/_types/analytics.d.ts.map +1 -0
  194. package/{dist → _types}/auth/errors.d.ts +1 -0
  195. package/_types/auth/errors.d.ts.map +1 -0
  196. package/_types/auth/hooks/axios/index.d.ts +2 -0
  197. package/_types/auth/hooks/axios/index.d.ts.map +1 -0
  198. package/{dist → _types}/auth/hooks/axios/withAuth.d.ts +1 -0
  199. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -0
  200. package/_types/auth/index.d.ts +5 -0
  201. package/_types/auth/index.d.ts.map +1 -0
  202. package/{dist → _types}/auth/utils/http.d.ts +1 -0
  203. package/_types/auth/utils/http.d.ts.map +1 -0
  204. package/_types/auth/utils/index.d.ts +3 -0
  205. package/_types/auth/utils/index.d.ts.map +1 -0
  206. package/{dist → _types}/auth/utils/jwt.d.ts +1 -0
  207. package/_types/auth/utils/jwt.d.ts.map +1 -0
  208. package/{dist → _types}/client/cdp.d.ts +3 -2
  209. package/_types/client/cdp.d.ts.map +1 -0
  210. package/{dist → _types}/client/evm/evm.d.ts +86 -3
  211. package/_types/client/evm/evm.d.ts.map +1 -0
  212. package/{dist → _types}/client/evm/evm.types.d.ts +104 -7
  213. package/_types/client/evm/evm.types.d.ts.map +1 -0
  214. package/_types/client/solana/index.d.ts +2 -0
  215. package/_types/client/solana/index.d.ts.map +1 -0
  216. package/{dist → _types}/client/solana/solana.d.ts +2 -1
  217. package/_types/client/solana/solana.d.ts.map +1 -0
  218. package/{dist → _types}/client/solana/solana.types.d.ts +2 -1
  219. package/_types/client/solana/solana.types.d.ts.map +1 -0
  220. package/{dist → _types}/constants.d.ts +1 -0
  221. package/_types/constants.d.ts.map +1 -0
  222. package/{dist → _types}/errors.d.ts +1 -0
  223. package/_types/errors.d.ts.map +1 -0
  224. package/_types/index.d.ts +4 -0
  225. package/_types/index.d.ts.map +1 -0
  226. package/{dist → _types}/openapi-client/cdpApiClient.d.ts +1 -0
  227. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -0
  228. package/{dist → _types}/openapi-client/errors.d.ts +30 -2
  229. package/_types/openapi-client/errors.d.ts.map +1 -0
  230. package/{dist → _types}/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +100 -14
  231. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -0
  232. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +91 -0
  233. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -0
  234. package/{dist → _types}/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +5 -2
  235. package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +1 -0
  236. package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +22 -20
  237. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -0
  238. package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +3 -2
  239. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +1 -0
  240. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +20 -0
  241. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -0
  242. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts +6 -0
  243. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts.map +1 -0
  244. package/{dist → _types}/openapi-client/generated/faucets/faucets.d.ts +11 -9
  245. package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -0
  246. package/{dist → _types}/openapi-client/generated/faucets/faucets.msw.d.ts +3 -2
  247. package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +1 -0
  248. package/_types/openapi-client/generated/index.msw.d.ts +6 -0
  249. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -0
  250. package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.d.ts +21 -20
  251. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -0
  252. package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +3 -2
  253. package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +1 -0
  254. package/_types/openapi-client/index.d.ts +61 -0
  255. package/_types/openapi-client/index.d.ts.map +1 -0
  256. package/{dist → _types}/types/calls.d.ts +4 -3
  257. package/_types/types/calls.d.ts.map +1 -0
  258. package/{dist → _types}/types/contract.d.ts +3 -2
  259. package/_types/types/contract.d.ts.map +1 -0
  260. package/_types/types/misc.d.ts +41 -0
  261. package/_types/types/misc.d.ts.map +1 -0
  262. package/{dist → _types}/types/multicall.d.ts +2 -1
  263. package/_types/types/multicall.d.ts.map +1 -0
  264. package/{dist → _types}/types/utils.d.ts +1 -0
  265. package/_types/types/utils.d.ts.map +1 -0
  266. package/{dist → _types}/utils/wait.d.ts +1 -0
  267. package/_types/utils/wait.d.ts.map +1 -0
  268. package/_types/version.d.ts +2 -0
  269. package/_types/version.d.ts.map +1 -0
  270. package/accounts/evm/toEvmServerAccount.ts +60 -0
  271. package/accounts/evm/toEvmSmartAccount.ts +37 -0
  272. package/accounts/types.ts +53 -0
  273. package/actions/evm/sendUserOperation.ts +163 -0
  274. package/actions/evm/waitForUserOperation.ts +115 -0
  275. package/analytics.ts +142 -0
  276. package/auth/README.md +145 -0
  277. package/auth/errors.ts +59 -0
  278. package/auth/hooks/axios/index.ts +1 -0
  279. package/auth/hooks/axios/withAuth.ts +121 -0
  280. package/auth/index.ts +5 -0
  281. package/auth/utils/http.ts +146 -0
  282. package/auth/utils/index.ts +2 -0
  283. package/auth/utils/jwt.ts +324 -0
  284. package/client/cdp.ts +116 -0
  285. package/client/evm/evm.ts +739 -0
  286. package/client/evm/evm.types.ts +408 -0
  287. package/client/solana/index.ts +1 -0
  288. package/client/solana/solana.ts +237 -0
  289. package/client/solana/solana.types.ts +114 -0
  290. package/constants.ts +4 -0
  291. package/errors.ts +17 -0
  292. package/index.ts +4 -0
  293. package/openapi-client/cdpApiClient.ts +221 -0
  294. package/openapi-client/errors.ts +132 -0
  295. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +512 -0
  296. package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +271 -0
  297. package/openapi-client/generated/evm-accounts/evm-accounts.ts +194 -0
  298. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +283 -0
  299. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +132 -0
  300. package/openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts +57 -0
  301. package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +37 -0
  302. package/openapi-client/generated/faucets/faucets.msw.ts +76 -0
  303. package/openapi-client/generated/faucets/faucets.ts +84 -0
  304. package/openapi-client/generated/index.msw.ts +5 -0
  305. package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +219 -0
  306. package/openapi-client/generated/solana-accounts/solana-accounts.ts +143 -0
  307. package/openapi-client/index.ts +36 -0
  308. package/package.json +31 -66
  309. package/types/calls.ts +40 -0
  310. package/types/contract.ts +126 -0
  311. package/types/misc.ts +44 -0
  312. package/types/multicall.ts +29 -0
  313. package/types/utils.ts +288 -0
  314. package/utils/wait.ts +52 -0
  315. package/version.ts +1 -0
  316. package/dist/auth/hooks/axios/index.d.ts +0 -1
  317. package/dist/auth/index.d.ts +0 -4
  318. package/dist/auth/utils/index.d.ts +0 -2
  319. package/dist/client/evm/index.d.ts +0 -1
  320. package/dist/client/evm/index.js +0 -5
  321. package/dist/client/solana/index.d.ts +0 -1
  322. package/dist/index.d.ts +0 -3
  323. package/dist/openapi-client/cdpApiClient.js +0 -146
  324. package/dist/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +0 -54
  325. package/dist/openapi-client/generated/evm-accounts/evm-accounts.d.ts +0 -62
  326. package/dist/openapi-client/generated/evm-accounts/evm-accounts.js +0 -85
  327. package/dist/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -113
  328. package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +0 -66
  329. package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -99
  330. package/dist/openapi-client/generated/index.msw.d.ts +0 -4
  331. package/dist/openapi-client/index.d.ts +0 -55
  332. package/dist/types/misc.d.ts +0 -3
@@ -0,0 +1,73 @@
1
+ import { cdpApiClient } from "../../cdpApiClient.js";
2
+ /**
3
+ * Lists the Solana accounts belonging to the developer.
4
+ The response is paginated, and by default, returns 20 accounts per page.
5
+
6
+ If a name is provided, the response will contain only the account with that name.
7
+ * @summary List Solana accounts or get account by name
8
+ */
9
+ export const listSolanaAccounts = (params, options) => {
10
+ return cdpApiClient({ url: `/v2/solana/accounts`, method: "GET", params }, options);
11
+ };
12
+ /**
13
+ * Creates a new Solana account.
14
+ * @summary Create a Solana account
15
+ */
16
+ export const createSolanaAccount = (createSolanaAccountBody, options) => {
17
+ return cdpApiClient({
18
+ url: `/v2/solana/accounts`,
19
+ method: "POST",
20
+ headers: { "Content-Type": "application/json" },
21
+ data: createSolanaAccountBody,
22
+ }, options);
23
+ };
24
+ /**
25
+ * Gets a Solana account by its address.
26
+ * @summary Get a Solana account by address
27
+ */
28
+ export const getSolanaAccount = (address, options) => {
29
+ return cdpApiClient({ url: `/v2/solana/accounts/${address}`, method: "GET" }, options);
30
+ };
31
+ /**
32
+ * Gets a Solana account by its name.
33
+ * @summary Get a Solana account by name
34
+ */
35
+ export const getSolanaAccountByName = (name, options) => {
36
+ return cdpApiClient({ url: `/v2/solana/accounts/by-name/${name}`, method: "GET" }, options);
37
+ };
38
+ /**
39
+ * Signs a transaction with the given Solana account.
40
+ The unsigned transaction should be serialized into a byte array and then encoded as base64.
41
+
42
+ **Transaction types**
43
+
44
+ The following transaction types are supported:
45
+ * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
46
+ * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
47
+
48
+ The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
49
+ * @summary Sign a transaction
50
+ */
51
+ export const signSolanaTransaction = (address, signSolanaTransactionBody, options) => {
52
+ return cdpApiClient({
53
+ url: `/v2/solana/accounts/${address}/sign/transaction`,
54
+ method: "POST",
55
+ headers: { "Content-Type": "application/json" },
56
+ data: signSolanaTransactionBody,
57
+ }, options);
58
+ };
59
+ /**
60
+ * Signs an arbitrary message with the given Solana account.
61
+
62
+ **WARNING:** Never sign a message that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
63
+ * @summary Sign a message
64
+ */
65
+ export const signSolanaMessage = (address, signSolanaMessageBody, options) => {
66
+ return cdpApiClient({
67
+ url: `/v2/solana/accounts/${address}/sign/message`,
68
+ method: "POST",
69
+ headers: { "Content-Type": "application/json" },
70
+ data: signSolanaMessageBody,
71
+ }, options);
72
+ };
73
+ //# sourceMappingURL=solana-accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAAiC,EACjC,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EACrD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,uBAAiD,EACjD,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,qBAAqB;QAC1B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,uBAAuB;KAC9B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAAe,EACf,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,uBAAuB,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EACxD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,IAAY,EACZ,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,+BAA+B,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAe,EACf,yBAAoD,EACpD,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,uBAAuB,OAAO,mBAAmB;QACtD,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,yBAAyB;KAChC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AACF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,qBAA4C,EAC5C,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,uBAAuB,OAAO,eAAe;QAClD,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qBAAqB;KAC5B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Generated by orval v7.6.0 🍺
3
+ * Do not edit manually.
4
+ * Coinbase Developer Platform APIs
5
+ * The Coinbase Developer Platform APIs - leading the world's transition onchain.
6
+ * OpenAPI spec version: 2.0.0
7
+ */
8
+ import { faker } from "@faker-js/faker";
9
+ import { HttpResponse, delay, http } from "msw";
10
+ export const getListSolanaAccountsResponseMock = () => ({
11
+ ...{
12
+ accounts: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({
13
+ address: faker.helpers.fromRegExp("^[1-9A-HJ-NP-Za-km-z]{32,44}$"),
14
+ name: faker.helpers.arrayElement([
15
+ faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
16
+ undefined,
17
+ ]),
18
+ })),
19
+ },
20
+ ...{ nextPageToken: faker.helpers.arrayElement([faker.string.alpha(20), undefined]) },
21
+ });
22
+ export const getCreateSolanaAccountResponseMock = (overrideResponse = {}) => ({
23
+ address: faker.helpers.fromRegExp("^[1-9A-HJ-NP-Za-km-z]{32,44}$"),
24
+ name: faker.helpers.arrayElement([
25
+ faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
26
+ undefined,
27
+ ]),
28
+ ...overrideResponse,
29
+ });
30
+ export const getGetSolanaAccountResponseMock = (overrideResponse = {}) => ({
31
+ address: faker.helpers.fromRegExp("^[1-9A-HJ-NP-Za-km-z]{32,44}$"),
32
+ name: faker.helpers.arrayElement([
33
+ faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
34
+ undefined,
35
+ ]),
36
+ ...overrideResponse,
37
+ });
38
+ export const getGetSolanaAccountByNameResponseMock = (overrideResponse = {}) => ({
39
+ address: faker.helpers.fromRegExp("^[1-9A-HJ-NP-Za-km-z]{32,44}$"),
40
+ name: faker.helpers.arrayElement([
41
+ faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
42
+ undefined,
43
+ ]),
44
+ ...overrideResponse,
45
+ });
46
+ export const getSignSolanaTransactionResponseMock = (overrideResponse = {}) => ({ signedTransaction: faker.string.alpha(20), ...overrideResponse });
47
+ export const getSignSolanaMessageResponseMock = (overrideResponse = {}) => ({ signature: faker.string.alpha(20), ...overrideResponse });
48
+ export const getListSolanaAccountsMockHandler = (overrideResponse) => {
49
+ return http.get("*/v2/solana/accounts", async (info) => {
50
+ await delay(0);
51
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
52
+ ? typeof overrideResponse === "function"
53
+ ? await overrideResponse(info)
54
+ : overrideResponse
55
+ : getListSolanaAccountsResponseMock()), { status: 200, headers: { "Content-Type": "application/json" } });
56
+ });
57
+ };
58
+ export const getCreateSolanaAccountMockHandler = (overrideResponse) => {
59
+ return http.post("*/v2/solana/accounts", async (info) => {
60
+ await delay(0);
61
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
62
+ ? typeof overrideResponse === "function"
63
+ ? await overrideResponse(info)
64
+ : overrideResponse
65
+ : getCreateSolanaAccountResponseMock()), { status: 201, headers: { "Content-Type": "application/json" } });
66
+ });
67
+ };
68
+ export const getGetSolanaAccountMockHandler = (overrideResponse) => {
69
+ return http.get("*/v2/solana/accounts/:address", async (info) => {
70
+ await delay(0);
71
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
72
+ ? typeof overrideResponse === "function"
73
+ ? await overrideResponse(info)
74
+ : overrideResponse
75
+ : getGetSolanaAccountResponseMock()), { status: 200, headers: { "Content-Type": "application/json" } });
76
+ });
77
+ };
78
+ export const getGetSolanaAccountByNameMockHandler = (overrideResponse) => {
79
+ return http.get("*/v2/solana/accounts/by-name/:name", async (info) => {
80
+ await delay(0);
81
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
82
+ ? typeof overrideResponse === "function"
83
+ ? await overrideResponse(info)
84
+ : overrideResponse
85
+ : getGetSolanaAccountByNameResponseMock()), { status: 200, headers: { "Content-Type": "application/json" } });
86
+ });
87
+ };
88
+ export const getSignSolanaTransactionMockHandler = (overrideResponse) => {
89
+ return http.post("*/v2/solana/accounts/:address/sign/transaction", async (info) => {
90
+ await delay(0);
91
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
92
+ ? typeof overrideResponse === "function"
93
+ ? await overrideResponse(info)
94
+ : overrideResponse
95
+ : getSignSolanaTransactionResponseMock()), { status: 200, headers: { "Content-Type": "application/json" } });
96
+ });
97
+ };
98
+ export const getSignSolanaMessageMockHandler = (overrideResponse) => {
99
+ return http.post("*/v2/solana/accounts/:address/sign/message", async (info) => {
100
+ await delay(0);
101
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
102
+ ? typeof overrideResponse === "function"
103
+ ? await overrideResponse(info)
104
+ : overrideResponse
105
+ : getSignSolanaMessageResponseMock()), { status: 200, headers: { "Content-Type": "application/json" } });
106
+ });
107
+ };
108
+ export const getSolanaAccountsMock = () => [
109
+ getListSolanaAccountsMockHandler(),
110
+ getCreateSolanaAccountMockHandler(),
111
+ getGetSolanaAccountMockHandler(),
112
+ getGetSolanaAccountByNameMockHandler(),
113
+ getSignSolanaTransactionMockHandler(),
114
+ getSignSolanaMessageMockHandler(),
115
+ ];
116
+ //# sourceMappingURL=solana-accounts.msw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana-accounts.msw.js","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.msw.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAShD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAA0B,EAAE,CAAC,CAAC;IAC7E,GAAG;QACD,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAC1F,GAAG,EAAE,CAAC,CAAC;YACL,OAAO,EAA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gBAC9B,CAAC,CAAC,gBAAgB;YACpB,CAAC,CAAC,gCAAgC,EAAE,CACvC,EACD,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,CACjE,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC;IACzC,gCAAgC,EAAE;IAClC,iCAAiC,EAAE;IACnC,8BAA8B,EAAE;IAChC,oCAAoC,EAAE;IACtC,mCAAmC,EAAE;IACrC,+BAA+B,EAAE;CAClC,CAAC"}
@@ -0,0 +1,31 @@
1
+ export * from "./generated/coinbaseDeveloperPlatformAPIs.schemas.js";
2
+ export * from "./generated/evm-accounts/evm-accounts.js";
3
+ export * from "./generated/evm-smart-accounts/evm-smart-accounts.js";
4
+ export * from "./generated/evm-token-balances/evm-token-balances.js";
5
+ export * from "./generated/solana-accounts/solana-accounts.js";
6
+ export * from "./generated/faucets/faucets.js";
7
+ import { configure } from "./cdpApiClient.js";
8
+ import * as evm from "./generated/evm-accounts/evm-accounts.js";
9
+ import * as evmSmartAccounts from "./generated/evm-smart-accounts/evm-smart-accounts.js";
10
+ import * as evmTokenBalances from "./generated/evm-token-balances/evm-token-balances.js";
11
+ import * as faucets from "./generated/faucets/faucets.js";
12
+ import * as solana from "./generated/solana-accounts/solana-accounts.js";
13
+ export const CdpOpenApiClient = {
14
+ ...evm,
15
+ ...evmSmartAccounts,
16
+ ...evmTokenBalances,
17
+ ...solana,
18
+ ...faucets,
19
+ configure,
20
+ };
21
+ export const OpenApiEvmMethods = {
22
+ ...evm,
23
+ ...evmSmartAccounts,
24
+ ...evmTokenBalances,
25
+ requestEvmFaucet: faucets.requestEvmFaucet,
26
+ };
27
+ export const OpenApiSolanaMethods = {
28
+ ...solana,
29
+ requestSolanaFaucet: faucets.requestSolanaFaucet,
30
+ };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,0CAA0C,CAAC;AAChE,OAAO,KAAK,gBAAgB,MAAM,sDAAsD,CAAC;AACzF,OAAO,KAAK,gBAAgB,MAAM,sDAAsD,CAAC;AACzF,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,gDAAgD,CAAC;AAEzE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,GAAG,MAAM;IACT,GAAG,OAAO;IACV,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,GAAG;IACN,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,GAAG,MAAM;IACT,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;CACjD,CAAC"}
@@ -0,0 +1 @@
1
+ {"type": "module","sideEffects":false}
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // Adapted from viem (https://github.com/wevm/viem)
3
+ export {};
4
+ //# sourceMappingURL=calls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calls.js","sourceRoot":"","sources":["../../types/calls.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,mDAAmD"}
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // Adapted from viem (https://github.com/wevm/viem)
3
+ export {};
4
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../types/contract.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,mDAAmD"}
@@ -0,0 +1,3 @@
1
+ // Adapted from viem (https://github.com/wevm/viem)
2
+ export {};
3
+ //# sourceMappingURL=misc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../types/misc.ts"],"names":[],"mappings":"AAAA,mDAAmD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=multicall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicall.js","sourceRoot":"","sources":["../../types/multicall.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // Adapted from viem (https://github.com/wevm/viem)
3
+ export {};
4
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../types/utils.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,mDAAmD"}
@@ -0,0 +1,32 @@
1
+ import { TimeoutError } from "../errors.js";
2
+ /**
3
+ * Polls a resource until a terminal condition is met or timeout occurs.
4
+ *
5
+ * @param reload - Function that fetches the latest state of the resource
6
+ * @param isTerminal - Function that determines if the current state is terminal
7
+ * @param transform - Function that transforms the resource into a new type
8
+ * @param options - Configuration options for polling behavior
9
+ * @returns The resource in its terminal state
10
+ * @throws {TimeoutError} If the operation exceeds the timeout duration
11
+ *
12
+ * @example
13
+ * const result = await wait(
14
+ * () => fetchOrderStatus(orderId),
15
+ * (status) => status === 'completed',
16
+ * (status) => status === 'completed' ? { status } : undefined,
17
+ * { timeoutSeconds: 30 }
18
+ * );
19
+ */
20
+ export async function wait(reload, isTerminal, transform = (obj) => obj, options = {}) {
21
+ const { intervalSeconds = 0.2, timeoutSeconds = 10 } = options;
22
+ const startTime = Date.now();
23
+ while (Date.now() - startTime < timeoutSeconds * 1000) {
24
+ const updatedObject = await reload();
25
+ if (isTerminal(updatedObject)) {
26
+ return transform(updatedObject);
27
+ }
28
+ await new Promise(resolve => setTimeout(resolve, intervalSeconds * 1000));
29
+ }
30
+ throw new TimeoutError(`Operation has not reached a terminal state after ${timeoutSeconds} seconds and may still succeed. Retry with a longer timeout using the timeoutSeconds option.`);
31
+ }
32
+ //# sourceMappingURL=wait.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.js","sourceRoot":"","sources":["../../utils/wait.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAY5C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,MAAwB,EACxB,UAA+B,EAC/B,YAA2B,CAAC,GAAM,EAAE,EAAE,CAAC,GAAmB,EAC1D,UAAuB,EAAE;IAEzB,MAAM,EAAE,eAAe,GAAG,GAAG,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAC/D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,cAAc,GAAG,IAAI,EAAE,CAAC;QACtD,MAAM,aAAa,GAAG,MAAM,MAAM,EAAE,CAAC;QAErC,IAAI,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9B,OAAO,SAAS,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC;QAED,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;IAC5E,CAAC;IACD,MAAM,IAAI,YAAY,CACpB,oDAAoD,cAAc,8FAA8F,CACjK,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export const version = "1.3.0";
2
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { EvmServerAccount } from "../types";
2
- import { CdpOpenApiClientType, EvmAccount } from "../../openapi-client";
1
+ import { CdpOpenApiClientType, EvmAccount } from "../../openapi-client/index.js";
2
+ import { EvmServerAccount } from "../types.js";
3
3
  /**
4
4
  * Options for converting a pre-existing EvmAccount to a EvmServerAccount.
5
5
  */
@@ -17,3 +17,4 @@ export type ToEvmServerAccountOptions = {
17
17
  * @returns {EvmServerAccount} A configured EvmAccount instance ready for signing.
18
18
  */
19
19
  export declare function toEvmServerAccount(apiClient: CdpOpenApiClientType, options: ToEvmServerAccountOptions): EvmServerAccount;
20
+ //# sourceMappingURL=toEvmServerAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEvmServerAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toEvmServerAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/C;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,kDAAkD;IAClD,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,yBAAyB,GACjC,gBAAgB,CAgClB"}
@@ -1,5 +1,5 @@
1
- import { EvmAccount, EvmSmartAccount } from "../types";
2
- import { EvmSmartAccount as EvmSmartAccountModel } from "../../openapi-client";
1
+ import { EvmSmartAccount as EvmSmartAccountModel } from "../../openapi-client/index.js";
2
+ import { EvmAccount, EvmSmartAccount } from "../types.js";
3
3
  /**
4
4
  * Options for converting a pre-existing EvmSmartAccount and owner to a EvmSmartAccount
5
5
  */
@@ -22,3 +22,4 @@ export type ToEvmSmartAccountOptions = {
22
22
  * @throws {Error} If the account is not an original owner of the smart account.
23
23
  */
24
24
  export declare function toEvmSmartAccount(options: ToEvmSmartAccountOptions): EvmSmartAccount;
25
+ //# sourceMappingURL=toEvmSmartAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEvmSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toEvmSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI1D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,wCAAwC;IACxC,YAAY,EAAE,oBAAoB,CAAC;IACnC,sCAAsC;IACtC,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,eAAe,CASpF"}
@@ -1,6 +1,6 @@
1
1
  import { SignableMessage, TransactionSerializable, TypedData, TypedDataDefinition } from "viem";
2
- import type { Hash, Hex, Address } from "../types/misc";
3
- import { Prettify } from "../types/utils";
2
+ import { Prettify } from "../types/utils.js";
3
+ import type { Hash, Hex, Address } from "../types/misc.js";
4
4
  /**
5
5
  * Base type for any Ethereum account with signing capabilities.
6
6
  * For example, this could be an EVM ServerAccount, or a viem LocalAccount.
@@ -43,3 +43,4 @@ export type EvmSmartAccount = {
43
43
  /** Identifier for the smart account type. */
44
44
  type: "evm-smart";
45
45
  };
46
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../accounts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,SAAS,EAAE,m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AE,CAAC;IACrB,6CAA6C;IAC7C,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -1,8 +1,7 @@
1
- import type { EvmSmartAccount } from "../../accounts/types";
2
- import { EvmUserOperationNetwork, EvmUserOperationStatus } from "../../openapi-client";
3
- import type { Address, Hex } from "../../types/misc";
4
- import type { Calls } from "../../types/calls";
5
- import { CdpOpenApiClientType } from "../../openapi-client";
1
+ import { EvmUserOperationNetwork, EvmUserOperationStatus, CdpOpenApiClientType } from "../../openapi-client/index.js";
2
+ import type { EvmSmartAccount } from "../../accounts/types.js";
3
+ import type { Calls } from "../../types/calls.js";
4
+ import type { Address, Hex } from "../../types/misc.js";
6
5
  /**
7
6
  * Options for sending a user operation.
8
7
  *
@@ -93,3 +92,4 @@ export type SendUserOperationReturnType = {
93
92
  * @returns {Promise<SendUserOperationReturnType>} The result of the user operation.
94
93
  */
95
94
  export declare function sendUserOperation<T extends readonly unknown[]>(client: CdpOpenApiClientType, smartAccount: EvmSmartAccount, options: SendUserOperationOptions<T>): Promise<SendUserOperationReturnType>;
95
+ //# sourceMappingURL=sendUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/evm/sendUserOperation.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI;IACnE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,6CAA6C;IAC7C,OAAO,EAAE,uBAAuB,CAAC;IACjC,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,uCAAuC;IACvC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,wCAAwC;IACxC,MAAM,EAAE,OAAO,sBAAsB,CAAC,SAAS,CAAC;IAChD,gIAAgI;IAChI,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAClE,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EAAE,eAAe,EAC7B,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,2BAA2B,CAAC,CAuDtC"}
@@ -1,6 +1,6 @@
1
- import type { Address, Hex } from "../../types/misc";
2
- import { WaitOptions } from "../../utils/wait";
3
- import { EvmUserOperationStatus, CdpOpenApiClientType } from "../../openapi-client";
1
+ import { EvmUserOperationStatus, CdpOpenApiClientType } from "../../openapi-client/index.js";
2
+ import { WaitOptions } from "../../utils/wait.js";
3
+ import type { Address, Hex } from "../../types/misc.js";
4
4
  /**
5
5
  * Options for waiting for a user operation.
6
6
  */
@@ -61,3 +61,4 @@ export type WaitForUserOperationReturnType = FailedOperation | CompletedOperatio
61
61
  * @returns {Promise<WaitForUserOperationReturnType>} The result of the user operation.
62
62
  */
63
63
  export declare function waitForUserOperation(client: CdpOpenApiClientType, options: WaitForUserOperationOptions): Promise<WaitForUserOperationReturnType>;
64
+ //# sourceMappingURL=waitForUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/evm/waitForUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAEtB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAQ,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,sCAAsC;IACtC,UAAU,EAAE,GAAG,CAAC;IAChB,wCAAwC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+CAA+C;IAC/C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,wCAAwC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,wCAAwC;IACxC,MAAM,EAAE,OAAO,sBAAsB,CAAC,MAAM,CAAC;IAC7C,gIAAgI;IAChI,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wCAAwC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,uEAAuE;IACvE,eAAe,EAAE,MAAM,CAAC;IACxB,wCAAwC;IACxC,MAAM,EAAE,OAAO,sBAAsB,CAAC,QAAQ,CAAC;IAC/C,gIAAgI;IAChI,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAElF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,8BAA8B,CAAC,CAgCzC"}
@@ -20,6 +20,21 @@ type ErrorEventData = {
20
20
  name: "error";
21
21
  };
22
22
  type EventData = ErrorEventData;
23
+ /**
24
+ * AnalyticsConfig singleton class for holding the API key ID
25
+ */
26
+ export declare class AnalyticsConfig {
27
+ /**
28
+ * The API key ID
29
+ */
30
+ static apiKeyId: string;
31
+ /**
32
+ * Sets the API key ID
33
+ *
34
+ * @param apiKeyId - The API key ID
35
+ */
36
+ static set(apiKeyId: string): void;
37
+ }
23
38
  /**
24
39
  * Sends an analytics event to the default endpoint
25
40
  *
@@ -28,3 +43,4 @@ type EventData = ErrorEventData;
28
43
  */
29
44
  export declare function sendEvent(event: EventData): Promise<void>;
30
45
  export {};
46
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../analytics.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,KAAK,cAAc,GAAG;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,KAAK,SAAS,GAAG,cAAc,CAAC;AAKhC;;GAEG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACH,OAAc,QAAQ,EAAE,MAAM,CAAC;IAE/B;;;;OAIG;WACW,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAG1C;AAED;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAuC/D"}
@@ -43,3 +43,4 @@ export declare class UndefinedWalletSecretError extends BaseError {
43
43
  constructor(message: string);
44
44
  }
45
45
  export {};
46
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../auth/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,SAAU,SAAQ,KAAK;IAC3B;;;;OAIG;gBACS,OAAO,EAAE,MAAM;CAO5B;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;IACrD;;;;OAIG;gBACS,OAAO,EAAE,MAAM;CAG5B;AAED;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,SAAS;IAC3D;;;;OAIG;gBACS,OAAO,EAAE,MAAM;CAG5B;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,SAAS;IACvD;;;;OAIG;gBACS,OAAO,EAAE,MAAM;CAG5B"}
@@ -0,0 +1,2 @@
1
+ export * from "./withAuth.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../auth/hooks/axios/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -35,3 +35,4 @@ export interface AuthInterceptorOptions {
35
35
  * @returns The modified request configuration with the Authorization header added
36
36
  */
37
37
  export declare function withAuth(axiosClient: AxiosInstance, options: AuthInterceptorOptions): AxiosInstance;
38
+ //# sourceMappingURL=withAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withAuth.d.ts","sourceRoot":"","sources":["../../../../auth/hooks/axios/withAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAIpD,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,sBAAsB,iBA0EnF"}
@@ -0,0 +1,5 @@
1
+ import * as axiosHooks from "./hooks/axios/index.js";
2
+ export * from "./utils/http.js";
3
+ export * from "./utils/jwt.js";
4
+ export { axiosHooks };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -58,3 +58,4 @@ export interface GetAuthHeadersOptions {
58
58
  * @returns Object containing the authentication headers
59
59
  */
60
60
  export declare function getAuthHeaders(options: GetAuthHeadersOptions): Promise<Record<string, string>>;
61
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../auth/utils/http.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAqCjC"}
@@ -0,0 +1,3 @@
1
+ export * from "./http.js";
2
+ export * from "./jwt.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../auth/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -86,3 +86,4 @@ export declare function generateJwt(options: JwtOptions): Promise<string>;
86
86
  * @throws {InvalidWalletSecretFormatError} If the private key is not in the correct format or signing fails.
87
87
  */
88
88
  export declare function generateWalletJwt(options: WalletJwtOptions): Promise<string>;
89
+ //# sourceMappingURL=jwt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt.d.ts","sourceRoot":"","sources":["../../../auth/utils/jwt.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDtE;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiClF"}
@@ -1,5 +1,5 @@
1
- import { EvmClient } from "./evm";
2
- import { SolanaClient } from "./solana";
1
+ import { EvmClient } from "./evm/evm.js";
2
+ import { SolanaClient } from "./solana/solana.js";
3
3
  interface CdpClientOptions {
4
4
  /** The API key ID. */
5
5
  apiKeyId?: string;
@@ -58,3 +58,4 @@ export declare class CdpClient {
58
58
  constructor(options?: CdpClientOptions);
59
59
  }
60
60
  export {};
61
+ //# sourceMappingURL=cdp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../client/cdp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,UAAU,gBAAgB;IACxB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB,4CAA4C;IACrC,GAAG,EAAE,SAAS,CAAC;IAEtB,+CAA+C;IACxC,MAAM,EAAE,YAAY,CAAC;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;gBACS,OAAO,GAAE,gBAAqB;CAmD3C"}