Skip to content

Commit

Permalink
feat: create axelar-local-dev-sui (#87)
Browse files Browse the repository at this point in the history
* feat: init package

* chore: remove account export

* chore: remove file

* chore: remove dep

* feat: support sui <-> evm call_contracts

* feat: add createSuiRelayer script

* chore: add afterRelay script for sui

* chore: clean up SuiNetwork

* chore: cleanup decoder in SuiRelayer

* chore: refactor

* chore: add payload_hash to gateway module

* chore: remove only

* chore: fix relay tests

* chore: add sui-test-validator command for tests

* chore: refactor tests workflow

* chore: use nohup to run sui in bg

* chore: delete unused steps in workflow

* chore: update version to 2.0.5

* chore: export EvmRelayer

* chore: change RelayerType to enum

* chore: update sui doc

* chore: improve usage text

* chore: remove build sui contract step in workflow

* chore: update docs

* chore: include to move.toml example

* chore: update doc in root README.md

* chore: fix formatting

* chore: update evm_to_sui guide

* chore: update evm to sui guide

* chore: update Sui to Evm guide

* chore: update description
  • Loading branch information
npty authored Sep 5, 2023
1 parent b32f4b5 commit bbcffa8
Show file tree
Hide file tree
Showing 42 changed files with 1,569 additions and 50 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,49 @@ jobs:
os: [ubuntu-22.04]
arch: [amd64]
steps:
- name: Download Aptos Binary
- name: Download and Install Aptos Binary
run: |
wget --no-check-certificate https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v1.0.4/aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip
wget --no-check-certificate https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v1.0.4/aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip
unzip aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip
chmod +x aptos
cp aptos /usr/local/bin
sudo mv aptos /usr/local/bin
- name: Setup Dependencies for Sui Binary
run: sudo apt-get update && sudo apt-get install -y libpq-dev

- name: Download and Install Sui Binary
run: |
wget https://github.com/MystenLabs/sui/releases/download/devnet-v1.7.0/sui-devnet-v1.7.0-ubuntu-x86_64.tgz
tar -xvf sui-devnet-v1.7.0-ubuntu-x86_64.tgz
sudo mv ./target/release/sui-test-validator-ubuntu-x86_64 /usr/local/bin/sui-test-validator
sudo mv ./target/release/sui-ubuntu-x86_64 /usr/local/bin/sui
- name: Cleanup
run: rm -rf target aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip sui-devnet-v1.7.0-ubuntu-x86_64.tgz

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Checkout code
uses: actions/checkout@v3

- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
timeout-minutes: 15
run: |
nohup sh -c "sui-test-validator" > nohup.out 2> nohup.err < /dev/null &
nohup sh -c "aptos node run-local-testnet --with-faucet" > nohup.out 2> nohup.err < /dev/null &
sleep 10
npm run test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ Welcome to the Axelar Local Development Environment! This monorepo contains esse
- **Optional Packages**:
- [@axelar-network/axelar-local-dev-aptos](./packages/axelar-local-dev-aptos/)
- [@axelar-network/axelar-local-dev-near](./packages/axelar-local-dev-near/)
- [@axelar-network/axelar-local-dev-sui](./packages/axelar-local-dev-sui/)

The `axelar-local-dev` package is all you need for cross-chain applications between EVM chains. However, if you wish to explore cross-chain applications between EVM chains and other chain stacks, check out our specific guides:

- [EVM <-> Aptos Integration Guide](./packages/axelar-local-dev-aptos/README.md#configuration)
- [EVM <-> Near Integration Guide](./packages/axelar-local-dev-near/README.md#configuration)
- [Evm <-> Sui Integration Guide](./packages/axelar-local-dev-sui/README.md)

## Installation

Expand All @@ -36,3 +38,4 @@ We currently support the following chain stacks:

- [Aptos](./packages/axelar-local-dev-aptos/)
- [Near](./packages/axelar-local-dev-near/)
- [Sui](./packages/axelar-local-dev-sui/)
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "2.0.5",
"version": "2.1.0",
"packages": [
"packages/*"
]
Expand Down
Loading

0 comments on commit bbcffa8

Please sign in to comment.