v040

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "wrkchain"

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// RegisteredWrkChainPrefix prefix for registered WRKChain store
	RegisteredWrkChainPrefix = []byte{0x01}

	// RegisteredWrkChainPrefix prefix for WRKChain Hashes store
	RecordedWrkChainBlockHashPrefix = []byte{0x02}
)
View Source
var (
	ErrInvalidLengthWrkchain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWrkchain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWrkchain = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetWrkChainIDBytes added in v1.6.1

func GetWrkChainIDBytes(wrkChainID uint64) (wrkChainIDBz []byte)

GetWrkChainIDBytes returns the byte representation of the wrkChainID used for getting the highest WRKChain ID from the database

func GetWrkChainIDFromBytes added in v1.6.1

func GetWrkChainIDFromBytes(bz []byte) (wrkChainID uint64)

GetWrkChainIDFromBytes returns wrkChainID in uint64 format from a byte array used for getting the highest WRKChain ID from the database

func WrkChainAllBlocksKey added in v1.6.1

func WrkChainAllBlocksKey(wrkChainID uint64) []byte

func WrkChainBlockKey added in v1.6.1

func WrkChainBlockKey(wrkChainID, height uint64) []byte

func WrkChainKey added in v1.6.1

func WrkChainKey(wrkChainID uint64) []byte

WrkChainKey gets a specific purchase order ID key for use in the store

Types

type GenesisState added in v1.6.1

type GenesisState struct {
	// params defines all the paramaters of the module.
	Params              Params          `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	StartingWrkchainId  uint64          `protobuf:"varint,2,opt,name=starting_wrkchain_id,json=startingWrkchainId,proto3" json:"starting_wrkchain_id,omitempty"`
	RegisteredWrkchains WrkChainExports `` /* 137-byte string literal not displayed */
}

GenesisState defines the beacon module's genesis state.

func (*GenesisState) Descriptor added in v1.6.1

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

func (*GenesisState) GetParams added in v1.6.1

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRegisteredWrkchains added in v1.6.1

func (m *GenesisState) GetRegisteredWrkchains() WrkChainExports

func (*GenesisState) GetStartingWrkchainId added in v1.6.1

func (m *GenesisState) GetStartingWrkchainId() uint64

func (*GenesisState) Marshal added in v1.6.1

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v1.6.1

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v1.6.1

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v1.6.1

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v1.6.1

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v1.6.1

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v1.6.1

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v1.6.1

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown added in v1.6.1

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v1.6.1

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

func (*GenesisState) XXX_Merge added in v1.6.1

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

func (*GenesisState) XXX_Size added in v1.6.1

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v1.6.1

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

type Params added in v1.6.1

type Params struct {
	FeeRegister uint64 `protobuf:"varint,1,opt,name=fee_register,json=feeRegister,proto3" json:"fee_register,omitempty"`
	FeeRecord   uint64 `protobuf:"varint,2,opt,name=fee_record,json=feeRecord,proto3" json:"fee_record,omitempty"`
	Denom       string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

Params defines the parameters for the wrkchain module.

func (*Params) Descriptor added in v1.6.1

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

func (*Params) GetDenom added in v1.6.1

func (m *Params) GetDenom() string

func (*Params) GetFeeRecord added in v1.6.1

func (m *Params) GetFeeRecord() uint64

func (*Params) GetFeeRegister added in v1.6.1

func (m *Params) GetFeeRegister() uint64

func (*Params) Marshal added in v1.6.1

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v1.6.1

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v1.6.1

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage added in v1.6.1

func (*Params) ProtoMessage()

func (*Params) Reset added in v1.6.1

func (m *Params) Reset()

func (*Params) Size added in v1.6.1

func (m *Params) Size() (n int)

func (*Params) String added in v1.6.1

func (m *Params) String() string

func (*Params) Unmarshal added in v1.6.1

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown added in v1.6.1

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.6.1

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

func (*Params) XXX_Merge added in v1.6.1

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

func (*Params) XXX_Size added in v1.6.1

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.6.1

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

type WrkChain added in v1.6.1

type WrkChain struct {
	WrkchainId   uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	Moniker      string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Genesis      string `protobuf:"bytes,4,opt,name=genesis,proto3" json:"genesis,omitempty"`
	Type         string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Lastblock    uint64 `protobuf:"varint,6,opt,name=lastblock,proto3" json:"lastblock,omitempty"`
	NumBlocks    uint64 `protobuf:"varint,7,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	LowestHeight uint64 `protobuf:"varint,8,opt,name=lowest_height,json=lowestHeight,proto3" json:"lowest_height,omitempty"`
	RegTime      uint64 `protobuf:"varint,9,opt,name=reg_time,json=regTime,proto3" json:"reg_time,omitempty"`
	Owner        string `protobuf:"bytes,10,opt,name=owner,proto3" json:"owner,omitempty"`
}

WrkChain holds metadata about a registered wrkchain

func (*WrkChain) Descriptor added in v1.6.1

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

func (*WrkChain) GetGenesis added in v1.6.1

func (m *WrkChain) GetGenesis() string

func (*WrkChain) GetLastblock added in v1.6.1

func (m *WrkChain) GetLastblock() uint64

func (*WrkChain) GetLowestHeight added in v1.6.1

func (m *WrkChain) GetLowestHeight() uint64

func (*WrkChain) GetMoniker added in v1.6.1

func (m *WrkChain) GetMoniker() string

func (*WrkChain) GetName added in v1.6.1

func (m *WrkChain) GetName() string

func (*WrkChain) GetNumBlocks added in v1.6.1

func (m *WrkChain) GetNumBlocks() uint64

func (*WrkChain) GetOwner added in v1.6.1

func (m *WrkChain) GetOwner() string

func (*WrkChain) GetRegTime added in v1.6.1

func (m *WrkChain) GetRegTime() uint64

func (*WrkChain) GetType added in v1.6.1

func (m *WrkChain) GetType() string

func (*WrkChain) GetWrkchainId added in v1.6.1

func (m *WrkChain) GetWrkchainId() uint64

func (*WrkChain) Marshal added in v1.6.1

func (m *WrkChain) Marshal() (dAtA []byte, err error)

func (*WrkChain) MarshalTo added in v1.6.1

func (m *WrkChain) MarshalTo(dAtA []byte) (int, error)

func (*WrkChain) MarshalToSizedBuffer added in v1.6.1

func (m *WrkChain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WrkChain) ProtoMessage added in v1.6.1

func (*WrkChain) ProtoMessage()

func (*WrkChain) Reset added in v1.6.1

func (m *WrkChain) Reset()

func (*WrkChain) Size added in v1.6.1

func (m *WrkChain) Size() (n int)

func (*WrkChain) String added in v1.6.1

func (m *WrkChain) String() string

func (*WrkChain) Unmarshal added in v1.6.1

func (m *WrkChain) Unmarshal(dAtA []byte) error

func (*WrkChain) XXX_DiscardUnknown added in v1.6.1

func (m *WrkChain) XXX_DiscardUnknown()

func (*WrkChain) XXX_Marshal added in v1.6.1

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

func (*WrkChain) XXX_Merge added in v1.6.1

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

func (*WrkChain) XXX_Size added in v1.6.1

func (m *WrkChain) XXX_Size() int

func (*WrkChain) XXX_Unmarshal added in v1.6.1

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

type WrkChainBlock added in v1.6.1

type WrkChainBlock struct {
	Height     uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Blockhash  string `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
	Parenthash string `protobuf:"bytes,3,opt,name=parenthash,proto3" json:"parenthash,omitempty"`
	Hash1      string `protobuf:"bytes,4,opt,name=hash1,proto3" json:"hash1,omitempty"`
	Hash2      string `protobuf:"bytes,5,opt,name=hash2,proto3" json:"hash2,omitempty"`
	Hash3      string `protobuf:"bytes,6,opt,name=hash3,proto3" json:"hash3,omitempty"`
	SubTime    uint64 `protobuf:"varint,7,opt,name=sub_time,json=subTime,proto3" json:"sub_time,omitempty"`
}

WrkChainBlock holds data about a wrkchain's block hash submission

func (*WrkChainBlock) Descriptor added in v1.6.1

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

func (*WrkChainBlock) GetBlockhash added in v1.6.1

func (m *WrkChainBlock) GetBlockhash() string

func (*WrkChainBlock) GetHash1 added in v1.6.1

func (m *WrkChainBlock) GetHash1() string

func (*WrkChainBlock) GetHash2 added in v1.6.1

func (m *WrkChainBlock) GetHash2() string

func (*WrkChainBlock) GetHash3 added in v1.6.1

func (m *WrkChainBlock) GetHash3() string

func (*WrkChainBlock) GetHeight added in v1.6.1

func (m *WrkChainBlock) GetHeight() uint64

func (*WrkChainBlock) GetParenthash added in v1.6.1

func (m *WrkChainBlock) GetParenthash() string

func (*WrkChainBlock) GetSubTime added in v1.6.1

func (m *WrkChainBlock) GetSubTime() uint64

func (*WrkChainBlock) Marshal added in v1.6.1

func (m *WrkChainBlock) Marshal() (dAtA []byte, err error)

func (*WrkChainBlock) MarshalTo added in v1.6.1

func (m *WrkChainBlock) MarshalTo(dAtA []byte) (int, error)

func (*WrkChainBlock) MarshalToSizedBuffer added in v1.6.1

func (m *WrkChainBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WrkChainBlock) ProtoMessage added in v1.6.1

func (*WrkChainBlock) ProtoMessage()

func (*WrkChainBlock) Reset added in v1.6.1

func (m *WrkChainBlock) Reset()

func (*WrkChainBlock) Size added in v1.6.1

func (m *WrkChainBlock) Size() (n int)

func (*WrkChainBlock) String added in v1.6.1

func (m *WrkChainBlock) String() string

func (*WrkChainBlock) Unmarshal added in v1.6.1

func (m *WrkChainBlock) Unmarshal(dAtA []byte) error

func (*WrkChainBlock) XXX_DiscardUnknown added in v1.6.1

func (m *WrkChainBlock) XXX_DiscardUnknown()

func (*WrkChainBlock) XXX_Marshal added in v1.6.1

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

func (*WrkChainBlock) XXX_Merge added in v1.6.1

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

func (*WrkChainBlock) XXX_Size added in v1.6.1

func (m *WrkChainBlock) XXX_Size() int

func (*WrkChainBlock) XXX_Unmarshal added in v1.6.1

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

type WrkChainBlockGenesisExport added in v1.6.1

type WrkChainBlockGenesisExport struct {
	He uint64 `protobuf:"varint,1,opt,name=he,proto3" json:"he,omitempty"`
	Bh string `protobuf:"bytes,2,opt,name=bh,proto3" json:"bh,omitempty"`
	Ph string `protobuf:"bytes,3,opt,name=ph,proto3" json:"ph,omitempty"`
	H1 string `protobuf:"bytes,4,opt,name=h1,proto3" json:"h1,omitempty"`
	H2 string `protobuf:"bytes,5,opt,name=h2,proto3" json:"h2,omitempty"`
	H3 string `protobuf:"bytes,6,opt,name=h3,proto3" json:"h3,omitempty"`
	St uint64 `protobuf:"varint,7,opt,name=st,proto3" json:"st,omitempty"`
}

WrkChainBlockGenesisExport is a trimmed version of WrkChainBlock for genesis exports to conserve space

func (*WrkChainBlockGenesisExport) Descriptor added in v1.6.1

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

func (*WrkChainBlockGenesisExport) GetBh added in v1.6.1

func (*WrkChainBlockGenesisExport) GetH1 added in v1.6.1

func (*WrkChainBlockGenesisExport) GetH2 added in v1.6.1

func (*WrkChainBlockGenesisExport) GetH3 added in v1.6.1

func (*WrkChainBlockGenesisExport) GetHe added in v1.6.1

func (*WrkChainBlockGenesisExport) GetPh added in v1.6.1

func (*WrkChainBlockGenesisExport) GetSt added in v1.6.1

func (*WrkChainBlockGenesisExport) Marshal added in v1.6.1

func (m *WrkChainBlockGenesisExport) Marshal() (dAtA []byte, err error)

func (*WrkChainBlockGenesisExport) MarshalTo added in v1.6.1

func (m *WrkChainBlockGenesisExport) MarshalTo(dAtA []byte) (int, error)

func (*WrkChainBlockGenesisExport) MarshalToSizedBuffer added in v1.6.1

func (m *WrkChainBlockGenesisExport) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WrkChainBlockGenesisExport) ProtoMessage added in v1.6.1

func (*WrkChainBlockGenesisExport) ProtoMessage()

func (*WrkChainBlockGenesisExport) Reset added in v1.6.1

func (m *WrkChainBlockGenesisExport) Reset()

func (*WrkChainBlockGenesisExport) Size added in v1.6.1

func (m *WrkChainBlockGenesisExport) Size() (n int)

func (*WrkChainBlockGenesisExport) String added in v1.6.1

func (m *WrkChainBlockGenesisExport) String() string

func (*WrkChainBlockGenesisExport) Unmarshal added in v1.6.1

func (m *WrkChainBlockGenesisExport) Unmarshal(dAtA []byte) error

func (*WrkChainBlockGenesisExport) XXX_DiscardUnknown added in v1.6.1

func (m *WrkChainBlockGenesisExport) XXX_DiscardUnknown()

func (*WrkChainBlockGenesisExport) XXX_Marshal added in v1.6.1

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

func (*WrkChainBlockGenesisExport) XXX_Merge added in v1.6.1

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

func (*WrkChainBlockGenesisExport) XXX_Size added in v1.6.1

func (m *WrkChainBlockGenesisExport) XXX_Size() int

func (*WrkChainBlockGenesisExport) XXX_Unmarshal added in v1.6.1

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

type WrkChainBlockGenesisExports added in v1.6.1

type WrkChainBlockGenesisExports []WrkChainBlockGenesisExport

type WrkChainExport added in v1.6.1

type WrkChainExport struct {
	Wrkchain WrkChain                    `protobuf:"bytes,1,opt,name=wrkchain,proto3" json:"wrkchain"`
	Blocks   WrkChainBlockGenesisExports `protobuf:"bytes,2,rep,name=blocks,proto3,castrepeated=WrkChainBlockGenesisExports" json:"blocks"`
}

WrkChainExport holds genesis export data for a wrkchain, including hashes

func (*WrkChainExport) Descriptor added in v1.6.1

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

func (*WrkChainExport) GetBlocks added in v1.6.1

func (*WrkChainExport) GetWrkchain added in v1.6.1

func (m *WrkChainExport) GetWrkchain() WrkChain

func (*WrkChainExport) Marshal added in v1.6.1

func (m *WrkChainExport) Marshal() (dAtA []byte, err error)

func (*WrkChainExport) MarshalTo added in v1.6.1

func (m *WrkChainExport) MarshalTo(dAtA []byte) (int, error)

func (*WrkChainExport) MarshalToSizedBuffer added in v1.6.1

func (m *WrkChainExport) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WrkChainExport) ProtoMessage added in v1.6.1

func (*WrkChainExport) ProtoMessage()

func (*WrkChainExport) Reset added in v1.6.1

func (m *WrkChainExport) Reset()

func (*WrkChainExport) Size added in v1.6.1

func (m *WrkChainExport) Size() (n int)

func (*WrkChainExport) String added in v1.6.1

func (m *WrkChainExport) String() string

func (*WrkChainExport) Unmarshal added in v1.6.1

func (m *WrkChainExport) Unmarshal(dAtA []byte) error

func (*WrkChainExport) XXX_DiscardUnknown added in v1.6.1

func (m *WrkChainExport) XXX_DiscardUnknown()

func (*WrkChainExport) XXX_Marshal added in v1.6.1

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

func (*WrkChainExport) XXX_Merge added in v1.6.1

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

func (*WrkChainExport) XXX_Size added in v1.6.1

func (m *WrkChainExport) XXX_Size() int

func (*WrkChainExport) XXX_Unmarshal added in v1.6.1

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

type WrkChainExports added in v1.6.1

type WrkChainExports []WrkChainExport

Jump to

Keyboard shortcuts

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