-
Notifications
You must be signed in to change notification settings - Fork 87
/
types.go
29 lines (23 loc) · 859 Bytes
/
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
package types
import (
sdk "github.com/algorand/go-algorand-sdk/v2/types"
)
// TODO: should these types be defined in the SDK? In the future there could be automation to keep certain
// types in go-algorand and go-algorand-sdk synchronized.
// A ValidatedBlock represents an Block that has been successfully validated
// and can now be recorded in the ledger.
type ValidatedBlock struct {
Block sdk.Block `codec:"Blk"`
Delta sdk.LedgerStateDelta
}
// EncodedBlockCert contains the encoded block and the corresponding encoded certificate
type EncodedBlockCert struct {
_struct struct{} `codec:""`
Block sdk.Block `codec:"block"`
Certificate map[string]interface{} `codec:"cert"`
}
// SpecialAddresses holds addresses with nonstandard properties.
type SpecialAddresses struct {
FeeSink sdk.Address
RewardsPool sdk.Address
}