-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
5 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
[workspace] | ||
# let members inline | ||
members = ["package", "contracts/otcer", "tests", "scripts"] | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Giacomo Encicliati <[email protected]>"] | ||
authors = ["Rhaki"] | ||
|
||
|
||
[workspace.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright 2023 Giacomo Encicliati <[email protected]> | ||
Copyright 2023 Rhaki | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
## CosmWasm contracts template workspace enable | ||
# OTCer: Over-The-Counter Token Exchange Protocol | ||
|
||
Advanced tool to generate CosmWasm template for advanced project | ||
|
||
### Create new repo: | ||
|
||
```ssh | ||
cargo generate --git https://github.com/Rhaki/rhaki-cw-template.git --name project_name | ||
``` | ||
|
||
The repo will be created with `workspace` defined on the primary `Cargo.toml` | ||
|
||
### Add a contract into the project: | ||
``` | ||
cargo make add-contract | ||
``` | ||
|
||
This command launches a python script that: | ||
- Create a new folder structure for the contract at the path `./contracts/`; | ||
- Adds the new contract to members in the `workspace`; | ||
- Create a new file inside `./package/src/` | ||
- Insert the export of the new file created in `./package/src/lib.rs` | ||
OTCer is a pioneering protocol designed to facilitate the seamless exchange of native tokens, CW20 tokens, and NFTs between two users. The protocol allows for the specification of multiple items by both parties involved in the OTC. Additionally, OTCer supports the customization of cliff and vesting periods for each individual item being exchanged. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters