types

package
v0.0.0-...-d858d49 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: LGPL-3.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "govshuttle"

	// StoreKey defines the primary module store key
	StoreKey = "shuttle"

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_govshuttle"
)
View Source
const (
	ProposalTypeLendingMarket string = "Lending-Market"
	ProposalTypeTreasury      string = "Treasury"
	MaxDescriptionLength      int    = 1000
	MaxTitleLength            int    = 140
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGovshuttle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGovshuttle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGovshuttle = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleAddress common.Address
	PortKey       = []byte("Port")
)
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 (
	Errgovshuttle = errorsmod.Register(ModuleName, 1100, "govshuttle error")
)

x/govshuttle module sentinel errors

View Source
var (

	// ModuleCdc references the global erc20 module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding.
	//
	// The actual codec used for serialization should be provided to modules/erc20 and
	// defined at the application level.
	ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewLendingMarketProposal

func NewLendingMarketProposal(title, description string, m *LendingMarketMetadata) govv1beta1.Content

func NewTreasuryProposal

func NewTreasuryProposal(title, description string, tm *TreasuryProposalMetadata) govv1beta1.Content

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 AccountKeeper

type AccountKeeper interface {
	//GetAccount(ctx sdk.Context, addr sdk.AccAddress)
	GetModuleAddress(moduleName string) sdk.AccAddress
	GetSequence(context.Context, sdk.AccAddress) (uint64, error)
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type ERC20Keeper

type ERC20Keeper interface {
	CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, method string, args ...interface{}) (*evmtypes.MsgEthereumTxResponse, error)

	CallEVMWithData(
		ctx sdk.Context,
		from common.Address,
		contract *common.Address,
		data []byte,
		commit bool,
	) (*evmtypes.MsgEthereumTxResponse, error)
}

Required for deploying Map-Contract/Caling setter methods of Map-Contract

type GenesisState

type GenesisState struct {
	Params           Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortContractAddr string `protobuf:"bytes,2,opt,name=port_contract_addr,json=portContractAddr,proto3" json:"port_contract_addr,omitempty"`
}

GenesisState defines the govshuttle module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortContractAddr

func (m *GenesisState) GetPortContractAddr() string

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 basic genesis state validation returning an error upon any failure.

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 GovKeeper

type GovKeeper interface {
	GetProposalID(ctx sdk.Context) (uint64, error)
}

type LendingMarketMetadata

type LendingMarketMetadata struct {
	Account    []string `protobuf:"bytes,1,rep,name=Account,proto3" json:"Account,omitempty"`
	PropId     uint64   `protobuf:"varint,2,opt,name=PropId,proto3" json:"PropId,omitempty"`
	Values     []uint64 `protobuf:"varint,3,rep,packed,name=values,proto3" json:"values,omitempty"`
	Calldatas  []string `protobuf:"bytes,4,rep,name=calldatas,proto3" json:"calldatas,omitempty"`
	Signatures []string `protobuf:"bytes,5,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func (*LendingMarketMetadata) Descriptor

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

func (*LendingMarketMetadata) GetAccount

func (m *LendingMarketMetadata) GetAccount() []string

func (*LendingMarketMetadata) GetCalldatas

func (m *LendingMarketMetadata) GetCalldatas() []string

func (*LendingMarketMetadata) GetPropId

func (m *LendingMarketMetadata) GetPropId() uint64

func (*LendingMarketMetadata) GetSignatures

func (m *LendingMarketMetadata) GetSignatures() []string

func (*LendingMarketMetadata) GetValues

func (m *LendingMarketMetadata) GetValues() []uint64

func (*LendingMarketMetadata) Marshal

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

func (*LendingMarketMetadata) MarshalTo

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

func (*LendingMarketMetadata) MarshalToSizedBuffer

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

func (*LendingMarketMetadata) ProtoMessage

func (*LendingMarketMetadata) ProtoMessage()

func (*LendingMarketMetadata) Reset

func (m *LendingMarketMetadata) Reset()

func (*LendingMarketMetadata) Size

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

func (*LendingMarketMetadata) String

func (m *LendingMarketMetadata) String() string

func (*LendingMarketMetadata) Unmarshal

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

func (*LendingMarketMetadata) XXX_DiscardUnknown

func (m *LendingMarketMetadata) XXX_DiscardUnknown()

func (*LendingMarketMetadata) XXX_Marshal

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

func (*LendingMarketMetadata) XXX_Merge

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

func (*LendingMarketMetadata) XXX_Size

func (m *LendingMarketMetadata) XXX_Size() int

func (*LendingMarketMetadata) XXX_Unmarshal

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

type LendingMarketProposal

type LendingMarketProposal struct {
	// title
	Title       string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    *LendingMarketMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Define this object so that the govshuttle.pb.go file is generate, implements govtypes.Content Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgLendingMarketProposal.

func (*LendingMarketProposal) Descriptor

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

func (*LendingMarketProposal) GetDescription

func (m *LendingMarketProposal) GetDescription() string

func (*LendingMarketProposal) GetMetadata

func (m *LendingMarketProposal) GetMetadata() *LendingMarketMetadata

func (*LendingMarketProposal) GetTitle

func (m *LendingMarketProposal) GetTitle() string

func (*LendingMarketProposal) Marshal

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

func (*LendingMarketProposal) MarshalTo

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

func (*LendingMarketProposal) MarshalToSizedBuffer

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

func (*LendingMarketProposal) ProposalRoute

func (*LendingMarketProposal) ProposalRoute() string

func (*LendingMarketProposal) ProposalType

func (*LendingMarketProposal) ProposalType() string

func (*LendingMarketProposal) ProtoMessage

func (*LendingMarketProposal) ProtoMessage()

func (*LendingMarketProposal) Reset

func (m *LendingMarketProposal) Reset()

func (*LendingMarketProposal) Size

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

func (*LendingMarketProposal) String

func (m *LendingMarketProposal) String() string

func (*LendingMarketProposal) Unmarshal

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

func (*LendingMarketProposal) ValidateBasic

func (lm *LendingMarketProposal) ValidateBasic() error

func (*LendingMarketProposal) XXX_DiscardUnknown

func (m *LendingMarketProposal) XXX_DiscardUnknown()

func (*LendingMarketProposal) XXX_Marshal

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

func (*LendingMarketProposal) XXX_Merge

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

func (*LendingMarketProposal) XXX_Size

func (m *LendingMarketProposal) XXX_Size() int

func (*LendingMarketProposal) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// LendingMarketProposal append the lending market proposal of the
	// x/govshuttle module.
	LendingMarketProposal(ctx context.Context, in *MsgLendingMarketProposal, opts ...grpc.CallOption) (*MsgLendingMarketProposalResponse, error)
	// TreasuryProposal append the treasury proposal of the x/govshuttle module.
	TreasuryProposal(ctx context.Context, in *MsgTreasuryProposal, opts ...grpc.CallOption) (*MsgTreasuryProposalResponse, 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 MsgLendingMarketProposal

type MsgLendingMarketProposal struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority   string                 `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Title       string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    *LendingMarketMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*MsgLendingMarketProposal) Descriptor

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

func (*MsgLendingMarketProposal) GetAuthority

func (m *MsgLendingMarketProposal) GetAuthority() string

func (*MsgLendingMarketProposal) GetDescription

func (m *MsgLendingMarketProposal) GetDescription() string

func (*MsgLendingMarketProposal) GetMetadata

func (*MsgLendingMarketProposal) GetTitle

func (m *MsgLendingMarketProposal) GetTitle() string

func (*MsgLendingMarketProposal) Marshal

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

func (*MsgLendingMarketProposal) MarshalTo

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

func (*MsgLendingMarketProposal) MarshalToSizedBuffer

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

func (*MsgLendingMarketProposal) ProtoMessage

func (*MsgLendingMarketProposal) ProtoMessage()

func (*MsgLendingMarketProposal) Reset

func (m *MsgLendingMarketProposal) Reset()

func (*MsgLendingMarketProposal) Size

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

func (*MsgLendingMarketProposal) String

func (m *MsgLendingMarketProposal) String() string

func (*MsgLendingMarketProposal) Unmarshal

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

func (*MsgLendingMarketProposal) XXX_DiscardUnknown

func (m *MsgLendingMarketProposal) XXX_DiscardUnknown()

func (*MsgLendingMarketProposal) XXX_Marshal

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

func (*MsgLendingMarketProposal) XXX_Merge

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

func (*MsgLendingMarketProposal) XXX_Size

func (m *MsgLendingMarketProposal) XXX_Size() int

func (*MsgLendingMarketProposal) XXX_Unmarshal

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

type MsgLendingMarketProposalResponse

type MsgLendingMarketProposalResponse struct {
}

func (*MsgLendingMarketProposalResponse) Descriptor

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

func (*MsgLendingMarketProposalResponse) Marshal

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

func (*MsgLendingMarketProposalResponse) MarshalTo

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

func (*MsgLendingMarketProposalResponse) MarshalToSizedBuffer

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

func (*MsgLendingMarketProposalResponse) ProtoMessage

func (*MsgLendingMarketProposalResponse) ProtoMessage()

func (*MsgLendingMarketProposalResponse) Reset

func (*MsgLendingMarketProposalResponse) Size

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

func (*MsgLendingMarketProposalResponse) String

func (*MsgLendingMarketProposalResponse) Unmarshal

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

func (*MsgLendingMarketProposalResponse) XXX_DiscardUnknown

func (m *MsgLendingMarketProposalResponse) XXX_DiscardUnknown()

func (*MsgLendingMarketProposalResponse) XXX_Marshal

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

func (*MsgLendingMarketProposalResponse) XXX_Merge

func (*MsgLendingMarketProposalResponse) XXX_Size

func (m *MsgLendingMarketProposalResponse) XXX_Size() int

func (*MsgLendingMarketProposalResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// LendingMarketProposal append the lending market proposal of the
	// x/govshuttle module.
	LendingMarketProposal(context.Context, *MsgLendingMarketProposal) (*MsgLendingMarketProposalResponse, error)
	// TreasuryProposal append the treasury proposal of the x/govshuttle module.
	TreasuryProposal(context.Context, *MsgTreasuryProposal) (*MsgTreasuryProposalResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTreasuryProposal

type MsgTreasuryProposal struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority   string                    `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Title       string                    `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string                    `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    *TreasuryProposalMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*MsgTreasuryProposal) Descriptor

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

func (*MsgTreasuryProposal) FromTreasuryToLendingMarket

func (tp *MsgTreasuryProposal) FromTreasuryToLendingMarket() *MsgLendingMarketProposal

func (*MsgTreasuryProposal) GetAuthority

func (m *MsgTreasuryProposal) GetAuthority() string

func (*MsgTreasuryProposal) GetDescription

func (m *MsgTreasuryProposal) GetDescription() string

func (*MsgTreasuryProposal) GetMetadata

func (*MsgTreasuryProposal) GetTitle

func (m *MsgTreasuryProposal) GetTitle() string

func (*MsgTreasuryProposal) Marshal

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

func (*MsgTreasuryProposal) MarshalTo

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

func (*MsgTreasuryProposal) MarshalToSizedBuffer

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

func (*MsgTreasuryProposal) ProtoMessage

func (*MsgTreasuryProposal) ProtoMessage()

func (*MsgTreasuryProposal) Reset

func (m *MsgTreasuryProposal) Reset()

func (*MsgTreasuryProposal) Size

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

func (*MsgTreasuryProposal) String

func (m *MsgTreasuryProposal) String() string

func (*MsgTreasuryProposal) Unmarshal

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

func (*MsgTreasuryProposal) XXX_DiscardUnknown

func (m *MsgTreasuryProposal) XXX_DiscardUnknown()

func (*MsgTreasuryProposal) XXX_Marshal

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

func (*MsgTreasuryProposal) XXX_Merge

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

func (*MsgTreasuryProposal) XXX_Size

func (m *MsgTreasuryProposal) XXX_Size() int

func (*MsgTreasuryProposal) XXX_Unmarshal

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

type MsgTreasuryProposalResponse

type MsgTreasuryProposalResponse struct {
}

func (*MsgTreasuryProposalResponse) Descriptor

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

func (*MsgTreasuryProposalResponse) Marshal

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

func (*MsgTreasuryProposalResponse) MarshalTo

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

func (*MsgTreasuryProposalResponse) MarshalToSizedBuffer

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

func (*MsgTreasuryProposalResponse) ProtoMessage

func (*MsgTreasuryProposalResponse) ProtoMessage()

func (*MsgTreasuryProposalResponse) Reset

func (m *MsgTreasuryProposalResponse) Reset()

func (*MsgTreasuryProposalResponse) Size

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

func (*MsgTreasuryProposalResponse) String

func (m *MsgTreasuryProposalResponse) String() string

func (*MsgTreasuryProposalResponse) Unmarshal

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

func (*MsgTreasuryProposalResponse) XXX_DiscardUnknown

func (m *MsgTreasuryProposalResponse) XXX_DiscardUnknown()

func (*MsgTreasuryProposalResponse) XXX_Marshal

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

func (*MsgTreasuryProposalResponse) XXX_Merge

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

func (*MsgTreasuryProposalResponse) XXX_Size

func (m *MsgTreasuryProposalResponse) XXX_Size() int

func (*MsgTreasuryProposalResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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 get the 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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of 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 {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is 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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type TreasuryProposal

type TreasuryProposal 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"`
	Metadata    *TreasuryProposalMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

treasury proposal type, Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgTreasuryProposal.

func (*TreasuryProposal) Descriptor

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

func (*TreasuryProposal) FromTreasuryToLendingMarket

func (tp *TreasuryProposal) FromTreasuryToLendingMarket() *LendingMarketProposal

func (*TreasuryProposal) GetDescription

func (m *TreasuryProposal) GetDescription() string

func (*TreasuryProposal) GetMetadata

func (m *TreasuryProposal) GetMetadata() *TreasuryProposalMetadata

func (*TreasuryProposal) GetTitle

func (m *TreasuryProposal) GetTitle() string

func (*TreasuryProposal) Marshal

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

func (*TreasuryProposal) MarshalTo

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

func (*TreasuryProposal) MarshalToSizedBuffer

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

func (*TreasuryProposal) ProposalRoute

func (*TreasuryProposal) ProposalRoute() string

func (*TreasuryProposal) ProposalType

func (*TreasuryProposal) ProposalType() string

func (*TreasuryProposal) ProtoMessage

func (*TreasuryProposal) ProtoMessage()

func (*TreasuryProposal) Reset

func (m *TreasuryProposal) Reset()

func (*TreasuryProposal) Size

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

func (*TreasuryProposal) String

func (m *TreasuryProposal) String() string

func (*TreasuryProposal) Unmarshal

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

func (*TreasuryProposal) ValidateBasic

func (tp *TreasuryProposal) ValidateBasic() error

func (*TreasuryProposal) XXX_DiscardUnknown

func (m *TreasuryProposal) XXX_DiscardUnknown()

func (*TreasuryProposal) XXX_Marshal

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

func (*TreasuryProposal) XXX_Merge

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

func (*TreasuryProposal) XXX_Size

func (m *TreasuryProposal) XXX_Size() int

func (*TreasuryProposal) XXX_Unmarshal

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

type TreasuryProposalMetadata

type TreasuryProposalMetadata struct {
	PropID    uint64 `protobuf:"varint,1,opt,name=PropID,proto3" json:"PropID,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom     string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*TreasuryProposalMetadata) Descriptor

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

func (*TreasuryProposalMetadata) GetAmount

func (m *TreasuryProposalMetadata) GetAmount() uint64

func (*TreasuryProposalMetadata) GetDenom

func (m *TreasuryProposalMetadata) GetDenom() string

func (*TreasuryProposalMetadata) GetPropID

func (m *TreasuryProposalMetadata) GetPropID() uint64

func (*TreasuryProposalMetadata) GetRecipient

func (m *TreasuryProposalMetadata) GetRecipient() string

func (*TreasuryProposalMetadata) Marshal

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

func (*TreasuryProposalMetadata) MarshalTo

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

func (*TreasuryProposalMetadata) MarshalToSizedBuffer

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

func (*TreasuryProposalMetadata) ProtoMessage

func (*TreasuryProposalMetadata) ProtoMessage()

func (*TreasuryProposalMetadata) Reset

func (m *TreasuryProposalMetadata) Reset()

func (*TreasuryProposalMetadata) Size

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

func (*TreasuryProposalMetadata) String

func (m *TreasuryProposalMetadata) String() string

func (*TreasuryProposalMetadata) Unmarshal

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

func (*TreasuryProposalMetadata) XXX_DiscardUnknown

func (m *TreasuryProposalMetadata) XXX_DiscardUnknown()

func (*TreasuryProposalMetadata) XXX_Marshal

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

func (*TreasuryProposalMetadata) XXX_Merge

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

func (*TreasuryProposalMetadata) XXX_Size

func (m *TreasuryProposalMetadata) XXX_Size() int

func (*TreasuryProposalMetadata) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) LendingMarketProposal

func (*UnimplementedMsgServer) TreasuryProposal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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