@@ -70,6 +70,10 @@ struct CliConfig {
7070 #[ arg( long) ]
7171 solana_wormhole_address : Option < String > ,
7272 #[ arg( long) ]
73+ solana_wormhole_post_message_shim_program_id : Option < String > ,
74+ #[ arg( long) ]
75+ solana_wormhole_post_message_shim_event_authority : Option < String > ,
76+ #[ arg( long) ]
7377 solana_keypair : Option < String > ,
7478
7579 #[ arg( long) ]
@@ -133,6 +137,12 @@ impl CliConfig {
133137 solana_wormhole_address : self
134138 . solana_wormhole_address
135139 . or ( other. solana_wormhole_address ) ,
140+ solana_wormhole_post_message_shim_program_id : self
141+ . solana_wormhole_post_message_shim_program_id
142+ . or ( other. solana_wormhole_post_message_shim_program_id ) ,
143+ solana_wormhole_post_message_shim_event_authority : self
144+ . solana_wormhole_post_message_shim_event_authority
145+ . or ( other. solana_wormhole_post_message_shim_event_authority ) ,
136146 solana_keypair : self . solana_keypair . or ( other. solana_keypair ) ,
137147
138148 wormhole_api : self . wormhole_api . or ( other. wormhole_api ) ,
@@ -188,6 +198,14 @@ fn env_config() -> CliConfig {
188198 solana_rpc : env:: var ( "SOLANA_RPC" ) . ok ( ) ,
189199 solana_bridge_address : env:: var ( "SOLANA_BRIDGE_ADDRESS" ) . ok ( ) ,
190200 solana_wormhole_address : env:: var ( "SOLANA_WORMHOLE_ADDRESS" ) . ok ( ) ,
201+ solana_wormhole_post_message_shim_program_id : env:: var (
202+ "SOLANA_WORMHOLE_POST_MESSAGE_SHIM_PROGRAM_ID" ,
203+ )
204+ . ok ( ) ,
205+ solana_wormhole_post_message_shim_event_authority : env:: var (
206+ "SOLANA_WORMHOLE_POST_MESSAGE_SHIM_EVENT_AUTHORITY" ,
207+ )
208+ . ok ( ) ,
191209 solana_keypair : env:: var ( "SOLANA_KEYPAIR" ) . ok ( ) ,
192210
193211 wormhole_api : env:: var ( "WORMHOLE_API" ) . ok ( ) ,
@@ -245,6 +263,12 @@ fn default_config(network: Network) -> CliConfig {
245263 solana_rpc : Some ( defaults:: SOLANA_RPC_MAINNET . to_owned ( ) ) ,
246264 solana_bridge_address : Some ( defaults:: SOLANA_BRIDGE_ADDRESS_MAINNET . to_owned ( ) ) ,
247265 solana_wormhole_address : Some ( defaults:: SOLANA_WORMHOLE_ADDRESS_MAINNET . to_owned ( ) ) ,
266+ solana_wormhole_post_message_shim_program_id : Some (
267+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_PROGRAM_ID_MAINNET . to_owned ( ) ,
268+ ) ,
269+ solana_wormhole_post_message_shim_event_authority : Some (
270+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_EVENT_AUTHORITY_MAINNET . to_owned ( ) ,
271+ ) ,
248272 solana_keypair : None ,
249273
250274 wormhole_api : Some ( defaults:: WORMHOLE_API_MAINNET . to_owned ( ) ) ,
@@ -296,6 +320,12 @@ fn default_config(network: Network) -> CliConfig {
296320 solana_rpc : Some ( defaults:: SOLANA_RPC_TESTNET . to_owned ( ) ) ,
297321 solana_bridge_address : Some ( defaults:: SOLANA_BRIDGE_ADDRESS_TESTNET . to_owned ( ) ) ,
298322 solana_wormhole_address : Some ( defaults:: SOLANA_WORMHOLE_ADDRESS_TESTNET . to_owned ( ) ) ,
323+ solana_wormhole_post_message_shim_program_id : Some (
324+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_PROGRAM_ID_TESTNET . to_owned ( ) ,
325+ ) ,
326+ solana_wormhole_post_message_shim_event_authority : Some (
327+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_EVENT_AUTHORITY_TESTNET . to_owned ( ) ,
328+ ) ,
299329 solana_keypair : None ,
300330
301331 wormhole_api : Some ( defaults:: WORMHOLE_API_TESTNET . to_owned ( ) ) ,
@@ -347,6 +377,12 @@ fn default_config(network: Network) -> CliConfig {
347377 solana_rpc : Some ( defaults:: SOLANA_RPC_DEVNET . to_owned ( ) ) ,
348378 solana_bridge_address : Some ( defaults:: SOLANA_BRIDGE_ADDRESS_DEVNET . to_owned ( ) ) ,
349379 solana_wormhole_address : Some ( defaults:: SOLANA_WORMHOLE_ADDRESS_DEVNET . to_owned ( ) ) ,
380+ solana_wormhole_post_message_shim_program_id : Some (
381+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_PROGRAM_ID_DEVNET . to_owned ( ) ,
382+ ) ,
383+ solana_wormhole_post_message_shim_event_authority : Some (
384+ defaults:: SOLANA_WORMHOLE_POST_MESSAGE_SHIM_EVENT_AUTHORITY_DEVNET . to_owned ( ) ,
385+ ) ,
350386 solana_keypair : None ,
351387
352388 wormhole_api : Some ( defaults:: WORMHOLE_API_DEVNET . to_owned ( ) ) ,
0 commit comments