Skip to content

Commit fd46d8d

Browse files
committed
Migrate to cryptape organization
1 parent 86f4ec1 commit fd46d8d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The following dependencies are required for the templates:
2323
To generate a workspace template, use the following command:
2424

2525
```
26-
$ cargo generate gh:xxuejie/ckb-script-templates workspace
27-
⚠️ Favorite `gh:xxuejie/ckb-script-templates` not found in config, using it as a git repository: https://github.com/xxuejie/ckb-script-templates.git
26+
$ cargo generate gh:cryptape/ckb-script-templates workspace
27+
⚠️ Favorite `gh:cryptape/ckb-script-templates` not found in config, using it as a git repository: https://github.com/cryptape/ckb-script-templates.git
2828
🤷 Project Name: my-first-contract-workspace
2929
🔧 Destination: /tmp/my-first-contract-workspace ...
3030
🔧 project-name: my-first-contract-workspace ...
@@ -37,8 +37,8 @@ $ cargo generate gh:xxuejie/ckb-script-templates workspace
3737
Or you can manually specify the name and skip the prompt:
3838

3939
```
40-
$ cargo generate gh:xxuejie/ckb-script-templates workspace --name my-first-contract-workspace
41-
⚠️ Favorite `gh:xxuejie/ckb-script-templates` not found in config, using it as a git repository: https://github.com/xxuejie/ckb-script-templates.git
40+
$ cargo generate gh:cryptape/ckb-script-templates workspace --name my-first-contract-workspace
41+
⚠️ Favorite `gh:cryptape/ckb-script-templates` not found in config, using it as a git repository: https://github.com/cryptape/ckb-script-templates.git
4242
🔧 Destination: /tmp/my-first-contract-workspace ...
4343
🔧 project-name: my-first-contract-workspace ...
4444
🔧 Generating template ...
@@ -50,9 +50,9 @@ $ cargo generate gh:xxuejie/ckb-script-templates workspace --name my-first-contr
5050
This is probably the only longer command you will deal with when using the templates repository. You can save them as an alias in your shell:
5151

5252
```
53-
$ alias create-ckb-scripts="cargo generate gh:xxuejie/ckb-script-templates workspace"
53+
$ alias create-ckb-scripts="cargo generate gh:cryptape/ckb-script-templates workspace"
5454
$ create-ckb-scripts
55-
⚠️ Favorite `gh:xxuejie/ckb-script-templates` not found in config, using it as a git repository: https://github.com/xxuejie/ckb-script-templates.git
55+
⚠️ Favorite `gh:cryptape/ckb-script-templates` not found in config, using it as a git repository: https://github.com/cryptape/ckb-script-templates.git
5656
🤷 Project Name: my-first-contract-workspace
5757
🔧 Destination: /tmp/my-first-contract-workspace ...
5858
🔧 project-name: my-first-contract-workspace ...
@@ -137,7 +137,7 @@ $ make generate CRATE=second-contract
137137
✨ Done! New project created /tmp/my-first-contract-workspace/contracts/second-contract
138138
```
139139

140-
By default, the newly created crate is using [contract](https://github.com/xxuejie/ckb-script-templates/tree/main/contract) template, which is put into `contracts` sub-folder, the workspace-level `Makefile` assumes all Rust contracts are stored in `contracts` folder, and treat crates stored in other folders as dependency-only Rust crates.
140+
By default, the newly created crate is using [contract](https://github.com/cryptape/ckb-script-templates/tree/main/contract) template, which is put into `contracts` sub-folder, the workspace-level `Makefile` assumes all Rust contracts are stored in `contracts` folder, and treat crates stored in other folders as dependency-only Rust crates.
141141

142142
But chances are you would want to tweak the default settings in certain scenarios:
143143

@@ -195,11 +195,11 @@ The templates provided here, use the same conventions as `ckb-native-build-sampl
195195

196196
### Standalone Contract Crate
197197

198-
In rare cases if you want to simply use a standalone contract crate without a workspace. The [standalone-contract](https://github.com/xxuejie/ckb-script-templates/tree/main/standalone-contract) template is prepared for you:
198+
In rare cases if you want to simply use a standalone contract crate without a workspace. The [standalone-contract](https://github.com/cryptape/ckb-script-templates/tree/main/standalone-contract) template is prepared for you:
199199

200200
```
201-
$ cargo generate gh:xxuejie/ckb-script-templates standalone-contract
202-
⚠️ Favorite `gh:xxuejie/ckb-script-templates` not found in config, using it as a git repository: https://github.com/xxuejie/ckb-script-templates.git
201+
$ cargo generate gh:cryptape/ckb-script-templates standalone-contract
202+
⚠️ Favorite `gh:cryptape/ckb-script-templates` not found in config, using it as a git repository: https://github.com/cryptape/ckb-script-templates.git
203203
🤷 Project Name: standalone-first-contract
204204
🔧 Destination: /tmp/standalone-first-contract ...
205205
🔧 project-name: standalone-first-contract ...

workspace/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ clean:
8484
cargo clean
8585

8686
TEMPLATE_TYPE := --git
87-
TEMPLATE_REPO := https://github.com/xxuejie/ckb-script-templates
87+
TEMPLATE_REPO := https://github.com/cryptape/ckb-script-templates
8888
CRATE :=
8989
TEMPLATE := contract
9090
DESTINATION := contracts

0 commit comments

Comments
 (0)