2020-08-17 10:29:25 -07:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"math/big"
|
2020-08-20 12:48:58 -07:00
|
|
|
"time"
|
2020-08-17 10:29:25 -07:00
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
|
|
|
|
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ChainLock 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
|
|
|
|
2020-08-20 12:48:58 -07:00
|
|
|
Nonce uint32
|
2020-08-17 10:29:25 -07:00
|
|
|
|
|
|
|
SourceAddress vaa.Address
|
|
|
|
TargetAddress vaa.Address
|
|
|
|
|
|
|
|
SourceChain vaa.ChainID
|
|
|
|
TargetChain vaa.ChainID
|
|
|
|
|
2020-08-28 06:10:42 -07:00
|
|
|
TokenChain vaa.ChainID
|
|
|
|
TokenAddress vaa.Address
|
|
|
|
TokenDecimals uint8
|
2020-08-17 10:29:25 -07:00
|
|
|
|
|
|
|
Amount *big.Int
|
|
|
|
}
|