You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains a simple Anchor-based Solana program used exclusively for end-to-end (E2E) testing in the development environment.
4
+
5
+
The purpose of this program is to verify the proper execution of the `ReceiveMessage` instruction in the Solana devnet. By doing so, this program helps validate the delivery of cross-chain messages from EVM to Solana.
6
+
7
+
## Program Details
8
+
The program consists of the following key elements:
9
+
-**Initialize Instruction**: Sets up a configuration account with an admin address and initializes a counter to `0`.
10
+
-**AdminAction Instruction**: Increments the counter only if the provided admin address matches the stored admin address.
11
+
12
+
### Purpose of the Counter
13
+
The counter is used to ensure that the `AdminAction` instruction executes successfully in the Solana devnet. Each successful call increments the counter, which is logged for verification.
14
+
15
+
## How to Use
16
+
1. Deploy the program to Solana devnet.
17
+
2. Use the accompanying E2E test scripts to interact with this program.
18
+
3. Verify that the instruction executes properly by observing the counter value in the logs.
19
+
20
+
## Testing Flow
21
+
1.**Generate Payload**: The script generates a Solana instruction payload using this external program.
22
+
2.**Dispatch Payload**: The payload is dispatched to Solana via the EVM contract (`HubSolanaMessageDispatcher`).
23
+
3.**Verify Execution**: Check the success of the instruction by checking the increment of the counter.
24
+
25
+
## Note
26
+
This program is intended **only for testing purposes** in the devnet and should not be used in production.
0 commit comments