Skip to content

Commit bbb3c22

Browse files
authored
Follow up cosmos-ethereum-ibc-lcp v0.2.25 (#31)
1 parent 9bf5e11 commit bbb3c22

File tree

15 files changed

+211
-81
lines changed

15 files changed

+211
-81
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
sudo bash ./lcp/.github/scripts/install_sgx_sdk.sh /opt
3333
- name: Run E2E test
3434
run: |
35+
docker system prune -a --volumes -f
3536
source /opt/sgxsdk/environment
3637
make prepare-contracts
3738
make build-images
38-
make e2e-test
39+
make E2E_OPTIONS="--mock_zkdcap" e2e-test

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ This is a cross-chain messaging demo between Cosmos and BSC using IBC and LCP (L
44

55
## Supported Versions
66
- [ibc-solidity v0.3.40](https://github.com/hyperledger-labs/yui-ibc-solidity/releases/tag/v0.3.40)
7-
- [lcp v0.2.15](https://github.com/datachainlab/lcp/releases/tag/v0.2.15)
8-
- [lcp-go v0.2.21](https://github.com/datachainlab/lcp-go/releases/tag/v0.2.21)
9-
- [lcp-solidity v0.2.0-rc3](https://github.com/datachainlab/lcp-solidity/releases/tag/v0.2.0-rc3)
7+
- [lcp v0.2.17](https://github.com/datachainlab/lcp/releases/tag/v0.2.17)
8+
- [lcp-go v0.2.22](https://github.com/datachainlab/lcp-go/releases/tag/v0.2.22)
9+
- [lcp-solidity v0.2.1](https://github.com/datachainlab/lcp-solidity/releases/tag/v0.2.1)
1010
- [yui-relayer v0.5.16](https://github.com/hyperledger-labs/yui-relayer/releases/tag/v0.5.16)
1111
- [ethereum-ibc-relay-chain v0.3.18](https://github.com/datachainlab/ethereum-ibc-relay-chain/releases/tag/v0.3.18)
1212
- [parlia-elc v0.3.10](https://github.com/datachainlab/parlia-elc/releases/tag/v0.3.10)
13-
- [ibc-parlia-relay v0.3.20](https://github.com/datachainlab/ibc-parlia-relay/releases/tag/v0.3.20)
13+
- [ibc-parlia-relay v0.3.21](https://github.com/datachainlab/ibc-parlia-relay/releases/tag/v0.3.21)
1414

1515
## Pre-requisites
1616

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.22.2
55
require (
66
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.18
77
github.com/datachainlab/ibc-hd-signer v0.1.2
8-
github.com/datachainlab/ibc-parlia-relay v0.3.20
9-
github.com/datachainlab/lcp-go v0.2.21
8+
github.com/datachainlab/ibc-parlia-relay v0.3.21
9+
github.com/datachainlab/lcp-go v0.2.22
1010
github.com/hyperledger-labs/yui-relayer v0.5.16
1111
)
1212

@@ -74,7 +74,7 @@ require (
7474
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
7575
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
7676
github.com/danieljoos/wincred v1.1.2 // indirect
77-
github.com/datachainlab/go-risc0-verifier v0.1.1 // indirect
77+
github.com/datachainlab/go-risc0-verifier v0.1.3 // indirect
7878
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
7979
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
8080
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,14 @@ github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuA
419419
github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0=
420420
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.18 h1:bfHPAZv7BXCWjlnhiWuBifhA65C81x23GtSjsyZINss=
421421
github.com/datachainlab/ethereum-ibc-relay-chain v0.3.18/go.mod h1:Hqfxa2dcbK7P6yheoVwu09q8rN1kiC1HxSL0S9K4dDU=
422-
github.com/datachainlab/go-risc0-verifier v0.1.1 h1:M+GjE4tcbLAxJGX8oCC70yWv5gSXSgPJpBHZuyFB9kk=
423-
github.com/datachainlab/go-risc0-verifier v0.1.1/go.mod h1:O+uLSIdkN9rvqDXuZCnAOSPf/IT5SVjK/PxxJP3sPPU=
422+
github.com/datachainlab/go-risc0-verifier v0.1.3 h1:iEIVqGzLK1+AdZCfNqSxXJhMLDg7lEzbAfOZ8b/stRM=
423+
github.com/datachainlab/go-risc0-verifier v0.1.3/go.mod h1:O+uLSIdkN9rvqDXuZCnAOSPf/IT5SVjK/PxxJP3sPPU=
424424
github.com/datachainlab/ibc-hd-signer v0.1.2 h1:fWAYjMBVyM390OllX/l58mZYA7we0spEBFLYKWYTwfw=
425425
github.com/datachainlab/ibc-hd-signer v0.1.2/go.mod h1:nwH0Z3TK/7jbu/oInGGWGRimQ+LCn6yvDyjMZrw9mR4=
426-
github.com/datachainlab/ibc-parlia-relay v0.3.20 h1:LYRViwuk8OV9Mq1f/urSkHXXV9kU625vTD+l2tgzFvA=
427-
github.com/datachainlab/ibc-parlia-relay v0.3.20/go.mod h1:cD7LUXfUcLSlIz1V5S1g2H1NOaREI+2a9W0m1AS7OiY=
428-
github.com/datachainlab/lcp-go v0.2.21 h1:ECMUqlVr0G13BOSC1GvQVWlfbzEgRfSFZzKYss7lNdQ=
429-
github.com/datachainlab/lcp-go v0.2.21/go.mod h1:3YHfhCywH8SNd6qS3MLgeMMeGJm7l4kfPAEQI0Egf7o=
426+
github.com/datachainlab/ibc-parlia-relay v0.3.21 h1:kPdJ0L8fgWUfvO6BOp5yx0/8apBMg6jCWZt7g9yRoQ8=
427+
github.com/datachainlab/ibc-parlia-relay v0.3.21/go.mod h1:cD7LUXfUcLSlIz1V5S1g2H1NOaREI+2a9W0m1AS7OiY=
428+
github.com/datachainlab/lcp-go v0.2.22 h1:NGxmYEDE1Hh7lAvNJqaqcKchy0PO2Y6XfqDyMSBKst8=
429+
github.com/datachainlab/lcp-go v0.2.22/go.mod h1:SpxlVp4hECm9Lgr4+ob4ZKJfbg6Q7SVsbkgBelBnaWk=
430430
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
431431
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
432432
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"chain": {
3+
"@type": "/relayer.chains.tendermint.config.ChainConfig",
4+
"key": "testkey",
5+
"chain_id": "ibc0",
6+
"rpc_addr": "http://localhost:26657",
7+
"account_prefix": "cosmos",
8+
"gas_adjustment": 1.5,
9+
"gas_prices": "0.025stake",
10+
"average_block_time_msec": 1000,
11+
"max_retry_for_commit": 5
12+
},
13+
"prover": {
14+
"@type": "/relayer.provers.lcp.config.ProverConfig",
15+
"origin_prover": {
16+
"@type": "/relayer.chains.tendermint.config.ProverConfig",
17+
"trusting_period": "336h",
18+
"refresh_threshold_rate": {
19+
"numerator": 2,
20+
"denominator": 3
21+
}
22+
},
23+
"lcp_service_address": "localhost:50051",
24+
"mrenclave": $MRENCLAVE,
25+
"allowed_quote_statuses": ["GROUP_OUT_OF_DATE","SW_HARDENING_NEEDED"],
26+
"allowed_advisory_ids": ["INTEL-SA-00219","INTEL-SA-00289","INTEL-SA-00334","INTEL-SA-00477","INTEL-SA-00614","INTEL-SA-00615","INTEL-SA-00617", "INTEL-SA-00828"],
27+
"key_expiration": $LCP_KEY_EXPIRATION,
28+
"key_update_buffer_time":3600,
29+
"elc_client_id": "07-tendermint-1",
30+
"message_aggregation": true,
31+
"is_debug_enclave": $IS_DEBUG_ENCLAVE,
32+
"current_tcb_evaluation_data_number": 1,
33+
"tcb_evaluation_data_number_update_grace_period": 0,
34+
"risc0_zkvm_config": {
35+
"image_id": $RISC0_IMAGE_ID,
36+
"mock": $LCP_ZKDCAP_RISC0_MOCK
37+
},
38+
"operators": [
39+
"0xcb96F8d6C2d543102184d679D7829b39434E4EEc"
40+
],
41+
"operator_signer": {
42+
"@type": "/relayer.provers.lcp.signers.raw.SignerConfig",
43+
"private_key": "0x99b107441d0bce8e5b0078450f10f309910d8c0a2cc91671bd6cc1a284809642"
44+
},
45+
"operators_eip712_evm_chain_params": {
46+
"chain_id": 9999,
47+
"verifying_contract_address": $LC_ADDRESS
48+
}
49+
}
50+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"chain": {
3+
"@type": "/relayer.chains.ethereum.config.ChainConfig",
4+
"chain_id": "ibc1",
5+
"eth_chain_id": 9999,
6+
"rpc_addr": "http://localhost:8545",
7+
"signer": {
8+
"@type": "/relayer.signers.hd.SignerConfig",
9+
"mnemonic": "math razor capable expose worth grape metal sunset metal sudden usage scheme",
10+
"path": "m/44'/60'/0'/0/0"
11+
},
12+
"ibc_address": $IBC_ADDRESS,
13+
"initial_send_checkpoint": 0,
14+
"initial_recv_checkpoint": 0,
15+
"enable_debug_trace": true,
16+
"average_block_time_msec": 6000,
17+
"max_retry_for_inclusion": 5,
18+
"allow_lc_functions": {
19+
"lc_address": $LC_ADDRESS,
20+
"selectors": [
21+
"0xa97c61d6",
22+
"0x6ac73aa0"
23+
]
24+
},
25+
"gas_estimate_rate": {
26+
"numerator": 3,
27+
"denominator": 2
28+
},
29+
"max_gas_limit": 10000000,
30+
"tx_type": "auto",
31+
"blocks_per_event_query": 1000,
32+
"abi_paths": ["../../chains/bsc/contracts/abis"]
33+
},
34+
"prover": {
35+
"@type": "/relayer.provers.lcp.config.ProverConfig",
36+
"origin_prover": {
37+
"@type": "/relayer.provers.parlia.config.ProverConfig",
38+
"trusting_period": "86400s",
39+
"max_clock_drift": "0",
40+
"refresh_threshold_rate": {
41+
"numerator": 1,
42+
"denominator": 2
43+
},
44+
"refreshBlockDifferenceThreshold": 10000,
45+
"network": "localnet"
46+
},
47+
"lcp_service_address": "localhost:50051",
48+
"mrenclave": $MRENCLAVE,
49+
"allowed_quote_statuses": ["GROUP_OUT_OF_DATE", "SW_HARDENING_NEEDED"],
50+
"allowed_advisory_ids": ["INTEL-SA-00219","INTEL-SA-00289","INTEL-SA-00334","INTEL-SA-00477","INTEL-SA-00614","INTEL-SA-00615","INTEL-SA-00617", "INTEL-SA-00828"],
51+
"key_expiration": $LCP_KEY_EXPIRATION,
52+
"key_update_buffer_time": 3600,
53+
"elc_client_id": "xx-parlia-1",
54+
"message_aggregation": true,
55+
"is_debug_enclave": $IS_DEBUG_ENCLAVE,
56+
"current_tcb_evaluation_data_number": 1,
57+
"tcb_evaluation_data_number_update_grace_period": 0,
58+
"risc0_zkvm_config": {
59+
"image_id": $RISC0_IMAGE_ID,
60+
"mock": $LCP_ZKDCAP_RISC0_MOCK
61+
},
62+
"operators": [
63+
"0x9722414d09f43fb02235d739B50F4C027F43e657"
64+
],
65+
"operator_signer": {
66+
"@type": "/relayer.provers.lcp.signers.raw.SignerConfig",
67+
"private_key": "0x8a94e9f944a297c402a997aa9a60026ce47a6e018192d111c1703176bbc26651"
68+
},
69+
"operators_eip712_cosmos_chain_params": {
70+
"chain_id": "ibc0",
71+
"prefix": "ibc"
72+
}
73+
}
74+
}
661 Bytes
Binary file not shown.
Submodule risc0-ethereum updated 222 files

tests/e2e/chains/bsc/contracts/package-lock.json

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

0 commit comments

Comments
 (0)