-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,34 @@ | ||
# Call Contract | ||
|
||
This examples demonstrates on how you deploy a smart contract and sending message between evm chain and cosmos chain with Axelar. | ||
This example demonstrates how to deploy a smart contract and facilitate communication between an EVM chain and a Cosmos chain using Axelar. | ||
|
||
## Prerequisite | ||
|
||
- Docker running on your local machine. | ||
|
||
## Build a Contract (Optional) | ||
|
||
We've precompiled the contract [here](../cosmos/call-contract/wasm-contract/artifacts/send_receive.wasm), but if you'd like to modify some code, here's how you can recompile it: | ||
1. A precompiled version of the contract is available [here](../cosmos/call-contract/wasm-contract/artifacts/send_receive.wasm). If you wish to modify the contract, follow these steps to recompile it: | ||
|
||
``` | ||
npm run build-wasm | ||
``` | ||
|
||
Once completed, you should see the [wasm](./wasm-contract/artifacts/send_receive.wasm) file. | ||
2. Upon successful compilation, the wasm file will be available at [this location](./wasm-contract/artifacts/send_receive.wasm). | ||
Note: This wasm file is necessary for deploying the contract on the wasm chain as part of this example. | ||
|
||
We will use this file to deploy to the wasm chain for this example. | ||
## Deploying the Contract | ||
|
||
## Deploy a Contract | ||
To deploy the contract to the wasm chain and evm chains, execute the following command: | ||
|
||
``` | ||
npm run deploy cosmos/call-contract local | ||
``` | ||
|
||
## Execute example | ||
|
||
To run the example and see the contract in action, use the following command: | ||
|
||
``` | ||
npm run execute cosmos/call-contract local | ||
``` |