wormhole/svm/wormhole-core-shims
A5 Pickle 453402001b svm: pin build to 2.1.11 2025-04-04 14:26:02 -04:00
..
anchor add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
crates add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
programs add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
.gitignore add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
Cargo.lock svm: pin build to 2.1.11 2025-04-04 14:26:02 -04:00
Cargo.toml add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
Makefile svm: use solana-verify to build 2025-04-04 14:26:02 -04:00
README.md svm: use solana-verify to build 2025-04-04 14:26:02 -04:00
rust-toolchain.toml add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00

README.md

Wormhole Core Shims

The intent of the following programs is to reduce the cost of Core Bridge message emission and verification on Solana without making changes to the existing core bridge.

The following are provided for example purposes only

Verifiable Build

The build commands require that solana-verify is installed on your machine. An example of how to build for Solana mainnet:

NETWORK=mainnet SVM=solana make build-artifacts

This example command will result compiled verifiable programs in the artifacts-mainnet directory. This command will not run if this directory already exists.

Tests

To perform unit, doc and integration tests, run:

make test

Integration tests are run using cargo test-sbf, but this requires having the Solana toolchain installed via agave-install.

Programs are built using Solana version 2.1.11, which is the current CLI available at the time these programs were written.

The make command above will initialize the Solana CLI version needed to build and test. After running the tests, your CLI will still be configured to this version. Please note your Solana CLI version before running this command.

There are separate Anchor tests found in the anchor directory.

For initial end-to-end (e2e) testing the post message shim with the guardian, the programs were built with the following:

NETWORK=localnet SVM=solana make build

Please see the anchor directory to build the examples. The resulting program binaries were then