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
{{ message }}
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
This patch makes it easy to connect to Stablenet via `chains> yarn repl -c stablenet`. Then you can see everything on stablenet, submit extrinsics, etc.
We additionally take a quick pass at the docs to improve them with our current state. There is more work to be done, but I've removed some truly outdated documentation and replaced some items with now-correct versions.
Note that we require the rust `nightly` toolchain as we rely on unstable features (notably `const_generics`).
35
+
Note: that we require the rust `nightly` toolchain as we rely on unstable features (notably `const_generics`). You should make `nightly` your default rust toolchain.
36
36
37
37
## Test
38
38
39
39
To test, run:
40
40
41
41
```sh
42
-
SKIP_WASM_BUILD=true cargo test --features stubnet
42
+
cargo test -- -Z unstable-options --test-threads 1
43
43
```
44
44
45
45
## Run
@@ -206,34 +206,25 @@ A FRAME pallet is compromised of a number of blockchain primitives:
206
206
207
207
### Run in Docker
208
208
209
-
First, install [Docker](https://docs.docker.com/get-docker/) and
scripts/build_release.sh m88 # replace with your milestone version
255
242
```
256
243
257
-
Where `<PLATFORM>` is your local platform used to name the binary build.
244
+
### Update the Dockerfile
258
245
259
-
### Using Github Workflows Release Process (Easier -- Recommended)
246
+
Replace the release in the Dockerfile, using your tag (e.g. here `m88`):
260
247
261
-
Github actions have been created to respond to git tags that are pushed to the repo that begin with `m`, followed by the spec version, e.g. `m3`.
262
-
263
-
This process will create a draft/prerelease that can be modified and published on github once ready.
264
-
265
-
Create a tag and push to this repo:
266
-
267
-
```sh
268
-
$ git tag -a <MILESTONE TAG><OPTIONAL COMMIT HASH>
269
-
$ git push origin <MILESTONE TAG>
248
+
```diff
249
+
- RUN scripts/pull_release.sh m16
250
+
- RUN chmod +x releases/m16/gateway-linux-x86
251
+
+ RUN scripts/pull_release.sh m88
252
+
+ RUN chmod +x releases/m88/gateway-linux-x86
270
253
```
271
254
272
-
### Manual Release Process
273
-
274
-
Cutting a release can also be accomplished manually by following the steps below.
275
-
276
-
#### Build Release Artifacts
255
+
### Update Chain Spec
277
256
278
-
Build the release artifacts using the included script:
257
+
Note: this is *only* necessary if you are deploying a new chain, the chain spec is defined at genesis.
279
258
280
259
```
281
-
$ scripts/build_release.sh <MILESTONE TAG>
260
+
$ gateway> chains/build_spec.js -r m88 -c stablenet # replace m88 with your version
282
261
```
283
262
284
-
Where `<MILESTONE TAG>` should be a sequentially increasing counter beginning with `m`, followed by the spec version, e.g. `m7`, `m8`, `m9`.
285
-
286
-
#### Upload Release Artifacts
263
+
### Using Github Workflows Release Process
287
264
288
-
The changes above should be committed to the `develop` branch and included in the version that is tagged in the repository below.
265
+
Github actions have been created to respond to git tags that are pushed to the repo that begin with `m`, followed by the spec version, e.g. `m88`.
289
266
290
-
Draft a [new release on GitHub](https://github.com/compound-finance/gateway/releases/new).
291
-
Tag it with the appropriate milestone tag.
292
-
Title it in a style similar to other releases, describing its purpose.
293
-
Put any other context or information describing what it does in the description.
267
+
This process will create a draft / pre-release that can be modified and published on github once ready.
294
268
295
-
Attach the following files to the release, from the repository where you built the release artifacts:
269
+
Create a tag and push to this repo:
296
270
297
-
```
298
-
contracts.json
299
-
gateway-darwin-arm64 # optional
300
-
gateway-darwin-arm64.checksum # optional
301
-
gateway-testnet.wasm
302
-
gateway-testnet.wasm.checksum
303
-
rpc.json
304
-
types.json
271
+
```sh
272
+
$ git tag -a m88 # use your milestone tag
273
+
$ git push origin m88
305
274
```
306
275
307
-
These files should all exist in the `releases/<MILESTONE TAG>` directory of the repository you built from,
308
-
you should be able to simply drag and drop them.
276
+
### Contributing
309
277
310
-
This will, in the future, be automated by the process of merging certain release branches into the main development branch.
278
+
Contributors are welcome, and will be held to a high standard. Please consider making an issue to discuss larger changes before making pull requests. All contributions will fall under the license on this repo, which **currently does not grant open permission of use**. Additionally, **you agree that your code will be subject to any license which is later attached to this repository as if it had been initially licensed thusly**.
0 commit comments