Skip to content

Commit

Permalink
Merge pull request #45 from nervosnetwork/v1.1-ckb-18-decimals
Browse files Browse the repository at this point in the history
feat: change Layer2 CKB decimals to 18
  • Loading branch information
Flouse committed May 8, 2022
2 parents 907c82a + cd74891 commit 32b696d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,5 @@ jobs:
with:
gw_prebuild_image_name: ${{ needs.docker-build-push.outputs.image_name }}
gw_prebuild_image_tag: ${{ needs.docker-build-push.outputs.image_tag }}
kicker_ref: refs/pull/226/head # https://github.com/RetricSu/godwoken-kicker/pull/226
kicker_ref: compatibility-changes # https://github.com/RetricSu/godwoken-kicker/commits/compatibility-changes
# gw_prebuild_image_digest: ${{ needs.docker-build-push.outputs.image_digest }}
8 changes: 4 additions & 4 deletions Dockerfile.fast
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ RUN apt-get update \

# ckb
RUN cd /ckb \
&& curl -LO https://github.com/nervosnetwork/ckb/releases/download/v0.101.7/ckb_v0.101.7_x86_64-unknown-linux-gnu.tar.gz \
&& tar xzf ckb_v0.101.7_x86_64-unknown-linux-gnu.tar.gz \
&& cp ckb_v0.101.7_x86_64-unknown-linux-gnu/ckb /bin/ckb \
&& cp ckb_v0.101.7_x86_64-unknown-linux-gnu/ckb-cli /bin/ckb-cli \
&& curl -LO https://github.com/nervosnetwork/ckb/releases/download/v0.103.0/ckb_v0.103.0_x86_64-unknown-linux-gnu.tar.gz \
&& tar xzf ckb_v0.103.0_x86_64-unknown-linux-gnu.tar.gz \
&& cp ckb_v0.103.0_x86_64-unknown-linux-gnu/ckb /bin/ckb \
&& cp ckb_v0.103.0_x86_64-unknown-linux-gnu/ckb-cli /bin/ckb-cli \
&& rm -rf /ckb

# ckb-indexer
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ POLYJUICE_REPO := https://github.com/nervosnetwork/godwoken-polyjuice.git
OMNI_LOCK_REPO := https://github.com/nervosnetwork/ckb-production-scripts.git

# components tags
GODWOKEN_REF := fix-tool-wait_for_l2_tx
GODWOKEN_SCRIPTS_REF := refs/pull/116/head
POLYJUICE_REF := refs/pull/138/head # https://github.com/nervosnetwork/godwoken-polyjuice/pull/138
GODWOKEN_REF := v1.1.0-beta # https://github.com/nervosnetwork/godwoken/releases/tag/v1.1.0-beta
GODWOKEN_SCRIPTS_REF := v1.1.0-beta # https://github.com/nervosnetwork/godwoken-scripts/releases/tag/v1.1.0-beta
POLYJUICE_REF := v1.1.4-beta # https://github.com/nervosnetwork/godwoken-polyjuice/releases/tag/v1.1.4-beta
OMNI_LOCK_REF := rc_lock

define prepare_repo
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
godwoken-docker-prebuilds
=========================

Docker image containing all binaries used by godwoken, saving you the hassles of building them yourself.
Docker image containing all binaries used by Godwoken, saving you the hassles of building them yourself.

How to build:

```bash
$ make build-components



$ docker build . -t godwoken-prebuilds
```

Expand All @@ -22,9 +19,9 @@ $ # build and push to docker-hub, will ask you to enter image tag
$ make build-push
```

# Usage
## Usage

`godwoken` binary resides in `/bin/godwoken`, this is already in PATH so you can do this:
`Godwoken` binary resides in `/bin/godwoken`, this is already in PATH so you can do this:

```bash
$ docker run --rm godwoken-prebuilds godwoken --version
Expand All @@ -44,7 +41,14 @@ $ docker run --rm godwoken-prebuilds ckb-cli --version
$ docker run --rm godwoken-prebuilds ckb-indexer --version
```

All the scripts used by godwoken can be found at `/scripts` folder:
## Check the reference of every component
```bash
docker inspect godwoken-prebuilds:[TAG] | egrep ref.component
```

## Scripts

All the scripts used by Godwoken can be found at `/scripts` folder:

```bash
$ docker run --rm godwoken-prebuilds find /scripts -type f -exec sha1sum {} \;
Expand Down

0 comments on commit 32b696d

Please sign in to comment.