v1

package
v0.42.0-pre4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Assets.ProtoReflect.Descriptor instead.

func (*Assets) GetAssets

func (x *Assets) GetAssets() []*AssetEntry

func (*Assets) ProtoMessage

func (*Assets) ProtoMessage()

func (*Assets) ProtoReflect

func (x *Assets) ProtoReflect() protoreflect.Message

func (*Assets) Reset

func (x *Assets) Reset()

func (*Assets) String

func (x *Assets) String() string

func (*Assets) Validate

func (this *Assets) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Delegate.ProtoReflect.Descriptor instead.

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

func (*Delegate) Reset

func (x *Delegate) Reset()

func (*Delegate) String

func (x *Delegate) String() string

func (*Delegate) Validate

func (this *Delegate) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use NetParams.ProtoReflect.Descriptor instead.

func (*NetParams) GetParams

func (x *NetParams) GetParams() []*proto1.NetworkParameter

func (*NetParams) ProtoMessage

func (*NetParams) ProtoMessage()

func (*NetParams) ProtoReflect

func (x *NetParams) ProtoReflect() protoreflect.Message

func (*NetParams) Reset

func (x *NetParams) Reset()

func (*NetParams) String

func (x *NetParams) String() string

func (*NetParams) Validate

func (this *NetParams) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Proposals.ProtoReflect.Descriptor instead.

func (*Proposals) GetProposals

func (x *Proposals) GetProposals() []*proto1.Proposal

func (*Proposals) ProtoMessage

func (*Proposals) ProtoMessage()

func (*Proposals) ProtoReflect

func (x *Proposals) ProtoReflect() protoreflect.Message

func (*Proposals) Reset

func (x *Proposals) Reset()

func (*Proposals) String

func (x *Proposals) String() string

func (*Proposals) Validate

func (this *Proposals) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetHash

func (x *Snapshot) GetHash() []byte

func (*Snapshot) GetState

func (x *Snapshot) GetState() []byte

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

func (x *Snapshot) ProtoReflect() protoreflect.Message

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

func (*Snapshot) Validate

func (this *Snapshot) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL