Skip to content

Commit

Permalink
Multichain (#139)
Browse files Browse the repository at this point in the history
* Reorganize evm on per contract basis

* Fix not publishing correct key

* Tidy up API

* Tidy up API some more

* Formatting

* Add configuration management

* Formatting

* Plumb src_chain_id through events

* Ensure only publish if src chain matches

* Formatting

* Derive solidity types from abi artifacts

* Formatting

* Fix risk of panic

* Add contract compilation to rust tests
  • Loading branch information
ryardley authored Oct 8, 2024
1 parent 45cf291 commit cd71c3f
Show file tree
Hide file tree
Showing 39 changed files with 1,237 additions and 790 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,25 @@ jobs:
with:
toolchain: 1.81.0
override: true

# We need to setup node in order to compile the hardhat contracts to get the artifacts
- name: "Setup node"
uses: actions/setup-node@v2
with:
node-version: 20

- name: Cache node modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: "Install the dependencies"
run: "yarn install"

- name: "Compile the contracts and generate the TypeChain bindings"
run: "yarn typechain"

# Now we can check rust formatting and run tests
- name: Checking code format
run: cd ./packages/ciphernode && cargo fmt -- --check

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"test:integration": "./tests/basic_integration/test.sh",
"coverage": "yarn evm:coverage",
"ciphernode:launch": "cd packages/ciphernode && ./scripts/launch.sh",
"ciphernode:lint": "cd packages/ciphernode && cargo fmt -- --check",
"ciphernode:add": "cd packages/evm && yarn ciphernode:add",
"ciphernode:remove": "cd packages/evm && yarn ciphernode:remove",
"ciphernode:aggregator": "cd packages/ciphernode && ./scripts/aggregator.sh",
"ciphernode:test": "cd packages/ciphernode && cargo test",
"ciphernode:build": "cd packages/ciphernode && cargo build --release",
"preciphernode:build": "yarn evm:compile",
"committee:new": "cd packages/evm && yarn committee:new",
"committee:publish": "cd packages/evm && yarn hardhat committee:publish",
"e3:activate": "cd packages/evm && yarn hardhat e3:activate",
Expand Down
Loading

0 comments on commit cd71c3f

Please sign in to comment.