/wormhole-swap

Primary LanguageTypeScriptOtherNOASSERTION

Wormhole Scaffolding

This repository warehouses apps that integrate with Wormhole generic messaging and existing apps that use Wormhole message passing. These apps range in complexity and demonstrate how to organize your business logic in your smart contracts. These examples also show how you would write tests supporting your Wormhole integration.

Prerequisites

EVM

If your xChain app will require EVM smart contracts, we recommend using Foundry tools, which include forge, anvil and cast CLI tools.

Solana

If your xChain app will require Solana programs, prepare your development environment by installing Solana and Anchor dependencies, which include solana and anchor CLI tools.

SUI

Install the Sui CLI. This tool is used to compile the contracts and run the tests.

cargo install --locked --git https://github.com/MystenLabs/sui.git --rev 09b2081498366df936abae26eea4b2d5cafb2788 sui sui-faucet

Worm CLI

First, checkout the Wormhole repo, then install the CLI tool by running:

wormhole/clients/js $ make install

worm is the swiss army knife for interacting with wormhole contracts on all supported chains, and generating signed messages (VAAs) for testing.

Build and Test

Each directory represents Wormhole integrations for specific blockchain networks. Please navigate to a network subdirectory to see more details on building and testing.