injective_campaign_rpcpb

package
v1.50.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package injective_campaign_rpcpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_injective_campaign_rpc_proto protoreflect.FileDescriptor
View Source
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: "ListGuilds",
			Handler:    _InjectiveCampaignRPC_ListGuilds_Handler,
		},
		{
			MethodName: "ListGuildMembers",
			Handler:    _InjectiveCampaignRPC_ListGuildMembers_Handler,
		},
		{
			MethodName: "GetGuildMember",
			Handler:    _InjectiveCampaignRPC_GetGuildMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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
	Contract string `protobuf:"bytes,10,opt,name=contract,proto3" json:"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"`
	// contains filtered or unexported fields
}

func (*Campaign) Descriptor deprecated

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

Deprecated: Use Campaign.ProtoReflect.Descriptor instead.

func (*Campaign) GetCampaignId

func (x *Campaign) GetCampaignId() string

func (*Campaign) GetContract

func (x *Campaign) GetContract() string

func (*Campaign) GetEndDate

func (x *Campaign) GetEndDate() int64

func (*Campaign) GetIsClaimable

func (x *Campaign) GetIsClaimable() bool

func (*Campaign) GetLastUpdated

func (x *Campaign) GetLastUpdated() int64

func (*Campaign) GetMarketId

func (x *Campaign) GetMarketId() string

func (*Campaign) GetRewards

func (x *Campaign) GetRewards() []*Coin

func (*Campaign) GetRoundId

func (x *Campaign) GetRoundId() int32

func (*Campaign) GetStartDate

func (x *Campaign) GetStartDate() int64

func (*Campaign) GetTotalScore

func (x *Campaign) GetTotalScore() string

func (*Campaign) GetUserScore

func (x *Campaign) GetUserScore() string

func (*Campaign) ProtoMessage

func (*Campaign) ProtoMessage()

func (*Campaign) ProtoReflect

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

func (*Campaign) Reset

func (x *Campaign) Reset()

func (*Campaign) String

func (x *Campaign) String() string

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"`
	// 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) 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 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"`
	// 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) GetRoundId

func (x *CampaignsRequest) GetRoundId() int64

func (*CampaignsRequest) GetToRoundId

func (x *CampaignsRequest) GetToRoundId() int32

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"`
	AccountRewards []*Coin     `protobuf:"bytes,2,rep,name=account_rewards,json=accountRewards,proto3" json:"account_rewards,omitempty"`
	// contains filtered or unexported fields
}

func (*CampaignsResponse) Descriptor deprecated

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

Deprecated: Use CampaignsResponse.ProtoReflect.Descriptor instead.

func (*CampaignsResponse) GetAccountRewards

func (x *CampaignsResponse) GetAccountRewards() []*Coin

func (*CampaignsResponse) GetCampaigns

func (x *CampaignsResponse) GetCampaigns() []*Campaign

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Coin.ProtoReflect.Descriptor instead.

func (*Coin) GetAmount

func (x *Coin) GetAmount() string

func (*Coin) GetDenom

func (x *Coin) GetDenom() string

func (*Coin) ProtoMessage

func (*Coin) ProtoMessage()

func (*Coin) ProtoReflect

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

func (*Coin) Reset

func (x *Coin) Reset()

func (*Coin) String

func (x *Coin) String() string

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"`
	// 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) Descriptor() ([]byte, []int)

Deprecated: Use Guild.ProtoReflect.Descriptor instead.

func (*Guild) GetCampaignContract

func (x *Guild) GetCampaignContract() string

func (*Guild) GetCreatedAt

func (x *Guild) GetCreatedAt() int64

func (*Guild) GetDescription

func (x *Guild) GetDescription() string

func (*Guild) GetGuildId

func (x *Guild) GetGuildId() string

func (*Guild) GetIsActive

func (x *Guild) GetIsActive() bool
func (x *Guild) GetLogo() string

func (*Guild) GetMasterAddress

func (x *Guild) GetMasterAddress() string

func (*Guild) GetMasterBalance

func (x *Guild) GetMasterBalance() string

func (*Guild) GetName

func (x *Guild) GetName() string

func (*Guild) GetRankByTvl

func (x *Guild) GetRankByTvl() int32

func (*Guild) GetRankByVolume

func (x *Guild) GetRankByVolume() int32

func (*Guild) GetTotalTvl

func (x *Guild) GetTotalTvl() string

func (*Guild) GetTvlScore

func (x *Guild) GetTvlScore() string

func (*Guild) GetUpdatedAt

func (x *Guild) GetUpdatedAt() int64

func (*Guild) GetVolumeScore

func (x *Guild) GetVolumeScore() string

func (*Guild) ProtoMessage

func (*Guild) ProtoMessage()

func (*Guild) ProtoReflect

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

func (*Guild) Reset

func (x *Guild) Reset()

func (*Guild) String

func (x *Guild) String() string

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 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.

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Paging.ProtoReflect.Descriptor instead.

func (*Paging) GetCountBySubaccount

func (x *Paging) GetCountBySubaccount() int64

func (*Paging) GetFrom

func (x *Paging) GetFrom() int32

func (*Paging) GetNext

func (x *Paging) GetNext() []string

func (*Paging) GetTo

func (x *Paging) GetTo() int32

func (*Paging) GetTotal

func (x *Paging) GetTotal() int64

func (*Paging) ProtoMessage

func (*Paging) ProtoMessage()

func (*Paging) ProtoReflect

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

func (*Paging) Reset

func (x *Paging) Reset()

func (*Paging) String

func (x *Paging) String() string

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"`
	// 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) 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) GetGuildMember

func (UnimplementedInjectiveCampaignRPCServer) ListGuildMembers

func (UnimplementedInjectiveCampaignRPCServer) ListGuilds

func (UnimplementedInjectiveCampaignRPCServer) Ranking

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.

Jump to

Keyboard shortcuts

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