wormhole-nativeswap-example/anchor-solana
skojenov a0aab88279 InitTxOutNative passes tokenBridge 2022-07-19 20:25:22 +00:00
..
migrations Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
programs/xc_swap InitTxOutNative passes tokenBridge 2022-07-19 20:25:22 +00:00
tests InitTxOutNative passes tokenBridge 2022-07-19 20:25:22 +00:00
.gitignore Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
.prettierignore Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
Anchor.toml Implemented contract_initialize with test 2022-06-30 20:38:42 +00:00
Cargo.lock Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
Cargo.toml Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
README.md Rebuilt wormhole contracts and minor code corrections 2022-07-18 13:19:43 +00:00
package.json Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
test.env Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
tsconfig.json Added anchor-solana dir. 2022-06-28 20:37:38 +00:00
yarn.lock Added anchor-solana dir. 2022-06-28 20:37:38 +00:00

README.md

How to build solana .so contracts.

in wormhole repo in wormhole/solana/ run

make NETWORK=devnet artifacts

or

make NETWORK=testnet artifacts

That will create wormhole/solana/artifacts-devnet/ or *-testnet dir with *.so cntracts.

Copy needed .so files to wormhole-nativeswap-example/anchor-solana/tests

wormhole-nativeswap-example/anchor-solana$ cp ../../wormhole/solana/artifacts-devnet/bridge.so tests/
wormhole-nativeswap-example/anchor-solana$ cp ../../wormhole/solana/artifacts-devnet/token_bridge.so tests/