types

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CodeInvalidGenesis = 101

	CodeWrkChainDoesNotExist         = 201
	CodeWrkChainAlreadyRegistered    = 202
	CodeWrkChainBlockAlreadyRecorded = 203
	CodeNotWrkChainOwner             = 204
	CodeMissingData                  = 205
	CodeInvalidData                  = 206
	CodeContentTooLarge              = 207
	CodeExceedsMaxStorage            = 208
	CodeNewHeightMustBeHigher        = 209

	CodeWrkChainInsufficientFee   = 301
	CodeWrkChainTooMuchFee        = 302
	CodeWrkChainIncorrectFeeDenom = 303

	CodeWrkChainFeePayerNotOwner = 401
)
View Source
const (
	// WRKChain fees, in nano FUND
	RegFee             = 1000000000000                // 1000 FUND - used in init genesis
	RecordFee          = 1000000000                   // 1 FUND - used in init genesis
	PurchaseStorageFee = 5000000000                   // 5 FUND - used in init genesis
	FeeDenom           = undtypes.DefaultDenomination // used in init genesis

	DefaultStartingWrkChainID uint64 = 1 // used in init genesis

	DefaultStorageLimit    uint64 = 50000  // used in init genesis
	DefaultMaxStorageLimit uint64 = 600000 // used in init genesis
)
View Source
const (
	// module name
	ModuleName = "wrkchain"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	DefaultParamspace = ModuleName

	// QuerierRoute is the querier route for the wrkchain store.
	QuerierRoute = StoreKey
)
View Source
const (
	RouterKey = ModuleName // defined in keys.go file

	RegisterAction        = "register_wrkchain"
	RecordAction          = "record_wrkchain_hash"
	PurchaseStorageAction = "purchase_wrkchain_storage"
)
View Source
const MaxBlockSubmissionsKeepInState = 20000

Variables

View Source
var (
	ErrInvalidGenesis               = sdkerrors.Register(ModuleName, CodeInvalidGenesis, "invalid genesis")
	ErrWrkChainDoesNotExist         = sdkerrors.Register(ModuleName, CodeWrkChainDoesNotExist, "wrkchain does not exist")
	ErrNotWrkChainOwner             = sdkerrors.Register(ModuleName, CodeNotWrkChainOwner, "not wrkchain owner")
	ErrWrkChainAlreadyRegistered    = sdkerrors.Register(ModuleName, CodeWrkChainAlreadyRegistered, "wrkchain already registered")
	ErrMissingData                  = sdkerrors.Register(ModuleName, CodeMissingData, "missing data")
	ErrInvalidData                  = sdkerrors.Register(ModuleName, CodeInvalidData, "invalid data")
	ErrWrkChainBlockAlreadyRecorded = sdkerrors.Register(ModuleName, CodeWrkChainBlockAlreadyRecorded, "wrkchain hashes already recorded")
	ErrInsufficientWrkChainFee      = sdkerrors.Register(ModuleName, CodeWrkChainInsufficientFee, "insufficient wrkchain fee")
	ErrTooMuchWrkChainFee           = sdkerrors.Register(ModuleName, CodeWrkChainTooMuchFee, "too much wrkchain fee")
	ErrFeePayerNotOwner             = sdkerrors.Register(ModuleName, CodeWrkChainFeePayerNotOwner, "fee payer not wrkchain owner")
	ErrIncorrectFeeDenomination     = sdkerrors.Register(ModuleName, CodeWrkChainIncorrectFeeDenom, "incorrect wrkchain fee doenomination")
	ErrContentTooLarge              = sdkerrors.Register(ModuleName, CodeContentTooLarge, "msg content too large")
	ErrExceedsMaxStorage            = sdkerrors.Register(ModuleName, CodeExceedsMaxStorage, "exceeds max storage")
	ErrNewHeightMustBeHigher        = sdkerrors.Register(ModuleName, CodeNewHeightMustBeHigher, "invalid height")
)
View Source
var (
	EventTypeRegisterWrkChain    = RegisterAction
	EventTypeRecordWrkChainBlock = RecordAction
	EventTypePurchaseStorage     = PurchaseStorageAction

	AttributeValueCategory = ModuleName

	AttributeKeyOwner                         = "wrkchain_owner"
	AttributeKeyWrkChainId                    = "wrkchain_id"
	AttributeKeyWrkChainMoniker               = "wrkchain_moniker"
	AttributeKeyWrkChainName                  = "wrkchain_name"
	AttributeKeyWrkChainGenesisHash           = "wrkchain_genesis_hash"
	AttributeKeyBaseType                      = "wrkchain_base_type"
	AttributeKeyBlockHash                     = "wrkchain_block_hash"
	AttributeKeyBlockHeight                   = "wrkchain_block_height"
	AttributeKeyPrunedBlockHeight             = "wrkchain_pruned_block_height"
	AttributeKeyParentHash                    = "wrkchain_parent_hash"
	AttributeKeyHash1                         = "wrkchain_hash1"
	AttributeKeyHash2                         = "wrkchain_hash2"
	AttributeKeyHash3                         = "wrkchain_hash3"
	AttributeKeyWrkChainStorageNumPurchased   = "wrkchain_storage_num_purchased"
	AttributeKeyWrkChainStorageNumCanPurchase = "wrkchain_storage_num_can_purchase"
)
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 (

	// key used to store the current highest WRKChain ID
	HighestWrkChainIDKey = []byte{0x20}

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

	// RegisteredWrkChainPrefix prefix for WRKChain Hashes store
	RecordedWrkChainBlockHashPrefix = []byte{0x02}

	// WrkChainStorageLimitPrefix prefix for WRKChain storage limit store
	WrkChainStorageLimitPrefix = []byte{0x03}
)
View Source
var (
	KeyFeeRegister         = []byte("FeeRegister")
	KeyFeeRecord           = []byte("FeeRecord")
	KeyFeePurchaseStorage  = []byte("FeePurchaseStorage")
	KeyDenom               = []byte("Denom")
	KeyDefaultStorageLimit = []byte("DefaultStorageLimit")
	KeyMaxStorageLimit     = []byte("MaxStorageLimit")
)

Parameter store keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
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")
)
View Source
var (

	// ModuleCdc references the global x/bank module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetWrkChainIDBytes

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

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 ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for BEACON module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/enterprise interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.

func WrkChainAllBlocksKey

func WrkChainAllBlocksKey(wrkChainID uint64) []byte

func WrkChainBlockKey

func WrkChainBlockKey(wrkChainID, height uint64) []byte

func WrkChainKey

func WrkChainKey(wrkChainID uint64) []byte

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

func WrkChainStorageLimitKey added in v1.6.1

func WrkChainStorageLimitKey(wrkChainID uint64) []byte

WrkChainStorageLimitKey gets the key for a single wrkChain's specific storage limit

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation
}

AccountKeeper defines the expected account keeper (noalias)

type BankKeeper

type BankKeeper interface {
	GetSupply(ctx sdk.Context, denom string) sdk.Coin

	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected bank keeper

type EnterpriseKeeper

type EnterpriseKeeper interface {
	GetLockedUndAmountForAccount(ctx sdk.Context, address sdk.AccAddress) sdk.Coin
}

EnterpriseKeeper defines the expected enterprise keeper

type GenesisState

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 wrkchain module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(params Params, startingWrkChainID uint64, wrkChains WrkChainExports) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRegisteredWrkchains

func (m *GenesisState) GetRegisteredWrkchains() WrkChainExports

func (*GenesisState) GetStartingWrkchainId

func (m *GenesisState) GetStartingWrkchainId() uint64

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterWrkChain defines a method to register a new wrkchain
	RegisterWrkChain(ctx context.Context, in *MsgRegisterWrkChain, opts ...grpc.CallOption) (*MsgRegisterWrkChainResponse, error)
	// RecordWrkChainBlock defines a method to record a block hash set for a registered wrkchain
	RecordWrkChainBlock(ctx context.Context, in *MsgRecordWrkChainBlock, opts ...grpc.CallOption) (*MsgRecordWrkChainBlockResponse, error)
	// PurchaseWrkChainStateStorage defines the method to purchase more state storage
	PurchaseWrkChainStateStorage(ctx context.Context, in *MsgPurchaseWrkChainStateStorage, opts ...grpc.CallOption) (*MsgPurchaseWrkChainStateStorageResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgPurchaseWrkChainStateStorage added in v1.6.1

type MsgPurchaseWrkChainStateStorage struct {
	// wrkchain_id is the id of the wrkchain the storage is being purchased for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// number is the number of state storage spaces to purchase
	Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// owner is the address of the owner of the wrkchain
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
}

func NewMsgPurchaseWrkChainStateStorage added in v1.6.1

func NewMsgPurchaseWrkChainStateStorage(
	wrkchainId uint64,
	number uint64,
	owner sdk.AccAddress) *MsgPurchaseWrkChainStateStorage

NewMsgRecordBeaconTimestamp is a constructor function for MsgRecordBeaconTimestamp

func (*MsgPurchaseWrkChainStateStorage) Descriptor added in v1.6.1

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

func (MsgPurchaseWrkChainStateStorage) GetSignBytes added in v1.6.1

func (msg MsgPurchaseWrkChainStateStorage) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgPurchaseWrkChainStateStorage) GetSigners added in v1.6.1

func (msg MsgPurchaseWrkChainStateStorage) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgPurchaseWrkChainStateStorage) Marshal added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) MarshalTo added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) MarshalToSizedBuffer added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) ProtoMessage added in v1.6.1

func (*MsgPurchaseWrkChainStateStorage) ProtoMessage()

func (*MsgPurchaseWrkChainStateStorage) Reset added in v1.6.1

func (MsgPurchaseWrkChainStateStorage) Route added in v1.6.1

Route should return the name of the module

func (*MsgPurchaseWrkChainStateStorage) Size added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) String added in v1.6.1

func (MsgPurchaseWrkChainStateStorage) Type added in v1.6.1

Type should return the action

func (*MsgPurchaseWrkChainStateStorage) Unmarshal added in v1.6.1

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

func (MsgPurchaseWrkChainStateStorage) ValidateBasic added in v1.6.1

func (msg MsgPurchaseWrkChainStateStorage) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgPurchaseWrkChainStateStorage) XXX_DiscardUnknown added in v1.6.1

func (m *MsgPurchaseWrkChainStateStorage) XXX_DiscardUnknown()

func (*MsgPurchaseWrkChainStateStorage) XXX_Marshal added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) XXX_Merge added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorage) XXX_Size added in v1.6.1

func (m *MsgPurchaseWrkChainStateStorage) XXX_Size() int

func (*MsgPurchaseWrkChainStateStorage) XXX_Unmarshal added in v1.6.1

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

type MsgPurchaseWrkChainStateStorageResponse added in v1.6.1

type MsgPurchaseWrkChainStateStorageResponse struct {
	// wrkchain_id is the id of the wrkchain the storage is being purchased for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// number_purchased is the number of state storage spaces purchased
	NumberPurchased uint64 `protobuf:"varint,2,opt,name=number_purchased,json=numberPurchased,proto3" json:"number_purchased,omitempty"`
	// num_can_purchase is the number of remaining slots available for purchase
	NumCanPurchase uint64 `protobuf:"varint,3,opt,name=num_can_purchase,json=numCanPurchase,proto3" json:"num_can_purchase,omitempty"`
}

func (*MsgPurchaseWrkChainStateStorageResponse) Descriptor added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) GetNumCanPurchase added in v1.6.1

func (m *MsgPurchaseWrkChainStateStorageResponse) GetNumCanPurchase() uint64

func (*MsgPurchaseWrkChainStateStorageResponse) GetNumberPurchased added in v1.6.1

func (m *MsgPurchaseWrkChainStateStorageResponse) GetNumberPurchased() uint64

func (*MsgPurchaseWrkChainStateStorageResponse) GetWrkchainId added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) Marshal added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) MarshalTo added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) MarshalToSizedBuffer added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) ProtoMessage added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) Reset added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) Size added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) String added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) Unmarshal added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) XXX_DiscardUnknown added in v1.6.1

func (m *MsgPurchaseWrkChainStateStorageResponse) XXX_DiscardUnknown()

func (*MsgPurchaseWrkChainStateStorageResponse) XXX_Marshal added in v1.6.1

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

func (*MsgPurchaseWrkChainStateStorageResponse) XXX_Merge added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) XXX_Size added in v1.6.1

func (*MsgPurchaseWrkChainStateStorageResponse) XXX_Unmarshal added in v1.6.1

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

type MsgRecordWrkChainBlock

type MsgRecordWrkChainBlock struct {
	// wrkchain_id is the id of the wrkchain the hashes are being submitted for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// height is the block height/number of the hashes being submitted
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// block_hash is the main block hash
	BlockHash string `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"blockhash" yaml:"blockhash"`
	// parent_hash is an optional parent block hash for the given height/block number
	ParentHash string `protobuf:"bytes,4,opt,name=parent_hash,json=parentHash,proto3" json:"parenthash" yaml:"parenthash"`
	// hash1 is an optional supplementary hash to be submitted, for example TxHash
	Hash1 string `protobuf:"bytes,5,opt,name=hash1,proto3" json:"hash1,omitempty"`
	// hash2 is an optional supplementary hash to be submitted, for example TxHash
	Hash2 string `protobuf:"bytes,6,opt,name=hash2,proto3" json:"hash2,omitempty"`
	// hash3 is an optional supplementary hash to be submitted, for example TxHash
	Hash3 string `protobuf:"bytes,7,opt,name=hash3,proto3" json:"hash3,omitempty"`
	// owner is the address of the owner of the wrkchain
	Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgRecordWrkChainBlock represents a message to submit a set of block hashes for a registered wrkchain

func NewMsgRecordWrkChainBlock

func NewMsgRecordWrkChainBlock(
	wrkchainId uint64,
	height uint64,
	blockHash string,
	parentHash string,
	hash1 string,
	hash2 string,
	hash3 string,
	owner sdk.AccAddress) *MsgRecordWrkChainBlock

NewMsgRecordWrkChainBlock is a constructor function for MsgRecordWrkChainBlock

func (*MsgRecordWrkChainBlock) Descriptor

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

func (MsgRecordWrkChainBlock) GetSignBytes

func (msg MsgRecordWrkChainBlock) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRecordWrkChainBlock) GetSigners

func (msg MsgRecordWrkChainBlock) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgRecordWrkChainBlock) Marshal

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

func (*MsgRecordWrkChainBlock) MarshalTo

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

func (*MsgRecordWrkChainBlock) MarshalToSizedBuffer

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

func (*MsgRecordWrkChainBlock) ProtoMessage

func (*MsgRecordWrkChainBlock) ProtoMessage()

func (*MsgRecordWrkChainBlock) Reset

func (m *MsgRecordWrkChainBlock) Reset()

func (MsgRecordWrkChainBlock) Route

func (msg MsgRecordWrkChainBlock) Route() string

Route should return the name of the module

func (*MsgRecordWrkChainBlock) Size

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

func (*MsgRecordWrkChainBlock) String

func (m *MsgRecordWrkChainBlock) String() string

func (MsgRecordWrkChainBlock) Type

func (msg MsgRecordWrkChainBlock) Type() string

Type should return the action

func (*MsgRecordWrkChainBlock) Unmarshal

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

func (MsgRecordWrkChainBlock) ValidateBasic

func (msg MsgRecordWrkChainBlock) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRecordWrkChainBlock) XXX_DiscardUnknown

func (m *MsgRecordWrkChainBlock) XXX_DiscardUnknown()

func (*MsgRecordWrkChainBlock) XXX_Marshal

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

func (*MsgRecordWrkChainBlock) XXX_Merge

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

func (*MsgRecordWrkChainBlock) XXX_Size

func (m *MsgRecordWrkChainBlock) XXX_Size() int

func (*MsgRecordWrkChainBlock) XXX_Unmarshal

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

type MsgRecordWrkChainBlockResponse

type MsgRecordWrkChainBlockResponse struct {
	// wrkchain_id is the id of the wrkchain
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// height is the height of the submitted block hashes
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

MsgRecordWrkChainBlockResponse defines the Msg/RecordWrkChainBlock response type.

func (*MsgRecordWrkChainBlockResponse) Descriptor

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

func (*MsgRecordWrkChainBlockResponse) GetHeight

func (m *MsgRecordWrkChainBlockResponse) GetHeight() uint64

func (*MsgRecordWrkChainBlockResponse) GetWrkchainId

func (m *MsgRecordWrkChainBlockResponse) GetWrkchainId() uint64

func (*MsgRecordWrkChainBlockResponse) Marshal

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

func (*MsgRecordWrkChainBlockResponse) MarshalTo

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

func (*MsgRecordWrkChainBlockResponse) MarshalToSizedBuffer

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

func (*MsgRecordWrkChainBlockResponse) ProtoMessage

func (*MsgRecordWrkChainBlockResponse) ProtoMessage()

func (*MsgRecordWrkChainBlockResponse) Reset

func (m *MsgRecordWrkChainBlockResponse) Reset()

func (*MsgRecordWrkChainBlockResponse) Size

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

func (*MsgRecordWrkChainBlockResponse) String

func (*MsgRecordWrkChainBlockResponse) Unmarshal

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

func (*MsgRecordWrkChainBlockResponse) XXX_DiscardUnknown

func (m *MsgRecordWrkChainBlockResponse) XXX_DiscardUnknown()

func (*MsgRecordWrkChainBlockResponse) XXX_Marshal

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

func (*MsgRecordWrkChainBlockResponse) XXX_Merge

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

func (*MsgRecordWrkChainBlockResponse) XXX_Size

func (m *MsgRecordWrkChainBlockResponse) XXX_Size() int

func (*MsgRecordWrkChainBlockResponse) XXX_Unmarshal

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

type MsgRegisterWrkChain

type MsgRegisterWrkChain struct {
	// moniker is a short identifier for a wrkchain
	Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// name is a long name for a wrkchain
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// genesis_hash is a hash of the genesis block of the wrkchain
	GenesisHash string `protobuf:"bytes,4,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis" yaml:"genesis"`
	// base_type is the type of wrkchain, e.g. geth, cosmos etc.
	BaseType string `protobuf:"bytes,5,opt,name=base_type,json=baseType,proto3" json:"type" yaml:"type"`
	// owner is the address of the owner of the wrkchain
	Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgRegisterWrkChain represents a message to register a new wrkchain

func NewMsgRegisterWrkChain

func NewMsgRegisterWrkChain(moniker string, genesisHash string, wrkchainName string, baseType string, owner sdk.AccAddress) *MsgRegisterWrkChain

NewMsgRegisterWrkChain is a constructor function for MsgRegisterWrkChain

func (*MsgRegisterWrkChain) Descriptor

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

func (MsgRegisterWrkChain) GetSignBytes

func (msg MsgRegisterWrkChain) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRegisterWrkChain) GetSigners

func (msg MsgRegisterWrkChain) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgRegisterWrkChain) Marshal

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

func (*MsgRegisterWrkChain) MarshalTo

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

func (*MsgRegisterWrkChain) MarshalToSizedBuffer

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

func (*MsgRegisterWrkChain) ProtoMessage

func (*MsgRegisterWrkChain) ProtoMessage()

func (*MsgRegisterWrkChain) Reset

func (m *MsgRegisterWrkChain) Reset()

func (MsgRegisterWrkChain) Route

func (msg MsgRegisterWrkChain) Route() string

Route should return the name of the module

func (*MsgRegisterWrkChain) Size

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

func (*MsgRegisterWrkChain) String

func (m *MsgRegisterWrkChain) String() string

func (MsgRegisterWrkChain) Type

func (msg MsgRegisterWrkChain) Type() string

Type should return the action

func (*MsgRegisterWrkChain) Unmarshal

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

func (MsgRegisterWrkChain) ValidateBasic

func (msg MsgRegisterWrkChain) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRegisterWrkChain) XXX_DiscardUnknown

func (m *MsgRegisterWrkChain) XXX_DiscardUnknown()

func (*MsgRegisterWrkChain) XXX_Marshal

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

func (*MsgRegisterWrkChain) XXX_Merge

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

func (*MsgRegisterWrkChain) XXX_Size

func (m *MsgRegisterWrkChain) XXX_Size() int

func (*MsgRegisterWrkChain) XXX_Unmarshal

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

type MsgRegisterWrkChainResponse

type MsgRegisterWrkChainResponse struct {
	// wrkchain_id is the id of the new wrkchain
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
}

MsgRegisterWrkChainResponse defines the Msg/RegisterWrkChain response type.

func (*MsgRegisterWrkChainResponse) Descriptor

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

func (*MsgRegisterWrkChainResponse) GetWrkchainId

func (m *MsgRegisterWrkChainResponse) GetWrkchainId() uint64

func (*MsgRegisterWrkChainResponse) Marshal

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

func (*MsgRegisterWrkChainResponse) MarshalTo

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

func (*MsgRegisterWrkChainResponse) MarshalToSizedBuffer

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

func (*MsgRegisterWrkChainResponse) ProtoMessage

func (*MsgRegisterWrkChainResponse) ProtoMessage()

func (*MsgRegisterWrkChainResponse) Reset

func (m *MsgRegisterWrkChainResponse) Reset()

func (*MsgRegisterWrkChainResponse) Size

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

func (*MsgRegisterWrkChainResponse) String

func (m *MsgRegisterWrkChainResponse) String() string

func (*MsgRegisterWrkChainResponse) Unmarshal

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

func (*MsgRegisterWrkChainResponse) XXX_DiscardUnknown

func (m *MsgRegisterWrkChainResponse) XXX_DiscardUnknown()

func (*MsgRegisterWrkChainResponse) XXX_Marshal

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

func (*MsgRegisterWrkChainResponse) XXX_Merge

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

func (*MsgRegisterWrkChainResponse) XXX_Size

func (m *MsgRegisterWrkChainResponse) XXX_Size() int

func (*MsgRegisterWrkChainResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterWrkChain defines a method to register a new wrkchain
	RegisterWrkChain(context.Context, *MsgRegisterWrkChain) (*MsgRegisterWrkChainResponse, error)
	// RecordWrkChainBlock defines a method to record a block hash set for a registered wrkchain
	RecordWrkChainBlock(context.Context, *MsgRecordWrkChainBlock) (*MsgRecordWrkChainBlockResponse, error)
	// PurchaseWrkChainStateStorage defines the method to purchase more state storage
	PurchaseWrkChainStateStorage(context.Context, *MsgPurchaseWrkChainStateStorage) (*MsgPurchaseWrkChainStateStorageResponse, error)
}

MsgServer is the server API for Msg service.

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type Params

type Params struct {
	// fee_register is the cost to register a wkrchain
	FeeRegister uint64 `protobuf:"varint,1,opt,name=fee_register,json=feeRegister,proto3" json:"fee_register,omitempty"`
	// fee_record is the cost to record a single wkrchain hash
	FeeRecord uint64 `protobuf:"varint,2,opt,name=fee_record,json=feeRecord,proto3" json:"fee_record,omitempty"`
	// fee_purchase_storage is the cost to purchase a single additional unit of in-state storage
	FeePurchaseStorage uint64 `protobuf:"varint,3,opt,name=fee_purchase_storage,json=feePurchaseStorage,proto3" json:"fee_purchase_storage,omitempty"`
	// denom is the expected denomination to pay for fees, e.g. nund
	Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
	// default_storage_limit is the default in-state storage limit for all new wkrchains
	DefaultStorageLimit uint64 `protobuf:"varint,5,opt,name=default_storage_limit,json=defaultStorageLimit,proto3" json:"default_storage_limit,omitempty"`
	// max_storage_limit is the maximum in-state storage slots any one wkrchain can have
	MaxStorageLimit uint64 `protobuf:"varint,6,opt,name=max_storage_limit,json=maxStorageLimit,proto3" json:"max_storage_limit,omitempty"`
}

Params defines the parameters for the wrkchain module.

func DefaultParams

func DefaultParams() Params

default BEACON module parameters

func NewParams

func NewParams(feeReg, feeRec, feePurchase uint64, denom string, defaultStorage, maxStorage uint64) Params

func (*Params) Descriptor

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

func (*Params) GetDefaultStorageLimit added in v1.6.1

func (m *Params) GetDefaultStorageLimit() uint64

func (*Params) GetDenom

func (m *Params) GetDenom() string

func (*Params) GetFeePurchaseStorage added in v1.6.1

func (m *Params) GetFeePurchaseStorage() uint64

func (*Params) GetFeeRecord

func (m *Params) GetFeeRecord() uint64

func (*Params) GetFeeRegister

func (m *Params) GetFeeRegister() uint64

func (*Params) GetMaxStorageLimit added in v1.6.1

func (m *Params) GetMaxStorageLimit() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

validate params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries the parameters of x/wrkchain module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// WrkChain queries the metadata of a wrkchain.
	WrkChain(ctx context.Context, in *QueryWrkChainRequest, opts ...grpc.CallOption) (*QueryWrkChainResponse, error)
	// WrkChainBlock queries a submitted hash of a wrkchain
	WrkChainBlock(ctx context.Context, in *QueryWrkChainBlockRequest, opts ...grpc.CallOption) (*QueryWrkChainBlockResponse, error)
	// WrkChainsFiltered queries all wrkchain metadata for given search parameters
	WrkChainsFiltered(ctx context.Context, in *QueryWrkChainsFilteredRequest, opts ...grpc.CallOption) (*QueryWrkChainsFilteredResponse, error)
	WrkChainStorage(ctx context.Context, in *QueryWrkChainStorageRequest, opts ...grpc.CallOption) (*QueryWrkChainStorageResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryResWrkChainBlockHashes

type QueryResWrkChainBlockHashes []WrkChainBlock

QueryResWrkChainBlockHashes Queries Result Payload for a WRKChain Block Hashes query

type QueryResWrkChains

type QueryResWrkChains []WrkChain

type QueryServer

type QueryServer interface {
	// Params queries the parameters of x/wrkchain module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// WrkChain queries the metadata of a wrkchain.
	WrkChain(context.Context, *QueryWrkChainRequest) (*QueryWrkChainResponse, error)
	// WrkChainBlock queries a submitted hash of a wrkchain
	WrkChainBlock(context.Context, *QueryWrkChainBlockRequest) (*QueryWrkChainBlockResponse, error)
	// WrkChainsFiltered queries all wrkchain metadata for given search parameters
	WrkChainsFiltered(context.Context, *QueryWrkChainsFilteredRequest) (*QueryWrkChainsFilteredResponse, error)
	WrkChainStorage(context.Context, *QueryWrkChainStorageRequest) (*QueryWrkChainStorageResponse, error)
}

QueryServer is the server API for Query service.

type QueryWrkChainBlockParams

type QueryWrkChainBlockParams struct {
	Page      int
	Limit     int
	MinHeight uint64
	MaxHeight uint64
	MinDate   uint64
	MaxDate   uint64
	BlockHash string
}

QueryWrkChainBlockParams Params for filtering a WRKChain's block hashes

func NewQueryWrkChainBlockParams

func NewQueryWrkChainBlockParams(page, limit int, minHeight, maxHeight, minDate, maxDate uint64, hash string) QueryWrkChainBlockParams

type QueryWrkChainBlockRequest

type QueryWrkChainBlockRequest struct {
	// wrkchain_id is the id of the wrkchain to query for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// height is the block number of the hash to query for
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

QueryWrkChainBlockRequest is the request type for the Query/WrkChainBlock RPC method

func (*QueryWrkChainBlockRequest) Descriptor

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

func (*QueryWrkChainBlockRequest) GetHeight

func (m *QueryWrkChainBlockRequest) GetHeight() uint64

func (*QueryWrkChainBlockRequest) GetWrkchainId

func (m *QueryWrkChainBlockRequest) GetWrkchainId() uint64

func (*QueryWrkChainBlockRequest) Marshal

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

func (*QueryWrkChainBlockRequest) MarshalTo

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

func (*QueryWrkChainBlockRequest) MarshalToSizedBuffer

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

func (*QueryWrkChainBlockRequest) ProtoMessage

func (*QueryWrkChainBlockRequest) ProtoMessage()

func (*QueryWrkChainBlockRequest) Reset

func (m *QueryWrkChainBlockRequest) Reset()

func (*QueryWrkChainBlockRequest) Size

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

func (*QueryWrkChainBlockRequest) String

func (m *QueryWrkChainBlockRequest) String() string

func (*QueryWrkChainBlockRequest) Unmarshal

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

func (*QueryWrkChainBlockRequest) XXX_DiscardUnknown

func (m *QueryWrkChainBlockRequest) XXX_DiscardUnknown()

func (*QueryWrkChainBlockRequest) XXX_Marshal

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

func (*QueryWrkChainBlockRequest) XXX_Merge

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

func (*QueryWrkChainBlockRequest) XXX_Size

func (m *QueryWrkChainBlockRequest) XXX_Size() int

func (*QueryWrkChainBlockRequest) XXX_Unmarshal

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

type QueryWrkChainBlockResponse

type QueryWrkChainBlockResponse struct {
	Block      *WrkChainBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	WrkchainId uint64         `protobuf:"varint,2,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	Owner      string         `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
}

QueryWrkChainBlockResponse is the response type for the Query/WrkChainBlock RPC method

func (*QueryWrkChainBlockResponse) Descriptor

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

func (*QueryWrkChainBlockResponse) GetBlock

func (*QueryWrkChainBlockResponse) GetOwner

func (m *QueryWrkChainBlockResponse) GetOwner() string

func (*QueryWrkChainBlockResponse) GetWrkchainId

func (m *QueryWrkChainBlockResponse) GetWrkchainId() uint64

func (*QueryWrkChainBlockResponse) Marshal

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

func (*QueryWrkChainBlockResponse) MarshalTo

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

func (*QueryWrkChainBlockResponse) MarshalToSizedBuffer

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

func (*QueryWrkChainBlockResponse) ProtoMessage

func (*QueryWrkChainBlockResponse) ProtoMessage()

func (*QueryWrkChainBlockResponse) Reset

func (m *QueryWrkChainBlockResponse) Reset()

func (*QueryWrkChainBlockResponse) Size

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

func (*QueryWrkChainBlockResponse) String

func (m *QueryWrkChainBlockResponse) String() string

func (*QueryWrkChainBlockResponse) Unmarshal

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

func (*QueryWrkChainBlockResponse) XXX_DiscardUnknown

func (m *QueryWrkChainBlockResponse) XXX_DiscardUnknown()

func (*QueryWrkChainBlockResponse) XXX_Marshal

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

func (*QueryWrkChainBlockResponse) XXX_Merge

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

func (*QueryWrkChainBlockResponse) XXX_Size

func (m *QueryWrkChainBlockResponse) XXX_Size() int

func (*QueryWrkChainBlockResponse) XXX_Unmarshal

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

type QueryWrkChainParams

type QueryWrkChainParams struct {
	Page    int
	Limit   int
	Moniker string
	Owner   sdk.AccAddress
}

QueryWrkChainParams Params for query 'custom/wrkchain/registered'

func NewQueryWrkChainParams

func NewQueryWrkChainParams(page, limit int, moniker string, owner sdk.AccAddress) QueryWrkChainParams

NewQueryWrkChainParams creates a new instance of QueryWrkChainParams

type QueryWrkChainRequest

type QueryWrkChainRequest struct {
	// wrkchain_id is the id of the wrkchain to query for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
}

QueryWrkChainRequest is the request type for the Query/WrkChain RPC method

func (*QueryWrkChainRequest) Descriptor

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

func (*QueryWrkChainRequest) GetWrkchainId

func (m *QueryWrkChainRequest) GetWrkchainId() uint64

func (*QueryWrkChainRequest) Marshal

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

func (*QueryWrkChainRequest) MarshalTo

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

func (*QueryWrkChainRequest) MarshalToSizedBuffer

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

func (*QueryWrkChainRequest) ProtoMessage

func (*QueryWrkChainRequest) ProtoMessage()

func (*QueryWrkChainRequest) Reset

func (m *QueryWrkChainRequest) Reset()

func (*QueryWrkChainRequest) Size

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

func (*QueryWrkChainRequest) String

func (m *QueryWrkChainRequest) String() string

func (*QueryWrkChainRequest) Unmarshal

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

func (*QueryWrkChainRequest) XXX_DiscardUnknown

func (m *QueryWrkChainRequest) XXX_DiscardUnknown()

func (*QueryWrkChainRequest) XXX_Marshal

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

func (*QueryWrkChainRequest) XXX_Merge

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

func (*QueryWrkChainRequest) XXX_Size

func (m *QueryWrkChainRequest) XXX_Size() int

func (*QueryWrkChainRequest) XXX_Unmarshal

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

type QueryWrkChainResponse

type QueryWrkChainResponse struct {
	Wrkchain *WrkChain `protobuf:"bytes,1,opt,name=wrkchain,proto3" json:"wrkchain,omitempty"`
}

QueryWrkChainResponse is the response type for the Query/WrkChain RPC method

func (*QueryWrkChainResponse) Descriptor

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

func (*QueryWrkChainResponse) GetWrkchain

func (m *QueryWrkChainResponse) GetWrkchain() *WrkChain

func (*QueryWrkChainResponse) Marshal

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

func (*QueryWrkChainResponse) MarshalTo

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

func (*QueryWrkChainResponse) MarshalToSizedBuffer

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

func (*QueryWrkChainResponse) ProtoMessage

func (*QueryWrkChainResponse) ProtoMessage()

func (*QueryWrkChainResponse) Reset

func (m *QueryWrkChainResponse) Reset()

func (*QueryWrkChainResponse) Size

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

func (*QueryWrkChainResponse) String

func (m *QueryWrkChainResponse) String() string

func (*QueryWrkChainResponse) Unmarshal

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

func (*QueryWrkChainResponse) XXX_DiscardUnknown

func (m *QueryWrkChainResponse) XXX_DiscardUnknown()

func (*QueryWrkChainResponse) XXX_Marshal

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

func (*QueryWrkChainResponse) XXX_Merge

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

func (*QueryWrkChainResponse) XXX_Size

func (m *QueryWrkChainResponse) XXX_Size() int

func (*QueryWrkChainResponse) XXX_Unmarshal

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

type QueryWrkChainStorageRequest added in v1.6.1

type QueryWrkChainStorageRequest struct {
	// wrkchain_id is the id of the wrkchain to query for
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
}

QueryWrkChainStorageRequest is the request type for the Query/WrkChainStorage RPC method

func (*QueryWrkChainStorageRequest) Descriptor added in v1.6.1

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

func (*QueryWrkChainStorageRequest) GetWrkchainId added in v1.6.1

func (m *QueryWrkChainStorageRequest) GetWrkchainId() uint64

func (*QueryWrkChainStorageRequest) Marshal added in v1.6.1

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

func (*QueryWrkChainStorageRequest) MarshalTo added in v1.6.1

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

func (*QueryWrkChainStorageRequest) MarshalToSizedBuffer added in v1.6.1

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

func (*QueryWrkChainStorageRequest) ProtoMessage added in v1.6.1

func (*QueryWrkChainStorageRequest) ProtoMessage()

func (*QueryWrkChainStorageRequest) Reset added in v1.6.1

func (m *QueryWrkChainStorageRequest) Reset()

func (*QueryWrkChainStorageRequest) Size added in v1.6.1

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

func (*QueryWrkChainStorageRequest) String added in v1.6.1

func (m *QueryWrkChainStorageRequest) String() string

func (*QueryWrkChainStorageRequest) Unmarshal added in v1.6.1

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

func (*QueryWrkChainStorageRequest) XXX_DiscardUnknown added in v1.6.1

func (m *QueryWrkChainStorageRequest) XXX_DiscardUnknown()

func (*QueryWrkChainStorageRequest) XXX_Marshal added in v1.6.1

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

func (*QueryWrkChainStorageRequest) XXX_Merge added in v1.6.1

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

func (*QueryWrkChainStorageRequest) XXX_Size added in v1.6.1

func (m *QueryWrkChainStorageRequest) XXX_Size() int

func (*QueryWrkChainStorageRequest) XXX_Unmarshal added in v1.6.1

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

type QueryWrkChainStorageResponse added in v1.6.1

type QueryWrkChainStorageResponse struct {
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	Owner      string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// current_limit is the current in-state storage limit for this wrkchain
	CurrentLimit uint64 `protobuf:"varint,3,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"`
	// current_used is the number of in-state slots currently used
	CurrentUsed uint64 `protobuf:"varint,4,opt,name=current_used,json=currentUsed,proto3" json:"current_used,omitempty"`
	// max is the maximum possible slots a wrkchain can have, as defined by the wrkchain module params
	Max uint64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
	// max_purchasable is the maximum number a wrkchain can purchase without exceeding max
	MaxPurchasable uint64 `protobuf:"varint,6,opt,name=max_purchasable,json=maxPurchasable,proto3" json:"max_purchasable,omitempty"`
}

QueryWrkChainStorageResponse is the response type for the Query/WrkChainStorage RPC method

func (*QueryWrkChainStorageResponse) Descriptor added in v1.6.1

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

func (*QueryWrkChainStorageResponse) GetCurrentLimit added in v1.6.1

func (m *QueryWrkChainStorageResponse) GetCurrentLimit() uint64

func (*QueryWrkChainStorageResponse) GetCurrentUsed added in v1.6.1

func (m *QueryWrkChainStorageResponse) GetCurrentUsed() uint64

func (*QueryWrkChainStorageResponse) GetMax added in v1.6.1

func (*QueryWrkChainStorageResponse) GetMaxPurchasable added in v1.6.1

func (m *QueryWrkChainStorageResponse) GetMaxPurchasable() uint64

func (*QueryWrkChainStorageResponse) GetOwner added in v1.6.1

func (m *QueryWrkChainStorageResponse) GetOwner() string

func (*QueryWrkChainStorageResponse) GetWrkchainId added in v1.6.1

func (m *QueryWrkChainStorageResponse) GetWrkchainId() uint64

func (*QueryWrkChainStorageResponse) Marshal added in v1.6.1

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

func (*QueryWrkChainStorageResponse) MarshalTo added in v1.6.1

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

func (*QueryWrkChainStorageResponse) MarshalToSizedBuffer added in v1.6.1

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

func (*QueryWrkChainStorageResponse) ProtoMessage added in v1.6.1

func (*QueryWrkChainStorageResponse) ProtoMessage()

func (*QueryWrkChainStorageResponse) Reset added in v1.6.1

func (m *QueryWrkChainStorageResponse) Reset()

func (*QueryWrkChainStorageResponse) Size added in v1.6.1

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

func (*QueryWrkChainStorageResponse) String added in v1.6.1

func (*QueryWrkChainStorageResponse) Unmarshal added in v1.6.1

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

func (*QueryWrkChainStorageResponse) XXX_DiscardUnknown added in v1.6.1

func (m *QueryWrkChainStorageResponse) XXX_DiscardUnknown()

func (*QueryWrkChainStorageResponse) XXX_Marshal added in v1.6.1

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

func (*QueryWrkChainStorageResponse) XXX_Merge added in v1.6.1

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

func (*QueryWrkChainStorageResponse) XXX_Size added in v1.6.1

func (m *QueryWrkChainStorageResponse) XXX_Size() int

func (*QueryWrkChainStorageResponse) XXX_Unmarshal added in v1.6.1

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

type QueryWrkChainsFilteredRequest

type QueryWrkChainsFilteredRequest struct {
	// moniker is the moniker of the wrkchain to search for
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// owner is an address to search for
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryWrkChainsFilteredRequest is the request type for the Query/WrkChainsFiltered RPC method

func (*QueryWrkChainsFilteredRequest) Descriptor

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

func (*QueryWrkChainsFilteredRequest) Marshal

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

func (*QueryWrkChainsFilteredRequest) MarshalTo

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

func (*QueryWrkChainsFilteredRequest) MarshalToSizedBuffer

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

func (*QueryWrkChainsFilteredRequest) ProtoMessage

func (*QueryWrkChainsFilteredRequest) ProtoMessage()

func (*QueryWrkChainsFilteredRequest) Reset

func (m *QueryWrkChainsFilteredRequest) Reset()

func (*QueryWrkChainsFilteredRequest) Size

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

func (*QueryWrkChainsFilteredRequest) String

func (*QueryWrkChainsFilteredRequest) Unmarshal

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

func (*QueryWrkChainsFilteredRequest) XXX_DiscardUnknown

func (m *QueryWrkChainsFilteredRequest) XXX_DiscardUnknown()

func (*QueryWrkChainsFilteredRequest) XXX_Marshal

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

func (*QueryWrkChainsFilteredRequest) XXX_Merge

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

func (*QueryWrkChainsFilteredRequest) XXX_Size

func (m *QueryWrkChainsFilteredRequest) XXX_Size() int

func (*QueryWrkChainsFilteredRequest) XXX_Unmarshal

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

type QueryWrkChainsFilteredResponse

type QueryWrkChainsFilteredResponse struct {
	Wrkchains []WrkChain `protobuf:"bytes,1,rep,name=wrkchains,proto3" json:"wrkchains"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryWrkChainsFilteredResponse is the response type for the Query/WrkChainsFiltered RPC method

func (*QueryWrkChainsFilteredResponse) Descriptor

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

func (*QueryWrkChainsFilteredResponse) GetPagination

func (*QueryWrkChainsFilteredResponse) GetWrkchains

func (m *QueryWrkChainsFilteredResponse) GetWrkchains() []WrkChain

func (*QueryWrkChainsFilteredResponse) Marshal

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

func (*QueryWrkChainsFilteredResponse) MarshalTo

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

func (*QueryWrkChainsFilteredResponse) MarshalToSizedBuffer

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

func (*QueryWrkChainsFilteredResponse) ProtoMessage

func (*QueryWrkChainsFilteredResponse) ProtoMessage()

func (*QueryWrkChainsFilteredResponse) Reset

func (m *QueryWrkChainsFilteredResponse) Reset()

func (*QueryWrkChainsFilteredResponse) Size

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

func (*QueryWrkChainsFilteredResponse) String

func (*QueryWrkChainsFilteredResponse) Unmarshal

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

func (*QueryWrkChainsFilteredResponse) XXX_DiscardUnknown

func (m *QueryWrkChainsFilteredResponse) XXX_DiscardUnknown()

func (*QueryWrkChainsFilteredResponse) XXX_Marshal

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

func (*QueryWrkChainsFilteredResponse) XXX_Merge

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

func (*QueryWrkChainsFilteredResponse) XXX_Size

func (m *QueryWrkChainsFilteredResponse) XXX_Size() int

func (*QueryWrkChainsFilteredResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) PurchaseWrkChainStateStorage added in v1.6.1

func (*UnimplementedMsgServer) RecordWrkChainBlock

func (*UnimplementedMsgServer) RegisterWrkChain

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) WrkChain

func (*UnimplementedQueryServer) WrkChainBlock

func (*UnimplementedQueryServer) WrkChainStorage added in v1.6.1

func (*UnimplementedQueryServer) WrkChainsFiltered

type WrkChain

type WrkChain struct {
	// wrkchain_id is the id of the wrkchain
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// moniker is the readable id of the wrkchain
	Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// name is the human friendly name of the wrkchain
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// genesis is an optional hash of the wrkchain's genesis block
	Genesis string `protobuf:"bytes,4,opt,name=genesis,proto3" json:"genesis,omitempty"`
	// type is the wrkchain type, e.g. geth, cosmos etc.
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// lastblock is the current highest recorded height for the wrkchain
	Lastblock uint64 `protobuf:"varint,6,opt,name=lastblock,proto3" json:"lastblock,omitempty"`
	// num_blocks is the current number of block hashes stored in state for the wrkchain
	NumBlocks uint64 `protobuf:"varint,7,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	// lowest_height is the lowest recorded height currently held in state for the wrkchain
	LowestHeight uint64 `protobuf:"varint,8,opt,name=lowest_height,json=lowestHeight,proto3" json:"lowest_height,omitempty"`
	// reg_time is the unix epoch of the wrkchain's registration time
	RegTime uint64 `protobuf:"varint,9,opt,name=reg_time,json=regTime,proto3" json:"reg_time,omitempty"`
	// owner is the owner address of the wrkchain
	Owner string `protobuf:"bytes,10,opt,name=owner,proto3" json:"owner,omitempty"`
}

WrkChain holds metadata about a registered wrkchain

func NewWrkchain

func NewWrkchain(wrkchainId uint64, moniker, name, genesis, wcType string,
	lastBlock, numBlocksInState, regTime uint64, owner string) (WrkChain, error)

func (*WrkChain) Descriptor

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

func (*WrkChain) GetGenesis

func (m *WrkChain) GetGenesis() string

func (*WrkChain) GetLastblock

func (m *WrkChain) GetLastblock() uint64

func (*WrkChain) GetLowestHeight

func (m *WrkChain) GetLowestHeight() uint64

func (*WrkChain) GetMoniker

func (m *WrkChain) GetMoniker() string

func (*WrkChain) GetName

func (m *WrkChain) GetName() string

func (*WrkChain) GetNumBlocks

func (m *WrkChain) GetNumBlocks() uint64

func (*WrkChain) GetOwner

func (m *WrkChain) GetOwner() string

func (*WrkChain) GetRegTime

func (m *WrkChain) GetRegTime() uint64

func (*WrkChain) GetType

func (m *WrkChain) GetType() string

func (*WrkChain) GetWrkchainId

func (m *WrkChain) GetWrkchainId() uint64

func (*WrkChain) Marshal

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

func (*WrkChain) MarshalTo

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

func (*WrkChain) MarshalToSizedBuffer

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

func (*WrkChain) ProtoMessage

func (*WrkChain) ProtoMessage()

func (*WrkChain) Reset

func (m *WrkChain) Reset()

func (*WrkChain) Size

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

func (*WrkChain) String

func (m *WrkChain) String() string

func (*WrkChain) Unmarshal

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

func (*WrkChain) XXX_DiscardUnknown

func (m *WrkChain) XXX_DiscardUnknown()

func (*WrkChain) XXX_Marshal

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

func (*WrkChain) XXX_Merge

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

func (*WrkChain) XXX_Size

func (m *WrkChain) XXX_Size() int

func (*WrkChain) XXX_Unmarshal

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

type WrkChainBlock

type WrkChainBlock struct {
	// height is the block number/height of the stored wrkchain block hash
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// blockhash is the block hash of the stored wrkchain block
	Blockhash string `protobuf:"bytes,2,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
	// parenthash is the optional hash of the parent block of the stored wrkchain block hash
	Parenthash string `protobuf:"bytes,3,opt,name=parenthash,proto3" json:"parenthash,omitempty"`
	// hash1 is an optional hash of any type of the stored wrkchain block hash
	Hash1 string `protobuf:"bytes,4,opt,name=hash1,proto3" json:"hash1,omitempty"`
	// hash2 is an optional hash of any type of the stored wrkchain block hash
	Hash2 string `protobuf:"bytes,5,opt,name=hash2,proto3" json:"hash2,omitempty"`
	// hash3 is an optional hash of any type of the stored wrkchain block hash
	Hash3 string `protobuf:"bytes,6,opt,name=hash3,proto3" json:"hash3,omitempty"`
	// sub_time is the unix epoch of the wkrchain hash submission
	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 NewWrkchainBlock

func NewWrkchainBlock(height uint64, blockHash, parentHash, h1, h2, h3 string,
	subTime uint64) (WrkChainBlock, error)

func (*WrkChainBlock) Descriptor

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

func (*WrkChainBlock) GetBlockhash

func (m *WrkChainBlock) GetBlockhash() string

func (*WrkChainBlock) GetHash1

func (m *WrkChainBlock) GetHash1() string

func (*WrkChainBlock) GetHash2

func (m *WrkChainBlock) GetHash2() string

func (*WrkChainBlock) GetHash3

func (m *WrkChainBlock) GetHash3() string

func (*WrkChainBlock) GetHeight

func (m *WrkChainBlock) GetHeight() uint64

func (*WrkChainBlock) GetParenthash

func (m *WrkChainBlock) GetParenthash() string

func (*WrkChainBlock) GetSubTime

func (m *WrkChainBlock) GetSubTime() uint64

func (*WrkChainBlock) Marshal

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

func (*WrkChainBlock) MarshalTo

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

func (*WrkChainBlock) MarshalToSizedBuffer

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

func (*WrkChainBlock) ProtoMessage

func (*WrkChainBlock) ProtoMessage()

func (*WrkChainBlock) Reset

func (m *WrkChainBlock) Reset()

func (*WrkChainBlock) Size

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

func (*WrkChainBlock) String

func (m *WrkChainBlock) String() string

func (*WrkChainBlock) Unmarshal

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

func (*WrkChainBlock) XXX_DiscardUnknown

func (m *WrkChainBlock) XXX_DiscardUnknown()

func (*WrkChainBlock) XXX_Marshal

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

func (*WrkChainBlock) XXX_Merge

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

func (*WrkChainBlock) XXX_Size

func (m *WrkChainBlock) XXX_Size() int

func (*WrkChainBlock) XXX_Unmarshal

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

type WrkChainBlockGenesisExport

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

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

func (*WrkChainBlockGenesisExport) GetBh

func (*WrkChainBlockGenesisExport) GetH1

func (*WrkChainBlockGenesisExport) GetH2

func (*WrkChainBlockGenesisExport) GetH3

func (*WrkChainBlockGenesisExport) GetHe

func (*WrkChainBlockGenesisExport) GetPh

func (*WrkChainBlockGenesisExport) GetSt

func (*WrkChainBlockGenesisExport) Marshal

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

func (*WrkChainBlockGenesisExport) MarshalTo

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

func (*WrkChainBlockGenesisExport) MarshalToSizedBuffer

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

func (*WrkChainBlockGenesisExport) ProtoMessage

func (*WrkChainBlockGenesisExport) ProtoMessage()

func (*WrkChainBlockGenesisExport) Reset

func (m *WrkChainBlockGenesisExport) Reset()

func (*WrkChainBlockGenesisExport) Size

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

func (*WrkChainBlockGenesisExport) String

func (m *WrkChainBlockGenesisExport) String() string

func (*WrkChainBlockGenesisExport) Unmarshal

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

func (*WrkChainBlockGenesisExport) XXX_DiscardUnknown

func (m *WrkChainBlockGenesisExport) XXX_DiscardUnknown()

func (*WrkChainBlockGenesisExport) XXX_Marshal

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

func (*WrkChainBlockGenesisExport) XXX_Merge

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

func (*WrkChainBlockGenesisExport) XXX_Size

func (m *WrkChainBlockGenesisExport) XXX_Size() int

func (*WrkChainBlockGenesisExport) XXX_Unmarshal

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

type WrkChainBlockGenesisExports

type WrkChainBlockGenesisExports []WrkChainBlockGenesisExport

type WrkChainBlockLegacy

type WrkChainBlockLegacy struct {
	WrkChainID uint64 `json:"wrkchain_id"`
	Height     uint64 `json:"height"`
	BlockHash  string `json:"blockhash"`
	ParentHash string `json:"parenthash"`
	Hash1      string `json:"hash1"`
	Hash2      string `json:"hash2"`
	Hash3      string `json:"hash3"`
	SubmitTime uint64 `json:"sub_time"`
	Owner      string `json:"owner"`
}

WrkChainBlockLegacy is only used to support old style hash output for the legacy REST endpoint

type WrkChainExport

type WrkChainExport struct {
	Wrkchain     WrkChain                    `protobuf:"bytes,1,opt,name=wrkchain,proto3" json:"wrkchain"`
	InStateLimit uint64                      `protobuf:"varint,2,opt,name=in_state_limit,json=inStateLimit,proto3" json:"in_state_limit,omitempty"`
	Blocks       WrkChainBlockGenesisExports `protobuf:"bytes,3,rep,name=blocks,proto3,castrepeated=WrkChainBlockGenesisExports" json:"blocks"`
}

WrkChainExport holds genesis export data for a wrkchain, including hashes

func (*WrkChainExport) Descriptor

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

func (*WrkChainExport) GetBlocks

func (*WrkChainExport) GetInStateLimit added in v1.6.1

func (m *WrkChainExport) GetInStateLimit() uint64

func (*WrkChainExport) GetWrkchain

func (m *WrkChainExport) GetWrkchain() WrkChain

func (*WrkChainExport) Marshal

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

func (*WrkChainExport) MarshalTo

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

func (*WrkChainExport) MarshalToSizedBuffer

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

func (*WrkChainExport) ProtoMessage

func (*WrkChainExport) ProtoMessage()

func (*WrkChainExport) Reset

func (m *WrkChainExport) Reset()

func (*WrkChainExport) Size

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

func (*WrkChainExport) String

func (m *WrkChainExport) String() string

func (*WrkChainExport) Unmarshal

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

func (*WrkChainExport) XXX_DiscardUnknown

func (m *WrkChainExport) XXX_DiscardUnknown()

func (*WrkChainExport) XXX_Marshal

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

func (*WrkChainExport) XXX_Merge

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

func (*WrkChainExport) XXX_Size

func (m *WrkChainExport) XXX_Size() int

func (*WrkChainExport) XXX_Unmarshal

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

type WrkChainExports

type WrkChainExports []WrkChainExport

type WrkChainStorageLimit added in v1.6.1

type WrkChainStorageLimit struct {
	// wrkchain_id is the id of the wrkchain
	WrkchainId uint64 `protobuf:"varint,1,opt,name=wrkchain_id,json=wrkchainId,proto3" json:"wrkchain_id,omitempty"`
	// in_state_limit is the current maximum number of blocks that will be held in state for the wrkchain
	InStateLimit uint64 `protobuf:"varint,2,opt,name=in_state_limit,json=inStateLimit,proto3" json:"in_state_limit,omitempty"`
}

WrkChainStorageLimit holds tata about the wrkchain's current in-state storage limit

func (*WrkChainStorageLimit) Descriptor added in v1.6.1

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

func (*WrkChainStorageLimit) GetInStateLimit added in v1.6.1

func (m *WrkChainStorageLimit) GetInStateLimit() uint64

func (*WrkChainStorageLimit) GetWrkchainId added in v1.6.1

func (m *WrkChainStorageLimit) GetWrkchainId() uint64

func (*WrkChainStorageLimit) Marshal added in v1.6.1

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

func (*WrkChainStorageLimit) MarshalTo added in v1.6.1

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

func (*WrkChainStorageLimit) MarshalToSizedBuffer added in v1.6.1

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

func (*WrkChainStorageLimit) ProtoMessage added in v1.6.1

func (*WrkChainStorageLimit) ProtoMessage()

func (*WrkChainStorageLimit) Reset added in v1.6.1

func (m *WrkChainStorageLimit) Reset()

func (*WrkChainStorageLimit) Size added in v1.6.1

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

func (*WrkChainStorageLimit) String added in v1.6.1

func (m *WrkChainStorageLimit) String() string

func (*WrkChainStorageLimit) Unmarshal added in v1.6.1

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

func (*WrkChainStorageLimit) XXX_DiscardUnknown added in v1.6.1

func (m *WrkChainStorageLimit) XXX_DiscardUnknown()

func (*WrkChainStorageLimit) XXX_Marshal added in v1.6.1

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

func (*WrkChainStorageLimit) XXX_Merge added in v1.6.1

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

func (*WrkChainStorageLimit) XXX_Size added in v1.6.1

func (m *WrkChainStorageLimit) XXX_Size() int

func (*WrkChainStorageLimit) XXX_Unmarshal added in v1.6.1

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

Jump to

Keyboard shortcuts

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