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
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Budget
- func (*Budget) Descriptor() ([]byte, []int)deprecated
- func (x *Budget) GetBudgetPerTranche() *v1beta1.Coin
- func (x *Budget) GetClaimedAmount() *v1beta1.Coin
- func (x *Budget) GetLastClaimedAt() *timestamppb.Timestamp
- func (x *Budget) GetPeriod() *durationpb.Duration
- func (x *Budget) GetRecipientAddress() string
- func (x *Budget) GetTranchesLeft() uint64
- func (*Budget) ProtoMessage()
- func (x *Budget) ProtoReflect() protoreflect.Message
- func (x *Budget) Reset()
- func (x *Budget) String() string
- type ContinuousFund
- func (*ContinuousFund) Descriptor() ([]byte, []int)deprecated
- func (x *ContinuousFund) GetExpiry() *timestamppb.Timestamp
- func (x *ContinuousFund) GetPercentage() string
- func (x *ContinuousFund) GetRecipient() string
- func (*ContinuousFund) ProtoMessage()
- func (x *ContinuousFund) ProtoReflect() protoreflect.Message
- func (x *ContinuousFund) Reset()
- func (x *ContinuousFund) String() string
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)deprecated
- func (x *Distribution) GetAmount() *DistributionAmount
- func (x *Distribution) GetTime() *timestamppb.Timestamp
- func (*Distribution) ProtoMessage()
- func (x *Distribution) ProtoReflect() protoreflect.Message
- func (x *Distribution) Reset()
- func (x *Distribution) String() string
- type DistributionAmount
- func (*DistributionAmount) Descriptor() ([]byte, []int)deprecated
- func (x *DistributionAmount) GetAmount() []*v1beta1.Coin
- func (*DistributionAmount) ProtoMessage()
- func (x *DistributionAmount) ProtoReflect() protoreflect.Message
- func (x *DistributionAmount) Reset()
- func (x *DistributionAmount) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetBudget() []*Budget
- func (x *GenesisState) GetContinuousFund() []*ContinuousFund
- func (x *GenesisState) GetDistributions() []*Distribution
- func (x *GenesisState) GetLastBalance() *DistributionAmount
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgCancelContinuousFund
- func (*MsgCancelContinuousFund) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancelContinuousFund) GetAuthority() string
- func (x *MsgCancelContinuousFund) GetRecipientAddress() string
- func (*MsgCancelContinuousFund) ProtoMessage()
- func (x *MsgCancelContinuousFund) ProtoReflect() protoreflect.Message
- func (x *MsgCancelContinuousFund) Reset()
- func (x *MsgCancelContinuousFund) String() string
- type MsgCancelContinuousFundResponse
- func (*MsgCancelContinuousFundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancelContinuousFundResponse) GetCanceledHeight() uint64
- func (x *MsgCancelContinuousFundResponse) GetCanceledTime() *timestamppb.Timestamp
- func (x *MsgCancelContinuousFundResponse) GetRecipientAddress() string
- func (x *MsgCancelContinuousFundResponse) GetWithdrawnAllocatedFund() []*v1beta1.Coin
- func (*MsgCancelContinuousFundResponse) ProtoMessage()
- func (x *MsgCancelContinuousFundResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCancelContinuousFundResponse) Reset()
- func (x *MsgCancelContinuousFundResponse) String() string
- type MsgClaimBudget
- type MsgClaimBudgetResponse
- func (*MsgClaimBudgetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimBudgetResponse) GetAmount() *v1beta1.Coin
- func (*MsgClaimBudgetResponse) ProtoMessage()
- func (x *MsgClaimBudgetResponse) ProtoReflect() protoreflect.Message
- func (x *MsgClaimBudgetResponse) Reset()
- func (x *MsgClaimBudgetResponse) String() string
- type MsgClient
- type MsgCommunityPoolSpend
- func (*MsgCommunityPoolSpend) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCommunityPoolSpend) GetAmount() []*v1beta1.Coin
- func (x *MsgCommunityPoolSpend) GetAuthority() string
- func (x *MsgCommunityPoolSpend) GetRecipient() string
- func (*MsgCommunityPoolSpend) ProtoMessage()
- func (x *MsgCommunityPoolSpend) ProtoReflect() protoreflect.Message
- func (x *MsgCommunityPoolSpend) Reset()
- func (x *MsgCommunityPoolSpend) String() string
- type MsgCommunityPoolSpendResponse
- func (*MsgCommunityPoolSpendResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgCommunityPoolSpendResponse) ProtoMessage()
- func (x *MsgCommunityPoolSpendResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCommunityPoolSpendResponse) Reset()
- func (x *MsgCommunityPoolSpendResponse) String() string
- type MsgCreateContinuousFund
- func (*MsgCreateContinuousFund) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateContinuousFund) GetAuthority() string
- func (x *MsgCreateContinuousFund) GetExpiry() *timestamppb.Timestamp
- func (x *MsgCreateContinuousFund) GetPercentage() string
- func (x *MsgCreateContinuousFund) GetRecipient() string
- func (*MsgCreateContinuousFund) ProtoMessage()
- func (x *MsgCreateContinuousFund) ProtoReflect() protoreflect.Message
- func (x *MsgCreateContinuousFund) Reset()
- func (x *MsgCreateContinuousFund) String() string
- type MsgCreateContinuousFundResponse
- func (*MsgCreateContinuousFundResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgCreateContinuousFundResponse) ProtoMessage()
- func (x *MsgCreateContinuousFundResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateContinuousFundResponse) Reset()
- func (x *MsgCreateContinuousFundResponse) String() string
- type MsgFundCommunityPool
- func (*MsgFundCommunityPool) Descriptor() ([]byte, []int)deprecated
- func (x *MsgFundCommunityPool) GetAmount() []*v1beta1.Coin
- func (x *MsgFundCommunityPool) GetDepositor() string
- func (*MsgFundCommunityPool) ProtoMessage()
- func (x *MsgFundCommunityPool) ProtoReflect() protoreflect.Message
- func (x *MsgFundCommunityPool) Reset()
- func (x *MsgFundCommunityPool) String() string
- type MsgFundCommunityPoolResponse
- func (*MsgFundCommunityPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgFundCommunityPoolResponse) ProtoMessage()
- func (x *MsgFundCommunityPoolResponse) ProtoReflect() protoreflect.Message
- func (x *MsgFundCommunityPoolResponse) Reset()
- func (x *MsgFundCommunityPoolResponse) String() string
- type MsgServer
- type MsgSubmitBudgetProposal
- func (*MsgSubmitBudgetProposal) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSubmitBudgetProposal) GetAuthority() string
- func (x *MsgSubmitBudgetProposal) GetBudgetPerTranche() *v1beta1.Coin
- func (x *MsgSubmitBudgetProposal) GetPeriod() *durationpb.Duration
- func (x *MsgSubmitBudgetProposal) GetRecipientAddress() string
- func (x *MsgSubmitBudgetProposal) GetStartTime() *timestamppb.Timestamp
- func (x *MsgSubmitBudgetProposal) GetTranches() uint64
- func (*MsgSubmitBudgetProposal) ProtoMessage()
- func (x *MsgSubmitBudgetProposal) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitBudgetProposal) Reset()
- func (x *MsgSubmitBudgetProposal) String() string
- type MsgSubmitBudgetProposalResponse
- func (*MsgSubmitBudgetProposalResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgSubmitBudgetProposalResponse) ProtoMessage()
- func (x *MsgSubmitBudgetProposalResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSubmitBudgetProposalResponse) Reset()
- func (x *MsgSubmitBudgetProposalResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgWithdrawContinuousFund
- func (*MsgWithdrawContinuousFund) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawContinuousFund) GetRecipientAddress() string
- func (*MsgWithdrawContinuousFund) ProtoMessage()
- func (x *MsgWithdrawContinuousFund) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawContinuousFund) Reset()
- func (x *MsgWithdrawContinuousFund) String() string
- type MsgWithdrawContinuousFundResponse
- func (*MsgWithdrawContinuousFundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawContinuousFundResponse) GetAmount() []*v1beta1.Coin
- func (*MsgWithdrawContinuousFundResponse) ProtoMessage()
- func (x *MsgWithdrawContinuousFundResponse) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawContinuousFundResponse) Reset()
- func (x *MsgWithdrawContinuousFundResponse) String() string
- type Params
- type QueryClient
- type QueryCommunityPoolRequest
- type QueryCommunityPoolResponse
- func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCommunityPoolResponse) GetPool() []*v1beta1.DecCoin
- func (*QueryCommunityPoolResponse) ProtoMessage()
- func (x *QueryCommunityPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCommunityPoolResponse) Reset()
- func (x *QueryCommunityPoolResponse) String() string
- type QueryServer
- type QueryUnclaimedBudgetRequest
- func (*QueryUnclaimedBudgetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUnclaimedBudgetRequest) GetAddress() string
- func (*QueryUnclaimedBudgetRequest) ProtoMessage()
- func (x *QueryUnclaimedBudgetRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUnclaimedBudgetRequest) Reset()
- func (x *QueryUnclaimedBudgetRequest) String() string
- type QueryUnclaimedBudgetResponse
- func (*QueryUnclaimedBudgetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUnclaimedBudgetResponse) GetClaimedAmount() *v1beta1.Coin
- func (x *QueryUnclaimedBudgetResponse) GetNextClaimFrom() *timestamppb.Timestamp
- func (x *QueryUnclaimedBudgetResponse) GetPeriod() *durationpb.Duration
- func (x *QueryUnclaimedBudgetResponse) GetTranchesLeft() uint64
- func (x *QueryUnclaimedBudgetResponse) GetUnclaimedAmount() *v1beta1.Coin
- func (*QueryUnclaimedBudgetResponse) ProtoMessage()
- func (x *QueryUnclaimedBudgetResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUnclaimedBudgetResponse) Reset()
- func (x *QueryUnclaimedBudgetResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CancelContinuousFund(context.Context, *MsgCancelContinuousFund) (*MsgCancelContinuousFundResponse, error)
- func (UnimplementedMsgServer) ClaimBudget(context.Context, *MsgClaimBudget) (*MsgClaimBudgetResponse, error)
- func (UnimplementedMsgServer) CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error)
- func (UnimplementedMsgServer) CreateContinuousFund(context.Context, *MsgCreateContinuousFund) (*MsgCreateContinuousFundResponse, error)
- func (UnimplementedMsgServer) FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error)
- func (UnimplementedMsgServer) SubmitBudgetProposal(context.Context, *MsgSubmitBudgetProposal) (*MsgSubmitBudgetProposalResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) WithdrawContinuousFund(context.Context, *MsgWithdrawContinuousFund) (*MsgWithdrawContinuousFundResponse, error)
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_CommunityPool_FullMethodName = "/cosmos.protocolpool.v1.Query/CommunityPool" Query_UnclaimedBudget_FullMethodName = "/cosmos.protocolpool.v1.Query/UnclaimedBudget" )
const ( Msg_FundCommunityPool_FullMethodName = "/cosmos.protocolpool.v1.Msg/FundCommunityPool" Msg_CommunityPoolSpend_FullMethodName = "/cosmos.protocolpool.v1.Msg/CommunityPoolSpend" Msg_SubmitBudgetProposal_FullMethodName = "/cosmos.protocolpool.v1.Msg/SubmitBudgetProposal" Msg_ClaimBudget_FullMethodName = "/cosmos.protocolpool.v1.Msg/ClaimBudget" Msg_CreateContinuousFund_FullMethodName = "/cosmos.protocolpool.v1.Msg/CreateContinuousFund" Msg_WithdrawContinuousFund_FullMethodName = "/cosmos.protocolpool.v1.Msg/WithdrawContinuousFund" Msg_CancelContinuousFund_FullMethodName = "/cosmos.protocolpool.v1.Msg/CancelContinuousFund" Msg_UpdateParams_FullMethodName = "/cosmos.protocolpool.v1.Msg/UpdateParams" )
Variables ¶
var File_cosmos_protocolpool_v1_genesis_proto protoreflect.FileDescriptor
var File_cosmos_protocolpool_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_protocolpool_v1_tx_proto protoreflect.FileDescriptor
var File_cosmos_protocolpool_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.protocolpool.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FundCommunityPool", Handler: _Msg_FundCommunityPool_Handler, }, { MethodName: "CommunityPoolSpend", Handler: _Msg_CommunityPoolSpend_Handler, }, { MethodName: "SubmitBudgetProposal", Handler: _Msg_SubmitBudgetProposal_Handler, }, { MethodName: "ClaimBudget", Handler: _Msg_ClaimBudget_Handler, }, { MethodName: "CreateContinuousFund", Handler: _Msg_CreateContinuousFund_Handler, }, { MethodName: "WithdrawContinuousFund", Handler: _Msg_WithdrawContinuousFund_Handler, }, { MethodName: "CancelContinuousFund", Handler: _Msg_CancelContinuousFund_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/protocolpool/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)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.protocolpool.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CommunityPool", Handler: _Query_CommunityPool_Handler, }, { MethodName: "UnclaimedBudget", Handler: _Query_UnclaimedBudget_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/protocolpool/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 Budget ¶
type Budget struct { // recipient_address is the address of the recipient who can claim the budget. RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // claimed_amount is the total amount claimed from the total budget amount requested. ClaimedAmount *v1beta1.Coin `protobuf:"bytes,2,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"` // last_claimed_at is the time when the budget was last successfully claimed or distributed. // It is used to track the next starting claim time for fund distribution. LastClaimedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_claimed_at,json=lastClaimedAt,proto3" json:"last_claimed_at,omitempty"` // tranches_left is the number of tranches left for the amount to be distributed. TranchesLeft uint64 `protobuf:"varint,4,opt,name=tranches_left,json=tranchesLeft,proto3" json:"tranches_left,omitempty"` // budget_per_tranche is the amount allocated per tranche. BudgetPerTranche *v1beta1.Coin `protobuf:"bytes,5,opt,name=budget_per_tranche,json=budgetPerTranche,proto3" json:"budget_per_tranche,omitempty"` // Period is the time interval(number of seconds) at which funds distribution should be performed. // For example, if a period is set to 3600, it represents an action that // should occur every hour (3600 seconds). Period *durationpb.Duration `protobuf:"bytes,6,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
Budget defines the fields of a budget proposal.
func (*Budget) Descriptor
deprecated
func (*Budget) GetBudgetPerTranche ¶
func (*Budget) GetClaimedAmount ¶
func (*Budget) GetLastClaimedAt ¶
func (x *Budget) GetLastClaimedAt() *timestamppb.Timestamp
func (*Budget) GetPeriod ¶
func (x *Budget) GetPeriod() *durationpb.Duration
func (*Budget) GetRecipientAddress ¶
func (*Budget) GetTranchesLeft ¶
func (*Budget) ProtoMessage ¶
func (*Budget) ProtoMessage()
func (*Budget) ProtoReflect ¶
func (x *Budget) ProtoReflect() protoreflect.Message
type ContinuousFund ¶
type ContinuousFund struct { // Recipient address of the account receiving funds. Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` // Percentage is the percentage of funds to be allocated from Community pool. Percentage string `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` // Optional, if expiry is set, removes the state object when expired. Expiry *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
ContinuousFund defines the fields of continuous fund proposal.
func (*ContinuousFund) Descriptor
deprecated
func (*ContinuousFund) Descriptor() ([]byte, []int)
Deprecated: Use ContinuousFund.ProtoReflect.Descriptor instead.
func (*ContinuousFund) GetExpiry ¶
func (x *ContinuousFund) GetExpiry() *timestamppb.Timestamp
func (*ContinuousFund) GetPercentage ¶
func (x *ContinuousFund) GetPercentage() string
func (*ContinuousFund) GetRecipient ¶
func (x *ContinuousFund) GetRecipient() string
func (*ContinuousFund) ProtoMessage ¶
func (*ContinuousFund) ProtoMessage()
func (*ContinuousFund) ProtoReflect ¶
func (x *ContinuousFund) ProtoReflect() protoreflect.Message
func (*ContinuousFund) Reset ¶
func (x *ContinuousFund) Reset()
func (*ContinuousFund) String ¶
func (x *ContinuousFund) String() string
type Distribution ¶
type Distribution struct { // time at which this distribution was made, in order to distribute to non-expired funds only // and funds that existed at that time. Because we don't distribute right away, we keep track // of the time of distribution. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // amount is the list of coins to be distributed. Amount *DistributionAmount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
Distribution time with amount tuple
func (*Distribution) Descriptor
deprecated
func (*Distribution) Descriptor() ([]byte, []int)
Deprecated: Use Distribution.ProtoReflect.Descriptor instead.
func (*Distribution) GetAmount ¶
func (x *Distribution) GetAmount() *DistributionAmount
func (*Distribution) GetTime ¶
func (x *Distribution) GetTime() *timestamppb.Timestamp
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) ProtoReflect ¶
func (x *Distribution) ProtoReflect() protoreflect.Message
func (*Distribution) Reset ¶
func (x *Distribution) Reset()
func (*Distribution) String ¶
func (x *Distribution) String() string
type DistributionAmount ¶
type DistributionAmount struct { Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
DistributionAmount is used to store the coins of periodic distributions.
func (*DistributionAmount) Descriptor
deprecated
func (*DistributionAmount) Descriptor() ([]byte, []int)
Deprecated: Use DistributionAmount.ProtoReflect.Descriptor instead.
func (*DistributionAmount) GetAmount ¶
func (x *DistributionAmount) GetAmount() []*v1beta1.Coin
func (*DistributionAmount) ProtoMessage ¶
func (*DistributionAmount) ProtoMessage()
func (*DistributionAmount) ProtoReflect ¶
func (x *DistributionAmount) ProtoReflect() protoreflect.Message
func (*DistributionAmount) Reset ¶
func (x *DistributionAmount) Reset()
func (*DistributionAmount) String ¶
func (x *DistributionAmount) String() string
type GenesisState ¶
type GenesisState struct { // ContinuousFund defines the continuous funds at genesis. ContinuousFund []*ContinuousFund `protobuf:"bytes,1,rep,name=continuous_fund,json=continuousFund,proto3" json:"continuous_fund,omitempty"` // Budget defines the budget proposals at genesis. Budget []*Budget `protobuf:"bytes,2,rep,name=budget,proto3" json:"budget,omitempty"` // last_balance contains the amount of tokens yet to be distributed, will be zero if // there are no funds to distribute. LastBalance *DistributionAmount `protobuf:"bytes,3,opt,name=last_balance,json=lastBalance,proto3" json:"last_balance,omitempty"` // distributions contains the list of distributions to be made to continuous // funds and budgets. It contains time in order to distribute to non-expired // funds only. Distributions []*Distribution `protobuf:"bytes,4,rep,name=distributions,proto3" json:"distributions,omitempty"` // params defines the parameters of this module, currently only contains the // denoms that will be used for continuous fund distributions. Params *Params `protobuf:"bytes,5,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
GenesisState defines the protocolpool module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetBudget ¶
func (x *GenesisState) GetBudget() []*Budget
func (*GenesisState) GetContinuousFund ¶
func (x *GenesisState) GetContinuousFund() []*ContinuousFund
func (*GenesisState) GetDistributions ¶
func (x *GenesisState) GetDistributions() []*Distribution
func (*GenesisState) GetLastBalance ¶
func (x *GenesisState) GetLastBalance() *DistributionAmount
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
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 MsgCancelContinuousFund ¶
type MsgCancelContinuousFund struct { // Authority is the account address of authority. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // RecipientAddress is the account address of recipient whose funds are to be cancelled. RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // contains filtered or unexported fields }
MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient.
func (*MsgCancelContinuousFund) Descriptor
deprecated
func (*MsgCancelContinuousFund) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelContinuousFund.ProtoReflect.Descriptor instead.
func (*MsgCancelContinuousFund) GetAuthority ¶
func (x *MsgCancelContinuousFund) GetAuthority() string
func (*MsgCancelContinuousFund) GetRecipientAddress ¶
func (x *MsgCancelContinuousFund) GetRecipientAddress() string
func (*MsgCancelContinuousFund) ProtoMessage ¶
func (*MsgCancelContinuousFund) ProtoMessage()
func (*MsgCancelContinuousFund) ProtoReflect ¶
func (x *MsgCancelContinuousFund) ProtoReflect() protoreflect.Message
func (*MsgCancelContinuousFund) Reset ¶
func (x *MsgCancelContinuousFund) Reset()
func (*MsgCancelContinuousFund) String ¶
func (x *MsgCancelContinuousFund) String() string
type MsgCancelContinuousFundResponse ¶
type MsgCancelContinuousFundResponse struct { // CanceledTime is the canceled time. CanceledTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=canceled_time,json=canceledTime,proto3" json:"canceled_time,omitempty"` // CanceledHeight defines the canceled block height. CanceledHeight uint64 `protobuf:"varint,2,opt,name=canceled_height,json=canceledHeight,proto3" json:"canceled_height,omitempty"` // RecipientAddress is the account address of recipient whose funds are cancelled. RecipientAddress string `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // withdrawnAllocatedFund represents the fund allocated to this recipient (if any) that have not been withdrawn yet, // before a cancellation request has been initiated. // It involves first withdrawing the funds and then canceling the request. WithdrawnAllocatedFund []*v1beta1.Coin `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
MsgCancelContinuousFundResponse defines the response to executing a MsgCancelContinuousFund message.
func (*MsgCancelContinuousFundResponse) Descriptor
deprecated
func (*MsgCancelContinuousFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelContinuousFundResponse.ProtoReflect.Descriptor instead.
func (*MsgCancelContinuousFundResponse) GetCanceledHeight ¶
func (x *MsgCancelContinuousFundResponse) GetCanceledHeight() uint64
func (*MsgCancelContinuousFundResponse) GetCanceledTime ¶
func (x *MsgCancelContinuousFundResponse) GetCanceledTime() *timestamppb.Timestamp
func (*MsgCancelContinuousFundResponse) GetRecipientAddress ¶
func (x *MsgCancelContinuousFundResponse) GetRecipientAddress() string
func (*MsgCancelContinuousFundResponse) GetWithdrawnAllocatedFund ¶
func (x *MsgCancelContinuousFundResponse) GetWithdrawnAllocatedFund() []*v1beta1.Coin
func (*MsgCancelContinuousFundResponse) ProtoMessage ¶
func (*MsgCancelContinuousFundResponse) ProtoMessage()
func (*MsgCancelContinuousFundResponse) ProtoReflect ¶
func (x *MsgCancelContinuousFundResponse) ProtoReflect() protoreflect.Message
func (*MsgCancelContinuousFundResponse) Reset ¶
func (x *MsgCancelContinuousFundResponse) Reset()
func (*MsgCancelContinuousFundResponse) String ¶
func (x *MsgCancelContinuousFundResponse) String() string
type MsgClaimBudget ¶
type MsgClaimBudget struct { RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // contains filtered or unexported fields }
MsgClaimBudget defines a message for claiming the distributed budget.
func (*MsgClaimBudget) Descriptor
deprecated
func (*MsgClaimBudget) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimBudget.ProtoReflect.Descriptor instead.
func (*MsgClaimBudget) GetRecipientAddress ¶
func (x *MsgClaimBudget) GetRecipientAddress() string
func (*MsgClaimBudget) ProtoMessage ¶
func (*MsgClaimBudget) ProtoMessage()
func (*MsgClaimBudget) ProtoReflect ¶
func (x *MsgClaimBudget) ProtoReflect() protoreflect.Message
func (*MsgClaimBudget) Reset ¶
func (x *MsgClaimBudget) Reset()
func (*MsgClaimBudget) String ¶
func (x *MsgClaimBudget) String() string
type MsgClaimBudgetResponse ¶
type MsgClaimBudgetResponse struct { Amount *v1beta1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgClaimBudgetResponse defines the response to executing a MsgClaimBudget message.
func (*MsgClaimBudgetResponse) Descriptor
deprecated
func (*MsgClaimBudgetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimBudgetResponse.ProtoReflect.Descriptor instead.
func (*MsgClaimBudgetResponse) GetAmount ¶
func (x *MsgClaimBudgetResponse) GetAmount() *v1beta1.Coin
func (*MsgClaimBudgetResponse) ProtoMessage ¶
func (*MsgClaimBudgetResponse) ProtoMessage()
func (*MsgClaimBudgetResponse) ProtoReflect ¶
func (x *MsgClaimBudgetResponse) ProtoReflect() protoreflect.Message
func (*MsgClaimBudgetResponse) Reset ¶
func (x *MsgClaimBudgetResponse) Reset()
func (*MsgClaimBudgetResponse) String ¶
func (x *MsgClaimBudgetResponse) String() string
type MsgClient ¶
type MsgClient interface { // FundCommunityPool defines a method to allow an account to directly // fund the community pool. FundCommunityPool(ctx context.Context, in *MsgFundCommunityPool, opts ...grpc.CallOption) (*MsgFundCommunityPoolResponse, error) // CommunityPoolSpend defines a governance operation for sending tokens from // the community pool in the x/protocolpool module to another account, which // could be the governance module itself. The authority is defined in the // keeper. CommunityPoolSpend(ctx context.Context, in *MsgCommunityPoolSpend, opts ...grpc.CallOption) (*MsgCommunityPoolSpendResponse, error) // SubmitBudgetProposal defines a method to set a budget proposal. SubmitBudgetProposal(ctx context.Context, in *MsgSubmitBudgetProposal, opts ...grpc.CallOption) (*MsgSubmitBudgetProposalResponse, error) // ClaimBudget defines a method to claim the distributed budget. ClaimBudget(ctx context.Context, in *MsgClaimBudget, opts ...grpc.CallOption) (*MsgClaimBudgetResponse, error) // CreateContinuousFund defines a method to add funds continuously. CreateContinuousFund(ctx context.Context, in *MsgCreateContinuousFund, opts ...grpc.CallOption) (*MsgCreateContinuousFundResponse, error) // WithdrawContinuousFund defines a method to withdraw continuous fund allocated. WithdrawContinuousFund(ctx context.Context, in *MsgWithdrawContinuousFund, opts ...grpc.CallOption) (*MsgWithdrawContinuousFundResponse, error) // CancelContinuousFund defines a method for cancelling continuous fund. CancelContinuousFund(ctx context.Context, in *MsgCancelContinuousFund, opts ...grpc.CallOption) (*MsgCancelContinuousFundResponse, error) // UpdateParams defines a governance operation for updating the x/protocolpool module parameters. // The authority is defined in the keeper. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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.
Msg defines the pool Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCommunityPoolSpend ¶
type MsgCommunityPoolSpend 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"` Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgCommunityPoolSpend defines a message for sending tokens from the community pool to another account. This message is typically executed via a governance proposal with the governance module being the executing authority.
func (*MsgCommunityPoolSpend) Descriptor
deprecated
func (*MsgCommunityPoolSpend) Descriptor() ([]byte, []int)
Deprecated: Use MsgCommunityPoolSpend.ProtoReflect.Descriptor instead.
func (*MsgCommunityPoolSpend) GetAmount ¶
func (x *MsgCommunityPoolSpend) GetAmount() []*v1beta1.Coin
func (*MsgCommunityPoolSpend) GetAuthority ¶
func (x *MsgCommunityPoolSpend) GetAuthority() string
func (*MsgCommunityPoolSpend) GetRecipient ¶
func (x *MsgCommunityPoolSpend) GetRecipient() string
func (*MsgCommunityPoolSpend) ProtoMessage ¶
func (*MsgCommunityPoolSpend) ProtoMessage()
func (*MsgCommunityPoolSpend) ProtoReflect ¶
func (x *MsgCommunityPoolSpend) ProtoReflect() protoreflect.Message
func (*MsgCommunityPoolSpend) Reset ¶
func (x *MsgCommunityPoolSpend) Reset()
func (*MsgCommunityPoolSpend) String ¶
func (x *MsgCommunityPoolSpend) String() string
type MsgCommunityPoolSpendResponse ¶
type MsgCommunityPoolSpendResponse struct {
// contains filtered or unexported fields
}
MsgCommunityPoolSpendResponse defines the response to executing a MsgCommunityPoolSpend message.
func (*MsgCommunityPoolSpendResponse) Descriptor
deprecated
func (*MsgCommunityPoolSpendResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCommunityPoolSpendResponse.ProtoReflect.Descriptor instead.
func (*MsgCommunityPoolSpendResponse) ProtoMessage ¶
func (*MsgCommunityPoolSpendResponse) ProtoMessage()
func (*MsgCommunityPoolSpendResponse) ProtoReflect ¶
func (x *MsgCommunityPoolSpendResponse) ProtoReflect() protoreflect.Message
func (*MsgCommunityPoolSpendResponse) Reset ¶
func (x *MsgCommunityPoolSpendResponse) Reset()
func (*MsgCommunityPoolSpendResponse) String ¶
func (x *MsgCommunityPoolSpendResponse) String() string
type MsgCreateContinuousFund ¶
type MsgCreateContinuousFund 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"` // Recipient address of the account receiving funds. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // Percentage is the percentage of funds to be allocated from Community pool. Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` // Optional, if expiry is set, removes the state object when expired. Expiry *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
MsgCreateContinuousFund defines a message for adding continuous funds.
func (*MsgCreateContinuousFund) Descriptor
deprecated
func (*MsgCreateContinuousFund) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateContinuousFund.ProtoReflect.Descriptor instead.
func (*MsgCreateContinuousFund) GetAuthority ¶
func (x *MsgCreateContinuousFund) GetAuthority() string
func (*MsgCreateContinuousFund) GetExpiry ¶
func (x *MsgCreateContinuousFund) GetExpiry() *timestamppb.Timestamp
func (*MsgCreateContinuousFund) GetPercentage ¶
func (x *MsgCreateContinuousFund) GetPercentage() string
func (*MsgCreateContinuousFund) GetRecipient ¶
func (x *MsgCreateContinuousFund) GetRecipient() string
func (*MsgCreateContinuousFund) ProtoMessage ¶
func (*MsgCreateContinuousFund) ProtoMessage()
func (*MsgCreateContinuousFund) ProtoReflect ¶
func (x *MsgCreateContinuousFund) ProtoReflect() protoreflect.Message
func (*MsgCreateContinuousFund) Reset ¶
func (x *MsgCreateContinuousFund) Reset()
func (*MsgCreateContinuousFund) String ¶
func (x *MsgCreateContinuousFund) String() string
type MsgCreateContinuousFundResponse ¶
type MsgCreateContinuousFundResponse struct {
// contains filtered or unexported fields
}
MsgCreateContinuousFundResponse defines the response to executing a MsgCreateContinuousFund message.
func (*MsgCreateContinuousFundResponse) Descriptor
deprecated
func (*MsgCreateContinuousFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateContinuousFundResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateContinuousFundResponse) ProtoMessage ¶
func (*MsgCreateContinuousFundResponse) ProtoMessage()
func (*MsgCreateContinuousFundResponse) ProtoReflect ¶
func (x *MsgCreateContinuousFundResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateContinuousFundResponse) Reset ¶
func (x *MsgCreateContinuousFundResponse) Reset()
func (*MsgCreateContinuousFundResponse) String ¶
func (x *MsgCreateContinuousFundResponse) String() string
type MsgFundCommunityPool ¶
type MsgFundCommunityPool struct { Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` // contains filtered or unexported fields }
MsgFundCommunityPool allows an account to directly fund the community pool.
func (*MsgFundCommunityPool) Descriptor
deprecated
func (*MsgFundCommunityPool) Descriptor() ([]byte, []int)
Deprecated: Use MsgFundCommunityPool.ProtoReflect.Descriptor instead.
func (*MsgFundCommunityPool) GetAmount ¶
func (x *MsgFundCommunityPool) GetAmount() []*v1beta1.Coin
func (*MsgFundCommunityPool) GetDepositor ¶
func (x *MsgFundCommunityPool) GetDepositor() string
func (*MsgFundCommunityPool) ProtoMessage ¶
func (*MsgFundCommunityPool) ProtoMessage()
func (*MsgFundCommunityPool) ProtoReflect ¶
func (x *MsgFundCommunityPool) ProtoReflect() protoreflect.Message
func (*MsgFundCommunityPool) Reset ¶
func (x *MsgFundCommunityPool) Reset()
func (*MsgFundCommunityPool) String ¶
func (x *MsgFundCommunityPool) String() string
type MsgFundCommunityPoolResponse ¶
type MsgFundCommunityPoolResponse struct {
// contains filtered or unexported fields
}
MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
func (*MsgFundCommunityPoolResponse) Descriptor
deprecated
func (*MsgFundCommunityPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgFundCommunityPoolResponse.ProtoReflect.Descriptor instead.
func (*MsgFundCommunityPoolResponse) ProtoMessage ¶
func (*MsgFundCommunityPoolResponse) ProtoMessage()
func (*MsgFundCommunityPoolResponse) ProtoReflect ¶
func (x *MsgFundCommunityPoolResponse) ProtoReflect() protoreflect.Message
func (*MsgFundCommunityPoolResponse) Reset ¶
func (x *MsgFundCommunityPoolResponse) Reset()
func (*MsgFundCommunityPoolResponse) String ¶
func (x *MsgFundCommunityPoolResponse) String() string
type MsgServer ¶
type MsgServer interface { // FundCommunityPool defines a method to allow an account to directly // fund the community pool. FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error) // CommunityPoolSpend defines a governance operation for sending tokens from // the community pool in the x/protocolpool module to another account, which // could be the governance module itself. The authority is defined in the // keeper. CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error) // SubmitBudgetProposal defines a method to set a budget proposal. SubmitBudgetProposal(context.Context, *MsgSubmitBudgetProposal) (*MsgSubmitBudgetProposalResponse, error) // ClaimBudget defines a method to claim the distributed budget. ClaimBudget(context.Context, *MsgClaimBudget) (*MsgClaimBudgetResponse, error) // CreateContinuousFund defines a method to add funds continuously. CreateContinuousFund(context.Context, *MsgCreateContinuousFund) (*MsgCreateContinuousFundResponse, error) // WithdrawContinuousFund defines a method to withdraw continuous fund allocated. WithdrawContinuousFund(context.Context, *MsgWithdrawContinuousFund) (*MsgWithdrawContinuousFundResponse, error) // CancelContinuousFund defines a method for cancelling continuous fund. CancelContinuousFund(context.Context, *MsgCancelContinuousFund) (*MsgCancelContinuousFundResponse, error) // UpdateParams defines a governance operation for updating the x/protocolpool module parameters. // The authority is defined in the keeper. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the pool Msg service.
type MsgSubmitBudgetProposal ¶
type MsgSubmitBudgetProposal 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"` // RecipientAddress is the address of the recipient who can claim the budget. RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // BudgetPerTranche is the amount allocated per tranche. BudgetPerTranche *v1beta1.Coin `protobuf:"bytes,3,opt,name=budget_per_tranche,json=budgetPerTranche,proto3" json:"budget_per_tranche,omitempty"` // StartTime is the time when the budget becomes claimable. // If StartTime is less than the current block time, proposal will not be accepted. StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Tranches is the number of times the budget amount is to be distributed. Tranches uint64 `protobuf:"varint,5,opt,name=tranches,proto3" json:"tranches,omitempty"` // Period is the time interval(number of seconds) at which funds distribution should be performed. // For example, if a period is set to 3600, it represents an action that // should occur every hour (3600 seconds). Period *durationpb.Duration `protobuf:"bytes,6,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
MsgSubmitBudgetProposal defines budget proposal type.
func (*MsgSubmitBudgetProposal) Descriptor
deprecated
func (*MsgSubmitBudgetProposal) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitBudgetProposal.ProtoReflect.Descriptor instead.
func (*MsgSubmitBudgetProposal) GetAuthority ¶
func (x *MsgSubmitBudgetProposal) GetAuthority() string
func (*MsgSubmitBudgetProposal) GetBudgetPerTranche ¶
func (x *MsgSubmitBudgetProposal) GetBudgetPerTranche() *v1beta1.Coin
func (*MsgSubmitBudgetProposal) GetPeriod ¶
func (x *MsgSubmitBudgetProposal) GetPeriod() *durationpb.Duration
func (*MsgSubmitBudgetProposal) GetRecipientAddress ¶
func (x *MsgSubmitBudgetProposal) GetRecipientAddress() string
func (*MsgSubmitBudgetProposal) GetStartTime ¶
func (x *MsgSubmitBudgetProposal) GetStartTime() *timestamppb.Timestamp
func (*MsgSubmitBudgetProposal) GetTranches ¶
func (x *MsgSubmitBudgetProposal) GetTranches() uint64
func (*MsgSubmitBudgetProposal) ProtoMessage ¶
func (*MsgSubmitBudgetProposal) ProtoMessage()
func (*MsgSubmitBudgetProposal) ProtoReflect ¶
func (x *MsgSubmitBudgetProposal) ProtoReflect() protoreflect.Message
func (*MsgSubmitBudgetProposal) Reset ¶
func (x *MsgSubmitBudgetProposal) Reset()
func (*MsgSubmitBudgetProposal) String ¶
func (x *MsgSubmitBudgetProposal) String() string
type MsgSubmitBudgetProposalResponse ¶
type MsgSubmitBudgetProposalResponse struct {
// contains filtered or unexported fields
}
MsgSubmitBudgetProposalResponse defines the response to executing a MsgSubmitBudgetProposal message.
func (*MsgSubmitBudgetProposalResponse) Descriptor
deprecated
func (*MsgSubmitBudgetProposalResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSubmitBudgetProposalResponse.ProtoReflect.Descriptor instead.
func (*MsgSubmitBudgetProposalResponse) ProtoMessage ¶
func (*MsgSubmitBudgetProposalResponse) ProtoMessage()
func (*MsgSubmitBudgetProposalResponse) ProtoReflect ¶
func (x *MsgSubmitBudgetProposalResponse) ProtoReflect() protoreflect.Message
func (*MsgSubmitBudgetProposalResponse) Reset ¶
func (x *MsgSubmitBudgetProposalResponse) Reset()
func (*MsgSubmitBudgetProposalResponse) String ¶
func (x *MsgSubmitBudgetProposalResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams 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"` // params defines the x/protocolpool parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type MsgWithdrawContinuousFund ¶
type MsgWithdrawContinuousFund struct { RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` // contains filtered or unexported fields }
MsgWithdrawContinuousFund defines a message for withdrawing the continuous fund allocated to it.
func (*MsgWithdrawContinuousFund) Descriptor
deprecated
func (*MsgWithdrawContinuousFund) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawContinuousFund.ProtoReflect.Descriptor instead.
func (*MsgWithdrawContinuousFund) GetRecipientAddress ¶
func (x *MsgWithdrawContinuousFund) GetRecipientAddress() string
func (*MsgWithdrawContinuousFund) ProtoMessage ¶
func (*MsgWithdrawContinuousFund) ProtoMessage()
func (*MsgWithdrawContinuousFund) ProtoReflect ¶
func (x *MsgWithdrawContinuousFund) ProtoReflect() protoreflect.Message
func (*MsgWithdrawContinuousFund) Reset ¶
func (x *MsgWithdrawContinuousFund) Reset()
func (*MsgWithdrawContinuousFund) String ¶
func (x *MsgWithdrawContinuousFund) String() string
type MsgWithdrawContinuousFundResponse ¶
type MsgWithdrawContinuousFundResponse struct { Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgWithdrawContinuousFundResponse defines the response to executing a MsgWithdrawContinuousFund message.
func (*MsgWithdrawContinuousFundResponse) Descriptor
deprecated
func (*MsgWithdrawContinuousFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawContinuousFundResponse.ProtoReflect.Descriptor instead.
func (*MsgWithdrawContinuousFundResponse) GetAmount ¶
func (x *MsgWithdrawContinuousFundResponse) GetAmount() []*v1beta1.Coin
func (*MsgWithdrawContinuousFundResponse) ProtoMessage ¶
func (*MsgWithdrawContinuousFundResponse) ProtoMessage()
func (*MsgWithdrawContinuousFundResponse) ProtoReflect ¶
func (x *MsgWithdrawContinuousFundResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawContinuousFundResponse) Reset ¶
func (x *MsgWithdrawContinuousFundResponse) Reset()
func (*MsgWithdrawContinuousFundResponse) String ¶
func (x *MsgWithdrawContinuousFundResponse) String() string
type Params ¶
type Params struct { // enabled_distribution_denoms lists the denoms that are allowed to be distributed. // This is to avoid spending time distributing undesired tokens to continuous funds and budgets. EnabledDistributionDenoms []string `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
Params defines the parameters for the protocolpool module.
func (*Params) Descriptor
deprecated
func (*Params) GetEnabledDistributionDenoms ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // CommunityPool queries the community pool coins. CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error) // UnclaimedBudget queries the remaining budget left to be claimed and it gives overall budget allocation view. UnclaimedBudget(ctx context.Context, in *QueryUnclaimedBudgetRequest, opts ...grpc.CallOption) (*QueryUnclaimedBudgetResponse, 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.
Query defines the gRPC querier service for community pool module.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCommunityPoolRequest ¶
type QueryCommunityPoolRequest struct {
// contains filtered or unexported fields
}
QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.
func (*QueryCommunityPoolRequest) Descriptor
deprecated
func (*QueryCommunityPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCommunityPoolRequest.ProtoReflect.Descriptor instead.
func (*QueryCommunityPoolRequest) ProtoMessage ¶
func (*QueryCommunityPoolRequest) ProtoMessage()
func (*QueryCommunityPoolRequest) ProtoReflect ¶
func (x *QueryCommunityPoolRequest) ProtoReflect() protoreflect.Message
func (*QueryCommunityPoolRequest) Reset ¶
func (x *QueryCommunityPoolRequest) Reset()
func (*QueryCommunityPoolRequest) String ¶
func (x *QueryCommunityPoolRequest) String() string
type QueryCommunityPoolResponse ¶
type QueryCommunityPoolResponse struct { // pool defines community pool's coins. Pool []*v1beta1.DecCoin `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.
func (*QueryCommunityPoolResponse) Descriptor
deprecated
func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCommunityPoolResponse.ProtoReflect.Descriptor instead.
func (*QueryCommunityPoolResponse) GetPool ¶
func (x *QueryCommunityPoolResponse) GetPool() []*v1beta1.DecCoin
func (*QueryCommunityPoolResponse) ProtoMessage ¶
func (*QueryCommunityPoolResponse) ProtoMessage()
func (*QueryCommunityPoolResponse) ProtoReflect ¶
func (x *QueryCommunityPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryCommunityPoolResponse) Reset ¶
func (x *QueryCommunityPoolResponse) Reset()
func (*QueryCommunityPoolResponse) String ¶
func (x *QueryCommunityPoolResponse) String() string
type QueryServer ¶
type QueryServer interface { // CommunityPool queries the community pool coins. CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error) // UnclaimedBudget queries the remaining budget left to be claimed and it gives overall budget allocation view. UnclaimedBudget(context.Context, *QueryUnclaimedBudgetRequest) (*QueryUnclaimedBudgetResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query defines the gRPC querier service for community pool module.
type QueryUnclaimedBudgetRequest ¶
type QueryUnclaimedBudgetRequest struct { // address is the recipient address to query unclaimed budget amount for. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
QueryUnclaimedBudgetRequest is the request type for the Query/UnclaimedBudgetRequest RPC method.
func (*QueryUnclaimedBudgetRequest) Descriptor
deprecated
func (*QueryUnclaimedBudgetRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryUnclaimedBudgetRequest.ProtoReflect.Descriptor instead.
func (*QueryUnclaimedBudgetRequest) GetAddress ¶
func (x *QueryUnclaimedBudgetRequest) GetAddress() string
func (*QueryUnclaimedBudgetRequest) ProtoMessage ¶
func (*QueryUnclaimedBudgetRequest) ProtoMessage()
func (*QueryUnclaimedBudgetRequest) ProtoReflect ¶
func (x *QueryUnclaimedBudgetRequest) ProtoReflect() protoreflect.Message
func (*QueryUnclaimedBudgetRequest) Reset ¶
func (x *QueryUnclaimedBudgetRequest) Reset()
func (*QueryUnclaimedBudgetRequest) String ¶
func (x *QueryUnclaimedBudgetRequest) String() string
type QueryUnclaimedBudgetResponse ¶
type QueryUnclaimedBudgetResponse struct { // claimed_amount is the budget amount already claimed by the recipient ClaimedAmount *v1beta1.Coin `protobuf:"bytes,1,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"` // unclaimed_amount is the remaining budget amount that is unclaimed by the recipient UnclaimedAmount *v1beta1.Coin `protobuf:"bytes,2,opt,name=unclaimed_amount,json=unclaimedAmount,proto3" json:"unclaimed_amount,omitempty"` // next_claim_from is the next starting claim time for fund distribution. // It represents the time when we can claim funds after the period time interval has passed. NextClaimFrom *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=next_claim_from,json=nextClaimFrom,proto3" json:"next_claim_from,omitempty"` // period is the time interval for fund distribution Period *durationpb.Duration `protobuf:"bytes,4,opt,name=period,proto3" json:"period,omitempty"` // tranches_left is the number of tranches left for the amount to be distributed TranchesLeft uint64 `protobuf:"varint,5,opt,name=tranches_left,json=tranchesLeft,proto3" json:"tranches_left,omitempty"` // contains filtered or unexported fields }
QueryUnclaimedBudgetResponse is the response type for the Query/UnclaimedBudget RPC method.
func (*QueryUnclaimedBudgetResponse) Descriptor
deprecated
func (*QueryUnclaimedBudgetResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryUnclaimedBudgetResponse.ProtoReflect.Descriptor instead.
func (*QueryUnclaimedBudgetResponse) GetClaimedAmount ¶
func (x *QueryUnclaimedBudgetResponse) GetClaimedAmount() *v1beta1.Coin
func (*QueryUnclaimedBudgetResponse) GetNextClaimFrom ¶
func (x *QueryUnclaimedBudgetResponse) GetNextClaimFrom() *timestamppb.Timestamp
func (*QueryUnclaimedBudgetResponse) GetPeriod ¶
func (x *QueryUnclaimedBudgetResponse) GetPeriod() *durationpb.Duration
func (*QueryUnclaimedBudgetResponse) GetTranchesLeft ¶
func (x *QueryUnclaimedBudgetResponse) GetTranchesLeft() uint64
func (*QueryUnclaimedBudgetResponse) GetUnclaimedAmount ¶
func (x *QueryUnclaimedBudgetResponse) GetUnclaimedAmount() *v1beta1.Coin
func (*QueryUnclaimedBudgetResponse) ProtoMessage ¶
func (*QueryUnclaimedBudgetResponse) ProtoMessage()
func (*QueryUnclaimedBudgetResponse) ProtoReflect ¶
func (x *QueryUnclaimedBudgetResponse) ProtoReflect() protoreflect.Message
func (*QueryUnclaimedBudgetResponse) Reset ¶
func (x *QueryUnclaimedBudgetResponse) Reset()
func (*QueryUnclaimedBudgetResponse) String ¶
func (x *QueryUnclaimedBudgetResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) CancelContinuousFund ¶
func (UnimplementedMsgServer) CancelContinuousFund(context.Context, *MsgCancelContinuousFund) (*MsgCancelContinuousFundResponse, error)
func (UnimplementedMsgServer) ClaimBudget ¶
func (UnimplementedMsgServer) ClaimBudget(context.Context, *MsgClaimBudget) (*MsgClaimBudgetResponse, error)
func (UnimplementedMsgServer) CommunityPoolSpend ¶
func (UnimplementedMsgServer) CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error)
func (UnimplementedMsgServer) CreateContinuousFund ¶
func (UnimplementedMsgServer) CreateContinuousFund(context.Context, *MsgCreateContinuousFund) (*MsgCreateContinuousFundResponse, error)
func (UnimplementedMsgServer) FundCommunityPool ¶
func (UnimplementedMsgServer) FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error)
func (UnimplementedMsgServer) SubmitBudgetProposal ¶
func (UnimplementedMsgServer) SubmitBudgetProposal(context.Context, *MsgSubmitBudgetProposal) (*MsgSubmitBudgetProposalResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) WithdrawContinuousFund ¶
func (UnimplementedMsgServer) WithdrawContinuousFund(context.Context, *MsgWithdrawContinuousFund) (*MsgWithdrawContinuousFundResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) CommunityPool ¶
func (UnimplementedQueryServer) CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
func (UnimplementedQueryServer) UnclaimedBudget ¶
func (UnimplementedQueryServer) UnclaimedBudget(context.Context, *QueryUnclaimedBudgetRequest) (*QueryUnclaimedBudgetResponse, error)
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.