@@ -70,15 +70,29 @@ Next, you'll need an RPC for each network that you wish to relay `FastMarketOrde
70
70
RPC to the config for the corresponding chain name.
71
71
72
72
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.
73
76
74
77
### Vaa Auction Relayer
75
78
76
79
The ` vaaAuctionRelayer ` listens for ` FastMarketOrder ` VAAs emitted by the Liquidity Layer's network
77
80
of contracts. It determines if the ` maxFee ` encoded in the ` FastMarketOrder ` VAA is high enough to
78
81
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
+ ```
82
96
83
97
To run the ` vaaAuctionRelayer ` execute the following command:
84
98
0 commit comments