github.com/wormhole-foundation/wormhole-explorer/common@v0.0.0-20240604151348-09585b5b97c5/domain/vaa.go (about) 1 package domain 2 3 import sdk "github.com/wormhole-foundation/wormhole/sdk/vaa" 4 5 // ConsistencyLevelIsImmediately returns true if the VAA is to be published immediately 6 func ConsistencyLevelIsImmediately(v *sdk.VAA) bool { 7 8 //https://docs.wormhole.com/wormhole/reference/constants#consistency-levels 9 if v.EmitterChain == sdk.ChainIDSolana { 10 return v.ConsistencyLevel == 0 11 } 12 13 if v.ConsistencyLevel == sdk.ConsistencyLevelPublishImmediately { 14 return true 15 } 16 17 return false 18 }