bafnetwork / bafnetwork/baf-badges

Make `dev-deploy.sh` only deploy contract when it changes

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
good first issue ops
Dominant language
TypeScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

RN, `dev-deploy.sh` always redeploys the contract. This is slow, unnecessary, and it bloats NEAR's testnet.

Tasks:
- [ ] Create a script that: 1) checksums the contract source, 2) if a checksum file (let's call it `contract.sum`) DNE or it contains a different checksum, then write to the checksum file and output a truthy value, otherwise output a falsy value
- [ ] In `dev-deploy.sh`, only deploy the contract if the checksum script outputs a truthy value.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading dev-deploy.sh and locating the contract source it deploys. Review how the deployment command is invoked, then verify the checksum script's truthy and falsy outcomes and confirm that repeated runs skip unchanged contracts while changed contracts still deploy.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
blockchain, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.