Skip to content

Commit eea09cc

Browse files
zpokenValentine1898
andauthoredNov 6, 2024··
Implement receive message in solana spoke message executor (#191)
* implement receive_message() * cleanup * wip * message parser tests * use core bridge mocks * use mainnet CORE_BRIDGE_PROGRAM_ID * add MAX_INSTRUCTIONS, MAX_ACCOUNTS,MAX_DATA_LENGTH * use ethabi deserialization * use offset to skip payload id for vaa deserialization * tests refactoring * use latest wormhole-anchor-sdk * format * added executor test with external program * review changes * Use init instead of init_if_needed * Apple yarn format * Remove unnecessary checks for airlock and executor accounts * use governance_authority account as payer for InitializeSpokeMessageExecutor --------- Co-authored-by: valentine <valentyn1789@gmail.com>
1 parent 54c69b6 commit eea09cc

39 files changed

+1889
-420
lines changed
 

‎solana/Anchor.toml

+26
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,33 @@ binary_path = "./target/deploy/staking.so"
3131
address = "dxZtypiKT5D9LYzdPxjvSZER9MgYfeRVU5qpMTMTRs4"
3232
filename = "tests/accounts/guardian_set_0.json"
3333

34+
35+
### Wormhole Core Bridge Program
36+
[core_bridge_program]
37+
address = "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"
38+
program = "tests/artifacts/devnet_core_bridge.so"
39+
3440
### Wormhole Core Bridge Guardian Set 5 (mock)
3541
[guardian_set_5]
3642
address = "7uZXwew7N7oKqNNUmoXWa5GBQPWGHd8vzJVtWivALLAJ"
3743
filename = "tests/accounts/guardian_set_5_mock.json"
44+
45+
### Wormhole Core Bridge -- Config
46+
[config]
47+
address = "2yVjuQwpsvdsrywzsJJVs9Ueh4zayyo5DYJbBNc3DDpn"
48+
filename = "tests/accounts/config.json"
49+
50+
### Wormhole Core Bridge -- Fee Collector
51+
[fee_collector]
52+
address = "9bFNrXNb2WTx8fMHXCheaZqkLZ3YCCaiqTftHxeintHy"
53+
filename = "tests/accounts/fee_collector.json"
54+
55+
### Wormhole Core Bridge -- Guardian Set 1
56+
[guardian_set_1]
57+
address = "DS7qfSAgYsonPpKoAjcGhX9VFjXdGkiHjEDkTidf8H2P"
58+
filename = "tests/accounts/guardian_set_1.json"
59+
60+
### Some external program for executor tests
61+
[external_program]
62+
address = "3Pe7YqWdD9Pj8ejb7ex2j7nuKpPhtGR8yktxQGZ8SgQa"
63+
program = "tests/artifacts/external_program.so"

0 commit comments

Comments
 (0)
Please sign in to comment.