export interface ProtobufAny { "@type"?: string; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } /** * Airdrop defines airdrop information. */ export interface V1Beta1Airdrop { /** @format uint64 */ id?: string; sourceAddress?: string; conditions?: V1Beta1ConditionType[]; /** @format date-time */ startTime?: string; /** @format date-time */ endTime?: string; } /** * ClaimRecord defines claim record that corresponds to the airdrop. */ export interface V1Beta1ClaimRecord { /** @format uint64 */ airdropId?: string; recipient?: string; initialClaimableCoins?: V1Beta1Coin[]; claimableCoins?: V1Beta1Coin[]; claimedConditions?: V1Beta1ConditionType[]; } /** * Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. */ export interface V1Beta1Coin { denom?: string; amount?: string; } /** * ConditionType defines the type of condition that a recipient must execute in order to receive a claimable amount. - CONDITION_TYPE_UNSPECIFIED: CONDITION_TYPE_UNSPECIFIED specifies an unknown condition type - CONDITION_TYPE_DEPOSIT: CONDITION_TYPE_DEPOSIT specifies deposit condition type - CONDITION_TYPE_SWAP: CONDITION_TYPE_SWAP specifies swap condition type - CONDITION_TYPE_LIQUIDSTAKE: CONDITION_TYPE_LIQUIDSTAKE specifies liquid stake condition type - CONDITION_TYPE_VOTE: CONDITION_TYPE_VOTE specifies governance vote condition type */ export declare enum V1Beta1ConditionType { CONDITION_TYPE_UNSPECIFIED = "CONDITION_TYPE_UNSPECIFIED", CONDITION_TYPE_DEPOSIT = "CONDITION_TYPE_DEPOSIT", CONDITION_TYPE_SWAP = "CONDITION_TYPE_SWAP", CONDITION_TYPE_LIQUIDSTAKE = "CONDITION_TYPE_LIQUIDSTAKE", CONDITION_TYPE_VOTE = "CONDITION_TYPE_VOTE" } export declare type V1Beta1MsgClaimResponse = object; /** * message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; } */ export interface V1Beta1PageRequest { /** * key is a value returned in PageResponse.next_key to begin * querying the next page most efficiently. Only one of offset or key * should be set. * @format byte */ key?: string; /** * offset is a numeric offset that can be used when key is unavailable. * It is less efficient than using key. Only one of offset or key should * be set. * @format uint64 */ offset?: string; /** * limit is the total number of results to be returned in the result page. * If left empty it will default to a value to be set by each app. * @format uint64 */ limit?: string; /** * count_total is set to true to indicate that the result set should include * a count of the total number of items available for pagination in UIs. * count_total is only respected when offset is used. It is ignored when key * is set. */ countTotal?: boolean; /** * reverse is set to true if results are to be returned in the descending * order. */ reverse?: boolean; } /** * PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; } */ export interface V1Beta1PageResponse { /** @format byte */ nextKey?: string; /** @format uint64 */ total?: string; } /** * QueryAirdropResponse is response type for the Query/Airdrop RPC method. */ export interface V1Beta1QueryAirdropResponse { /** Airdrop defines airdrop information. */ airdrop?: V1Beta1Airdrop; } /** * QueryAirdropsResponse is response type for the Query/Airdrops RPC method. */ export interface V1Beta1QueryAirdropsResponse { airdrops?: V1Beta1Airdrop[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryClaimRecordResponse is response type for the Query/ClaimRecord RPC method. */ export interface V1Beta1QueryClaimRecordResponse { /** ClaimRecord defines claim record that corresponds to the airdrop. */ claimRecord?: V1Beta1ClaimRecord; } export declare type QueryParamsType = Record; export declare type ResponseFormat = keyof Omit; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: keyof Omit; /** request body */ body?: unknown; /** base url */ baseUrl?: string; /** request cancellation token */ cancelToken?: CancelToken; } export declare type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } declare type CancelToken = Symbol | string | number; export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { baseUrl: string; private securityData; private securityWorker; private abortControllers; private baseApiParams; constructor(apiConfig?: ApiConfig); setSecurityData: (data: SecurityDataType) => void; private addQueryParam; protected toQueryString(rawQuery?: QueryParamsType): string; protected addQueryParams(rawQuery?: QueryParamsType): string; private contentFormatters; private mergeRequestParams; private createAbortSignal; abortRequest: (cancelToken: CancelToken) => void; request: ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise>; } /** * @title crescent/claim/v1beta1/claim.proto * @version version not set */ export declare class Api extends HttpClient { /** * No description * * @tags Query * @name QueryAirdrops * @summary Airdrops returns all airdrops. * @request GET:/crescent/claim/v1beta1/airdrops */ queryAirdrops: (query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryAirdrop * @summary Airdrop returns the specific airdrop. * @request GET:/crescent/claim/v1beta1/airdrops/{airdropId} */ queryAirdrop: (airdropId: string, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryClaimRecord * @summary ClaimRecord returns the claim record for the recipient address. * @request GET:/crescent/claim/v1beta1/airdrops/{airdropId}/claim_records/{recipient} */ queryClaimRecord: (airdropId: string, recipient: string, params?: RequestParams) => Promise>; } export {};