@andrewkimjoseph/celina-sdk 0.15.0 → 0.15.1

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 (359) hide show
  1. package/README.md +7 -5
  2. package/build/config/celina-tag.d.ts +7 -3
  3. package/build/config/celina-tag.js +7 -3
  4. package/build/config/celina-tag.js.map +1 -1
  5. package/package.json +3 -2
  6. package/build/src/a2a/agent-card.d.ts +0 -37
  7. package/build/src/a2a/agent-card.js +0 -46
  8. package/build/src/a2a/agent-card.js.map +0 -1
  9. package/build/src/a2a/index.d.ts +0 -2
  10. package/build/src/a2a/index.js +0 -3
  11. package/build/src/a2a/index.js.map +0 -1
  12. package/build/src/a2a/skills.d.ts +0 -18
  13. package/build/src/a2a/skills.js +0 -106
  14. package/build/src/a2a/skills.js.map +0 -1
  15. package/build/src/aa/create-aa-client.d.ts +0 -44
  16. package/build/src/aa/create-aa-client.js +0 -115
  17. package/build/src/aa/create-aa-client.js.map +0 -1
  18. package/build/src/aa/gas-sponsorship.d.ts +0 -27
  19. package/build/src/aa/gas-sponsorship.js +0 -65
  20. package/build/src/aa/gas-sponsorship.js.map +0 -1
  21. package/build/src/aa/index.d.ts +0 -4
  22. package/build/src/aa/index.js +0 -4
  23. package/build/src/aa/index.js.map +0 -1
  24. package/build/src/aa/prepared-calls.d.ts +0 -8
  25. package/build/src/aa/prepared-calls.js +0 -27
  26. package/build/src/aa/prepared-calls.js.map +0 -1
  27. package/build/src/aa/types.d.ts +0 -61
  28. package/build/src/aa/types.js +0 -2
  29. package/build/src/aa/types.js.map +0 -1
  30. package/build/src/abis/aave-pool.d.ts +0 -37
  31. package/build/src/abis/aave-pool.js +0 -26
  32. package/build/src/abis/aave-pool.js.map +0 -1
  33. package/build/src/abis/accounts.d.ts +0 -13
  34. package/build/src/abis/accounts.js +0 -10
  35. package/build/src/abis/accounts.js.map +0 -1
  36. package/build/src/abis/election.d.ts +0 -124
  37. package/build/src/abis/election.js +0 -88
  38. package/build/src/abis/election.js.map +0 -1
  39. package/build/src/abis/gooddollar-broker.d.ts +0 -77
  40. package/build/src/abis/gooddollar-broker.js +0 -44
  41. package/build/src/abis/gooddollar-broker.js.map +0 -1
  42. package/build/src/abis/gooddollar-identity.d.ts +0 -85
  43. package/build/src/abis/gooddollar-identity.js +0 -52
  44. package/build/src/abis/gooddollar-identity.js.map +0 -1
  45. package/build/src/abis/governance.d.ts +0 -86
  46. package/build/src/abis/governance.js +0 -68
  47. package/build/src/abis/governance.js.map +0 -1
  48. package/build/src/abis/locked-gold.d.ts +0 -10
  49. package/build/src/abis/locked-gold.js +0 -10
  50. package/build/src/abis/locked-gold.js.map +0 -1
  51. package/build/src/abis/nft.d.ts +0 -107
  52. package/build/src/abis/nft.js +0 -75
  53. package/build/src/abis/nft.js.map +0 -1
  54. package/build/src/abis/permit2.d.ts +0 -43
  55. package/build/src/abis/permit2.js +0 -30
  56. package/build/src/abis/permit2.js.map +0 -1
  57. package/build/src/abis/self-registry.d.ts +0 -194
  58. package/build/src/abis/self-registry.js +0 -120
  59. package/build/src/abis/self-registry.js.map +0 -1
  60. package/build/src/abis/ubi-scheme.d.ts +0 -91
  61. package/build/src/abis/ubi-scheme.js +0 -66
  62. package/build/src/abis/ubi-scheme.js.map +0 -1
  63. package/build/src/abis/uniswap-state-view.d.ts +0 -34
  64. package/build/src/abis/uniswap-state-view.js +0 -22
  65. package/build/src/abis/uniswap-state-view.js.map +0 -1
  66. package/build/src/abis/uniswap-v4-quoter.d.ts +0 -86
  67. package/build/src/abis/uniswap-v4-quoter.js +0 -64
  68. package/build/src/abis/uniswap-v4-quoter.js.map +0 -1
  69. package/build/src/abis/universal-router.d.ts +0 -16
  70. package/build/src/abis/universal-router.js +0 -14
  71. package/build/src/abis/universal-router.js.map +0 -1
  72. package/build/src/abis/validators-minimal.d.ts +0 -65
  73. package/build/src/abis/validators-minimal.js +0 -39
  74. package/build/src/abis/validators-minimal.js.map +0 -1
  75. package/build/src/analytics/amplitude.d.ts +0 -11
  76. package/build/src/analytics/amplitude.js +0 -76
  77. package/build/src/analytics/amplitude.js.map +0 -1
  78. package/build/src/analytics/config.d.ts +0 -7
  79. package/build/src/analytics/config.js +0 -25
  80. package/build/src/analytics/config.js.map +0 -1
  81. package/build/src/analytics/consumer-package.d.ts +0 -9
  82. package/build/src/analytics/consumer-package.js +0 -143
  83. package/build/src/analytics/consumer-package.js.map +0 -1
  84. package/build/src/analytics/mcp-tool-events.d.ts +0 -5
  85. package/build/src/analytics/mcp-tool-events.js +0 -53
  86. package/build/src/analytics/mcp-tool-events.js.map +0 -1
  87. package/build/src/analytics/wallet-context.d.ts +0 -11
  88. package/build/src/analytics/wallet-context.js +0 -81
  89. package/build/src/analytics/wallet-context.js.map +0 -1
  90. package/build/src/analytics/wallet-extract.d.ts +0 -9
  91. package/build/src/analytics/wallet-extract.js +0 -21
  92. package/build/src/analytics/wallet-extract.js.map +0 -1
  93. package/build/src/analytics/wrap-service.d.ts +0 -5
  94. package/build/src/analytics/wrap-service.js +0 -38
  95. package/build/src/analytics/wrap-service.js.map +0 -1
  96. package/build/src/clients/celo-client.d.ts +0 -19
  97. package/build/src/clients/celo-client.js +0 -32
  98. package/build/src/clients/celo-client.js.map +0 -1
  99. package/build/src/clients/ens-client.d.ts +0 -17
  100. package/build/src/clients/ens-client.js +0 -30
  101. package/build/src/clients/ens-client.js.map +0 -1
  102. package/build/src/clients/mento-sdk.d.ts +0 -2
  103. package/build/src/clients/mento-sdk.js +0 -9
  104. package/build/src/clients/mento-sdk.js.map +0 -1
  105. package/build/src/clients/self-api.d.ts +0 -82
  106. package/build/src/clients/self-api.js +0 -242
  107. package/build/src/clients/self-api.js.map +0 -1
  108. package/build/src/clients/uniswap-sdk.d.ts +0 -4
  109. package/build/src/clients/uniswap-sdk.js +0 -13
  110. package/build/src/clients/uniswap-sdk.js.map +0 -1
  111. package/build/src/config/aave.d.ts +0 -17
  112. package/build/src/config/aave.js +0 -77
  113. package/build/src/config/aave.js.map +0 -1
  114. package/build/src/config/celina-tag.d.ts +0 -46
  115. package/build/src/config/celina-tag.js +0 -166
  116. package/build/src/config/celina-tag.js.map +0 -1
  117. package/build/src/config/celo-core-contracts.d.ts +0 -8
  118. package/build/src/config/celo-core-contracts.js +0 -9
  119. package/build/src/config/celo-core-contracts.js.map +0 -1
  120. package/build/src/config/chains.d.ts +0 -937
  121. package/build/src/config/chains.js +0 -319
  122. package/build/src/config/chains.js.map +0 -1
  123. package/build/src/config/gooddollar.d.ts +0 -16
  124. package/build/src/config/gooddollar.js +0 -24
  125. package/build/src/config/gooddollar.js.map +0 -1
  126. package/build/src/config/sdk-config.d.ts +0 -44
  127. package/build/src/config/sdk-config.js +0 -28
  128. package/build/src/config/sdk-config.js.map +0 -1
  129. package/build/src/config/self.d.ts +0 -22
  130. package/build/src/config/self.js +0 -27
  131. package/build/src/config/self.js.map +0 -1
  132. package/build/src/config/uniswap.d.ts +0 -42
  133. package/build/src/config/uniswap.js +0 -76
  134. package/build/src/config/uniswap.js.map +0 -1
  135. package/build/src/index.d.ts +0 -127
  136. package/build/src/index.js +0 -72
  137. package/build/src/index.js.map +0 -1
  138. package/build/src/oasf/index.d.ts +0 -2
  139. package/build/src/oasf/index.js +0 -3
  140. package/build/src/oasf/index.js.map +0 -1
  141. package/build/src/oasf/record.d.ts +0 -39
  142. package/build/src/oasf/record.js +0 -35
  143. package/build/src/oasf/record.js.map +0 -1
  144. package/build/src/oasf/taxonomy.d.ts +0 -19
  145. package/build/src/oasf/taxonomy.js +0 -46
  146. package/build/src/oasf/taxonomy.js.map +0 -1
  147. package/build/src/services/aave.service.d.ts +0 -59
  148. package/build/src/services/aave.service.js +0 -210
  149. package/build/src/services/aave.service.js.map +0 -1
  150. package/build/src/services/account.service.d.ts +0 -22
  151. package/build/src/services/account.service.js +0 -29
  152. package/build/src/services/account.service.js.map +0 -1
  153. package/build/src/services/agentkarma.service.d.ts +0 -89
  154. package/build/src/services/agentkarma.service.js +0 -102
  155. package/build/src/services/agentkarma.service.js.map +0 -1
  156. package/build/src/services/blockchain.service.d.ts +0 -126
  157. package/build/src/services/blockchain.service.js +0 -188
  158. package/build/src/services/blockchain.service.js.map +0 -1
  159. package/build/src/services/contract.service.d.ts +0 -78
  160. package/build/src/services/contract.service.js +0 -117
  161. package/build/src/services/contract.service.js.map +0 -1
  162. package/build/src/services/ens.service.d.ts +0 -44
  163. package/build/src/services/ens.service.js +0 -92
  164. package/build/src/services/ens.service.js.map +0 -1
  165. package/build/src/services/gooddollar.service.d.ts +0 -184
  166. package/build/src/services/gooddollar.service.js +0 -675
  167. package/build/src/services/gooddollar.service.js.map +0 -1
  168. package/build/src/services/governance.service.d.ts +0 -96
  169. package/build/src/services/governance.service.js +0 -255
  170. package/build/src/services/governance.service.js.map +0 -1
  171. package/build/src/services/mento-fx.service.d.ts +0 -81
  172. package/build/src/services/mento-fx.service.js +0 -318
  173. package/build/src/services/mento-fx.service.js.map +0 -1
  174. package/build/src/services/nft.service.d.ts +0 -58
  175. package/build/src/services/nft.service.js +0 -222
  176. package/build/src/services/nft.service.js.map +0 -1
  177. package/build/src/services/self-session-store.d.ts +0 -19
  178. package/build/src/services/self-session-store.js +0 -28
  179. package/build/src/services/self-session-store.js.map +0 -1
  180. package/build/src/services/self.service.d.ts +0 -241
  181. package/build/src/services/self.service.js +0 -699
  182. package/build/src/services/self.service.js.map +0 -1
  183. package/build/src/services/staking.service.d.ts +0 -140
  184. package/build/src/services/staking.service.js +0 -444
  185. package/build/src/services/staking.service.js.map +0 -1
  186. package/build/src/services/token.service.d.ts +0 -110
  187. package/build/src/services/token.service.js +0 -189
  188. package/build/src/services/token.service.js.map +0 -1
  189. package/build/src/services/transaction.service.d.ts +0 -69
  190. package/build/src/services/transaction.service.js +0 -197
  191. package/build/src/services/transaction.service.js.map +0 -1
  192. package/build/src/services/uniswap-path-router.d.ts +0 -40
  193. package/build/src/services/uniswap-path-router.js +0 -168
  194. package/build/src/services/uniswap-path-router.js.map +0 -1
  195. package/build/src/services/uniswap-pool-discovery.d.ts +0 -55
  196. package/build/src/services/uniswap-pool-discovery.js +0 -198
  197. package/build/src/services/uniswap-pool-discovery.js.map +0 -1
  198. package/build/src/services/uniswap.service.d.ts +0 -83
  199. package/build/src/services/uniswap.service.js +0 -352
  200. package/build/src/services/uniswap.service.js.map +0 -1
  201. package/build/src/simulation/index.d.ts +0 -5
  202. package/build/src/simulation/index.js +0 -2
  203. package/build/src/simulation/index.js.map +0 -1
  204. package/build/src/simulation/simulate-prepared-step.d.ts +0 -17
  205. package/build/src/simulation/simulate-prepared-step.js +0 -42
  206. package/build/src/simulation/simulate-prepared-step.js.map +0 -1
  207. package/build/src/tools/catalog.d.ts +0 -11
  208. package/build/src/tools/catalog.js +0 -43
  209. package/build/src/tools/catalog.js.map +0 -1
  210. package/build/src/tools/domains/aave.d.ts +0 -2
  211. package/build/src/tools/domains/aave.js +0 -115
  212. package/build/src/tools/domains/aave.js.map +0 -1
  213. package/build/src/tools/domains/agentkarma.d.ts +0 -2
  214. package/build/src/tools/domains/agentkarma.js +0 -92
  215. package/build/src/tools/domains/agentkarma.js.map +0 -1
  216. package/build/src/tools/domains/blockchain.d.ts +0 -2
  217. package/build/src/tools/domains/blockchain.js +0 -122
  218. package/build/src/tools/domains/blockchain.js.map +0 -1
  219. package/build/src/tools/domains/browser.d.ts +0 -2
  220. package/build/src/tools/domains/browser.js +0 -45
  221. package/build/src/tools/domains/browser.js.map +0 -1
  222. package/build/src/tools/domains/contract.d.ts +0 -2
  223. package/build/src/tools/domains/contract.js +0 -67
  224. package/build/src/tools/domains/contract.js.map +0 -1
  225. package/build/src/tools/domains/ens.d.ts +0 -2
  226. package/build/src/tools/domains/ens.js +0 -16
  227. package/build/src/tools/domains/ens.js.map +0 -1
  228. package/build/src/tools/domains/gooddollar.d.ts +0 -2
  229. package/build/src/tools/domains/gooddollar.js +0 -171
  230. package/build/src/tools/domains/gooddollar.js.map +0 -1
  231. package/build/src/tools/domains/governance.d.ts +0 -2
  232. package/build/src/tools/domains/governance.js +0 -41
  233. package/build/src/tools/domains/governance.js.map +0 -1
  234. package/build/src/tools/domains/index.d.ts +0 -1
  235. package/build/src/tools/domains/index.js +0 -33
  236. package/build/src/tools/domains/index.js.map +0 -1
  237. package/build/src/tools/domains/mento-fx.d.ts +0 -2
  238. package/build/src/tools/domains/mento-fx.js +0 -67
  239. package/build/src/tools/domains/mento-fx.js.map +0 -1
  240. package/build/src/tools/domains/nft.d.ts +0 -2
  241. package/build/src/tools/domains/nft.js +0 -38
  242. package/build/src/tools/domains/nft.js.map +0 -1
  243. package/build/src/tools/domains/self.d.ts +0 -2
  244. package/build/src/tools/domains/self.js +0 -187
  245. package/build/src/tools/domains/self.js.map +0 -1
  246. package/build/src/tools/domains/staking.d.ts +0 -2
  247. package/build/src/tools/domains/staking.js +0 -74
  248. package/build/src/tools/domains/staking.js.map +0 -1
  249. package/build/src/tools/domains/token.d.ts +0 -2
  250. package/build/src/tools/domains/token.js +0 -74
  251. package/build/src/tools/domains/token.js.map +0 -1
  252. package/build/src/tools/domains/transaction.d.ts +0 -2
  253. package/build/src/tools/domains/transaction.js +0 -120
  254. package/build/src/tools/domains/transaction.js.map +0 -1
  255. package/build/src/tools/domains/uniswap.d.ts +0 -2
  256. package/build/src/tools/domains/uniswap.js +0 -67
  257. package/build/src/tools/domains/uniswap.js.map +0 -1
  258. package/build/src/tools/filter.d.ts +0 -2
  259. package/build/src/tools/filter.js +0 -50
  260. package/build/src/tools/filter.js.map +0 -1
  261. package/build/src/tools/index.d.ts +0 -7
  262. package/build/src/tools/index.js +0 -7
  263. package/build/src/tools/index.js.map +0 -1
  264. package/build/src/tools/schemas/common.d.ts +0 -165
  265. package/build/src/tools/schemas/common.js +0 -207
  266. package/build/src/tools/schemas/common.js.map +0 -1
  267. package/build/src/tools/schemas/wallet-params.d.ts +0 -9
  268. package/build/src/tools/schemas/wallet-params.js +0 -52
  269. package/build/src/tools/schemas/wallet-params.js.map +0 -1
  270. package/build/src/tools/swap-routing.d.ts +0 -25
  271. package/build/src/tools/swap-routing.js +0 -174
  272. package/build/src/tools/swap-routing.js.map +0 -1
  273. package/build/src/tools/types.d.ts +0 -124
  274. package/build/src/tools/types.js +0 -2
  275. package/build/src/tools/types.js.map +0 -1
  276. package/build/src/tools/utils/normalize-token.d.ts +0 -2
  277. package/build/src/tools/utils/normalize-token.js +0 -12
  278. package/build/src/tools/utils/normalize-token.js.map +0 -1
  279. package/build/src/tools/utils/wallet.d.ts +0 -4
  280. package/build/src/tools/utils/wallet.js +0 -8
  281. package/build/src/tools/utils/wallet.js.map +0 -1
  282. package/build/src/tools/website-sync.d.ts +0 -28
  283. package/build/src/tools/website-sync.js +0 -198
  284. package/build/src/tools/website-sync.js.map +0 -1
  285. package/build/src/types/prepared.d.ts +0 -43
  286. package/build/src/types/prepared.js +0 -15
  287. package/build/src/types/prepared.js.map +0 -1
  288. package/build/src/utils/celo-format.d.ts +0 -6
  289. package/build/src/utils/celo-format.js +0 -17
  290. package/build/src/utils/celo-format.js.map +0 -1
  291. package/build/src/utils/erc20-allowance-storage.d.ts +0 -20
  292. package/build/src/utils/erc20-allowance-storage.js +0 -64
  293. package/build/src/utils/erc20-allowance-storage.js.map +0 -1
  294. package/build/src/utils/format-date.d.ts +0 -2
  295. package/build/src/utils/format-date.js +0 -13
  296. package/build/src/utils/format-date.js.map +0 -1
  297. package/build/src/utils/format-duration.d.ts +0 -2
  298. package/build/src/utils/format-duration.js +0 -17
  299. package/build/src/utils/format-duration.js.map +0 -1
  300. package/build/src/utils/format-unix-datetime.d.ts +0 -4
  301. package/build/src/utils/format-unix-datetime.js +0 -18
  302. package/build/src/utils/format-unix-datetime.js.map +0 -1
  303. package/build/src/utils/gooddollar-ubi-period.d.ts +0 -23
  304. package/build/src/utils/gooddollar-ubi-period.js +0 -23
  305. package/build/src/utils/gooddollar-ubi-period.js.map +0 -1
  306. package/build/src/utils/normalize-address.d.ts +0 -7
  307. package/build/src/utils/normalize-address.js +0 -16
  308. package/build/src/utils/normalize-address.js.map +0 -1
  309. package/build/src/utils/self-format.d.ts +0 -28
  310. package/build/src/utils/self-format.js +0 -79
  311. package/build/src/utils/self-format.js.map +0 -1
  312. package/build/src/utils/self-signing.d.ts +0 -4
  313. package/build/src/utils/self-signing.js +0 -38
  314. package/build/src/utils/self-signing.js.map +0 -1
  315. package/build/src/utils/transaction-errors.d.ts +0 -3
  316. package/build/src/utils/transaction-errors.js +0 -17
  317. package/build/src/utils/transaction-errors.js.map +0 -1
  318. package/build/tests/catalog/domains/blockchain.d.ts +0 -2
  319. package/build/tests/catalog/domains/blockchain.js +0 -127
  320. package/build/tests/catalog/domains/blockchain.js.map +0 -1
  321. package/build/tests/catalog/domains/chain-ext.d.ts +0 -5
  322. package/build/tests/catalog/domains/chain-ext.js +0 -207
  323. package/build/tests/catalog/domains/chain-ext.js.map +0 -1
  324. package/build/tests/catalog/domains/defi.d.ts +0 -6
  325. package/build/tests/catalog/domains/defi.js +0 -581
  326. package/build/tests/catalog/domains/defi.js.map +0 -1
  327. package/build/tests/catalog/domains/self.d.ts +0 -2
  328. package/build/tests/catalog/domains/self.js +0 -208
  329. package/build/tests/catalog/domains/self.js.map +0 -1
  330. package/build/tests/catalog/domains/token.d.ts +0 -2
  331. package/build/tests/catalog/domains/token.js +0 -70
  332. package/build/tests/catalog/domains/token.js.map +0 -1
  333. package/build/tests/catalog/domains/transaction.d.ts +0 -2
  334. package/build/tests/catalog/domains/transaction.js +0 -96
  335. package/build/tests/catalog/domains/transaction.js.map +0 -1
  336. package/build/tests/catalog/index.d.ts +0 -2
  337. package/build/tests/catalog/index.js +0 -2
  338. package/build/tests/catalog/index.js.map +0 -1
  339. package/build/tests/catalog/operations.d.ts +0 -12
  340. package/build/tests/catalog/operations.js +0 -29
  341. package/build/tests/catalog/operations.js.map +0 -1
  342. package/build/tests/catalog/types.d.ts +0 -24
  343. package/build/tests/catalog/types.js +0 -2
  344. package/build/tests/catalog/types.js.map +0 -1
  345. package/build/tests/fixtures/mainnet.d.ts +0 -54
  346. package/build/tests/fixtures/mainnet.js +0 -53
  347. package/build/tests/fixtures/mainnet.js.map +0 -1
  348. package/build/tests/helpers/assert.d.ts +0 -4
  349. package/build/tests/helpers/assert.js +0 -24
  350. package/build/tests/helpers/assert.js.map +0 -1
  351. package/build/tests/helpers/env.d.ts +0 -12
  352. package/build/tests/helpers/env.js +0 -29
  353. package/build/tests/helpers/env.js.map +0 -1
  354. package/build/tests/helpers/gating.d.ts +0 -3
  355. package/build/tests/helpers/gating.js +0 -23
  356. package/build/tests/helpers/gating.js.map +0 -1
  357. package/build/tests/testing-entry.d.ts +0 -6
  358. package/build/tests/testing-entry.js +0 -6
  359. package/build/tests/testing-entry.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"gas-sponsorship.js","sourceRoot":"","sources":["../../../src/aa/gas-sponsorship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAK5C;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IACvB,QAAQ,CAA2B;IAC3B,MAAM,CAAuB;IAC7B,OAAO,CAAS;IACzB,aAAa,GAAyB,IAAI,CAAC;IAEnD,YAAY,MAA4B,EAAE,UAAkB,KAAK,CAAC,EAAE;QAClE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YAClC,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC;YAC1C,IAAI,CAAC,GAAG,EAAE,CAAC;gBACT,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,8EAA8E;IAC9E,SAAS,CAAC,UAAkB,IAAI,CAAC,OAAO;QACtC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjD,OAAO,6BAA6B,OAAO,eAAe,MAAM,EAAE,CAAC;QACrE,CAAC;QACD,MAAM,WAAW,GAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,yCAAyC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,6DAA6D;IAC7D,sBAAsB;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAChC,CAAC;IAED,gEAAgE;IAChE,kBAAkB;QAChB,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,WAAW,GAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YAChD,MAAM,IAAI,KAAK,CAAC,yCAAyC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAClF,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG,mBAAmB,CAAC;gBACvC,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE;gBACxC,UAAU,EAAE;oBACV,OAAO,EAAE,mBAAmB;oBAC5B,OAAO,EAAE,KAAK;iBACf;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,0CAA0C;IAC1C,KAAK,CAAC,kBAAkB;QAItB,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC,wBAAwB,EAAE,CAAC;YAC1E,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QACD,MAAM,WAAW,GAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,yCAAyC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- export { createAAClient, deriveSmartAccountAddress, type AAClient } from "./create-aa-client.js";
2
- export { GasSponsorshipService } from "./gas-sponsorship.js";
3
- export { preparedStepsToUserOpCalls } from "./prepared-calls.js";
4
- export type { CreateAAClientOptions, GasSponsorshipConfig, GasSponsorshipProviderId, PimlicoGasSponsorshipConfig, SendPreparedFlowMode, SendPreparedFlowOptions, SendPreparedFlowResult, UserOpCall, } from "./types.js";
@@ -1,4 +0,0 @@
1
- export { createAAClient, deriveSmartAccountAddress } from "./create-aa-client.js";
2
- export { GasSponsorshipService } from "./gas-sponsorship.js";
3
- export { preparedStepsToUserOpCalls } from "./prepared-calls.js";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aa/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,yBAAyB,EAAiB,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { PreparedTx } from "../types/prepared.js";
2
- import type { UserOpCall } from "./types.js";
3
- /**
4
- * Map Celina prepared steps to smart-account `calls`.
5
- * When `attributionTags` is provided, each step's `data` is dual-tagged
6
- * via {@link appendCelinaCalldataTag}; otherwise `data` is preserved as-is.
7
- */
8
- export declare function preparedStepsToUserOpCalls(steps: PreparedTx[], attributionTags?: string[]): UserOpCall[];
@@ -1,27 +0,0 @@
1
- import { appendCelinaCalldataTag } from "../config/celina-tag.js";
2
- /**
3
- * Map Celina prepared steps to smart-account `calls`.
4
- * When `attributionTags` is provided, each step's `data` is dual-tagged
5
- * via {@link appendCelinaCalldataTag}; otherwise `data` is preserved as-is.
6
- */
7
- export function preparedStepsToUserOpCalls(steps, attributionTags) {
8
- if (!steps.length) {
9
- throw new Error("prepared flow has no steps");
10
- }
11
- const shouldTag = attributionTags !== undefined;
12
- return steps.map((step) => {
13
- const value = step.value !== undefined && step.value !== ""
14
- ? BigInt(step.value)
15
- : undefined;
16
- let data = step.data;
17
- if (shouldTag && data !== undefined) {
18
- data = appendCelinaCalldataTag(data, attributionTags);
19
- }
20
- return {
21
- to: step.to,
22
- ...(data !== undefined ? { data } : {}),
23
- ...(value !== undefined && value > 0n ? { value } : {}),
24
- };
25
- });
26
- }
27
- //# sourceMappingURL=prepared-calls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prepared-calls.js","sourceRoot":"","sources":["../../../src/aa/prepared-calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIlE;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAmB,EACnB,eAA0B;IAE1B,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IACD,MAAM,SAAS,GAAG,eAAe,KAAK,SAAS,CAAC;IAChD,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,MAAM,KAAK,GACT,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE;YAC3C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YACpB,CAAC,CAAC,SAAS,CAAC;QAChB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACrB,IAAI,SAAS,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,GAAG,uBAAuB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACxD,CAAC;QACD,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,61 +0,0 @@
1
- import type { Hex, PrivateKeyAccount, PublicClient } from "viem";
2
- /** Supported gas sponsorship backends. Extends with new union members over time. */
3
- export type GasSponsorshipProviderId = "pimlico";
4
- /** Pimlico-specific credentials (app-owned; never stored by Celina). */
5
- export type PimlicoGasSponsorshipConfig = {
6
- /** App-owned Pimlico API key. */
7
- apiKey: string;
8
- };
9
- /**
10
- * Explicit gas sponsorship config for {@link createAAClient}.
11
- * Discriminant `provider` selects which nested object is required.
12
- */
13
- export type GasSponsorshipConfig = {
14
- provider: "pimlico";
15
- pimlico: PimlicoGasSponsorshipConfig;
16
- };
17
- /**
18
- * Options for {@link createAAClient}.
19
- *
20
- * Set `attributionTags` here for hand-built prepared steps (tagged at `sendPreparedFlow`).
21
- * For `prepare*` flows, you can set the same tags on `createCelinaClient` instead —
22
- * use one consistent list per send path so suffixes do not stack with mismatched tags.
23
- */
24
- export type CreateAAClientOptions = {
25
- /** EOA owner of the Simple Smart Account (account or private key hex). */
26
- owner: PrivateKeyAccount | Hex;
27
- /** Explicit sponsorship provider + credentials. */
28
- gasSponsorship: GasSponsorshipConfig;
29
- /** Optional Celo public client; defaults to Forno mainnet. */
30
- publicClient?: PublicClient;
31
- /**
32
- * Optional custom tags applied via `appendCelinaCalldataTag` on each step's `data`
33
- * in `sendPreparedFlow` (legacy `CELINA|…` + ERC-8021). When omitted, step data
34
- * is passed through unchanged.
35
- */
36
- attributionTags?: string[];
37
- };
38
- /** How to map prepared transactions (`prepare*` output / ordered `steps`) into UserOperations. */
39
- export type SendPreparedFlowMode = "batch" | "sequential";
40
- export type SendPreparedFlowOptions = {
41
- /**
42
- * How to submit the prepared transactions (`steps`).
43
- * `batch` (default): all steps in one UserOp.
44
- * `sequential`: one UserOp per step.
45
- */
46
- mode?: SendPreparedFlowMode;
47
- };
48
- export type UserOpCall = {
49
- to: `0x${string}`;
50
- data?: `0x${string}`;
51
- value?: bigint;
52
- };
53
- /** Result of submitting prepared transactions as sponsored UserOp(s). */
54
- export type SendPreparedFlowResult = {
55
- mode: SendPreparedFlowMode;
56
- /** UserOperation hash(es) submitted to the bundler. */
57
- userOpHashes: `0x${string}`[];
58
- /** Transaction hash(es) from UserOp receipt(s). */
59
- transactionHashes: `0x${string}`[];
60
- success: boolean;
61
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/aa/types.ts"],"names":[],"mappings":""}
@@ -1,37 +0,0 @@
1
- export declare const aavePoolAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "supply";
4
- readonly inputs: readonly [{
5
- readonly name: "asset";
6
- readonly type: "address";
7
- }, {
8
- readonly name: "amount";
9
- readonly type: "uint256";
10
- }, {
11
- readonly name: "onBehalfOf";
12
- readonly type: "address";
13
- }, {
14
- readonly name: "referralCode";
15
- readonly type: "uint16";
16
- }];
17
- readonly outputs: readonly [];
18
- readonly stateMutability: "nonpayable";
19
- }, {
20
- readonly type: "function";
21
- readonly name: "withdraw";
22
- readonly inputs: readonly [{
23
- readonly name: "asset";
24
- readonly type: "address";
25
- }, {
26
- readonly name: "amount";
27
- readonly type: "uint256";
28
- }, {
29
- readonly name: "to";
30
- readonly type: "address";
31
- }];
32
- readonly outputs: readonly [{
33
- readonly name: "";
34
- readonly type: "uint256";
35
- }];
36
- readonly stateMutability: "nonpayable";
37
- }];
@@ -1,26 +0,0 @@
1
- export const aavePoolAbi = [
2
- {
3
- type: "function",
4
- name: "supply",
5
- inputs: [
6
- { name: "asset", type: "address" },
7
- { name: "amount", type: "uint256" },
8
- { name: "onBehalfOf", type: "address" },
9
- { name: "referralCode", type: "uint16" },
10
- ],
11
- outputs: [],
12
- stateMutability: "nonpayable",
13
- },
14
- {
15
- type: "function",
16
- name: "withdraw",
17
- inputs: [
18
- { name: "asset", type: "address" },
19
- { name: "amount", type: "uint256" },
20
- { name: "to", type: "address" },
21
- ],
22
- outputs: [{ name: "", type: "uint256" }],
23
- stateMutability: "nonpayable",
24
- },
25
- ];
26
- //# sourceMappingURL=aave-pool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aave-pool.js","sourceRoot":"","sources":["../../../src/abis/aave-pool.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzC;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAC9B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;SAChC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxC,eAAe,EAAE,YAAY;KAC9B;CACO,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const accountsAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "getName";
4
- readonly inputs: readonly [{
5
- readonly name: "account";
6
- readonly type: "address";
7
- }];
8
- readonly outputs: readonly [{
9
- readonly name: "";
10
- readonly type: "string";
11
- }];
12
- readonly stateMutability: "view";
13
- }];
@@ -1,10 +0,0 @@
1
- export const accountsAbi = [
2
- {
3
- type: "function",
4
- name: "getName",
5
- inputs: [{ name: "account", type: "address" }],
6
- outputs: [{ name: "", type: "string" }],
7
- stateMutability: "view",
8
- },
9
- ];
10
- //# sourceMappingURL=accounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/abis/accounts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACvC,eAAe,EAAE,MAAM;KACxB;CACO,CAAC"}
@@ -1,124 +0,0 @@
1
- export declare const electionAbi: readonly [{
2
- readonly type: "function";
3
- readonly name: "getGroupsVotedForByAccount";
4
- readonly inputs: readonly [{
5
- readonly name: "account";
6
- readonly type: "address";
7
- }];
8
- readonly outputs: readonly [{
9
- readonly name: "";
10
- readonly type: "address[]";
11
- }];
12
- readonly stateMutability: "view";
13
- }, {
14
- readonly type: "function";
15
- readonly name: "getPendingVotesForGroupByAccount";
16
- readonly inputs: readonly [{
17
- readonly name: "group";
18
- readonly type: "address";
19
- }, {
20
- readonly name: "account";
21
- readonly type: "address";
22
- }];
23
- readonly outputs: readonly [{
24
- readonly name: "";
25
- readonly type: "uint256";
26
- }];
27
- readonly stateMutability: "view";
28
- }, {
29
- readonly type: "function";
30
- readonly name: "getActiveVotesForGroupByAccount";
31
- readonly inputs: readonly [{
32
- readonly name: "group";
33
- readonly type: "address";
34
- }, {
35
- readonly name: "account";
36
- readonly type: "address";
37
- }];
38
- readonly outputs: readonly [{
39
- readonly name: "";
40
- readonly type: "uint256";
41
- }];
42
- readonly stateMutability: "view";
43
- }, {
44
- readonly type: "function";
45
- readonly name: "hasActivatablePendingVotes";
46
- readonly inputs: readonly [{
47
- readonly name: "account";
48
- readonly type: "address";
49
- }, {
50
- readonly name: "group";
51
- readonly type: "address";
52
- }];
53
- readonly outputs: readonly [{
54
- readonly name: "";
55
- readonly type: "bool";
56
- }];
57
- readonly stateMutability: "view";
58
- }, {
59
- readonly type: "function";
60
- readonly name: "getEligibleValidatorGroups";
61
- readonly inputs: readonly [];
62
- readonly outputs: readonly [{
63
- readonly name: "";
64
- readonly type: "address[]";
65
- }];
66
- readonly stateMutability: "view";
67
- }, {
68
- readonly type: "function";
69
- readonly name: "getActiveVotesForGroup";
70
- readonly inputs: readonly [{
71
- readonly name: "group";
72
- readonly type: "address";
73
- }];
74
- readonly outputs: readonly [{
75
- readonly name: "";
76
- readonly type: "uint256";
77
- }];
78
- readonly stateMutability: "view";
79
- }, {
80
- readonly type: "function";
81
- readonly name: "getTotalVotesForEligibleValidatorGroups";
82
- readonly inputs: readonly [];
83
- readonly outputs: readonly [{
84
- readonly name: "groups";
85
- readonly type: "address[]";
86
- }, {
87
- readonly name: "votes";
88
- readonly type: "uint256[]";
89
- }];
90
- readonly stateMutability: "view";
91
- }, {
92
- readonly type: "function";
93
- readonly name: "getTotalVotes";
94
- readonly inputs: readonly [];
95
- readonly outputs: readonly [{
96
- readonly name: "";
97
- readonly type: "uint256";
98
- }];
99
- readonly stateMutability: "view";
100
- }, {
101
- readonly type: "function";
102
- readonly name: "getElectableValidators";
103
- readonly inputs: readonly [];
104
- readonly outputs: readonly [{
105
- readonly name: "min";
106
- readonly type: "uint256";
107
- }, {
108
- readonly name: "max";
109
- readonly type: "uint256";
110
- }];
111
- readonly stateMutability: "view";
112
- }, {
113
- readonly type: "function";
114
- readonly name: "canReceiveVotes";
115
- readonly inputs: readonly [{
116
- readonly name: "group";
117
- readonly type: "address";
118
- }];
119
- readonly outputs: readonly [{
120
- readonly name: "";
121
- readonly type: "uint256";
122
- }];
123
- readonly stateMutability: "view";
124
- }];
@@ -1,88 +0,0 @@
1
- export const electionAbi = [
2
- {
3
- type: "function",
4
- name: "getGroupsVotedForByAccount",
5
- inputs: [{ name: "account", type: "address" }],
6
- outputs: [{ name: "", type: "address[]" }],
7
- stateMutability: "view",
8
- },
9
- {
10
- type: "function",
11
- name: "getPendingVotesForGroupByAccount",
12
- inputs: [
13
- { name: "group", type: "address" },
14
- { name: "account", type: "address" },
15
- ],
16
- outputs: [{ name: "", type: "uint256" }],
17
- stateMutability: "view",
18
- },
19
- {
20
- type: "function",
21
- name: "getActiveVotesForGroupByAccount",
22
- inputs: [
23
- { name: "group", type: "address" },
24
- { name: "account", type: "address" },
25
- ],
26
- outputs: [{ name: "", type: "uint256" }],
27
- stateMutability: "view",
28
- },
29
- {
30
- type: "function",
31
- name: "hasActivatablePendingVotes",
32
- inputs: [
33
- { name: "account", type: "address" },
34
- { name: "group", type: "address" },
35
- ],
36
- outputs: [{ name: "", type: "bool" }],
37
- stateMutability: "view",
38
- },
39
- {
40
- type: "function",
41
- name: "getEligibleValidatorGroups",
42
- inputs: [],
43
- outputs: [{ name: "", type: "address[]" }],
44
- stateMutability: "view",
45
- },
46
- {
47
- type: "function",
48
- name: "getActiveVotesForGroup",
49
- inputs: [{ name: "group", type: "address" }],
50
- outputs: [{ name: "", type: "uint256" }],
51
- stateMutability: "view",
52
- },
53
- {
54
- type: "function",
55
- name: "getTotalVotesForEligibleValidatorGroups",
56
- inputs: [],
57
- outputs: [
58
- { name: "groups", type: "address[]" },
59
- { name: "votes", type: "uint256[]" },
60
- ],
61
- stateMutability: "view",
62
- },
63
- {
64
- type: "function",
65
- name: "getTotalVotes",
66
- inputs: [],
67
- outputs: [{ name: "", type: "uint256" }],
68
- stateMutability: "view",
69
- },
70
- {
71
- type: "function",
72
- name: "getElectableValidators",
73
- inputs: [],
74
- outputs: [
75
- { name: "min", type: "uint256" },
76
- { name: "max", type: "uint256" },
77
- ],
78
- stateMutability: "view",
79
- },
80
- {
81
- type: "function",
82
- name: "canReceiveVotes",
83
- inputs: [{ name: "group", type: "address" }],
84
- outputs: [{ name: "", type: "uint256" }],
85
- stateMutability: "view",
86
- },
87
- ];
88
- //# sourceMappingURL=election.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"election.js","sourceRoot":"","sources":["../../../src/abis/election.ts"],"names":[],"mappings":"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"}
@@ -1,77 +0,0 @@
1
- /** GoodDollar MentoBroker on Celo — reserve swap quotes and execution. */
2
- export declare const goodDollarBrokerAbi: readonly [{
3
- readonly type: "function";
4
- readonly name: "getAmountOut";
5
- readonly inputs: readonly [{
6
- readonly name: "exchangeProvider";
7
- readonly type: "address";
8
- }, {
9
- readonly name: "exchangeId";
10
- readonly type: "bytes32";
11
- }, {
12
- readonly name: "tokenIn";
13
- readonly type: "address";
14
- }, {
15
- readonly name: "tokenOut";
16
- readonly type: "address";
17
- }, {
18
- readonly name: "amountIn";
19
- readonly type: "uint256";
20
- }];
21
- readonly outputs: readonly [{
22
- readonly name: "";
23
- readonly type: "uint256";
24
- }];
25
- readonly stateMutability: "view";
26
- }, {
27
- readonly type: "function";
28
- readonly name: "getAmountIn";
29
- readonly inputs: readonly [{
30
- readonly name: "exchangeProvider";
31
- readonly type: "address";
32
- }, {
33
- readonly name: "exchangeId";
34
- readonly type: "bytes32";
35
- }, {
36
- readonly name: "tokenIn";
37
- readonly type: "address";
38
- }, {
39
- readonly name: "tokenOut";
40
- readonly type: "address";
41
- }, {
42
- readonly name: "amountOut";
43
- readonly type: "uint256";
44
- }];
45
- readonly outputs: readonly [{
46
- readonly name: "";
47
- readonly type: "uint256";
48
- }];
49
- readonly stateMutability: "view";
50
- }, {
51
- readonly type: "function";
52
- readonly name: "swapIn";
53
- readonly inputs: readonly [{
54
- readonly name: "exchangeProvider";
55
- readonly type: "address";
56
- }, {
57
- readonly name: "exchangeId";
58
- readonly type: "bytes32";
59
- }, {
60
- readonly name: "tokenIn";
61
- readonly type: "address";
62
- }, {
63
- readonly name: "tokenOut";
64
- readonly type: "address";
65
- }, {
66
- readonly name: "amountIn";
67
- readonly type: "uint256";
68
- }, {
69
- readonly name: "amountOutMin";
70
- readonly type: "uint256";
71
- }];
72
- readonly outputs: readonly [{
73
- readonly name: "amountOut";
74
- readonly type: "uint256";
75
- }];
76
- readonly stateMutability: "nonpayable";
77
- }];
@@ -1,44 +0,0 @@
1
- /** GoodDollar MentoBroker on Celo — reserve swap quotes and execution. */
2
- export const goodDollarBrokerAbi = [
3
- {
4
- type: "function",
5
- name: "getAmountOut",
6
- inputs: [
7
- { name: "exchangeProvider", type: "address" },
8
- { name: "exchangeId", type: "bytes32" },
9
- { name: "tokenIn", type: "address" },
10
- { name: "tokenOut", type: "address" },
11
- { name: "amountIn", type: "uint256" },
12
- ],
13
- outputs: [{ name: "", type: "uint256" }],
14
- stateMutability: "view",
15
- },
16
- {
17
- type: "function",
18
- name: "getAmountIn",
19
- inputs: [
20
- { name: "exchangeProvider", type: "address" },
21
- { name: "exchangeId", type: "bytes32" },
22
- { name: "tokenIn", type: "address" },
23
- { name: "tokenOut", type: "address" },
24
- { name: "amountOut", type: "uint256" },
25
- ],
26
- outputs: [{ name: "", type: "uint256" }],
27
- stateMutability: "view",
28
- },
29
- {
30
- type: "function",
31
- name: "swapIn",
32
- inputs: [
33
- { name: "exchangeProvider", type: "address" },
34
- { name: "exchangeId", type: "bytes32" },
35
- { name: "tokenIn", type: "address" },
36
- { name: "tokenOut", type: "address" },
37
- { name: "amountIn", type: "uint256" },
38
- { name: "amountOutMin", type: "uint256" },
39
- ],
40
- outputs: [{ name: "amountOut", type: "uint256" }],
41
- stateMutability: "nonpayable",
42
- },
43
- ];
44
- //# sourceMappingURL=gooddollar-broker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gooddollar-broker.js","sourceRoot":"","sources":["../../../src/abis/gooddollar-broker.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7C,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;SACtC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxC,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7C,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;SACvC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACxC,eAAe,EAAE,MAAM;KACxB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7C,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;SAC1C;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjD,eAAe,EAAE,YAAY;KAC9B;CACO,CAAC"}
@@ -1,85 +0,0 @@
1
- export declare const goodDollarIdentityAbi: readonly [{
2
- readonly name: "identities";
3
- readonly type: "function";
4
- readonly stateMutability: "view";
5
- readonly inputs: readonly [{
6
- readonly name: "account";
7
- readonly type: "address";
8
- }];
9
- readonly outputs: readonly [{
10
- readonly name: "dateAuthenticated";
11
- readonly type: "uint256";
12
- }, {
13
- readonly name: "dateAdded";
14
- readonly type: "uint256";
15
- }, {
16
- readonly name: "did";
17
- readonly type: "string";
18
- }, {
19
- readonly name: "whitelistedOnChainId";
20
- readonly type: "uint256";
21
- }, {
22
- readonly name: "status";
23
- readonly type: "uint8";
24
- }, {
25
- readonly name: "authCount";
26
- readonly type: "uint32";
27
- }];
28
- }, {
29
- readonly name: "isWhitelisted";
30
- readonly type: "function";
31
- readonly stateMutability: "view";
32
- readonly inputs: readonly [{
33
- readonly name: "account";
34
- readonly type: "address";
35
- }];
36
- readonly outputs: readonly [{
37
- readonly name: "";
38
- readonly type: "bool";
39
- }];
40
- }, {
41
- readonly name: "getWhitelistedRoot";
42
- readonly type: "function";
43
- readonly stateMutability: "view";
44
- readonly inputs: readonly [{
45
- readonly name: "account";
46
- readonly type: "address";
47
- }];
48
- readonly outputs: readonly [{
49
- readonly name: "whitelisted";
50
- readonly type: "address";
51
- }];
52
- }, {
53
- readonly name: "connectedAccounts";
54
- readonly type: "function";
55
- readonly stateMutability: "view";
56
- readonly inputs: readonly [{
57
- readonly name: "account";
58
- readonly type: "address";
59
- }];
60
- readonly outputs: readonly [{
61
- readonly name: "";
62
- readonly type: "address";
63
- }];
64
- }, {
65
- readonly name: "authenticationPeriod";
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: "reverifyDaysOptions";
75
- readonly type: "function";
76
- readonly stateMutability: "view";
77
- readonly inputs: readonly [{
78
- readonly name: "";
79
- readonly type: "uint256";
80
- }];
81
- readonly outputs: readonly [{
82
- readonly name: "";
83
- readonly type: "uint8";
84
- }];
85
- }];