Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
3bfbd00
modify bridge default capacity
LeonLi000 Dec 30, 2020
7e35ed7
fix(off-chain): update the way of find eth cell (#136)
fpChan Dec 30, 2020
c8bd187
fix: force server (#134)
Dec 30, 2020
1d42644
fix(ckb-contracts): add unit test (#106)
JacobDenver007 Dec 30, 2020
36fec12
feat(ckb-contracts): add simple bridge typescript (#141)
JacobDenver007 Jan 4, 2021
648f639
feat: add arg to force create new bridge cell (#148)
Jan 12, 2021
9b4148b
feat: return need capacity amount in not enough error (#149)
Jan 13, 2021
b7411a3
chore: add `git submodule update --init` for local-ci (#152)
cosinlink Jan 19, 2021
0d6f750
fix(ckb-contracts): add history merkle root for ckb contracts (#145)
JacobDenver007 Jan 19, 2021
f34dac2
feat: optimize mint witness (#160)
Jan 21, 2021
6351e2a
fix(ckb-contracts): fix testcase (#161)
JacobDenver007 Jan 22, 2021
645f6ed
fix(ckb-contracts): new bridge capsule tests (#165)
JacobDenver007 Jan 22, 2021
f21db4e
feat(eth-contracts): add openzeppelin upgradeable contract demo and t…
cosinlink Jan 25, 2021
6986354
doc: step by step guide (#170)
Jan 25, 2021
5b900f5
doc: update step by step guide (#180)
Jan 25, 2021
81e1f6d
test: fix coverage test (#183)
Jan 25, 2021
2e9b4fe
fix(ckb-contracts): add ckb contracts tests (#191)
JacobDenver007 Jan 27, 2021
95421d0
improve indexer code
LeonLi000 Jan 28, 2021
baf8256
feat: add coverage on openzeppelin upgradeable contracts (#193)
cosinlink Jan 28, 2021
cfe2662
fix: Increase eth indexer and ckb indexer state dependency
LeonLi000 Jan 29, 2021
d377422
feat: optimize indexer sql struct
LeonLi000 Jan 29, 2021
28b16d4
fix: add bridge typescript code hash verify in handle mint tx
LeonLi000 Jan 29, 2021
9473528
merge from remote
LeonLi000 Jan 29, 2021
5078fc3
doc: update step-by-step guide (#196)
Jan 30, 2021
8c05218
Update offchain-modules/lib/src/dapp/db/source/indexer.sql
LeonLi000 Feb 1, 2021
86aee17
add sedner_addr index
LeonLi000 Feb 1, 2021
1423003
Merge branch 'dapp-lib' of https://github.com/LeonLi000/force-bridge-…
LeonLi000 Feb 1, 2021
5c84893
Merge remote-tracking branch 'upstream/main' into main
LeonLi000 Feb 1, 2021
c319d8e
merge from main
LeonLi000 Feb 1, 2021
ca59c4b
Update offchain-modules/lib/src/dapp/db/source/indexer.sql
LeonLi000 Feb 2, 2021
f8fd403
fix: github-ci fix
LeonLi000 Feb 2, 2021
aa8a4ce
fix: github-ci fix
LeonLi000 Feb 2, 2021
a27486b
fix(eth-contracts): fix test ci error (#199)
cosinlink Feb 2, 2021
2c274e2
minor change
LeonLi000 Feb 2, 2021
f337b6f
minor change
LeonLi000 Feb 2, 2021
1a6bcdf
minor change
LeonLi000 Feb 2, 2021
bc9351e
Merge remote-tracking branch 'upstream/main' into main
LeonLi000 Feb 2, 2021
070f515
Merge branch 'main' into dapp-lib-leon
LeonLi000 Feb 2, 2021
035fbb2
chore(ckb-contracts): upgrade dependency version (#200)
JacobDenver007 Feb 2, 2021
dab9785
fix(ckb-contracts): anyone can create simple typescript (#201)
JacobDenver007 Feb 2, 2021
c381996
chore: make a test
LeonLi000 Feb 2, 2021
8d50667
minor change
LeonLi000 Feb 2, 2021
91128e3
minor change
LeonLi000 Feb 2, 2021
124e41b
add pm2
LeonLi000 Feb 3, 2021
54cb94b
test ci
LeonLi000 Feb 3, 2021
45f24dc
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Feb 3, 2021
ba93aee
minor change
LeonLi000 Feb 3, 2021
13ae298
minor change
LeonLi000 Feb 3, 2021
96e92d2
fix: update makefile
LeonLi000 Feb 3, 2021
02bdaeb
update crosschain.sh
LeonLi000 Feb 3, 2021
06d077d
merge from remote
LeonLi000 Feb 3, 2021
7b8b3ee
minor change
LeonLi000 Feb 3, 2021
1e086b0
fix: remove force_create param
LeonLi000 Feb 4, 2021
ac3aa6a
minor change
LeonLi000 Feb 4, 2021
c44f67b
rm rocksdb
LeonLi000 Feb 4, 2021
1d379ab
fix: bugfix when parse light client cell data
LeonLi000 Feb 4, 2021
ebccb81
fix clippy
LeonLi000 Feb 4, 2021
51fc594
chore: update ckb contracts deps (#206)
Feb 5, 2021
fbcfa9a
fix(off-chain): solve possible problems caused by uncle block
LeonLi000 Feb 6, 2021
72f8ff1
merge from remote
LeonLi000 Feb 6, 2021
32c510e
add some necessary logs
LeonLi000 Feb 7, 2021
7cf8c3a
feat: add token locker contract verify in burn tx
LeonLi000 Feb 8, 2021
9ffe2ae
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Feb 8, 2021
b1d392b
feat: add CkbHistoryTxRootProof (#197)
cosinlink Feb 8, 2021
924cfb4
chore: update doc, docker for ckb history merkle root (#212)
Feb 19, 2021
6c5f056
Merge remote-tracking branch 'upstream/main' into main
LeonLi000 Feb 21, 2021
5c87c1c
merge from remote
LeonLi000 Feb 22, 2021
fc707e1
code clean
LeonLi000 Feb 22, 2021
1ae6806
fix(offchain): optimize eth header relay (#213)
JacobDenver007 Feb 22, 2021
b529ab0
fix generate ckb proof info in ckb relayer
LeonLi000 Feb 23, 2021
00e2eef
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Feb 23, 2021
c2901c8
merge from dapp-lib
LeonLi000 Feb 23, 2021
7ac8f30
Update dapp-lib to adapt ckb_merkle_proof
LeonLi000 Feb 24, 2021
ebc43a2
code clean
LeonLi000 Feb 24, 2021
2108d7c
prepare for sign server
LeonLi000 Feb 25, 2021
38d6092
fix(offchain): optimize ckb->eth (#215)
JacobDenver007 Feb 26, 2021
50cf777
feat: draft version for sign server
LeonLi000 Feb 28, 2021
dbd7b0d
feat: merge from main
LeonLi000 Mar 1, 2021
cbf6389
feat: merge from main
LeonLi000 Mar 1, 2021
717ea2e
minor change
LeonLi000 Mar 1, 2021
47b8d24
adapt ckb relayer with sign server
LeonLi000 Mar 2, 2021
29efb5b
test github ci
LeonLi000 Mar 2, 2021
9efad67
use multisig server in eth relay
LeonLi000 Mar 2, 2021
0de1689
merge from dapp-lib
LeonLi000 Mar 2, 2021
47af5f5
Complete communication between eth relay and multi-signature server“”
LeonLi000 Mar 2, 2021
713488d
code clean
LeonLi000 Mar 3, 2021
b87d8fc
optimize multisig server
LeonLi000 Mar 3, 2021
d4af328
make clippy ok
LeonLi000 Mar 3, 2021
0342069
test github ci
LeonLi000 Mar 8, 2021
59a2934
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib-leon
LeonLi000 Mar 8, 2021
0efd45e
fix github ci
LeonLi000 Mar 8, 2021
9e324b4
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib-sign-s…
LeonLi000 Mar 8, 2021
959cc0d
use pm2 to start services
LeonLi000 Mar 8, 2021
304c4d6
test github ci
LeonLi000 Mar 8, 2021
032d565
test github ci
LeonLi000 Mar 8, 2021
f95f6c7
test github ci
LeonLi000 Mar 8, 2021
f4bef7f
test github ci
LeonLi000 Mar 8, 2021
c90b40a
test github ci
LeonLi000 Mar 8, 2021
5a4432b
github ci test
LeonLi000 Mar 8, 2021
f27d6aa
github ci test
LeonLi000 Mar 8, 2021
f48b51b
github ci test
LeonLi000 Mar 8, 2021
3a923f1
github ci test
LeonLi000 Mar 9, 2021
3171b42
github ci test
LeonLi000 Mar 9, 2021
f42679a
Merge branch 'dapp-lib-leon' into dapp-lib-sign-server
LeonLi000 Mar 9, 2021
f94f292
multi-signature server adds security check
LeonLi000 Mar 9, 2021
3b092b9
optimize ckb sign
LeonLi000 Mar 10, 2021
4803a86
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Mar 10, 2021
d9ed36d
modify eth chain confirmed number for ropsten
LeonLi000 Mar 10, 2021
dee3624
feat: add tx merkle_root verification
LeonLi000 Mar 11, 2021
efa50de
fix some bugs related to ckb signature
LeonLi000 Mar 13, 2021
bd5e879
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Mar 13, 2021
23bdc23
merge from dapp-lib
LeonLi000 Mar 15, 2021
33f25ce
sign-server: code format
LeonLi000 Mar 15, 2021
b4d0360
use configuration variables instead of constants
LeonLi000 Mar 16, 2021
f2a629d
make github-ci
LeonLi000 Mar 16, 2021
5e776cd
make github-ci
LeonLi000 Mar 16, 2021
415518a
make github-ci
LeonLi000 Mar 17, 2021
819175d
test github ci
LeonLi000 Mar 17, 2021
18ee6f2
github ci test
LeonLi000 Mar 17, 2021
dfb58dc
github ci test
LeonLi000 Mar 17, 2021
d9cfec3
github ci test
LeonLi000 Mar 17, 2021
5f21970
github ci test
LeonLi000 Mar 17, 2021
cc4e957
github ci test
LeonLi000 Mar 17, 2021
54ee43a
github ci test
LeonLi000 Mar 17, 2021
5e67a4c
github ci test
LeonLi000 Mar 17, 2021
6e3f5bf
github ci test
LeonLi000 Mar 17, 2021
3329ae3
github ci test
LeonLi000 Mar 17, 2021
ad10021
github ci test
LeonLi000 Mar 17, 2021
4b00190
use mem store instead of rocksdb
LeonLi000 Mar 17, 2021
d934c26
github ci test
LeonLi000 Mar 17, 2021
a455821
minor change
LeonLi000 Mar 17, 2021
333b828
minor change
LeonLi000 Mar 17, 2021
6a9b86a
github ci test
LeonLi000 Mar 17, 2021
87af289
make github ci
LeonLi000 Mar 17, 2021
a99642e
make github ci
LeonLi000 Mar 17, 2021
2680078
add input output lockscript verify
LeonLi000 Mar 17, 2021
ded33b8
add ckb tx lock&type script verify
LeonLi000 Mar 18, 2021
115ebee
add the test of multiple signature servers
LeonLi000 Mar 18, 2021
5988842
optimize collect_signatures
LeonLi000 Mar 18, 2021
1a807bf
optimize ckb relayer
LeonLi000 Mar 18, 2021
a1201d5
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Mar 18, 2021
dd1dab0
merge from dapp-lib
LeonLi000 Mar 18, 2021
e18c99d
make clippy
LeonLi000 Mar 18, 2021
508749f
minor change
LeonLi000 Mar 18, 2021
1ce07b8
code clean
LeonLi000 Mar 19, 2021
8a69594
add some log info
LeonLi000 Mar 19, 2021
3632ba4
draft: add readme.md
LeonLi000 Mar 19, 2021
0392fc2
update sign server as submodule
LeonLi000 Mar 19, 2021
1a56927
minor change
LeonLi000 Mar 19, 2021
293ecfb
remove sdk dependence in sign server
LeonLi000 Mar 19, 2021
dc2d715
minor change
LeonLi000 Mar 19, 2021
28c65c9
remove force bridge eth types dependence in sign server
LeonLi000 Mar 19, 2021
343a9c5
make clippy
LeonLi000 Mar 19, 2021
07c5d4c
feat(sign-server): Simplify user configuration
LeonLi000 Mar 21, 2021
7d34cb1
Merge remote-tracking branch 'upstream/dapp-lib' into dapp-lib
LeonLi000 Mar 21, 2021
b28b74e
merge from remote
LeonLi000 Mar 21, 2021
d1c56c4
minor change
LeonLi000 Mar 21, 2021
725f1d5
make github ci
LeonLi000 Mar 21, 2021
e4feda4
make github ci
LeonLi000 Mar 21, 2021
882254c
minor change
LeonLi000 Mar 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "offchain-modules/eth-proof"]
path = offchain-modules/eth-proof
url = https://github.com/LeonLi000/eth-proof
[submodule "offchain-modules/sign-server"]
path = offchain-modules/sign-server
url = https://github.com/LeonLi000/sign-server.git
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ init-light-client:
${FORCE_CLI} init-ckb-light-contract -k 0 -f 500 -c 40000 --wait

init-multi-address:
${FORCE_CLI} init-multi-sign-address -k 1 --multi-address ckt1qyqyph8v9mclls35p6snlaxajeca97tc062sa5gahk ckt1qyqvsv5240xeh85wvnau2eky8pwrhh4jr8ts8vyj37
${FORCE_CLI} init-multi-sign-address -k 1 --multi-address ckt1qyqyph8v9mclls35p6snlaxajeca97tc062sa5gahk ckt1qyqywrwdchjyqeysjegpzw38fvandtktdhrs0zaxl4 ckt1qyq2f0uwf3lk7e0nthfucvxgl3zu36v6zuwq6mlzps --threshold 2 --hosts http://127.0.0.1:3031 http://127.0.0.1:3032 http://127.0.0.1:3033

ckb2eth-relay:
pm2 start --name ckb2eth-relay "${FORCE_CLI} ckb-relay -k 1 --per-amount 5"
Expand Down Expand Up @@ -126,12 +126,14 @@ local-ci:
make close-dev-env
rm -rf ~/.force-bridge/eth-rocksdb
rm -rf ~/.force-bridge/ckb-rocksdb
rm -rf ~/.force-bridge/ckb-rocksdb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rm -rf ~/.force-bridge/ckb-rocksdb

test -f ~/.force-bridge/config.toml && mv ~/.force-bridge/config.toml ~/.force-bridge/config_bak_`date "+%Y%m%d-%H%M%S"`.toml || echo 'config not exist'
cd offchain-modules && cargo build
make init-config
make integration-ci

github-ci:
git submodule update --init
rm -rf ~/.force-bridge/eth-rocksdb
rm -rf ~/.force-bridge/ckb-rocksdb
rm -rf ~/.force-bridge/dapp-lib/eth-rocksdb
Expand Down
4 changes: 2 additions & 2 deletions eth-contracts/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ async function deploy() {

// deploy ckbChain
const validators = network_config.ethereum_private_keys
.slice(0, 2)
.slice(0, 4)
.map((privateKey) => {
let publicKey = EthUtil.privateToPublic(Buffer.from(privateKey, 'hex'));
return '0x' + EthUtil.publicToAddress(publicKey).toString('hex');
});
console.error('validator validator: ', validators);
const multisigThreshold = 1;
const multisigThreshold = 2;
let eth_network = await provider.getNetwork();
const chainId = eth_network.chainId;
console.error('chain id :', chainId);
Expand Down
191 changes: 188 additions & 3 deletions offchain-modules/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions offchain-modules/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ pub async fn init_config(args: InitConfigArgs) -> Result<()> {
}

pub async fn init_multisig_address_handler(args: InitMultiSignAddressArgs) -> Result<()> {
if args.multi_address.len() != args.hosts.len() {
anyhow::bail!("failed to init multisig address. the length of multi_address and the length of hosts are not equal.")
}
let multi_sign_address = init_multi_sign_address(
args.multi_address,
args.hosts,
args.require_first_n,
args.threshold,
args.config_path,
Expand Down Expand Up @@ -433,7 +437,7 @@ pub async fn eth_relay_handler(args: EthRelayArgs) -> Result<()> {
config_path,
args.network,
args.private_key_path,
args.multisig_privkeys,
// args.multisig_privkeys,
args.confirm,
args.delay,
)?;
Expand All @@ -453,8 +457,8 @@ pub async fn ckb_relay_handler(args: CkbRelayArgs) -> Result<()> {
config_path,
args.network,
args.private_key_path,
args.mutlisig_privkeys,
args.gas_price,
args.hosts,
args.confirm,
)?;

Expand Down
Loading