Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 2.41 KB

pull_request_template.md

File metadata and controls

46 lines (39 loc) · 2.41 KB

Bot name here

Types of changes

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):

New Bot PR readiness

  • npm install command works (i.e. package-lock is updated properly)
  • The name and description fields of package.json describe the bot properly
  • All the libraries listed in package.json are being used
  • All the development libraries are in devDependencies section of package.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 start works 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.json are 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.all is used whenever possible)
  • The findings fields are filled out correctly
  • Findings protocol is specified (if the bot is for a specific one)
  • metadata of the findings contains all the information needed.
  • The SDK methods are being used appropriately (e.g. filterLog, filterFunction, getEthersProvider)
  • ABIs match the contracts used / args used from LogDescriptions exists in the ABIs
  • 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)
  • repository is added in the package.json

Comments (optional)

If there is some useful information or important note for reviewing/understanding this bot please describe it here.