Files
2023-08-03 14:12:49 -04:00

23 lines
500 B
Go

// Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package storage
import (
"github.com/ava-labs/avalanchego/ids"
)
type StateManager struct{}
func (*StateManager) HeightKey() []byte {
return HeightKey()
}
func (*StateManager) IncomingWarpKey(sourceChainID ids.ID, msgID ids.ID) []byte {
return IncomingWarpKeyPrefix(sourceChainID, msgID)
}
func (*StateManager) OutgoingWarpKey(txID ids.ID) []byte {
return OutgoingWarpKeyPrefix(txID)
}