@sudobility/contracts 0.14.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 (322) hide show
  1. package/README.md +353 -0
  2. package/artifacts/contracts/Mailer.sol/Mailer.d.ts +1146 -0
  3. package/artifacts/contracts/Mailer.sol/Mailer.dbg.json +4 -0
  4. package/artifacts/contracts/Mailer.sol/Mailer.json +1096 -0
  5. package/artifacts/contracts/Mailer.sol/artifacts.d.ts +21 -0
  6. package/artifacts/contracts/MockUSDC.sol/MockUSDC.d.ts +284 -0
  7. package/artifacts/contracts/MockUSDC.sol/MockUSDC.dbg.json +4 -0
  8. package/artifacts/contracts/MockUSDC.sol/MockUSDC.json +234 -0
  9. package/artifacts/contracts/MockUSDC.sol/artifacts.d.ts +21 -0
  10. package/artifacts/contracts/interfaces/IERC20.sol/IERC20.d.ts +157 -0
  11. package/artifacts/contracts/interfaces/IERC20.sol/IERC20.dbg.json +4 -0
  12. package/artifacts/contracts/interfaces/IERC20.sol/IERC20.json +107 -0
  13. package/artifacts/contracts/interfaces/IERC20.sol/artifacts.d.ts +21 -0
  14. package/dist/evm/src/evm/index.d.ts +4 -0
  15. package/dist/evm/src/evm/index.d.ts.map +1 -0
  16. package/dist/evm/src/evm/index.js +10 -0
  17. package/dist/evm/src/evm/index.js.map +1 -0
  18. package/dist/evm/src/evm/mailer-client.d.ts +966 -0
  19. package/dist/evm/src/evm/mailer-client.d.ts.map +1 -0
  20. package/dist/evm/src/evm/mailer-client.js +619 -0
  21. package/dist/evm/src/evm/mailer-client.js.map +1 -0
  22. package/dist/evm/typechain-types/Mailer.d.ts +698 -0
  23. package/dist/evm/typechain-types/Mailer.d.ts.map +1 -0
  24. package/dist/evm/typechain-types/Mailer.js +3 -0
  25. package/dist/evm/typechain-types/Mailer.js.map +1 -0
  26. package/dist/evm/typechain-types/MockUSDC.d.ts +118 -0
  27. package/dist/evm/typechain-types/MockUSDC.d.ts.map +1 -0
  28. package/dist/evm/typechain-types/MockUSDC.js +3 -0
  29. package/dist/evm/typechain-types/MockUSDC.js.map +1 -0
  30. package/dist/evm/typechain-types/common.d.ts +51 -0
  31. package/dist/evm/typechain-types/common.d.ts.map +1 -0
  32. package/dist/evm/typechain-types/common.js +3 -0
  33. package/dist/evm/typechain-types/common.js.map +1 -0
  34. package/dist/evm/typechain-types/factories/Mailer__factory.d.ts +875 -0
  35. package/dist/evm/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
  36. package/dist/evm/typechain-types/factories/Mailer__factory.js +1125 -0
  37. package/dist/evm/typechain-types/factories/Mailer__factory.js.map +1 -0
  38. package/dist/evm/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
  39. package/dist/evm/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
  40. package/dist/evm/typechain-types/factories/MockUSDC__factory.js +263 -0
  41. package/dist/evm/typechain-types/factories/MockUSDC__factory.js.map +1 -0
  42. package/dist/evm/typechain-types/factories/index.d.ts +4 -0
  43. package/dist/evm/typechain-types/factories/index.d.ts.map +1 -0
  44. package/dist/evm/typechain-types/factories/index.js +45 -0
  45. package/dist/evm/typechain-types/factories/index.js.map +1 -0
  46. package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
  47. package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
  48. package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.js +116 -0
  49. package/dist/evm/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
  50. package/dist/evm/typechain-types/factories/interfaces/index.d.ts +2 -0
  51. package/dist/evm/typechain-types/factories/interfaces/index.d.ts.map +1 -0
  52. package/dist/evm/typechain-types/factories/interfaces/index.js +9 -0
  53. package/dist/evm/typechain-types/factories/interfaces/index.js.map +1 -0
  54. package/dist/evm/typechain-types/index.d.ts +10 -0
  55. package/dist/evm/typechain-types/index.d.ts.map +1 -0
  56. package/dist/evm/typechain-types/index.js +44 -0
  57. package/dist/evm/typechain-types/index.js.map +1 -0
  58. package/dist/evm/typechain-types/interfaces/IERC20.d.ts +70 -0
  59. package/dist/evm/typechain-types/interfaces/IERC20.d.ts.map +1 -0
  60. package/dist/evm/typechain-types/interfaces/IERC20.js +3 -0
  61. package/dist/evm/typechain-types/interfaces/IERC20.js.map +1 -0
  62. package/dist/evm/typechain-types/interfaces/index.d.ts +2 -0
  63. package/dist/evm/typechain-types/interfaces/index.d.ts.map +1 -0
  64. package/dist/evm/typechain-types/interfaces/index.js +3 -0
  65. package/dist/evm/typechain-types/interfaces/index.js.map +1 -0
  66. package/dist/solana/solana/index.d.ts +3 -0
  67. package/dist/solana/solana/index.d.ts.map +1 -0
  68. package/dist/solana/solana/index.js +21 -0
  69. package/dist/solana/solana/index.js.map +1 -0
  70. package/dist/solana/solana/mailer-client.d.ts +282 -0
  71. package/dist/solana/solana/mailer-client.d.ts.map +1 -0
  72. package/dist/solana/solana/mailer-client.js +989 -0
  73. package/dist/solana/solana/mailer-client.js.map +1 -0
  74. package/dist/solana/solana/types.d.ts +28 -0
  75. package/dist/solana/solana/types.d.ts.map +1 -0
  76. package/dist/solana/solana/types.js +23 -0
  77. package/dist/solana/solana/types.js.map +1 -0
  78. package/dist/solana/utils/currency.d.ts +26 -0
  79. package/dist/solana/utils/currency.d.ts.map +1 -0
  80. package/dist/solana/utils/currency.js +36 -0
  81. package/dist/solana/utils/currency.js.map +1 -0
  82. package/dist/unified/package.json +3 -0
  83. package/dist/unified/src/evm/index.d.ts +4 -0
  84. package/dist/unified/src/evm/index.d.ts.map +1 -0
  85. package/dist/unified/src/evm/index.js +10 -0
  86. package/dist/unified/src/evm/index.js.map +1 -0
  87. package/dist/unified/src/evm/mailer-client.d.ts +966 -0
  88. package/dist/unified/src/evm/mailer-client.d.ts.map +1 -0
  89. package/dist/unified/src/evm/mailer-client.js +619 -0
  90. package/dist/unified/src/evm/mailer-client.js.map +1 -0
  91. package/dist/unified/src/react/context/MailerProvider.d.ts +102 -0
  92. package/dist/unified/src/react/context/MailerProvider.d.ts.map +1 -0
  93. package/dist/unified/src/react/context/MailerProvider.js +160 -0
  94. package/dist/unified/src/react/context/MailerProvider.js.map +1 -0
  95. package/dist/unified/src/react/hooks/useMailerMutations.d.ts +301 -0
  96. package/dist/unified/src/react/hooks/useMailerMutations.d.ts.map +1 -0
  97. package/dist/unified/src/react/hooks/useMailerMutations.js +417 -0
  98. package/dist/unified/src/react/hooks/useMailerMutations.js.map +1 -0
  99. package/dist/unified/src/react/hooks/useMailerQueries.d.ts +130 -0
  100. package/dist/unified/src/react/hooks/useMailerQueries.d.ts.map +1 -0
  101. package/dist/unified/src/react/hooks/useMailerQueries.js +197 -0
  102. package/dist/unified/src/react/hooks/useMailerQueries.js.map +1 -0
  103. package/dist/unified/src/react/index.d.ts +37 -0
  104. package/dist/unified/src/react/index.d.ts.map +1 -0
  105. package/dist/unified/src/react/index.js +70 -0
  106. package/dist/unified/src/react/index.js.map +1 -0
  107. package/dist/unified/src/solana/index.d.ts +3 -0
  108. package/dist/unified/src/solana/index.d.ts.map +1 -0
  109. package/dist/unified/src/solana/index.js +21 -0
  110. package/dist/unified/src/solana/index.js.map +1 -0
  111. package/dist/unified/src/solana/mailer-client.d.ts +282 -0
  112. package/dist/unified/src/solana/mailer-client.d.ts.map +1 -0
  113. package/dist/unified/src/solana/mailer-client.js +989 -0
  114. package/dist/unified/src/solana/mailer-client.js.map +1 -0
  115. package/dist/unified/src/solana/types.d.ts +28 -0
  116. package/dist/unified/src/solana/types.d.ts.map +1 -0
  117. package/dist/unified/src/solana/types.js +23 -0
  118. package/dist/unified/src/solana/types.js.map +1 -0
  119. package/dist/unified/src/unified/index.d.ts +4 -0
  120. package/dist/unified/src/unified/index.d.ts.map +1 -0
  121. package/dist/unified/src/unified/index.js +9 -0
  122. package/dist/unified/src/unified/index.js.map +1 -0
  123. package/dist/unified/src/unified/onchain-mailer-client.d.ts +173 -0
  124. package/dist/unified/src/unified/onchain-mailer-client.d.ts.map +1 -0
  125. package/dist/unified/src/unified/onchain-mailer-client.js +1048 -0
  126. package/dist/unified/src/unified/onchain-mailer-client.js.map +1 -0
  127. package/dist/unified/src/unified/types.d.ts +47 -0
  128. package/dist/unified/src/unified/types.d.ts.map +1 -0
  129. package/dist/unified/src/unified/types.js +3 -0
  130. package/dist/unified/src/unified/types.js.map +1 -0
  131. package/dist/unified/src/unified/wallet-detector.d.ts +28 -0
  132. package/dist/unified/src/unified/wallet-detector.d.ts.map +1 -0
  133. package/dist/unified/src/unified/wallet-detector.js +63 -0
  134. package/dist/unified/src/unified/wallet-detector.js.map +1 -0
  135. package/dist/unified/src/utils/chain-config.d.ts +75 -0
  136. package/dist/unified/src/utils/chain-config.d.ts.map +1 -0
  137. package/dist/unified/src/utils/chain-config.js +203 -0
  138. package/dist/unified/src/utils/chain-config.js.map +1 -0
  139. package/dist/unified/src/utils/currency.d.ts +26 -0
  140. package/dist/unified/src/utils/currency.d.ts.map +1 -0
  141. package/dist/unified/src/utils/currency.js +36 -0
  142. package/dist/unified/src/utils/currency.js.map +1 -0
  143. package/dist/unified/src/utils/index.d.ts +4 -0
  144. package/dist/unified/src/utils/index.d.ts.map +1 -0
  145. package/dist/unified/src/utils/index.js +20 -0
  146. package/dist/unified/src/utils/index.js.map +1 -0
  147. package/dist/unified/src/utils/validation.d.ts +10 -0
  148. package/dist/unified/src/utils/validation.d.ts.map +1 -0
  149. package/dist/unified/src/utils/validation.js +102 -0
  150. package/dist/unified/src/utils/validation.js.map +1 -0
  151. package/dist/unified/typechain-types/Mailer.d.ts +698 -0
  152. package/dist/unified/typechain-types/Mailer.d.ts.map +1 -0
  153. package/dist/unified/typechain-types/Mailer.js +3 -0
  154. package/dist/unified/typechain-types/Mailer.js.map +1 -0
  155. package/dist/unified/typechain-types/MockUSDC.d.ts +118 -0
  156. package/dist/unified/typechain-types/MockUSDC.d.ts.map +1 -0
  157. package/dist/unified/typechain-types/MockUSDC.js +3 -0
  158. package/dist/unified/typechain-types/MockUSDC.js.map +1 -0
  159. package/dist/unified/typechain-types/common.d.ts +51 -0
  160. package/dist/unified/typechain-types/common.d.ts.map +1 -0
  161. package/dist/unified/typechain-types/common.js +3 -0
  162. package/dist/unified/typechain-types/common.js.map +1 -0
  163. package/dist/unified/typechain-types/factories/Mailer__factory.d.ts +875 -0
  164. package/dist/unified/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
  165. package/dist/unified/typechain-types/factories/Mailer__factory.js +1125 -0
  166. package/dist/unified/typechain-types/factories/Mailer__factory.js.map +1 -0
  167. package/dist/unified/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
  168. package/dist/unified/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
  169. package/dist/unified/typechain-types/factories/MockUSDC__factory.js +263 -0
  170. package/dist/unified/typechain-types/factories/MockUSDC__factory.js.map +1 -0
  171. package/dist/unified/typechain-types/factories/index.d.ts +4 -0
  172. package/dist/unified/typechain-types/factories/index.d.ts.map +1 -0
  173. package/dist/unified/typechain-types/factories/index.js +45 -0
  174. package/dist/unified/typechain-types/factories/index.js.map +1 -0
  175. package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
  176. package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
  177. package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.js +116 -0
  178. package/dist/unified/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
  179. package/dist/unified/typechain-types/factories/interfaces/index.d.ts +2 -0
  180. package/dist/unified/typechain-types/factories/interfaces/index.d.ts.map +1 -0
  181. package/dist/unified/typechain-types/factories/interfaces/index.js +9 -0
  182. package/dist/unified/typechain-types/factories/interfaces/index.js.map +1 -0
  183. package/dist/unified/typechain-types/index.d.ts +10 -0
  184. package/dist/unified/typechain-types/index.d.ts.map +1 -0
  185. package/dist/unified/typechain-types/index.js +44 -0
  186. package/dist/unified/typechain-types/index.js.map +1 -0
  187. package/dist/unified/typechain-types/interfaces/IERC20.d.ts +70 -0
  188. package/dist/unified/typechain-types/interfaces/IERC20.d.ts.map +1 -0
  189. package/dist/unified/typechain-types/interfaces/IERC20.js +3 -0
  190. package/dist/unified/typechain-types/interfaces/IERC20.js.map +1 -0
  191. package/dist/unified/typechain-types/interfaces/index.d.ts +2 -0
  192. package/dist/unified/typechain-types/interfaces/index.d.ts.map +1 -0
  193. package/dist/unified/typechain-types/interfaces/index.js +3 -0
  194. package/dist/unified/typechain-types/interfaces/index.js.map +1 -0
  195. package/dist/unified-esm/src/evm/index.d.ts +4 -0
  196. package/dist/unified-esm/src/evm/index.d.ts.map +1 -0
  197. package/dist/unified-esm/src/evm/index.js +5 -0
  198. package/dist/unified-esm/src/evm/index.js.map +1 -0
  199. package/dist/unified-esm/src/evm/mailer-client.d.ts +966 -0
  200. package/dist/unified-esm/src/evm/mailer-client.d.ts.map +1 -0
  201. package/dist/unified-esm/src/evm/mailer-client.js +615 -0
  202. package/dist/unified-esm/src/evm/mailer-client.js.map +1 -0
  203. package/dist/unified-esm/src/react/context/MailerProvider.d.ts +102 -0
  204. package/dist/unified-esm/src/react/context/MailerProvider.d.ts.map +1 -0
  205. package/dist/unified-esm/src/react/context/MailerProvider.js +120 -0
  206. package/dist/unified-esm/src/react/context/MailerProvider.js.map +1 -0
  207. package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts +301 -0
  208. package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts.map +1 -0
  209. package/dist/unified-esm/src/react/hooks/useMailerMutations.js +400 -0
  210. package/dist/unified-esm/src/react/hooks/useMailerMutations.js.map +1 -0
  211. package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts +130 -0
  212. package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts.map +1 -0
  213. package/dist/unified-esm/src/react/hooks/useMailerQueries.js +186 -0
  214. package/dist/unified-esm/src/react/hooks/useMailerQueries.js.map +1 -0
  215. package/dist/unified-esm/src/react/index.d.ts +37 -0
  216. package/dist/unified-esm/src/react/index.d.ts.map +1 -0
  217. package/dist/unified-esm/src/react/index.js +39 -0
  218. package/dist/unified-esm/src/react/index.js.map +1 -0
  219. package/dist/unified-esm/src/solana/index.d.ts +3 -0
  220. package/dist/unified-esm/src/solana/index.d.ts.map +1 -0
  221. package/dist/unified-esm/src/solana/index.js +3 -0
  222. package/dist/unified-esm/src/solana/index.js.map +1 -0
  223. package/dist/unified-esm/src/solana/mailer-client.d.ts +282 -0
  224. package/dist/unified-esm/src/solana/mailer-client.d.ts.map +1 -0
  225. package/dist/unified-esm/src/solana/mailer-client.js +985 -0
  226. package/dist/unified-esm/src/solana/mailer-client.js.map +1 -0
  227. package/dist/unified-esm/src/solana/types.d.ts +28 -0
  228. package/dist/unified-esm/src/solana/types.d.ts.map +1 -0
  229. package/dist/unified-esm/src/solana/types.js +16 -0
  230. package/dist/unified-esm/src/solana/types.js.map +1 -0
  231. package/dist/unified-esm/src/unified/index.d.ts +4 -0
  232. package/dist/unified-esm/src/unified/index.d.ts.map +1 -0
  233. package/dist/unified-esm/src/unified/index.js +4 -0
  234. package/dist/unified-esm/src/unified/index.js.map +1 -0
  235. package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts +173 -0
  236. package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts.map +1 -0
  237. package/dist/unified-esm/src/unified/onchain-mailer-client.js +1011 -0
  238. package/dist/unified-esm/src/unified/onchain-mailer-client.js.map +1 -0
  239. package/dist/unified-esm/src/unified/types.d.ts +47 -0
  240. package/dist/unified-esm/src/unified/types.d.ts.map +1 -0
  241. package/dist/unified-esm/src/unified/types.js +2 -0
  242. package/dist/unified-esm/src/unified/types.js.map +1 -0
  243. package/dist/unified-esm/src/unified/wallet-detector.d.ts +28 -0
  244. package/dist/unified-esm/src/unified/wallet-detector.d.ts.map +1 -0
  245. package/dist/unified-esm/src/unified/wallet-detector.js +59 -0
  246. package/dist/unified-esm/src/unified/wallet-detector.js.map +1 -0
  247. package/dist/unified-esm/src/utils/chain-config.d.ts +75 -0
  248. package/dist/unified-esm/src/utils/chain-config.d.ts.map +1 -0
  249. package/dist/unified-esm/src/utils/chain-config.js +199 -0
  250. package/dist/unified-esm/src/utils/chain-config.js.map +1 -0
  251. package/dist/unified-esm/src/utils/currency.d.ts +26 -0
  252. package/dist/unified-esm/src/utils/currency.d.ts.map +1 -0
  253. package/dist/unified-esm/src/utils/currency.js +31 -0
  254. package/dist/unified-esm/src/utils/currency.js.map +1 -0
  255. package/dist/unified-esm/src/utils/index.d.ts +4 -0
  256. package/dist/unified-esm/src/utils/index.d.ts.map +1 -0
  257. package/dist/unified-esm/src/utils/index.js +4 -0
  258. package/dist/unified-esm/src/utils/index.js.map +1 -0
  259. package/dist/unified-esm/src/utils/validation.d.ts +10 -0
  260. package/dist/unified-esm/src/utils/validation.d.ts.map +1 -0
  261. package/dist/unified-esm/src/utils/validation.js +96 -0
  262. package/dist/unified-esm/src/utils/validation.js.map +1 -0
  263. package/dist/unified-esm/typechain-types/Mailer.d.ts +698 -0
  264. package/dist/unified-esm/typechain-types/Mailer.d.ts.map +1 -0
  265. package/dist/unified-esm/typechain-types/Mailer.js +2 -0
  266. package/dist/unified-esm/typechain-types/Mailer.js.map +1 -0
  267. package/dist/unified-esm/typechain-types/MockUSDC.d.ts +118 -0
  268. package/dist/unified-esm/typechain-types/MockUSDC.d.ts.map +1 -0
  269. package/dist/unified-esm/typechain-types/MockUSDC.js +2 -0
  270. package/dist/unified-esm/typechain-types/MockUSDC.js.map +1 -0
  271. package/dist/unified-esm/typechain-types/common.d.ts +51 -0
  272. package/dist/unified-esm/typechain-types/common.d.ts.map +1 -0
  273. package/dist/unified-esm/typechain-types/common.js +2 -0
  274. package/dist/unified-esm/typechain-types/common.js.map +1 -0
  275. package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts +875 -0
  276. package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts.map +1 -0
  277. package/dist/unified-esm/typechain-types/factories/Mailer__factory.js +1121 -0
  278. package/dist/unified-esm/typechain-types/factories/Mailer__factory.js.map +1 -0
  279. package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.d.ts +193 -0
  280. package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.d.ts.map +1 -0
  281. package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.js +259 -0
  282. package/dist/unified-esm/typechain-types/factories/MockUSDC__factory.js.map +1 -0
  283. package/dist/unified-esm/typechain-types/factories/index.d.ts +4 -0
  284. package/dist/unified-esm/typechain-types/factories/index.d.ts.map +1 -0
  285. package/dist/unified-esm/typechain-types/factories/index.js +7 -0
  286. package/dist/unified-esm/typechain-types/factories/index.js.map +1 -0
  287. package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.d.ts +80 -0
  288. package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.d.ts.map +1 -0
  289. package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.js +112 -0
  290. package/dist/unified-esm/typechain-types/factories/interfaces/IERC20__factory.js.map +1 -0
  291. package/dist/unified-esm/typechain-types/factories/interfaces/index.d.ts +2 -0
  292. package/dist/unified-esm/typechain-types/factories/interfaces/index.d.ts.map +1 -0
  293. package/dist/unified-esm/typechain-types/factories/interfaces/index.js +5 -0
  294. package/dist/unified-esm/typechain-types/factories/interfaces/index.js.map +1 -0
  295. package/dist/unified-esm/typechain-types/index.d.ts +10 -0
  296. package/dist/unified-esm/typechain-types/index.d.ts.map +1 -0
  297. package/dist/unified-esm/typechain-types/index.js +5 -0
  298. package/dist/unified-esm/typechain-types/index.js.map +1 -0
  299. package/dist/unified-esm/typechain-types/interfaces/IERC20.d.ts +70 -0
  300. package/dist/unified-esm/typechain-types/interfaces/IERC20.d.ts.map +1 -0
  301. package/dist/unified-esm/typechain-types/interfaces/IERC20.js +2 -0
  302. package/dist/unified-esm/typechain-types/interfaces/IERC20.js.map +1 -0
  303. package/dist/unified-esm/typechain-types/interfaces/index.d.ts +2 -0
  304. package/dist/unified-esm/typechain-types/interfaces/index.d.ts.map +1 -0
  305. package/dist/unified-esm/typechain-types/interfaces/index.js +2 -0
  306. package/dist/unified-esm/typechain-types/interfaces/index.js.map +1 -0
  307. package/package.json +250 -0
  308. package/programs/mailer/Cargo.toml +29 -0
  309. package/programs/mailer/src/lib.rs +2034 -0
  310. package/programs/mailer/tests/integration_tests.rs +1236 -0
  311. package/typechain-types/Mailer.ts +1393 -0
  312. package/typechain-types/MockUSDC.ts +236 -0
  313. package/typechain-types/common.ts +131 -0
  314. package/typechain-types/factories/Mailer__factory.ts +1157 -0
  315. package/typechain-types/factories/MockUSDC__factory.ts +284 -0
  316. package/typechain-types/factories/index.ts +6 -0
  317. package/typechain-types/factories/interfaces/IERC20__factory.ts +115 -0
  318. package/typechain-types/factories/interfaces/index.ts +4 -0
  319. package/typechain-types/hardhat.d.ts +99 -0
  320. package/typechain-types/index.ts +12 -0
  321. package/typechain-types/interfaces/IERC20.ts +148 -0
  322. package/typechain-types/interfaces/index.ts +4 -0
@@ -0,0 +1,284 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Contract,
6
+ ContractFactory,
7
+ ContractTransactionResponse,
8
+ Interface,
9
+ } from "ethers";
10
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
11
+ import type { NonPayableOverrides } from "../common";
12
+ import type { MockUSDC, MockUSDCInterface } from "../MockUSDC";
13
+
14
+ const _abi = [
15
+ {
16
+ inputs: [],
17
+ stateMutability: "nonpayable",
18
+ type: "constructor",
19
+ },
20
+ {
21
+ inputs: [],
22
+ name: "InsufficientAllowance",
23
+ type: "error",
24
+ },
25
+ {
26
+ inputs: [],
27
+ name: "InsufficientBalance",
28
+ type: "error",
29
+ },
30
+ {
31
+ inputs: [],
32
+ name: "OnlyOwner",
33
+ type: "error",
34
+ },
35
+ {
36
+ inputs: [
37
+ {
38
+ internalType: "address",
39
+ name: "",
40
+ type: "address",
41
+ },
42
+ {
43
+ internalType: "address",
44
+ name: "",
45
+ type: "address",
46
+ },
47
+ ],
48
+ name: "allowance",
49
+ outputs: [
50
+ {
51
+ internalType: "uint256",
52
+ name: "",
53
+ type: "uint256",
54
+ },
55
+ ],
56
+ stateMutability: "view",
57
+ type: "function",
58
+ },
59
+ {
60
+ inputs: [
61
+ {
62
+ internalType: "address",
63
+ name: "spender",
64
+ type: "address",
65
+ },
66
+ {
67
+ internalType: "uint256",
68
+ name: "amount",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "approve",
73
+ outputs: [
74
+ {
75
+ internalType: "bool",
76
+ name: "",
77
+ type: "bool",
78
+ },
79
+ ],
80
+ stateMutability: "nonpayable",
81
+ type: "function",
82
+ },
83
+ {
84
+ inputs: [
85
+ {
86
+ internalType: "address",
87
+ name: "",
88
+ type: "address",
89
+ },
90
+ ],
91
+ name: "balanceOf",
92
+ outputs: [
93
+ {
94
+ internalType: "uint256",
95
+ name: "",
96
+ type: "uint256",
97
+ },
98
+ ],
99
+ stateMutability: "view",
100
+ type: "function",
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: "decimals",
105
+ outputs: [
106
+ {
107
+ internalType: "uint8",
108
+ name: "",
109
+ type: "uint8",
110
+ },
111
+ ],
112
+ stateMutability: "view",
113
+ type: "function",
114
+ },
115
+ {
116
+ inputs: [
117
+ {
118
+ internalType: "address",
119
+ name: "to",
120
+ type: "address",
121
+ },
122
+ {
123
+ internalType: "uint256",
124
+ name: "amount",
125
+ type: "uint256",
126
+ },
127
+ ],
128
+ name: "mint",
129
+ outputs: [],
130
+ stateMutability: "nonpayable",
131
+ type: "function",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "name",
136
+ outputs: [
137
+ {
138
+ internalType: "string",
139
+ name: "",
140
+ type: "string",
141
+ },
142
+ ],
143
+ stateMutability: "view",
144
+ type: "function",
145
+ },
146
+ {
147
+ inputs: [],
148
+ name: "owner",
149
+ outputs: [
150
+ {
151
+ internalType: "address",
152
+ name: "",
153
+ type: "address",
154
+ },
155
+ ],
156
+ stateMutability: "view",
157
+ type: "function",
158
+ },
159
+ {
160
+ inputs: [],
161
+ name: "symbol",
162
+ outputs: [
163
+ {
164
+ internalType: "string",
165
+ name: "",
166
+ type: "string",
167
+ },
168
+ ],
169
+ stateMutability: "view",
170
+ type: "function",
171
+ },
172
+ {
173
+ inputs: [],
174
+ name: "totalSupply",
175
+ outputs: [
176
+ {
177
+ internalType: "uint256",
178
+ name: "",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ stateMutability: "view",
183
+ type: "function",
184
+ },
185
+ {
186
+ inputs: [
187
+ {
188
+ internalType: "address",
189
+ name: "to",
190
+ type: "address",
191
+ },
192
+ {
193
+ internalType: "uint256",
194
+ name: "amount",
195
+ type: "uint256",
196
+ },
197
+ ],
198
+ name: "transfer",
199
+ outputs: [
200
+ {
201
+ internalType: "bool",
202
+ name: "",
203
+ type: "bool",
204
+ },
205
+ ],
206
+ stateMutability: "nonpayable",
207
+ type: "function",
208
+ },
209
+ {
210
+ inputs: [
211
+ {
212
+ internalType: "address",
213
+ name: "from",
214
+ type: "address",
215
+ },
216
+ {
217
+ internalType: "address",
218
+ name: "to",
219
+ type: "address",
220
+ },
221
+ {
222
+ internalType: "uint256",
223
+ name: "amount",
224
+ type: "uint256",
225
+ },
226
+ ],
227
+ name: "transferFrom",
228
+ outputs: [
229
+ {
230
+ internalType: "bool",
231
+ name: "",
232
+ type: "bool",
233
+ },
234
+ ],
235
+ stateMutability: "nonpayable",
236
+ type: "function",
237
+ },
238
+ ] as const;
239
+
240
+ const _bytecode =
241
+ "0x60e0604052600960a0908152684d6f636b205553444360b81b60c0526002906100289082610134565b506040805180820190915260048152635553444360e01b60208201526003906100519082610134565b506004805460ff1916600617905564e8d4a5100060055534801561007457600080fd5b50336080819052600554600091825260208290526040909120556101f3565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100bd57607f821691505b6020821081036100dd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561012f576000816000526020600020601f850160051c8101602086101561010c5750805b601f850160051c820191505b8181101561012b57828155600101610118565b5050505b505050565b81516001600160401b0381111561014d5761014d610093565b6101618161015b84546100a9565b846100e3565b602080601f831160018114610196576000841561017e5750858301515b600019600386901b1c1916600185901b17855561012b565b600085815260208120601f198616915b828110156101c5578886015182559484019460019091019084016101a6565b50858210156101e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516106c36102156000396000818161017201526103d201526106c36000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806340c10f191161007157806340c10f191461013857806370a082311461014d5780638da5cb5b1461016d57806395d89b41146101ac578063a9059cbb146101b4578063dd62ed3e146101c757600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610106578063313ce56714610119575b600080fd5b6100b66101f2565b6040516100c391906104f1565b60405180910390f35b6100df6100da36600461055c565b610280565b60405190151581526020016100c3565b6100f860055481565b6040519081526020016100c3565b6100df610114366004610586565b6102ae565b6004546101269060ff1681565b60405160ff90911681526020016100c3565b61014b61014636600461055c565b6103c7565b005b6100f861015b3660046105c2565b60006020819052908152604090205481565b6101947f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c3565b6100b661045a565b6100df6101c236600461055c565b610467565b6100f86101d53660046105e4565b600160209081526000928352604080842090915290825290205481565b600280546101ff90610617565b80601f016020809104026020016040519081016040528092919081815260200182805461022b90610617565b80156102785780601f1061024d57610100808354040283529160200191610278565b820191906000526020600020905b81548152906001019060200180831161025b57829003601f168201915b505050505081565b3360009081526001602081815260408084206001600160a01b03871685529091529091208290555b92915050565b6001600160a01b0383166000908152602081905260408120548211156102e757604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561032b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b03841660009081526020819052604081208054849290610353908490610667565b90915550506001600160a01b0383166000908152602081905260408120805484929061038090849061067a565b90915550506001600160a01b0384166000908152600160209081526040808320338452909152812080548492906103b8908490610667565b90915550600195945050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461041057604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b0382166000908152602081905260408120805483929061043890849061067a565b925050819055508060056000828254610451919061067a565b90915550505050565b600380546101ff90610617565b3360009081526020819052604081205482111561049757604051631e9acf1760e31b815260040160405180910390fd5b33600090815260208190526040812080548492906104b6908490610667565b90915550506001600160a01b038316600090815260208190526040812080548492906104e390849061067a565b909155506001949350505050565b60006020808352835180602085015260005b8181101561051f57858101830151858201604001528201610503565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461055757600080fd5b919050565b6000806040838503121561056f57600080fd5b61057883610540565b946020939093013593505050565b60008060006060848603121561059b57600080fd5b6105a484610540565b92506105b260208501610540565b9150604084013590509250925092565b6000602082840312156105d457600080fd5b6105dd82610540565b9392505050565b600080604083850312156105f757600080fd5b61060083610540565b915061060e60208401610540565b90509250929050565b600181811c9082168061062b57607f821691505b60208210810361064b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102a8576102a8610651565b808201808211156102a8576102a861065156fea2646970667358221220db58c45fd5c85446164b9beeace5a427c6e533e629016581b36a58740b82509864736f6c63430008180033";
242
+
243
+ type MockUSDCConstructorParams =
244
+ | [signer?: Signer]
245
+ | ConstructorParameters<typeof ContractFactory>;
246
+
247
+ const isSuperArgs = (
248
+ xs: MockUSDCConstructorParams
249
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
250
+
251
+ export class MockUSDC__factory extends ContractFactory {
252
+ constructor(...args: MockUSDCConstructorParams) {
253
+ if (isSuperArgs(args)) {
254
+ super(...args);
255
+ } else {
256
+ super(_abi, _bytecode, args[0]);
257
+ }
258
+ }
259
+
260
+ override getDeployTransaction(
261
+ overrides?: NonPayableOverrides & { from?: string }
262
+ ): Promise<ContractDeployTransaction> {
263
+ return super.getDeployTransaction(overrides || {});
264
+ }
265
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
266
+ return super.deploy(overrides || {}) as Promise<
267
+ MockUSDC & {
268
+ deploymentTransaction(): ContractTransactionResponse;
269
+ }
270
+ >;
271
+ }
272
+ override connect(runner: ContractRunner | null): MockUSDC__factory {
273
+ return super.connect(runner) as MockUSDC__factory;
274
+ }
275
+
276
+ static readonly bytecode = _bytecode;
277
+ static readonly abi = _abi;
278
+ static createInterface(): MockUSDCInterface {
279
+ return new Interface(_abi) as MockUSDCInterface;
280
+ }
281
+ static connect(address: string, runner?: ContractRunner | null): MockUSDC {
282
+ return new Contract(address, _abi, runner) as unknown as MockUSDC;
283
+ }
284
+ }
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as interfaces from "./interfaces";
5
+ export { Mailer__factory } from "./Mailer__factory";
6
+ export { MockUSDC__factory } from "./MockUSDC__factory";
@@ -0,0 +1,115 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type { IERC20, IERC20Interface } from "../../interfaces/IERC20";
7
+
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "spender",
14
+ type: "address",
15
+ },
16
+ {
17
+ internalType: "uint256",
18
+ name: "amount",
19
+ type: "uint256",
20
+ },
21
+ ],
22
+ name: "approve",
23
+ outputs: [
24
+ {
25
+ internalType: "bool",
26
+ name: "",
27
+ type: "bool",
28
+ },
29
+ ],
30
+ stateMutability: "nonpayable",
31
+ type: "function",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "address",
37
+ name: "account",
38
+ type: "address",
39
+ },
40
+ ],
41
+ name: "balanceOf",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "view",
50
+ type: "function",
51
+ },
52
+ {
53
+ inputs: [
54
+ {
55
+ internalType: "address",
56
+ name: "to",
57
+ type: "address",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "amount",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ name: "transfer",
66
+ outputs: [
67
+ {
68
+ internalType: "bool",
69
+ name: "",
70
+ type: "bool",
71
+ },
72
+ ],
73
+ stateMutability: "nonpayable",
74
+ type: "function",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "from",
81
+ type: "address",
82
+ },
83
+ {
84
+ internalType: "address",
85
+ name: "to",
86
+ type: "address",
87
+ },
88
+ {
89
+ internalType: "uint256",
90
+ name: "amount",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "transferFrom",
95
+ outputs: [
96
+ {
97
+ internalType: "bool",
98
+ name: "",
99
+ type: "bool",
100
+ },
101
+ ],
102
+ stateMutability: "nonpayable",
103
+ type: "function",
104
+ },
105
+ ] as const;
106
+
107
+ export class IERC20__factory {
108
+ static readonly abi = _abi;
109
+ static createInterface(): IERC20Interface {
110
+ return new Interface(_abi) as IERC20Interface;
111
+ }
112
+ static connect(address: string, runner?: ContractRunner | null): IERC20 {
113
+ return new Contract(address, _abi, runner) as unknown as IERC20;
114
+ }
115
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IERC20__factory } from "./IERC20__factory";
@@ -0,0 +1,99 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { ethers } from "ethers";
6
+ import {
7
+ DeployContractOptions,
8
+ FactoryOptions,
9
+ HardhatEthersHelpers as HardhatEthersHelpersBase,
10
+ } from "@nomicfoundation/hardhat-ethers/types";
11
+
12
+ import * as Contracts from ".";
13
+
14
+ declare module "hardhat/types/runtime" {
15
+ interface HardhatEthersHelpers extends HardhatEthersHelpersBase {
16
+ getContractFactory(
17
+ name: "IERC20",
18
+ signerOrOptions?: ethers.Signer | FactoryOptions
19
+ ): Promise<Contracts.IERC20__factory>;
20
+ getContractFactory(
21
+ name: "Mailer",
22
+ signerOrOptions?: ethers.Signer | FactoryOptions
23
+ ): Promise<Contracts.Mailer__factory>;
24
+ getContractFactory(
25
+ name: "MockUSDC",
26
+ signerOrOptions?: ethers.Signer | FactoryOptions
27
+ ): Promise<Contracts.MockUSDC__factory>;
28
+
29
+ getContractAt(
30
+ name: "IERC20",
31
+ address: string | ethers.Addressable,
32
+ signer?: ethers.Signer
33
+ ): Promise<Contracts.IERC20>;
34
+ getContractAt(
35
+ name: "Mailer",
36
+ address: string | ethers.Addressable,
37
+ signer?: ethers.Signer
38
+ ): Promise<Contracts.Mailer>;
39
+ getContractAt(
40
+ name: "MockUSDC",
41
+ address: string | ethers.Addressable,
42
+ signer?: ethers.Signer
43
+ ): Promise<Contracts.MockUSDC>;
44
+
45
+ deployContract(
46
+ name: "IERC20",
47
+ signerOrOptions?: ethers.Signer | DeployContractOptions
48
+ ): Promise<Contracts.IERC20>;
49
+ deployContract(
50
+ name: "Mailer",
51
+ signerOrOptions?: ethers.Signer | DeployContractOptions
52
+ ): Promise<Contracts.Mailer>;
53
+ deployContract(
54
+ name: "MockUSDC",
55
+ signerOrOptions?: ethers.Signer | DeployContractOptions
56
+ ): Promise<Contracts.MockUSDC>;
57
+
58
+ deployContract(
59
+ name: "IERC20",
60
+ args: any[],
61
+ signerOrOptions?: ethers.Signer | DeployContractOptions
62
+ ): Promise<Contracts.IERC20>;
63
+ deployContract(
64
+ name: "Mailer",
65
+ args: any[],
66
+ signerOrOptions?: ethers.Signer | DeployContractOptions
67
+ ): Promise<Contracts.Mailer>;
68
+ deployContract(
69
+ name: "MockUSDC",
70
+ args: any[],
71
+ signerOrOptions?: ethers.Signer | DeployContractOptions
72
+ ): Promise<Contracts.MockUSDC>;
73
+
74
+ // default types
75
+ getContractFactory(
76
+ name: string,
77
+ signerOrOptions?: ethers.Signer | FactoryOptions
78
+ ): Promise<ethers.ContractFactory>;
79
+ getContractFactory(
80
+ abi: any[],
81
+ bytecode: ethers.BytesLike,
82
+ signer?: ethers.Signer
83
+ ): Promise<ethers.ContractFactory>;
84
+ getContractAt(
85
+ nameOrAbi: string | any[],
86
+ address: string | ethers.Addressable,
87
+ signer?: ethers.Signer
88
+ ): Promise<ethers.Contract>;
89
+ deployContract(
90
+ name: string,
91
+ signerOrOptions?: ethers.Signer | DeployContractOptions
92
+ ): Promise<ethers.Contract>;
93
+ deployContract(
94
+ name: string,
95
+ args: any[],
96
+ signerOrOptions?: ethers.Signer | DeployContractOptions
97
+ ): Promise<ethers.Contract>;
98
+ }
99
+ }
@@ -0,0 +1,12 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type * as interfaces from "./interfaces";
5
+ export type { interfaces };
6
+ export type { Mailer } from "./Mailer";
7
+ export type { MockUSDC } from "./MockUSDC";
8
+ export * as factories from "./factories";
9
+ export type { IERC20 } from "./interfaces/IERC20";
10
+ export { IERC20__factory } from "./factories/interfaces/IERC20__factory";
11
+ export { Mailer__factory } from "./factories/Mailer__factory";
12
+ export { MockUSDC__factory } from "./factories/MockUSDC__factory";
@@ -0,0 +1,148 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ AddressLike,
12
+ ContractRunner,
13
+ ContractMethod,
14
+ Listener,
15
+ } from "ethers";
16
+ import type {
17
+ TypedContractEvent,
18
+ TypedDeferredTopicFilter,
19
+ TypedEventLog,
20
+ TypedListener,
21
+ TypedContractMethod,
22
+ } from "../common";
23
+
24
+ export interface IERC20Interface extends Interface {
25
+ getFunction(
26
+ nameOrSignature: "approve" | "balanceOf" | "transfer" | "transferFrom"
27
+ ): FunctionFragment;
28
+
29
+ encodeFunctionData(
30
+ functionFragment: "approve",
31
+ values: [AddressLike, BigNumberish]
32
+ ): string;
33
+ encodeFunctionData(
34
+ functionFragment: "balanceOf",
35
+ values: [AddressLike]
36
+ ): string;
37
+ encodeFunctionData(
38
+ functionFragment: "transfer",
39
+ values: [AddressLike, BigNumberish]
40
+ ): string;
41
+ encodeFunctionData(
42
+ functionFragment: "transferFrom",
43
+ values: [AddressLike, AddressLike, BigNumberish]
44
+ ): string;
45
+
46
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
47
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
49
+ decodeFunctionResult(
50
+ functionFragment: "transferFrom",
51
+ data: BytesLike
52
+ ): Result;
53
+ }
54
+
55
+ export interface IERC20 extends BaseContract {
56
+ connect(runner?: ContractRunner | null): IERC20;
57
+ waitForDeployment(): Promise<this>;
58
+
59
+ interface: IERC20Interface;
60
+
61
+ queryFilter<TCEvent extends TypedContractEvent>(
62
+ event: TCEvent,
63
+ fromBlockOrBlockhash?: string | number | undefined,
64
+ toBlock?: string | number | undefined
65
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
66
+ queryFilter<TCEvent extends TypedContractEvent>(
67
+ filter: TypedDeferredTopicFilter<TCEvent>,
68
+ fromBlockOrBlockhash?: string | number | undefined,
69
+ toBlock?: string | number | undefined
70
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
71
+
72
+ on<TCEvent extends TypedContractEvent>(
73
+ event: TCEvent,
74
+ listener: TypedListener<TCEvent>
75
+ ): Promise<this>;
76
+ on<TCEvent extends TypedContractEvent>(
77
+ filter: TypedDeferredTopicFilter<TCEvent>,
78
+ listener: TypedListener<TCEvent>
79
+ ): Promise<this>;
80
+
81
+ once<TCEvent extends TypedContractEvent>(
82
+ event: TCEvent,
83
+ listener: TypedListener<TCEvent>
84
+ ): Promise<this>;
85
+ once<TCEvent extends TypedContractEvent>(
86
+ filter: TypedDeferredTopicFilter<TCEvent>,
87
+ listener: TypedListener<TCEvent>
88
+ ): Promise<this>;
89
+
90
+ listeners<TCEvent extends TypedContractEvent>(
91
+ event: TCEvent
92
+ ): Promise<Array<TypedListener<TCEvent>>>;
93
+ listeners(eventName?: string): Promise<Array<Listener>>;
94
+ removeAllListeners<TCEvent extends TypedContractEvent>(
95
+ event?: TCEvent
96
+ ): Promise<this>;
97
+
98
+ approve: TypedContractMethod<
99
+ [spender: AddressLike, amount: BigNumberish],
100
+ [boolean],
101
+ "nonpayable"
102
+ >;
103
+
104
+ balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
105
+
106
+ transfer: TypedContractMethod<
107
+ [to: AddressLike, amount: BigNumberish],
108
+ [boolean],
109
+ "nonpayable"
110
+ >;
111
+
112
+ transferFrom: TypedContractMethod<
113
+ [from: AddressLike, to: AddressLike, amount: BigNumberish],
114
+ [boolean],
115
+ "nonpayable"
116
+ >;
117
+
118
+ getFunction<T extends ContractMethod = ContractMethod>(
119
+ key: string | FunctionFragment
120
+ ): T;
121
+
122
+ getFunction(
123
+ nameOrSignature: "approve"
124
+ ): TypedContractMethod<
125
+ [spender: AddressLike, amount: BigNumberish],
126
+ [boolean],
127
+ "nonpayable"
128
+ >;
129
+ getFunction(
130
+ nameOrSignature: "balanceOf"
131
+ ): TypedContractMethod<[account: AddressLike], [bigint], "view">;
132
+ getFunction(
133
+ nameOrSignature: "transfer"
134
+ ): TypedContractMethod<
135
+ [to: AddressLike, amount: BigNumberish],
136
+ [boolean],
137
+ "nonpayable"
138
+ >;
139
+ getFunction(
140
+ nameOrSignature: "transferFrom"
141
+ ): TypedContractMethod<
142
+ [from: AddressLike, to: AddressLike, amount: BigNumberish],
143
+ [boolean],
144
+ "nonpayable"
145
+ >;
146
+
147
+ filters: {};
148
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { IERC20 } from "./IERC20";