Documentation
¶
Index ¶
- Variables
- type AssetBalance
- func (*AssetBalance) Descriptor() ([]byte, []int)deprecated
- func (x *AssetBalance) GetAsset() string
- func (x *AssetBalance) GetBalance() string
- func (x *AssetBalance) GetParty() string
- func (*AssetBalance) ProtoMessage()
- func (x *AssetBalance) ProtoReflect() protoreflect.Message
- func (x *AssetBalance) Reset()
- func (x *AssetBalance) String() string
- func (this *AssetBalance) Validate() error
- type AssetEntry
- func (*AssetEntry) Descriptor() ([]byte, []int)deprecated
- func (x *AssetEntry) GetAssetDetails() *proto1.AssetDetails
- func (x *AssetEntry) GetId() string
- func (*AssetEntry) ProtoMessage()
- func (x *AssetEntry) ProtoReflect() protoreflect.Message
- func (x *AssetEntry) Reset()
- func (x *AssetEntry) String() string
- func (this *AssetEntry) Validate() error
- type Assets
- type Checkpoint
- func (*Checkpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Checkpoint) GetAssets() []byte
- func (x *Checkpoint) GetCollateral() []byte
- func (x *Checkpoint) GetDelegation() []byte
- func (x *Checkpoint) GetGovernance() []byte
- func (x *Checkpoint) GetNetworkParameters() []byte
- func (*Checkpoint) ProtoMessage()
- func (x *Checkpoint) ProtoReflect() protoreflect.Message
- func (x *Checkpoint) Reset()
- func (x *Checkpoint) String() string
- func (this *Checkpoint) Validate() error
- type Collateral
- func (*Collateral) Descriptor() ([]byte, []int)deprecated
- func (x *Collateral) GetBalances() []*AssetBalance
- func (*Collateral) ProtoMessage()
- func (x *Collateral) ProtoReflect() protoreflect.Message
- func (x *Collateral) Reset()
- func (x *Collateral) String() string
- func (this *Collateral) Validate() error
- type Delegate
- func (*Delegate) Descriptor() ([]byte, []int)deprecated
- func (x *Delegate) GetActive() []*DelegateEntry
- func (x *Delegate) GetPending() []*DelegateEntry
- func (*Delegate) ProtoMessage()
- func (x *Delegate) ProtoReflect() protoreflect.Message
- func (x *Delegate) Reset()
- func (x *Delegate) String() string
- func (this *Delegate) Validate() error
- type DelegateEntry
- func (*DelegateEntry) Descriptor() ([]byte, []int)deprecated
- func (x *DelegateEntry) GetAmount() string
- func (x *DelegateEntry) GetEpochSeq() uint64
- func (x *DelegateEntry) GetNode() string
- func (x *DelegateEntry) GetParty() string
- func (x *DelegateEntry) GetUndelegate() bool
- func (*DelegateEntry) ProtoMessage()
- func (x *DelegateEntry) ProtoReflect() protoreflect.Message
- func (x *DelegateEntry) Reset()
- func (x *DelegateEntry) String() string
- func (this *DelegateEntry) Validate() error
- type NetParams
- func (*NetParams) Descriptor() ([]byte, []int)deprecated
- func (x *NetParams) GetParams() []*proto1.NetworkParameter
- func (*NetParams) ProtoMessage()
- func (x *NetParams) ProtoReflect() protoreflect.Message
- func (x *NetParams) Reset()
- func (x *NetParams) String() string
- func (this *NetParams) Validate() error
- type Proposals
- func (*Proposals) Descriptor() ([]byte, []int)deprecated
- func (x *Proposals) GetProposals() []*proto1.Proposal
- func (*Proposals) ProtoMessage()
- func (x *Proposals) ProtoReflect() protoreflect.Message
- func (x *Proposals) Reset()
- func (x *Proposals) String() string
- func (this *Proposals) Validate() error
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetHash() []byte
- func (x *Snapshot) GetState() []byte
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- func (this *Snapshot) Validate() error
Constants ¶
This section is empty.
Variables ¶
var File_snapshot_v1_snapshot_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AssetBalance ¶
type AssetBalance struct { Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
AssetBalance represents the total balance of a given asset for a party
func (*AssetBalance) Descriptor
deprecated
func (*AssetBalance) Descriptor() ([]byte, []int)
Deprecated: Use AssetBalance.ProtoReflect.Descriptor instead.
func (*AssetBalance) GetAsset ¶
func (x *AssetBalance) GetAsset() string
func (*AssetBalance) GetBalance ¶
func (x *AssetBalance) GetBalance() string
func (*AssetBalance) GetParty ¶
func (x *AssetBalance) GetParty() string
func (*AssetBalance) ProtoMessage ¶
func (*AssetBalance) ProtoMessage()
func (*AssetBalance) ProtoReflect ¶
func (x *AssetBalance) ProtoReflect() protoreflect.Message
func (*AssetBalance) Reset ¶
func (x *AssetBalance) Reset()
func (*AssetBalance) String ¶
func (x *AssetBalance) String() string
func (*AssetBalance) Validate ¶
func (this *AssetBalance) Validate() error
type AssetEntry ¶
type AssetEntry struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AssetDetails *proto1.AssetDetails `protobuf:"bytes,2,opt,name=asset_details,json=assetDetails,proto3" json:"asset_details,omitempty"` // contains filtered or unexported fields }
AssetEntrty is a single (enabled) asset
func (*AssetEntry) Descriptor
deprecated
func (*AssetEntry) Descriptor() ([]byte, []int)
Deprecated: Use AssetEntry.ProtoReflect.Descriptor instead.
func (*AssetEntry) GetAssetDetails ¶
func (x *AssetEntry) GetAssetDetails() *proto1.AssetDetails
func (*AssetEntry) GetId ¶
func (x *AssetEntry) GetId() string
func (*AssetEntry) ProtoMessage ¶
func (*AssetEntry) ProtoMessage()
func (*AssetEntry) ProtoReflect ¶
func (x *AssetEntry) ProtoReflect() protoreflect.Message
func (*AssetEntry) Reset ¶
func (x *AssetEntry) Reset()
func (*AssetEntry) String ¶
func (x *AssetEntry) String() string
func (*AssetEntry) Validate ¶
func (this *AssetEntry) Validate() error
type Assets ¶
type Assets struct { Assets []*AssetEntry `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // contains filtered or unexported fields }
Assets contains all the enabled assets as AssetEntries
func (*Assets) Descriptor
deprecated
func (*Assets) GetAssets ¶
func (x *Assets) GetAssets() []*AssetEntry
func (*Assets) ProtoMessage ¶
func (*Assets) ProtoMessage()
func (*Assets) ProtoReflect ¶
func (x *Assets) ProtoReflect() protoreflect.Message
type Checkpoint ¶
type Checkpoint struct { Governance []byte `protobuf:"bytes,1,opt,name=governance,proto3" json:"governance,omitempty"` Assets []byte `protobuf:"bytes,2,opt,name=assets,proto3" json:"assets,omitempty"` Collateral []byte `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral,omitempty"` NetworkParameters []byte `protobuf:"bytes,4,opt,name=network_parameters,json=networkParameters,proto3" json:"network_parameters,omitempty"` Delegation []byte `protobuf:"bytes,5,opt,name=delegation,proto3" json:"delegation,omitempty"` // contains filtered or unexported fields }
Checkpoint aggregates the various engine snapshots
func (*Checkpoint) Descriptor
deprecated
func (*Checkpoint) Descriptor() ([]byte, []int)
Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead.
func (*Checkpoint) GetAssets ¶
func (x *Checkpoint) GetAssets() []byte
func (*Checkpoint) GetCollateral ¶
func (x *Checkpoint) GetCollateral() []byte
func (*Checkpoint) GetDelegation ¶
func (x *Checkpoint) GetDelegation() []byte
func (*Checkpoint) GetGovernance ¶
func (x *Checkpoint) GetGovernance() []byte
func (*Checkpoint) GetNetworkParameters ¶
func (x *Checkpoint) GetNetworkParameters() []byte
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) ProtoReflect ¶
func (x *Checkpoint) ProtoReflect() protoreflect.Message
func (*Checkpoint) Reset ¶
func (x *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (x *Checkpoint) String() string
func (*Checkpoint) Validate ¶
func (this *Checkpoint) Validate() error
type Collateral ¶
type Collateral struct { Balances []*AssetBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` // contains filtered or unexported fields }
Collateral contains the balances per party
func (*Collateral) Descriptor
deprecated
func (*Collateral) Descriptor() ([]byte, []int)
Deprecated: Use Collateral.ProtoReflect.Descriptor instead.
func (*Collateral) GetBalances ¶
func (x *Collateral) GetBalances() []*AssetBalance
func (*Collateral) ProtoMessage ¶
func (*Collateral) ProtoMessage()
func (*Collateral) ProtoReflect ¶
func (x *Collateral) ProtoReflect() protoreflect.Message
func (*Collateral) Reset ¶
func (x *Collateral) Reset()
func (*Collateral) String ¶
func (x *Collateral) String() string
func (*Collateral) Validate ¶
func (this *Collateral) Validate() error
type Delegate ¶
type Delegate struct { Active []*DelegateEntry `protobuf:"bytes,1,rep,name=active,proto3" json:"active,omitempty"` Pending []*DelegateEntry `protobuf:"bytes,2,rep,name=pending,proto3" json:"pending,omitempty"` // contains filtered or unexported fields }
Delegate contains all entries for a checkpoint
func (*Delegate) Descriptor
deprecated
func (*Delegate) GetActive ¶
func (x *Delegate) GetActive() []*DelegateEntry
func (*Delegate) GetPending ¶
func (x *Delegate) GetPending() []*DelegateEntry
func (*Delegate) ProtoMessage ¶
func (*Delegate) ProtoMessage()
func (*Delegate) ProtoReflect ¶
func (x *Delegate) ProtoReflect() protoreflect.Message
type DelegateEntry ¶
type DelegateEntry struct { Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` Undelegate bool `protobuf:"varint,4,opt,name=undelegate,proto3" json:"undelegate,omitempty"` EpochSeq uint64 `protobuf:"varint,5,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"` // contains filtered or unexported fields }
Delegated amounts for party/node undelegate and epoch seq are only relevant for pending entries
func (*DelegateEntry) Descriptor
deprecated
func (*DelegateEntry) Descriptor() ([]byte, []int)
Deprecated: Use DelegateEntry.ProtoReflect.Descriptor instead.
func (*DelegateEntry) GetAmount ¶
func (x *DelegateEntry) GetAmount() string
func (*DelegateEntry) GetEpochSeq ¶
func (x *DelegateEntry) GetEpochSeq() uint64
func (*DelegateEntry) GetNode ¶
func (x *DelegateEntry) GetNode() string
func (*DelegateEntry) GetParty ¶
func (x *DelegateEntry) GetParty() string
func (*DelegateEntry) GetUndelegate ¶
func (x *DelegateEntry) GetUndelegate() bool
func (*DelegateEntry) ProtoMessage ¶
func (*DelegateEntry) ProtoMessage()
func (*DelegateEntry) ProtoReflect ¶
func (x *DelegateEntry) ProtoReflect() protoreflect.Message
func (*DelegateEntry) Reset ¶
func (x *DelegateEntry) Reset()
func (*DelegateEntry) String ¶
func (x *DelegateEntry) String() string
func (*DelegateEntry) Validate ¶
func (this *DelegateEntry) Validate() error
type NetParams ¶
type NetParams struct { Params []*proto1.NetworkParameter `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
NetParams contains all network parameters
func (*NetParams) Descriptor
deprecated
func (*NetParams) GetParams ¶
func (x *NetParams) GetParams() []*proto1.NetworkParameter
func (*NetParams) ProtoMessage ¶
func (*NetParams) ProtoMessage()
func (*NetParams) ProtoReflect ¶
func (x *NetParams) ProtoReflect() protoreflect.Message
type Proposals ¶
type Proposals struct { Proposals []*proto1.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` // contains filtered or unexported fields }
Proposals will contain all accepted proposals
func (*Proposals) Descriptor
deprecated
func (*Proposals) GetProposals ¶
func (*Proposals) ProtoMessage ¶
func (*Proposals) ProtoMessage()
func (*Proposals) ProtoReflect ¶
func (x *Proposals) ProtoReflect() protoreflect.Message
type Snapshot ¶
type Snapshot struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)
func (*Snapshot) Descriptor
deprecated
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message