forked from TrueCloudLab/frostfs-node
[#971] *: Add notification TX hash to neofs/netmap morph client calls
Add hash of the TX that generated notification to neofs/netmap event structures. Adapt all neofs/netmap wrapper calls to new structures. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
c25f5a86ae
commit
bad739258e
19 changed files with 220 additions and 60 deletions
|
@ -26,12 +26,21 @@ type (
|
|||
AlphabetState interface {
|
||||
IsAlphabet() bool
|
||||
}
|
||||
)
|
||||
|
||||
// Voter is a callback interface for alphabet contract voting.
|
||||
Voter interface {
|
||||
VoteForSidechainValidator(keys keys.PublicKeys) error
|
||||
}
|
||||
// VoteValidatorPrm groups parameters of the VoteForSidechainValidator
|
||||
// operation.
|
||||
type VoteValidatorPrm struct {
|
||||
Validators keys.PublicKeys
|
||||
Hash *util.Uint256 // hash of the transaction that triggered voting
|
||||
}
|
||||
|
||||
// Voter is a callback interface for alphabet contract voting.
|
||||
type Voter interface {
|
||||
VoteForSidechainValidator(VoteValidatorPrm) error
|
||||
}
|
||||
|
||||
type (
|
||||
// EpochState is a callback interface for innerring global state.
|
||||
EpochState interface {
|
||||
EpochCounter() uint64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue