Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit 007929e

Browse files
authored
solana: add more auction participant how-to to README (#135)
Signed-off-by: bingyuyap <[email protected]>
1 parent 433e4ea commit 007929e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

solana/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,29 @@ Next, you'll need an RPC for each network that you wish to relay `FastMarketOrde
7070
RPC to the config for the corresponding chain name.
7171

7272
Finally, you will need a funded USDC Associated Token Account (ATA), whose owner is your keypair.
73+
Ensure that your private key is securely stored in the `.env` file under the `SOLANA_PRIVATE_KEY`
74+
variable. This key is essential for signing transactions and interacting with the blockchain.
75+
Format the private key as a base64 string before adding it to the `.env` file.
7376

7477
### Vaa Auction Relayer
7578

7679
The `vaaAuctionRelayer` listens for `FastMarketOrder` VAAs emitted by the Liquidity Layer's network
7780
of contracts. It determines if the `maxFee` encoded in the `FastMarketOrder` VAA is high enough to
7881
participate in an auction, if it is, it executes a `place_initial_offer` instruction on the Solana
79-
`MatchingEngine`. If any known token accounts are the highest bidder at the end of an auction, this
80-
process will settle the auction by executing the `settle_auction_complete` instruction and posting
81-
the finalized VAA associated with the auction's `FastMarketOrder` VAA.
82+
`MatchingEngine`.
83+
84+
If any known token accounts are the highest bidder at the end of an auction, this process will settle
85+
the auction by executing the `settle_auction_complete` instruction and posting the finalized VAA
86+
associated with the auction's `FastMarketOrder` VAA. For the `vaaAuctionRelayer` to recognize executed
87+
fast transfers and execute the `settle_auction_complete` instruction, add the owner's public key to the
88+
`knownAtaOwners` array field in the configuration file.
89+
90+
The `vaaAuctionRelayer` relies on the `VaaSpy` to listen for `FastMarketOrder` VAAs. To set up the
91+
`VaaSpy`, make sure Docker is running and execute the following command:
92+
93+
```sh
94+
make wormhole-spy NETWORK=testnet
95+
```
8296

8397
To run the `vaaAuctionRelayer` execute the following command:
8498

0 commit comments

Comments
 (0)