25 lines
547 B
Go
25 lines
547 B
Go
package notional
|
|
|
|
import (
|
|
"github.com/wormhole-foundation/wormhole/sdk/vaa"
|
|
)
|
|
|
|
// DummyNotionalCache is a dummy notional cache.
|
|
type DummyNotionalCache struct {
|
|
}
|
|
|
|
// NewDummyNotionalCache init a new dummy notional cache.
|
|
func NewDummyNotionalCache() *DummyNotionalCache {
|
|
return &DummyNotionalCache{}
|
|
}
|
|
|
|
// Get get notional cache value.
|
|
func (c *DummyNotionalCache) Get(chainID vaa.ChainID) (NotionalCacheField, error) {
|
|
return NotionalCacheField{}, nil
|
|
}
|
|
|
|
// Close the dummy cache.
|
|
func (c *DummyNotionalCache) Close() error {
|
|
return nil
|
|
}
|