Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync dev to main branch #286

Merged
merged 102 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
cf5e681
chore(wip): move some magic modifications from Hermes runtime to stan…
Jul 4, 2023
47bf555
feat(wip): make create connection/channel command work on Axon endpoint
Jul 7, 2023
7908796
feat(wip): enable create connection from feature of searching clients…
Jul 7, 2023
b3d9039
fix: fix bugs in the test of channel layer for Axon endpoint
Jul 10, 2023
7cbbee1
fix: fix suggestions commented and one test case error
Jul 10, 2023
39d499e
feat: change README.md and ignore python test
Jul 10, 2023
eff4185
chore: optimize and add more identical comments on some magic code
Jul 12, 2023
8669f5e
Apply suggestions from code review
ashuralyk Jul 12, 2023
90ba760
chore: optimize ckb4ibc integration-test sleeping process
Jul 12, 2023
28b88da
feat(wip): diverse the support of different light clients for Axon an…
Jul 13, 2023
96736c3
bug: fix compile error while cargo upgraded to v1.71.x
Jul 14, 2023
060be2f
bug: solve ckb4ibc chain config serialize issue
Jul 14, 2023
d1057ee
feat: accomplish relay feature between Axon and Ckb
Jul 15, 2023
c5470e2
chore: solve code format issue
Jul 17, 2023
6442239
update comment of python_end_to_end_tests in python.rs
ashuralyk Jul 18, 2023
66d1c88
chore: apply suggestions to complete comments
Jul 18, 2023
872bdc9
Merge pull request #249 from synapseweb3/feat/finish-ckb-packet-feature
ashuralyk Jul 19, 2023
fb0e402
chore: link with lld on x86-64 linux
blckngm Jul 27, 2023
0a46331
Merge pull request #273 from blckngm/link-with-lld
ashuralyk Jul 28, 2023
cf4d32e
fix: event bus delete multiple disconnected
blckngm Aug 1, 2023
f79180f
refactor: use ibc test framework to write ckb4ibc test
jjyr Jul 28, 2023
83950b6
chore: update .github/workflows/ckb4ibc-test.yaml
jjyr Aug 2, 2023
356c7ad
doc: update README
jjyr Aug 2, 2023
be6c2fb
chore: remove debugging output
jjyr Aug 2, 2023
40f8869
fix(ci): Ckb4ibc
jjyr Aug 2, 2023
d797580
fix(ci): exclude ckb4ibc-test in test-stable
jjyr Aug 2, 2023
e6334ad
Merge pull request #282 from synapseweb3/refactor-ckb-4ibc-test-use-i…
jjyr Aug 2, 2023
5bb0509
refactor: remove curl and sed cli call from ckb4ibc
jjyr Aug 3, 2023
2144329
Merge pull request #281 from blckngm/fix-event-bus
jjyr Aug 3, 2023
e786b44
Merge pull request #283 from synapseweb3/test-clear-code
jjyr Aug 3, 2023
911d14e
refactor: reduce duplicated code
jjyr Aug 3, 2023
3eaf123
refactor: use a shared tokio Runtime in utils::ckb
jjyr Aug 3, 2023
72bb1fb
Merge pull request #284 from synapseweb3/refactor-ckb4ibc
jjyr Aug 3, 2023
f6bdd5b
feat: complete packet relay between 2 axon chains
Jul 25, 2023
fdaa345
chore: kill clippy issues
Jul 25, 2023
3b83b5f
bug: recover zero value check in Height to fix integration-test bug
Jul 26, 2023
008b972
chore: strip librosckdb.a to save space
Jul 28, 2023
d908207
chore: make librocksdb.a and all test binaries that link with it smaller
Flouse Aug 1, 2023
9515584
chore: fix timestamp conversion bug and issue comments mentioned in t…
Aug 7, 2023
8825f2e
chore: fix merge bug
Aug 7, 2023
21b9026
Merge pull request #271 from synapseweb3/feat/packet-between-axon-axon
Flouse Aug 7, 2023
4b9c445
fix: ckb4ibc channel test
jjyr Aug 11, 2023
dd8863b
Merge pull request #292 from synapseweb3/fix-ibc-test-channel-error
Flouse Aug 14, 2023
fb7909e
feat: complete part of ckb4ibc endpoint to fit the packet test
Aug 1, 2023
57c2ebe
chore: fix clippy issue
Aug 1, 2023
cfb1e3a
chore: update ckb-ics to latest commit reference
Aug 15, 2023
4b41e2f
chore: make ckb-ics dep up-to-date
Aug 15, 2023
a164ab3
refactor: use TxBuilder to simplify the assembly of ibc transactions
Aug 16, 2023
5b40cfc
feat: split deployment of connection and channel into seperated two s…
Aug 17, 2023
9c01b0d
feat: successfully test out the refactorred ibc-ckb-contracts
Aug 17, 2023
ced573f
feat: complete packet protocol in both order or unorder channel
Aug 17, 2023
c8b4ae2
feat: complete query_* methods in ckb endpoint
Aug 21, 2023
756b188
chore: update the generation of ckb4ibc-test
Aug 22, 2023
d2aa9e8
Merge pull request #280 from synapseweb3/feat/prepare-ckb4ibc-packet-…
ashuralyk Aug 22, 2023
e26e0ac
implement Axon chain in IBC test framework
jjyr Aug 14, 2023
de08adb
fix(axon): read from keychain after the node bootstrap
jjyr Aug 19, 2023
6328d94
doc: update README.md
jjyr Aug 21, 2023
46f8287
fix ibc test framework axon contract address
jjyr Aug 21, 2023
81a2165
test: ibc-test skip non-ckb ibc checks
jjyr Aug 23, 2023
bba8086
chore: remove debugs
jjyr Aug 23, 2023
add7039
fix rebase
jjyr Aug 23, 2023
bd6df7b
fix clippy
jjyr Aug 23, 2023
d31d3ce
fix: fix ibc-test CI
jjyr Aug 24, 2023
ad29dc9
fix: ckb4ibc chain can't find axon lightclient
jjyr Aug 24, 2023
d93ffc4
test(ci): enable matrix test of ckb and axon
jjyr Aug 24, 2023
ed64a83
chore: add rust-toolchain and fix clippy
jjyr Aug 24, 2023
a516818
fix(ci): source code path
jjyr Aug 24, 2023
717cab9
fix(ci): limit the concurrent jobs when building
jjyr Aug 25, 2023
8be66b5
fix(ci): use specific commit id
jjyr Aug 25, 2023
b16a58e
chore(ci): cache axon bin
jjyr Aug 25, 2023
b617802
fix(ci): update integration.yaml
jjyr Aug 27, 2023
6e26faa
Merge pull request #308 from synapseweb3/test-ibc-framework-axon-chai…
jjyr Aug 31, 2023
3ccc594
feat: eliminate manually change type_args values in test-framework fo…
Aug 22, 2023
26a1eeb
feat(wip): prepare packet test framework
Aug 22, 2023
1bcd389
feat(wip): add send_packet event trigger in ckb4ibc-test packet test
Aug 22, 2023
4e6b662
feat(wip): complete the coding of packet test between two ckb endpoin…
Aug 23, 2023
5d50cd7
fix: ckb4ibc monitor watch counterparty client type
blckngm Aug 24, 2023
8beb879
feat(wip): successfully searched packet cell but get wrong in query_c…
Aug 24, 2023
1f79765
feat(wip): solve channel_id mismatch problem, current is protobuf par…
Aug 25, 2023
401c1ea
feat(wip): successfully received SendPacket and constructed RecvPacke…
Aug 26, 2023
d9bd393
feat(wip): successfully submit RecvPacket transaction, but cannot lis…
Aug 27, 2023
a9797f9
feat(wip): almost complete packet test
Aug 28, 2023
cfac97e
feat: upgrade forcerelay-ckb-sdk and ibc-ckb-contracts
Aug 29, 2023
f8f743b
feat: fix a capacity bug and complete packet test
Aug 29, 2023
5bc38bb
chore: update workflow and clarify script_search_mode
Aug 31, 2023
3d534e0
feat: rebase dev and pass packet test within ckb endpoints
Sep 3, 2023
609e12a
chore: update integration.yaml
Sep 3, 2023
6615493
Update ibc-test/README.md
Flouse Sep 4, 2023
612ce7e
doc: Update README.md
jjyr Sep 5, 2023
53c797f
Merge pull request #322 from synapseweb3/docs-ibc-test-readme
jjyr Sep 5, 2023
d80742f
chore(ci): upgrade ibc-test ckb 0.107.0 -> 0.110.0
jjyr Sep 5, 2023
e7cd6c0
chore: fix commented suggestion
Sep 5, 2023
7a91cbf
fix(ci): only cache current project, otherwise the cache size is too …
jjyr Sep 6, 2023
2f9ecfe
Merge pull request #305 from synapseweb3/feat/embeded-with-ckb-sdk
ashuralyk Sep 6, 2023
46340d5
Merge pull request #323 from synapseweb3/ci-upgrade-ckb-version
jjyr Sep 6, 2023
1cb8e38
fix(ci): ignore ica-filter-test
jjyr Sep 6, 2023
adead8e
Merge pull request #325 from synapseweb3/fix-ci
ashuralyk Sep 7, 2023
bfca0fe
feat: deploy sUDT contract into dev CKB node
Sep 4, 2023
94ac5ff
feat: issue initial sUDT token
Sep 5, 2023
ea3fa29
feat: add sudt into test case
Sep 5, 2023
94d0696
chore: remove useless comment
Sep 6, 2023
461b571
Merge pull request #324 from synapseweb3/feat/ckb-packet-test-with-sudt
ashuralyk Sep 11, 2023
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
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"]
59 changes: 0 additions & 59 deletions .github/workflows/ckb4ibc-test.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/forcrerelay-test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Forcerelay
on:
pull_request:
path:
paths:
- .github/workflows/forcerelay-test.yaml
- Cargo.toml
- Cargo.lock
Expand Down
123 changes: 123 additions & 0 deletions .github/workflows/ibc-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: IBC test
on:
pull_request:
paths:
- .github/workflows/ibc-test.yaml
- Cargo.toml
- Cargo.lock
- ci/**
- crates/**
- tools/**
push:
branches: main
- .github/workflows/ibc-test.yaml
- Cargo.toml
- Cargo.lock
- ci/**
- crates/**
- tools/**

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
ibc-test:
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
SRC_DIR: ${{ github.workspace }}/ibc-test-src
AXON_COMMIT: d03d2bb7cb3dcdc03319c3a74beeee6715e7f448
IBC_CONTRACT_COMMIT: 5746d048304ca4d73dc4800459ddd79d57fa124c
strategy:
fail-fast: false
matrix:
chain_a:
- command: ckb
account_prefix: ckb
- command: axon
account_prefix: axon
chain_b:
- command: ckb
account_prefix: ckb
- command: axon
account_prefix: axon
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Create source folder
run: mkdir -p $SRC_DIR

- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install yarn
run: npm install --global yarn

- name: Prepare CKB
run: |
if [ ! -f "/tmp/ckb.tar.gz" ]; then
curl -L https://github.com/nervosnetwork/ckb/releases/download/v0.110.0/ckb_v0.110.0_x86_64-unknown-linux-gnu.tar.gz -o /tmp/ckb.tar.gz
fi
tar -zxf /tmp/ckb.tar.gz -C /tmp
echo "/tmp/ckb_v0.110.0_x86_64-unknown-linux-gnu" >> $GITHUB_PATH

- name: Prepare Axon source
run: git clone --recursive https://github.com/axonweb3/axon.git $SRC_DIR/axon && cd $SRC_DIR/axon && git checkout $AXON_COMMIT

- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "."

- name: Cache axon bin
id: cache-axon-bin
uses: actions/cache@v3
env:
cache-name: cache-axon-bin
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ${{env.SRC_DIR}}/axon/target/release/axon
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.AXON_COMMIT }}

- name: Build Axon
if: ${{ steps.cache-axon-bin.outputs.cache-hit != 'true' }}
uses: actions-rs/cargo@v1
with:
command: build
args: --release --manifest-path ${{env.SRC_DIR}}/axon/Cargo.toml

- name: Add axon bin to path
run: echo "${{env.SRC_DIR}}/axon/target/release/" >> $GITHUB_PATH

- name: Prepare IBC contracts
run: git clone --recursive https://github.com/synapseweb3/ibc-solidity-contract.git $SRC_DIR/ibc-solidity-contract && cd $SRC_DIR/ibc-solidity-contract && git checkout $IBC_CONTRACT_COMMIT

- name: Compile IBC contracts
working-directory: ${{env.SRC_DIR}}/ibc-solidity-contract
run: yarn install && yarn compile

- name: Compile tests
uses: actions-rs/cargo@v1
with:
command: build
args: -p ibc-test --tests --jobs=4

- name: Run IBC tests
uses: actions-rs/cargo@v1
env:
CHAIN_COMMAND_PATHS: ${{ matrix.chain_a.command }},${{ matrix.chain_b.command }}
ACCOUNT_PREFIXES: ${{ matrix.chain_a.account_prefix }},${{ matrix.chain_b.account_prefix }}
AXON_SRC_PATH: ${{env.SRC_DIR}}/axon
IBC_CONTRACTS_SRC_PATH: ${{env.SRC_DIR}}/ibc-solidity-contract
RUST_LOG: info
RUST_BACKTRACE: 1
with:
command: test
args: -p ibc-test -- --nocapture
Loading
Loading