Documentation
¶
Overview ¶
Package injective_campaign_rpcpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterInjectiveCampaignRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInjectiveCampaignRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveCampaignRPCClient) error
- func RegisterInjectiveCampaignRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInjectiveCampaignRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveCampaignRPCServer) error
- func RegisterInjectiveCampaignRPCServer(s grpc.ServiceRegistrar, srv InjectiveCampaignRPCServer)
- type Campaign
- func (*Campaign) Descriptor() ([]byte, []int)deprecated
- func (x *Campaign) GetCampaignId() string
- func (x *Campaign) GetEndDate() int64
- func (x *Campaign) GetIsClaimable() bool
- func (x *Campaign) GetLastUpdated() int64
- func (x *Campaign) GetManagerContract() string
- func (x *Campaign) GetMarketId() string
- func (x *Campaign) GetRewardContract() string
- func (x *Campaign) GetRewards() []*Coin
- func (x *Campaign) GetRoundId() int32
- func (x *Campaign) GetStartDate() int64
- func (x *Campaign) GetSubaccountIdSuffix() string
- func (x *Campaign) GetTotalScore() string
- func (x *Campaign) GetType() string
- func (x *Campaign) GetUserClaimed() bool
- func (x *Campaign) GetUserScore() string
- func (x *Campaign) GetVersion() string
- func (*Campaign) ProtoMessage()
- func (x *Campaign) ProtoReflect() protoreflect.Message
- func (x *Campaign) Reset()
- func (x *Campaign) String() string
- type CampaignSummary
- func (*CampaignSummary) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignSummary) GetCampaignContract() string
- func (x *CampaignSummary) GetCampaignId() string
- func (x *CampaignSummary) GetEndTime() int64
- func (x *CampaignSummary) GetStartTime() int64
- func (x *CampaignSummary) GetTotalAverageTvl() string
- func (x *CampaignSummary) GetTotalGuildsCount() int32
- func (x *CampaignSummary) GetTotalMembersCount() int32
- func (x *CampaignSummary) GetTotalTvl() string
- func (x *CampaignSummary) GetTotalVolume() string
- func (x *CampaignSummary) GetUpdatedAt() int64
- func (*CampaignSummary) ProtoMessage()
- func (x *CampaignSummary) ProtoReflect() protoreflect.Message
- func (x *CampaignSummary) Reset()
- func (x *CampaignSummary) String() string
- type CampaignUser
- func (*CampaignUser) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignUser) GetAccountAddress() string
- func (x *CampaignUser) GetBlockHeight() int64
- func (x *CampaignUser) GetBlockTime() int64
- func (x *CampaignUser) GetCampaignId() string
- func (x *CampaignUser) GetContractUpdated() bool
- func (x *CampaignUser) GetGalxeUpdated() bool
- func (x *CampaignUser) GetMarketId() string
- func (x *CampaignUser) GetPurchasedAmount() string
- func (x *CampaignUser) GetRewardClaimed() bool
- func (x *CampaignUser) GetScore() string
- func (*CampaignUser) ProtoMessage()
- func (x *CampaignUser) ProtoReflect() protoreflect.Message
- func (x *CampaignUser) Reset()
- func (x *CampaignUser) String() string
- type CampaignV2
- func (*CampaignV2) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignV2) GetCampaignId() string
- func (x *CampaignV2) GetCreatedAt() int64
- func (x *CampaignV2) GetDescription() string
- func (x *CampaignV2) GetEndDate() int64
- func (x *CampaignV2) GetIsClaimable() bool
- func (x *CampaignV2) GetManagerContract() string
- func (x *CampaignV2) GetMarketId() string
- func (x *CampaignV2) GetName() string
- func (x *CampaignV2) GetRewardContract() string
- func (x *CampaignV2) GetRewards() []*Coin
- func (x *CampaignV2) GetRoundId() int32
- func (x *CampaignV2) GetStartDate() int64
- func (x *CampaignV2) GetSubaccountIdSuffix() string
- func (x *CampaignV2) GetTotalScore() string
- func (x *CampaignV2) GetType() string
- func (x *CampaignV2) GetUpdatedAt() int64
- func (x *CampaignV2) GetVersion() string
- func (*CampaignV2) ProtoMessage()
- func (x *CampaignV2) ProtoReflect() protoreflect.Message
- func (x *CampaignV2) Reset()
- func (x *CampaignV2) String() string
- type CampaignsRequest
- func (*CampaignsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignsRequest) GetAccountAddress() string
- func (x *CampaignsRequest) GetContractAddress() string
- func (x *CampaignsRequest) GetRoundId() int64
- func (x *CampaignsRequest) GetToRoundId() int32
- func (x *CampaignsRequest) GetType() string
- func (*CampaignsRequest) ProtoMessage()
- func (x *CampaignsRequest) ProtoReflect() protoreflect.Message
- func (x *CampaignsRequest) Reset()
- func (x *CampaignsRequest) String() string
- type CampaignsResponse
- func (*CampaignsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignsResponse) GetAccumulatedRewards() []*Coin
- func (x *CampaignsResponse) GetCampaigns() []*Campaign
- func (x *CampaignsResponse) GetRewardCount() int32
- func (*CampaignsResponse) ProtoMessage()
- func (x *CampaignsResponse) ProtoReflect() protoreflect.Message
- func (x *CampaignsResponse) Reset()
- func (x *CampaignsResponse) String() string
- type CampaignsV2Request
- func (*CampaignsV2Request) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignsV2Request) GetActive() bool
- func (x *CampaignsV2Request) GetCursor() string
- func (x *CampaignsV2Request) GetLimit() int32
- func (x *CampaignsV2Request) GetType() string
- func (*CampaignsV2Request) ProtoMessage()
- func (x *CampaignsV2Request) ProtoReflect() protoreflect.Message
- func (x *CampaignsV2Request) Reset()
- func (x *CampaignsV2Request) String() string
- type CampaignsV2Response
- func (*CampaignsV2Response) Descriptor() ([]byte, []int)deprecated
- func (x *CampaignsV2Response) GetCampaigns() []*CampaignV2
- func (x *CampaignsV2Response) GetCursor() string
- func (*CampaignsV2Response) ProtoMessage()
- func (x *CampaignsV2Response) ProtoReflect() protoreflect.Message
- func (x *CampaignsV2Response) Reset()
- func (x *CampaignsV2Response) String() string
- type Coin
- type GetGuildMemberRequest
- func (*GetGuildMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGuildMemberRequest) GetAddress() string
- func (x *GetGuildMemberRequest) GetCampaignContract() string
- func (*GetGuildMemberRequest) ProtoMessage()
- func (x *GetGuildMemberRequest) ProtoReflect() protoreflect.Message
- func (x *GetGuildMemberRequest) Reset()
- func (x *GetGuildMemberRequest) String() string
- type GetGuildMemberResponse
- func (*GetGuildMemberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGuildMemberResponse) GetInfo() *GuildMember
- func (*GetGuildMemberResponse) ProtoMessage()
- func (x *GetGuildMemberResponse) ProtoReflect() protoreflect.Message
- func (x *GetGuildMemberResponse) Reset()
- func (x *GetGuildMemberResponse) String() string
- type Guild
- func (*Guild) Descriptor() ([]byte, []int)deprecated
- func (x *Guild) GetCampaignContract() string
- func (x *Guild) GetCreatedAt() int64
- func (x *Guild) GetDescription() string
- func (x *Guild) GetGuildId() string
- func (x *Guild) GetIsActive() bool
- func (x *Guild) GetLogo() string
- func (x *Guild) GetMasterAddress() string
- func (x *Guild) GetMasterBalance() string
- func (x *Guild) GetName() string
- func (x *Guild) GetRankByTvl() int32
- func (x *Guild) GetRankByVolume() int32
- func (x *Guild) GetTotalTvl() string
- func (x *Guild) GetTvlScore() string
- func (x *Guild) GetUpdatedAt() int64
- func (x *Guild) GetVolumeScore() string
- func (*Guild) ProtoMessage()
- func (x *Guild) ProtoReflect() protoreflect.Message
- func (x *Guild) Reset()
- func (x *Guild) String() string
- type GuildMember
- func (*GuildMember) Descriptor() ([]byte, []int)deprecated
- func (x *GuildMember) GetAddress() string
- func (x *GuildMember) GetCampaignContract() string
- func (x *GuildMember) GetGuildId() string
- func (x *GuildMember) GetJoinedAt() int64
- func (x *GuildMember) GetTotalTvl() string
- func (x *GuildMember) GetTvlReward() []*Coin
- func (x *GuildMember) GetTvlScore() string
- func (x *GuildMember) GetTvlScorePercentage() float64
- func (x *GuildMember) GetVolumeReward() []*Coin
- func (x *GuildMember) GetVolumeScore() string
- func (x *GuildMember) GetVolumeScorePercentage() float64
- func (*GuildMember) ProtoMessage()
- func (x *GuildMember) ProtoReflect() protoreflect.Message
- func (x *GuildMember) Reset()
- func (x *GuildMember) String() string
- type InjectiveCampaignRPCClient
- type InjectiveCampaignRPCServer
- type ListGuildMembersRequest
- func (*ListGuildMembersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGuildMembersRequest) GetCampaignContract() string
- func (x *ListGuildMembersRequest) GetGuildId() string
- func (x *ListGuildMembersRequest) GetIncludeGuildInfo() bool
- func (x *ListGuildMembersRequest) GetLimit() int32
- func (x *ListGuildMembersRequest) GetSkip() int32
- func (x *ListGuildMembersRequest) GetSortBy() string
- func (*ListGuildMembersRequest) ProtoMessage()
- func (x *ListGuildMembersRequest) ProtoReflect() protoreflect.Message
- func (x *ListGuildMembersRequest) Reset()
- func (x *ListGuildMembersRequest) String() string
- type ListGuildMembersResponse
- func (*ListGuildMembersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGuildMembersResponse) GetGuildInfo() *Guild
- func (x *ListGuildMembersResponse) GetMembers() []*GuildMember
- func (x *ListGuildMembersResponse) GetPaging() *Paging
- func (*ListGuildMembersResponse) ProtoMessage()
- func (x *ListGuildMembersResponse) ProtoReflect() protoreflect.Message
- func (x *ListGuildMembersResponse) Reset()
- func (x *ListGuildMembersResponse) String() string
- type ListGuildsRequest
- func (*ListGuildsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGuildsRequest) GetCampaignContract() string
- func (x *ListGuildsRequest) GetLimit() int32
- func (x *ListGuildsRequest) GetSkip() int32
- func (x *ListGuildsRequest) GetSortBy() string
- func (*ListGuildsRequest) ProtoMessage()
- func (x *ListGuildsRequest) ProtoReflect() protoreflect.Message
- func (x *ListGuildsRequest) Reset()
- func (x *ListGuildsRequest) String() string
- type ListGuildsResponse
- func (*ListGuildsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGuildsResponse) GetCampaignSummary() *CampaignSummary
- func (x *ListGuildsResponse) GetGuilds() []*Guild
- func (x *ListGuildsResponse) GetPaging() *Paging
- func (x *ListGuildsResponse) GetUpdatedAt() int64
- func (*ListGuildsResponse) ProtoMessage()
- func (x *ListGuildsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGuildsResponse) Reset()
- func (x *ListGuildsResponse) String() string
- type Paging
- func (*Paging) Descriptor() ([]byte, []int)deprecated
- func (x *Paging) GetCountBySubaccount() int64
- func (x *Paging) GetFrom() int32
- func (x *Paging) GetNext() []string
- func (x *Paging) GetTo() int32
- func (x *Paging) GetTotal() int64
- func (*Paging) ProtoMessage()
- func (x *Paging) ProtoReflect() protoreflect.Message
- func (x *Paging) Reset()
- func (x *Paging) String() string
- type RankingRequest
- func (*RankingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RankingRequest) GetAccountAddress() string
- func (x *RankingRequest) GetCampaignId() string
- func (x *RankingRequest) GetContractAddress() string
- func (x *RankingRequest) GetLimit() int32
- func (x *RankingRequest) GetMarketId() string
- func (x *RankingRequest) GetSkip() uint64
- func (*RankingRequest) ProtoMessage()
- func (x *RankingRequest) ProtoReflect() protoreflect.Message
- func (x *RankingRequest) Reset()
- func (x *RankingRequest) String() string
- type RankingResponse
- func (*RankingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RankingResponse) GetCampaign() *Campaign
- func (x *RankingResponse) GetPaging() *Paging
- func (x *RankingResponse) GetUsers() []*CampaignUser
- func (*RankingResponse) ProtoMessage()
- func (x *RankingResponse) ProtoReflect() protoreflect.Message
- func (x *RankingResponse) Reset()
- func (x *RankingResponse) String() string
- type UnimplementedInjectiveCampaignRPCServer
- func (UnimplementedInjectiveCampaignRPCServer) Campaigns(context.Context, *CampaignsRequest) (*CampaignsResponse, error)
- func (UnimplementedInjectiveCampaignRPCServer) CampaignsV2(context.Context, *CampaignsV2Request) (*CampaignsV2Response, error)
- func (UnimplementedInjectiveCampaignRPCServer) GetGuildMember(context.Context, *GetGuildMemberRequest) (*GetGuildMemberResponse, error)
- func (UnimplementedInjectiveCampaignRPCServer) ListGuildMembers(context.Context, *ListGuildMembersRequest) (*ListGuildMembersResponse, error)
- func (UnimplementedInjectiveCampaignRPCServer) ListGuilds(context.Context, *ListGuildsRequest) (*ListGuildsResponse, error)
- func (UnimplementedInjectiveCampaignRPCServer) Ranking(context.Context, *RankingRequest) (*RankingResponse, error)
- type UnsafeInjectiveCampaignRPCServer
Constants ¶
This section is empty.
Variables ¶
var File_goadesign_goagen_injective_campaign_rpc_proto protoreflect.FileDescriptor
var InjectiveCampaignRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "injective_campaign_rpc.InjectiveCampaignRPC", HandlerType: (*InjectiveCampaignRPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ranking", Handler: _InjectiveCampaignRPC_Ranking_Handler, }, { MethodName: "Campaigns", Handler: _InjectiveCampaignRPC_Campaigns_Handler, }, { MethodName: "CampaignsV2", Handler: _InjectiveCampaignRPC_CampaignsV2_Handler, }, { MethodName: "ListGuilds", Handler: _InjectiveCampaignRPC_ListGuilds_Handler, }, { MethodName: "ListGuildMembers", Handler: _InjectiveCampaignRPC_ListGuildMembers_Handler, }, { MethodName: "GetGuildMember", Handler: _InjectiveCampaignRPC_GetGuildMember_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "goadesign_goagen_injective_campaign_rpc.proto", }
InjectiveCampaignRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveCampaignRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInjectiveCampaignRPCHandler ¶
func RegisterInjectiveCampaignRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInjectiveCampaignRPCHandler registers the http handlers for service InjectiveCampaignRPC to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInjectiveCampaignRPCHandlerClient ¶
func RegisterInjectiveCampaignRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveCampaignRPCClient) error
RegisterInjectiveCampaignRPCHandlerClient registers the http handlers for service InjectiveCampaignRPC to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InjectiveCampaignRPCClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InjectiveCampaignRPCClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InjectiveCampaignRPCClient" to call the correct interceptors.
func RegisterInjectiveCampaignRPCHandlerFromEndpoint ¶
func RegisterInjectiveCampaignRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInjectiveCampaignRPCHandlerFromEndpoint is same as RegisterInjectiveCampaignRPCHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInjectiveCampaignRPCHandlerServer ¶
func RegisterInjectiveCampaignRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveCampaignRPCServer) error
RegisterInjectiveCampaignRPCHandlerServer registers the http handlers for service InjectiveCampaignRPC to "mux". UnaryRPC :call InjectiveCampaignRPCServer 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 RegisterInjectiveCampaignRPCHandlerFromEndpoint instead.
func RegisterInjectiveCampaignRPCServer ¶
func RegisterInjectiveCampaignRPCServer(s grpc.ServiceRegistrar, srv InjectiveCampaignRPCServer)
Types ¶
type Campaign ¶
type Campaign struct { CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` // MarketId of the trading strategy MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Total campaign score TotalScore string `protobuf:"bytes,4,opt,name=total_score,json=totalScore,proto3" json:"total_score,omitempty"` // Last time the campaign score has been updated. LastUpdated int64 `protobuf:"zigzag64,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` // Campaign start date in UNIX millis. StartDate int64 `protobuf:"zigzag64,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // Campaign end date in UNIX millis. EndDate int64 `protobuf:"zigzag64,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // Whether the campaign rewards can be claimed. IsClaimable bool `protobuf:"varint,8,opt,name=is_claimable,json=isClaimable,proto3" json:"is_claimable,omitempty"` // Campaigns round ID RoundId int32 `protobuf:"zigzag32,9,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"` // Contract address that controls this campaign ManagerContract string `protobuf:"bytes,10,opt,name=manager_contract,json=managerContract,proto3" json:"manager_contract,omitempty"` // Reward tokens of this campaign Rewards []*Coin `protobuf:"bytes,11,rep,name=rewards,proto3" json:"rewards,omitempty"` // Total user score if accountAddress is passed, this is useful to estimate // account's reward UserScore string `protobuf:"bytes,12,opt,name=user_score,json=userScore,proto3" json:"user_score,omitempty"` // Return true if user claimed the reward of this campaign UserClaimed bool `protobuf:"varint,13,opt,name=user_claimed,json=userClaimed,proto3" json:"user_claimed,omitempty"` // Suffix of the subaccount that eligible for volume score SubaccountIdSuffix string `protobuf:"bytes,14,opt,name=subaccount_id_suffix,json=subaccountIdSuffix,proto3" json:"subaccount_id_suffix,omitempty"` // Contract that manage users reward RewardContract string `protobuf:"bytes,15,opt,name=reward_contract,json=rewardContract,proto3" json:"reward_contract,omitempty"` // Version of reward contract, UI use this to determine the message that need // to be sent Version string `protobuf:"bytes,16,opt,name=version,proto3" json:"version,omitempty"` // Campaign type Type string `protobuf:"bytes,17,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Campaign) Descriptor
deprecated
func (*Campaign) GetCampaignId ¶
func (*Campaign) GetEndDate ¶
func (*Campaign) GetIsClaimable ¶
func (*Campaign) GetLastUpdated ¶
func (*Campaign) GetManagerContract ¶ added in v1.51.0
func (*Campaign) GetMarketId ¶
func (*Campaign) GetRewardContract ¶ added in v1.51.0
func (*Campaign) GetRewards ¶
func (*Campaign) GetRoundId ¶
func (*Campaign) GetStartDate ¶
func (*Campaign) GetSubaccountIdSuffix ¶ added in v1.51.0
func (*Campaign) GetTotalScore ¶
func (*Campaign) GetUserClaimed ¶ added in v1.51.0
func (*Campaign) GetUserScore ¶
func (*Campaign) GetVersion ¶ added in v1.51.0
func (*Campaign) ProtoMessage ¶
func (*Campaign) ProtoMessage()
func (*Campaign) ProtoReflect ¶
func (x *Campaign) ProtoReflect() protoreflect.Message
type CampaignSummary ¶
type CampaignSummary struct { // Campaign id CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` // Guild manager contract address CampaignContract string `protobuf:"bytes,2,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // Number of guild in the campaign TotalGuildsCount int32 `protobuf:"zigzag32,3,opt,name=total_guilds_count,json=totalGuildsCount,proto3" json:"total_guilds_count,omitempty"` // Total TVL TotalTvl string `protobuf:"bytes,4,opt,name=total_tvl,json=totalTvl,proto3" json:"total_tvl,omitempty"` // Sum average TVL of all guilds TotalAverageTvl string `protobuf:"bytes,5,opt,name=total_average_tvl,json=totalAverageTvl,proto3" json:"total_average_tvl,omitempty"` // Total volume across all guilds (in market quote denom, often USDT) TotalVolume string `protobuf:"bytes,6,opt,name=total_volume,json=totalVolume,proto3" json:"total_volume,omitempty"` // Snapshot updated at time in UNIX milli UpdatedAt int64 `protobuf:"zigzag64,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Total member joined the campaign (include guild masters) TotalMembersCount int32 `protobuf:"zigzag32,8,opt,name=total_members_count,json=totalMembersCount,proto3" json:"total_members_count,omitempty"` // Campaign start time StartTime int64 `protobuf:"zigzag64,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Campaign end time EndTime int64 `protobuf:"zigzag64,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*CampaignSummary) Descriptor
deprecated
func (*CampaignSummary) Descriptor() ([]byte, []int)
Deprecated: Use CampaignSummary.ProtoReflect.Descriptor instead.
func (*CampaignSummary) GetCampaignContract ¶
func (x *CampaignSummary) GetCampaignContract() string
func (*CampaignSummary) GetCampaignId ¶
func (x *CampaignSummary) GetCampaignId() string
func (*CampaignSummary) GetEndTime ¶
func (x *CampaignSummary) GetEndTime() int64
func (*CampaignSummary) GetStartTime ¶
func (x *CampaignSummary) GetStartTime() int64
func (*CampaignSummary) GetTotalAverageTvl ¶
func (x *CampaignSummary) GetTotalAverageTvl() string
func (*CampaignSummary) GetTotalGuildsCount ¶
func (x *CampaignSummary) GetTotalGuildsCount() int32
func (*CampaignSummary) GetTotalMembersCount ¶
func (x *CampaignSummary) GetTotalMembersCount() int32
func (*CampaignSummary) GetTotalTvl ¶
func (x *CampaignSummary) GetTotalTvl() string
func (*CampaignSummary) GetTotalVolume ¶
func (x *CampaignSummary) GetTotalVolume() string
func (*CampaignSummary) GetUpdatedAt ¶
func (x *CampaignSummary) GetUpdatedAt() int64
func (*CampaignSummary) ProtoMessage ¶
func (*CampaignSummary) ProtoMessage()
func (*CampaignSummary) ProtoReflect ¶
func (x *CampaignSummary) ProtoReflect() protoreflect.Message
func (*CampaignSummary) Reset ¶
func (x *CampaignSummary) Reset()
func (*CampaignSummary) String ¶
func (x *CampaignSummary) String() string
type CampaignUser ¶
type CampaignUser struct { CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` // MarketId of the trading strategy MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Account address AccountAddress string `protobuf:"bytes,3,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // Campaign score Score string `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"` // Whether the distribution contract has been updated with the latest score ContractUpdated bool `protobuf:"varint,5,opt,name=contract_updated,json=contractUpdated,proto3" json:"contract_updated,omitempty"` // Block height when the score has been updated. BlockHeight int64 `protobuf:"zigzag64,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // Block time timestamp in UNIX millis. BlockTime int64 `protobuf:"zigzag64,7,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` // Amount swapped but only count base denom of the market PurchasedAmount string `protobuf:"bytes,8,opt,name=purchased_amount,json=purchasedAmount,proto3" json:"purchased_amount,omitempty"` // True if this user is updated to be in Galxe Campain list, only eligible // address are added GalxeUpdated bool `protobuf:"varint,9,opt,name=galxe_updated,json=galxeUpdated,proto3" json:"galxe_updated,omitempty"` // True if this user claimed the reward RewardClaimed bool `protobuf:"varint,10,opt,name=reward_claimed,json=rewardClaimed,proto3" json:"reward_claimed,omitempty"` // contains filtered or unexported fields }
func (*CampaignUser) Descriptor
deprecated
func (*CampaignUser) Descriptor() ([]byte, []int)
Deprecated: Use CampaignUser.ProtoReflect.Descriptor instead.
func (*CampaignUser) GetAccountAddress ¶
func (x *CampaignUser) GetAccountAddress() string
func (*CampaignUser) GetBlockHeight ¶
func (x *CampaignUser) GetBlockHeight() int64
func (*CampaignUser) GetBlockTime ¶
func (x *CampaignUser) GetBlockTime() int64
func (*CampaignUser) GetCampaignId ¶
func (x *CampaignUser) GetCampaignId() string
func (*CampaignUser) GetContractUpdated ¶
func (x *CampaignUser) GetContractUpdated() bool
func (*CampaignUser) GetGalxeUpdated ¶
func (x *CampaignUser) GetGalxeUpdated() bool
func (*CampaignUser) GetMarketId ¶
func (x *CampaignUser) GetMarketId() string
func (*CampaignUser) GetPurchasedAmount ¶
func (x *CampaignUser) GetPurchasedAmount() string
func (*CampaignUser) GetRewardClaimed ¶ added in v1.51.0
func (x *CampaignUser) GetRewardClaimed() bool
func (*CampaignUser) GetScore ¶
func (x *CampaignUser) GetScore() string
func (*CampaignUser) ProtoMessage ¶
func (*CampaignUser) ProtoMessage()
func (*CampaignUser) ProtoReflect ¶
func (x *CampaignUser) ProtoReflect() protoreflect.Message
func (*CampaignUser) Reset ¶
func (x *CampaignUser) Reset()
func (*CampaignUser) String ¶
func (x *CampaignUser) String() string
type CampaignV2 ¶ added in v1.51.0
type CampaignV2 struct { CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` // MarketId of the trading strategy MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Total campaign score TotalScore string `protobuf:"bytes,4,opt,name=total_score,json=totalScore,proto3" json:"total_score,omitempty"` // Campaign creation date in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Campaign last update date in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Campaign start date in UNIX millis. StartDate int64 `protobuf:"zigzag64,7,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // Campaign end date in UNIX millis. EndDate int64 `protobuf:"zigzag64,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // Whether the campaign rewards can be claimed. IsClaimable bool `protobuf:"varint,9,opt,name=is_claimable,json=isClaimable,proto3" json:"is_claimable,omitempty"` // Campaigns round ID RoundId int32 `protobuf:"zigzag32,10,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"` // Contract address that controls this campaign ManagerContract string `protobuf:"bytes,11,opt,name=manager_contract,json=managerContract,proto3" json:"manager_contract,omitempty"` // Reward tokens of this campaign Rewards []*Coin `protobuf:"bytes,12,rep,name=rewards,proto3" json:"rewards,omitempty"` // Suffix of the subaccount that eligible for volume score SubaccountIdSuffix string `protobuf:"bytes,13,opt,name=subaccount_id_suffix,json=subaccountIdSuffix,proto3" json:"subaccount_id_suffix,omitempty"` // Contract that manage users reward RewardContract string `protobuf:"bytes,14,opt,name=reward_contract,json=rewardContract,proto3" json:"reward_contract,omitempty"` // Campaign type Type string `protobuf:"bytes,15,opt,name=type,proto3" json:"type,omitempty"` // Version of reward contract, UI use this to determine the message that need // to be sent Version string `protobuf:"bytes,16,opt,name=version,proto3" json:"version,omitempty"` // Campaign name Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"` // Campaign description Description string `protobuf:"bytes,18,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CampaignV2) Descriptor
deprecated
added in
v1.51.0
func (*CampaignV2) Descriptor() ([]byte, []int)
Deprecated: Use CampaignV2.ProtoReflect.Descriptor instead.
func (*CampaignV2) GetCampaignId ¶ added in v1.51.0
func (x *CampaignV2) GetCampaignId() string
func (*CampaignV2) GetCreatedAt ¶ added in v1.51.0
func (x *CampaignV2) GetCreatedAt() int64
func (*CampaignV2) GetDescription ¶ added in v1.51.0
func (x *CampaignV2) GetDescription() string
func (*CampaignV2) GetEndDate ¶ added in v1.51.0
func (x *CampaignV2) GetEndDate() int64
func (*CampaignV2) GetIsClaimable ¶ added in v1.51.0
func (x *CampaignV2) GetIsClaimable() bool
func (*CampaignV2) GetManagerContract ¶ added in v1.51.0
func (x *CampaignV2) GetManagerContract() string
func (*CampaignV2) GetMarketId ¶ added in v1.51.0
func (x *CampaignV2) GetMarketId() string
func (*CampaignV2) GetName ¶ added in v1.51.0
func (x *CampaignV2) GetName() string
func (*CampaignV2) GetRewardContract ¶ added in v1.51.0
func (x *CampaignV2) GetRewardContract() string
func (*CampaignV2) GetRewards ¶ added in v1.51.0
func (x *CampaignV2) GetRewards() []*Coin
func (*CampaignV2) GetRoundId ¶ added in v1.51.0
func (x *CampaignV2) GetRoundId() int32
func (*CampaignV2) GetStartDate ¶ added in v1.51.0
func (x *CampaignV2) GetStartDate() int64
func (*CampaignV2) GetSubaccountIdSuffix ¶ added in v1.51.0
func (x *CampaignV2) GetSubaccountIdSuffix() string
func (*CampaignV2) GetTotalScore ¶ added in v1.51.0
func (x *CampaignV2) GetTotalScore() string
func (*CampaignV2) GetType ¶ added in v1.51.0
func (x *CampaignV2) GetType() string
func (*CampaignV2) GetUpdatedAt ¶ added in v1.51.0
func (x *CampaignV2) GetUpdatedAt() int64
func (*CampaignV2) GetVersion ¶ added in v1.51.0
func (x *CampaignV2) GetVersion() string
func (*CampaignV2) ProtoMessage ¶ added in v1.51.0
func (*CampaignV2) ProtoMessage()
func (*CampaignV2) ProtoReflect ¶ added in v1.51.0
func (x *CampaignV2) ProtoReflect() protoreflect.Message
func (*CampaignV2) Reset ¶ added in v1.51.0
func (x *CampaignV2) Reset()
func (*CampaignV2) String ¶ added in v1.51.0
func (x *CampaignV2) String() string
type CampaignsRequest ¶
type CampaignsRequest struct { // Round ID, if not specified, it will return latest roundId RoundId int64 `protobuf:"zigzag64,1,opt,name=round_id,json=roundId,proto3" json:"round_id,omitempty"` // Address of login account, if not specified it will return no user rewards AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // This will return campaign x where x.roundId <= toRoundId. Useful for listing // multiple rounds ToRoundId int32 `protobuf:"zigzag32,3,opt,name=to_round_id,json=toRoundId,proto3" json:"to_round_id,omitempty"` // Contract address that manages the round and reward ContractAddress string `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // Campaign type Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CampaignsRequest) Descriptor
deprecated
func (*CampaignsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CampaignsRequest.ProtoReflect.Descriptor instead.
func (*CampaignsRequest) GetAccountAddress ¶
func (x *CampaignsRequest) GetAccountAddress() string
func (*CampaignsRequest) GetContractAddress ¶ added in v1.51.0
func (x *CampaignsRequest) GetContractAddress() string
func (*CampaignsRequest) GetRoundId ¶
func (x *CampaignsRequest) GetRoundId() int64
func (*CampaignsRequest) GetToRoundId ¶
func (x *CampaignsRequest) GetToRoundId() int32
func (*CampaignsRequest) GetType ¶ added in v1.51.0
func (x *CampaignsRequest) GetType() string
func (*CampaignsRequest) ProtoMessage ¶
func (*CampaignsRequest) ProtoMessage()
func (*CampaignsRequest) ProtoReflect ¶
func (x *CampaignsRequest) ProtoReflect() protoreflect.Message
func (*CampaignsRequest) Reset ¶
func (x *CampaignsRequest) Reset()
func (*CampaignsRequest) String ¶
func (x *CampaignsRequest) String() string
type CampaignsResponse ¶
type CampaignsResponse struct { Campaigns []*Campaign `protobuf:"bytes,1,rep,name=campaigns,proto3" json:"campaigns,omitempty"` AccumulatedRewards []*Coin `protobuf:"bytes,2,rep,name=accumulated_rewards,json=accumulatedRewards,proto3" json:"accumulated_rewards,omitempty"` RewardCount int32 `protobuf:"zigzag32,3,opt,name=reward_count,json=rewardCount,proto3" json:"reward_count,omitempty"` // contains filtered or unexported fields }
func (*CampaignsResponse) Descriptor
deprecated
func (*CampaignsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CampaignsResponse.ProtoReflect.Descriptor instead.
func (*CampaignsResponse) GetAccumulatedRewards ¶ added in v1.51.0
func (x *CampaignsResponse) GetAccumulatedRewards() []*Coin
func (*CampaignsResponse) GetCampaigns ¶
func (x *CampaignsResponse) GetCampaigns() []*Campaign
func (*CampaignsResponse) GetRewardCount ¶ added in v1.51.0
func (x *CampaignsResponse) GetRewardCount() int32
func (*CampaignsResponse) ProtoMessage ¶
func (*CampaignsResponse) ProtoMessage()
func (*CampaignsResponse) ProtoReflect ¶
func (x *CampaignsResponse) ProtoReflect() protoreflect.Message
func (*CampaignsResponse) Reset ¶
func (x *CampaignsResponse) Reset()
func (*CampaignsResponse) String ¶
func (x *CampaignsResponse) String() string
type CampaignsV2Request ¶ added in v1.51.0
type CampaignsV2Request struct { // Campaign type Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Whether the campaign is active Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` // Limit number of returned campaigns Limit int32 `protobuf:"zigzag32,3,opt,name=limit,proto3" json:"limit,omitempty"` // Cursor for pagination Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*CampaignsV2Request) Descriptor
deprecated
added in
v1.51.0
func (*CampaignsV2Request) Descriptor() ([]byte, []int)
Deprecated: Use CampaignsV2Request.ProtoReflect.Descriptor instead.
func (*CampaignsV2Request) GetActive ¶ added in v1.51.0
func (x *CampaignsV2Request) GetActive() bool
func (*CampaignsV2Request) GetCursor ¶ added in v1.51.0
func (x *CampaignsV2Request) GetCursor() string
func (*CampaignsV2Request) GetLimit ¶ added in v1.51.0
func (x *CampaignsV2Request) GetLimit() int32
func (*CampaignsV2Request) GetType ¶ added in v1.51.0
func (x *CampaignsV2Request) GetType() string
func (*CampaignsV2Request) ProtoMessage ¶ added in v1.51.0
func (*CampaignsV2Request) ProtoMessage()
func (*CampaignsV2Request) ProtoReflect ¶ added in v1.51.0
func (x *CampaignsV2Request) ProtoReflect() protoreflect.Message
func (*CampaignsV2Request) Reset ¶ added in v1.51.0
func (x *CampaignsV2Request) Reset()
func (*CampaignsV2Request) String ¶ added in v1.51.0
func (x *CampaignsV2Request) String() string
type CampaignsV2Response ¶ added in v1.51.0
type CampaignsV2Response struct { Campaigns []*CampaignV2 `protobuf:"bytes,1,rep,name=campaigns,proto3" json:"campaigns,omitempty"` Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*CampaignsV2Response) Descriptor
deprecated
added in
v1.51.0
func (*CampaignsV2Response) Descriptor() ([]byte, []int)
Deprecated: Use CampaignsV2Response.ProtoReflect.Descriptor instead.
func (*CampaignsV2Response) GetCampaigns ¶ added in v1.51.0
func (x *CampaignsV2Response) GetCampaigns() []*CampaignV2
func (*CampaignsV2Response) GetCursor ¶ added in v1.51.0
func (x *CampaignsV2Response) GetCursor() string
func (*CampaignsV2Response) ProtoMessage ¶ added in v1.51.0
func (*CampaignsV2Response) ProtoMessage()
func (*CampaignsV2Response) ProtoReflect ¶ added in v1.51.0
func (x *CampaignsV2Response) ProtoReflect() protoreflect.Message
func (*CampaignsV2Response) Reset ¶ added in v1.51.0
func (x *CampaignsV2Response) Reset()
func (*CampaignsV2Response) String ¶ added in v1.51.0
func (x *CampaignsV2Response) String() string
type Coin ¶
type Coin struct { // Denom of the coin Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Coin) Descriptor
deprecated
func (*Coin) ProtoMessage ¶
func (*Coin) ProtoMessage()
func (*Coin) ProtoReflect ¶
func (x *Coin) ProtoReflect() protoreflect.Message
type GetGuildMemberRequest ¶
type GetGuildMemberRequest struct { // Campaign contract address CampaignContract string `protobuf:"bytes,1,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // User address Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetGuildMemberRequest) Descriptor
deprecated
func (*GetGuildMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGuildMemberRequest.ProtoReflect.Descriptor instead.
func (*GetGuildMemberRequest) GetAddress ¶
func (x *GetGuildMemberRequest) GetAddress() string
func (*GetGuildMemberRequest) GetCampaignContract ¶
func (x *GetGuildMemberRequest) GetCampaignContract() string
func (*GetGuildMemberRequest) ProtoMessage ¶
func (*GetGuildMemberRequest) ProtoMessage()
func (*GetGuildMemberRequest) ProtoReflect ¶
func (x *GetGuildMemberRequest) ProtoReflect() protoreflect.Message
func (*GetGuildMemberRequest) Reset ¶
func (x *GetGuildMemberRequest) Reset()
func (*GetGuildMemberRequest) String ¶
func (x *GetGuildMemberRequest) String() string
type GetGuildMemberResponse ¶
type GetGuildMemberResponse struct { Info *GuildMember `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetGuildMemberResponse) Descriptor
deprecated
func (*GetGuildMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGuildMemberResponse.ProtoReflect.Descriptor instead.
func (*GetGuildMemberResponse) GetInfo ¶
func (x *GetGuildMemberResponse) GetInfo() *GuildMember
func (*GetGuildMemberResponse) ProtoMessage ¶
func (*GetGuildMemberResponse) ProtoMessage()
func (*GetGuildMemberResponse) ProtoReflect ¶
func (x *GetGuildMemberResponse) ProtoReflect() protoreflect.Message
func (*GetGuildMemberResponse) Reset ¶
func (x *GetGuildMemberResponse) Reset()
func (*GetGuildMemberResponse) String ¶
func (x *GetGuildMemberResponse) String() string
type Guild ¶
type Guild struct { CampaignContract string `protobuf:"bytes,1,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // Guild ID GuildId string `protobuf:"bytes,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // Guild's master address MasterAddress string `protobuf:"bytes,3,opt,name=master_address,json=masterAddress,proto3" json:"master_address,omitempty"` // Guild creation date (in UNIX milliseconds) CreatedAt int64 `protobuf:"zigzag64,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Average TVL score TvlScore string `protobuf:"bytes,5,opt,name=tvl_score,json=tvlScore,proto3" json:"tvl_score,omitempty"` // Total volume score VolumeScore string `protobuf:"bytes,6,opt,name=volume_score,json=volumeScore,proto3" json:"volume_score,omitempty"` // guild's rank by volume RankByVolume int32 `protobuf:"zigzag32,7,opt,name=rank_by_volume,json=rankByVolume,proto3" json:"rank_by_volume,omitempty"` // guild's rank by TVL RankByTvl int32 `protobuf:"zigzag32,8,opt,name=rank_by_tvl,json=rankByTvl,proto3" json:"rank_by_tvl,omitempty"` // guild's logo, at the moment it supports numberic string (i.e '1', '2' and so // on) not a random URL because of front end limitation Logo string `protobuf:"bytes,9,opt,name=logo,proto3" json:"logo,omitempty"` // guild's total TVL TotalTvl string `protobuf:"bytes,10,opt,name=total_tvl,json=totalTvl,proto3" json:"total_tvl,omitempty"` // Snapshot updated at time in UNIX milli UpdatedAt int64 `protobuf:"zigzag64,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Guild name Name string `protobuf:"bytes,14,opt,name=name,proto3" json:"name,omitempty"` // Active status of guild, true when master total tvl meets the minimum // requirements IsActive bool `protobuf:"varint,13,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // Master balance (in current campaigns denom) MasterBalance string `protobuf:"bytes,15,opt,name=master_balance,json=masterBalance,proto3" json:"master_balance,omitempty"` // Guild description, set by master of the guild Description string `protobuf:"bytes,16,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Guild) Descriptor
deprecated
func (*Guild) GetCampaignContract ¶
func (*Guild) GetCreatedAt ¶
func (*Guild) GetDescription ¶
func (*Guild) GetGuildId ¶
func (*Guild) GetIsActive ¶
func (*Guild) GetMasterAddress ¶
func (*Guild) GetMasterBalance ¶
func (*Guild) GetRankByTvl ¶
func (*Guild) GetRankByVolume ¶
func (*Guild) GetTotalTvl ¶
func (*Guild) GetTvlScore ¶
func (*Guild) GetUpdatedAt ¶
func (*Guild) GetVolumeScore ¶
func (*Guild) ProtoMessage ¶
func (*Guild) ProtoMessage()
func (*Guild) ProtoReflect ¶
func (x *Guild) ProtoReflect() protoreflect.Message
type GuildMember ¶
type GuildMember struct { // Guild manager contract address CampaignContract string `protobuf:"bytes,1,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // Guild ID GuildId string `protobuf:"bytes,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // Guild member address Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // Guild enrollment date (in UNIX milliseconds) JoinedAt int64 `protobuf:"zigzag64,4,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` // Average TVL score TvlScore string `protobuf:"bytes,5,opt,name=tvl_score,json=tvlScore,proto3" json:"tvl_score,omitempty"` // Total volume score VolumeScore string `protobuf:"bytes,6,opt,name=volume_score,json=volumeScore,proto3" json:"volume_score,omitempty"` // Total volume score TotalTvl string `protobuf:"bytes,7,opt,name=total_tvl,json=totalTvl,proto3" json:"total_tvl,omitempty"` // Volume percentage out of guilds total volume VolumeScorePercentage float64 `` /* 128-byte string literal not displayed */ // TVL percentage out of guilds total TVL score TvlScorePercentage float64 `protobuf:"fixed64,9,opt,name=tvl_score_percentage,json=tvlScorePercentage,proto3" json:"tvl_score_percentage,omitempty"` // Rewards for volume campaign (amount+denom) TvlReward []*Coin `protobuf:"bytes,10,rep,name=tvl_reward,json=tvlReward,proto3" json:"tvl_reward,omitempty"` // Rewards for TVL campaign (amount+denom) VolumeReward []*Coin `protobuf:"bytes,11,rep,name=volume_reward,json=volumeReward,proto3" json:"volume_reward,omitempty"` // contains filtered or unexported fields }
func (*GuildMember) Descriptor
deprecated
func (*GuildMember) Descriptor() ([]byte, []int)
Deprecated: Use GuildMember.ProtoReflect.Descriptor instead.
func (*GuildMember) GetAddress ¶
func (x *GuildMember) GetAddress() string
func (*GuildMember) GetCampaignContract ¶
func (x *GuildMember) GetCampaignContract() string
func (*GuildMember) GetGuildId ¶
func (x *GuildMember) GetGuildId() string
func (*GuildMember) GetJoinedAt ¶
func (x *GuildMember) GetJoinedAt() int64
func (*GuildMember) GetTotalTvl ¶
func (x *GuildMember) GetTotalTvl() string
func (*GuildMember) GetTvlReward ¶
func (x *GuildMember) GetTvlReward() []*Coin
func (*GuildMember) GetTvlScore ¶
func (x *GuildMember) GetTvlScore() string
func (*GuildMember) GetTvlScorePercentage ¶
func (x *GuildMember) GetTvlScorePercentage() float64
func (*GuildMember) GetVolumeReward ¶
func (x *GuildMember) GetVolumeReward() []*Coin
func (*GuildMember) GetVolumeScore ¶
func (x *GuildMember) GetVolumeScore() string
func (*GuildMember) GetVolumeScorePercentage ¶
func (x *GuildMember) GetVolumeScorePercentage() float64
func (*GuildMember) ProtoMessage ¶
func (*GuildMember) ProtoMessage()
func (*GuildMember) ProtoReflect ¶
func (x *GuildMember) ProtoReflect() protoreflect.Message
func (*GuildMember) Reset ¶
func (x *GuildMember) Reset()
func (*GuildMember) String ¶
func (x *GuildMember) String() string
type InjectiveCampaignRPCClient ¶
type InjectiveCampaignRPCClient interface { // Lists all participants in campaign Ranking(ctx context.Context, in *RankingRequest, opts ...grpc.CallOption) (*RankingResponse, error) // List current round active campaigns Campaigns(ctx context.Context, in *CampaignsRequest, opts ...grpc.CallOption) (*CampaignsResponse, error) // List campaigns v2 CampaignsV2(ctx context.Context, in *CampaignsV2Request, opts ...grpc.CallOption) (*CampaignsV2Response, error) // List guilds by campaign ListGuilds(ctx context.Context, in *ListGuildsRequest, opts ...grpc.CallOption) (*ListGuildsResponse, error) // List guild members of given campaign and guildId ListGuildMembers(ctx context.Context, in *ListGuildMembersRequest, opts ...grpc.CallOption) (*ListGuildMembersResponse, error) // Get single member guild info GetGuildMember(ctx context.Context, in *GetGuildMemberRequest, opts ...grpc.CallOption) (*GetGuildMemberResponse, error) }
InjectiveCampaignRPCClient is the client API for InjectiveCampaignRPC 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 NewInjectiveCampaignRPCClient ¶
func NewInjectiveCampaignRPCClient(cc grpc.ClientConnInterface) InjectiveCampaignRPCClient
type InjectiveCampaignRPCServer ¶
type InjectiveCampaignRPCServer interface { // Lists all participants in campaign Ranking(context.Context, *RankingRequest) (*RankingResponse, error) // List current round active campaigns Campaigns(context.Context, *CampaignsRequest) (*CampaignsResponse, error) // List campaigns v2 CampaignsV2(context.Context, *CampaignsV2Request) (*CampaignsV2Response, error) // List guilds by campaign ListGuilds(context.Context, *ListGuildsRequest) (*ListGuildsResponse, error) // List guild members of given campaign and guildId ListGuildMembers(context.Context, *ListGuildMembersRequest) (*ListGuildMembersResponse, error) // Get single member guild info GetGuildMember(context.Context, *GetGuildMemberRequest) (*GetGuildMemberResponse, error) // contains filtered or unexported methods }
InjectiveCampaignRPCServer is the server API for InjectiveCampaignRPC service. All implementations must embed UnimplementedInjectiveCampaignRPCServer for forward compatibility
type ListGuildMembersRequest ¶
type ListGuildMembersRequest struct { // Campaign contract address CampaignContract string `protobuf:"bytes,1,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // ID of guild, inside campaign GuildId string `protobuf:"bytes,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // Limit number of returned guild members Limit int32 `protobuf:"zigzag32,3,opt,name=limit,proto3" json:"limit,omitempty"` // Skip some first guild members in the list for next page Skip int32 `protobuf:"zigzag32,4,opt,name=skip,proto3" json:"skip,omitempty"` // whether to include guild summary info, it's better to use this in terms of // latency, instead of sending 2 requests we just need once IncludeGuildInfo bool `protobuf:"varint,5,opt,name=include_guild_info,json=includeGuildInfo,proto3" json:"include_guild_info,omitempty"` // Sort by some metrics SortBy string `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // contains filtered or unexported fields }
func (*ListGuildMembersRequest) Descriptor
deprecated
func (*ListGuildMembersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGuildMembersRequest.ProtoReflect.Descriptor instead.
func (*ListGuildMembersRequest) GetCampaignContract ¶
func (x *ListGuildMembersRequest) GetCampaignContract() string
func (*ListGuildMembersRequest) GetGuildId ¶
func (x *ListGuildMembersRequest) GetGuildId() string
func (*ListGuildMembersRequest) GetIncludeGuildInfo ¶
func (x *ListGuildMembersRequest) GetIncludeGuildInfo() bool
func (*ListGuildMembersRequest) GetLimit ¶
func (x *ListGuildMembersRequest) GetLimit() int32
func (*ListGuildMembersRequest) GetSkip ¶
func (x *ListGuildMembersRequest) GetSkip() int32
func (*ListGuildMembersRequest) GetSortBy ¶
func (x *ListGuildMembersRequest) GetSortBy() string
func (*ListGuildMembersRequest) ProtoMessage ¶
func (*ListGuildMembersRequest) ProtoMessage()
func (*ListGuildMembersRequest) ProtoReflect ¶
func (x *ListGuildMembersRequest) ProtoReflect() protoreflect.Message
func (*ListGuildMembersRequest) Reset ¶
func (x *ListGuildMembersRequest) Reset()
func (*ListGuildMembersRequest) String ¶
func (x *ListGuildMembersRequest) String() string
type ListGuildMembersResponse ¶
type ListGuildMembersResponse struct { Members []*GuildMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` Paging *Paging `protobuf:"bytes,2,opt,name=paging,proto3" json:"paging,omitempty"` GuildInfo *Guild `protobuf:"bytes,3,opt,name=guild_info,json=guildInfo,proto3" json:"guild_info,omitempty"` // contains filtered or unexported fields }
func (*ListGuildMembersResponse) Descriptor
deprecated
func (*ListGuildMembersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGuildMembersResponse.ProtoReflect.Descriptor instead.
func (*ListGuildMembersResponse) GetGuildInfo ¶
func (x *ListGuildMembersResponse) GetGuildInfo() *Guild
func (*ListGuildMembersResponse) GetMembers ¶
func (x *ListGuildMembersResponse) GetMembers() []*GuildMember
func (*ListGuildMembersResponse) GetPaging ¶
func (x *ListGuildMembersResponse) GetPaging() *Paging
func (*ListGuildMembersResponse) ProtoMessage ¶
func (*ListGuildMembersResponse) ProtoMessage()
func (*ListGuildMembersResponse) ProtoReflect ¶
func (x *ListGuildMembersResponse) ProtoReflect() protoreflect.Message
func (*ListGuildMembersResponse) Reset ¶
func (x *ListGuildMembersResponse) Reset()
func (*ListGuildMembersResponse) String ¶
func (x *ListGuildMembersResponse) String() string
type ListGuildsRequest ¶
type ListGuildsRequest struct { // Campaign contract address CampaignContract string `protobuf:"bytes,1,opt,name=campaign_contract,json=campaignContract,proto3" json:"campaign_contract,omitempty"` // Limit number of returned guilds Limit int32 `protobuf:"zigzag32,2,opt,name=limit,proto3" json:"limit,omitempty"` // Skip some first guilds in the list for next page Skip int32 `protobuf:"zigzag32,3,opt,name=skip,proto3" json:"skip,omitempty"` // Sort by some metrics SortBy string `protobuf:"bytes,4,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // contains filtered or unexported fields }
func (*ListGuildsRequest) Descriptor
deprecated
func (*ListGuildsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGuildsRequest.ProtoReflect.Descriptor instead.
func (*ListGuildsRequest) GetCampaignContract ¶
func (x *ListGuildsRequest) GetCampaignContract() string
func (*ListGuildsRequest) GetLimit ¶
func (x *ListGuildsRequest) GetLimit() int32
func (*ListGuildsRequest) GetSkip ¶
func (x *ListGuildsRequest) GetSkip() int32
func (*ListGuildsRequest) GetSortBy ¶
func (x *ListGuildsRequest) GetSortBy() string
func (*ListGuildsRequest) ProtoMessage ¶
func (*ListGuildsRequest) ProtoMessage()
func (*ListGuildsRequest) ProtoReflect ¶
func (x *ListGuildsRequest) ProtoReflect() protoreflect.Message
func (*ListGuildsRequest) Reset ¶
func (x *ListGuildsRequest) Reset()
func (*ListGuildsRequest) String ¶
func (x *ListGuildsRequest) String() string
type ListGuildsResponse ¶
type ListGuildsResponse struct { Guilds []*Guild `protobuf:"bytes,1,rep,name=guilds,proto3" json:"guilds,omitempty"` Paging *Paging `protobuf:"bytes,2,opt,name=paging,proto3" json:"paging,omitempty"` // Snapshot updated at time in UNIX milli UpdatedAt int64 `protobuf:"zigzag64,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Summary of the campaign CampaignSummary *CampaignSummary `protobuf:"bytes,4,opt,name=campaign_summary,json=campaignSummary,proto3" json:"campaign_summary,omitempty"` // contains filtered or unexported fields }
func (*ListGuildsResponse) Descriptor
deprecated
func (*ListGuildsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGuildsResponse.ProtoReflect.Descriptor instead.
func (*ListGuildsResponse) GetCampaignSummary ¶
func (x *ListGuildsResponse) GetCampaignSummary() *CampaignSummary
func (*ListGuildsResponse) GetGuilds ¶
func (x *ListGuildsResponse) GetGuilds() []*Guild
func (*ListGuildsResponse) GetPaging ¶
func (x *ListGuildsResponse) GetPaging() *Paging
func (*ListGuildsResponse) GetUpdatedAt ¶
func (x *ListGuildsResponse) GetUpdatedAt() int64
func (*ListGuildsResponse) ProtoMessage ¶
func (*ListGuildsResponse) ProtoMessage()
func (*ListGuildsResponse) ProtoReflect ¶
func (x *ListGuildsResponse) ProtoReflect() protoreflect.Message
func (*ListGuildsResponse) Reset ¶
func (x *ListGuildsResponse) Reset()
func (*ListGuildsResponse) String ¶
func (x *ListGuildsResponse) String() string
type Paging ¶
type Paging struct { // total number of txs saved in database Total int64 `protobuf:"zigzag64,1,opt,name=total,proto3" json:"total,omitempty"` // can be either block height or index num From int32 `protobuf:"zigzag32,2,opt,name=from,proto3" json:"from,omitempty"` // can be either block height or index num To int32 `protobuf:"zigzag32,3,opt,name=to,proto3" json:"to,omitempty"` // count entries by subaccount, serving some places on helix CountBySubaccount int64 `protobuf:"zigzag64,4,opt,name=count_by_subaccount,json=countBySubaccount,proto3" json:"count_by_subaccount,omitempty"` // array of tokens to navigate to the next pages Next []string `protobuf:"bytes,5,rep,name=next,proto3" json:"next,omitempty"` // contains filtered or unexported fields }
Paging defines the structure for required params for handling pagination
func (*Paging) Descriptor
deprecated
func (*Paging) GetCountBySubaccount ¶
func (*Paging) ProtoMessage ¶
func (*Paging) ProtoMessage()
func (*Paging) ProtoReflect ¶
func (x *Paging) ProtoReflect() protoreflect.Message
type RankingRequest ¶
type RankingRequest struct { // Campaign ID CampaignId string `protobuf:"bytes,1,opt,name=campaign_id,json=campaignId,proto3" json:"campaign_id,omitempty"` // MarketId of the campaign MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Account address AccountAddress string `protobuf:"bytes,3,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` Limit int32 `protobuf:"zigzag32,4,opt,name=limit,proto3" json:"limit,omitempty"` Skip uint64 `protobuf:"varint,5,opt,name=skip,proto3" json:"skip,omitempty"` // Contract address that manages the round and reward ContractAddress string `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // contains filtered or unexported fields }
func (*RankingRequest) Descriptor
deprecated
func (*RankingRequest) Descriptor() ([]byte, []int)
Deprecated: Use RankingRequest.ProtoReflect.Descriptor instead.
func (*RankingRequest) GetAccountAddress ¶
func (x *RankingRequest) GetAccountAddress() string
func (*RankingRequest) GetCampaignId ¶
func (x *RankingRequest) GetCampaignId() string
func (*RankingRequest) GetContractAddress ¶ added in v1.51.0
func (x *RankingRequest) GetContractAddress() string
func (*RankingRequest) GetLimit ¶
func (x *RankingRequest) GetLimit() int32
func (*RankingRequest) GetMarketId ¶
func (x *RankingRequest) GetMarketId() string
func (*RankingRequest) GetSkip ¶
func (x *RankingRequest) GetSkip() uint64
func (*RankingRequest) ProtoMessage ¶
func (*RankingRequest) ProtoMessage()
func (*RankingRequest) ProtoReflect ¶
func (x *RankingRequest) ProtoReflect() protoreflect.Message
func (*RankingRequest) Reset ¶
func (x *RankingRequest) Reset()
func (*RankingRequest) String ¶
func (x *RankingRequest) String() string
type RankingResponse ¶
type RankingResponse struct { // The campaign information Campaign *Campaign `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign,omitempty"` // The campaign users Users []*CampaignUser `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` Paging *Paging `protobuf:"bytes,3,opt,name=paging,proto3" json:"paging,omitempty"` // contains filtered or unexported fields }
func (*RankingResponse) Descriptor
deprecated
func (*RankingResponse) Descriptor() ([]byte, []int)
Deprecated: Use RankingResponse.ProtoReflect.Descriptor instead.
func (*RankingResponse) GetCampaign ¶
func (x *RankingResponse) GetCampaign() *Campaign
func (*RankingResponse) GetPaging ¶
func (x *RankingResponse) GetPaging() *Paging
func (*RankingResponse) GetUsers ¶
func (x *RankingResponse) GetUsers() []*CampaignUser
func (*RankingResponse) ProtoMessage ¶
func (*RankingResponse) ProtoMessage()
func (*RankingResponse) ProtoReflect ¶
func (x *RankingResponse) ProtoReflect() protoreflect.Message
func (*RankingResponse) Reset ¶
func (x *RankingResponse) Reset()
func (*RankingResponse) String ¶
func (x *RankingResponse) String() string
type UnimplementedInjectiveCampaignRPCServer ¶
type UnimplementedInjectiveCampaignRPCServer struct { }
UnimplementedInjectiveCampaignRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedInjectiveCampaignRPCServer) Campaigns ¶
func (UnimplementedInjectiveCampaignRPCServer) Campaigns(context.Context, *CampaignsRequest) (*CampaignsResponse, error)
func (UnimplementedInjectiveCampaignRPCServer) CampaignsV2 ¶ added in v1.51.0
func (UnimplementedInjectiveCampaignRPCServer) CampaignsV2(context.Context, *CampaignsV2Request) (*CampaignsV2Response, error)
func (UnimplementedInjectiveCampaignRPCServer) GetGuildMember ¶
func (UnimplementedInjectiveCampaignRPCServer) GetGuildMember(context.Context, *GetGuildMemberRequest) (*GetGuildMemberResponse, error)
func (UnimplementedInjectiveCampaignRPCServer) ListGuildMembers ¶
func (UnimplementedInjectiveCampaignRPCServer) ListGuildMembers(context.Context, *ListGuildMembersRequest) (*ListGuildMembersResponse, error)
func (UnimplementedInjectiveCampaignRPCServer) ListGuilds ¶
func (UnimplementedInjectiveCampaignRPCServer) ListGuilds(context.Context, *ListGuildsRequest) (*ListGuildsResponse, error)
func (UnimplementedInjectiveCampaignRPCServer) Ranking ¶
func (UnimplementedInjectiveCampaignRPCServer) Ranking(context.Context, *RankingRequest) (*RankingResponse, error)
type UnsafeInjectiveCampaignRPCServer ¶
type UnsafeInjectiveCampaignRPCServer interface {
// contains filtered or unexported methods
}
UnsafeInjectiveCampaignRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveCampaignRPCServer will result in compilation errors.