What types of changes does your code introduce?
Put an x in the boxes that apply
- New Bot
- Fix a bot error
- Update a bot logic/test/documentation
- Code style update (formatting, renaming)
- Other (please describe):
-
npm installcommand works (i.e. package-lock is updated properly) - The
nameanddescriptionfields ofpackage.jsondescribe the bot properly - All the libraries listed in
package.jsonare being used - All the development libraries are in
devDependenciessection ofpackage.json - The bot README is updated
- The bot README sufficiently describes what the bot does
- All the alerts that the bot emits are listed in the README
- The txn/block examples listed in the README generate the expected findings
- Code is easy to follow and/or properly commented
- Bot contains tests
- All tests pass when running
npm test - Tests are not making real network calls (i.e. network interaction is properly mocked)
- Tests cover all the paths (i.e. negative & positive test cases)
- When the tests complete, no warning/errors are shown
-
npm startworks without errors when executed using a jsonRpcUrl for each of the networks specified in the README - The networks specified in the README and the networks are listed in the
package.jsonare the same - The code does what the README describes
- Network calls are properly being cached (if duplicated calls can occur)
- A performance review has been done (e.g.
Promise.allis used whenever possible) - The findings fields are filled out correctly
- Findings
protocolis specified (if the bot is for a specific one) -
metadataof the findings contains all the information needed. - The SDK methods are being used appropriately (e.g.
filterLog,filterFunction,getEthersProvider) -
ABIs match the contracts used /argsused fromLogDescriptionsexists in theABIs - The bot follows Forta recommended best practices
- Bot can recover from failed error calls when they can fail (e.g. errors are being caught on calls that can fail)
-
repositoryis added in thepackage.json
If there is some useful information or important note for reviewing/understanding this bot please describe it here.