Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
57 stars 35 forks source link

Add deploy script projects to templates #324

Closed DOBEN closed 1 year ago

DOBEN commented 1 year ago

Purpose

Addresses https://github.com/Concordium/concordium-smart-contract-tools/issues/117

This PR addresses the first part: Automated flow

When creating a new smart contract project with the cargo-generate command using the default template, we provide now a deploy-scripts folder that contains some boilerplate code to deploy/initialize/update the contracts on chain. The scripts can be run with e.g. this command.

cargo run -- --node http://node.testnet.concordium.com:20000 --account ./3PXwJYYPf6fyVb4GJquxSZU8puxrHfzc4XogdMVot8MUQK53tW.export --modules ./default.wasm.v1 --modules ./default2.wasm.v1

Changes