Skip to content

Commit

Permalink
Rename atomic-swap to cw20-atomic-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Aug 30, 2020
1 parent f0664a5 commit 1a23dc9
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ workflows:
version: 2
test:
jobs:
- contract_atomic_swap
- contract_cw20_atomic_swap
- contract_cw1_subkeys
- contract_cw1_whitelist
- contract_cw20_base
Expand All @@ -26,10 +26,10 @@ workflows:
ignore: /.*/

jobs:
contract_atomic_swap:
contract_cw20_atomic_swap:
docker:
- image: rust:1.44.1
working_directory: ~/project/contracts/atomic-swap
working_directory: ~/project/contracts/cw20-atomic-swap
steps:
- checkout:
path: ~/project
Expand All @@ -38,7 +38,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-atomic-swap-rust:1.44.1-{{ checksum "~/project/Cargo.lock" }}
- cargocache-cw20-atomic-swap-rust:1.44.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Add wasm32 target
command: rustup target add wasm32-unknown-unknown
Expand All @@ -65,7 +65,7 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-atomic-swap-rust:1.44.1-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-cw20-atomic-swap-rust:1.44.1-{{ checksum "~/project/Cargo.lock" }}

contract_cw1_subkeys:
docker:
Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
members = ["packages/*", "contracts/*"]

[profile.release.package.atomic-swap]
[profile.release.package.cw20-atomic-swap]
opt-level = 3
debug = false
debug-assertions = false
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "atomic-swap"
name = "cw20-atomic-swap"
version = "0.1.0"
authors = ["Mauro Lacy <maurolacy@users.noreply.github.com>"]
edition = "2018"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Once you are happy with the content, you can compile it to wasm via:

```
RUSTFLAGS='-C link-arg=-s' cargo wasm
cp ../../target/wasm32-unknown-unknown/release/atomic_swap.wasm .
ls -l atomic_swap.wasm
sha256sum atomic_swap.wasm
cp ../../target/wasm32-unknown-unknown/release/cw20_atomic_swap.wasm .
ls -l cw20_atomic_swap.wasm
sha256sum cw20_atomic_swap.wasm
```

Or for a production-ready (compressed) build, run the following from the
Expand All @@ -51,6 +51,6 @@ repository root (not currently working with this monorepo...)
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="cosmwasm_plus_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.9.0 ./contracts/atomic-swap
mv contract.wasm atomic_swap.wasm
cosmwasm/rust-optimizer:0.9.0 ./contracts/cw20-atomic-swap
mv contract.wasm cw20_atomic_swap.wasm
```
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::msg::{
use crate::state::{all_swap_ids, atomic_swaps, atomic_swaps_read, AtomicSwap};

// Version info, for migration info
const CONTRACT_NAME: &str = "crates.io:atomic-swap";
const CONTRACT_NAME: &str = "crates.io:cw20-atomic-swap";
const CONTRACT_VERSION: &str = "v0.1.0";

pub fn init<S: Storage, A: Api, Q: Querier>(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1a23dc9

Please sign in to comment.