crypto-bug-hunters / bug-buster

🪲 Bug Buster, a bug bounty platform powered by Cartesi Rollups
https://x.com/BugBusterApp
Apache License 2.0
10 stars 10 forks source link

Write Typescript CLI #79

Open guidanoli opened 5 months ago

guidanoli commented 5 months ago

On #48, we're using cast to send transactions to the input box. One problem with this approach is that, in some systems, such as Linux, the argument size is limiting the size of inputs being sent to the InputBox. For some bounties, such as SQLite, this limitation is prohibitive.

Another approach would be to use go-ethereum, but that seems too complicated and low-level.

We could use sunodo send, but the argument size would also be limited.

An alternative is to write a CLI in Typescript using oclif or commander, and sending transactions with viem. This is not limited by the system's argument size, and we can reuse the state definitions used by the front-end.