-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
43 lines (40 loc) · 1.07 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package types
func NewValsetConfirmation(valsetNonce uint64, ethSigner string, signature string, orchestrator string) *ValsetConfirmation {
return &ValsetConfirmation{
ValsetNonce: valsetNonce,
EthAddress: ethSigner,
Signature: signature,
Orchestrator: orchestrator,
}
}
func NewValsetUpdatedClaim(chainId string, contract string, eventNonce uint64, blockHeight uint64,
valsetNonce uint64, sourceTxHash string,
) *ValsetUpdatedClaim {
return &ValsetUpdatedClaim{
ChainId: chainId,
Contract: contract,
EventNonce: eventNonce,
BlockHeight: blockHeight,
ValsetNonce: valsetNonce,
SourceTxHash: sourceTxHash,
}
}
func NewValsetUpdatedClaimHash(
chainId string,
contract string,
eventNonce uint64,
blockHeight uint64,
valsetNonce uint64,
sourceTxHash string,
members []BridgeValidator,
) *ValsetUpdatedClaimHash {
return &ValsetUpdatedClaimHash{
ChainId: chainId,
Contract: contract,
EventNonce: eventNonce,
BlockHeight: blockHeight,
ValsetNonce: valsetNonce,
SourceTxHash: sourceTxHash,
Members: members,
}
}