2020-08-17 10:29:25 -07:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2021-08-26 01:35:09 -07:00
|
|
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
2020-08-20 12:48:58 -07:00
|
|
|
"time"
|
2020-08-17 10:29:25 -07:00
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
)
|
|
|
|
|
2021-04-15 02:36:29 -07:00
|
|
|
type MessagePublication struct {
|
2020-08-21 11:49:33 -07:00
|
|
|
TxHash common.Hash // TODO: rename to identifier? on Solana, this isn't actually the tx hash
|
2020-08-20 12:48:58 -07:00
|
|
|
Timestamp time.Time
|
2020-08-21 11:49:33 -07:00
|
|
|
|
2021-07-09 05:56:52 -07:00
|
|
|
Nonce uint32
|
|
|
|
Sequence uint64
|
|
|
|
ConsistencyLevel uint8
|
|
|
|
EmitterChain vaa.ChainID
|
|
|
|
EmitterAddress vaa.Address
|
|
|
|
Payload []byte
|
2020-08-17 10:29:25 -07:00
|
|
|
}
|