Skip to content

Commit d3e2f61

Browse files
authored
Support Lorentz HF (#20)
1 parent ddcbae0 commit d3e2f61

File tree

15 files changed

+33
-33
lines changed

15 files changed

+33
-33
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
source /opt/sgxsdk/environment
3838
make prepare-contracts
3939
make build-images
40-
make USE_UPGRADE_TEST=yes e2e-test
40+
make USE_UPGRADE_TEST=no e2e-test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ $(Signed_RustEnclave_Name): $(RustEnclave_Name)
131131

132132
.PHONY: enclave
133133
enclave:
134-
@cd enclave && RUSTFLAGS=$(RUSTFLAGS) BSC_BLOCKS_PER_EPOCH=20 cargo build $(CARGO_TARGET) $(CARGO_FEATURES)
134+
@cd enclave && RUSTFLAGS=$(RUSTFLAGS) cargo build $(CARGO_TARGET) $(CARGO_FEATURES)
135135
@mkdir -p ./lib
136136
@cp enclave/target/$(OUTPUT_PATH)/libproxy_enclave.a ./lib/libenclave.a
137137

enclave/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enclave/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["staticlib"]
1111
[dependencies]
1212
enclave-runtime = { git = "https://github.com/datachainlab/lcp", rev = "v0.2.12" }
1313
tendermint-lc = { git = "https://github.com/datachainlab/lcp", rev = "v0.2.12", default-features = false }
14-
parlia-elc = { git = "https://github.com/datachainlab/parlia-elc", rev = "v0.3.8-p1", default-features = false, features=["dev"] }
14+
parlia-elc = { git = "https://github.com/datachainlab/parlia-elc", rev = "v0.3.9", default-features = false }
1515

1616
[patch."crates-io"]
1717
getrandom = { git = "https://github.com/datachainlab/getrandom-sgx-lite" }

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ module github.com/datachainlab/cosmos-bsc-ibc-lcp
33
go 1.22.0
44

55
require (
6-
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.13
7-
github.com/datachainlab/ibc-hd-signer v0.1.1
8-
github.com/datachainlab/ibc-parlia-relay v0.3.9-p1
9-
github.com/datachainlab/lcp-go v0.2.13
10-
github.com/hyperledger-labs/yui-relayer v0.5.10
6+
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.17
7+
github.com/datachainlab/ibc-hd-signer v0.1.2
8+
github.com/datachainlab/ibc-parlia-relay v0.3.13-ts
9+
github.com/datachainlab/lcp-go v0.2.15
10+
github.com/hyperledger-labs/yui-relayer v0.5.11
1111
)
1212

1313
require (

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,14 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do
414414
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
415415
github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0=
416416
github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0=
417-
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.13 h1:RbYtraeZwN55qfbzfoDIJPK8CWWx5dWfO8CfnvS+dhk=
418-
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.13/go.mod h1:dxL5umpjncKRw7iBFE2W+dGpmmWOiggth0aQsJrtLKM=
419-
github.com/datachainlab/ibc-hd-signer v0.1.1 h1:ws90eXVjjLcx2i6iPJu2bJ2w06tIeuSyIBfYbOIEv68=
420-
github.com/datachainlab/ibc-hd-signer v0.1.1/go.mod h1:I1pas5LB8QupngqT05/h3u1nqhHww9OOnAwliuPEd3c=
421-
github.com/datachainlab/ibc-parlia-relay v0.3.9-p1 h1:y3FqQVZacZogxhiP6yrQM5oP6JSF+p6N/iPsCXsR5AY=
422-
github.com/datachainlab/ibc-parlia-relay v0.3.9-p1/go.mod h1:0zarxJyO75kj4cR6Ylf8ilUbJuvcFfXww8Ek0NjxoL4=
423-
github.com/datachainlab/lcp-go v0.2.13 h1:zpjZ4blf//uVtSWv5bHOst5trmF7CvX7yygJK6WhFOE=
424-
github.com/datachainlab/lcp-go v0.2.13/go.mod h1:S/fUTQ4LtN6/D0NJv4DaEBH6qbZkdyBUQ+6jrNYJPjY=
417+
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.17 h1:oyDLIbc9hyp31c3OoIB5wHm51tpyDrYAu1KBA1KxfEw=
418+
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.17/go.mod h1:sf+ti1uM1joxhukxIyj8oDQ5yf7d+e+nl+3vtn9f5CM=
419+
github.com/datachainlab/ibc-hd-signer v0.1.2 h1:fWAYjMBVyM390OllX/l58mZYA7we0spEBFLYKWYTwfw=
420+
github.com/datachainlab/ibc-hd-signer v0.1.2/go.mod h1:nwH0Z3TK/7jbu/oInGGWGRimQ+LCn6yvDyjMZrw9mR4=
421+
github.com/datachainlab/ibc-parlia-relay v0.3.13-ts h1:Xm0kNgvbCGZduI9aF6pi/vocognjU21Rcm/39v82sRA=
422+
github.com/datachainlab/ibc-parlia-relay v0.3.13-ts/go.mod h1:YkqwnY+1CFEeRe3aQmg053YSSkXK0sTeX39GUNN83d0=
423+
github.com/datachainlab/lcp-go v0.2.15 h1:UOelDhvE0/2lzCjeBSFghUkBkq3YJhnQhaTf3EKSZNg=
424+
github.com/datachainlab/lcp-go v0.2.15/go.mod h1:AmdXcxocZ1/qH86GEHeQOxTozE+06lH3Fkgg+LsZJu0=
425425
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
426426
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
427427
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -778,8 +778,8 @@ github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXM
778778
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
779779
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
780780
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
781-
github.com/hyperledger-labs/yui-relayer v0.5.10 h1:j35SRowNfVDU3gvq4Th3Wy8ufRD5K4wbXDLQAGOgT8w=
782-
github.com/hyperledger-labs/yui-relayer v0.5.10/go.mod h1:kJvSmuagdDsSlvbnHtEHbhmkUlAS43/ArLDwukOKSlo=
781+
github.com/hyperledger-labs/yui-relayer v0.5.11 h1:tBDWJa96jQhxL9zLDbB94VvSgw0f8Xk9tqPuKMT3ARw=
782+
github.com/hyperledger-labs/yui-relayer v0.5.11/go.mod h1:kJvSmuagdDsSlvbnHtEHbhmkUlAS43/ArLDwukOKSlo=
783783
github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI=
784784
github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
785785
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=

tests/e2e/cases/tm2bsc/configs/templates/ibc-1.json.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"numerator": 1,
4242
"denominator": 2
4343
},
44-
"refreshBlockDifferenceThreshold": 10000
44+
"refreshBlockDifferenceThreshold": 10000,
45+
"network": "localnet"
4546
},
4647
"lcp_service_address": "localhost:50051",
4748
"mrenclave": $MRENCLAVE,

tests/e2e/chains/bsc/Dockerfile.bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM ghcr.io/foundry-rs/foundry:nightly-462b2ac6c038dc24b8f38b0c59b664d0740604c2
33
RUN apk add --d --no-cache ca-certificates npm nodejs bash alpine-sdk expect jq curl bash python3
44
RUN curl -sSL https://install.python-poetry.org | python3 -
55

6-
RUN git clone https://github.com/bnb-chain/bsc-genesis-contract -b v1.2.4 /root/genesis \
7-
&& cd /root/genesis && npm ci
6+
RUN git clone https://github.com/bnb-chain/bsc-genesis-contract -b develop /root/genesis \
7+
&& cd /root/genesis && git checkout 44ebc6c17a00bd24db3240141a78091528dcebbb && npm ci
88

99
RUN cd /root/genesis && /root/.local/bin/poetry install
1010
RUN cd /root/genesis && forge install --no-git --no-commit foundry-rs/[email protected]

tests/e2e/chains/bsc/contracts/hardhat.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
solidity: {
99
version: "0.8.28",
1010
settings: {
11-
evmVersion: "cancun",
1211
optimizer: {
1312
enabled: true,
1413
runs: 9_999_999

tests/e2e/chains/bsc/docker-compose.bsc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ services:
55
dockerfile: Dockerfile.bsc
66
args:
77
GIT_SOURCE: https://github.com/bnb-chain/bsc
8-
GIT_CHECKOUT_BRANCH: v1.5.5
8+
GIT_CHECKOUT_BRANCH: v1.5.9
99
image: bsc-geth:docker-local

0 commit comments

Comments
 (0)