Badges - Hub contract
Details
Description
Inspired by POAP, Badges is an NFT protocol that allows anyone to permissionlessly create digital badges.
The project consists of two smart contracts, badge-hub where users create, edit, or mint new badges, and badge-nft which is the actual NFT contract.
This proposal is regarding uploading the wasm binary code of badge-hub contract to the Stargaze blockchain.
The source code can be find at this repository. The binary is compiled at commit de02247 using workspace-optimizer v0.12.8. Specifically, the following command is used:
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer:v0.12.8
This results in the following SHA256 checksums:
f2099680cee548155bf51e1ece80d605ef3dbe64f10c438641891ee163adecf7 badge_hub.wasm
7dab38768447429d541afb6109cfaeeaf58feb0e1d1a30c26f491159de9fc55c badge_nft.wasm
We encourage voters to independently validate that the binary code proposed on-chain matches the Rust source code. The following command may be helpful:
starsd q gov proposal $id --output json \
| jq -r '.content.wasm_byte_code' \
| base64 -d \
| gzip -dc \
| sha256sum
where $id is the id of this proposal.
Votes