Skip to content

Commit e4fecc8

Browse files
committedSep 10, 2021
replace all remaining examples of cosmwasm-plus to cw-plus
1 parent 71da345 commit e4fecc8

File tree

14 files changed

+42
-42
lines changed

14 files changed

+42
-42
lines changed
 

‎CONTRACTS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ the interfaces defined in `packages/cw*`.
66
## Creating a new contract
77

88
Use [`cosmwasm-template`](https://github.com/CosmWasm/cosmwasm-template) as a
9-
basis, in particular the `cosmwasm-plus` branch.
9+
basis, in particular the `cw-plus` branch.
1010

1111
```bash
1212
cd contracts
13-
cargo generate --git https://github.com/CosmWasm/cosmwasm-template.git --branch cosmwasm-plus --name PROJECT_NAME
13+
cargo generate --git https://github.com/CosmWasm/cosmwasm-template.git --branch cw-plus --name PROJECT_NAME
1414
cd PROJECT_NAME
1515
rm -rf .git
1616
rm .gitignore

‎PATTERNS.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ with some clever use of the existing system.
3131
The first case is where we want to do action A, then finish our processing.
3232
A clear example is in `cw20-staking`, where we want to withdraw all rewards
3333
from the validator, then reinvest them, as one atomic operation.
34-
In this case, we simply [return 2 messages](https://github.com/CosmWasm/cosmwasm-plus/blob/master/contracts/cw20-staking/src/contract.rs#L383-L395),
34+
In this case, we simply [return 2 messages](https://github.com/CosmWasm/cw-plus/blob/master/contracts/cw20-staking/src/contract.rs#L383-L395),
3535
the first one calling the staking module, and the second one calling a
3636
protected function on our own contract `_BondAllTokens`.
3737
At the beginning of `_BondAllTokens`, we ensure this is
38-
[called by our own contract](https://github.com/CosmWasm/cosmwasm-plus/blob/master/contracts/cw20-staking/src/contract.rs#L408-L410)
38+
[called by our own contract](https://github.com/CosmWasm/cw-plus/blob/master/contracts/cw20-staking/src/contract.rs#L408-L410)
3939
to keep this a private callback and not a public entry point.
4040

4141
The second case is where we want to get a result from the call, such as
@@ -136,11 +136,11 @@ registers on `cw4-group` to be informed of any changes to the voting set.
136136
This is essential to manage proper vote counts when the voting set changes
137137
while a proposal is open.
138138

139-
* [Definition of the hooks in cw4 spec](https://github.com/CosmWasm/cosmwasm-plus/blob/c5e8fc92c0412fecd6cdd951c2c0261aa3c9445a/packages/cw4/src/hook.rs)
140-
* [Adding/removing hooks](https://github.com/CosmWasm/cosmwasm-plus/blob/11400ddcc18d56961b0592a655e3da9cba7fd5d8/contracts/cw4-group/src/contract.rs#L156-L190) - which may be refactored into common code
141-
* [Dispatching updates to all registered hooks](https://github.com/CosmWasm/cosmwasm-plus/blob/11400ddcc18d56961b0592a655e3da9cba7fd5d8/contracts/cw4-group/src/contract.rs#L91-L98)
142-
* [`cw3-flex-multisig` registers ExecuteMsg variant](https://github.com/CosmWasm/cosmwasm-plus/blob/0e58f7ebc24c8a16d27e04a0507bac2e11489d0b/contracts/cw3-flex-multisig/src/msg.rs#L126-L127)
143-
* [`cw3-flex-multisig` updates state based on the hook](https://github.com/CosmWasm/cosmwasm-plus/blob/61f436c2203bde7770d9b13724e6548ba26615e7/contracts/cw3-flex-multisig/src/contract.rs#L276-L309)
139+
* [Definition of the hooks in cw4 spec](https://github.com/CosmWasm/cw-plus/blob/c5e8fc92c0412fecd6cdd951c2c0261aa3c9445a/packages/cw4/src/hook.rs)
140+
* [Adding/removing hooks](https://github.com/CosmWasm/cw-plus/blob/11400ddcc18d56961b0592a655e3da9cba7fd5d8/contracts/cw4-group/src/contract.rs#L156-L190) - which may be refactored into common code
141+
* [Dispatching updates to all registered hooks](https://github.com/CosmWasm/cw-plus/blob/11400ddcc18d56961b0592a655e3da9cba7fd5d8/contracts/cw4-group/src/contract.rs#L91-L98)
142+
* [`cw3-flex-multisig` registers ExecuteMsg variant](https://github.com/CosmWasm/cw-plus/blob/0e58f7ebc24c8a16d27e04a0507bac2e11489d0b/contracts/cw3-flex-multisig/src/msg.rs#L126-L127)
143+
* [`cw3-flex-multisig` updates state based on the hook](https://github.com/CosmWasm/cw-plus/blob/61f436c2203bde7770d9b13724e6548ba26615e7/contracts/cw3-flex-multisig/src/contract.rs#L276-L309)
144144

145145
### Listeners
146146

@@ -177,7 +177,7 @@ He was just an admin briefly in the deploy script, so he could swap
177177
out the permissions once the other contracts were set up.
178178

179179
As an example, we use this pattern when
180-
[setting up the `cw3-flex-multisig` test cases](https://github.com/CosmWasm/cosmwasm-plus/blob/61f436c2203bde7770d9b13724e6548ba26615e7/contracts/cw3-flex-multisig/src/contract.rs#L572-L591).
180+
[setting up the `cw3-flex-multisig` test cases](https://github.com/CosmWasm/cw-plus/blob/61f436c2203bde7770d9b13724e6548ba26615e7/contracts/cw3-flex-multisig/src/contract.rs#L572-L591).
181181
The multisig needs to know the group to query memberships, and the group
182182
needs to have a registered hook to the multisig to update it. We set them
183183
up as "OWNER" and then step down, leaving the contracts pointing to each other.

‎README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CosmWasm Plus
22

3-
[![CircleCI](https://circleci.com/gh/CosmWasm/cosmwasm-plus/tree/master.svg?style=shield)](https://circleci.com/gh/CosmWasm/cosmwasm-plus/tree/master)
3+
[![CircleCI](https://circleci.com/gh/CosmWasm/cw-plus/tree/master.svg?style=shield)](https://circleci.com/gh/CosmWasm/cw-plus/tree/master)
44

55
| Specification | Crates.io | Docs |
66
| ---------------- | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------|
@@ -21,21 +21,21 @@
2121

2222
| Contracts | Download | Docs |
2323
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------|
24-
| cw1-subkeys | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw1_subkeys.wasm) | [![Docs](https://docs.rs/cw1-subkeys/badge.svg)](https://docs.rs/cw1-subkeys) |
25-
| cw1-whitelist | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw1_whitelist.wasm) | [![Docs](https://docs.rs/cw1-whitelist/badge.svg)](https://docs.rs/cw1-whitelist) |
26-
| cw3-fixed-multisig | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw3_fixed_multisig.wasm) | [![Docs](https://docs.rs/cw3-fixed-multisig/badge.svg)](https://docs.rs/cw3-fixed-multisig) |
27-
| cw3-flex-multisig | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw3_flex_multisig.wasm) | [![Docs](https://docs.rs/cw3-flex-multisig/badge.svg)](https://docs.rs/cw3-flex-multisig) |
28-
| cw4-group | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw4_group.wasm) | [![Docs](https://docs.rs/cw4-group/badge.svg)](https://docs.rs/cw4-group) |
29-
| cw4-stake | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw4_stake.wasm) | [![Docs](https://docs.rs/cw4-stake/badge.svg)](https://docs.rs/cw4-stake) |
30-
| cw20-atomic-swap | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_atomic_swap.wasm) | [![Docs](https://docs.rs/cw20-atomic-swap/badge.svg)](https://docs.rs/cw20-atomic-swap) |
31-
| cw20-base | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_base.wasm) | [![Docs](https://docs.rs/cw20-base/badge.svg)](https://docs.rs/cw20-base) |
32-
| cw20-bonding | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_bonding.wasm) | [![Docs](https://docs.rs/cw20-bonding/badge.svg)](https://docs.rs/cw20-bonding) |
33-
| cw20-escrow | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_escrow.wasm) | [![Docs](https://docs.rs/cw20-escrow/badge.svg)](https://docs.rs/cw20-escrow) |
34-
| cw20-ics20 | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_ics20.wasm) | [![Docs](https://docs.rs/cw20-ics20/badge.svg)](https://docs.rs/cw20-ics20) |
35-
| cw20-staking | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_staking.wasm) | [![Docs](https://docs.rs/cw20-staking/badge.svg)](https://docs.rs/cw20-staking) |
36-
| cw20-merkle-airdrop | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_merkle_airdrop.wasm) | [![Docs](https://docs.rs/cw20-merkle-airdrop/badge.svg)](https://docs.rs/cw20-merkle-airdrop) |
37-
| cw721-base | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw721_base.wasm) | [![Docs](https://docs.rs/cw721-base/badge.svg)](https://docs.rs/cw721-base) |
38-
| cw1155-base | [Release v0.8.1](https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw1155_base.wasm) | [![Docs](https://docs.rs/cw1155-base/badge.svg)](https://docs.rs/cw1155-base) |
24+
| cw1-subkeys | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw1_subkeys.wasm) | [![Docs](https://docs.rs/cw1-subkeys/badge.svg)](https://docs.rs/cw1-subkeys) |
25+
| cw1-whitelist | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw1_whitelist.wasm) | [![Docs](https://docs.rs/cw1-whitelist/badge.svg)](https://docs.rs/cw1-whitelist) |
26+
| cw3-fixed-multisig | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw3_fixed_multisig.wasm) | [![Docs](https://docs.rs/cw3-fixed-multisig/badge.svg)](https://docs.rs/cw3-fixed-multisig) |
27+
| cw3-flex-multisig | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw3_flex_multisig.wasm) | [![Docs](https://docs.rs/cw3-flex-multisig/badge.svg)](https://docs.rs/cw3-flex-multisig) |
28+
| cw4-group | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw4_group.wasm) | [![Docs](https://docs.rs/cw4-group/badge.svg)](https://docs.rs/cw4-group) |
29+
| cw4-stake | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw4_stake.wasm) | [![Docs](https://docs.rs/cw4-stake/badge.svg)](https://docs.rs/cw4-stake) |
30+
| cw20-atomic-swap | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_atomic_swap.wasm) | [![Docs](https://docs.rs/cw20-atomic-swap/badge.svg)](https://docs.rs/cw20-atomic-swap) |
31+
| cw20-base | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_base.wasm) | [![Docs](https://docs.rs/cw20-base/badge.svg)](https://docs.rs/cw20-base) |
32+
| cw20-bonding | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_bonding.wasm) | [![Docs](https://docs.rs/cw20-bonding/badge.svg)](https://docs.rs/cw20-bonding) |
33+
| cw20-escrow | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_escrow.wasm) | [![Docs](https://docs.rs/cw20-escrow/badge.svg)](https://docs.rs/cw20-escrow) |
34+
| cw20-ics20 | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_ics20.wasm) | [![Docs](https://docs.rs/cw20-ics20/badge.svg)](https://docs.rs/cw20-ics20) |
35+
| cw20-staking | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_staking.wasm) | [![Docs](https://docs.rs/cw20-staking/badge.svg)](https://docs.rs/cw20-staking) |
36+
| cw20-merkle-airdrop | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw20_merkle_airdrop.wasm) | [![Docs](https://docs.rs/cw20-merkle-airdrop/badge.svg)](https://docs.rs/cw20-merkle-airdrop) |
37+
| cw721-base | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw721_base.wasm) | [![Docs](https://docs.rs/cw721-base/badge.svg)](https://docs.rs/cw721-base) |
38+
| cw1155-base | [Release v0.8.1](https://github.com/CosmWasm/cw-plus/releases/download/v0.8.1/cw1155_base.wasm) | [![Docs](https://docs.rs/cw1155-base/badge.svg)](https://docs.rs/cw1155-base) |
3939

4040
This is a collection of specification and contracts designed for
4141
use on real networks. They are designed not just as examples, but to
@@ -76,8 +76,8 @@ can handle many different fungible tokens, as long as they all adhere to
7676
the cw20 specification.
7777

7878
If you have ideas for new specifications or want to make enhancements to
79-
existing spec, please [raise an issue](https://github.com/CosmWasm/cosmwasm-plus/issues)
80-
or [create a pull request](https://github.com/CosmWasm/cosmwasm-plus/pulls) on this repo.
79+
existing spec, please [raise an issue](https://github.com/CosmWasm/cw-plus/issues)
80+
or [create a pull request](https://github.com/CosmWasm/cw-plus/pulls) on this repo.
8181

8282
## Contracts
8383

‎contracts/cw1-subkeys/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ sha256sum cw1_subkeys.wasm
9090
```
9191

9292
Or for a production-ready (optimized) build, run a build command in the
93-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
93+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw1-whitelist/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ sha256sum cw1_whitelist.wasm
4141
```
4242

4343
Or for a production-ready (optimized) build, run a build command in the
44-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
44+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw20-atomic-swap/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ sha256sum cw20_atomic_swap.wasm
4545
```
4646

4747
Or for a production-ready (optimized) build, run a build command in the
48-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
48+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw20-base/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sha256sum cw20_base.wasm
2929
```
3030

3131
Or for a production-ready (optimized) build, run a build command in the
32-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
32+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.
3333

3434
## Importing this contract
3535

‎contracts/cw20-escrow/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ sha256sum cw20_escrow.wasm
4343
```
4444

4545
Or for a production-ready (optimized) build, run a build command in the
46-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
46+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw20-ics20/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ unordered channels for the version negotiation. Once established, it manages a l
1818
[ts-relayer](https://github.com/confio/ts-relayer) `ibc-setup ics20` command to create these.
1919

2020
After there is at least one channel, you can send any CW20 token to this contract via the
21-
[receiver pattern](https://github.com/CosmWasm/cosmwasm-plus/blob/master/packages/cw20/README.md#receiver).
21+
[receiver pattern](https://github.com/CosmWasm/cw-plus/blob/master/packages/cw20/README.md#receiver).
2222
The receive message must contain the channel to send over and the remote address to send to. It may optionally
2323
include a custom timeout.
2424

‎contracts/cw3-fixed-multisig/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ sha256sum cw3_fixed_multisig.wasm
6262
```
6363

6464
Or for a production-ready (optimized) build, run a build command in the
65-
repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
65+
repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw3-flex-multisig/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ sha256sum cw3_fixed_multisig.wasm
8686
```
8787

8888
Or for a production-ready (optimized) build, run a build command in
89-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
89+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.

‎contracts/cw721-base/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Implements:
99

1010
- [x] CW721 Base
1111
- [x] Metadata extension
12-
- [ ] Enumerable extension (AllTokens done, but not Tokens - requires [#81](https://github.com/CosmWasm/cosmwasm-plus/issues/81))
12+
- [ ] Enumerable extension (AllTokens done, but not Tokens - requires [#81](https://github.com/CosmWasm/cw-plus/issues/81))
1313

1414
## Implementation
1515

@@ -47,7 +47,7 @@ sha256sum cw20_base.wasm
4747
```
4848

4949
Or for a production-ready (optimized) build, run a build command in the
50-
the repository root: https://github.com/CosmWasm/cosmwasm-plus#compiling.
50+
the repository root: https://github.com/CosmWasm/cw-plus#compiling.
5151

5252
## Importing this contract
5353

‎packages/multi-test/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Warning: **Alpha Software** Designed for internal use only.
44

5-
This is used for testing cosmwasm-plus contracts, we have no API
5+
This is used for testing cw-plus contracts, we have no API
66
stability currently. We are working on refactoring it and will
77
expose a more refined version for use in other contracts. (Ideally
8-
in cosmwasm-plus 0.9 or 0.10).
8+
in cw-plus 0.9 or 0.10).
99

1010
**Use at your own risk**
1111

‎packages/storage-plus/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ more powerful and easy to use interfaces. Here are those interfaces.
66

77
**Status: experimental**
88

9-
You currently should not be using this crate outside of the `cosmwasm-plus`
9+
You currently should not be using this crate outside of the `cw-plus`
1010
repo. This is a first draft of many types. We will update the status
1111
after they have been used more heavily and the interfaces stabilized.
1212

@@ -386,7 +386,7 @@ fn demo() -> StdResult<()> {
386386

387387
## IndexedMap
388388

389-
In cosmwasm-plus, there's currently one example of `IndexedMap` usage, in the `cw721-base` contract.
389+
In cw-plus, there's currently one example of `IndexedMap` usage, in the `cw721-base` contract.
390390
Let's use it to illustrate `IndexedMap` definition and usage.
391391

392392
### Definition

0 commit comments

Comments
 (0)
Please sign in to comment.