govshuttlev1

package
v8.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_LendingMarketProposal_FullMethodName = "/canto.govshuttle.v1.Msg/LendingMarketProposal"
	Msg_TreasuryProposal_FullMethodName      = "/canto.govshuttle.v1.Msg/TreasuryProposal"
)
View Source
const (
	Query_Params_FullMethodName = "/canto.govshuttle.v1.Query/Params"
)

Variables

View Source
var File_canto_govshuttle_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_canto_govshuttle_v1_govshuttle_proto protoreflect.FileDescriptor
View Source
var File_canto_govshuttle_v1_query_proto protoreflect.FileDescriptor
View Source
var File_canto_govshuttle_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "canto.govshuttle.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LendingMarketProposal",
			Handler:    _Msg_LendingMarketProposal_Handler,
		},
		{
			MethodName: "TreasuryProposal",
			Handler:    _Msg_TreasuryProposal_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/govshuttle/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "canto.govshuttle.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "canto/govshuttle/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	Params           *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	PortContractAddr string  `protobuf:"bytes,2,opt,name=port_contract_addr,json=portContractAddr,proto3" json:"port_contract_addr,omitempty"` // this line is used by starport scaffolding # genesis/proto/state
	// contains filtered or unexported fields
}

GenesisState defines the govshuttle module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPortContractAddr

func (x *GenesisState) GetPortContractAddr() string

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

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"`
	// contains filtered or unexported fields
}

func (*LendingMarketMetadata) Descriptor deprecated

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

Deprecated: Use LendingMarketMetadata.ProtoReflect.Descriptor instead.

func (*LendingMarketMetadata) GetAccount

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

func (*LendingMarketMetadata) GetCalldatas

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

func (*LendingMarketMetadata) GetPropId

func (x *LendingMarketMetadata) GetPropId() uint64

func (*LendingMarketMetadata) GetSignatures

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

func (*LendingMarketMetadata) GetValues

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

func (*LendingMarketMetadata) ProtoMessage

func (*LendingMarketMetadata) ProtoMessage()

func (*LendingMarketMetadata) ProtoReflect

func (x *LendingMarketMetadata) ProtoReflect() protoreflect.Message

func (*LendingMarketMetadata) Reset

func (x *LendingMarketMetadata) Reset()

func (*LendingMarketMetadata) String

func (x *LendingMarketMetadata) String() string

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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use LendingMarketProposal.ProtoReflect.Descriptor instead.

func (*LendingMarketProposal) GetDescription

func (x *LendingMarketProposal) GetDescription() string

func (*LendingMarketProposal) GetMetadata

func (x *LendingMarketProposal) GetMetadata() *LendingMarketMetadata

func (*LendingMarketProposal) GetTitle

func (x *LendingMarketProposal) GetTitle() string

func (*LendingMarketProposal) ProtoMessage

func (*LendingMarketProposal) ProtoMessage()

func (*LendingMarketProposal) ProtoReflect

func (x *LendingMarketProposal) ProtoReflect() protoreflect.Message

func (*LendingMarketProposal) Reset

func (x *LendingMarketProposal) Reset()

func (*LendingMarketProposal) String

func (x *LendingMarketProposal) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) 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"` // NOTE: All parameters must be supplied.
	// contains filtered or unexported fields
}

func (*MsgLendingMarketProposal) Descriptor deprecated

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

Deprecated: Use MsgLendingMarketProposal.ProtoReflect.Descriptor instead.

func (*MsgLendingMarketProposal) GetAuthority

func (x *MsgLendingMarketProposal) GetAuthority() string

func (*MsgLendingMarketProposal) GetDescription

func (x *MsgLendingMarketProposal) GetDescription() string

func (*MsgLendingMarketProposal) GetMetadata

func (*MsgLendingMarketProposal) GetTitle

func (x *MsgLendingMarketProposal) GetTitle() string

func (*MsgLendingMarketProposal) ProtoMessage

func (*MsgLendingMarketProposal) ProtoMessage()

func (*MsgLendingMarketProposal) ProtoReflect

func (x *MsgLendingMarketProposal) ProtoReflect() protoreflect.Message

func (*MsgLendingMarketProposal) Reset

func (x *MsgLendingMarketProposal) Reset()

func (*MsgLendingMarketProposal) String

func (x *MsgLendingMarketProposal) String() string

type MsgLendingMarketProposalResponse

type MsgLendingMarketProposalResponse struct {
	// contains filtered or unexported fields
}

func (*MsgLendingMarketProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgLendingMarketProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgLendingMarketProposalResponse) ProtoMessage

func (*MsgLendingMarketProposalResponse) ProtoMessage()

func (*MsgLendingMarketProposalResponse) ProtoReflect

func (*MsgLendingMarketProposalResponse) Reset

func (*MsgLendingMarketProposalResponse) String

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)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

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"` // NOTE: All parameters must be supplied.
	// contains filtered or unexported fields
}

func (*MsgTreasuryProposal) Descriptor deprecated

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

Deprecated: Use MsgTreasuryProposal.ProtoReflect.Descriptor instead.

func (*MsgTreasuryProposal) GetAuthority

func (x *MsgTreasuryProposal) GetAuthority() string

func (*MsgTreasuryProposal) GetDescription

func (x *MsgTreasuryProposal) GetDescription() string

func (*MsgTreasuryProposal) GetMetadata

func (*MsgTreasuryProposal) GetTitle

func (x *MsgTreasuryProposal) GetTitle() string

func (*MsgTreasuryProposal) ProtoMessage

func (*MsgTreasuryProposal) ProtoMessage()

func (*MsgTreasuryProposal) ProtoReflect

func (x *MsgTreasuryProposal) ProtoReflect() protoreflect.Message

func (*MsgTreasuryProposal) Reset

func (x *MsgTreasuryProposal) Reset()

func (*MsgTreasuryProposal) String

func (x *MsgTreasuryProposal) String() string

type MsgTreasuryProposalResponse

type MsgTreasuryProposalResponse struct {
	// contains filtered or unexported fields
}

func (*MsgTreasuryProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgTreasuryProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgTreasuryProposalResponse) ProtoMessage

func (*MsgTreasuryProposalResponse) ProtoMessage()

func (*MsgTreasuryProposalResponse) ProtoReflect

func (*MsgTreasuryProposalResponse) Reset

func (x *MsgTreasuryProposalResponse) Reset()

func (*MsgTreasuryProposalResponse) String

func (x *MsgTreasuryProposalResponse) String() string

type Params

type Params struct {
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

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

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

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"`
	// contains filtered or unexported fields
}

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

func (*TreasuryProposal) Descriptor deprecated

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

Deprecated: Use TreasuryProposal.ProtoReflect.Descriptor instead.

func (*TreasuryProposal) GetDescription

func (x *TreasuryProposal) GetDescription() string

func (*TreasuryProposal) GetMetadata

func (x *TreasuryProposal) GetMetadata() *TreasuryProposalMetadata

func (*TreasuryProposal) GetTitle

func (x *TreasuryProposal) GetTitle() string

func (*TreasuryProposal) ProtoMessage

func (*TreasuryProposal) ProtoMessage()

func (*TreasuryProposal) ProtoReflect

func (x *TreasuryProposal) ProtoReflect() protoreflect.Message

func (*TreasuryProposal) Reset

func (x *TreasuryProposal) Reset()

func (*TreasuryProposal) String

func (x *TreasuryProposal) String() string

type TreasuryProposalMetadata

type TreasuryProposalMetadata struct {
	PropID    uint64 `protobuf:"varint,1,opt,name=PropID,proto3" json:"PropID,omitempty"`      // proposalID, for querying proposals in EVM side,
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // bytestring representing account addresses
	Amount    uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Denom     string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` // canto or note
	// contains filtered or unexported fields
}

func (*TreasuryProposalMetadata) Descriptor deprecated

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

Deprecated: Use TreasuryProposalMetadata.ProtoReflect.Descriptor instead.

func (*TreasuryProposalMetadata) GetAmount

func (x *TreasuryProposalMetadata) GetAmount() uint64

func (*TreasuryProposalMetadata) GetDenom

func (x *TreasuryProposalMetadata) GetDenom() string

func (*TreasuryProposalMetadata) GetPropID

func (x *TreasuryProposalMetadata) GetPropID() uint64

func (*TreasuryProposalMetadata) GetRecipient

func (x *TreasuryProposalMetadata) GetRecipient() string

func (*TreasuryProposalMetadata) ProtoMessage

func (*TreasuryProposalMetadata) ProtoMessage()

func (*TreasuryProposalMetadata) ProtoReflect

func (x *TreasuryProposalMetadata) ProtoReflect() protoreflect.Message

func (*TreasuryProposalMetadata) Reset

func (x *TreasuryProposalMetadata) Reset()

func (*TreasuryProposalMetadata) String

func (x *TreasuryProposalMetadata) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) TreasuryProposal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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