You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frequency mainnet and testnet have well-known Ids defined in `dsnp/index.ts`.
31
-
Other configurations default to assuming `npm run deploy` has been run on a fresh chain (which is usually the case for a localhost instance), but can be overridden:
30
+
The API connection is used only to identify the chain by its genesis hash.
31
+
32
+
Frequency chains have well-known Ids defined in `dsnp/index.ts`.
33
+
However, it is possible to configure a custom mapping if needed:
by default it will deploy to the `localhost` node on port 9944 using the Alice sudo test account.
81
83
@@ -92,12 +94,6 @@ e.g.
92
94
DEPLOY_SCHEMA_ACCOUNT_URI="//Bob" DEPLOY_SCHEMA_ENDPOINT_URL="ws://127.0.0.1:9944" npm run deploy profile-resources
93
95
```
94
96
95
-
### To register a single schema
96
-
97
-
e.g. To register the "profile-resources" schema
98
-
99
-
npm run deploy profile-resources
100
-
101
97
**Note:** Requires a sudo key if deploying to a testnet.
102
98
Mainnet will use the proposal system (`proposeToCreateSchema`).
103
99
@@ -181,31 +177,3 @@ This script will look up and verify schemas in the schema registry that match th
181
177
```sh
182
178
DEPLOY_SCHEMA_ENDPOINT_URL="ws://127.0.0.1:9944" npm run find
183
179
```
184
-
185
-
## Use with Docker
186
-
187
-
This repo deploys `dsnp/instant-seal-node-with-deployed-schemas` to Docker Hub.
188
-
It is based on a [Frequency Standalone Docker](https://hub.docker.com/r/frequencychain/standalone-node) with the schemas automatically deployed on top of it with the image defaults including using "instant sealing" mode.
189
-
190
-
Note: `--platform=linux/amd64` is because as `frequencychain` images are only published for the `linux/amd64` platform.
To match with the Frequency version, a new tag should be pushed to update the docker version of this image each time frequency releases a new version.
203
-
The following steps explain how to properly do a release for this.
204
-
1. Go to the [Frequency repo](https://github.com/frequency-chain/frequency/releases) to see what the latest release version is.
205
-
2. In this repo, check that main is properly [passing its tests and building here](https://github.com/LibertyDSNP/schemas/actions)
206
-
3. Go to main: `git checkout main && git pull --rebase`
207
-
4. Make sure to pull all latest tags as well: `git pull --tags`
208
-
5. Tag the build to match the frequency version but appended with "docker/": `git tag docker/{insert version number}`. For example, if the version number is v1.0.0, then the tag should be `docker/v1.0.0`
209
-
Push the tag up: `git push --tags`
210
-
6. Monitor the [build](https://github.com/LibertyDSNP/schemas/actions)
211
-
7. When that finishes successfully, check [Docker Hub](https://hub.docker.com/r/dsnp/instant-seal-node-with-deployed-schemas/tags) to verify that the image was pushed up
0 commit comments