snsdemo
所属分类:其他
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2023-11-21 08:01:23
上 传 者:
sh-1993
说明: 以开发人员为中心的SNS部署演示
(Developer focused SNS deployment demo)
文件列表:
.demo-init (269, 2023-12-18)
bin/ (0, 2023-12-18)
bin/_subcommand-template (83, 2023-12-18)
bin/_template (1179, 2023-12-18)
bin/bashrc (228, 2023-12-18)
bin/clap.bash (4919, 2023-12-18)
bin/clap.test (5077, 2023-12-18)
bin/create-dfx-identites.sh (630, 2023-12-18)
bin/demo-cleanup (234, 2023-12-18)
bin/demo-system-subnet (618, 2023-12-18)
bin/dfx-canister (83, 2023-12-18)
bin/dfx-canister-check-wasm-hash (1644, 2023-12-18)
bin/dfx-canister-did-dump (213, 2023-12-18)
bin/dfx-canister-import-id (1816, 2023-12-18)
bin/dfx-canister-list (37, 2023-12-18)
bin/dfx-canister-nm (724, 2023-12-18)
bin/dfx-canister-set-id (1349, 2023-12-18)
bin/dfx-canister-url (6176, 2023-12-18)
bin/dfx-canister-url.test (8964, 2023-12-18)
bin/dfx-ckbtc-deploy (6352, 2023-12-18)
bin/dfx-ckbtc-deploy.test (2359, 2023-12-18)
bin/dfx-ckbtc-import (6182, 2023-12-18)
bin/dfx-ckbtc-import.test (803, 2023-12-18)
bin/dfx-convert-icp (226, 2023-12-18)
bin/dfx-crowdcontrol (83, 2023-12-18)
... ...
# SNS DEMO
This repository has a collection of tools to make it easier to manage
environments with SNS projects and other dependencies. If this sounds vague it's
because it's a bit of a kitchen sink. Some of them are described below.
The official documentation for SNS testing has moved [here](https://github.com/dfinity/sns-testing).
## Stock snapshot
A snapshot is an archive (`.tar.xz`) containing local replica state.
### Manual use
A stock snapshot can be created with
```
./bin/dfx-snapshot-stock-make
```
Snapshots can be shared between Linux machines but Macs can only use snapshots
created on the same machine (it seems).
Default pinned versions of the used canisters are defined in
`bin/versions.bash`. If you want the latest versions on the canisters from the
IC repo, you can run
```
./bin/dfx-snapshot-stock-make --ic_commit latest --ic_dir $YOUR_IC_REPO_PATH
```
The IC repo directory is needed to find the latest usable commit. You can also
specify a specific commit instead of `latest` and then you don't need to specify
`--ic_dir`.
If you want to customize what is included in the snapshot, you can modify
`bin/dfx-stock-deploy`.
The SNSes that are being deployed are configure with `sns_init.yml` as well as
the parameters passed to `ic-admin` from `bin/dfx-sns-sale-propose`.
### CI
A new stock snapshot can be released by pushing a tag:
```
RELEASE="release-$(date +"%Y-%m-%d")"
echo "$RELEASE"
git tag "$RELEASE"
git push origin "$RELEASE"
```
This will cause GitHub actions to create a new snapshot, which can be found
[here](https://github.com/dfinity/snsdemo/tags).
## Creating an SNS in GitHub CI
Please see [the GitHub workflow that tests SNS creation on Linux and Mac](.github/workflows/run.yml).
近期下载者:
相关文件:
收藏者: