import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { TokenRestriction } from "./featureGating_pb.js"; /** * @generated from enum search.v1.SearchType */ export declare enum SearchType { /** * @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0; */ SEARCH_TYPE_UNSPECIFIED = 0, /** * @generated from enum value: TOKEN = 1; */ TOKEN = 1, /** * @generated from enum value: POOL = 2; */ POOL = 2, /** * @generated from enum value: AUCTION = 3; */ AUCTION = 3, /** * @generated from enum value: CATEGORY = 4; */ CATEGORY = 4 } /** * @generated from enum search.v1.SpamCode */ export declare enum SpamCode { /** * @generated from enum value: NOT_SPAM = 0; */ NOT_SPAM = 0, /** * @generated from enum value: SPAM = 1; */ SPAM = 1, /** * @generated from enum value: SPAM_URL = 2; */ SPAM_URL = 2 } /** * @generated from enum search.v1.AttackType */ export declare enum AttackType { /** * @generated from enum value: ATTACK_TYPE_UNSPECIFIED = 0; */ ATTACK_TYPE_UNSPECIFIED = 0, /** * @generated from enum value: METADATA = 1; */ METADATA = 1, /** * @generated from enum value: INORGANIC_VOLUME = 2; */ INORGANIC_VOLUME = 2, /** * @generated from enum value: AIRDROP_PATTERN = 3; */ AIRDROP_PATTERN = 3, /** * @generated from enum value: DYNAMIC_ANALYSIS = 4; */ DYNAMIC_ANALYSIS = 4, /** * @generated from enum value: STATIC_CODE_SIGNATURE = 5; */ STATIC_CODE_SIGNATURE = 5, /** * @generated from enum value: KNOWN_MALICIOUS = 6; */ KNOWN_MALICIOUS = 6, /** * @generated from enum value: IMPERSONATOR = 7; */ IMPERSONATOR = 7, /** * @generated from enum value: UNSTABLE_TOKEN_PRICE = 8; */ UNSTABLE_TOKEN_PRICE = 8, /** * @generated from enum value: RUGPULL = 9; */ RUGPULL = 9, /** * @generated from enum value: HIGH_FEES = 10; */ HIGH_FEES = 10 } /** * @generated from message search.v1.Token */ export declare class Token extends Message { /** * @generated from field: string token_id = 1; */ tokenId: string; /** * @generated from field: uint32 chain_id = 2; */ chainId: number; /** * @generated from field: string address = 3; */ address: string; /** * @generated from field: uint32 decimals = 4; */ decimals: number; /** * @generated from field: string symbol = 5; */ symbol: string; /** * @generated from field: string name = 6; */ name: string; /** * @generated from field: string standard = 7; */ standard: string; /** * @generated from field: string project_name = 8; */ projectName: string; /** * @generated from field: string logo_url = 9; */ logoUrl: string; /** * @generated from field: string is_spam = 10; */ isSpam: string; /** * @generated from field: string safety_level = 11; */ safetyLevel: string; /** * @generated from field: search.v1.SpamCode spam_code = 12; */ spamCode: SpamCode; /** * @generated from field: search.v1.FeeData fee_data = 13; */ feeData?: FeeData; /** * @generated from field: search.v1.TokenProtectionInfo protection_info = 14; */ protectionInfo?: TokenProtectionInfo; /** * Compliance restrictions evaluated server-side from ctx.auth. Empty = * no restrictions. * * @generated from field: repeated data.v1.TokenRestriction restrictions = 15; */ restrictions: TokenRestriction[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.Token"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Token; static fromJson(jsonValue: JsonValue, options?: Partial): Token; static fromJsonString(jsonString: string, options?: Partial): Token; static equals(a: Token | PlainMessage | undefined, b: Token | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.ChainToken */ export declare class ChainToken extends Message { /** * @generated from field: uint32 chain_id = 1; */ chainId: number; /** * @generated from field: string address = 2; */ address: string; /** * @generated from field: uint32 decimals = 3; */ decimals: number; /** * @generated from field: string safety_level = 4; */ safetyLevel: string; /** * @generated from field: search.v1.SpamCode spam_code = 5; */ spamCode: SpamCode; /** * @generated from field: string is_spam = 6; */ isSpam: string; /** * @generated from field: search.v1.FeeData fee_data = 7; */ feeData?: FeeData; /** * @generated from field: search.v1.TokenProtectionInfo protection_info = 8; */ protectionInfo?: TokenProtectionInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.ChainToken"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ChainToken; static fromJson(jsonValue: JsonValue, options?: Partial): ChainToken; static fromJsonString(jsonString: string, options?: Partial): ChainToken; static equals(a: ChainToken | PlainMessage | undefined, b: ChainToken | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.MultichainToken */ export declare class MultichainToken extends Message { /** * @generated from field: string multichain_id = 1; */ multichainId: string; /** * @generated from field: string symbol = 2; */ symbol: string; /** * @generated from field: string name = 3; */ name: string; /** * @generated from field: string standard = 4; */ standard: string; /** * @generated from field: string project_name = 5; */ projectName: string; /** * @generated from field: string logo_url = 6; */ logoUrl: string; /** * @generated from field: string safety_level = 7; */ safetyLevel: string; /** * @generated from field: search.v1.SpamCode spam_code = 8; */ spamCode: SpamCode; /** * @generated from field: string is_spam = 9; */ isSpam: string; /** * @generated from field: search.v1.FeeData fee_data = 10; */ feeData?: FeeData; /** * @generated from field: search.v1.TokenProtectionInfo protection_info = 11; */ protectionInfo?: TokenProtectionInfo; /** * @generated from field: repeated search.v1.ChainToken chain_tokens = 12; */ chainTokens: ChainToken[]; /** * Compliance restrictions evaluated server-side from ctx.auth. Empty = * no restrictions. * * @generated from field: repeated data.v1.TokenRestriction restrictions = 13; */ restrictions: TokenRestriction[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.MultichainToken"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MultichainToken; static fromJson(jsonValue: JsonValue, options?: Partial): MultichainToken; static fromJsonString(jsonString: string, options?: Partial): MultichainToken; static equals(a: MultichainToken | PlainMessage | undefined, b: MultichainToken | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.FeeData */ export declare class FeeData extends Message { /** * @generated from field: string sell_fee_bps = 1; */ sellFeeBps: string; /** * @generated from field: string buy_fee_bps = 2; */ buyFeeBps: string; /** * @generated from field: bool fee_taken_on_transfer = 3; */ feeTakenOnTransfer: boolean; /** * @generated from field: bool external_transfer_failed = 4; */ externalTransferFailed: boolean; /** * @generated from field: bool sell_reverted = 5; */ sellReverted: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.FeeData"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FeeData; static fromJson(jsonValue: JsonValue, options?: Partial): FeeData; static fromJsonString(jsonString: string, options?: Partial): FeeData; static equals(a: FeeData | PlainMessage | undefined, b: FeeData | PlainMessage | undefined): boolean; } /** * A token-category search result. Deliberately id-only: clients hydrate * name/icon/stats locally from their cached ListCategories response * (agreed convention — see the category_ids thread on PR #11417). * * @generated from message search.v1.SearchCategory */ export declare class SearchCategory extends Message { /** * @generated from field: string category_id = 1; */ categoryId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.SearchCategory"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SearchCategory; static fromJson(jsonValue: JsonValue, options?: Partial): SearchCategory; static fromJsonString(jsonString: string, options?: Partial): SearchCategory; static equals(a: SearchCategory | PlainMessage | undefined, b: SearchCategory | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.SearchAuction */ export declare class SearchAuction extends Message { /** * @generated from field: string auction_id = 1; */ auctionId: string; /** * @generated from field: uint32 chain_id = 2; */ chainId: number; /** * @generated from field: string auction_address = 3; */ auctionAddress: string; /** * @generated from field: string token_address = 4; */ tokenAddress: string; /** * @generated from field: string token_name = 5; */ tokenName: string; /** * @generated from field: string token_symbol = 6; */ tokenSymbol: string; /** * @generated from field: string total_bid_volume_usd = 7; */ totalBidVolumeUsd: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.SearchAuction"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SearchAuction; static fromJson(jsonValue: JsonValue, options?: Partial): SearchAuction; static fromJsonString(jsonString: string, options?: Partial): SearchAuction; static equals(a: SearchAuction | PlainMessage | undefined, b: SearchAuction | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.BlockaidFees */ export declare class BlockaidFees extends Message { /** * @generated from field: double transfer = 1; */ transfer: number; /** * @generated from field: double buy = 2; */ buy: number; /** * @generated from field: double sell = 3; */ sell: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.BlockaidFees"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): BlockaidFees; static fromJson(jsonValue: JsonValue, options?: Partial): BlockaidFees; static fromJsonString(jsonString: string, options?: Partial): BlockaidFees; static equals(a: BlockaidFees | PlainMessage | undefined, b: BlockaidFees | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.TokenProtectionInfo */ export declare class TokenProtectionInfo extends Message { /** * @generated from field: string result = 1; */ result: string; /** * @generated from field: string token_id = 2; */ tokenId: string; /** * @generated from field: uint32 chain_id = 3; */ chainId: number; /** * @generated from field: repeated string attack_types = 4; */ attackTypes: string[]; /** * @generated from field: string address = 5; */ address: string; /** * @generated from field: search.v1.BlockaidFees blockaid_fees = 6; */ blockaidFees?: BlockaidFees; /** * @generated from field: uint32 updated_at = 7; */ updatedAt: number; /** * @generated from field: search.v1.FeeData fee_data = 8; */ feeData?: FeeData; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.TokenProtectionInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TokenProtectionInfo; static fromJson(jsonValue: JsonValue, options?: Partial): TokenProtectionInfo; static fromJsonString(jsonString: string, options?: Partial): TokenProtectionInfo; static equals(a: TokenProtectionInfo | PlainMessage | undefined, b: TokenProtectionInfo | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.PoolTokenData */ export declare class PoolTokenData extends Message { /** * @generated from field: uint32 chain_id = 1; */ chainId: number; /** * @generated from field: string address = 2; */ address: string; /** * @generated from field: string symbol = 3; */ symbol: string; /** * @generated from field: string name = 4; */ name: string; /** * @generated from field: uint32 decimals = 5; */ decimals: number; /** * @generated from field: string logo_url = 6; */ logoUrl: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.PoolTokenData"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PoolTokenData; static fromJson(jsonValue: JsonValue, options?: Partial): PoolTokenData; static fromJsonString(jsonString: string, options?: Partial): PoolTokenData; static equals(a: PoolTokenData | PlainMessage | undefined, b: PoolTokenData | PlainMessage | undefined): boolean; } /** * @generated from message search.v1.Pool */ export declare class Pool extends Message { /** * @generated from field: double volume_usd_24hr = 1; */ volumeUsd24hr: number; /** * @generated from field: double volume_usd_12hr = 2; */ volumeUsd12hr: number; /** * @generated from field: double volume_usd_6hr = 3; */ volumeUsd6hr: number; /** * @generated from field: search.v1.PoolTokenData token0 = 4; */ token0?: PoolTokenData; /** * @generated from field: search.v1.PoolTokenData token1 = 5; */ token1?: PoolTokenData; /** * @generated from field: string id = 6; */ id: string; /** * @generated from field: uint32 chain_id = 7; */ chainId: number; /** * @generated from field: optional string hook_address = 8; */ hookAddress?: string; /** * V4, V3, or V2 * * @generated from field: string protocol_version = 9; */ protocolVersion: string; /** * @generated from field: uint32 fee_tier = 10; */ feeTier: number; /** * Protocol fee (pips), same unit as `fee_tier`. v4: ADDITIVE on top of it; * v2/v3: SUBTRACTIVE share of it. Optional: unset = unknown, set 0 = off. * * @generated from field: optional uint32 protocol_fee = 11; */ protocolFee?: number; /** * Effective (all-in) fee (pips). v4: fee_tier+protocol_fee; v2/v3: fee_tier. * Optional: unset when protocol_fee is unavailable (incl. v4 dynamic-fee). * * @generated from field: optional uint32 effective_fee = 12; */ effectiveFee?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "search.v1.Pool"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Pool; static fromJson(jsonValue: JsonValue, options?: Partial): Pool; static fromJsonString(jsonString: string, options?: Partial): Pool; static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean; }