Skip to content

feat: add contract interaction scripts for developers#65

Merged
dDevAhmed merged 2 commits intoDigiNodes:mainfrom
A6dulmalik:feature/interaction-scripts
Mar 28, 2026
Merged

feat: add contract interaction scripts for developers#65
dDevAhmed merged 2 commits intoDigiNodes:mainfrom
A6dulmalik:feature/interaction-scripts

Conversation

@A6dulmalik
Copy link
Copy Markdown
Contributor

  • Add stake.ts script for staking BOUNTY tokens
  • Add resolveClaim.ts script for settling claims after verification window
  • Add claimRewards.ts script for claiming rewards from settled claims
  • Update README.md with comprehensive usage instructions
  • Add npm scripts for easy script execution (stake, resolve-claim, claim-rewards)
  • Include example inputs and environment variable configuration
  • Document common issues and troubleshooting tips

Scripts help developers:

  • Test contracts locally with real interactions
  • Learn from working examples
  • Onboard faster to the TruthBounty protocol

Closes #50

- Add stake.ts script for staking BOUNTY tokens
- Add resolveClaim.ts script for settling claims after verification window
- Add claimRewards.ts script for claiming rewards from settled claims
- Update README.md with comprehensive usage instructions
- Add npm scripts for easy script execution (stake, resolve-claim, claim-rewards)
- Include example inputs and environment variable configuration
- Document common issues and troubleshooting tips

Scripts help developers:
- Test contracts locally with real interactions
- Learn from working examples
- Onboard faster to the TruthBounty protocol
- Create SCRIPTS_GUIDE.md with detailed examples
- Include expected outputs for each script
- Add troubleshooting section for common errors
- Document advanced usage patterns
- Provide quick reference table
@dDevAhmed dDevAhmed merged commit b79e144 into DigiNodes:main Mar 28, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Example Interaction Scripts

2 participants