Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archway-network/archway-templates
Template projects used by archway-cli
https://github.com/archway-network/archway-templates
archway blockchain blockchian cosmwasm rust smart-contracts template wasm web3
Last synced: about 2 months ago
JSON representation
Template projects used by archway-cli
- Host: GitHub
- URL: https://github.com/archway-network/archway-templates
- Owner: archway-network
- License: apache-2.0
- Created: 2021-11-12T16:27:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-08T10:47:25.000Z (11 months ago)
- Last Synced: 2024-05-19T06:02:09.496Z (4 months ago)
- Topics: archway, blockchain, blockchian, cosmwasm, rust, smart-contracts, template, wasm, web3
- Language: Rust
- Homepage: https://docs.archway.io
- Size: 252 KB
- Stars: 6
- Watchers: 6
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Archway Templates
Archway Smart Contract template projects used by the [Archway Developer CLI](https://github.com/archway-network/archway-cli).
## List of templates
- [Default](./default): a blank slate project
- [Increment](./increment): a simple smart contract that increments and resets a counter## Creating a new project from a template
### Recommended way
Follow the instructions in the [Archway Setup tutorial](https://docs.archway.io/docs/create/getting-started/setup).
### Using cargo-generate
Assuming you have a recent version of rust and cargo (v1.51.0+) installed (via [rustup](https://rustup.rs/)),
then the following should get you a new repo to start a contract:Install [cargo-generate](https://github.com/ashleygwilliams/cargo-generate) and cargo-run-script.
If you didn't install them already, run the following commands:```sh
cargo install cargo-generate --features vendored-openssl
cargo install cargo-run-script
```Now, use it to create your new contract.
Go to the folder in which you want to place it and run:```sh
cargo generate --git archway-network/archway-templates.git --name PROJECT_NAME default
```You will now have a new folder called `PROJECT_NAME` (I hope you changed that to something else)
containing a simple working contract and build system that you can customize.