Skip to content

Commit 918c390

Browse files
committed
Merge branch 'release/0.0.2'
2 parents 70c54aa + 87ffb02 commit 918c390

31 files changed

+215
-90
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "🐛 Bug"
22
description: File a bug/issue
3-
title: "[BUG] <title>"
3+
title: ":bug: <title>"
44
labels: ["bug", "triage"]
55
# projects: []
66
# assignees: []

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "✨ Feature"
22
description: Request a feature
3-
title: "[Feature] <title>"
3+
title: ":sparkles: <title>"
44
labels: ["feature", "triage"]
55
# projects: []
66
# assignees: []

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.env.*
33
/migrations/dev
44
/migrations/joyid
5-
/migrations/ckb_auth
5+
/migrations/omnilock
66

77
# CKB
88
/ckb-miner.toml

bin/deploy-to-dev-chain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bin/generate-blocks.sh 4
4040
sleep 1
4141

4242
# try twice in case the indexer has not updated yet
43-
deploy ckb_auth || deploy ckb_auth
43+
deploy omnilock || deploy omnilock
4444
bin/generate-blocks.sh 4
4545

4646
bin/use-env.sh >.env

bin/dev-faucet.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -u
5+
[ -n "${DEBUG:-}" ] && set -x || true
6+
7+
ckb-cli wallet transfer --skip-check-to-address --to-address "$1" --capacity 300000 --privkey-path specs/miner.key

bin/download-contracts.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ download joyid_dep3 0x95ecf9b41701b45d431657a67bbfa3f07ef7ceb53bf87097f3674e1a4a
3030
# download joyid_dep4 0x8f8c79eb6671709633fe6a46de93c0fedc9c1b8a6527a18d3983879542635c9f 3
3131
download joyid_dep5 0x8b3255491f3c4dcc1cfca33d5c6bcaec5409efe4bbda243900f9580c47e0242e 1
3232

33-
download ckb_auth 0xd4f72f0504373ff8effadf44f92c46a0062774fb585ebcacc24eb47b98e2d66a 0
34-
download unisat_lock 0xe842b43df31c92d448fa345d60a6df3e03aaab19ef88921654bf95c673a26872 0
33+
download omnilock 0xff234bf2fb0ad2ab5b356ceda317d3dee3efb2c55b9427ef55d9dcbf6eecbf9f 0

bin/generate-blocks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CKB_RPC_URL="${CKB_RPC_URL:-http://127.0.0.1:8114}"
44

55
function generate_one() {
66
curl --request POST \
7+
-H "Content-Type: application/json" \
78
--url "$CKB_RPC_URL" \
89
--data '{
910
"id": 42,

bin/generate-epochs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CKB_RPC_URL="${CKB_RPC_URL:-http://127.0.0.1:8114}"
55
function generate() {
66
local n="$(printf '%x' "${1:-1}")"
77
curl --request POST \
8+
-H "Content-Type: application/json" \
89
--url http://127.0.0.1:8114/ \
910
--data '{
1011
"id": 42,

bin/run-dev-miner.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -u
66

77
function has_tx() {
88
curl --request POST \
9+
-H "Content-Type: application/json" \
910
--silent \
1011
--url http://127.0.0.1:8114/ \
1112
--data '{

bin/use-env.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ case "${1:-}" in
2424
esac
2525

2626
JOYID_INFO_FILE="$(ls migrations/joyid/*.json | grep -v deployment | head -n 1)"
27-
CKB_AUTH_INFO_FILE="$(ls migrations/ckb_auth/*.json | grep -v deployment | head -n 1)"
27+
OMNILOCK_INFO_FILE="$(ls migrations/omnilock/*.json | grep -v deployment | head -n 1)"
2828

2929
sed -n \
3030
-e 's/,$//' \
@@ -38,10 +38,10 @@ sed -n \
3838

3939
sed -n \
4040
-e 's/,$//' \
41-
-e 's/^ *"type_id": "/NEXT_PUBLIC_UNISAT_CODE_HASH="/p' \
42-
"$CKB_AUTH_INFO_FILE" | head -1
41+
-e 's/^ *"type_id": "/NEXT_PUBLIC_OMNILOCK_CODE_HASH="/p' \
42+
"$OMNILOCK_INFO_FILE" | head -1
4343

4444
sed -n \
4545
-e 's/,$//' \
46-
-e 's/^ *"tx_hash": /NEXT_PUBLIC_AUTH_TX_HASH=/p' \
47-
"$CKB_AUTH_INFO_FILE" | tail -1
46+
-e 's/^ *"tx_hash": /NEXT_PUBLIC_OMNILOCK_TX_HASH=/p' \
47+
"$OMNILOCK_INFO_FILE" | tail -1

0 commit comments

Comments
 (0)