v1

package
v0.42.0-pre6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AssetBalance represents the total balance of a given asset for a party

func (*AssetBalance) Descriptor

func (*AssetBalance) Descriptor() ([]byte, []int)

func (*AssetBalance) GetAsset

func (m *AssetBalance) GetAsset() string

func (*AssetBalance) GetBalance

func (m *AssetBalance) GetBalance() string

func (*AssetBalance) GetParty

func (m *AssetBalance) GetParty() string

func (*AssetBalance) ProtoMessage

func (*AssetBalance) ProtoMessage()

func (*AssetBalance) Reset

func (m *AssetBalance) Reset()

func (*AssetBalance) String

func (m *AssetBalance) String() string

func (*AssetBalance) Validate

func (this *AssetBalance) Validate() error

func (*AssetBalance) XXX_DiscardUnknown

func (m *AssetBalance) XXX_DiscardUnknown()

func (*AssetBalance) XXX_Marshal

func (m *AssetBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetBalance) XXX_Merge

func (m *AssetBalance) XXX_Merge(src proto.Message)

func (*AssetBalance) XXX_Size

func (m *AssetBalance) XXX_Size() int

func (*AssetBalance) XXX_Unmarshal

func (m *AssetBalance) XXX_Unmarshal(b []byte) error

type AssetEntry

type AssetEntry struct {
	Id                   string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AssetDetails         *vega.AssetDetails `protobuf:"bytes,2,opt,name=asset_details,json=assetDetails,proto3" json:"asset_details,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

AssetEntrty is a single (enabled) asset

func (*AssetEntry) Descriptor

func (*AssetEntry) Descriptor() ([]byte, []int)

func (*AssetEntry) GetAssetDetails

func (m *AssetEntry) GetAssetDetails() *vega.AssetDetails

func (*AssetEntry) GetId

func (m *AssetEntry) GetId() string

func (*AssetEntry) ProtoMessage

func (*AssetEntry) ProtoMessage()

func (*AssetEntry) Reset

func (m *AssetEntry) Reset()

func (*AssetEntry) String

func (m *AssetEntry) String() string

func (*AssetEntry) Validate

func (this *AssetEntry) Validate() error

func (*AssetEntry) XXX_DiscardUnknown

func (m *AssetEntry) XXX_DiscardUnknown()

func (*AssetEntry) XXX_Marshal

func (m *AssetEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetEntry) XXX_Merge

func (m *AssetEntry) XXX_Merge(src proto.Message)

func (*AssetEntry) XXX_Size

func (m *AssetEntry) XXX_Size() int

func (*AssetEntry) XXX_Unmarshal

func (m *AssetEntry) XXX_Unmarshal(b []byte) error

type Assets

type Assets struct {
	Assets               []*AssetEntry `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Assets contains all the enabled assets as AssetEntries

func (*Assets) Descriptor

func (*Assets) Descriptor() ([]byte, []int)

func (*Assets) GetAssets

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

func (*Assets) ProtoMessage

func (*Assets) ProtoMessage()

func (*Assets) Reset

func (m *Assets) Reset()

func (*Assets) String

func (m *Assets) String() string

func (*Assets) Validate

func (this *Assets) Validate() error

func (*Assets) XXX_DiscardUnknown

func (m *Assets) XXX_DiscardUnknown()

func (*Assets) XXX_Marshal

func (m *Assets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Assets) XXX_Merge

func (m *Assets) XXX_Merge(src proto.Message)

func (*Assets) XXX_Size

func (m *Assets) XXX_Size() int

func (*Assets) XXX_Unmarshal

func (m *Assets) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Checkpoint aggregates the various engine snapshots

func (*Checkpoint) Descriptor

func (*Checkpoint) Descriptor() ([]byte, []int)

func (*Checkpoint) GetAssets

func (m *Checkpoint) GetAssets() []byte

func (*Checkpoint) GetCollateral

func (m *Checkpoint) GetCollateral() []byte

func (*Checkpoint) GetDelegation

func (m *Checkpoint) GetDelegation() []byte

func (*Checkpoint) GetGovernance

func (m *Checkpoint) GetGovernance() []byte

func (*Checkpoint) GetNetworkParameters

func (m *Checkpoint) GetNetworkParameters() []byte

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) Reset

func (m *Checkpoint) Reset()

func (*Checkpoint) String

func (m *Checkpoint) String() string

func (*Checkpoint) Validate

func (this *Checkpoint) Validate() error

func (*Checkpoint) XXX_DiscardUnknown

func (m *Checkpoint) XXX_DiscardUnknown()

func (*Checkpoint) XXX_Marshal

func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Checkpoint) XXX_Merge

func (m *Checkpoint) XXX_Merge(src proto.Message)

func (*Checkpoint) XXX_Size

func (m *Checkpoint) XXX_Size() int

func (*Checkpoint) XXX_Unmarshal

func (m *Checkpoint) XXX_Unmarshal(b []byte) error

type Collateral

type Collateral struct {
	Balances             []*AssetBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Collateral contains the balances per party

func (*Collateral) Descriptor

func (*Collateral) Descriptor() ([]byte, []int)

func (*Collateral) GetBalances

func (m *Collateral) GetBalances() []*AssetBalance

func (*Collateral) ProtoMessage

func (*Collateral) ProtoMessage()

func (*Collateral) Reset

func (m *Collateral) Reset()

func (*Collateral) String

func (m *Collateral) String() string

func (*Collateral) Validate

func (this *Collateral) Validate() error

func (*Collateral) XXX_DiscardUnknown

func (m *Collateral) XXX_DiscardUnknown()

func (*Collateral) XXX_Marshal

func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Collateral) XXX_Merge

func (m *Collateral) XXX_Merge(src proto.Message)

func (*Collateral) XXX_Size

func (m *Collateral) XXX_Size() int

func (*Collateral) XXX_Unmarshal

func (m *Collateral) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Delegate contains all entries for a checkpoint

func (*Delegate) Descriptor

func (*Delegate) Descriptor() ([]byte, []int)

func (*Delegate) GetActive

func (m *Delegate) GetActive() []*DelegateEntry

func (*Delegate) GetPending

func (m *Delegate) GetPending() []*DelegateEntry

func (*Delegate) ProtoMessage

func (*Delegate) ProtoMessage()

func (*Delegate) Reset

func (m *Delegate) Reset()

func (*Delegate) String

func (m *Delegate) String() string

func (*Delegate) Validate

func (this *Delegate) Validate() error

func (*Delegate) XXX_DiscardUnknown

func (m *Delegate) XXX_DiscardUnknown()

func (*Delegate) XXX_Marshal

func (m *Delegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Delegate) XXX_Merge

func (m *Delegate) XXX_Merge(src proto.Message)

func (*Delegate) XXX_Size

func (m *Delegate) XXX_Size() int

func (*Delegate) XXX_Unmarshal

func (m *Delegate) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delegated amounts for party/node undelegate and epoch seq are only relevant for pending entries

func (*DelegateEntry) Descriptor

func (*DelegateEntry) Descriptor() ([]byte, []int)

func (*DelegateEntry) GetAmount

func (m *DelegateEntry) GetAmount() string

func (*DelegateEntry) GetEpochSeq

func (m *DelegateEntry) GetEpochSeq() uint64

func (*DelegateEntry) GetNode

func (m *DelegateEntry) GetNode() string

func (*DelegateEntry) GetParty

func (m *DelegateEntry) GetParty() string

func (*DelegateEntry) GetUndelegate

func (m *DelegateEntry) GetUndelegate() bool

func (*DelegateEntry) ProtoMessage

func (*DelegateEntry) ProtoMessage()

func (*DelegateEntry) Reset

func (m *DelegateEntry) Reset()

func (*DelegateEntry) String

func (m *DelegateEntry) String() string

func (*DelegateEntry) Validate

func (this *DelegateEntry) Validate() error

func (*DelegateEntry) XXX_DiscardUnknown

func (m *DelegateEntry) XXX_DiscardUnknown()

func (*DelegateEntry) XXX_Marshal

func (m *DelegateEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegateEntry) XXX_Merge

func (m *DelegateEntry) XXX_Merge(src proto.Message)

func (*DelegateEntry) XXX_Size

func (m *DelegateEntry) XXX_Size() int

func (*DelegateEntry) XXX_Unmarshal

func (m *DelegateEntry) XXX_Unmarshal(b []byte) error

type NetParams

type NetParams struct {
	Params               []*vega.NetworkParameter `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

NetParams contains all network parameters

func (*NetParams) Descriptor

func (*NetParams) Descriptor() ([]byte, []int)

func (*NetParams) GetParams

func (m *NetParams) GetParams() []*vega.NetworkParameter

func (*NetParams) ProtoMessage

func (*NetParams) ProtoMessage()

func (*NetParams) Reset

func (m *NetParams) Reset()

func (*NetParams) String

func (m *NetParams) String() string

func (*NetParams) Validate

func (this *NetParams) Validate() error

func (*NetParams) XXX_DiscardUnknown

func (m *NetParams) XXX_DiscardUnknown()

func (*NetParams) XXX_Marshal

func (m *NetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetParams) XXX_Merge

func (m *NetParams) XXX_Merge(src proto.Message)

func (*NetParams) XXX_Size

func (m *NetParams) XXX_Size() int

func (*NetParams) XXX_Unmarshal

func (m *NetParams) XXX_Unmarshal(b []byte) error

type Proposals

type Proposals struct {
	Proposals            []*vega.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Proposals will contain all accepted proposals

func (*Proposals) Descriptor

func (*Proposals) Descriptor() ([]byte, []int)

func (*Proposals) GetProposals

func (m *Proposals) GetProposals() []*vega.Proposal

func (*Proposals) ProtoMessage

func (*Proposals) ProtoMessage()

func (*Proposals) Reset

func (m *Proposals) Reset()

func (*Proposals) String

func (m *Proposals) String() string

func (*Proposals) Validate

func (this *Proposals) Validate() error

func (*Proposals) XXX_DiscardUnknown

func (m *Proposals) XXX_DiscardUnknown()

func (*Proposals) XXX_Marshal

func (m *Proposals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposals) XXX_Merge

func (m *Proposals) XXX_Merge(src proto.Message)

func (*Proposals) XXX_Size

func (m *Proposals) XXX_Size() int

func (*Proposals) XXX_Unmarshal

func (m *Proposals) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Snapshot is the entire checkpoint serialised (basically serialised the Checkpoint message + hash)

func (*Snapshot) Descriptor

func (*Snapshot) Descriptor() ([]byte, []int)

func (*Snapshot) GetHash

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

func (*Snapshot) GetState

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

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) Validate

func (this *Snapshot) Validate() error

func (*Snapshot) XXX_DiscardUnknown

func (m *Snapshot) XXX_DiscardUnknown()

func (*Snapshot) XXX_Marshal

func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Snapshot) XXX_Merge

func (m *Snapshot) XXX_Merge(src proto.Message)

func (*Snapshot) XXX_Size

func (m *Snapshot) XXX_Size() int

func (*Snapshot) XXX_Unmarshal

func (m *Snapshot) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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