Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhaki committed Dec 10, 2023
1 parent 1ecb221 commit 5415140
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
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]
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
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.
Expand Down
23 changes: 2 additions & 21 deletions README.md
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.
1 change: 1 addition & 0 deletions scripts/src/bin/clone_nfts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use rhaki_cw_plus::{math::IntoDecimal, traits::IntoBinary};

const GRPC_FROM: &str = "https://terra-grpc.polkachu.com:11790";
const GRPC_TO: &str = "https://terra-testnet-grpc.polkachu.com:11790";
// TEST WALLET
const SEED_PHRASE: &str =
"client duty genre image fancy image lake rescue doll thunder garage oppose source spare wise yellow moment theme bind alcohol motion tribe gas damage";
const ADDRESS_TO_CLONE: &str = "terra16ds898j530kn4nnlc7xlj6hcxzqpcxxk4mj8gkcl3vswksu6s3zszs8kp2"; // GP
Expand Down

0 comments on commit 5415140

Please sign in to comment.