Skip to content

Commit

Permalink
refactor: change metadata system contract and add annotation (#1449)
Browse files Browse the repository at this point in the history
* style: change some code style and annotation

* add some annotation

* Update comments in builtin-contract/metadata/contracts/metadata.sol

* refactor solidity contract to interface

* remove useless code

* add some annotation

* update gh workflow

* update some annotation

* fix unit test

* refactor chain-spec.toml

* fix some typo

* chore: rm metadata-test in Makefile

---------

Co-authored-by: Flouse <[email protected]>
  • Loading branch information
Eason Gao and Flouse authored Oct 9, 2023
1 parent 60fcec3 commit 2dd3e88
Show file tree
Hide file tree
Showing 35 changed files with 241 additions and 5,243 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}

- name: Run Rust unit-test
run: make test

Expand All @@ -45,7 +45,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- name: Run metadata-test
run: make metadata-test
- name: Run crosschain-test
run: make crosschain-test
1 change: 1 addition & 0 deletions Cargo.lock

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

9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,14 @@ security-audit:
@cargo audit --version || cargo install cargo-audit
@cargo audit

metadata-test:
cd builtin-contract/metadata \
&& yarn --from-lock-file && yarn run compile && yarn run test

metadata-genesis-deploy:
cd builtin-contract/metadata && yarn run deploy

crosschain-test:
cd builtin-contract/crosschain \
&& yarn --from-lock-file && yarn run compile && yarn run test

crosschain-genesis-deploy:
cd builtin-contract/crosschain && yarn run deploy

unit-test: test metadata-test crosschain-test
unit-test: test crosschain-test

schema:
make -C core/cross-client/ schema
Expand Down
12 changes: 0 additions & 12 deletions builtin-contract/metadata/.gitignore

This file was deleted.

151 changes: 0 additions & 151 deletions builtin-contract/metadata/contracts/metadata.sol

This file was deleted.

22 changes: 0 additions & 22 deletions builtin-contract/metadata/hardhat.config.js

This file was deleted.

24 changes: 0 additions & 24 deletions builtin-contract/metadata/package.json

This file was deleted.

60 changes: 0 additions & 60 deletions builtin-contract/metadata/scripts/metadata.deploy.js

This file was deleted.

62 changes: 0 additions & 62 deletions builtin-contract/metadata/scripts/metadata.proxy.js

This file was deleted.

Loading

0 comments on commit 2dd3e88

Please sign in to comment.