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
Adds pyth-vaa for router-signed VAA verification and pyth-pro for
price feed updates. This keeps existing pyth and wormhole contracts
unchanged while giving the upgraded Pyth deployment fresh contract names.
pyth-pro queries pyth-vaa for VerifyVAA, then validates the PNAU
Merkle proof and relays the AKT/USD price to x/oracle. The local
deployment script stores pyth-vaa before pyth-pro and registers pyth-pro
as the oracle source.
Signed-off-by: Joseph Chalabi <chalabi.joseph@gmail.com>
HERMES_MNEMONIC="wire museum tragic inmate final lady illegal father whisper margin sea cool soul half moon nut tissue strategy ladder come glory opera device elbow"
28
29
@@ -139,8 +140,15 @@ deploy_contracts() {
139
140
admin_addr=$(akash keys show $admin_key -a)
140
141
141
142
# Check if contract files exist
142
-
if [ !-f"$PYTH_WASM" ];then
143
-
log "ERROR: Pyth contract not found at $PYTH_WASM"
143
+
if [ !-f"$PYTH_VAA_WASM" ];then
144
+
log "ERROR: Pyth VAA contract not found at $PYTH_VAA_WASM"
145
+
log "Skipping contract deployment. Build contracts first with: cd contracts && make build"
146
+
write_hermes_config "CONTRACT_NOT_DEPLOYED"
147
+
return 1
148
+
fi
149
+
150
+
if [ !-f"$PYTH_PRO_WASM" ];then
151
+
log "ERROR: Pyth Pro contract not found at $PYTH_PRO_WASM"
144
152
log "Skipping contract deployment. Build contracts first with: cd contracts && make build"
0 commit comments