v2

package
v7.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeMsgSubmitCorkRequest   = "cork_submit"
	TypeMsgScheduleCorkRequest = "cork_schedule"
)
View Source
const (
	ProposalTypeAddManagedCellarIDs    = "v2/AddManagedCellarIDs"
	ProposalTypeRemoveManagedCellarIDs = "v2/RemoveManagedCellarIDs"
	ProposalTypeScheduledCork          = "v2/ScheduledCork"
)
View Source
const DefaultParamspace = types.ModuleName

Variables

View Source
var (
	ErrInvalidLengthCork        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCork          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCork = fmt.Errorf("proto: unexpected end of group")
)
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 (
	KeyVotePeriod           = []byte("voteperiod")
	KeyVoteThreshold        = []byte("votethreshold")
	KeyMaxCorksPerValidator = []byte("maxcorkspervalidator")
)

Parameter keys

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
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 (

	// ModuleCdc 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 ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the cork proto files

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the vesting 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)

Types

type AddManagedCellarIDsProposal

type AddManagedCellarIDsProposal struct {
	Title           string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description     string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CellarIds       *CellarIDSet `protobuf:"bytes,3,opt,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids,omitempty"`
	PublisherDomain string       `protobuf:"bytes,4,opt,name=publisher_domain,json=publisherDomain,proto3" json:"publisher_domain,omitempty"`
}

func NewAddManagedCellarIDsProposal

func NewAddManagedCellarIDsProposal(title string, description string, cellarIds *CellarIDSet, publisherDomain string) *AddManagedCellarIDsProposal

func (*AddManagedCellarIDsProposal) Descriptor

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

func (*AddManagedCellarIDsProposal) GetCellarIds

func (m *AddManagedCellarIDsProposal) GetCellarIds() *CellarIDSet

func (*AddManagedCellarIDsProposal) GetDescription

func (m *AddManagedCellarIDsProposal) GetDescription() string

func (*AddManagedCellarIDsProposal) GetPublisherDomain

func (m *AddManagedCellarIDsProposal) GetPublisherDomain() string

func (*AddManagedCellarIDsProposal) GetTitle

func (m *AddManagedCellarIDsProposal) GetTitle() string

func (*AddManagedCellarIDsProposal) Marshal

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

func (*AddManagedCellarIDsProposal) MarshalTo

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

func (*AddManagedCellarIDsProposal) MarshalToSizedBuffer

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

func (*AddManagedCellarIDsProposal) ProposalRoute

func (m *AddManagedCellarIDsProposal) ProposalRoute() string

func (*AddManagedCellarIDsProposal) ProposalType

func (m *AddManagedCellarIDsProposal) ProposalType() string

func (*AddManagedCellarIDsProposal) ProtoMessage

func (*AddManagedCellarIDsProposal) ProtoMessage()

func (*AddManagedCellarIDsProposal) Reset

func (m *AddManagedCellarIDsProposal) Reset()

func (*AddManagedCellarIDsProposal) Size

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

func (*AddManagedCellarIDsProposal) String

func (m *AddManagedCellarIDsProposal) String() string

func (*AddManagedCellarIDsProposal) Unmarshal

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

func (*AddManagedCellarIDsProposal) ValidateBasic

func (m *AddManagedCellarIDsProposal) ValidateBasic() error

func (*AddManagedCellarIDsProposal) XXX_DiscardUnknown

func (m *AddManagedCellarIDsProposal) XXX_DiscardUnknown()

func (*AddManagedCellarIDsProposal) XXX_Marshal

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

func (*AddManagedCellarIDsProposal) XXX_Merge

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

func (*AddManagedCellarIDsProposal) XXX_Size

func (m *AddManagedCellarIDsProposal) XXX_Size() int

func (*AddManagedCellarIDsProposal) XXX_Unmarshal

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

type AddManagedCellarIDsProposalWithDeposit

type AddManagedCellarIDsProposalWithDeposit struct {
	Title           string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description     string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CellarIds       []string `protobuf:"bytes,3,rep,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids,omitempty"`
	PublisherDomain string   `protobuf:"bytes,4,opt,name=publisher_domain,json=publisherDomain,proto3" json:"publisher_domain,omitempty"`
	Deposit         string   `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

AddManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands

func (*AddManagedCellarIDsProposalWithDeposit) Descriptor

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

func (*AddManagedCellarIDsProposalWithDeposit) GetCellarIds

func (m *AddManagedCellarIDsProposalWithDeposit) GetCellarIds() []string

func (*AddManagedCellarIDsProposalWithDeposit) GetDeposit

func (*AddManagedCellarIDsProposalWithDeposit) GetDescription

func (m *AddManagedCellarIDsProposalWithDeposit) GetDescription() string

func (*AddManagedCellarIDsProposalWithDeposit) GetPublisherDomain

func (m *AddManagedCellarIDsProposalWithDeposit) GetPublisherDomain() string

func (*AddManagedCellarIDsProposalWithDeposit) GetTitle

func (*AddManagedCellarIDsProposalWithDeposit) Marshal

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

func (*AddManagedCellarIDsProposalWithDeposit) MarshalTo

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

func (*AddManagedCellarIDsProposalWithDeposit) MarshalToSizedBuffer

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

func (*AddManagedCellarIDsProposalWithDeposit) ProtoMessage

func (*AddManagedCellarIDsProposalWithDeposit) Reset

func (*AddManagedCellarIDsProposalWithDeposit) Size

func (*AddManagedCellarIDsProposalWithDeposit) String

func (*AddManagedCellarIDsProposalWithDeposit) Unmarshal

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

func (*AddManagedCellarIDsProposalWithDeposit) XXX_DiscardUnknown

func (m *AddManagedCellarIDsProposalWithDeposit) XXX_DiscardUnknown()

func (*AddManagedCellarIDsProposalWithDeposit) XXX_Marshal

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

func (*AddManagedCellarIDsProposalWithDeposit) XXX_Merge

func (*AddManagedCellarIDsProposalWithDeposit) XXX_Size

func (*AddManagedCellarIDsProposalWithDeposit) XXX_Unmarshal

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

type CellarIDSet

type CellarIDSet struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
}

func (*CellarIDSet) Descriptor

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

func (*CellarIDSet) GetIds

func (m *CellarIDSet) GetIds() []string

func (*CellarIDSet) Marshal

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

func (*CellarIDSet) MarshalTo

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

func (*CellarIDSet) MarshalToSizedBuffer

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

func (*CellarIDSet) ProtoMessage

func (*CellarIDSet) ProtoMessage()

func (*CellarIDSet) Reset

func (m *CellarIDSet) Reset()

func (*CellarIDSet) Size

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

func (*CellarIDSet) String

func (m *CellarIDSet) String() string

func (*CellarIDSet) Unmarshal

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

func (*CellarIDSet) ValidateBasic

func (c *CellarIDSet) ValidateBasic() error

func (*CellarIDSet) XXX_DiscardUnknown

func (m *CellarIDSet) XXX_DiscardUnknown()

func (*CellarIDSet) XXX_Marshal

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

func (*CellarIDSet) XXX_Merge

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

func (*CellarIDSet) XXX_Size

func (m *CellarIDSet) XXX_Size() int

func (*CellarIDSet) XXX_Unmarshal

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

type Cork

type Cork struct {
	// call body containing the ABI encoded bytes to send to the contract
	EncodedContractCall []byte `protobuf:"bytes,1,opt,name=encoded_contract_call,json=encodedContractCall,proto3" json:"encoded_contract_call,omitempty"`
	// address of the contract to send the call
	TargetContractAddress string `` /* 126-byte string literal not displayed */
}

func (*Cork) Descriptor

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

func (*Cork) Equals

func (c *Cork) Equals(other Cork) bool

func (*Cork) GetEncodedContractCall

func (m *Cork) GetEncodedContractCall() []byte

func (*Cork) GetTargetContractAddress

func (m *Cork) GetTargetContractAddress() string

func (*Cork) IDHash

func (c *Cork) IDHash(blockHeight uint64) []byte

func (*Cork) InvalidationScope

func (c *Cork) InvalidationScope() tmbytes.HexBytes

func (*Cork) Marshal

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

func (*Cork) MarshalTo

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

func (*Cork) MarshalToSizedBuffer

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

func (*Cork) ProtoMessage

func (*Cork) ProtoMessage()

func (*Cork) Reset

func (m *Cork) Reset()

func (*Cork) Size

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

func (*Cork) String

func (m *Cork) String() string

func (*Cork) Unmarshal

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

func (*Cork) ValidateBasic

func (c *Cork) ValidateBasic() error

func (*Cork) XXX_DiscardUnknown

func (m *Cork) XXX_DiscardUnknown()

func (*Cork) XXX_Marshal

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

func (*Cork) XXX_Merge

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

func (*Cork) XXX_Size

func (m *Cork) XXX_Size() int

func (*Cork) XXX_Unmarshal

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

type CorkResult

type CorkResult struct {
	Cork               *Cork  `protobuf:"bytes,1,opt,name=cork,proto3" json:"cork,omitempty"`
	BlockHeight        uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Approved           bool   `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"`
	ApprovalPercentage string `protobuf:"bytes,4,opt,name=approval_percentage,json=approvalPercentage,proto3" json:"approval_percentage,omitempty"`
}

func (*CorkResult) Descriptor

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

func (*CorkResult) GetApprovalPercentage

func (m *CorkResult) GetApprovalPercentage() string

func (*CorkResult) GetApproved

func (m *CorkResult) GetApproved() bool

func (*CorkResult) GetBlockHeight

func (m *CorkResult) GetBlockHeight() uint64

func (*CorkResult) GetCork

func (m *CorkResult) GetCork() *Cork

func (*CorkResult) Marshal

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

func (*CorkResult) MarshalTo

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

func (*CorkResult) MarshalToSizedBuffer

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

func (*CorkResult) ProtoMessage

func (*CorkResult) ProtoMessage()

func (*CorkResult) Reset

func (m *CorkResult) Reset()

func (*CorkResult) Size

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

func (*CorkResult) String

func (m *CorkResult) String() string

func (*CorkResult) Unmarshal

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

func (*CorkResult) ValidateBasic

func (c *CorkResult) ValidateBasic() error

func (*CorkResult) XXX_DiscardUnknown

func (m *CorkResult) XXX_DiscardUnknown()

func (*CorkResult) XXX_Marshal

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

func (*CorkResult) XXX_Merge

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

func (*CorkResult) XXX_Size

func (m *CorkResult) XXX_Size() int

func (*CorkResult) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params            Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	CellarIds         CellarIDSet      `protobuf:"bytes,2,opt,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids"`
	InvalidationNonce uint64           `protobuf:"varint,3,opt,name=invalidation_nonce,json=invalidationNonce,proto3" json:"invalidation_nonce,omitempty"`
	ScheduledCorks    []*ScheduledCork `protobuf:"bytes,4,rep,name=scheduled_corks,json=scheduledCorks,proto3" json:"scheduled_corks,omitempty"`
	CorkResults       []*CorkResult    `protobuf:"bytes,5,rep,name=cork_results,json=corkResults,proto3" json:"cork_results,omitempty"`
}

GenesisState - all cork state that must be provided at genesis

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState get raw genesis raw message for testing

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCellarIds

func (m *GenesisState) GetCellarIds() CellarIDSet

func (*GenesisState) GetCorkResults

func (m *GenesisState) GetCorkResults() []*CorkResult

func (*GenesisState) GetInvalidationNonce

func (m *GenesisState) GetInvalidationNonce() uint64

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetScheduledCorks

func (m *GenesisState) GetScheduledCorks() []*ScheduledCork

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) Validate

func (gs GenesisState) Validate() error

Validate performs a basic stateless validation of the genesis fields.

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 {
	ScheduleCork(ctx context.Context, in *MsgScheduleCorkRequest, opts ...grpc.CallOption) (*MsgScheduleCorkResponse, 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 MsgScheduleCorkRequest

type MsgScheduleCorkRequest struct {
	// the scheduled cork
	Cork *Cork `protobuf:"bytes,1,opt,name=cork,proto3" json:"cork,omitempty"`
	// the block height that must be reached
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// signer account address
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgScheduleCorkRequest - sdk.Msg for scheduling a cork request for on or after a specific block height

func NewMsgScheduleCorkRequest

func NewMsgScheduleCorkRequest(body []byte, address common.Address, blockHeight uint64, signer sdk.AccAddress) (*MsgScheduleCorkRequest, error)

NewMsgScheduleCorkRequest return a new MsgScheduleCorkRequest

func (*MsgScheduleCorkRequest) Descriptor

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

func (*MsgScheduleCorkRequest) GetBlockHeight

func (m *MsgScheduleCorkRequest) GetBlockHeight() uint64

func (*MsgScheduleCorkRequest) GetCork

func (m *MsgScheduleCorkRequest) GetCork() *Cork

func (*MsgScheduleCorkRequest) GetSignBytes

func (m *MsgScheduleCorkRequest) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgScheduleCorkRequest) GetSigner

func (m *MsgScheduleCorkRequest) GetSigner() string

func (*MsgScheduleCorkRequest) GetSigners

func (m *MsgScheduleCorkRequest) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgScheduleCorkRequest) Marshal

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

func (*MsgScheduleCorkRequest) MarshalTo

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

func (*MsgScheduleCorkRequest) MarshalToSizedBuffer

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

func (*MsgScheduleCorkRequest) MustGetSigner

func (m *MsgScheduleCorkRequest) MustGetSigner() sdk.AccAddress

MustGetSigner returns the signer address

func (*MsgScheduleCorkRequest) ProtoMessage

func (*MsgScheduleCorkRequest) ProtoMessage()

func (*MsgScheduleCorkRequest) Reset

func (m *MsgScheduleCorkRequest) Reset()

func (*MsgScheduleCorkRequest) Route

func (m *MsgScheduleCorkRequest) Route() string

Route implements sdk.Msg

func (*MsgScheduleCorkRequest) Size

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

func (*MsgScheduleCorkRequest) String

func (m *MsgScheduleCorkRequest) String() string

func (*MsgScheduleCorkRequest) Type

func (m *MsgScheduleCorkRequest) Type() string

Type implements sdk.Msg

func (*MsgScheduleCorkRequest) Unmarshal

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

func (*MsgScheduleCorkRequest) ValidateBasic

func (m *MsgScheduleCorkRequest) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgScheduleCorkRequest) XXX_DiscardUnknown

func (m *MsgScheduleCorkRequest) XXX_DiscardUnknown()

func (*MsgScheduleCorkRequest) XXX_Marshal

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

func (*MsgScheduleCorkRequest) XXX_Merge

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

func (*MsgScheduleCorkRequest) XXX_Size

func (m *MsgScheduleCorkRequest) XXX_Size() int

func (*MsgScheduleCorkRequest) XXX_Unmarshal

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

type MsgScheduleCorkResponse

type MsgScheduleCorkResponse struct {
	// cork ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgScheduleCorkResponse) Descriptor

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

func (*MsgScheduleCorkResponse) GetId

func (m *MsgScheduleCorkResponse) GetId() string

func (*MsgScheduleCorkResponse) Marshal

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

func (*MsgScheduleCorkResponse) MarshalTo

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

func (*MsgScheduleCorkResponse) MarshalToSizedBuffer

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

func (*MsgScheduleCorkResponse) ProtoMessage

func (*MsgScheduleCorkResponse) ProtoMessage()

func (*MsgScheduleCorkResponse) Reset

func (m *MsgScheduleCorkResponse) Reset()

func (*MsgScheduleCorkResponse) Size

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

func (*MsgScheduleCorkResponse) String

func (m *MsgScheduleCorkResponse) String() string

func (*MsgScheduleCorkResponse) Unmarshal

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

func (*MsgScheduleCorkResponse) XXX_DiscardUnknown

func (m *MsgScheduleCorkResponse) XXX_DiscardUnknown()

func (*MsgScheduleCorkResponse) XXX_Marshal

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

func (*MsgScheduleCorkResponse) XXX_Merge

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

func (*MsgScheduleCorkResponse) XXX_Size

func (m *MsgScheduleCorkResponse) XXX_Size() int

func (*MsgScheduleCorkResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	ScheduleCork(context.Context, *MsgScheduleCorkRequest) (*MsgScheduleCorkResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	// Deprecated
	// VoteThreshold defines the percentage of bonded stake required to vote for a scheduled cork to be approved
	VoteThreshold        github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */
	MaxCorksPerValidator uint64                                 `` /* 126-byte string literal not displayed */
}

Params cork parameters

func DefaultParams

func DefaultParams() Params

DefaultParams returns default oracle parameters

func (*Params) Descriptor

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

func (*Params) GetMaxCorksPerValidator

func (m *Params) GetMaxCorksPerValidator() 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

ParamSetPairs returns the parameter set pairs.

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) ValidateBasic

func (p *Params) ValidateBasic() error

ValidateBasic performs basic validation on oracle parameters.

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 QueryCellarIDsRequest

type QueryCellarIDsRequest struct {
}

QueryCellarIDsRequest is the request type for Query/QueryCellarIDs gRPC method.

func (*QueryCellarIDsRequest) Descriptor

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

func (*QueryCellarIDsRequest) Marshal

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

func (*QueryCellarIDsRequest) MarshalTo

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

func (*QueryCellarIDsRequest) MarshalToSizedBuffer

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

func (*QueryCellarIDsRequest) ProtoMessage

func (*QueryCellarIDsRequest) ProtoMessage()

func (*QueryCellarIDsRequest) Reset

func (m *QueryCellarIDsRequest) Reset()

func (*QueryCellarIDsRequest) Size

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

func (*QueryCellarIDsRequest) String

func (m *QueryCellarIDsRequest) String() string

func (*QueryCellarIDsRequest) Unmarshal

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

func (*QueryCellarIDsRequest) XXX_DiscardUnknown

func (m *QueryCellarIDsRequest) XXX_DiscardUnknown()

func (*QueryCellarIDsRequest) XXX_Marshal

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

func (*QueryCellarIDsRequest) XXX_Merge

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

func (*QueryCellarIDsRequest) XXX_Size

func (m *QueryCellarIDsRequest) XXX_Size() int

func (*QueryCellarIDsRequest) XXX_Unmarshal

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

type QueryCellarIDsResponse

type QueryCellarIDsResponse struct {
	CellarIds []string `protobuf:"bytes,1,rep,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids,omitempty"`
}

QueryCellarIDsResponse is the response type for Query/QueryCellars gRPC method.

func (*QueryCellarIDsResponse) Descriptor

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

func (*QueryCellarIDsResponse) GetCellarIds

func (m *QueryCellarIDsResponse) GetCellarIds() []string

func (*QueryCellarIDsResponse) Marshal

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

func (*QueryCellarIDsResponse) MarshalTo

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

func (*QueryCellarIDsResponse) MarshalToSizedBuffer

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

func (*QueryCellarIDsResponse) ProtoMessage

func (*QueryCellarIDsResponse) ProtoMessage()

func (*QueryCellarIDsResponse) Reset

func (m *QueryCellarIDsResponse) Reset()

func (*QueryCellarIDsResponse) Size

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

func (*QueryCellarIDsResponse) String

func (m *QueryCellarIDsResponse) String() string

func (*QueryCellarIDsResponse) Unmarshal

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

func (*QueryCellarIDsResponse) XXX_DiscardUnknown

func (m *QueryCellarIDsResponse) XXX_DiscardUnknown()

func (*QueryCellarIDsResponse) XXX_Marshal

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

func (*QueryCellarIDsResponse) XXX_Merge

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

func (*QueryCellarIDsResponse) XXX_Size

func (m *QueryCellarIDsResponse) XXX_Size() int

func (*QueryCellarIDsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// QueryParams queries the allocation module parameters.
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// QueryCellarIDs returns all cellars and current tick ranges
	QueryCellarIDs(ctx context.Context, in *QueryCellarIDsRequest, opts ...grpc.CallOption) (*QueryCellarIDsResponse, error)
	// QueryScheduledCorks returns all scheduled corks
	QueryScheduledCorks(ctx context.Context, in *QueryScheduledCorksRequest, opts ...grpc.CallOption) (*QueryScheduledCorksResponse, error)
	// QueryScheduledBlockHeights returns all scheduled block heights
	QueryScheduledBlockHeights(ctx context.Context, in *QueryScheduledBlockHeightsRequest, opts ...grpc.CallOption) (*QueryScheduledBlockHeightsResponse, error)
	// QueryScheduledCorks returns all scheduled corks at a block height
	QueryScheduledCorksByBlockHeight(ctx context.Context, in *QueryScheduledCorksByBlockHeightRequest, opts ...grpc.CallOption) (*QueryScheduledCorksByBlockHeightResponse, error)
	// QueryScheduledCorks returns all scheduled corks with the specified ID
	QueryScheduledCorksByID(ctx context.Context, in *QueryScheduledCorksByIDRequest, opts ...grpc.CallOption) (*QueryScheduledCorksByIDResponse, error)
	QueryCorkResult(ctx context.Context, in *QueryCorkResultRequest, opts ...grpc.CallOption) (*QueryCorkResultResponse, error)
	QueryCorkResults(ctx context.Context, in *QueryCorkResultsRequest, opts ...grpc.CallOption) (*QueryCorkResultsResponse, 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 QueryCorkResultRequest

type QueryCorkResultRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryCorkResultRequest) Descriptor

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

func (*QueryCorkResultRequest) GetId

func (m *QueryCorkResultRequest) GetId() string

func (*QueryCorkResultRequest) Marshal

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

func (*QueryCorkResultRequest) MarshalTo

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

func (*QueryCorkResultRequest) MarshalToSizedBuffer

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

func (*QueryCorkResultRequest) ProtoMessage

func (*QueryCorkResultRequest) ProtoMessage()

func (*QueryCorkResultRequest) Reset

func (m *QueryCorkResultRequest) Reset()

func (*QueryCorkResultRequest) Size

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

func (*QueryCorkResultRequest) String

func (m *QueryCorkResultRequest) String() string

func (*QueryCorkResultRequest) Unmarshal

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

func (*QueryCorkResultRequest) XXX_DiscardUnknown

func (m *QueryCorkResultRequest) XXX_DiscardUnknown()

func (*QueryCorkResultRequest) XXX_Marshal

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

func (*QueryCorkResultRequest) XXX_Merge

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

func (*QueryCorkResultRequest) XXX_Size

func (m *QueryCorkResultRequest) XXX_Size() int

func (*QueryCorkResultRequest) XXX_Unmarshal

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

type QueryCorkResultResponse

type QueryCorkResultResponse struct {
	CorkResult *CorkResult `protobuf:"bytes,1,opt,name=corkResult,proto3" json:"corkResult,omitempty"`
}

func (*QueryCorkResultResponse) Descriptor

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

func (*QueryCorkResultResponse) GetCorkResult

func (m *QueryCorkResultResponse) GetCorkResult() *CorkResult

func (*QueryCorkResultResponse) Marshal

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

func (*QueryCorkResultResponse) MarshalTo

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

func (*QueryCorkResultResponse) MarshalToSizedBuffer

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

func (*QueryCorkResultResponse) ProtoMessage

func (*QueryCorkResultResponse) ProtoMessage()

func (*QueryCorkResultResponse) Reset

func (m *QueryCorkResultResponse) Reset()

func (*QueryCorkResultResponse) Size

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

func (*QueryCorkResultResponse) String

func (m *QueryCorkResultResponse) String() string

func (*QueryCorkResultResponse) Unmarshal

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

func (*QueryCorkResultResponse) XXX_DiscardUnknown

func (m *QueryCorkResultResponse) XXX_DiscardUnknown()

func (*QueryCorkResultResponse) XXX_Marshal

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

func (*QueryCorkResultResponse) XXX_Merge

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

func (*QueryCorkResultResponse) XXX_Size

func (m *QueryCorkResultResponse) XXX_Size() int

func (*QueryCorkResultResponse) XXX_Unmarshal

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

type QueryCorkResultsRequest

type QueryCorkResultsRequest struct {
}

func (*QueryCorkResultsRequest) Descriptor

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

func (*QueryCorkResultsRequest) Marshal

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

func (*QueryCorkResultsRequest) MarshalTo

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

func (*QueryCorkResultsRequest) MarshalToSizedBuffer

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

func (*QueryCorkResultsRequest) ProtoMessage

func (*QueryCorkResultsRequest) ProtoMessage()

func (*QueryCorkResultsRequest) Reset

func (m *QueryCorkResultsRequest) Reset()

func (*QueryCorkResultsRequest) Size

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

func (*QueryCorkResultsRequest) String

func (m *QueryCorkResultsRequest) String() string

func (*QueryCorkResultsRequest) Unmarshal

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

func (*QueryCorkResultsRequest) XXX_DiscardUnknown

func (m *QueryCorkResultsRequest) XXX_DiscardUnknown()

func (*QueryCorkResultsRequest) XXX_Marshal

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

func (*QueryCorkResultsRequest) XXX_Merge

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

func (*QueryCorkResultsRequest) XXX_Size

func (m *QueryCorkResultsRequest) XXX_Size() int

func (*QueryCorkResultsRequest) XXX_Unmarshal

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

type QueryCorkResultsResponse

type QueryCorkResultsResponse struct {
	CorkResults []*CorkResult `protobuf:"bytes,1,rep,name=corkResults,proto3" json:"corkResults,omitempty"`
}

func (*QueryCorkResultsResponse) Descriptor

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

func (*QueryCorkResultsResponse) GetCorkResults

func (m *QueryCorkResultsResponse) GetCorkResults() []*CorkResult

func (*QueryCorkResultsResponse) Marshal

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

func (*QueryCorkResultsResponse) MarshalTo

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

func (*QueryCorkResultsResponse) MarshalToSizedBuffer

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

func (*QueryCorkResultsResponse) ProtoMessage

func (*QueryCorkResultsResponse) ProtoMessage()

func (*QueryCorkResultsResponse) Reset

func (m *QueryCorkResultsResponse) Reset()

func (*QueryCorkResultsResponse) Size

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

func (*QueryCorkResultsResponse) String

func (m *QueryCorkResultsResponse) String() string

func (*QueryCorkResultsResponse) Unmarshal

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

func (*QueryCorkResultsResponse) XXX_DiscardUnknown

func (m *QueryCorkResultsResponse) XXX_DiscardUnknown()

func (*QueryCorkResultsResponse) XXX_Marshal

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

func (*QueryCorkResultsResponse) XXX_Merge

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

func (*QueryCorkResultsResponse) XXX_Size

func (m *QueryCorkResultsResponse) XXX_Size() int

func (*QueryCorkResultsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params gRPC 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 {
	// allocation parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsRequest is the response type for the Query/Params gRPC 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 QueryScheduledBlockHeightsRequest

type QueryScheduledBlockHeightsRequest struct {
}

QueryScheduledBlockHeightsRequest

func (*QueryScheduledBlockHeightsRequest) Descriptor

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

func (*QueryScheduledBlockHeightsRequest) Marshal

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

func (*QueryScheduledBlockHeightsRequest) MarshalTo

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

func (*QueryScheduledBlockHeightsRequest) MarshalToSizedBuffer

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

func (*QueryScheduledBlockHeightsRequest) ProtoMessage

func (*QueryScheduledBlockHeightsRequest) ProtoMessage()

func (*QueryScheduledBlockHeightsRequest) Reset

func (*QueryScheduledBlockHeightsRequest) Size

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

func (*QueryScheduledBlockHeightsRequest) String

func (*QueryScheduledBlockHeightsRequest) Unmarshal

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

func (*QueryScheduledBlockHeightsRequest) XXX_DiscardUnknown

func (m *QueryScheduledBlockHeightsRequest) XXX_DiscardUnknown()

func (*QueryScheduledBlockHeightsRequest) XXX_Marshal

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

func (*QueryScheduledBlockHeightsRequest) XXX_Merge

func (*QueryScheduledBlockHeightsRequest) XXX_Size

func (m *QueryScheduledBlockHeightsRequest) XXX_Size() int

func (*QueryScheduledBlockHeightsRequest) XXX_Unmarshal

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

type QueryScheduledBlockHeightsResponse

type QueryScheduledBlockHeightsResponse struct {
	BlockHeights []uint64 `protobuf:"varint,1,rep,packed,name=block_heights,json=blockHeights,proto3" json:"block_heights,omitempty"`
}

QueryScheduledBlockHeightsResponse

func (*QueryScheduledBlockHeightsResponse) Descriptor

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

func (*QueryScheduledBlockHeightsResponse) GetBlockHeights

func (m *QueryScheduledBlockHeightsResponse) GetBlockHeights() []uint64

func (*QueryScheduledBlockHeightsResponse) Marshal

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

func (*QueryScheduledBlockHeightsResponse) MarshalTo

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

func (*QueryScheduledBlockHeightsResponse) MarshalToSizedBuffer

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

func (*QueryScheduledBlockHeightsResponse) ProtoMessage

func (*QueryScheduledBlockHeightsResponse) ProtoMessage()

func (*QueryScheduledBlockHeightsResponse) Reset

func (*QueryScheduledBlockHeightsResponse) Size

func (*QueryScheduledBlockHeightsResponse) String

func (*QueryScheduledBlockHeightsResponse) Unmarshal

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

func (*QueryScheduledBlockHeightsResponse) XXX_DiscardUnknown

func (m *QueryScheduledBlockHeightsResponse) XXX_DiscardUnknown()

func (*QueryScheduledBlockHeightsResponse) XXX_Marshal

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

func (*QueryScheduledBlockHeightsResponse) XXX_Merge

func (*QueryScheduledBlockHeightsResponse) XXX_Size

func (*QueryScheduledBlockHeightsResponse) XXX_Unmarshal

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

type QueryScheduledCorksByBlockHeightRequest

type QueryScheduledCorksByBlockHeightRequest struct {
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}

QueryScheduledCorksByBlockHeightRequest

func (*QueryScheduledCorksByBlockHeightRequest) Descriptor

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

func (*QueryScheduledCorksByBlockHeightRequest) GetBlockHeight

func (m *QueryScheduledCorksByBlockHeightRequest) GetBlockHeight() uint64

func (*QueryScheduledCorksByBlockHeightRequest) Marshal

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

func (*QueryScheduledCorksByBlockHeightRequest) MarshalTo

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

func (*QueryScheduledCorksByBlockHeightRequest) MarshalToSizedBuffer

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

func (*QueryScheduledCorksByBlockHeightRequest) ProtoMessage

func (*QueryScheduledCorksByBlockHeightRequest) Reset

func (*QueryScheduledCorksByBlockHeightRequest) Size

func (*QueryScheduledCorksByBlockHeightRequest) String

func (*QueryScheduledCorksByBlockHeightRequest) Unmarshal

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

func (*QueryScheduledCorksByBlockHeightRequest) XXX_DiscardUnknown

func (m *QueryScheduledCorksByBlockHeightRequest) XXX_DiscardUnknown()

func (*QueryScheduledCorksByBlockHeightRequest) XXX_Marshal

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

func (*QueryScheduledCorksByBlockHeightRequest) XXX_Merge

func (*QueryScheduledCorksByBlockHeightRequest) XXX_Size

func (*QueryScheduledCorksByBlockHeightRequest) XXX_Unmarshal

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

type QueryScheduledCorksByBlockHeightResponse

type QueryScheduledCorksByBlockHeightResponse struct {
	Corks []*ScheduledCork `protobuf:"bytes,1,rep,name=corks,proto3" json:"corks,omitempty"`
}

QueryScheduledCorksByBlockHeightResponse

func (*QueryScheduledCorksByBlockHeightResponse) Descriptor

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

func (*QueryScheduledCorksByBlockHeightResponse) GetCorks

func (*QueryScheduledCorksByBlockHeightResponse) Marshal

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

func (*QueryScheduledCorksByBlockHeightResponse) MarshalTo

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

func (*QueryScheduledCorksByBlockHeightResponse) MarshalToSizedBuffer

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

func (*QueryScheduledCorksByBlockHeightResponse) ProtoMessage

func (*QueryScheduledCorksByBlockHeightResponse) Reset

func (*QueryScheduledCorksByBlockHeightResponse) Size

func (*QueryScheduledCorksByBlockHeightResponse) String

func (*QueryScheduledCorksByBlockHeightResponse) Unmarshal

func (*QueryScheduledCorksByBlockHeightResponse) XXX_DiscardUnknown

func (m *QueryScheduledCorksByBlockHeightResponse) XXX_DiscardUnknown()

func (*QueryScheduledCorksByBlockHeightResponse) XXX_Marshal

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

func (*QueryScheduledCorksByBlockHeightResponse) XXX_Merge

func (*QueryScheduledCorksByBlockHeightResponse) XXX_Size

func (*QueryScheduledCorksByBlockHeightResponse) XXX_Unmarshal

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

type QueryScheduledCorksByIDRequest

type QueryScheduledCorksByIDRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryScheduledCorksByIDRequest

func (*QueryScheduledCorksByIDRequest) Descriptor

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

func (*QueryScheduledCorksByIDRequest) GetId

func (*QueryScheduledCorksByIDRequest) Marshal

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

func (*QueryScheduledCorksByIDRequest) MarshalTo

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

func (*QueryScheduledCorksByIDRequest) MarshalToSizedBuffer

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

func (*QueryScheduledCorksByIDRequest) ProtoMessage

func (*QueryScheduledCorksByIDRequest) ProtoMessage()

func (*QueryScheduledCorksByIDRequest) Reset

func (m *QueryScheduledCorksByIDRequest) Reset()

func (*QueryScheduledCorksByIDRequest) Size

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

func (*QueryScheduledCorksByIDRequest) String

func (*QueryScheduledCorksByIDRequest) Unmarshal

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

func (*QueryScheduledCorksByIDRequest) XXX_DiscardUnknown

func (m *QueryScheduledCorksByIDRequest) XXX_DiscardUnknown()

func (*QueryScheduledCorksByIDRequest) XXX_Marshal

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

func (*QueryScheduledCorksByIDRequest) XXX_Merge

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

func (*QueryScheduledCorksByIDRequest) XXX_Size

func (m *QueryScheduledCorksByIDRequest) XXX_Size() int

func (*QueryScheduledCorksByIDRequest) XXX_Unmarshal

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

type QueryScheduledCorksByIDResponse

type QueryScheduledCorksByIDResponse struct {
	Corks []*ScheduledCork `protobuf:"bytes,1,rep,name=corks,proto3" json:"corks,omitempty"`
}

QueryScheduledCorksByIDResponse

func (*QueryScheduledCorksByIDResponse) Descriptor

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

func (*QueryScheduledCorksByIDResponse) GetCorks

func (*QueryScheduledCorksByIDResponse) Marshal

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

func (*QueryScheduledCorksByIDResponse) MarshalTo

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

func (*QueryScheduledCorksByIDResponse) MarshalToSizedBuffer

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

func (*QueryScheduledCorksByIDResponse) ProtoMessage

func (*QueryScheduledCorksByIDResponse) ProtoMessage()

func (*QueryScheduledCorksByIDResponse) Reset

func (*QueryScheduledCorksByIDResponse) Size

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

func (*QueryScheduledCorksByIDResponse) String

func (*QueryScheduledCorksByIDResponse) Unmarshal

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

func (*QueryScheduledCorksByIDResponse) XXX_DiscardUnknown

func (m *QueryScheduledCorksByIDResponse) XXX_DiscardUnknown()

func (*QueryScheduledCorksByIDResponse) XXX_Marshal

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

func (*QueryScheduledCorksByIDResponse) XXX_Merge

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

func (*QueryScheduledCorksByIDResponse) XXX_Size

func (m *QueryScheduledCorksByIDResponse) XXX_Size() int

func (*QueryScheduledCorksByIDResponse) XXX_Unmarshal

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

type QueryScheduledCorksRequest

type QueryScheduledCorksRequest struct {
}

QueryScheduledCorksRequest

func (*QueryScheduledCorksRequest) Descriptor

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

func (*QueryScheduledCorksRequest) Marshal

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

func (*QueryScheduledCorksRequest) MarshalTo

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

func (*QueryScheduledCorksRequest) MarshalToSizedBuffer

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

func (*QueryScheduledCorksRequest) ProtoMessage

func (*QueryScheduledCorksRequest) ProtoMessage()

func (*QueryScheduledCorksRequest) Reset

func (m *QueryScheduledCorksRequest) Reset()

func (*QueryScheduledCorksRequest) Size

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

func (*QueryScheduledCorksRequest) String

func (m *QueryScheduledCorksRequest) String() string

func (*QueryScheduledCorksRequest) Unmarshal

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

func (*QueryScheduledCorksRequest) XXX_DiscardUnknown

func (m *QueryScheduledCorksRequest) XXX_DiscardUnknown()

func (*QueryScheduledCorksRequest) XXX_Marshal

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

func (*QueryScheduledCorksRequest) XXX_Merge

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

func (*QueryScheduledCorksRequest) XXX_Size

func (m *QueryScheduledCorksRequest) XXX_Size() int

func (*QueryScheduledCorksRequest) XXX_Unmarshal

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

type QueryScheduledCorksResponse

type QueryScheduledCorksResponse struct {
	Corks []*ScheduledCork `protobuf:"bytes,1,rep,name=corks,proto3" json:"corks,omitempty"`
}

QueryScheduledCorksResponse

func (*QueryScheduledCorksResponse) Descriptor

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

func (*QueryScheduledCorksResponse) GetCorks

func (m *QueryScheduledCorksResponse) GetCorks() []*ScheduledCork

func (*QueryScheduledCorksResponse) Marshal

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

func (*QueryScheduledCorksResponse) MarshalTo

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

func (*QueryScheduledCorksResponse) MarshalToSizedBuffer

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

func (*QueryScheduledCorksResponse) ProtoMessage

func (*QueryScheduledCorksResponse) ProtoMessage()

func (*QueryScheduledCorksResponse) Reset

func (m *QueryScheduledCorksResponse) Reset()

func (*QueryScheduledCorksResponse) Size

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

func (*QueryScheduledCorksResponse) String

func (m *QueryScheduledCorksResponse) String() string

func (*QueryScheduledCorksResponse) Unmarshal

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

func (*QueryScheduledCorksResponse) XXX_DiscardUnknown

func (m *QueryScheduledCorksResponse) XXX_DiscardUnknown()

func (*QueryScheduledCorksResponse) XXX_Marshal

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

func (*QueryScheduledCorksResponse) XXX_Merge

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

func (*QueryScheduledCorksResponse) XXX_Size

func (m *QueryScheduledCorksResponse) XXX_Size() int

func (*QueryScheduledCorksResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// QueryParams queries the allocation module parameters.
	QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// QueryCellarIDs returns all cellars and current tick ranges
	QueryCellarIDs(context.Context, *QueryCellarIDsRequest) (*QueryCellarIDsResponse, error)
	// QueryScheduledCorks returns all scheduled corks
	QueryScheduledCorks(context.Context, *QueryScheduledCorksRequest) (*QueryScheduledCorksResponse, error)
	// QueryScheduledBlockHeights returns all scheduled block heights
	QueryScheduledBlockHeights(context.Context, *QueryScheduledBlockHeightsRequest) (*QueryScheduledBlockHeightsResponse, error)
	// QueryScheduledCorks returns all scheduled corks at a block height
	QueryScheduledCorksByBlockHeight(context.Context, *QueryScheduledCorksByBlockHeightRequest) (*QueryScheduledCorksByBlockHeightResponse, error)
	// QueryScheduledCorks returns all scheduled corks with the specified ID
	QueryScheduledCorksByID(context.Context, *QueryScheduledCorksByIDRequest) (*QueryScheduledCorksByIDResponse, error)
	QueryCorkResult(context.Context, *QueryCorkResultRequest) (*QueryCorkResultResponse, error)
	QueryCorkResults(context.Context, *QueryCorkResultsRequest) (*QueryCorkResultsResponse, error)
}

QueryServer is the server API for Query service.

type RemoveManagedCellarIDsProposal

type RemoveManagedCellarIDsProposal struct {
	Title       string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CellarIds   *CellarIDSet `protobuf:"bytes,3,opt,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids,omitempty"`
}

func NewRemoveManagedCellarIDsProposal

func NewRemoveManagedCellarIDsProposal(title string, description string, cellarIds *CellarIDSet) *RemoveManagedCellarIDsProposal

func (*RemoveManagedCellarIDsProposal) Descriptor

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

func (*RemoveManagedCellarIDsProposal) GetCellarIds

func (m *RemoveManagedCellarIDsProposal) GetCellarIds() *CellarIDSet

func (*RemoveManagedCellarIDsProposal) GetDescription

func (m *RemoveManagedCellarIDsProposal) GetDescription() string

func (*RemoveManagedCellarIDsProposal) GetTitle

func (m *RemoveManagedCellarIDsProposal) GetTitle() string

func (*RemoveManagedCellarIDsProposal) Marshal

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

func (*RemoveManagedCellarIDsProposal) MarshalTo

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

func (*RemoveManagedCellarIDsProposal) MarshalToSizedBuffer

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

func (*RemoveManagedCellarIDsProposal) ProposalRoute

func (m *RemoveManagedCellarIDsProposal) ProposalRoute() string

func (*RemoveManagedCellarIDsProposal) ProposalType

func (m *RemoveManagedCellarIDsProposal) ProposalType() string

func (*RemoveManagedCellarIDsProposal) ProtoMessage

func (*RemoveManagedCellarIDsProposal) ProtoMessage()

func (*RemoveManagedCellarIDsProposal) Reset

func (m *RemoveManagedCellarIDsProposal) Reset()

func (*RemoveManagedCellarIDsProposal) Size

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

func (*RemoveManagedCellarIDsProposal) String

func (*RemoveManagedCellarIDsProposal) Unmarshal

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

func (*RemoveManagedCellarIDsProposal) ValidateBasic

func (m *RemoveManagedCellarIDsProposal) ValidateBasic() error

func (*RemoveManagedCellarIDsProposal) XXX_DiscardUnknown

func (m *RemoveManagedCellarIDsProposal) XXX_DiscardUnknown()

func (*RemoveManagedCellarIDsProposal) XXX_Marshal

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

func (*RemoveManagedCellarIDsProposal) XXX_Merge

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

func (*RemoveManagedCellarIDsProposal) XXX_Size

func (m *RemoveManagedCellarIDsProposal) XXX_Size() int

func (*RemoveManagedCellarIDsProposal) XXX_Unmarshal

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

type RemoveManagedCellarIDsProposalWithDeposit

type RemoveManagedCellarIDsProposalWithDeposit struct {
	Title       string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CellarIds   []string `protobuf:"bytes,3,rep,name=cellar_ids,json=cellarIds,proto3" json:"cellar_ids,omitempty"`
	Deposit     string   `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

RemoveManagedCellarIDsProposalWithDeposit is a specific definition for CLI commands

func (*RemoveManagedCellarIDsProposalWithDeposit) Descriptor

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

func (*RemoveManagedCellarIDsProposalWithDeposit) GetCellarIds

func (*RemoveManagedCellarIDsProposalWithDeposit) GetDeposit

func (*RemoveManagedCellarIDsProposalWithDeposit) GetDescription

func (*RemoveManagedCellarIDsProposalWithDeposit) GetTitle

func (*RemoveManagedCellarIDsProposalWithDeposit) Marshal

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

func (*RemoveManagedCellarIDsProposalWithDeposit) MarshalTo

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

func (*RemoveManagedCellarIDsProposalWithDeposit) MarshalToSizedBuffer

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

func (*RemoveManagedCellarIDsProposalWithDeposit) ProtoMessage

func (*RemoveManagedCellarIDsProposalWithDeposit) Reset

func (*RemoveManagedCellarIDsProposalWithDeposit) Size

func (*RemoveManagedCellarIDsProposalWithDeposit) String

func (*RemoveManagedCellarIDsProposalWithDeposit) Unmarshal

func (*RemoveManagedCellarIDsProposalWithDeposit) XXX_DiscardUnknown

func (m *RemoveManagedCellarIDsProposalWithDeposit) XXX_DiscardUnknown()

func (*RemoveManagedCellarIDsProposalWithDeposit) XXX_Marshal

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

func (*RemoveManagedCellarIDsProposalWithDeposit) XXX_Merge

func (*RemoveManagedCellarIDsProposalWithDeposit) XXX_Size

func (*RemoveManagedCellarIDsProposalWithDeposit) XXX_Unmarshal

type ScheduledCork

type ScheduledCork struct {
	Cork        *Cork  `protobuf:"bytes,1,opt,name=cork,proto3" json:"cork,omitempty"`
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Validator   string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
	Id          []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
}

func (*ScheduledCork) Descriptor

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

func (*ScheduledCork) GetBlockHeight

func (m *ScheduledCork) GetBlockHeight() uint64

func (*ScheduledCork) GetCork

func (m *ScheduledCork) GetCork() *Cork

func (*ScheduledCork) GetId

func (m *ScheduledCork) GetId() []byte

func (*ScheduledCork) GetValidator

func (m *ScheduledCork) GetValidator() string

func (*ScheduledCork) Marshal

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

func (*ScheduledCork) MarshalTo

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

func (*ScheduledCork) MarshalToSizedBuffer

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

func (*ScheduledCork) ProtoMessage

func (*ScheduledCork) ProtoMessage()

func (*ScheduledCork) Reset

func (m *ScheduledCork) Reset()

func (*ScheduledCork) Size

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

func (*ScheduledCork) String

func (m *ScheduledCork) String() string

func (*ScheduledCork) Unmarshal

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

func (*ScheduledCork) ValidateBasic

func (s *ScheduledCork) ValidateBasic() error

func (*ScheduledCork) XXX_DiscardUnknown

func (m *ScheduledCork) XXX_DiscardUnknown()

func (*ScheduledCork) XXX_Marshal

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

func (*ScheduledCork) XXX_Merge

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

func (*ScheduledCork) XXX_Size

func (m *ScheduledCork) XXX_Size() int

func (*ScheduledCork) XXX_Unmarshal

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

type ScheduledCorkProposal

type ScheduledCorkProposal struct {
	Title                 string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description           string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	BlockHeight           uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	TargetContractAddress string `` /* 126-byte string literal not displayed */
	//
	// The JSON representation of a ScheduleRequest defined in the Steward protos
	//
	// Example: The following is the JSON form of a ScheduleRequest containing a steward.v2.cellar_v1.TrustPosition
	// message, which maps to the `trustPosition(address)` function of the the V1 Cellar contract.
	//
	// {
	//   "cellar_id": "0x1234567890000000000000000000000000000000",
	//   "cellar_v1": {
	//     "trust_position": {
	//       "erc20_address": "0x1234567890000000000000000000000000000000"
	//     }
	//   },
	//   "block_height": 1000000
	// }
	//
	// You can use the Steward CLI to generate the required JSON rather than constructing it by hand https://github.com/peggyjv/steward
	ContractCallProtoJson string `` /* 128-byte string literal not displayed */
}

func NewScheduledCorkProposal

func NewScheduledCorkProposal(title string, description string, blockHeight uint64, targetContractAddress string, contractCallProtoJSON string) *ScheduledCorkProposal

func (*ScheduledCorkProposal) Descriptor

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

func (*ScheduledCorkProposal) GetBlockHeight

func (m *ScheduledCorkProposal) GetBlockHeight() uint64

func (*ScheduledCorkProposal) GetContractCallProtoJson

func (m *ScheduledCorkProposal) GetContractCallProtoJson() string

func (*ScheduledCorkProposal) GetDescription

func (m *ScheduledCorkProposal) GetDescription() string

func (*ScheduledCorkProposal) GetTargetContractAddress

func (m *ScheduledCorkProposal) GetTargetContractAddress() string

func (*ScheduledCorkProposal) GetTitle

func (m *ScheduledCorkProposal) GetTitle() string

func (*ScheduledCorkProposal) Marshal

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

func (*ScheduledCorkProposal) MarshalTo

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

func (*ScheduledCorkProposal) MarshalToSizedBuffer

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

func (*ScheduledCorkProposal) ProposalRoute

func (m *ScheduledCorkProposal) ProposalRoute() string

func (*ScheduledCorkProposal) ProposalType

func (m *ScheduledCorkProposal) ProposalType() string

func (*ScheduledCorkProposal) ProtoMessage

func (*ScheduledCorkProposal) ProtoMessage()

func (*ScheduledCorkProposal) Reset

func (m *ScheduledCorkProposal) Reset()

func (*ScheduledCorkProposal) Size

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

func (*ScheduledCorkProposal) String

func (m *ScheduledCorkProposal) String() string

func (*ScheduledCorkProposal) Unmarshal

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

func (*ScheduledCorkProposal) ValidateBasic

func (m *ScheduledCorkProposal) ValidateBasic() error

func (*ScheduledCorkProposal) XXX_DiscardUnknown

func (m *ScheduledCorkProposal) XXX_DiscardUnknown()

func (*ScheduledCorkProposal) XXX_Marshal

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

func (*ScheduledCorkProposal) XXX_Merge

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

func (*ScheduledCorkProposal) XXX_Size

func (m *ScheduledCorkProposal) XXX_Size() int

func (*ScheduledCorkProposal) XXX_Unmarshal

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

type ScheduledCorkProposalWithDeposit

type ScheduledCorkProposalWithDeposit struct {
	Title                 string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description           string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	BlockHeight           uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	TargetContractAddress string `` /* 126-byte string literal not displayed */
	ContractCallProtoJson string `` /* 128-byte string literal not displayed */
	Deposit               string `protobuf:"bytes,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

ScheduledCorkProposalWithDeposit is a specific definition for CLI commands

func (*ScheduledCorkProposalWithDeposit) Descriptor

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

func (*ScheduledCorkProposalWithDeposit) GetBlockHeight

func (m *ScheduledCorkProposalWithDeposit) GetBlockHeight() uint64

func (*ScheduledCorkProposalWithDeposit) GetContractCallProtoJson

func (m *ScheduledCorkProposalWithDeposit) GetContractCallProtoJson() string

func (*ScheduledCorkProposalWithDeposit) GetDeposit

func (m *ScheduledCorkProposalWithDeposit) GetDeposit() string

func (*ScheduledCorkProposalWithDeposit) GetDescription

func (m *ScheduledCorkProposalWithDeposit) GetDescription() string

func (*ScheduledCorkProposalWithDeposit) GetTargetContractAddress

func (m *ScheduledCorkProposalWithDeposit) GetTargetContractAddress() string

func (*ScheduledCorkProposalWithDeposit) GetTitle

func (*ScheduledCorkProposalWithDeposit) Marshal

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

func (*ScheduledCorkProposalWithDeposit) MarshalTo

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

func (*ScheduledCorkProposalWithDeposit) MarshalToSizedBuffer

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

func (*ScheduledCorkProposalWithDeposit) ProtoMessage

func (*ScheduledCorkProposalWithDeposit) ProtoMessage()

func (*ScheduledCorkProposalWithDeposit) Reset

func (*ScheduledCorkProposalWithDeposit) Size

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

func (*ScheduledCorkProposalWithDeposit) String

func (*ScheduledCorkProposalWithDeposit) Unmarshal

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

func (*ScheduledCorkProposalWithDeposit) XXX_DiscardUnknown

func (m *ScheduledCorkProposalWithDeposit) XXX_DiscardUnknown()

func (*ScheduledCorkProposalWithDeposit) XXX_Marshal

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

func (*ScheduledCorkProposalWithDeposit) XXX_Merge

func (*ScheduledCorkProposalWithDeposit) XXX_Size

func (m *ScheduledCorkProposalWithDeposit) XXX_Size() int

func (*ScheduledCorkProposalWithDeposit) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ScheduleCork

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryCellarIDs

func (*UnimplementedQueryServer) QueryCorkResult

func (*UnimplementedQueryServer) QueryCorkResults

func (*UnimplementedQueryServer) QueryParams

func (*UnimplementedQueryServer) QueryScheduledBlockHeights

func (*UnimplementedQueryServer) QueryScheduledCorks

func (*UnimplementedQueryServer) QueryScheduledCorksByID

Jump to

Keyboard shortcuts

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