-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(scripts): Add easy to use deploy script for WASM contracts #9
Conversation
scripts/deploy.sh
Outdated
CONTRACT_PATH=./scripts/seda_chain_contracts.wasm | ||
INITIAL_STATE="{}" | ||
|
||
CONTRACT_DEPLOY_OUTPUT=$(seda-chaind tx wasm store $CONTRACT_PATH --from $DEPLOYER_ADDRESS --gas-prices 0.1token --gas auto --gas-adjustment 1.3 -y --output json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The token denominator on our testnet is already seda
. Should we reflect this change also in this repo? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but i'm not sure what the exact settings are to do that? @gluax can we mirror the changes from testnet to the repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this resolved by the changes we made to the testnet? @FranklinWaller or is it still an issue and I misunderstood something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gluax No just completely forgot this PR. I have modified the deploy script. Could you approve?
2d11236
to
6c7e805
Compare
6c7e805
to
6454dd6
Compare
# This is the 1st commit message: fix: fix dockerbuild for arm arch # The commit message #2 will be skipped: # fix: fix failing Dockerfile for arm architecture # The commit message #3 will be skipped: # fix: add build setup for validator script # The commit message #4 will be skipped: # feat: add testnet deployment scripts # The commit message #5 will be skipped: # feat: node setup script # The commit message #6 will be skipped: # fix: use devnet ips # The commit message #7 will be skipped: # fix: jq fix # The commit message #8 will be skipped: # fix: replace use of deprecated flag for jq # The commit message #9 will be skipped: # fix: support linux environment and address comments # The commit message #10 will be skipped: # chore: use config example to hide pvt info # The commit message #11 will be skipped: # chore: fix gitignore # The commit message #12 will be skipped: # chore: add clarifying comments # The commit message #13 will be skipped: # fix: add build setup for validator script # The commit message #14 will be skipped: # fix: add build setup for validator script # The commit message #15 will be skipped: # fix: add build setup for validator script # The commit message #16 will be skipped: # refactor: improve init command # The commit message #17 will be skipped: # fix: init cmds bug fixes and refactor # The commit message #18 will be skipped: # chore: go mod tidy # The commit message #19 will be skipped: # fix: improve condition check in init join # The commit message #20 will be skipped: # fix: enable initializing node from given validator key file # The commit message #21 will be skipped: # fix: add build setup for validator script # The commit message #22 will be skipped: # fix: add build setup for validator script
# This is the 1st commit message: fix: fix dockerbuild for arm arch # The commit message #2 will be skipped: # fix: fix failing Dockerfile for arm architecture # The commit message #3 will be skipped: # fix: add build setup for validator script # The commit message #4 will be skipped: # feat: add testnet deployment scripts # The commit message #5 will be skipped: # feat: node setup script # The commit message #6 will be skipped: # fix: use devnet ips # The commit message #7 will be skipped: # fix: jq fix # The commit message #8 will be skipped: # fix: replace use of deprecated flag for jq # The commit message #9 will be skipped: # fix: support linux environment and address comments # The commit message #10 will be skipped: # chore: use config example to hide pvt info # The commit message #11 will be skipped: # chore: fix gitignore # The commit message #12 will be skipped: # chore: add clarifying comments # The commit message #13 will be skipped: # fix: add build setup for validator script # The commit message #14 will be skipped: # fix: add build setup for validator script # The commit message #15 will be skipped: # fix: add build setup for validator script # The commit message #16 will be skipped: # refactor: improve init command # The commit message #17 will be skipped: # fix: init cmds bug fixes and refactor # The commit message #18 will be skipped: # chore: go mod tidy # The commit message #19 will be skipped: # fix: improve condition check in init join # The commit message #20 will be skipped: # fix: enable initializing node from given validator key file # The commit message #21 will be skipped: # fix: add build setup for validator script # The commit message #22 will be skipped: # fix: add build setup for validator script
Motivation
Writing out every single command to deploy a WASM file is tedious, so i wrote a small bash script that speeds up the process. You can input the deployer, contract path and initial state and it will figure out the rest.
Explanation of Changes
Add a new deploy.sh script inside of the scripts/ folder