wormhole/svm/wormhole-core-shims/crates/definitions
A5 Pickle 9b9c07b4b1
add svm/wormhole-core-shims (#4311)
* svm: wormhole-post-message-shim

* svm: compare shim costs

* svm: save 1994 CU by nixing CpiContext

* svm: wormhole-vaa-verification-example existing core post vaa method

* svm: add consume_vaas

* svm: wormhole-verify-vaa-shim

* svm: move guardian_set_index into guardian signatures account

* svm: wormhole-integrator-example

* svm: rename verification-example to comparison

* svm: comments

* svm: readme

* svm: rename

* svm: initial e2e test

* svm: add anchor interfaces

* svm: add wormhole-svm-definitions

svm: add wormhole-svm-shim

svm: add rust tests for post message

svm: update js tests for post message

* svm: remove anchor from post message

* simplify post message program

update post message instruction builder

* svm: birdie

* svm: update post message interface

* svm: clean up

* svm: add post signatures to wormhole-svm-shim

svm: reorganize wormhole-svm-definitions

svm: reorganize wormhole-svm-shim

add rust tests for post signatures

* svm: remove anchor from post signatures

svm: remove errors from verify vaa interface

* svm: add close signatures to wormhole-svm-shim

svm: add rust tests for close signatures

svm: remove anchor from close signatures

svm: clean up post signatures

* svm: add verify vaa to wormhole-svm-shim

svm: add rust tests for verify vaa

svm: add guardian set account reader

svm: fix CUs in tests

* svm: rename verify vaa ix to verify hash

svm: clean up anchor interfaces

* svm: add guardian set bump instruction arg

svm: use seed consts

* svm: remove anchor completely from verify vaa

* svm: birdie

svm: rename left/right to actual/expected

svm: fix Makefile

* svm: solana 2.0

svm: update Cargo.lock

svm: clippy

* svm: move anchor event selector to defs

* svm: rename to DataDiscriminator

* svm: birdie

* svm: clippy

* svm: fix create account logic

* svm: add err msg for guardian signatures

* svm: remove rent sysvar

* svm: fix index comments

update Makefile

* svm: add missing signer checks

* svm: fix anchor interfaces

svm: clean up docs

* svm: fix make build

solana: fix test artifacts

* svm: add missing owner check in verify hash

svm: remove realloc and assign in close signatures

* svm: remove unnecessary enum

* svm: fix create account logic

* svm: safer?

* svm: update READMEs

* svm: fix spelling

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
Co-authored-by: Paul Noel <panoel007@gmail.com>
Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
2025-04-02 10:30:27 -04:00
..
src add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
Cargo.toml add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00
README.md add svm/wormhole-core-shims (#4311) 2025-04-02 10:30:27 -04:00

README.md

Wormhole SVM Definitions

Definitions relating to Wormhole SVM programs. These definitions include finding PDA addresses (and corresponding bump seeds), various consts (like program IDs), and other things that define these program accounts and data.

Cargo Features

There are features that define network types and specific SVM networks.

Network Types

The default network type is mainnet. There is no feature that defines mainnet. But if one of the following features are defined, program IDs and account addresses will not use the ones defined for mainnet.

  • localnet: Wormhole's Tilt devnet. Programs like the Wormhole Core Bridge and its associated PDAs have addresses specific to this local development network.
  • testnet: Public devnet or testnet depending on the specific SVM network. For Solana specifically, this feature corresponds to the public Solana devnet.

Specific Networks

There are no default network features. These feature labels also exist as submodules in this crate. By defining a particular SVM network feature, the definitions found in this submodule are simply exported into the crate root.

  • solana

Other Features

  • borsh: Accounts and events relating to Wormhole SVM programs that follow Borsh serialization. This feature also supports deserializing data with discriminators.