near/artifacts: Make it easier to do governance

This commit is contained in:
Josh Siegel 2022-10-12 19:29:26 +00:00 committed by Evan Gray
parent e20218b19e
commit af35d33bba
1 changed files with 3 additions and 1 deletions

View File

@ -6,11 +6,13 @@ all: node_modules build nearcore
.PHONY: artifacts
artifacts:
rm -rf $@
mkdir -p $@
@echo "Building artifacts for near"
DOCKER_BUILDKIT=1 docker build -f Dockerfile.build -t near-builder -o type=local,dest=$@ .
cd $@ && ls | xargs sha256sum > checksums.txt
../scripts/contract-upgrade-governance.sh -m token_bridge -c near -a `sha256sum artifacts/near_token_bridge.wasm | sed -e 's/ .*$//'` -o artifacts
../scripts/contract-upgrade-governance.sh -m core -c near -a `sha256sum artifacts/near_wormhole.wasm | sed -e 's/ .*$//'` -o artifacts > artifacts/README.md
build: contracts/ft/target/wasm32-unknown-unknown/release/near_ft.wasm \
contracts/mock-bridge-integration/target/wasm32-unknown-unknown/release/near_mock_bridge_integration.wasm \