Skip to content

Commit

Permalink
feat: axelar local dev multiversx (#104)
Browse files Browse the repository at this point in the history
* Start setup of multiversx package.

* Start developing multiversx package integration.

* Deploy multiversx axelar contracts to localnet.

* Start working on call contract example for evm to multiversx.

* Working temp example with avalanche to ethereum message.

* Add hello world contract for multiversx and deploy it.

* Working cross chain call from Ethereum to MultiversX.

* Cleanup for multiversx package and fully working multiversx relayer with elasticsearch events.

* Add wasm contracts to repo.

* MultiversX transaction watcher fixes and updates for new contracts.

* Fix multiversx contract execute.

* Add integration tests for multiversx.

* Update github actions for multiversx.

---------

Co-authored-by: Rares <[email protected]>
  • Loading branch information
raress96 and raress96 authored Mar 5, 2024
1 parent 27f8dcf commit 679b066
Show file tree
Hide file tree
Showing 34 changed files with 5,480 additions and 403 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ jobs:
matrix:
os: [ubuntu-22.04]
arch: [amd64]
# Elasticsearch used by MultiversX test
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.12.0"
env:
discovery.type: single-node
xpack.security.enabled: false
ports:
- "9200:9200"
steps:
- name: Download and Install Aptos Binary
run: |
Expand Down Expand Up @@ -37,6 +46,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Download and Install Multiversx Binary
run: |
pip3 install multiversx-sdk-cli==v9.3.1
mxpy localnet setup
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator00/config
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator01/config
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator02/config
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

Expand All @@ -57,7 +74,8 @@ jobs:
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 &
nohup sh -c "mxpy localnet start" > nohup.out 2> nohup.err < /dev/null &
nohup sh -c "anvil" < /dev/null &
nohup sh -c "anvil -p 8546" < /dev/null &
sleep 10
sleep 30
npm run test
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ Welcome to the Axelar Local Development Environment! This monorepo contains esse
- [@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/)
- [@axelar-network/axelar-local-dev-multiversx](./packages/axelar-local-dev-multiversx/)

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)\
- [Evm <-> Sui Integration Guide](./packages/axelar-local-dev-sui/README.md)
- [EVM <-> MultiversX Integration Guide](./packages/axelar-local-dev-multiversx/README.md#configuration)

## Prerequisites

Expand Down Expand Up @@ -44,3 +46,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/)
- [MultiversX](./packages/axelar-local-dev-multiversx/)
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.1.9",
"version": "2.2.0",
"packages": [
"packages/*"
]
Expand Down
Loading

0 comments on commit 679b066

Please sign in to comment.