import { a as SignerInfo, d as Coin$1, f as DecCoin, i as SignDoc, l as SignMode, n as Fee, o as TxBody, r as ModeInfo, s as TxRaw, t as AuthInfo, u as Any } from "./tx_pb-Blty6MDM.js"; import { $ as BandIBCParams, A as FeeDiscountTierInfo$2, B as Params$17, C as DerivativeMarket$2, D as EffectiveGrant$1, E as DerivativeOrder$2, F as MarketVolume$1, G as SpotLimitOrder$3, H as PerpetualMarketInfo$3, I as MidPriceAndTOB$1, J as SpotOrder$2, K as SpotMarket$2, L as OrderInfo$2, M as GrantAuthorization$3, N as MarketFeeMultiplier$1, O as ExpiryFuturesMarketInfo$3, P as MarketStatus$1, Q as TradingRewardCampaignInfo$2, R as OrderMask$1, S as DerivativeLimitOrder$4, T as DerivativeMarketSettlementInfo$1, U as PointsMultiplier$2, V as PerpetualMarketFunding$3, W as Position$2, X as TradeRecords$1, Y as SubaccountTradeNonce$1, Z as TradingRewardCampaignBoostInfo$2, _ as BinaryOptionsMarket$2, _t as DuplexStreamingCall, b as DenomMinNotional$1, bt as MethodInfo, c as GrpcCoin, d as GrpcWebTransportAdditionalOptions, dt as TokenMeta, et as BandOracleRequest, f as GrpcWebOptions, g as AggregateSubaccountVolumeRecord$1, gt as UnaryCall, h as ActiveGrant$1, ht as RpcTransport, i as PaginationOption, j as FeeDiscountTierTTL$2, k as FeeDiscountSchedule$2, lt as StreamState, mt as RpcOptions, nt as OracleType, ot as StreamManagerConfig, pt as TokenStatic, q as SpotMarketOrder, r as Pagination, rt as Params$18, st as StreamManagerEvents, t as ExchangePagination, tt as MetadataStatistics, ut as StreamSubscription, v as CampaignRewardPool$2, vt as ClientStreamingCall, w as DerivativeMarketOrder$1, x as Deposit$2, y as DenomDecimals$1, yt as ServerStreamingCall, z as OrderType$2 } from "./index-DErklCLI.js"; import { C as TradeExecutionType, S as TradeExecutionSide, f as OrderSide$1, p as OrderState, v as StreamOperation, x as TradeDirection, y as TokenType } from "./light-BFGvKXwS.js"; import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-C4GGGY9p.js"; import { Ct as snakecaseKeys, F as RegisteredContract, I as ExecArgs, L as ExecPrivilegedArgs, N as MsgExecuteContractCompat, P as Params$15, St as TypedDataField, _t as Model, bt as Eip712ConvertTxArgs, dt as AbsoluteTxPosition$1, f as Coin$9, ft as AccessConfig, gt as ContractInfo$1, ht as ContractCodeHistoryOperationType$1, lt as ExecArgBase, mt as ContractCodeHistoryEntry$1, pt as AccessType$1, ut as ExecDataRepresentation, vt as MsgBase, yt as Eip712ConvertFeeArgs } from "./index-C-3GUOfC.js"; import { V as BaseIndexerGrpcConsumer } from "./index-CTye-EZi.js"; import { BigNumber as BigNumber$1, HttpClient, HttpRestClient, getExactDecimalsFromNumber, getSignificantDecimalsFromNumber } from "@injectivelabs/utils"; import { AccountAddress, ChainId, Coin, EvmChainId, MsgStatus, MsgType } from "@injectivelabs/ts-types"; import { Network, NetworkEndpoints } from "@injectivelabs/networks"; import { StdFee } from "@cosmjs/amino"; import { DirectSignResponse } from "@cosmjs/proto-signing"; import { Subscription } from "rxjs"; //#region ../../node_modules/.pnpm/@protobuf-ts+grpcweb-transport@2.11.1/node_modules/@protobuf-ts/grpcweb-transport/build/types/grpc-web-transport.d.ts /** * Implements the grpc-web protocol, supporting text format or binary * format on the wire. Uses the fetch API to do the HTTP requests. * * Does not support client streaming or duplex calls because grpc-web * does not support them. */ declare class GrpcWebFetchTransport implements RpcTransport { private readonly defaultOptions; constructor(defaultOptions: GrpcWebOptions); mergeOptions(options?: Partial): RpcOptions; /** * Create an URI for a gRPC web call. * * Takes the `baseUrl` option and appends: * - slash "/" * - package name * - dot "." * - service name * - slash "/" * - method name * * If the service was declared without a package, the package name and dot * are omitted. * * All names are used exactly like declared in .proto. */ protected makeUrl(method: MethodInfo, options: GrpcWebOptions): string; clientStreaming(method: MethodInfo): ClientStreamingCall; duplex(method: MethodInfo): DuplexStreamingCall; serverStreaming(method: MethodInfo, input: I, options: RpcOptions): ServerStreamingCall; unary(method: MethodInfo, input: I, options: RpcOptions): UnaryCall; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/google/protobuf/timestamp_pb.d.ts /** * A Timestamp represents a point in time independent of any time zone or local * calendar, encoded as a count of seconds and fractions of seconds at * nanosecond resolution. The count is relative to an epoch at UTC midnight on * January 1, 1970, in the proleptic Gregorian calendar which extends the * Gregorian calendar backwards to year one. * * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap * second table is needed for interpretation, using a [24-hour linear * smear](https://developers.google.com/time/smear). * * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By * restricting to that range, we ensure that we can convert to and from [RFC * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * * Example 1: Compute Timestamp from POSIX `time()`. * * Timestamp timestamp; * timestamp.set_seconds(time(NULL)); * timestamp.set_nanos(0); * * Example 2: Compute Timestamp from POSIX `gettimeofday()`. * * struct timeval tv; * gettimeofday(&tv, NULL); * * Timestamp timestamp; * timestamp.set_seconds(tv.tv_sec); * timestamp.set_nanos(tv.tv_usec * 1000); * * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. * * FILETIME ft; * GetSystemTimeAsFileTime(&ft); * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; * * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. * Timestamp timestamp; * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); * * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. * * long millis = System.currentTimeMillis(); * * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * Example 5: Compute Timestamp from Java `Instant.now()`. * * Instant now = Instant.now(); * * Timestamp timestamp = * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) * .setNanos(now.getNano()).build(); * * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() * * # JSON Mapping * * In JSON format, the Timestamp type is encoded as a string in the * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" * where {year} is always expressed using four digits while {month}, {day}, * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone * is required. A ProtoJSON serializer should always use UTC (as indicated by * "Z") when printing the Timestamp type and a ProtoJSON parser should be * able to accept both UTC and other timezones (as indicated by an offset). * * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the * standard * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted * to this format using * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use * the Joda Time's [`ISODateTimeFormat.dateTime()`]( * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() * ) to obtain a formatter capable of generating timestamps in this format. * * * @generated from protobuf message google.protobuf.Timestamp */ interface Timestamp { /** * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must * be between -62135596800 and 253402300799 inclusive (which corresponds to * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). * * @generated from protobuf field: int64 seconds = 1 */ seconds: bigint; /** * Non-negative fractions of a second at nanosecond resolution. This field is * the nanosecond portion of the duration, not an alternative to seconds. * Negative second values with fractions must still have non-negative nanos * values that count forward in time. Must be between 0 and 999,999,999 * inclusive. * * @generated from protobuf field: int32 nanos = 2 */ nanos: number; } /** * @generated MessageType for protobuf message google.protobuf.Timestamp */ declare const Timestamp = new Timestamp$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/google/protobuf/duration_pb.d.ts /** * A Duration represents a signed, fixed-length span of time represented * as a count of seconds and fractions of seconds at nanosecond * resolution. It is independent of any calendar and concepts like "day" * or "month". It is related to Timestamp in that the difference between * two Timestamp values is a Duration and it can be added or subtracted * from a Timestamp. Range is approximately +-10,000 years. * * # Examples * * Example 1: Compute Duration from two Timestamps in pseudo code. * * Timestamp start = ...; * Timestamp end = ...; * Duration duration = ...; * * duration.seconds = end.seconds - start.seconds; * duration.nanos = end.nanos - start.nanos; * * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } * * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. * * Timestamp start = ...; * Duration duration = ...; * Timestamp end = ...; * * end.seconds = start.seconds + duration.seconds; * end.nanos = start.nanos + duration.nanos; * * if (end.nanos < 0) { * end.seconds -= 1; * end.nanos += 1000000000; * } else if (end.nanos >= 1000000000) { * end.seconds += 1; * end.nanos -= 1000000000; * } * * Example 3: Compute Duration from datetime.timedelta in Python. * * td = datetime.timedelta(days=3, minutes=10) * duration = Duration() * duration.FromTimedelta(td) * * # JSON Mapping * * In JSON format, the Duration type is encoded as a string rather than an * object, where the string ends in the suffix "s" (indicating seconds) and * is preceded by the number of seconds, with nanoseconds expressed as * fractional seconds. For example, 3 seconds with 0 nanoseconds should be * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 * microsecond should be expressed in JSON format as "3.000001s". * * * @generated from protobuf message google.protobuf.Duration */ interface Duration { /** * Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years * * @generated from protobuf field: int64 seconds = 1 */ seconds: bigint; /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 * `seconds` field and a positive or negative `nanos` field. For durations * of one second or more, a non-zero value for the `nanos` field must be * of the same sign as the `seconds` field. Must be from -999,999,999 * to +999,999,999 inclusive. * * @generated from protobuf field: int32 nanos = 2 */ nanos: number; } /** * @generated MessageType for protobuf message google.protobuf.Duration */ declare const Duration = new Duration$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1/gov_pb.d.ts /** * WeightedVoteOption defines a unit of vote for vote split. * * @generated from protobuf message cosmos.gov.v1.WeightedVoteOption */ interface WeightedVoteOption$1 { /** * option defines the valid vote options, it must not contain duplicate vote options. * * @generated from protobuf field: cosmos.gov.v1.VoteOption option = 1 */ option: VoteOption$1; /** * weight is the vote weight associated with the vote option. * * @generated from protobuf field: string weight = 2 */ weight: string; } /** * Deposit defines an amount deposited by an account address to an active * proposal. * * @generated from protobuf message cosmos.gov.v1.Deposit */ interface Deposit { /** * proposal_id defines the unique id of the proposal. * * @generated from protobuf field: uint64 proposal_id = 1 */ proposalId: bigint; /** * depositor defines the deposit addresses from the proposals. * * @generated from protobuf field: string depositor = 2 */ depositor: string; /** * amount to be deposited by depositor. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 3 */ amount: Coin$1[]; } /** * Proposal defines the core field members of a governance proposal. * * @generated from protobuf message cosmos.gov.v1.Proposal */ interface Proposal$1 { /** * id defines the unique id of the proposal. * * @generated from protobuf field: uint64 id = 1 */ id: bigint; /** * messages are the arbitrary messages to be executed if the proposal passes. * * @generated from protobuf field: repeated google.protobuf.Any messages = 2 */ messages: Any[]; /** * status defines the proposal status. * * @generated from protobuf field: cosmos.gov.v1.ProposalStatus status = 3 */ status: ProposalStatus$1; /** * final_tally_result is the final tally result of the proposal. When * querying a proposal via gRPC, this field is not populated until the * proposal's voting period has ended. * * @generated from protobuf field: cosmos.gov.v1.TallyResult final_tally_result = 4 */ finalTallyResult?: TallyResult$1; /** * submit_time is the time of proposal submission. * * @generated from protobuf field: google.protobuf.Timestamp submit_time = 5 */ submitTime?: Timestamp; /** * deposit_end_time is the end time for deposition. * * @generated from protobuf field: google.protobuf.Timestamp deposit_end_time = 6 */ depositEndTime?: Timestamp; /** * total_deposit is the total deposit on the proposal. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin total_deposit = 7 */ totalDeposit: Coin$1[]; /** * voting_start_time is the starting time to vote on a proposal. * * @generated from protobuf field: google.protobuf.Timestamp voting_start_time = 8 */ votingStartTime?: Timestamp; /** * voting_end_time is the end time of voting on a proposal. * * @generated from protobuf field: google.protobuf.Timestamp voting_end_time = 9 */ votingEndTime?: Timestamp; /** * metadata is any arbitrary metadata attached to the proposal. * the recommended format of the metadata is to be found here: * https://docs.cosmos.network/v0.47/modules/gov#proposal-3 * * @generated from protobuf field: string metadata = 10 */ metadata: string; /** * title is the title of the proposal * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: string title = 11 */ title: string; /** * summary is a short summary of the proposal * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: string summary = 12 */ summary: string; /** * proposer is the address of the proposal sumbitter * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: string proposer = 13 */ proposer: string; /** * expedited defines if the proposal is expedited * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: bool expedited = 14 */ expedited: boolean; /** * failed_reason defines the reason why the proposal failed * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: string failed_reason = 15 */ failedReason: string; } /** * TallyResult defines a standard tally for a governance proposal. * * @generated from protobuf message cosmos.gov.v1.TallyResult */ interface TallyResult$1 { /** * yes_count is the number of yes votes on a proposal. * * @generated from protobuf field: string yes_count = 1 */ yesCount: string; /** * abstain_count is the number of abstain votes on a proposal. * * @generated from protobuf field: string abstain_count = 2 */ abstainCount: string; /** * no_count is the number of no votes on a proposal. * * @generated from protobuf field: string no_count = 3 */ noCount: string; /** * no_with_veto_count is the number of no with veto votes on a proposal. * * @generated from protobuf field: string no_with_veto_count = 4 */ noWithVetoCount: string; } /** * Vote defines a vote on a governance proposal. * A Vote consists of a proposal ID, the voter, and the vote option. * * @generated from protobuf message cosmos.gov.v1.Vote */ interface Vote$1 { /** * proposal_id defines the unique id of the proposal. * * @generated from protobuf field: uint64 proposal_id = 1 */ proposalId: bigint; /** * voter is the voter address of the proposal. * * @generated from protobuf field: string voter = 2 */ voter: string; /** * options is the weighted vote options. * * @generated from protobuf field: repeated cosmos.gov.v1.WeightedVoteOption options = 4 */ options: WeightedVoteOption$1[]; /** * metadata is any arbitrary metadata attached to the vote. * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 * * @generated from protobuf field: string metadata = 5 */ metadata: string; } /** * DepositParams defines the params for deposits on governance proposals. * * @deprecated * @generated from protobuf message cosmos.gov.v1.DepositParams */ interface DepositParams { /** * Minimum deposit for a proposal to enter voting period. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin min_deposit = 1 */ minDeposit: Coin$1[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. * * @generated from protobuf field: google.protobuf.Duration max_deposit_period = 2 */ maxDepositPeriod?: Duration; } /** * VotingParams defines the params for voting on governance proposals. * * @deprecated * @generated from protobuf message cosmos.gov.v1.VotingParams */ interface VotingParams { /** * Duration of the voting period. * * @generated from protobuf field: google.protobuf.Duration voting_period = 1 */ votingPeriod?: Duration; } /** * TallyParams defines the params for tallying votes on governance proposals. * * @deprecated * @generated from protobuf message cosmos.gov.v1.TallyParams */ interface TallyParams { /** * Minimum percentage of total stake needed to vote for a result to be * considered valid. * * @generated from protobuf field: string quorum = 1 */ quorum: string; /** * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. * * @generated from protobuf field: string threshold = 2 */ threshold: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. * * @generated from protobuf field: string veto_threshold = 3 */ vetoThreshold: string; } /** * Params defines the parameters for the x/gov module. * * Since: cosmos-sdk 0.47 * * @generated from protobuf message cosmos.gov.v1.Params */ interface Params$13 { /** * Minimum deposit for a proposal to enter voting period. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin min_deposit = 1 */ minDeposit: Coin$1[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. * * @generated from protobuf field: google.protobuf.Duration max_deposit_period = 2 */ maxDepositPeriod?: Duration; /** * Duration of the voting period. * * @generated from protobuf field: google.protobuf.Duration voting_period = 3 */ votingPeriod?: Duration; /** * Minimum percentage of total stake needed to vote for a result to be * considered valid. * * @generated from protobuf field: string quorum = 4 */ quorum: string; /** * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. * * @generated from protobuf field: string threshold = 5 */ threshold: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. * * @generated from protobuf field: string veto_threshold = 6 */ vetoThreshold: string; /** * The ratio representing the proportion of the deposit value that must be paid at proposal submission. * * @generated from protobuf field: string min_initial_deposit_ratio = 7 */ minInitialDepositRatio: string; /** * The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: string proposal_cancel_ratio = 8 */ proposalCancelRatio: string; /** * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: string proposal_cancel_dest = 9 */ proposalCancelDest: string; /** * Duration of the voting period of an expedited proposal. * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: google.protobuf.Duration expedited_voting_period = 10 */ expeditedVotingPeriod?: Duration; /** * Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: string expedited_threshold = 11 */ expeditedThreshold: string; /** * Minimum expedited deposit for a proposal to enter voting period. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin expedited_min_deposit = 12 */ expeditedMinDeposit: Coin$1[]; /** * burn deposits if a proposal does not meet quorum * * @generated from protobuf field: bool burn_vote_quorum = 13 */ burnVoteQuorum: boolean; /** * burn deposits if the proposal does not enter voting period * * @generated from protobuf field: bool burn_proposal_deposit_prevote = 14 */ burnProposalDepositPrevote: boolean; /** * burn deposits if quorum with vote type no_veto is met * * @generated from protobuf field: bool burn_vote_veto = 15 */ burnVoteVeto: boolean; /** * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be * required. * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: string min_deposit_ratio = 16 */ minDepositRatio: string; } /** * VoteOption enumerates the valid vote options for a given governance proposal. * * @generated from protobuf enum cosmos.gov.v1.VoteOption */ declare enum VoteOption$1 { /** * VOTE_OPTION_UNSPECIFIED defines a no-op vote option. * * @generated from protobuf enum value: VOTE_OPTION_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * VOTE_OPTION_YES defines a yes vote option. * * @generated from protobuf enum value: VOTE_OPTION_YES = 1; */ YES = 1, /** * VOTE_OPTION_ABSTAIN defines an abstain vote option. * * @generated from protobuf enum value: VOTE_OPTION_ABSTAIN = 2; */ ABSTAIN = 2, /** * VOTE_OPTION_NO defines a no vote option. * * @generated from protobuf enum value: VOTE_OPTION_NO = 3; */ NO = 3, /** * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. * * @generated from protobuf enum value: VOTE_OPTION_NO_WITH_VETO = 4; */ NO_WITH_VETO = 4, } /** * ProposalStatus enumerates the valid statuses of a proposal. * * @generated from protobuf enum cosmos.gov.v1.ProposalStatus */ declare enum ProposalStatus$1 { /** * PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. * * @generated from protobuf enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit * period. * * @generated from protobuf enum value: PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; */ DEPOSIT_PERIOD = 1, /** * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting * period. * * @generated from protobuf enum value: PROPOSAL_STATUS_VOTING_PERIOD = 2; */ VOTING_PERIOD = 2, /** * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has * passed. * * @generated from protobuf enum value: PROPOSAL_STATUS_PASSED = 3; */ PASSED = 3, /** * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has * been rejected. * * @generated from protobuf enum value: PROPOSAL_STATUS_REJECTED = 4; */ REJECTED = 4, /** * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has * failed. * * @generated from protobuf enum value: PROPOSAL_STATUS_FAILED = 5; */ FAILED = 5, } /** * @generated MessageType for protobuf message cosmos.gov.v1.WeightedVoteOption */ declare const WeightedVoteOption$1 = new WeightedVoteOption$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.Deposit */ declare const Deposit = new Deposit$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.Proposal */ declare const Proposal$1 = new Proposal$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.TallyResult */ declare const TallyResult$1 = new TallyResult$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.Vote */ declare const Vote$1 = new Vote$Type(); /** * @deprecated * @generated MessageType for protobuf message cosmos.gov.v1.DepositParams */ declare const DepositParams = new DepositParams$Type(); /** * @deprecated * @generated MessageType for protobuf message cosmos.gov.v1.VotingParams */ declare const VotingParams = new VotingParams$Type(); /** * @deprecated * @generated MessageType for protobuf message cosmos.gov.v1.TallyParams */ declare const TallyParams = new TallyParams$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.Params */ declare const Params$13 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1/tx_pb.d.ts /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. * * @generated from protobuf message cosmos.gov.v1.MsgSubmitProposal */ interface MsgSubmitProposal$2 { /** * messages are the arbitrary messages to be executed if proposal passes. * * @generated from protobuf field: repeated google.protobuf.Any messages = 1 */ messages: Any[]; /** * initial_deposit is the deposit value that must be paid at proposal submission. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2 */ initialDeposit: Coin$1[]; /** * proposer is the account address of the proposer. * * @generated from protobuf field: string proposer = 3 */ proposer: string; /** * metadata is any arbitrary metadata attached to the proposal. * * @generated from protobuf field: string metadata = 4 */ metadata: string; /** * title is the title of the proposal. * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: string title = 5 */ title: string; /** * summary is the summary of the proposal * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: string summary = 6 */ summary: string; /** * expedited defines if the proposal is expedited or not * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: bool expedited = 7 */ expedited: boolean; } /** * MsgExecLegacyContent is used to wrap the legacy content field into a message. * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. * * @generated from protobuf message cosmos.gov.v1.MsgExecLegacyContent */ interface MsgExecLegacyContent { /** * content is the proposal's content. * * @generated from protobuf field: google.protobuf.Any content = 1 */ content?: Any; /** * authority must be the gov module address. * * @generated from protobuf field: string authority = 2 */ authority: string; } /** * MsgVote defines a message to cast a vote. * * @generated from protobuf message cosmos.gov.v1.MsgVote */ interface MsgVote$1 { /** * proposal_id defines the unique id of the proposal. * * @generated from protobuf field: uint64 proposal_id = 1 */ proposalId: bigint; /** * voter is the voter address for the proposal. * * @generated from protobuf field: string voter = 2 */ voter: string; /** * option defines the vote option. * * @generated from protobuf field: cosmos.gov.v1.VoteOption option = 3 */ option: VoteOption$1; /** * metadata is any arbitrary metadata attached to the Vote. * * @generated from protobuf field: string metadata = 4 */ metadata: string; } /** * MsgDeposit defines a message to submit a deposit to an existing proposal. * * @generated from protobuf message cosmos.gov.v1.MsgDeposit */ interface MsgDeposit$4 { /** * proposal_id defines the unique id of the proposal. * * @generated from protobuf field: uint64 proposal_id = 1 */ proposalId: bigint; /** * depositor defines the deposit addresses from the proposals. * * @generated from protobuf field: string depositor = 2 */ depositor: string; /** * amount to be deposited by depositor. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 3 */ amount: Coin$1[]; } /** * @generated MessageType for protobuf message cosmos.gov.v1.MsgSubmitProposal */ declare const MsgSubmitProposal$2 = new MsgSubmitProposal$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.MsgExecLegacyContent */ declare const MsgExecLegacyContent = new MsgExecLegacyContent$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.MsgVote */ declare const MsgVote$1 = new MsgVote$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.MsgDeposit */ declare const MsgDeposit$4 = new MsgDeposit$Type(); //#endregion //#region src/core/modules/gov/msgs/MsgVote.d.ts declare namespace MsgVote { interface Params { proposalId: number; metadata?: string; vote: VoteOption$1; voter: string; } type Proto = MsgVote$1; } /** * @category Messages */ declare class MsgVote extends MsgBase { static fromJSON(params: MsgVote.Params): MsgVote; toProto(): MsgVote$1; toData(): { proposalId: bigint; voter: string; option: VoteOption$1; metadata: string; '@type': string; }; toAmino(): { type: string; value: { proposal_id: string; voter: string; option: VoteOption$1; metadata: string; }; }; toWeb3Gw(): { proposal_id: string; voter: string; option: VoteOption$1; metadata: string; '@type': string; }; toEip712V2(): { proposal_id: string; voter: string; option: VoteOption$1; metadata: string; '@type': string; }; toDirectSign(): { type: string; message: MsgVote$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/bank/v1beta1/bank_pb.d.ts /** * Params defines the parameters for the bank module. * * @generated from protobuf message cosmos.bank.v1beta1.Params */ interface Params$10 { /** * Deprecated: Use of SendEnabled in params is deprecated. * For genesis, use the newly added send_enabled field in the genesis object. * Storage, lookup, and manipulation of this information is now in the keeper. * * As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files. * * @deprecated * @generated from protobuf field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [deprecated = true] */ sendEnabled: SendEnabled$1[]; /** * @generated from protobuf field: bool default_send_enabled = 2 */ defaultSendEnabled: boolean; } /** * SendEnabled maps coin denom to a send_enabled status (whether a denom is * sendable). * * @generated from protobuf message cosmos.bank.v1beta1.SendEnabled */ interface SendEnabled$1 { /** * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: bool enabled = 2 */ enabled: boolean; } /** * Input models transaction input. * * @generated from protobuf message cosmos.bank.v1beta1.Input */ interface Input { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin coins = 2 */ coins: Coin$1[]; } /** * Output models transaction outputs. * * @generated from protobuf message cosmos.bank.v1beta1.Output */ interface Output { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin coins = 2 */ coins: Coin$1[]; } /** * Supply represents a struct that passively keeps track of the total supply * amounts in the network. * This message is deprecated now that supply is indexed by denom. * * @deprecated * @generated from protobuf message cosmos.bank.v1beta1.Supply */ interface Supply { /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin total = 1 */ total: Coin$1[]; } /** * DenomUnit represents a struct that describes a given * denomination unit of the basic token. * * @generated from protobuf message cosmos.bank.v1beta1.DenomUnit */ interface DenomUnit { /** * denom represents the string name of the given denom unit (e.g uatom). * * @generated from protobuf field: string denom = 1 */ denom: string; /** * exponent represents power of 10 exponent that one must * raise the base_denom to in order to equal the given DenomUnit's denom * 1 denom = 10^exponent base_denom * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with * exponent = 6, thus: 1 atom = 10^6 uatom). * * @generated from protobuf field: uint32 exponent = 2 */ exponent: number; /** * aliases is a list of string aliases for the given denom * * @generated from protobuf field: repeated string aliases = 3 */ aliases: string[]; } /** * Metadata represents a struct that describes * a basic token. * * @generated from protobuf message cosmos.bank.v1beta1.Metadata */ interface Metadata$1 { /** * @generated from protobuf field: string description = 1 */ description: string; /** * denom_units represents the list of DenomUnit's for a given coin * * @generated from protobuf field: repeated cosmos.bank.v1beta1.DenomUnit denom_units = 2 */ denomUnits: DenomUnit[]; /** * base represents the base denom (should be the DenomUnit with exponent = 0). * * @generated from protobuf field: string base = 3 */ base: string; /** * display indicates the suggested denom that should be * displayed in clients. * * @generated from protobuf field: string display = 4 */ display: string; /** * name defines the name of the token (eg: Cosmos Atom) * * Since: cosmos-sdk 0.43 * * @generated from protobuf field: string name = 5 */ name: string; /** * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can * be the same as the display. * * Since: cosmos-sdk 0.43 * * @generated from protobuf field: string symbol = 6 */ symbol: string; /** * URI to a document (on or off-chain) that contains additional information. Optional. * * Since: cosmos-sdk 0.46 * * @generated from protobuf field: string uri = 7 */ uri: string; /** * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that * the document didn't change. Optional. * * Since: cosmos-sdk 0.46 * * @generated from protobuf field: string uri_hash = 8 */ uriHash: string; /** * Decimals represent the number of decimals use to represent token amount on chain * * Since: cosmos-sdk 0.50 * * @generated from protobuf field: uint32 decimals = 9 */ decimals: number; } /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.Params */ declare const Params$10 = new Params$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.SendEnabled */ declare const SendEnabled$1 = new SendEnabled$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.Input */ declare const Input = new Input$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.Output */ declare const Output = new Output$Type(); /** * @deprecated * @generated MessageType for protobuf message cosmos.bank.v1beta1.Supply */ declare const Supply = new Supply$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.DenomUnit */ declare const DenomUnit = new DenomUnit$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.Metadata */ declare const Metadata$1 = new Metadata$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/bank/v1beta1/tx_pb.d.ts /** * MsgSend represents a message to send coins from one account to another. * * @generated from protobuf message cosmos.bank.v1beta1.MsgSend */ interface MsgSend$1 { /** * @generated from protobuf field: string from_address = 1 */ fromAddress: string; /** * @generated from protobuf field: string to_address = 2 */ toAddress: string; /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 3 */ amount: Coin$1[]; } /** * MsgMultiSend represents an arbitrary multi-in, multi-out send message. * * @generated from protobuf message cosmos.bank.v1beta1.MsgMultiSend */ interface MsgMultiSend$1 { /** * Inputs, despite being `repeated`, only allows one sender input. This is * checked in MsgMultiSend's ValidateBasic. * * @generated from protobuf field: repeated cosmos.bank.v1beta1.Input inputs = 1 */ inputs: Input[]; /** * @generated from protobuf field: repeated cosmos.bank.v1beta1.Output outputs = 2 */ outputs: Output[]; } /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.MsgSend */ declare const MsgSend$1 = new MsgSend$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.MsgMultiSend */ declare const MsgMultiSend$1 = new MsgMultiSend$Type(); //#endregion //#region src/core/modules/bank/msgs/MsgSend.d.ts declare namespace MsgSend { interface Params { amount: Coin | Coin[]; srcInjectiveAddress: string; dstInjectiveAddress: string; } type Proto = MsgSend$1; } /** * @category Messages }[] srcInjectiveAddress: string dstInjectiveAddress: string } export type Proto = CosmosBankV1Beta1TxPb.MsgSend } /** * @category Messages */ declare class MsgSend extends MsgBase { static fromJSON(params: MsgSend.Params): MsgSend; toProto(): MsgSend$1; toData(): { fromAddress: string; toAddress: string; amount: Coin$1[]; '@type': string; }; toAmino(): { type: string; value: { from_address: string; to_address: string; amount: Coin$1[]; }; }; toWeb3Gw(): { from_address: string; to_address: string; amount: Coin$1[]; '@type': string; }; toDirectSign(): { type: string; message: MsgSend$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/auction/v1beta1/auction_pb.d.ts /** * @generated from protobuf message injective.auction.v1beta1.Params */ interface Params$5 { /** * auction_period_duration defines the auction period duration * * @generated from protobuf field: int64 auction_period = 1 */ auctionPeriod: bigint; /** * min_next_bid_increment_rate defines the minimum increment rate for new bids * * @generated from protobuf field: string min_next_bid_increment_rate = 2 */ minNextBidIncrementRate: string; /** * inj_basket_max_cap defines the maximum cap for INJ contained in an auction * basket * * @generated from protobuf field: string inj_basket_max_cap = 3 */ injBasketMaxCap: string; /** * bidders_whitelist defines the list of addresses that are allowed to bid * if empty, any address can bid; if populated, only whitelisted addresses can * bid * * @generated from protobuf field: repeated string bidders_whitelist = 4 */ biddersWhitelist: string[]; } /** * @generated from protobuf message injective.auction.v1beta1.Bid */ interface Bid { /** * @generated from protobuf field: string bidder = 1 */ bidder: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; } /** * @generated from protobuf message injective.auction.v1beta1.LastAuctionResult */ interface LastAuctionResult { /** * winner describes the address of the winner * * @generated from protobuf field: string winner = 1 */ winner: string; /** * amount describes the amount the winner get from the auction * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; /** * round defines the round number of auction * * @generated from protobuf field: uint64 round = 3 */ round: bigint; } /** * @generated from protobuf message injective.auction.v1beta1.EventBid */ interface EventBid { /** * bidder describes the address of bidder * * @generated from protobuf field: string bidder = 1 */ bidder: string; /** * amount describes the amount the bidder put on the auction * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; /** * round defines the round number of auction * * @generated from protobuf field: uint64 round = 3 */ round: bigint; } /** * @generated from protobuf message injective.auction.v1beta1.EventAuctionResult */ interface EventAuctionResult { /** * winner describes the address of the winner * * @generated from protobuf field: string winner = 1 */ winner: string; /** * amount describes the amount the winner get from the auction * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; /** * round defines the round number of auction * * @generated from protobuf field: uint64 round = 3 */ round: bigint; } /** * @generated from protobuf message injective.auction.v1beta1.EventAuctionStart */ interface EventAuctionStart { /** * round defines the round number of auction * * @generated from protobuf field: uint64 round = 1 */ round: bigint; /** * ending_timestamp describes auction end time * * @generated from protobuf field: int64 ending_timestamp = 2 */ endingTimestamp: bigint; /** * new_basket describes auction module balance at the time of new auction * start * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin new_basket = 3 */ newBasket: Coin$1[]; } /** * @generated MessageType for protobuf message injective.auction.v1beta1.Params */ declare const Params$5 = new Params$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.Bid */ declare const Bid = new Bid$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.LastAuctionResult */ declare const LastAuctionResult = new LastAuctionResult$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.EventBid */ declare const EventBid = new EventBid$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.EventAuctionResult */ declare const EventAuctionResult = new EventAuctionResult$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.EventAuctionStart */ declare const EventAuctionStart = new EventAuctionStart$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/auction/v1beta1/tx_pb.d.ts /** * Bid defines a SDK message for placing a bid for an auction * * @generated from protobuf message injective.auction.v1beta1.MsgBid */ interface MsgBid$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * amount of the bid in INJ tokens * * @generated from protobuf field: cosmos.base.v1beta1.Coin bid_amount = 2 */ bidAmount?: Coin$1; /** * the current auction round being bid on * * @generated from protobuf field: uint64 round = 3 */ round: bigint; } /** * @generated MessageType for protobuf message injective.auction.v1beta1.MsgBid */ declare const MsgBid$1 = new MsgBid$Type(); //#endregion //#region src/core/modules/auction/msgs/MsgBid.d.ts declare namespace MsgBid { interface Params { round: number; injectiveAddress: string; amount: { denom: string; amount: string; }; } type Proto = MsgBid$1; } /** * @category Messages */ declare class MsgBid extends MsgBase { static fromJSON(params: MsgBid.Params): MsgBid; toProto(): MsgBid$1; toData(): { sender: string; bidAmount?: Coin$1; round: bigint; '@type': string; }; toAmino(): { type: string; value: { sender: string; bid_amount: Coin$1 | undefined; round: string; }; }; toDirectSign(): { type: string; message: MsgBid$1; }; toWeb3Gw(): { sender: string; bid_amount: Coin$1 | undefined; round: string; '@type': string; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/authz/v1beta1/authz_pb.d.ts /** * GenericAuthorization gives the grantee unrestricted permissions to execute * the provided method on behalf of the granter's account. * * @generated from protobuf message cosmos.authz.v1beta1.GenericAuthorization */ interface GenericAuthorization$2 { /** * Msg, identified by it's type URL, to grant unrestricted permissions to execute * * @generated from protobuf field: string msg = 1 */ msg: string; } /** * Grant gives permissions to execute * the provide method with expiration time. * * @generated from protobuf message cosmos.authz.v1beta1.Grant */ interface Grant { /** * @generated from protobuf field: google.protobuf.Any authorization = 1 */ authorization?: Any; /** * time when the grant will expire and will be pruned. If null, then the grant * doesn't have a time expiration (other conditions in `authorization` * may apply to invalidate the grant) * * @generated from protobuf field: google.protobuf.Timestamp expiration = 2 */ expiration?: Timestamp; } /** * GrantAuthorization extends a grant with both the addresses of the grantee and granter. * It is used in genesis.proto and query.proto * * @generated from protobuf message cosmos.authz.v1beta1.GrantAuthorization */ interface GrantAuthorization { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string grantee = 2 */ grantee: string; /** * @generated from protobuf field: google.protobuf.Any authorization = 3 */ authorization?: Any; /** * @generated from protobuf field: google.protobuf.Timestamp expiration = 4 */ expiration?: Timestamp; } /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.GenericAuthorization */ declare const GenericAuthorization$2 = new GenericAuthorization$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.Grant */ declare const Grant = new Grant$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.GrantAuthorization */ declare const GrantAuthorization = new GrantAuthorization$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/authz/v1beta1/tx_pb.d.ts /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. * * @generated from protobuf message cosmos.authz.v1beta1.MsgGrant */ interface MsgGrant$1 { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string grantee = 2 */ grantee: string; /** * @generated from protobuf field: cosmos.authz.v1beta1.Grant grant = 3 */ grant?: Grant; } /** * MsgExec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. * * @generated from protobuf message cosmos.authz.v1beta1.MsgExec */ interface MsgExec$1 { /** * @generated from protobuf field: string grantee = 1 */ grantee: string; /** * Execute Msg. * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. * * @generated from protobuf field: repeated google.protobuf.Any msgs = 2 */ msgs: Any[]; } /** * MsgRevoke revokes any authorization with the provided sdk.Msg type on the * granter's account with that has been granted to the grantee. * * @generated from protobuf message cosmos.authz.v1beta1.MsgRevoke */ interface MsgRevoke$1 { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string grantee = 2 */ grantee: string; /** * @generated from protobuf field: string msg_type_url = 3 */ msgTypeUrl: string; } /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.MsgGrant */ declare const MsgGrant$1 = new MsgGrant$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.MsgExec */ declare const MsgExec$1 = new MsgExec$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.MsgRevoke */ declare const MsgRevoke$1 = new MsgRevoke$Type(); //#endregion //#region src/core/modules/authz/msgs/MsgGrant.d.ts /** * @deprecated please use MsgGrantWithAuthorization */ declare namespace MsgGrant { interface Params { /** * @deprecated Use `authorization` instead - for generic authorizations, * use `getGenericAuthorizationFromMessageType` function * to get the authorization object from messageType */ messageType?: string; authorization?: Any; grantee: string; granter: string; expiration?: number; expiryInYears?: number; expiryInSeconds?: number; } type Proto = MsgGrant$1; type Object = Omit & { msgs: any; }; } /** * @category Messages */ declare class MsgGrant extends MsgBase { static fromJSON(params: MsgGrant.Params): MsgGrant; toProto(): MsgGrant$1; toData(): { granter: string; grantee: string; grant?: Grant; '@type': string; }; toAmino(): { type: string; value: MsgGrant.Object; }; toDirectSign(): { type: string; message: MsgGrant$1; }; toWeb3Gw(): { granter: string; grantee: string; grant: { authorization: { '@type': string; msg: string; }; expiration: string; }; '@type': string; }; getTimestamp(): Timestamp; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/authz/msgs/MsgRevoke.d.ts type SnakeCaseKeys$2 | readonly any[]> = snakecaseKeys.SnakeCaseKeys; declare namespace MsgRevoke { interface Params { messageType: string; grantee: string; granter: string; } type Proto = MsgRevoke$1; } /** * @category Messages */ declare class MsgRevoke extends MsgBase { static fromJSON(params: MsgRevoke.Params): MsgRevoke; toProto(): MsgRevoke$1; toData(): { granter: string; grantee: string; msgTypeUrl: string; '@type': string; }; toAmino(): { type: string; value: SnakeCaseKeys$2; }; toWeb3Gw(): { granter: string; grantee: string; msgTypeUrl: string; '@type': string; }; toDirectSign(): { type: string; message: MsgRevoke$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/gov/msgs/MsgDeposit.d.ts declare namespace MsgDeposit$1 { interface Params { proposalId: number; amount: { denom: string; amount: string; }; depositor: string; } type Proto = MsgDeposit$4; } /** * @category Messages */ declare class MsgDeposit$1 extends MsgBase { static fromJSON(params: MsgDeposit$1.Params): MsgDeposit$1; toProto(): MsgDeposit$4; toData(): { proposalId: bigint; depositor: string; amount: Coin$1[]; '@type': string; }; toAmino(): { type: string; value: { proposal_id: string; depositor: string; amount: Coin$1[]; }; }; toWeb3Gw(): { proposal_id: string; depositor: string; amount: Coin$1[]; '@type': string; }; toDirectSign(): { type: string; message: MsgDeposit$4; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1beta1/gov_pb.d.ts /** * TextProposal defines a standard text proposal whose changes need to be * manually updated in case of approval. * * @generated from protobuf message cosmos.gov.v1beta1.TextProposal */ interface TextProposal { /** * title of the proposal. * * @generated from protobuf field: string title = 1 */ title: string; /** * description associated with the proposal. * * @generated from protobuf field: string description = 2 */ description: string; } /** * @generated MessageType for protobuf message cosmos.gov.v1beta1.TextProposal */ declare const TextProposal = new TextProposal$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1beta1/tx_pb.d.ts /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. * * @generated from protobuf message cosmos.gov.v1beta1.MsgSubmitProposal */ interface MsgSubmitProposal$1 { /** * content is the proposal's content. * * @generated from protobuf field: google.protobuf.Any content = 1 */ content?: Any; /** * initial_deposit is the deposit value that must be paid at proposal submission. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2 */ initialDeposit: Coin$1[]; /** * proposer is the account address of the proposer. * * @generated from protobuf field: string proposer = 3 */ proposer: string; } /** * @generated MessageType for protobuf message cosmos.gov.v1beta1.MsgSubmitProposal */ declare const MsgSubmitProposal$1 = new MsgSubmitProposal$Type(); //#endregion //#region src/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts declare namespace MsgSubmitTextProposal { interface Params { title: string; description: string; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitTextProposal extends MsgBase { static fromJSON(params: MsgSubmitTextProposal.Params): MsgSubmitTextProposal; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; private getContent; } //#endregion //#region src/core/modules/gov/msgs/MsgSubmitGenericProposal.d.ts declare namespace MsgSubmitGenericProposal { interface Params { title: string; summary: string; expedited?: boolean; proposer: string; metadata?: string; messages: Msgs[]; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$2; } /** * @category Messages */ declare class MsgSubmitGenericProposal extends MsgBase { static fromJSON(params: MsgSubmitGenericProposal.Params): MsgSubmitGenericProposal; toProto(): MsgSubmitProposal$2; toData(): { messages: Any[]; initialDeposit: Coin$1[]; proposer: string; metadata: string; title: string; summary: string; expedited: boolean; '@type': string; }; toAmino(): { type: string; value: any; }; toWeb3Gw(): any; toEip712(): { type: string; value: any; }; toDirectSign(): { type: "/cosmos.gov.v1.MsgSubmitProposal"; message: MsgSubmitProposal$2; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/distribution/v1beta1/distribution_pb.d.ts /** * Params defines the set of params for the distribution module. * * @generated from protobuf message cosmos.distribution.v1beta1.Params */ interface Params$2 { /** * @generated from protobuf field: string community_tax = 1 */ communityTax: string; /** * Deprecated: The base_proposer_reward field is deprecated and is no longer used * in the x/distribution module's reward mechanism. * * @deprecated * @generated from protobuf field: string base_proposer_reward = 2 [deprecated = true] */ baseProposerReward: string; /** * Deprecated: The bonus_proposer_reward field is deprecated and is no longer used * in the x/distribution module's reward mechanism. * * @deprecated * @generated from protobuf field: string bonus_proposer_reward = 3 [deprecated = true] */ bonusProposerReward: string; /** * @generated from protobuf field: bool withdraw_addr_enabled = 4 */ withdrawAddrEnabled: boolean; } /** * DelegationDelegatorReward represents the properties * of a delegator's delegation reward. * * @generated from protobuf message cosmos.distribution.v1beta1.DelegationDelegatorReward */ interface DelegationDelegatorReward { /** * @generated from protobuf field: string validator_address = 1 */ validatorAddress: string; /** * @generated from protobuf field: repeated cosmos.base.v1beta1.DecCoin reward = 2 */ reward: DecCoin[]; } /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.Params */ declare const Params$2 = new Params$Type(); /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.DelegationDelegatorReward */ declare const DelegationDelegatorReward = new DelegationDelegatorReward$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/proposal_pb.d.ts /** * @generated from protobuf message injective.exchange.v1beta1.SpotMarketParamUpdateProposal */ interface SpotMarketParamUpdateProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * maker_fee_rate defines the trade fee rate for makers on the spot market * * @generated from protobuf field: string maker_fee_rate = 4 */ makerFeeRate: string; /** * taker_fee_rate defines the trade fee rate for takers on the spot market * * @generated from protobuf field: string taker_fee_rate = 5 */ takerFeeRate: string; /** * relayer_fee_share_rate defines the relayer fee share rate for the spot * market * * @generated from protobuf field: string relayer_fee_share_rate = 6 */ relayerFeeShareRate: string; /** * min_price_tick_size defines the minimum tick size of the order's price and * margin * * @generated from protobuf field: string min_price_tick_size = 7 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 8 */ minQuantityTickSize: string; /** * @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 9 */ status: MarketStatus$1; /** * @generated from protobuf field: string ticker = 10 */ ticker: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 11 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v1beta1.AdminInfo admin_info = 12 */ adminInfo?: AdminInfo$1; /** * base token decimals * * @generated from protobuf field: uint32 base_decimals = 13 */ baseDecimals: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 14 */ quoteDecimals: number; } /** * @generated from protobuf message injective.exchange.v1beta1.ExchangeEnableProposal */ interface ExchangeEnableProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.exchange.v1beta1.ExchangeType exchangeType = 3 */ exchangeType: ExchangeType; } /** * SpotMarketLaunchProposal defines a SDK message for proposing a new spot * market through governance * * @generated from protobuf message injective.exchange.v1beta1.SpotMarketLaunchProposal */ interface SpotMarketLaunchProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * Ticker for the spot market. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * type of coin to use as the base currency * * @generated from protobuf field: string base_denom = 4 */ baseDenom: string; /** * type of coin to use as the quote currency * * @generated from protobuf field: string quote_denom = 5 */ quoteDenom: string; /** * min_price_tick_size defines the minimum tick size of the order's price * * @generated from protobuf field: string min_price_tick_size = 6 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 7 */ minQuantityTickSize: string; /** * maker_fee_rate defines the fee percentage makers pay when trading * * @generated from protobuf field: string maker_fee_rate = 8 */ makerFeeRate: string; /** * taker_fee_rate defines the fee percentage takers pay when trading * * @generated from protobuf field: string taker_fee_rate = 9 */ takerFeeRate: string; /** * min_notional defines the minimum notional for orders in the market * * @generated from protobuf field: string min_notional = 10 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v1beta1.AdminInfo admin_info = 11 */ adminInfo?: AdminInfo$1; /** * base token decimals * * @generated from protobuf field: uint32 base_decimals = 14 */ baseDecimals: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 15 */ quoteDecimals: number; } /** * PerpetualMarketLaunchProposal defines a SDK message for proposing a new * perpetual futures market through governance * * @generated from protobuf message injective.exchange.v1beta1.PerpetualMarketLaunchProposal */ interface PerpetualMarketLaunchProposal$1 { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * Ticker for the derivative market. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * type of coin to use as the base currency * * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 5 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 6 */ oracleQuote: string; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 7 */ oracleScaleFactor: number; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 8 */ oracleType: OracleType; /** * initial_margin_ratio defines the initial margin ratio for the derivative * market * * @generated from protobuf field: string initial_margin_ratio = 9 */ initialMarginRatio: string; /** * maintenance_margin_ratio defines the maintenance margin ratio for the * derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 10 */ maintenanceMarginRatio: string; /** * maker_fee_rate defines the exchange trade fee for makers for the derivative * market * * @generated from protobuf field: string maker_fee_rate = 11 */ makerFeeRate: string; /** * taker_fee_rate defines the exchange trade fee for takers for the derivative * market * * @generated from protobuf field: string taker_fee_rate = 12 */ takerFeeRate: string; /** * min_price_tick_size defines the minimum tick size of the order's price and * margin * * @generated from protobuf field: string min_price_tick_size = 13 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 14 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 15 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v1beta1.AdminInfo admin_info = 16 */ adminInfo?: AdminInfo$1; } /** * ExpiryFuturesMarketLaunchProposal defines a SDK message for proposing a new * expiry futures market through governance * * @generated from protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal */ interface ExpiryFuturesMarketLaunchProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * Ticker for the derivative market. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * type of coin to use as the quote currency * * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 5 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 6 */ oracleQuote: string; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 7 */ oracleScaleFactor: number; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 8 */ oracleType: OracleType; /** * Expiration time of the market * * @generated from protobuf field: int64 expiry = 9 */ expiry: bigint; /** * initial_margin_ratio defines the initial margin ratio for the derivative * market * * @generated from protobuf field: string initial_margin_ratio = 10 */ initialMarginRatio: string; /** * maintenance_margin_ratio defines the maintenance margin ratio for the * derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 11 */ maintenanceMarginRatio: string; /** * maker_fee_rate defines the exchange trade fee for makers for the derivative * market * * @generated from protobuf field: string maker_fee_rate = 12 */ makerFeeRate: string; /** * taker_fee_rate defines the exchange trade fee for takers for the derivative * market * * @generated from protobuf field: string taker_fee_rate = 13 */ takerFeeRate: string; /** * min_price_tick_size defines the minimum tick size of the order's price and * margin * * @generated from protobuf field: string min_price_tick_size = 14 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 15 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 16 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v1beta1.AdminInfo admin_info = 17 */ adminInfo?: AdminInfo$1; } /** * @generated from protobuf message injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal */ interface DerivativeMarketParamUpdateProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * initial_margin_ratio defines the initial margin ratio for the derivative * market * * @generated from protobuf field: string initial_margin_ratio = 4 */ initialMarginRatio: string; /** * maintenance_margin_ratio defines the maintenance margin ratio for the * derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 5 */ maintenanceMarginRatio: string; /** * maker_fee_rate defines the exchange trade fee for makers for the derivative * market * * @generated from protobuf field: string maker_fee_rate = 6 */ makerFeeRate: string; /** * taker_fee_rate defines the exchange trade fee for takers for the derivative * market * * @generated from protobuf field: string taker_fee_rate = 7 */ takerFeeRate: string; /** * relayer_fee_share_rate defines the relayer fee share rate for the * derivative market * * @generated from protobuf field: string relayer_fee_share_rate = 8 */ relayerFeeShareRate: string; /** * min_price_tick_size defines the minimum tick size of the order's price and * margin * * @generated from protobuf field: string min_price_tick_size = 9 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 10 */ minQuantityTickSize: string; /** * hourly_interest_rate defines the hourly interest rate * * @generated from protobuf field: string HourlyInterestRate = 11 */ hourlyInterestRate: string; /** * hourly_funding_rate_cap defines the maximum absolute value of the hourly * funding rate * * @generated from protobuf field: string HourlyFundingRateCap = 12 */ hourlyFundingRateCap: string; /** * @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 13 */ status: MarketStatus$1; /** * @generated from protobuf field: injective.exchange.v1beta1.OracleParams oracle_params = 14 */ oracleParams?: OracleParams; /** * @generated from protobuf field: string ticker = 15 */ ticker: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 16 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v1beta1.AdminInfo admin_info = 17 */ adminInfo?: AdminInfo$1; } /** * @generated from protobuf message injective.exchange.v1beta1.AdminInfo */ interface AdminInfo$1 { /** * @generated from protobuf field: string admin = 1 */ admin: string; /** * @generated from protobuf field: uint32 admin_permissions = 2 */ adminPermissions: number; } /** * @generated from protobuf message injective.exchange.v1beta1.OracleParams */ interface OracleParams { /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 1 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 2 */ oracleQuote: string; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 3 */ oracleScaleFactor: number; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4 */ oracleType: OracleType; } /** * @generated from protobuf message injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal */ interface TradingRewardCampaignLaunchProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.exchange.v1beta1.TradingRewardCampaignInfo campaign_info = 3 */ campaignInfo?: TradingRewardCampaignInfo$2; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool campaign_reward_pools = 4 */ campaignRewardPools: CampaignRewardPool$2[]; } /** * @generated from protobuf message injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal */ interface TradingRewardCampaignUpdateProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.exchange.v1beta1.TradingRewardCampaignInfo campaign_info = 3 */ campaignInfo?: TradingRewardCampaignInfo$2; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool campaign_reward_pools_additions = 4 */ campaignRewardPoolsAdditions: CampaignRewardPool$2[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool campaign_reward_pools_updates = 5 */ campaignRewardPoolsUpdates: CampaignRewardPool$2[]; } /** * @generated from protobuf message injective.exchange.v1beta1.FeeDiscountProposal */ interface FeeDiscountProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountSchedule schedule = 3 */ schedule?: FeeDiscountSchedule$2; } /** * @generated from protobuf enum injective.exchange.v1beta1.ExchangeType */ declare enum ExchangeType { /** * @generated from protobuf enum value: EXCHANGE_UNSPECIFIED = 0; */ EXCHANGE_UNSPECIFIED = 0, /** * @generated from protobuf enum value: SPOT = 1; */ SPOT = 1, /** * @generated from protobuf enum value: DERIVATIVES = 2; */ DERIVATIVES = 2, } /** * @generated MessageType for protobuf message injective.exchange.v1beta1.SpotMarketParamUpdateProposal */ declare const SpotMarketParamUpdateProposal = new SpotMarketParamUpdateProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.ExchangeEnableProposal */ declare const ExchangeEnableProposal = new ExchangeEnableProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.SpotMarketLaunchProposal */ declare const SpotMarketLaunchProposal = new SpotMarketLaunchProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.PerpetualMarketLaunchProposal */ declare const PerpetualMarketLaunchProposal$1 = new PerpetualMarketLaunchProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal */ declare const ExpiryFuturesMarketLaunchProposal = new ExpiryFuturesMarketLaunchProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal */ declare const DerivativeMarketParamUpdateProposal = new DerivativeMarketParamUpdateProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.AdminInfo */ declare const AdminInfo$1 = new AdminInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.OracleParams */ declare const OracleParams = new OracleParams$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal */ declare const TradingRewardCampaignLaunchProposal = new TradingRewardCampaignLaunchProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal */ declare const TradingRewardCampaignUpdateProposal = new TradingRewardCampaignUpdateProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountProposal */ declare const FeeDiscountProposal = new FeeDiscountProposal$Type(); //#endregion //#region src/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts declare namespace MsgSubmitProposalSpotMarketLaunch { interface Params { market: { title: string; description: string; ticker: string; baseDenom: string; quoteDenom: string; minPriceTickSize: string; minQuantityTickSize: string; makerFeeRate: string; takerFeeRate: string; minNotional: string; adminInfo?: { admin: string; adminPermissions: number; }; baseDecimals: number; quoteDecimals: number; }; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitProposalSpotMarketLaunch extends MsgBase { static fromJSON(params: MsgSubmitProposalSpotMarketLaunch.Params): MsgSubmitProposalSpotMarketLaunch; toProto(): MsgSubmitProposalSpotMarketLaunch.Proto; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; maker_fee_rate: string; taker_fee_rate: string; min_notional: string; admin_info: AdminInfo$1 | null; base_decimals: number; quote_decimals: number; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; maker_fee_rate: string; taker_fee_rate: string; min_notional: string; admin_info: AdminInfo$1 | null; base_decimals: number; quote_decimals: number; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toEip712(): { type: string; value: { content: { type: string; value: { maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_notional: string; min_quantity_tick_size: string; title: string; description: string; ticker: string; base_denom: string; quote_denom: string; admin_info: AdminInfo$1 | null; base_decimals: number; quote_decimals: number; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toEip712V2(): { content: any; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/gov/msgs/MsgGrantProviderPrivilegeProposal.d.ts declare namespace MsgGrantProviderPrivilegeProposal { interface Params { title: string; description: string; proposer: string; provider: string; relayers: string[]; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgGrantProviderPrivilegeProposal extends MsgBase { static fromJSON(params: MsgGrantProviderPrivilegeProposal.Params): MsgGrantProviderPrivilegeProposal; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; provider: string; relayers: string[]; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; provider: string; relayers: string[]; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; private getContent; } //#endregion //#region src/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.d.ts declare namespace MsgSubmitProposalPerpetualMarketLaunch { interface Params { market: { title: string; description: string; ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; oracleScaleFactor: number; oracleType: OracleType; initialMarginRatio: string; maintenanceMarginRatio: string; makerFeeRate: string; takerFeeRate: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; adminInfo?: { admin: string; adminPermissions: number; }; }; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitProposalPerpetualMarketLaunch extends MsgBase { static fromJSON(params: MsgSubmitProposalPerpetualMarketLaunch.Params): MsgSubmitProposalPerpetualMarketLaunch; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: { admin: string; admin_permissions: number; } | null; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: { admin: string; admin_permissions: number; } | null; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toEip712(): { type: string; value: { content: { type: string; value: { initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_notional: string; min_quantity_tick_size: string; title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; admin_info: { admin: string; admin_permissions: number; } | null; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toEip712V2(): { content: any; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts declare namespace MsgSubmitProposalSpotMarketParamUpdate { interface Params { market: { title: string; description: string; marketId: string; makerFeeRate: string; takerFeeRate: string; relayerFeeShareRate: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; ticker: string; baseDecimals: number; quoteDecimals: number; adminInfo?: { admin: string; adminPermissions: number; }; status: MarketStatus$1; }; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitProposalSpotMarketParamUpdate extends MsgBase { static fromJSON(params: MsgSubmitProposalSpotMarketParamUpdate.Params): MsgSubmitProposalSpotMarketParamUpdate; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; market_id: string; maker_fee_rate: string; taker_fee_rate: string; relayer_fee_share_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; status: MarketStatus$1; ticker: string; min_notional: string; admin_info: AdminInfo$1 | null; base_decimals: number; quote_decimals: number; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; market_id: string; maker_fee_rate: string; taker_fee_rate: string; relayer_fee_share_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; status: MarketStatus$1; ticker: string; min_notional: string; admin_info: AdminInfo$1 | null; base_decimals: number; quote_decimals: number; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toEip712(): { type: string; value: { content: { type: string; value: { admin_info: { admin: string; admin_permissions: number; } | null; relayer_fee_share_rate: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_notional: string; min_quantity_tick_size: string; title: string; description: string; market_id: string; status: MarketStatus$1; ticker: string; base_decimals: number; quote_decimals: number; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toEip712V2(): { content: any; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/market_pb.d.ts /** * @generated from protobuf message injective.exchange.v2.ForcePausedInfo */ interface ForcePausedInfo { /** * @generated from protobuf field: injective.exchange.v2.ForcePausedReason reason = 1 */ reason: ForcePausedReason; /** * @generated from protobuf field: string mark_price_at_pausing = 2 */ markPriceAtPausing: string; } /** * @generated from protobuf message injective.exchange.v2.OpenNotionalCap */ interface OpenNotionalCap$2 { /** * @generated from protobuf oneof: cap */ cap: { oneofKind: "uncapped"; /** * @generated from protobuf field: injective.exchange.v2.OpenNotionalCapUncapped uncapped = 1 */ uncapped: OpenNotionalCapUncapped; } | { oneofKind: "capped"; /** * @generated from protobuf field: injective.exchange.v2.OpenNotionalCapCapped capped = 2 */ capped: OpenNotionalCapCapped; } | { oneofKind: undefined; }; } /** * @generated from protobuf message injective.exchange.v2.OpenNotionalCapUncapped */ interface OpenNotionalCapUncapped {} /** * @generated from protobuf message injective.exchange.v2.OpenNotionalCapCapped */ interface OpenNotionalCapCapped { /** * @generated from protobuf field: string value = 1 */ value: string; } /** * @generated from protobuf message injective.exchange.v2.MarketFeeMultiplier */ interface MarketFeeMultiplier { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: string fee_multiplier = 2 */ feeMultiplier: string; } /** * An object describing trade pair of two assets. * * @generated from protobuf message injective.exchange.v2.SpotMarket */ interface SpotMarket$1 { /** * A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote * asset. * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Coin denom used for the base asset * * @generated from protobuf field: string base_denom = 2 */ baseDenom: string; /** * Coin used for the quote asset * * @generated from protobuf field: string quote_denom = 3 */ quoteDenom: string; /** * maker_fee_rate defines the fee percentage makers pay when trading * * @generated from protobuf field: string maker_fee_rate = 4 */ makerFeeRate: string; /** * taker_fee_rate defines the fee percentage takers pay when trading * * @generated from protobuf field: string taker_fee_rate = 5 */ takerFeeRate: string; /** * relayer_fee_share_rate defines the percentage of the transaction fee shared * with the relayer in a derivative market * * @generated from protobuf field: string relayer_fee_share_rate = 6 */ relayerFeeShareRate: string; /** * Unique market ID. * * @generated from protobuf field: string market_id = 7 */ marketId: string; /** * Status of the market * * @generated from protobuf field: injective.exchange.v2.MarketStatus status = 8 */ status: MarketStatus; /** * min_price_tick_size defines the minimum tick size that the price required * for orders in the market (in human readable format) * * @generated from protobuf field: string min_price_tick_size = 9 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the quantity * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_quantity_tick_size = 10 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market (in human readable format) * * @generated from protobuf field: string min_notional = 11 */ minNotional: string; /** * current market admin * * @generated from protobuf field: string admin = 12 */ admin: string; /** * level of admin permissions * * @generated from protobuf field: uint32 admin_permissions = 13 */ adminPermissions: number; /** * base token decimals * * @generated from protobuf field: uint32 base_decimals = 14 */ baseDecimals: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 15 */ quoteDecimals: number; /** * has_disabled_minimal_protocol_fee indicates whether the minimal protocol * fee is disabled for the market * * @generated from protobuf field: bool has_disabled_minimal_protocol_fee = 16 */ hasDisabledMinimalProtocolFee: boolean; } /** * An object describing a binary options market in Injective Protocol. * * @generated from protobuf message injective.exchange.v2.BinaryOptionsMarket */ interface BinaryOptionsMarket { /** * Ticker for the derivative contract. * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Oracle symbol * * @generated from protobuf field: string oracle_symbol = 2 */ oracleSymbol: string; /** * Oracle Provider * * @generated from protobuf field: string oracle_provider = 3 */ oracleProvider: string; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4 */ oracleType: OracleType; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 5 */ oracleScaleFactor: number; /** * expiration timestamp * * @generated from protobuf field: int64 expiration_timestamp = 6 */ expirationTimestamp: bigint; /** * expiration timestamp * * @generated from protobuf field: int64 settlement_timestamp = 7 */ settlementTimestamp: bigint; /** * admin of the market * * @generated from protobuf field: string admin = 8 */ admin: string; /** * Address of the quote currency denomination for the binary options contract * * @generated from protobuf field: string quote_denom = 9 */ quoteDenom: string; /** * Unique market ID. * * @generated from protobuf field: string market_id = 10 */ marketId: string; /** * maker_fee_rate defines the maker fee rate of a binary options market * * @generated from protobuf field: string maker_fee_rate = 11 */ makerFeeRate: string; /** * taker_fee_rate defines the taker fee rate of a derivative market * * @generated from protobuf field: string taker_fee_rate = 12 */ takerFeeRate: string; /** * relayer_fee_share_rate defines the percentage of the transaction fee shared * with the relayer in a derivative market * * @generated from protobuf field: string relayer_fee_share_rate = 13 */ relayerFeeShareRate: string; /** * Status of the market * * @generated from protobuf field: injective.exchange.v2.MarketStatus status = 14 */ status: MarketStatus; /** * min_price_tick_size defines the minimum tick size that the price and margin * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_price_tick_size = 15 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the quantity * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_quantity_tick_size = 16 */ minQuantityTickSize: string; /** * settlement_price defines the settlement price of the binary options market * (in human readable format) * * @generated from protobuf field: string settlement_price = 17 */ settlementPrice: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market (in human readable format) * * @generated from protobuf field: string min_notional = 18 */ minNotional: string; /** * level of admin permissions * * @generated from protobuf field: uint32 admin_permissions = 19 */ adminPermissions: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 20 */ quoteDecimals: number; /** * open_notional_cap defines the maximum open notional for the market * * @generated from protobuf field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 21 */ openNotionalCap?: OpenNotionalCap$2; /** * has_disabled_minimal_protocol_fee indicates whether the minimal protocol * fee is disabled for the market * * @generated from protobuf field: bool has_disabled_minimal_protocol_fee = 22 */ hasDisabledMinimalProtocolFee: boolean; /** * force_paused_info defines additional info for force paused markets, only * set when status == ForcePaused * * @generated from protobuf field: injective.exchange.v2.ForcePausedInfo force_paused_info = 23 */ forcePausedInfo?: ForcePausedInfo; } /** * An object describing a derivative market in the Injective Futures Protocol. * * @generated from protobuf message injective.exchange.v2.DerivativeMarket */ interface DerivativeMarket$1 { /** * Ticker for the derivative contract. * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 2 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 3 */ oracleQuote: string; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 4 */ oracleType: OracleType; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 5 */ oracleScaleFactor: number; /** * Address of the quote currency denomination for the derivative contract * * @generated from protobuf field: string quote_denom = 6 */ quoteDenom: string; /** * Unique market ID. * * @generated from protobuf field: string market_id = 7 */ marketId: string; /** * initial_margin_ratio defines the initial margin ratio of a derivative * market * * @generated from protobuf field: string initial_margin_ratio = 8 */ initialMarginRatio: string; /** * maintenance_margin_ratio defines the maintenance margin ratio of a * derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 9 */ maintenanceMarginRatio: string; /** * maker_fee_rate defines the maker fee rate of a derivative market * * @generated from protobuf field: string maker_fee_rate = 10 */ makerFeeRate: string; /** * taker_fee_rate defines the taker fee rate of a derivative market * * @generated from protobuf field: string taker_fee_rate = 11 */ takerFeeRate: string; /** * relayer_fee_share_rate defines the percentage of the transaction fee shared * with the relayer in a derivative market * * @generated from protobuf field: string relayer_fee_share_rate = 12 */ relayerFeeShareRate: string; /** * true if the market is a perpetual market. false if the market is an expiry * futures market * * @generated from protobuf field: bool isPerpetual = 13 */ isPerpetual: boolean; /** * Status of the market * * @generated from protobuf field: injective.exchange.v2.MarketStatus status = 14 */ status: MarketStatus; /** * min_price_tick_size defines the minimum tick size that the price and margin * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_price_tick_size = 15 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the quantity * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_quantity_tick_size = 16 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market (in human readable format) * * @generated from protobuf field: string min_notional = 17 */ minNotional: string; /** * current market admin * * @generated from protobuf field: string admin = 18 */ admin: string; /** * level of admin permissions * * @generated from protobuf field: uint32 admin_permissions = 19 */ adminPermissions: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 20 */ quoteDecimals: number; /** * reduce_margin_ratio defines the ratio of the margin that is reduced * * @generated from protobuf field: string reduce_margin_ratio = 21 */ reduceMarginRatio: string; /** * open_notional_cap defines the maximum open notional for the market * * @generated from protobuf field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 22 */ openNotionalCap?: OpenNotionalCap$2; /** * has_disabled_minimal_protocol_fee indicates whether the minimal protocol * fee is disabled for the market * * @generated from protobuf field: bool has_disabled_minimal_protocol_fee = 23 */ hasDisabledMinimalProtocolFee: boolean; /** * force_paused_info defines additional info for force paused markets, only * set when status == ForcePaused * * @generated from protobuf field: injective.exchange.v2.ForcePausedInfo force_paused_info = 24 */ forcePausedInfo?: ForcePausedInfo; /** * cross_margin_eligible marks the market as eligible for cross-margin * pool participation. Default false means markets are ineligible until * explicitly enabled at launch or toggled via governance proposal. * * @generated from protobuf field: bool cross_margin_eligible = 25 */ crossMarginEligible: boolean; } /** * @generated from protobuf message injective.exchange.v2.DerivativeMarketSettlementInfo */ interface DerivativeMarketSettlementInfo { /** * market ID. * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * settlement_price defines the settlement price * * @generated from protobuf field: string settlement_price = 2 */ settlementPrice: string; /** * is_forced_settlement indicates whether the settlement was explicitly * scheduled by admin or governance force-settlement. * * @generated from protobuf field: bool is_forced_settlement = 3 */ isForcedSettlement: boolean; } /** * @generated from protobuf message injective.exchange.v2.MarketVolume */ interface MarketVolume { /** * the market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * the market volume * * @generated from protobuf field: injective.exchange.v2.VolumeRecord volume = 2 */ volume?: VolumeRecord; } /** * @generated from protobuf message injective.exchange.v2.VolumeRecord */ interface VolumeRecord { /** * the market's maker volume (in human readable format) * * @generated from protobuf field: string maker_volume = 1 */ makerVolume: string; /** * the market's taker volume (in human readable format) * * @generated from protobuf field: string taker_volume = 2 */ takerVolume: string; } /** * @generated from protobuf message injective.exchange.v2.ExpiryFuturesMarketInfoState */ interface ExpiryFuturesMarketInfoState { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: injective.exchange.v2.ExpiryFuturesMarketInfo market_info = 2 */ marketInfo?: ExpiryFuturesMarketInfo; } /** * @generated from protobuf message injective.exchange.v2.PerpetualMarketFundingState */ interface PerpetualMarketFundingState { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: injective.exchange.v2.PerpetualMarketFunding funding = 2 */ funding?: PerpetualMarketFunding; } /** * @generated from protobuf message injective.exchange.v2.ExpiryFuturesMarketInfo */ interface ExpiryFuturesMarketInfo { /** * market ID. * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * expiration_timestamp defines the expiration time for a time expiry futures * market. * * @generated from protobuf field: int64 expiration_timestamp = 2 */ expirationTimestamp: bigint; /** * expiration_twap_start_timestamp defines the start time of the TWAP * calculation window * * @generated from protobuf field: int64 twap_start_timestamp = 3 */ twapStartTimestamp: bigint; /** * expiration_twap_start_price_cumulative defines the cumulative price for the * start of the TWAP window (in human readable format) * Deprecated: For correctly calculating the expiration price using TWAP, we * need to keep the cumulative price at the start of TWAP calculation * separately for the base asset and the quote asset. Use * expiration_twap_start_base_cumulative_price and * expiration_twap_start_quote_cumulative_price instead. * * @deprecated * @generated from protobuf field: string expiration_twap_start_price_cumulative = 4 [deprecated = true] */ expirationTwapStartPriceCumulative: string; /** * settlement_price defines the settlement price for a time expiry futures * market (in human readable format) * * @generated from protobuf field: string settlement_price = 5 */ settlementPrice: string; /** * expiration_twap_start_base_cumulative_price defines the cumulative price * for the base asset at the start of the TWAP calculation window (in human * readable format) * * @generated from protobuf field: string expiration_twap_start_base_cumulative_price = 6 */ expirationTwapStartBaseCumulativePrice: string; /** * expiration_twap_start_quote_cumulative_price defines the cumulative price * for the quote asset at the start of the TWAP calculation window (in human * readable format) * * @generated from protobuf field: string expiration_twap_start_quote_cumulative_price = 7 */ expirationTwapStartQuoteCumulativePrice: string; } /** * @generated from protobuf message injective.exchange.v2.PerpetualMarketInfo */ interface PerpetualMarketInfo { /** * market ID. * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * hourly_funding_rate_cap defines the maximum absolute value of the hourly * funding rate * * @generated from protobuf field: string hourly_funding_rate_cap = 2 */ hourlyFundingRateCap: string; /** * hourly_interest_rate defines the hourly interest rate * * @generated from protobuf field: string hourly_interest_rate = 3 */ hourlyInterestRate: string; /** * next_funding_timestamp defines the next funding timestamp in seconds of a * perpetual market * * @generated from protobuf field: int64 next_funding_timestamp = 4 */ nextFundingTimestamp: bigint; /** * funding_interval defines the next funding interval in seconds of a * perpetual market. * * @generated from protobuf field: int64 funding_interval = 5 */ fundingInterval: bigint; } /** * @generated from protobuf message injective.exchange.v2.PerpetualMarketFunding */ interface PerpetualMarketFunding { /** * cumulative_funding defines the cumulative funding of a perpetual market. * * @generated from protobuf field: string cumulative_funding = 1 */ cumulativeFunding: string; /** * cumulative_price defines the running time-integral of the perp premium * ((VWAP - mark_price) / mark_price) i.e., sum(premium * seconds) * used to compute the interval’s average premium for funding * * @generated from protobuf field: string cumulative_price = 2 */ cumulativePrice: string; /** * the last funding timestamp in seconds * * @generated from protobuf field: int64 last_timestamp = 3 */ lastTimestamp: bigint; } /** * @generated from protobuf enum injective.exchange.v2.MarketStatus */ declare enum MarketStatus { /** * @generated from protobuf enum value: Unspecified = 0; */ Unspecified = 0, /** * @generated from protobuf enum value: Active = 1; */ Active = 1, /** * @generated from protobuf enum value: Paused = 2; */ Paused = 2, /** * @generated from protobuf enum value: Demolished = 3; */ Demolished = 3, /** * @generated from protobuf enum value: Expired = 4; */ Expired = 4, /** * @generated from protobuf enum value: ForcePaused = 5; */ ForcePaused = 5, } /** * @generated from protobuf enum injective.exchange.v2.ForcePausedReason */ declare enum ForcePausedReason { /** * @generated from protobuf enum value: QuoteDenomPaused = 0; */ QuoteDenomPaused = 0, } /** * @generated MessageType for protobuf message injective.exchange.v2.ForcePausedInfo */ declare const ForcePausedInfo = new ForcePausedInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OpenNotionalCap */ declare const OpenNotionalCap$2 = new OpenNotionalCap$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OpenNotionalCapUncapped */ declare const OpenNotionalCapUncapped = new OpenNotionalCapUncapped$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OpenNotionalCapCapped */ declare const OpenNotionalCapCapped = new OpenNotionalCapCapped$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MarketFeeMultiplier */ declare const MarketFeeMultiplier = new MarketFeeMultiplier$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SpotMarket */ declare const SpotMarket$1 = new SpotMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.BinaryOptionsMarket */ declare const BinaryOptionsMarket = new BinaryOptionsMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeMarket */ declare const DerivativeMarket$1 = new DerivativeMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeMarketSettlementInfo */ declare const DerivativeMarketSettlementInfo = new DerivativeMarketSettlementInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MarketVolume */ declare const MarketVolume = new MarketVolume$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.VolumeRecord */ declare const VolumeRecord = new VolumeRecord$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.ExpiryFuturesMarketInfoState */ declare const ExpiryFuturesMarketInfoState = new ExpiryFuturesMarketInfoState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.PerpetualMarketFundingState */ declare const PerpetualMarketFundingState = new PerpetualMarketFundingState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.ExpiryFuturesMarketInfo */ declare const ExpiryFuturesMarketInfo = new ExpiryFuturesMarketInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.PerpetualMarketInfo */ declare const PerpetualMarketInfo = new PerpetualMarketInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.PerpetualMarketFunding */ declare const PerpetualMarketFunding = new PerpetualMarketFunding$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/order_pb.d.ts /** * @generated from protobuf message injective.exchange.v2.OrderInfo */ interface OrderInfo$1 { /** * bytes32 subaccount ID that created the order * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * address fee_recipient address that will receive fees for the order * * @generated from protobuf field: string fee_recipient = 2 */ feeRecipient: string; /** * price of the order (in human readable format) * * @generated from protobuf field: string price = 3 */ price: string; /** * quantity of the order (in human readable format) * * @generated from protobuf field: string quantity = 4 */ quantity: string; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 5 */ cid: string; } /** * @generated from protobuf message injective.exchange.v2.SpotOrder */ interface SpotOrder$1 { /** * market_id represents the unique ID of the market * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * order_info contains the information of the order * * @generated from protobuf field: injective.exchange.v2.OrderInfo order_info = 2 */ orderInfo?: OrderInfo$1; /** * order types * * @generated from protobuf field: injective.exchange.v2.OrderType order_type = 3 */ orderType: OrderType$1; /** * trigger_price is the trigger price used by stop/take orders (in human * readable format) (optional) * * @generated from protobuf field: string trigger_price = 4 */ triggerPrice: string; /** * expiration block is the block number at which the order will expire * * @generated from protobuf field: int64 expiration_block = 5 */ expirationBlock: bigint; } /** * A valid Spot limit order with Metadata. * * @generated from protobuf message injective.exchange.v2.SpotLimitOrder */ interface SpotLimitOrder { /** * order_info contains the information of the order * * @generated from protobuf field: injective.exchange.v2.OrderInfo order_info = 1 */ orderInfo?: OrderInfo$1; /** * order types * * @generated from protobuf field: injective.exchange.v2.OrderType order_type = 2 */ orderType: OrderType$1; /** * the amount of the quantity remaining fillable * * @generated from protobuf field: string fillable = 3 */ fillable: string; /** * trigger_price is the trigger price used by stop/take orders * * @generated from protobuf field: string trigger_price = 4 */ triggerPrice: string; /** * order hash * * @generated from protobuf field: bytes order_hash = 5 */ orderHash: Uint8Array; /** * expiration block is the block number at which the order will expire * * @generated from protobuf field: int64 expiration_block = 6 */ expirationBlock: bigint; } /** * @generated from protobuf message injective.exchange.v2.DerivativeOrder */ interface DerivativeOrder$1 { /** * market_id represents the unique ID of the market * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * order_info contains the information of the order * * @generated from protobuf field: injective.exchange.v2.OrderInfo order_info = 2 */ orderInfo?: OrderInfo$1; /** * order types * * @generated from protobuf field: injective.exchange.v2.OrderType order_type = 3 */ orderType: OrderType$1; /** * margin is the margin used by the limit order (in human readable format) * * @generated from protobuf field: string margin = 4 */ margin: string; /** * trigger_price is the trigger price used by stop/take orders (in human * readable format) (optional) * * @generated from protobuf field: string trigger_price = 5 */ triggerPrice: string; /** * expiration block is the block number at which the order will expire * * @generated from protobuf field: int64 expiration_block = 6 */ expirationBlock: bigint; } /** * A valid Derivative market order with Metadata. * * @generated from protobuf message injective.exchange.v2.DerivativeMarketOrder */ interface DerivativeMarketOrder { /** * order_info contains the information of the order * * @generated from protobuf field: injective.exchange.v2.OrderInfo order_info = 1 */ orderInfo?: OrderInfo$1; /** * order types * * @generated from protobuf field: injective.exchange.v2.OrderType order_type = 2 */ orderType: OrderType$1; /** * @generated from protobuf field: string margin = 3 */ margin: string; /** * @generated from protobuf field: string margin_hold = 4 */ marginHold: string; /** * trigger_price is the trigger price used by stop/take orders * * @generated from protobuf field: string trigger_price = 5 */ triggerPrice: string; /** * @generated from protobuf field: bytes order_hash = 6 */ orderHash: Uint8Array; } /** * A valid Derivative limit order with Metadata. * * @generated from protobuf message injective.exchange.v2.DerivativeLimitOrder */ interface DerivativeLimitOrder { /** * order_info contains the information of the order * * @generated from protobuf field: injective.exchange.v2.OrderInfo order_info = 1 */ orderInfo?: OrderInfo$1; /** * order types * * @generated from protobuf field: injective.exchange.v2.OrderType order_type = 2 */ orderType: OrderType$1; /** * margin is the margin used by the limit order * * @generated from protobuf field: string margin = 3 */ margin: string; /** * the amount of the quantity remaining fillable * * @generated from protobuf field: string fillable = 4 */ fillable: string; /** * trigger_price is the trigger price used by stop/take orders * * @generated from protobuf field: string trigger_price = 5 */ triggerPrice: string; /** * @generated from protobuf field: bytes order_hash = 6 */ orderHash: Uint8Array; /** * expiration block is the block number at which the order will expire * * @generated from protobuf field: int64 expiration_block = 7 */ expirationBlock: bigint; } /** * @generated from protobuf enum injective.exchange.v2.OrderType */ declare enum OrderType$1 { /** * @generated from protobuf enum value: UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from protobuf enum value: BUY = 1; */ BUY = 1, /** * @generated from protobuf enum value: SELL = 2; */ SELL = 2, /** * @generated from protobuf enum value: STOP_BUY = 3; */ STOP_BUY = 3, /** * @generated from protobuf enum value: STOP_SELL = 4; */ STOP_SELL = 4, /** * @generated from protobuf enum value: TAKE_BUY = 5; */ TAKE_BUY = 5, /** * @generated from protobuf enum value: TAKE_SELL = 6; */ TAKE_SELL = 6, /** * @generated from protobuf enum value: BUY_PO = 7; */ BUY_PO = 7, /** * @generated from protobuf enum value: SELL_PO = 8; */ SELL_PO = 8, /** * @generated from protobuf enum value: BUY_ATOMIC = 9; */ BUY_ATOMIC = 9, /** * @generated from protobuf enum value: SELL_ATOMIC = 10; */ SELL_ATOMIC = 10, } /** * @generated from protobuf enum injective.exchange.v2.OrderMask */ declare enum OrderMask { /** * @generated from protobuf enum value: UNUSED = 0; */ UNUSED = 0, /** * @generated from protobuf enum value: ANY = 1; */ ANY = 1, /** * @generated from protobuf enum value: REGULAR = 2; */ REGULAR = 2, /** * @generated from protobuf enum value: CONDITIONAL = 4; */ CONDITIONAL = 4, /** * for conditional orders means HIGHER * * @generated from protobuf enum value: DIRECTION_BUY_OR_HIGHER = 8; */ DIRECTION_BUY_OR_HIGHER = 8, /** * for conditional orders means LOWER * * @generated from protobuf enum value: DIRECTION_SELL_OR_LOWER = 16; */ DIRECTION_SELL_OR_LOWER = 16, /** * @generated from protobuf enum value: TYPE_MARKET = 32; */ TYPE_MARKET = 32, /** * @generated from protobuf enum value: TYPE_LIMIT = 64; */ TYPE_LIMIT = 64, } /** * @generated from protobuf enum injective.exchange.v2.AtomicMarketOrderAccessLevel */ declare enum AtomicMarketOrderAccessLevel { /** * @generated from protobuf enum value: Nobody = 0; */ Nobody = 0, /** * currently unsupported * * @generated from protobuf enum value: BeginBlockerSmartContractsOnly = 1; */ BeginBlockerSmartContractsOnly = 1, /** * @generated from protobuf enum value: SmartContractsOnly = 2; */ SmartContractsOnly = 2, /** * @generated from protobuf enum value: Everyone = 3; */ Everyone = 3, } /** * @generated MessageType for protobuf message injective.exchange.v2.OrderInfo */ declare const OrderInfo$1 = new OrderInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SpotOrder */ declare const SpotOrder$1 = new SpotOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SpotLimitOrder */ declare const SpotLimitOrder = new SpotLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeOrder */ declare const DerivativeOrder$1 = new DerivativeOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeMarketOrder */ declare const DerivativeMarketOrder = new DerivativeMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeLimitOrder */ declare const DerivativeLimitOrder = new DerivativeLimitOrder$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/exchange_pb.d.ts /** * EnforcedRestrictionsContract defines a contract with its pause event * signature * * @generated from protobuf message injective.exchange.v2.EnforcedRestrictionsContract */ interface EnforcedRestrictionsContract { /** * EVM address of the contract * * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * Pause event signature for the contract (e.g. "Pause()", or * "Pause(address)"). If left empty, it will default to "Pause()". * * @generated from protobuf field: string pause_event_signature = 2 */ pauseEventSignature: string; } /** * @generated from protobuf message injective.exchange.v2.Params */ interface Params$14 { /** * spot_market_instant_listing_fee defines the expedited fee in INJ required * to create a spot market by bypassing governance * * @generated from protobuf field: cosmos.base.v1beta1.Coin spot_market_instant_listing_fee = 1 */ spotMarketInstantListingFee?: Coin$1; /** * derivative_market_instant_listing_fee defines the expedited fee in INJ * required to create a derivative market by bypassing governance * * @generated from protobuf field: cosmos.base.v1beta1.Coin derivative_market_instant_listing_fee = 2 */ derivativeMarketInstantListingFee?: Coin$1; /** * default_spot_maker_fee defines the default exchange trade fee for makers on * a spot market * * @generated from protobuf field: string default_spot_maker_fee_rate = 3 */ defaultSpotMakerFeeRate: string; /** * default_spot_taker_fee_rate defines the default exchange trade fee rate for * takers on a new spot market * * @generated from protobuf field: string default_spot_taker_fee_rate = 4 */ defaultSpotTakerFeeRate: string; /** * default_derivative_maker_fee defines the default exchange trade fee for * makers on a new derivative market * * @generated from protobuf field: string default_derivative_maker_fee_rate = 5 */ defaultDerivativeMakerFeeRate: string; /** * default_derivative_taker_fee defines the default exchange trade fee for * takers on a new derivative market * * @generated from protobuf field: string default_derivative_taker_fee_rate = 6 */ defaultDerivativeTakerFeeRate: string; /** * default_initial_margin_ratio defines the default initial margin ratio on a * new derivative market * * @generated from protobuf field: string default_initial_margin_ratio = 7 */ defaultInitialMarginRatio: string; /** * default_maintenance_margin_ratio defines the default maintenance margin * ratio on a new derivative market * * @generated from protobuf field: string default_maintenance_margin_ratio = 8 */ defaultMaintenanceMarginRatio: string; /** * default_funding_interval defines the default funding interval on a * derivative market * * @generated from protobuf field: int64 default_funding_interval = 9 */ defaultFundingInterval: bigint; /** * funding_multiple defines the timestamp multiple that the funding timestamp * should be a multiple of * * @generated from protobuf field: int64 funding_multiple = 10 */ fundingMultiple: bigint; /** * relayer_fee_share_rate defines the trade fee share percentage that goes to * relayers * * @generated from protobuf field: string relayer_fee_share_rate = 11 */ relayerFeeShareRate: string; /** * default_hourly_funding_rate_cap defines the default maximum absolute value * of the hourly funding rate * * @generated from protobuf field: string default_hourly_funding_rate_cap = 12 */ defaultHourlyFundingRateCap: string; /** * hourly_interest_rate defines the hourly interest rate * * @generated from protobuf field: string default_hourly_interest_rate = 13 */ defaultHourlyInterestRate: string; /** * max_derivative_order_side_count defines the maximum number of derivative * active orders a subaccount can have for a given orderbook side * * @generated from protobuf field: uint32 max_derivative_order_side_count = 14 */ maxDerivativeOrderSideCount: number; /** * inj_reward_staked_requirement_threshold defines the threshold on INJ * rewards after which one also needs staked INJ to receive more * * @generated from protobuf field: string inj_reward_staked_requirement_threshold = 15 */ injRewardStakedRequirementThreshold: string; /** * the trading_rewards_vesting_duration defines the vesting times for trading * rewards * * @generated from protobuf field: int64 trading_rewards_vesting_duration = 16 */ tradingRewardsVestingDuration: bigint; /** * liquidator_reward_share_rate defines the ratio of the split of the surplus * collateral that goes to the liquidator * * @generated from protobuf field: string liquidator_reward_share_rate = 17 */ liquidatorRewardShareRate: string; /** * binary_options_market_instant_listing_fee defines the expedited fee in INJ * required to create a derivative market by bypassing governance * * @generated from protobuf field: cosmos.base.v1beta1.Coin binary_options_market_instant_listing_fee = 18 */ binaryOptionsMarketInstantListingFee?: Coin$1; /** * atomic_market_order_access_level defines the required access permissions * for executing atomic market orders * * @generated from protobuf field: injective.exchange.v2.AtomicMarketOrderAccessLevel atomic_market_order_access_level = 19 */ atomicMarketOrderAccessLevel: AtomicMarketOrderAccessLevel; /** * spot_atomic_market_order_fee_multiplier defines the default multiplier for * executing atomic market orders in spot markets * * @generated from protobuf field: string spot_atomic_market_order_fee_multiplier = 20 */ spotAtomicMarketOrderFeeMultiplier: string; /** * derivative_atomic_market_order_fee_multiplier defines the default * multiplier for executing atomic market orders in derivative markets * * @generated from protobuf field: string derivative_atomic_market_order_fee_multiplier = 21 */ derivativeAtomicMarketOrderFeeMultiplier: string; /** * binary_options_atomic_market_order_fee_multiplier defines the default * multiplier for executing atomic market orders in binary markets * * @generated from protobuf field: string binary_options_atomic_market_order_fee_multiplier = 22 */ binaryOptionsAtomicMarketOrderFeeMultiplier: string; /** * minimal_protocol_fee_rate defines the minimal protocol fee rate * * @generated from protobuf field: string minimal_protocol_fee_rate = 23 */ minimalProtocolFeeRate: string; /** * is_instant_derivative_market_launch_enabled defines whether instant * derivative market launch is enabled * * @generated from protobuf field: bool is_instant_derivative_market_launch_enabled = 24 */ isInstantDerivativeMarketLaunchEnabled: boolean; /** * @generated from protobuf field: int64 post_only_mode_height_threshold = 25 */ postOnlyModeHeightThreshold: bigint; /** * Maximum time in seconds since the last mark price update to allow a * decrease in margin * * @generated from protobuf field: int64 margin_decrease_price_timestamp_threshold_seconds = 26 */ marginDecreasePriceTimestampThresholdSeconds: bigint; /** * List of addresses that are allowed to perform exchange admin operations * * @generated from protobuf field: repeated string exchange_admins = 27 */ exchangeAdmins: string[]; /** * inj_auction_max_cap defines the maximum cap for INJ sent to auction. * Deprecated: the cap is now driven by the auction module's InjBasketMaxCap; * this field is ignored. * * @deprecated * @generated from protobuf field: string inj_auction_max_cap = 28 [deprecated = true] */ injAuctionMaxCap: string; /** * fixed_gas_enabled indicates if msg server will consume fixed gas amount for * certain msg types * * @generated from protobuf field: bool fixed_gas_enabled = 29 */ fixedGasEnabled: boolean; /** * emit_legacy_version_events indicates if events of legacy version types * should be emitted in parallel to the new version events * * @generated from protobuf field: bool emit_legacy_version_events = 30 */ emitLegacyVersionEvents: boolean; /** * default_reduce_margin_ratio defines the default reduce margin ratio on a * new derivative market * * @generated from protobuf field: string default_reduce_margin_ratio = 31 */ defaultReduceMarginRatio: string; /** * post_only_mode_blocks_amount defines the amount of blocks the post only * mode will be enabled after a chain upgrade * * @generated from protobuf field: uint64 post_only_mode_blocks_amount = 33 */ postOnlyModeBlocksAmount: bigint; /** * min_post_only_mode_downtime_duration defines the minimum downtime duration * that must pass before the post only mode is automatically enabled. The * accepted values are the Downtime enum values from the downtime_duration * module * * @generated from protobuf field: string min_post_only_mode_downtime_duration = 34 */ minPostOnlyModeDowntimeDuration: string; /** * post_only_mode_blocks_amount defines the amount of blocks the post only * mode will be enabled after the downtime-detector module detects a chain * downtime * * @generated from protobuf field: uint64 post_only_mode_blocks_amount_after_downtime = 35 */ postOnlyModeBlocksAmountAfterDowntime: bigint; /** * DEPRECATED, left for upgrade purposes * Contracts that exchange will be listening to pause markets denominated in * respective erc20: denoms, with their pause event signatures * * @generated from protobuf field: repeated injective.exchange.v2.EnforcedRestrictionsContract deprecated_enforced_restrictions_contracts = 36 */ deprecatedEnforcedRestrictionsContracts: EnforcedRestrictionsContract[]; /** * white_knight_liquidators defines addresses that can liquidate positions * with a dedicated white-knight reward share in positive payout liquidations * * @generated from protobuf field: repeated string white_knight_liquidators = 37 */ whiteKnightLiquidators: string[]; /** * white_knight_liquidator_reward_share_rate defines the ratio of the split of * the surplus collateral that goes to a white knight liquidator * * @generated from protobuf field: string white_knight_liquidator_reward_share_rate = 38 */ whiteKnightLiquidatorRewardShareRate: string; /** * cross_margin_params groups all cross-margin related parameters. * * @generated from protobuf field: injective.exchange.v2.CrossMarginParams cross_margin_params = 39 */ crossMarginParams?: CrossMarginParams; /** * swap_params groups the native spot swap configuration. * * @generated from protobuf field: injective.exchange.v2.SwapParams swap_params = 40 */ swapParams?: SwapParams; } /** * @generated from protobuf message injective.exchange.v2.SwapParams */ interface SwapParams { /** * enabled is the global switch for the native spot swap execution path. * * @generated from protobuf field: bool enabled = 1 */ enabled: boolean; /** * allowed_markets is the strict allowlist of spot market IDs that swap * routes may traverse. An empty list means no markets are swappable. * * @generated from protobuf field: repeated string allowed_markets = 2 */ allowedMarkets: string[]; } /** * @generated from protobuf message injective.exchange.v2.CrossMarginParams */ interface CrossMarginParams { /** * positive_upnl_haircut_rate defines the haircut applied to * positive unrealized PnL for cross-margin admission checks. * * @generated from protobuf field: string positive_upnl_haircut_rate = 1 */ positiveUpnlHaircutRate: string; /** * fees_buffer defines a fixed notional buffer (quote-denom * units) subtracted from cross-margin equity calculations. * * @generated from protobuf field: string fees_buffer = 2 */ feesBuffer: string; /** * enabled_quote_denoms defines the quote denoms that are * eligible for cross-margin pools. * * @generated from protobuf field: repeated string enabled_quote_denoms = 3 */ enabledQuoteDenoms: string[]; /** * perpetual_enabled defines whether perpetual derivative markets * are eligible for cross margin. * * @generated from protobuf field: bool perpetual_enabled = 4 */ perpetualEnabled: boolean; /** * expiry_enabled defines whether expiry futures derivative * markets are eligible for cross margin. * * @generated from protobuf field: bool expiry_enabled = 5 */ expiryEnabled: boolean; /** * max_active_derivative_markets_per_pool defines the maximum * number of active derivative markets (positions or orders) a cross-margin * subaccount may have within a single quote-denom pool. * * @generated from protobuf field: uint32 max_active_derivative_markets_per_pool = 6 */ maxActiveDerivativeMarketsPerPool: number; /** * emergency_paused defines whether cross margin is in emergency * pause mode. When true: * - All cross-margin orders (including reduce-only) are blocked * - Profile switching involving cross mode is blocked * - Liquidations are still allowed * - Withdrawals are allowed up to isolated-margin maintenance level * * @generated from protobuf field: bool emergency_paused = 7 */ emergencyPaused: boolean; } /** * @generated from protobuf message injective.exchange.v2.MidPriceAndTOB */ interface MidPriceAndTOB { /** * mid price of the market (in human readable format) * * @generated from protobuf field: string mid_price = 1 */ midPrice: string; /** * best buy price of the market (in human readable format) * * @generated from protobuf field: string best_buy_price = 2 */ bestBuyPrice: string; /** * best sell price of the market (in human readable format) * * @generated from protobuf field: string best_sell_price = 3 */ bestSellPrice: string; } /** * A subaccount's deposit for a given base currency * * @generated from protobuf message injective.exchange.v2.Deposit */ interface Deposit$1 { /** * the available balance (in chain format) * * @generated from protobuf field: string available_balance = 1 */ availableBalance: string; /** * the total balance (in chain format) * * @generated from protobuf field: string total_balance = 2 */ totalBalance: string; } /** * @generated from protobuf message injective.exchange.v2.SubaccountTradeNonce */ interface SubaccountTradeNonce { /** * @generated from protobuf field: uint32 nonce = 1 */ nonce: number; } /** * @generated from protobuf message injective.exchange.v2.SubaccountOrder */ interface SubaccountOrder { /** * price of the order * * @generated from protobuf field: string price = 1 */ price: string; /** * the amount of the quantity remaining fillable * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * @generated from protobuf field: bool isReduceOnly = 3 */ isReduceOnly: boolean; /** * @generated from protobuf field: string cid = 4 */ cid: string; } /** * @generated from protobuf message injective.exchange.v2.SubaccountOrderData */ interface SubaccountOrderData { /** * @generated from protobuf field: injective.exchange.v2.SubaccountOrder order = 1 */ order?: SubaccountOrder; /** * @generated from protobuf field: bytes order_hash = 2 */ orderHash: Uint8Array; } /** * @generated from protobuf message injective.exchange.v2.Position */ interface Position { /** * True if the position is long. False if the position is short. * * @generated from protobuf field: bool isLong = 1 */ isLong: boolean; /** * The quantity of the position (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * The entry price of the position (in human readable format) * * @generated from protobuf field: string entry_price = 3 */ entryPrice: string; /** * The margin of the position (in human readable format) * * @generated from protobuf field: string margin = 4 */ margin: string; /** * The cumulative funding * * @generated from protobuf field: string cumulative_funding_entry = 5 */ cumulativeFundingEntry: string; } /** * @generated from protobuf message injective.exchange.v2.Balance */ interface Balance { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the denom of the balance * * @generated from protobuf field: string denom = 2 */ denom: string; /** * the token deposits details * * @generated from protobuf field: injective.exchange.v2.Deposit deposits = 3 */ deposits?: Deposit$1; } /** * @generated from protobuf message injective.exchange.v2.DerivativePosition */ interface DerivativePosition { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the position details * * @generated from protobuf field: injective.exchange.v2.Position position = 3 */ position?: Position; } /** * @generated from protobuf message injective.exchange.v2.PointsMultiplier */ interface PointsMultiplier$1 { /** * @generated from protobuf field: string maker_points_multiplier = 1 */ makerPointsMultiplier: string; /** * @generated from protobuf field: string taker_points_multiplier = 2 */ takerPointsMultiplier: string; } /** * @generated from protobuf message injective.exchange.v2.TradingRewardCampaignBoostInfo */ interface TradingRewardCampaignBoostInfo$1 { /** * @generated from protobuf field: repeated string boosted_spot_market_ids = 1 */ boostedSpotMarketIds: string[]; /** * @generated from protobuf field: repeated injective.exchange.v2.PointsMultiplier spot_market_multipliers = 2 */ spotMarketMultipliers: PointsMultiplier$1[]; /** * @generated from protobuf field: repeated string boosted_derivative_market_ids = 3 */ boostedDerivativeMarketIds: string[]; /** * @generated from protobuf field: repeated injective.exchange.v2.PointsMultiplier derivative_market_multipliers = 4 */ derivativeMarketMultipliers: PointsMultiplier$1[]; } /** * @generated from protobuf message injective.exchange.v2.CampaignRewardPool */ interface CampaignRewardPool$1 { /** * the campaign start timestamp in seconds * * @generated from protobuf field: int64 start_timestamp = 1 */ startTimestamp: bigint; /** * max_campaign_rewards are the maximum reward amounts to be disbursed at the * end of the campaign * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin max_campaign_rewards = 2 */ maxCampaignRewards: Coin$1[]; } /** * @generated from protobuf message injective.exchange.v2.TradingRewardCampaignInfo */ interface TradingRewardCampaignInfo$1 { /** * number of seconds of the duration of each campaign * * @generated from protobuf field: int64 campaign_duration_seconds = 1 */ campaignDurationSeconds: bigint; /** * the trading fee quote denoms which will be counted for the rewards * * @generated from protobuf field: repeated string quote_denoms = 2 */ quoteDenoms: string[]; /** * the optional boost info for markets * * @generated from protobuf field: injective.exchange.v2.TradingRewardCampaignBoostInfo trading_reward_boost_info = 3 */ tradingRewardBoostInfo?: TradingRewardCampaignBoostInfo$1; /** * the marketIDs which are disqualified from being rewarded * * @generated from protobuf field: repeated string disqualified_market_ids = 4 */ disqualifiedMarketIds: string[]; } /** * @generated from protobuf message injective.exchange.v2.FeeDiscountTierInfo */ interface FeeDiscountTierInfo$1 { /** * the maker discount rate * * @generated from protobuf field: string maker_discount_rate = 1 */ makerDiscountRate: string; /** * the taker discount rate * * @generated from protobuf field: string taker_discount_rate = 2 */ takerDiscountRate: string; /** * the staked amount required to qualify for the discount (in chain format) * * @generated from protobuf field: string staked_amount = 3 */ stakedAmount: string; /** * the volume required to qualify for the discount (in human readable format) * * @generated from protobuf field: string volume = 4 */ volume: string; } /** * @generated from protobuf message injective.exchange.v2.FeeDiscountSchedule */ interface FeeDiscountSchedule$1 { /** * the bucket number * * @generated from protobuf field: uint64 bucket_count = 1 */ bucketCount: bigint; /** * the bucket duration in seconds * * @generated from protobuf field: int64 bucket_duration = 2 */ bucketDuration: bigint; /** * the trading fee quote denoms which will be counted for the fee paid * contribution * * @generated from protobuf field: repeated string quote_denoms = 3 */ quoteDenoms: string[]; /** * the fee discount tiers * * @generated from protobuf field: repeated injective.exchange.v2.FeeDiscountTierInfo tier_infos = 4 */ tierInfos: FeeDiscountTierInfo$1[]; /** * the marketIDs which are disqualified from contributing to the fee paid * amount * * @generated from protobuf field: repeated string disqualified_market_ids = 5 */ disqualifiedMarketIds: string[]; } /** * @generated from protobuf message injective.exchange.v2.FeeDiscountTierTTL */ interface FeeDiscountTierTTL$1 { /** * the tier number * * @generated from protobuf field: uint64 tier = 1 */ tier: bigint; /** * the TTL timestamp in seconds * * @generated from protobuf field: int64 ttl_timestamp = 2 */ ttlTimestamp: bigint; } /** * @generated from protobuf message injective.exchange.v2.TradeRecords */ interface TradeRecords { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: repeated injective.exchange.v2.TradeRecord latest_trade_records = 2 */ latestTradeRecords: TradeRecord[]; } /** * @generated from protobuf message injective.exchange.v2.TradeRecord */ interface TradeRecord { /** * the timestamp of the trade * * @generated from protobuf field: int64 timestamp = 1 */ timestamp: bigint; /** * the price of the trade (in human readable format) * * @generated from protobuf field: string price = 2 */ price: string; /** * the quantity of the trade (in human readable format) * * @generated from protobuf field: string quantity = 3 */ quantity: string; } /** * @generated from protobuf message injective.exchange.v2.Level */ interface Level { /** * price (in human readable format) * * @generated from protobuf field: string p = 1 */ p: string; /** * quantity (in human readable format) * * @generated from protobuf field: string q = 2 */ q: string; } /** * @generated from protobuf message injective.exchange.v2.AggregateSubaccountVolumeRecord */ interface AggregateSubaccountVolumeRecord { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the subaccount volumes for each market * * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume market_volumes = 2 */ marketVolumes: MarketVolume[]; } /** * @generated from protobuf message injective.exchange.v2.AggregateAccountVolumeRecord */ interface AggregateAccountVolumeRecord { /** * account the volume belongs to * * @generated from protobuf field: string account = 1 */ account: string; /** * the aggregate volumes for each market * * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume market_volumes = 2 */ marketVolumes: MarketVolume[]; } /** * @generated from protobuf message injective.exchange.v2.DenomDecimals */ interface DenomDecimals { /** * the denom of the token * * @generated from protobuf field: string denom = 1 */ denom: string; /** * the decimals of the token * * @generated from protobuf field: uint64 decimals = 2 */ decimals: bigint; } /** * @generated from protobuf message injective.exchange.v2.GrantAuthorization */ interface GrantAuthorization$1 { /** * the grantee address * * @generated from protobuf field: string grantee = 1 */ grantee: string; /** * the amount of stake granted (INJ in chain format) * * @generated from protobuf field: string amount = 2 */ amount: string; } /** * @generated from protobuf message injective.exchange.v2.ActiveGrant */ interface ActiveGrant { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; } /** * @generated from protobuf message injective.exchange.v2.EffectiveGrant */ interface EffectiveGrant { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string net_granted_stake = 2 */ netGrantedStake: string; /** * @generated from protobuf field: bool is_valid = 3 */ isValid: boolean; } /** * @generated from protobuf message injective.exchange.v2.DenomMinNotional */ interface DenomMinNotional { /** * the denom of the token * * @generated from protobuf field: string denom = 1 */ denom: string; /** * the minimum notional value for the token (in human readable format) * * @generated from protobuf field: string min_notional = 2 */ minNotional: string; } /** * @generated from protobuf message injective.exchange.v2.SubaccountRiskProfile */ interface SubaccountRiskProfile { /** * @generated from protobuf field: injective.exchange.v2.RiskMode mode = 1 */ mode: RiskMode; /** * @generated from protobuf field: injective.exchange.v2.ReservationPolicy reservation_policy = 2 */ reservationPolicy: ReservationPolicy; /** * credit_line_id is reserved for future use and currently must be empty. * * @generated from protobuf field: string credit_line_id = 3 */ creditLineId: string; } /** * @generated from protobuf enum injective.exchange.v2.RiskMode */ declare enum RiskMode { /** * @generated from protobuf enum value: RISK_MODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from protobuf enum value: RISK_MODE_ISOLATED = 1; */ ISOLATED = 1, /** * @generated from protobuf enum value: RISK_MODE_CROSS = 2; */ CROSS = 2, /** * reserved for future use (not implemented) * * @generated from protobuf enum value: RISK_MODE_PORTFOLIO = 3; */ PORTFOLIO = 3, } /** * @generated from protobuf enum injective.exchange.v2.ReservationPolicy */ declare enum ReservationPolicy { /** * @generated from protobuf enum value: RESERVATION_POLICY_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from protobuf enum value: RESERVATION_POLICY_FULL_HOLD = 1; */ FULL_HOLD = 1, /** * reserved for future use (not implemented) * * @generated from protobuf enum value: RESERVATION_POLICY_PARTIAL_HOLD = 2; */ PARTIAL_HOLD = 2, /** * reserved for future use (not implemented) * * @generated from protobuf enum value: RESERVATION_POLICY_NO_HOLD = 3; */ NO_HOLD = 3, } /** * @generated MessageType for protobuf message injective.exchange.v2.EnforcedRestrictionsContract */ declare const EnforcedRestrictionsContract = new EnforcedRestrictionsContract$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.Params */ declare const Params$14 = new Params$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SwapParams */ declare const SwapParams = new SwapParams$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.CrossMarginParams */ declare const CrossMarginParams = new CrossMarginParams$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MidPriceAndTOB */ declare const MidPriceAndTOB = new MidPriceAndTOB$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.Deposit */ declare const Deposit$1 = new Deposit$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountTradeNonce */ declare const SubaccountTradeNonce = new SubaccountTradeNonce$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountOrder */ declare const SubaccountOrder = new SubaccountOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountOrderData */ declare const SubaccountOrderData = new SubaccountOrderData$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.Position */ declare const Position = new Position$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.Balance */ declare const Balance = new Balance$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativePosition */ declare const DerivativePosition = new DerivativePosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.PointsMultiplier */ declare const PointsMultiplier$1 = new PointsMultiplier$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradingRewardCampaignBoostInfo */ declare const TradingRewardCampaignBoostInfo$1 = new TradingRewardCampaignBoostInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.CampaignRewardPool */ declare const CampaignRewardPool$1 = new CampaignRewardPool$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradingRewardCampaignInfo */ declare const TradingRewardCampaignInfo$1 = new TradingRewardCampaignInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FeeDiscountTierInfo */ declare const FeeDiscountTierInfo$1 = new FeeDiscountTierInfo$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FeeDiscountSchedule */ declare const FeeDiscountSchedule$1 = new FeeDiscountSchedule$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FeeDiscountTierTTL */ declare const FeeDiscountTierTTL$1 = new FeeDiscountTierTTL$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradeRecords */ declare const TradeRecords = new TradeRecords$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradeRecord */ declare const TradeRecord = new TradeRecord$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.Level */ declare const Level = new Level$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.AggregateSubaccountVolumeRecord */ declare const AggregateSubaccountVolumeRecord = new AggregateSubaccountVolumeRecord$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.AggregateAccountVolumeRecord */ declare const AggregateAccountVolumeRecord = new AggregateAccountVolumeRecord$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DenomDecimals */ declare const DenomDecimals = new DenomDecimals$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.GrantAuthorization */ declare const GrantAuthorization$1 = new GrantAuthorization$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.ActiveGrant */ declare const ActiveGrant = new ActiveGrant$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.EffectiveGrant */ declare const EffectiveGrant = new EffectiveGrant$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DenomMinNotional */ declare const DenomMinNotional = new DenomMinNotional$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountRiskProfile */ declare const SubaccountRiskProfile = new SubaccountRiskProfile$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/proposal_pb.d.ts /** * PerpetualMarketLaunchProposal defines a SDK message for proposing a new * perpetual futures market through governance * * @generated from protobuf message injective.exchange.v2.PerpetualMarketLaunchProposal */ interface PerpetualMarketLaunchProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * Ticker for the derivative market. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * type of coin to use as the base currency * * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 5 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 6 */ oracleQuote: string; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 7 */ oracleScaleFactor: number; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 8 */ oracleType: OracleType; /** * initial_margin_ratio defines the initial margin ratio for the derivative * market * * @generated from protobuf field: string initial_margin_ratio = 9 */ initialMarginRatio: string; /** * maintenance_margin_ratio defines the maintenance margin ratio for the * derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 10 */ maintenanceMarginRatio: string; /** * maker_fee_rate defines the exchange trade fee for makers for the derivative * market * * @generated from protobuf field: string maker_fee_rate = 11 */ makerFeeRate: string; /** * taker_fee_rate defines the exchange trade fee for takers for the derivative * market * * @generated from protobuf field: string taker_fee_rate = 12 */ takerFeeRate: string; /** * min_price_tick_size defines the minimum tick size of the order's price and * margin * * @generated from protobuf field: string min_price_tick_size = 13 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 14 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 15 */ minNotional: string; /** * @generated from protobuf field: injective.exchange.v2.AdminInfo admin_info = 16 */ adminInfo?: AdminInfo; /** * reduce_margin_ratio defines the ratio of the margin that is reduced * * @generated from protobuf field: string reduce_margin_ratio = 17 */ reduceMarginRatio: string; /** * open_notional_cap defines the maximum open notional for the market * * @generated from protobuf field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 18 */ openNotionalCap?: OpenNotionalCap$2; /** * cross_margin_eligible marks the market as eligible for cross-margin * * @generated from protobuf field: bool cross_margin_eligible = 19 */ crossMarginEligible: boolean; } /** * @generated from protobuf message injective.exchange.v2.AdminInfo */ interface AdminInfo { /** * @generated from protobuf field: string admin = 1 */ admin: string; /** * @generated from protobuf field: uint32 admin_permissions = 2 */ adminPermissions: number; } /** * CrossMarginEligibility is a tri-state enum used in * DerivativeMarketParamUpdateProposal to control per-market cross-margin * eligibility. UNSPECIFIED means "no update" (the market's current value is * preserved), following the same pattern as DisableMinimalProtocolFeeUpdate. * * @generated from protobuf enum injective.exchange.v2.CrossMarginEligibility */ declare enum CrossMarginEligibility { /** * no update — preserves existing value * * @generated from protobuf enum value: CM_ELIGIBILITY_UNSPECIFIED = 0; */ CM_ELIGIBILITY_UNSPECIFIED = 0, /** * market can participate in cross-margin pools * * @generated from protobuf enum value: CM_ELIGIBILITY_ELIGIBLE = 1; */ CM_ELIGIBILITY_ELIGIBLE = 1, /** * market is excluded from cross-margin pools * * @generated from protobuf enum value: CM_ELIGIBILITY_INELIGIBLE = 2; */ CM_ELIGIBILITY_INELIGIBLE = 2, } /** * @generated MessageType for protobuf message injective.exchange.v2.PerpetualMarketLaunchProposal */ declare const PerpetualMarketLaunchProposal = new PerpetualMarketLaunchProposal$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.AdminInfo */ declare const AdminInfo = new AdminInfo$Type(); //#endregion //#region src/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.d.ts declare namespace MsgSubmitProposalPerpetualMarketLaunchV2 { interface Params { market: { title: string; description: string; ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; oracleScaleFactor: number; oracleType: OracleType; initialMarginRatio: string; maintenanceMarginRatio: string; makerFeeRate: string; takerFeeRate: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; reduceMarginRatio: string; openNotionalCap?: string; adminInfo?: { admin: string; adminPermissions: number; }; crossMarginEligible: boolean; }; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitProposalPerpetualMarketLaunchV2 extends MsgBase { static fromJSON(params: MsgSubmitProposalPerpetualMarketLaunchV2.Params): MsgSubmitProposalPerpetualMarketLaunchV2; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: AdminInfo | null; reduce_margin_ratio: string; open_notional_cap: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; }; cross_margin_eligible: boolean; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: AdminInfo | null; reduce_margin_ratio: string; open_notional_cap: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; }; cross_margin_eligible: boolean; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toEip712(): { type: string; value: { content: { type: string; value: { initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_notional: string; min_quantity_tick_size: string; reduce_margin_ratio: string; open_notional_cap: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; }; cross_margin_eligible: boolean; title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; admin_info: AdminInfo | null; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toEip712V2(): { content: any; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts declare namespace MsgSubmitProposalExpiryFuturesMarketLaunch { interface Params { market: { title: string; description: string; ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; expiry: number; oracleScaleFactor: number; oracleType: OracleType; initialMarginRatio: string; maintenanceMarginRatio: string; makerFeeRate: string; takerFeeRate: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; adminInfo?: { admin: string; adminPermissions: number; }; }; proposer: string; deposit: { amount: string; denom: string; }; } type Proto = MsgSubmitProposal$1; type Object = Omit & { content: { type_url: string; value: any; }; }; } /** * @category Messages */ declare class MsgSubmitProposalExpiryFuturesMarketLaunch extends MsgBase { static fromJSON(params: MsgSubmitProposalExpiryFuturesMarketLaunch.Params): MsgSubmitProposalExpiryFuturesMarketLaunch; toProto(): MsgSubmitProposal$1; toData(): { content?: Any; initialDeposit: Coin$1[]; proposer: string; '@type': string; }; toAmino(): { type: string; value: { content: { type: string; value: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; expiry: bigint; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: { admin: string; admin_permissions: number; } | null; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toWeb3Gw(): { content: { title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; expiry: bigint; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; admin_info: { admin: string; admin_permissions: number; } | null; '@type': string; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toEip712(): { type: string; value: { content: { type: string; value: { expiry: string; initial_margin_ratio: string; maintenance_margin_ratio: string; maker_fee_rate: string; taker_fee_rate: string; min_price_tick_size: string; min_notional: string; min_quantity_tick_size: string; title: string; description: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_scale_factor: number; oracle_type: OracleType; admin_info: { admin: string; admin_permissions: number; } | null; }; }; initial_deposit: { denom: string; amount: string; }[]; proposer: string; }; }; toEip712V2(): { content: any; initial_deposit: { denom: string; amount: string; }[]; proposer: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSubmitProposal$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/params/v1beta1/params_pb.d.ts /** * ParameterChangeProposal defines a proposal to change one or more parameters. * * @generated from protobuf message cosmos.params.v1beta1.ParameterChangeProposal */ interface ParameterChangeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: repeated cosmos.params.v1beta1.ParamChange changes = 3 */ changes: ParamChange[]; } /** * ParamChange defines an individual parameter change, for use in * ParameterChangeProposal. * * @generated from protobuf message cosmos.params.v1beta1.ParamChange */ interface ParamChange { /** * @generated from protobuf field: string subspace = 1 */ subspace: string; /** * @generated from protobuf field: string key = 2 */ key: string; /** * @generated from protobuf field: string value = 3 */ value: string; } /** * @generated MessageType for protobuf message cosmos.params.v1beta1.ParameterChangeProposal */ declare const ParameterChangeProposal = new ParameterChangeProposal$Type(); /** * @generated MessageType for protobuf message cosmos.params.v1beta1.ParamChange */ declare const ParamChange = new ParamChange$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/upgrade/v1beta1/upgrade_pb.d.ts /** * Plan specifies information about a planned upgrade and when it should occur. * * @generated from protobuf message cosmos.upgrade.v1beta1.Plan */ interface Plan { /** * Sets the name for the upgrade. This name will be used by the upgraded * version of the software to apply any special "on-upgrade" commands during * the first BeginBlock method after the upgrade is applied. It is also used * to detect whether a software version can handle a given upgrade. If no * upgrade handler with this name has been set in the software, it will be * assumed that the software is out-of-date when the upgrade Time or Height is * reached and the software will exit. * * @generated from protobuf field: string name = 1 */ name: string; /** * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic * has been removed from the SDK. * If this field is not empty, an error will be thrown. * * @deprecated * @generated from protobuf field: google.protobuf.Timestamp time = 2 [deprecated = true] */ time?: Timestamp; /** * The height at which the upgrade must be performed. * * @generated from protobuf field: int64 height = 3 */ height: bigint; /** * Any application specific upgrade info to be included on-chain * such as a git commit that validators could automatically upgrade to * * @generated from protobuf field: string info = 4 */ info: string; /** * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been * moved to the IBC module in the sub module 02-client. * If this field is not empty, an error will be thrown. * * @deprecated * @generated from protobuf field: google.protobuf.Any upgraded_client_state = 5 [deprecated = true] */ upgradedClientState?: Any; } /** * SoftwareUpgradeProposal is a gov Content type for initiating a software * upgrade. * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov * proposals, see MsgSoftwareUpgrade. * * @deprecated * @generated from protobuf message cosmos.upgrade.v1beta1.SoftwareUpgradeProposal */ interface SoftwareUpgradeProposal { /** * title of the proposal * * @generated from protobuf field: string title = 1 */ title: string; /** * description of the proposal * * @generated from protobuf field: string description = 2 */ description: string; /** * plan of the proposal * * @generated from protobuf field: cosmos.upgrade.v1beta1.Plan plan = 3 */ plan?: Plan; } /** * @generated MessageType for protobuf message cosmos.upgrade.v1beta1.Plan */ declare const Plan = new Plan$Type(); /** * @deprecated * @generated MessageType for protobuf message cosmos.upgrade.v1beta1.SoftwareUpgradeProposal */ declare const SoftwareUpgradeProposal = new SoftwareUpgradeProposal$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/proposal_pb.d.ts /** * Deprecated: Band oracle support was removed. This message is kept for * backward compatibility to decode historical proposals. * * @deprecated * @generated from protobuf message injective.oracle.v1beta1.GrantBandOraclePrivilegeProposal */ interface GrantBandOraclePrivilegeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: repeated string relayers = 3 */ relayers: string[]; } /** * Deprecated: Band oracle support was removed. This message is kept for * backward compatibility to decode historical proposals. * * @deprecated * @generated from protobuf message injective.oracle.v1beta1.RevokeBandOraclePrivilegeProposal */ interface RevokeBandOraclePrivilegeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: repeated string relayers = 3 */ relayers: string[]; } /** * @generated from protobuf message injective.oracle.v1beta1.GrantPriceFeederPrivilegeProposal */ interface GrantPriceFeederPrivilegeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: string base = 3 */ base: string; /** * @generated from protobuf field: string quote = 4 */ quote: string; /** * @generated from protobuf field: repeated string relayers = 5 */ relayers: string[]; } /** * @generated from protobuf message injective.oracle.v1beta1.GrantProviderPrivilegeProposal */ interface GrantProviderPrivilegeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: string provider = 3 */ provider: string; /** * @generated from protobuf field: repeated string relayers = 4 */ relayers: string[]; } /** * @generated from protobuf message injective.oracle.v1beta1.RevokePriceFeederPrivilegeProposal */ interface RevokePriceFeederPrivilegeProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: string base = 3 */ base: string; /** * @generated from protobuf field: string quote = 4 */ quote: string; /** * @generated from protobuf field: repeated string relayers = 5 */ relayers: string[]; } /** * Deprecated: Band oracle support was removed. This message is kept for * backward compatibility to decode historical proposals. * * @deprecated * @generated from protobuf message injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal */ interface AuthorizeBandOracleRequestProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.oracle.v1beta1.BandOracleRequest request = 3 */ request?: BandOracleRequest; } /** * Deprecated: Band oracle support was removed. This message is kept for * backward compatibility to decode historical proposals. * * @deprecated * @generated from protobuf message injective.oracle.v1beta1.EnableBandIBCProposal */ interface EnableBandIBCProposal { /** * @generated from protobuf field: string title = 1 */ title: string; /** * @generated from protobuf field: string description = 2 */ description: string; /** * @generated from protobuf field: injective.oracle.v1beta1.BandIBCParams band_ibc_params = 3 */ bandIbcParams?: BandIBCParams; } /** * @deprecated * @generated MessageType for protobuf message injective.oracle.v1beta1.GrantBandOraclePrivilegeProposal */ declare const GrantBandOraclePrivilegeProposal = new GrantBandOraclePrivilegeProposal$Type(); /** * @deprecated * @generated MessageType for protobuf message injective.oracle.v1beta1.RevokeBandOraclePrivilegeProposal */ declare const RevokeBandOraclePrivilegeProposal = new RevokeBandOraclePrivilegeProposal$Type(); /** * @generated MessageType for protobuf message injective.oracle.v1beta1.GrantPriceFeederPrivilegeProposal */ declare const GrantPriceFeederPrivilegeProposal = new GrantPriceFeederPrivilegeProposal$Type(); /** * @generated MessageType for protobuf message injective.oracle.v1beta1.GrantProviderPrivilegeProposal */ declare const GrantProviderPrivilegeProposal = new GrantProviderPrivilegeProposal$Type(); /** * @generated MessageType for protobuf message injective.oracle.v1beta1.RevokePriceFeederPrivilegeProposal */ declare const RevokePriceFeederPrivilegeProposal = new RevokePriceFeederPrivilegeProposal$Type(); /** * @deprecated * @generated MessageType for protobuf message injective.oracle.v1beta1.AuthorizeBandOracleRequestProposal */ declare const AuthorizeBandOracleRequestProposal = new AuthorizeBandOracleRequestProposal$Type(); /** * @deprecated * @generated MessageType for protobuf message injective.oracle.v1beta1.EnableBandIBCProposal */ declare const EnableBandIBCProposal = new EnableBandIBCProposal$Type(); //#endregion //#region src/core/modules/gov/ProposalContentDecomposer.d.ts declare class ProposalDecomposer { static getMsgExecLegacyContent(content: Uint8Array): MsgExecLegacyContent; static grantBandOraclePrivilegeProposal(content: Uint8Array): GrantBandOraclePrivilegeProposal; static grantProviderPrivilegeProposal(content: Uint8Array): GrantProviderPrivilegeProposal; static removeBandOraclePrivilegeProposal(content: Uint8Array): RevokeBandOraclePrivilegeProposal; static grantPriceFeederPrivilegeProposal(content: Uint8Array): GrantPriceFeederPrivilegeProposal; static removePriceFeederPrivilegeProposal(content: Uint8Array): RevokePriceFeederPrivilegeProposal; static textProposal(content: Uint8Array): TextProposal; static SoftwareUpgrade(content: Uint8Array): SoftwareUpgradeProposal; static spotMarketLaunch(content: Uint8Array): SpotMarketLaunchProposal; static exchangeEnableProposal(content: Uint8Array): ExchangeEnableProposal; static spotMarketUpdate(content: Uint8Array): SpotMarketParamUpdateProposal; static perpetualMarketLaunchV1Beta1(content: Uint8Array): PerpetualMarketLaunchProposal$1; static perpetualMarketLaunchV2(content: Uint8Array): PerpetualMarketLaunchProposal; static expiryFuturesMarketLaunch(content: Uint8Array): ExpiryFuturesMarketLaunchProposal; static derivativeMarketUpdate(content: Uint8Array): DerivativeMarketParamUpdateProposal; static FeeDiscount(content: Uint8Array): FeeDiscountProposal; static TradingRewardCampaignLaunch(content: Uint8Array): TradingRewardCampaignLaunchProposal; static TradingRewardCampaignUpdate(content: Uint8Array): TradingRewardCampaignUpdateProposal; static parametersChange(content: Uint8Array): ParameterChangeProposal; static EnableBandIBC(content: Uint8Array): EnableBandIBCProposal; static AuthorizeBandOracleRequest(content: Uint8Array): AuthorizeBandOracleRequestProposal; } //#endregion //#region src/core/modules/gov/index.d.ts type MsgSubmitProposal = MsgSubmitTextProposal | MsgSubmitGenericProposal | MsgSubmitProposalSpotMarketLaunch | MsgSubmitProposalPerpetualMarketLaunch | MsgSubmitProposalSpotMarketParamUpdate | MsgSubmitProposalPerpetualMarketLaunchV2 | MsgSubmitProposalExpiryFuturesMarketLaunch | MsgGrantProviderPrivilegeProposal; //#endregion //#region src/core/modules/authz/msgs/MsgExec.d.ts declare namespace MsgExec { interface Params { grantee: string; msgs: Msgs | Msgs[]; } type Proto = MsgExec$1; type Object = Omit & { msgs: any; }; } /** * @category Messages */ declare class MsgExec extends MsgBase { static fromJSON(params: MsgExec.Params): MsgExec; toProto(): MsgExec$1; toData(): { grantee: string; msgs: Any[]; '@type': string; }; toAmino(): { type: string; value: MsgExec.Object; }; toEip712V2(): { '@type': string; grantee: string; msgs: any[]; }; toWeb3Gw(): { '@type': string; grantee: string; msgs: any[]; }; toDirectSign(): { type: "/cosmos.authz.v1beta1.MsgExec"; message: MsgExec$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/ibc/core/client/v1/client_pb.d.ts /** * Height is a monotonically increasing data type * that can be compared against another Height for the purposes of updating and * freezing clients * * Normally the RevisionHeight is incremented at each height while keeping * RevisionNumber the same. However some consensus algorithms may choose to * reset the height in certain conditions e.g. hard forks, state-machine * breaking changes In these cases, the RevisionNumber is incremented so that * height continues to be monitonically increasing even as the RevisionHeight * gets reset * * @generated from protobuf message ibc.core.client.v1.Height */ interface Height { /** * the revision that the client is currently on * * @generated from protobuf field: uint64 revision_number = 1 */ revisionNumber: bigint; /** * the height within the given revision * * @generated from protobuf field: uint64 revision_height = 2 */ revisionHeight: bigint; } /** * @generated MessageType for protobuf message ibc.core.client.v1.Height */ declare const Height = new Height$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/ibc/applications/transfer/v1/transfer_pb.d.ts /** * DenomTrace contains the base denomination for ICS20 fungible tokens and the * source tracing information path. * * @generated from protobuf message ibc.applications.transfer.v1.DenomTrace */ interface DenomTrace { /** * path defines the chain of port/channel identifiers used for tracing the * source of the fungible token. * * @generated from protobuf field: string path = 1 */ path: string; /** * base denomination of the relayed fungible token. * * @generated from protobuf field: string base_denom = 2 */ baseDenom: string; } /** * @generated MessageType for protobuf message ibc.applications.transfer.v1.DenomTrace */ declare const DenomTrace = new DenomTrace$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/ibc/applications/transfer/v1/tx_pb.d.ts /** * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between * ICS20 enabled chains. See ICS Spec here: * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures * * @generated from protobuf message ibc.applications.transfer.v1.MsgTransfer */ interface MsgTransfer$1 { /** * the port on which the packet will be sent * * @generated from protobuf field: string source_port = 1 */ sourcePort: string; /** * the channel by which the packet will be sent * * @generated from protobuf field: string source_channel = 2 */ sourceChannel: string; /** * the tokens to be transferred * * @generated from protobuf field: cosmos.base.v1beta1.Coin token = 3 */ token?: Coin$1; /** * the sender address * * @generated from protobuf field: string sender = 4 */ sender: string; /** * the recipient address on the destination chain * * @generated from protobuf field: string receiver = 5 */ receiver: string; /** * Timeout height relative to the current block height. * The timeout is disabled when set to 0. * * @generated from protobuf field: ibc.core.client.v1.Height timeout_height = 6 */ timeoutHeight?: Height; /** * Timeout timestamp in absolute nanoseconds since unix epoch. * The timeout is disabled when set to 0. * * @generated from protobuf field: uint64 timeout_timestamp = 7 */ timeoutTimestamp: bigint; /** * optional memo * * @generated from protobuf field: string memo = 8 */ memo: string; } /** * @generated MessageType for protobuf message ibc.applications.transfer.v1.MsgTransfer */ declare const MsgTransfer$1 = new MsgTransfer$Type(); //#endregion //#region src/core/modules/ibc/msgs/MsgTransfer.d.ts declare namespace MsgTransfer { interface Params { amount: { denom: string; amount: string; }; memo?: string; sender: string; port: string; receiver: string; channelId: string; timeout?: number; height?: { revisionHeight: number; revisionNumber: number; }; } type Proto = MsgTransfer$1; } /** * @category Messages */ declare class MsgTransfer extends MsgBase { static fromJSON(params: MsgTransfer.Params): MsgTransfer; toProto(): MsgTransfer$1; toData(): { sourcePort: string; sourceChannel: string; token?: Coin$1; sender: string; receiver: string; timeoutHeight?: Height; timeoutTimestamp: bigint; memo: string; '@type': string; }; toAmino(): { type: string; value: { source_port: string; source_channel: string; token: Coin$1 | undefined; sender: string; receiver: string; timeout_height: { revision_number: string; revision_height: string; } | undefined; timeout_timestamp: string | undefined; memo: string; }; }; toWeb3Gw(): { source_port: string; source_channel: string; token: Coin$1 | undefined; sender: string; receiver: string; timeout_height: { revision_number: string; revision_height: string; } | undefined; timeout_timestamp: string | undefined; memo: string; '@type': string; }; toDirectSign(): { type: string; message: MsgTransfer$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/tokenfactory/v1beta1/params_pb.d.ts /** * Params defines the parameters for the tokenfactory module. * * @generated from protobuf message injective.tokenfactory.v1beta1.Params */ interface Params$1 { /** * The denom creation fee * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1 */ denomCreationFee: Coin$1[]; } /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.Params */ declare const Params$1 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/tokenfactory/v1beta1/tx_pb.d.ts /** * MsgCreateDenom defines the message structure for the CreateDenom gRPC service * method. It allows an account to create a new denom. It requires a sender * address and a sub denomination. The (sender_address, sub_denomination) tuple * must be unique and cannot be re-used. * * The resulting denom created is defined as * . The resulting denom's admin is * originally set to be the creator, but this can be changed later. The token * denom does not indicate the current admin. * * @generated from protobuf message injective.tokenfactory.v1beta1.MsgCreateDenom */ interface MsgCreateDenom$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * subdenom can be up to 44 "alphanumeric" characters long. * * @generated from protobuf field: string subdenom = 2 */ subdenom: string; /** * The name * * @generated from protobuf field: string name = 3 */ name: string; /** * The symbol * * @generated from protobuf field: string symbol = 4 */ symbol: string; /** * The number of decimals * * @generated from protobuf field: uint32 decimals = 5 */ decimals: number; /** * true if admins are allowed to burn tokens from other addresses * * @generated from protobuf field: bool allow_admin_burn = 6 */ allowAdminBurn: boolean; } /** * MsgMint is the sdk.Msg type for allowing an admin account or other permitted * accounts to mint more of a token. * * @generated from protobuf message injective.tokenfactory.v1beta1.MsgMint */ interface MsgMint$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The amount of tokens to mint * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; /** * The Injective address to receive the tokens * * @generated from protobuf field: string receiver = 3 */ receiver: string; } /** * MsgBurn is the sdk.Msg type for allowing an admin account to burn * a token. * * @generated from protobuf message injective.tokenfactory.v1beta1.MsgBurn */ interface MsgBurn$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The amount of tokens to burn * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 2 */ amount?: Coin$1; /** * The Injective address to burn the tokens from * * @generated from protobuf field: string burnFromAddress = 3 */ burnFromAddress: string; } /** * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign * adminship of a denom to a new account * * @generated from protobuf message injective.tokenfactory.v1beta1.MsgChangeAdmin */ interface MsgChangeAdmin$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The denom * * @generated from protobuf field: string denom = 2 */ denom: string; /** * The new admin's Injective address * * @generated from protobuf field: string new_admin = 3 */ newAdmin: string; } /** * MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set * the denom's bank metadata * * @generated from protobuf message injective.tokenfactory.v1beta1.MsgSetDenomMetadata */ interface MsgSetDenomMetadata$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The metadata * * @generated from protobuf field: cosmos.bank.v1beta1.Metadata metadata = 2 */ metadata?: Metadata$1; /** * @generated from protobuf field: injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled admin_burn_disabled = 3 */ adminBurnDisabled?: MsgSetDenomMetadata_AdminBurnDisabled; } /** * @generated from protobuf message injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled */ interface MsgSetDenomMetadata_AdminBurnDisabled { /** * true if the admin burn capability should be disabled * * @generated from protobuf field: bool should_disable = 1 */ shouldDisable: boolean; } /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgCreateDenom */ declare const MsgCreateDenom$1 = new MsgCreateDenom$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgMint */ declare const MsgMint$1 = new MsgMint$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgBurn */ declare const MsgBurn$1 = new MsgBurn$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgChangeAdmin */ declare const MsgChangeAdmin$1 = new MsgChangeAdmin$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgSetDenomMetadata */ declare const MsgSetDenomMetadata$1 = new MsgSetDenomMetadata$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled */ declare const MsgSetDenomMetadata_AdminBurnDisabled = new MsgSetDenomMetadata_AdminBurnDisabled$Type(); //#endregion //#region src/core/modules/tokenfactory/msgs/MsgBurn.d.ts declare namespace MsgBurn { interface Params { sender: string; burnFromAddress?: string; amount: { amount: string; denom: string; }; } type Proto = MsgBurn$1; } /** * @category Messages */ declare class MsgBurn extends MsgBase { static fromJSON(params: MsgBurn.Params): MsgBurn; toProto(): MsgBurn$1; toData(): { sender: string; amount?: Coin$1; burnFromAddress: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; amount: Coin$1 | undefined; burnFromAddress: string; }; }; toWeb3Gw(): { sender: string; amount: Coin$1 | undefined; burnFromAddress: string; '@type': string; }; toEip712Types(): Map; toEip712(): never; toDirectSign(): { type: string; message: MsgBurn$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/tokenfactory/msgs/MsgMint.d.ts declare namespace MsgMint { interface Params { sender: string; receiver?: string; amount: { amount: string; denom: string; }; } type Proto = MsgMint$1; } /** * @category Messages */ declare class MsgMint extends MsgBase { static fromJSON(params: MsgMint.Params): MsgMint; toProto(): MsgMint$1; toData(): { sender: string; amount?: Coin$1; receiver: string; '@type': string; }; toAmino(): { type: string; value: { receiver: string; sender: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { receiver: string; sender: string; amount: Coin$1 | undefined; '@type': string; }; toEip712Types(): Map; toEip712(): never; toDirectSign(): { type: string; message: MsgMint$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/bank/msgs/MsgMultiSend.d.ts declare namespace MsgMultiSend { interface Params { inputs: { address: string; coins: Coin$1[]; }[]; outputs: { address: string; coins: Coin$1[]; }[]; } type Proto = MsgMultiSend$1; } /** * @category Messages */ declare class MsgMultiSend extends MsgBase { static fromJSON(params: MsgMultiSend.Params): MsgMultiSend; toProto(): MsgMultiSend$1; toData(): { inputs: Input[]; outputs: Output[]; '@type': string; }; toAmino(): { type: string; value: { inputs: Input[]; outputs: Output[]; }; }; toWeb3Gw(): { inputs: Input[]; outputs: Output[]; '@type': string; }; toDirectSign(): { type: string; message: MsgMultiSend$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/tx_pb.d.ts /** * MsgDeposit defines a SDK message for transferring coins from the sender's * bank balance into the subaccount's exchange deposits * * @generated from protobuf message injective.exchange.v1beta1.MsgDeposit */ interface MsgDeposit$3 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * (Optional) bytes32 subaccount ID to deposit funds into. If empty, the coin * will be deposited to the sender's default subaccount address * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the amount of the deposit (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgWithdraw defines a SDK message for withdrawing coins from a subaccount's * deposits to the user's bank balance * * @generated from protobuf message injective.exchange.v1beta1.MsgWithdraw */ interface MsgWithdraw$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID to withdraw funds from * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the amount of the withdrawal (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgCreateSpotLimitOrder defines a SDK message for creating a new spot limit * order. * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateSpotLimitOrder */ interface MsgCreateSpotLimitOrder$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the spot order to create * * @generated from protobuf field: injective.exchange.v1beta1.SpotOrder order = 2 */ order?: SpotOrder$2; } /** * MsgInstantSpotMarketLaunch defines a SDK message for creating a new spot * market by paying listing fee without governance * * @generated from protobuf message injective.exchange.v1beta1.MsgInstantSpotMarketLaunch */ interface MsgInstantSpotMarketLaunch$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the ticker for the spot market * * @generated from protobuf field: string ticker = 2 */ ticker: string; /** * the type of coin to use as the base currency * * @generated from protobuf field: string base_denom = 3 */ baseDenom: string; /** * type of coin to use as the quote currency * * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * min_price_tick_size defines the minimum tick size of the order's price * * @generated from protobuf field: string min_price_tick_size = 5 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity * * @generated from protobuf field: string min_quantity_tick_size = 6 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 7 */ minNotional: string; /** * base token decimals * * @generated from protobuf field: uint32 base_decimals = 8 */ baseDecimals: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 9 */ quoteDecimals: number; } /** * MsgInstantBinaryOptionsMarketLaunch defines a SDK message for creating a new * perpetual futures market by paying listing fee without governance * * @generated from protobuf message injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch */ interface MsgInstantBinaryOptionsMarketLaunch$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the ticker for the derivative contract * * @generated from protobuf field: string ticker = 2 */ ticker: string; /** * the oracle symbol * * @generated from protobuf field: string oracle_symbol = 3 */ oracleSymbol: string; /** * the oracle provider * * @generated from protobuf field: string oracle_provider = 4 */ oracleProvider: string; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 5 */ oracleType: OracleType; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 6 */ oracleScaleFactor: number; /** * maker_fee_rate defines the trade fee rate for makers on the perpetual * market * * @generated from protobuf field: string maker_fee_rate = 7 */ makerFeeRate: string; /** * taker_fee_rate defines the trade fee rate for takers on the perpetual * market * * @generated from protobuf field: string taker_fee_rate = 8 */ takerFeeRate: string; /** * expiration timestamp * * @generated from protobuf field: int64 expiration_timestamp = 9 */ expirationTimestamp: bigint; /** * expiration timestamp * * @generated from protobuf field: int64 settlement_timestamp = 10 */ settlementTimestamp: bigint; /** * admin of the market * * @generated from protobuf field: string admin = 11 */ admin: string; /** * Address of the quote currency denomination for the binary options contract * * @generated from protobuf field: string quote_denom = 12 */ quoteDenom: string; /** * min_price_tick_size defines the minimum tick size that the price and margin * required for orders in the market * * @generated from protobuf field: string min_price_tick_size = 13 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the quantity * required for orders in the market * * @generated from protobuf field: string min_quantity_tick_size = 14 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market * * @generated from protobuf field: string min_notional = 15 */ minNotional: string; } /** * MsgCreateSpotMarketOrder defines a SDK message for creating a new spot market * order. * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateSpotMarketOrder */ interface MsgCreateSpotMarketOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.exchange.v1beta1.SpotOrder order = 2 */ order?: SpotOrder$2; } /** * A Cosmos-SDK MsgCreateDerivativeLimitOrder * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder */ interface MsgCreateDerivativeLimitOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.exchange.v1beta1.DerivativeOrder order = 2 */ order?: DerivativeOrder$2; } /** * A Cosmos-SDK MsgCreateBinaryOptionsLimitOrder * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder */ interface MsgCreateBinaryOptionsLimitOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.exchange.v1beta1.DerivativeOrder order = 2 */ order?: DerivativeOrder$2; } /** * MsgCancelSpotOrder defines the Msg/CancelSpotOrder response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgCancelSpotOrder */ interface MsgCancelSpotOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * @generated from protobuf field: string cid = 5 */ cid: string; } /** * MsgBatchCancelSpotOrders defines the Msg/BatchCancelSpotOrders response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgBatchCancelSpotOrders */ interface MsgBatchCancelSpotOrders$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData data = 2 */ data: OrderData$1[]; } /** * MsgBatchCancelBinaryOptionsOrders defines the * Msg/BatchCancelBinaryOptionsOrders response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders */ interface MsgBatchCancelBinaryOptionsOrders$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData data = 2 */ data: OrderData$1[]; } /** * MsgBatchUpdateOrders defines the Msg/BatchUpdateOrders response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgBatchUpdateOrders */ interface MsgBatchUpdateOrders$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID only used for the spot_market_ids_to_cancel_all and * derivative_market_ids_to_cancel_all * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the spot market IDs to cancel all * * @generated from protobuf field: repeated string spot_market_ids_to_cancel_all = 3 */ spotMarketIdsToCancelAll: string[]; /** * the derivative market IDs to cancel all * * @generated from protobuf field: repeated string derivative_market_ids_to_cancel_all = 4 */ derivativeMarketIdsToCancelAll: string[]; /** * the spot orders to cancel * * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData spot_orders_to_cancel = 5 */ spotOrdersToCancel: OrderData$1[]; /** * the derivative orders to cancel * * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData derivative_orders_to_cancel = 6 */ derivativeOrdersToCancel: OrderData$1[]; /** * the spot orders to create * * @generated from protobuf field: repeated injective.exchange.v1beta1.SpotOrder spot_orders_to_create = 7 */ spotOrdersToCreate: SpotOrder$2[]; /** * the derivative orders to create * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeOrder derivative_orders_to_create = 8 */ derivativeOrdersToCreate: DerivativeOrder$2[]; /** * the binary options orders to cancel * * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData binary_options_orders_to_cancel = 9 */ binaryOptionsOrdersToCancel: OrderData$1[]; /** * the binary options market IDs to cancel all * * @generated from protobuf field: repeated string binary_options_market_ids_to_cancel_all = 10 */ binaryOptionsMarketIdsToCancelAll: string[]; /** * the binary options orders to create * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeOrder binary_options_orders_to_create = 11 */ binaryOptionsOrdersToCreate: DerivativeOrder$2[]; } /** * A Cosmos-SDK MsgCreateDerivativeMarketOrder * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder */ interface MsgCreateDerivativeMarketOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.exchange.v1beta1.DerivativeOrder order = 2 */ order?: DerivativeOrder$2; } /** * A Cosmos-SDK MsgCreateBinaryOptionsMarketOrder * * @generated from protobuf message injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder */ interface MsgCreateBinaryOptionsMarketOrder$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.exchange.v1beta1.DerivativeOrder order = 2 */ order?: DerivativeOrder$2; } /** * MsgCancelDerivativeOrder defines the Msg/CancelDerivativeOrder response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgCancelDerivativeOrder */ interface MsgCancelDerivativeOrder$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * the order hash * * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * the order mask * * @generated from protobuf field: int32 order_mask = 5 */ orderMask: number; // bitwise combination of OrderMask enum values /** * the client order ID * * @generated from protobuf field: string cid = 6 */ cid: string; } /** * MsgCancelBinaryOptionsOrder defines the Msg/CancelBinaryOptionsOrder response * type. * * @generated from protobuf message injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder */ interface MsgCancelBinaryOptionsOrder$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * the order hash * * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * the order mask (bitwise combination of OrderMask enum values) * * @generated from protobuf field: int32 order_mask = 5 */ orderMask: number; /** * the client order ID * * @generated from protobuf field: string cid = 6 */ cid: string; } /** * @generated from protobuf message injective.exchange.v1beta1.OrderData */ interface OrderData$1 { /** * the market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the order hash * * @generated from protobuf field: string order_hash = 3 */ orderHash: string; /** * the order mask (bitwise combination of OrderMask enum values) * * @generated from protobuf field: int32 order_mask = 4 */ orderMask: number; /** * the client order ID * * @generated from protobuf field: string cid = 5 */ cid: string; } /** * MsgBatchCancelDerivativeOrders defines the Msg/CancelDerivativeOrders * response type. * * @generated from protobuf message injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders */ interface MsgBatchCancelDerivativeOrders$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * orders details * * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderData data = 2 */ data: OrderData$1[]; } /** * A Cosmos-SDK MsgExternalTransfer * * @generated from protobuf message injective.exchange.v1beta1.MsgExternalTransfer */ interface MsgExternalTransfer$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 4 */ amount?: Coin$1; } /** * A Cosmos-SDK MsgLiquidatePosition * * @generated from protobuf message injective.exchange.v1beta1.MsgLiquidatePosition */ interface MsgLiquidatePosition$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * optional order to provide for liquidation * * @generated from protobuf field: injective.exchange.v1beta1.DerivativeOrder order = 4 */ order?: DerivativeOrder$2; } /** * A Cosmos-SDK MsgIncreasePositionMargin * * @generated from protobuf message injective.exchange.v1beta1.MsgIncreasePositionMargin */ interface MsgIncreasePositionMargin$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID sending the funds * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the subaccount ID the position belongs to * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 4 */ marketId: string; /** * amount defines the amount of margin to add to the position (in chain * format) * * @generated from protobuf field: string amount = 5 */ amount: string; } /** * A Cosmos-SDK MsgDecreasePositionMargin * * @generated from protobuf message injective.exchange.v1beta1.MsgDecreasePositionMargin */ interface MsgDecreasePositionMargin$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID sending the funds * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the subaccount ID the position belongs to * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 4 */ marketId: string; /** * amount defines the amount of margin to withdraw from the position (in chain * format) * * @generated from protobuf field: string amount = 5 */ amount: string; } /** * MsgPrivilegedExecuteContract defines the Msg/Exec message type * * @generated from protobuf message injective.exchange.v1beta1.MsgPrivilegedExecuteContract */ interface MsgPrivilegedExecuteContract$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * funds defines the user's bank coins used to fund the execution (e.g. * 100inj). * * @generated from protobuf field: string funds = 2 */ funds: string; /** * contract_address defines the contract address to execute * * @generated from protobuf field: string contract_address = 3 */ contractAddress: string; /** * data defines the call data used when executing the contract * * @generated from protobuf field: string data = 4 */ data: string; } /** * A Cosmos-SDK MsgRewardsOptOut * * @generated from protobuf message injective.exchange.v1beta1.MsgRewardsOptOut */ interface MsgRewardsOptOut$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; } /** * A Cosmos-SDK MsgReclaimLockedFunds * * @generated from protobuf message injective.exchange.v1beta1.MsgReclaimLockedFunds */ interface MsgReclaimLockedFunds$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: bytes lockedAccountPubKey = 2 */ lockedAccountPubKey: Uint8Array; /** * @generated from protobuf field: bytes signature = 3 */ signature: Uint8Array; } /** * MsgSignData defines an arbitrary, general-purpose, off-chain message * * @generated from protobuf message injective.exchange.v1beta1.MsgSignData */ interface MsgSignData$2 { /** * Signer is the sdk.AccAddress of the message signer * * @generated from protobuf field: bytes Signer = 1 */ signer: Uint8Array; /** * Data represents the raw bytes of the content that is signed (text, json, * etc) * * @generated from protobuf field: bytes Data = 2 */ data: Uint8Array; } /** * MsgAdminUpdateBinaryOptionsMarket is used by the market Admin to operate the * market * * @generated from protobuf message injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket */ interface MsgAdminUpdateBinaryOptionsMarket$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * new price at which market will be settled * * @generated from protobuf field: string settlement_price = 3 */ settlementPrice: string; /** * expiration timestamp * * @generated from protobuf field: int64 expiration_timestamp = 4 */ expirationTimestamp: bigint; /** * expiration timestamp * * @generated from protobuf field: int64 settlement_timestamp = 5 */ settlementTimestamp: bigint; /** * Status of the market * * @generated from protobuf field: injective.exchange.v1beta1.MarketStatus status = 6 */ status: MarketStatus$1; } /** * MsgAuthorizeStakeGrants grants stakes to grantees. * * @generated from protobuf message injective.exchange.v1beta1.MsgAuthorizeStakeGrants */ interface MsgAuthorizeStakeGrants$2 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 2 */ grants: GrantAuthorization$3[]; } /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgDeposit */ declare const MsgDeposit$3 = new MsgDeposit$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgWithdraw */ declare const MsgWithdraw$2 = new MsgWithdraw$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateSpotLimitOrder */ declare const MsgCreateSpotLimitOrder$2 = new MsgCreateSpotLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgInstantSpotMarketLaunch */ declare const MsgInstantSpotMarketLaunch$2 = new MsgInstantSpotMarketLaunch$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch */ declare const MsgInstantBinaryOptionsMarketLaunch$2 = new MsgInstantBinaryOptionsMarketLaunch$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateSpotMarketOrder */ declare const MsgCreateSpotMarketOrder$2 = new MsgCreateSpotMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder */ declare const MsgCreateDerivativeLimitOrder$2 = new MsgCreateDerivativeLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder */ declare const MsgCreateBinaryOptionsLimitOrder$2 = new MsgCreateBinaryOptionsLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCancelSpotOrder */ declare const MsgCancelSpotOrder$2 = new MsgCancelSpotOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgBatchCancelSpotOrders */ declare const MsgBatchCancelSpotOrders$2 = new MsgBatchCancelSpotOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders */ declare const MsgBatchCancelBinaryOptionsOrders$2 = new MsgBatchCancelBinaryOptionsOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgBatchUpdateOrders */ declare const MsgBatchUpdateOrders$2 = new MsgBatchUpdateOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder */ declare const MsgCreateDerivativeMarketOrder$2 = new MsgCreateDerivativeMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder */ declare const MsgCreateBinaryOptionsMarketOrder$2 = new MsgCreateBinaryOptionsMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCancelDerivativeOrder */ declare const MsgCancelDerivativeOrder$2 = new MsgCancelDerivativeOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder */ declare const MsgCancelBinaryOptionsOrder$2 = new MsgCancelBinaryOptionsOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.OrderData */ declare const OrderData$1 = new OrderData$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders */ declare const MsgBatchCancelDerivativeOrders$2 = new MsgBatchCancelDerivativeOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgExternalTransfer */ declare const MsgExternalTransfer$2 = new MsgExternalTransfer$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgLiquidatePosition */ declare const MsgLiquidatePosition$2 = new MsgLiquidatePosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgIncreasePositionMargin */ declare const MsgIncreasePositionMargin$2 = new MsgIncreasePositionMargin$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgDecreasePositionMargin */ declare const MsgDecreasePositionMargin$2 = new MsgDecreasePositionMargin$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgPrivilegedExecuteContract */ declare const MsgPrivilegedExecuteContract$1 = new MsgPrivilegedExecuteContract$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgRewardsOptOut */ declare const MsgRewardsOptOut$2 = new MsgRewardsOptOut$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgReclaimLockedFunds */ declare const MsgReclaimLockedFunds$2 = new MsgReclaimLockedFunds$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgSignData */ declare const MsgSignData$2 = new MsgSignData$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket */ declare const MsgAdminUpdateBinaryOptionsMarket$2 = new MsgAdminUpdateBinaryOptionsMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.MsgAuthorizeStakeGrants */ declare const MsgAuthorizeStakeGrants$2 = new MsgAuthorizeStakeGrants$Type(); //#endregion //#region src/core/modules/exchange/msgs/MsgDeposit.d.ts declare namespace MsgDeposit { interface Params { subaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgDeposit$3; } /** * @category Messages */ declare class MsgDeposit extends MsgBase { static fromJSON(params: MsgDeposit.Params): MsgDeposit; toProto(): MsgDeposit$3; toData(): { sender: string; subaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgDeposit$3; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmwasm/wasm/v1/tx_pb.d.ts /** * MsgStoreCode submit Wasm code to the system * * @generated from protobuf message cosmwasm.wasm.v1.MsgStoreCode */ interface MsgStoreCode$1 { /** * Sender is the actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * WASMByteCode can be raw or gzip compressed * * @generated from protobuf field: bytes wasm_byte_code = 2 */ wasmByteCode: Uint8Array; /** * InstantiatePermission access control to apply on contract creation, * optional * * @generated from protobuf field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5 */ instantiatePermission?: AccessConfig; } /** * MsgInstantiateContract create a new smart contract instance for the given * code id. * * @generated from protobuf message cosmwasm.wasm.v1.MsgInstantiateContract */ interface MsgInstantiateContract$1 { /** * Sender is the that actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Admin is an optional address that can execute migrations * * @generated from protobuf field: string admin = 2 */ admin: string; /** * CodeID is the reference to the stored WASM code * * @generated from protobuf field: uint64 code_id = 3 */ codeId: bigint; /** * Label is optional metadata to be stored with a contract instance. * * @generated from protobuf field: string label = 4 */ label: string; /** * Msg json encoded message to be passed to the contract on instantiation * * @generated from protobuf field: bytes msg = 5 */ msg: Uint8Array; /** * Funds coins that are transferred to the contract on instantiation * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin funds = 6 */ funds: Coin$1[]; } /** * MsgExecuteContract submits the given message data to a smart contract * * @generated from protobuf message cosmwasm.wasm.v1.MsgExecuteContract */ interface MsgExecuteContract$1 { /** * Sender is the that actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Contract is the address of the smart contract * * @generated from protobuf field: string contract = 2 */ contract: string; /** * Msg json encoded message to be passed to the contract * * @generated from protobuf field: bytes msg = 3 */ msg: Uint8Array; /** * Funds coins that are transferred to the contract on execution * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin funds = 5 */ funds: Coin$1[]; } /** * MsgMigrateContract runs a code upgrade/ downgrade for a smart contract * * @generated from protobuf message cosmwasm.wasm.v1.MsgMigrateContract */ interface MsgMigrateContract$1 { /** * Sender is the that actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Contract is the address of the smart contract * * @generated from protobuf field: string contract = 2 */ contract: string; /** * CodeID references the new WASM code * * @generated from protobuf field: uint64 code_id = 3 */ codeId: bigint; /** * Msg json encoded message to be passed to the contract on migration * * @generated from protobuf field: bytes msg = 4 */ msg: Uint8Array; } /** * MsgUpdateAdmin sets a new admin for a smart contract * * @generated from protobuf message cosmwasm.wasm.v1.MsgUpdateAdmin */ interface MsgUpdateAdmin$1 { /** * Sender is the that actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * NewAdmin address to be set * * @generated from protobuf field: string new_admin = 2 */ newAdmin: string; /** * Contract is the address of the smart contract * * @generated from protobuf field: string contract = 3 */ contract: string; } /** * MsgUpdateInstantiateConfig updates instantiate config for a smart contract * * @generated from protobuf message cosmwasm.wasm.v1.MsgUpdateInstantiateConfig */ interface MsgUpdateInstantiateConfig$1 { /** * Sender is the that actor that signed the messages * * @generated from protobuf field: string sender = 1 */ sender: string; /** * CodeID references the stored WASM code * * @generated from protobuf field: uint64 code_id = 2 */ codeId: bigint; /** * NewInstantiatePermission is the new access control * * @generated from protobuf field: cosmwasm.wasm.v1.AccessConfig new_instantiate_permission = 3 */ newInstantiatePermission?: AccessConfig; } /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgStoreCode */ declare const MsgStoreCode$1 = new MsgStoreCode$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgInstantiateContract */ declare const MsgInstantiateContract$1 = new MsgInstantiateContract$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgExecuteContract */ declare const MsgExecuteContract$1 = new MsgExecuteContract$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgMigrateContract */ declare const MsgMigrateContract$1 = new MsgMigrateContract$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgUpdateAdmin */ declare const MsgUpdateAdmin$1 = new MsgUpdateAdmin$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.MsgUpdateInstantiateConfig */ declare const MsgUpdateInstantiateConfig$1 = new MsgUpdateInstantiateConfig$Type(); //#endregion //#region src/core/modules/wasm/msgs/MsgStoreCode.d.ts declare namespace MsgStoreCode { interface Params { sender: string; wasmBytes: Uint8Array | string; instantiatePermission?: { permission: AccessType$1; addresses: string[]; }; } type Proto = MsgStoreCode$1; } /** * @category Messages */ declare class MsgStoreCode extends MsgBase { static fromJSON(params: MsgStoreCode.Params): MsgStoreCode; toProto(): MsgStoreCode$1; toData(): { sender: string; wasmByteCode: Uint8Array; instantiatePermission?: AccessConfig; '@type': string; }; toAmino(): { type: string; value: { sender: string; wasm_byte_code: string; instantiate_permission: { permission: string; addresses: string[]; } | undefined; }; }; toWeb3Gw(): { sender: string; wasm_byte_code: string; instantiate_permission: { permission: string; addresses: string[]; } | undefined; '@type': string; }; toEip712(): never; toDirectSign(): { type: string; message: MsgStoreCode$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/peggy/v1/params_pb.d.ts // Params represent the peggy genesis and store parameters // peggy_id: // a random 32 byte value to prevent signature reuse, for example if the // cosmos validators decided to use the same Ethereum keys for another chain // also running Peggy we would not want it to be possible to play a deposit // from chain A back on chain B's peggy. This value IS USED ON ETHEREUM so // it must be set in your genesis.json before launch and not changed after // deploying Peggy // // contract_hash: // the code hash of a known good version of the Peggy contract // solidity code. This can be used to verify the correct version // of the contract has been deployed. This is a reference value for // goernance action only it is never read by any Peggy code // // bridge_ethereum_address: // is address of the bridge contract on the Ethereum side, this is a // reference value for governance only and is not actually used by any // Peggy code // // bridge_chain_id: // the unique identifier of the Ethereum chain, this is a reference value // only and is not actually used by any Peggy code // // These reference values may be used by future Peggy client implemetnations // to allow for saftey features or convenience features like the peggy address // in your relayer. A relayer would require a configured peggy address if // governance had not set the address on the chain it was relaying for. // // signed_valsets_window // signed_batches_window // signed_claims_window // // These values represent the time in blocks that a validator has to submit // a signature for a batch or valset, or to submit a claim for a particular // attestation nonce. In the case of attestations this clock starts when the // attestation is created, but only allows for slashing once the event has // passed // // target_batch_timeout: // // This is the 'target' value for when batches time out, this is a target // becuase Ethereum is a probabalistic chain and you can't say for sure what the // block frequency is ahead of time. // // average_block_time // average_ethereum_block_time // // These values are the average Cosmos block time and Ethereum block time // repsectively and they are used to copute what the target batch timeout is. It // is important that governance updates these in case of any major, prolonged // change in the time it takes to produce a block // // slash_fraction_valset // slash_fraction_batch // slash_fraction_claim // slash_fraction_conflicting_claim // // The slashing fractions for the various peggy related slashing conditions. The // first three refer to not submitting a particular message, the third for // submitting a different claim for the same Ethereum event // // unbond_slashing_valsets_window // // The unbond slashing valsets window is used to determine how many blocks after // starting to unbond a validator needs to continue signing blocks. The goal of // this paramater is that when a validator leaves the set, if their leaving // creates enough change in the validator set to justify an update they will // sign a validator set update for the Ethereum bridge that does not include // themselves. Allowing us to remove them from the Ethereum bridge and replace // them with the new set gracefully. // // valset_reward // // Valset rewards are the amount of tokens this chain issues to relayers of // validator sets. These can be any ERC20 token in the bridge, but it's strongly // advised that chains use only Cosmos originated tokens, which the bridge // effectively mints on Ethereum. If you run out of the token you are using for // validator set rewards valset updates will fail and the bridge will be // vulnerable to highjacking. For these paramaters the zero values are special // and indicate not to attempt any reward. This is the default for // bootstrapping. /** * @generated from protobuf message injective.peggy.v1.Params */ interface Params$8 { /** * @generated from protobuf field: string peggy_id = 1 */ peggyId: string; /** * @generated from protobuf field: string contract_source_hash = 2 */ contractSourceHash: string; /** * @generated from protobuf field: string bridge_ethereum_address = 3 */ bridgeEthereumAddress: string; /** * @generated from protobuf field: uint64 bridge_chain_id = 4 */ bridgeChainId: bigint; /** * @generated from protobuf field: uint64 signed_valsets_window = 5 */ signedValsetsWindow: bigint; /** * @generated from protobuf field: uint64 signed_batches_window = 6 */ signedBatchesWindow: bigint; /** * @generated from protobuf field: uint64 signed_claims_window = 7 */ signedClaimsWindow: bigint; /** * @generated from protobuf field: uint64 target_batch_timeout = 8 */ targetBatchTimeout: bigint; /** * @generated from protobuf field: uint64 average_block_time = 9 */ averageBlockTime: bigint; /** * @generated from protobuf field: uint64 average_ethereum_block_time = 10 */ averageEthereumBlockTime: bigint; /** * @deprecated * @generated from protobuf field: bytes slash_fraction_valset = 11 [deprecated = true] */ slashFractionValset: Uint8Array; /** * @deprecated * @generated from protobuf field: bytes slash_fraction_batch = 12 [deprecated = true] */ slashFractionBatch: Uint8Array; /** * @deprecated * @generated from protobuf field: bytes slash_fraction_claim = 13 [deprecated = true] */ slashFractionClaim: Uint8Array; /** * @deprecated * @generated from protobuf field: bytes slash_fraction_conflicting_claim = 14 [deprecated = true] */ slashFractionConflictingClaim: Uint8Array; /** * @generated from protobuf field: uint64 unbond_slashing_valsets_window = 15 */ unbondSlashingValsetsWindow: bigint; /** * @deprecated * @generated from protobuf field: bytes slash_fraction_bad_eth_signature = 16 [deprecated = true] */ slashFractionBadEthSignature: Uint8Array; /** * @generated from protobuf field: string cosmos_coin_denom = 17 */ cosmosCoinDenom: string; /** * @generated from protobuf field: string cosmos_coin_erc20_contract = 18 */ cosmosCoinErc20Contract: string; /** * @deprecated * @generated from protobuf field: bool claim_slashing_enabled = 19 [deprecated = true] */ claimSlashingEnabled: boolean; /** * @generated from protobuf field: uint64 bridge_contract_start_height = 20 */ bridgeContractStartHeight: bigint; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin valset_reward = 21 */ valsetReward?: Coin$1; /** * @generated from protobuf field: repeated string admins = 22 */ admins: string[]; /** * address for receiving Peggy Deposits from sanctioned Ethereum addresses * * @generated from protobuf field: string segregated_wallet_address = 23 */ segregatedWalletAddress: string; } /** * @generated MessageType for protobuf message injective.peggy.v1.Params */ declare const Params$8 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/peggy/v1/msgs_pb.d.ts /** * MsgSendToEth * This is the message that a user calls when they want to bridge an asset * it will later be removed when it is included in a batch and successfully * submitted tokens are removed from the users balance immediately * ------------- * AMOUNT: * the coin to send across the bridge, note the restriction that this is a * single coin not a set of coins that is normal in other Cosmos messages * FEE: * the fee paid for the bridge, distinct from the fee paid to the chain to * actually send this message in the first place. So a successful send has * two layers of fees for the user * * @generated from protobuf message injective.peggy.v1.MsgSendToEth */ interface MsgSendToEth$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The Ethereum address to send the tokens to * * @generated from protobuf field: string eth_dest = 2 */ ethDest: string; /** * The amount of tokens to send * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; /** * The fee paid for the bridge, distinct from the fee paid to the chain to * actually send this message in the first place. So a successful send has * two layers of fees for the user * * @generated from protobuf field: cosmos.base.v1beta1.Coin bridge_fee = 4 */ bridgeFee?: Coin$1; } /** * MsgCreateRateLimit is used to impose a (withdrawal) limit for specific ERC20 * token within a sliding window * * @generated from protobuf message injective.peggy.v1.MsgCreateRateLimit */ interface MsgCreateRateLimit$1 { /** * address of peggy admin or governance account * * @generated from protobuf field: string authority = 1 */ authority: string; /** * address of the ERC20 token * * @generated from protobuf field: string token_address = 2 */ tokenAddress: string; /** * decimals of the ERC20 token * * @generated from protobuf field: uint32 token_decimals = 3 */ tokenDecimals: number; /** * unique ID used to obtain the notional USD value of the ERC20 token from * oracle * * @generated from protobuf field: string token_price_id = 4 */ tokenPriceId: string; /** * the notional USD limit imposed on all outgoing traffic (per token) * * @generated from protobuf field: string rate_limit_usd = 5 */ rateLimitUsd: string; /** * the absolute amount of tokens that can be minted on Injective * * @deprecated * @generated from protobuf field: string absolute_mint_limit = 6 [deprecated = true] */ absoluteMintLimit: string; /** * length of the sliding window in which inbound (outbound) traffic is * measured * * @generated from protobuf field: uint64 rate_limit_window = 7 */ rateLimitWindow: bigint; /** * token_oracle_type is used to obtain the USD price of the ERC20 token (in * relation with token_price_id) * * @generated from protobuf field: injective.oracle.v1beta1.OracleType token_oracle_type = 8 */ tokenOracleType: OracleType; } /** * @generated from protobuf message injective.peggy.v1.MsgUpdateRateLimit */ interface MsgUpdateRateLimit$1 { /** * authority is the address of peggy admin or governance account * * @generated from protobuf field: string authority = 1 */ authority: string; /** * token_address is the address of rate limited token * * @generated from protobuf field: string token_address = 2 */ tokenAddress: string; /** * unique ID used to obtain the notional USD value of the ERC20 token from * oracle * * @generated from protobuf field: string new_token_price_id = 3 */ newTokenPriceId: string; /** * new_rate_limit_usd is the new notional limit (on withdrawals) in USD * * @generated from protobuf field: string new_rate_limit_usd = 4 */ newRateLimitUsd: string; /** * new_rate_limit_window is the new length of the sliding window * * @generated from protobuf field: uint64 new_rate_limit_window = 5 */ newRateLimitWindow: bigint; /** * new_token_oracle_type is used to obtain the USD price of the ERC20 token * (in relation with token_price_id) * * @generated from protobuf field: injective.oracle.v1beta1.OracleType new_token_oracle_type = 6 */ newTokenOracleType: OracleType; } /** * @generated from protobuf message injective.peggy.v1.MsgRemoveRateLimit */ interface MsgRemoveRateLimit$1 { /** * authority is the address of peggy admin or governance account * * @generated from protobuf field: string authority = 1 */ authority: string; /** * token_address is the address of rate limited token * * @generated from protobuf field: string token_address = 2 */ tokenAddress: string; } /** * @generated MessageType for protobuf message injective.peggy.v1.MsgSendToEth */ declare const MsgSendToEth$1 = new MsgSendToEth$Type(); /** * @generated MessageType for protobuf message injective.peggy.v1.MsgCreateRateLimit */ declare const MsgCreateRateLimit$1 = new MsgCreateRateLimit$Type(); /** * @generated MessageType for protobuf message injective.peggy.v1.MsgUpdateRateLimit */ declare const MsgUpdateRateLimit$1 = new MsgUpdateRateLimit$Type(); /** * @generated MessageType for protobuf message injective.peggy.v1.MsgRemoveRateLimit */ declare const MsgRemoveRateLimit$1 = new MsgRemoveRateLimit$Type(); //#endregion //#region src/core/modules/peggy/msgs/MsgSendToEth.d.ts declare namespace MsgSendToEth { interface Params { amount: { denom: string; amount: string; }; bridgeFee?: { denom: string; amount: string; }; address: string; injectiveAddress: string; } type Proto = MsgSendToEth$1; } /** * @category Messages */ declare class MsgSendToEth extends MsgBase { static fromJSON(params: MsgSendToEth.Params): MsgSendToEth; toProto(): MsgSendToEth$1; toData(): { sender: string; ethDest: string; amount?: Coin$1; bridgeFee?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; eth_dest: string; amount: Coin$1 | undefined; bridge_fee: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; eth_dest: string; amount: Coin$1 | undefined; bridge_fee: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgSendToEth$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/crypto/v1/keys_pb.d.ts /** * PublicKey is a ED25519 or a secp256k1 public key. * * @generated from protobuf message cometbft.crypto.v1.PublicKey */ interface PublicKey$1 { /** * The type of key. * * @generated from protobuf oneof: sum */ sum: { oneofKind: "ed25519"; /** * @generated from protobuf field: bytes ed25519 = 1 */ ed25519: Uint8Array; } | { oneofKind: "secp256K1"; /** * @generated from protobuf field: bytes secp256k1 = 2 */ secp256K1: Uint8Array; } | { oneofKind: "bls12381"; /** * @generated from protobuf field: bytes bls12381 = 3 */ bls12381: Uint8Array; } | { oneofKind: undefined; }; } /** * @generated MessageType for protobuf message cometbft.crypto.v1.PublicKey */ declare const PublicKey$1 = new PublicKey$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/types/v1/validator_pb.d.ts /** * ValidatorSet defines a set of validators. * * @generated from protobuf message cometbft.types.v1.ValidatorSet */ interface ValidatorSet { /** * @generated from protobuf field: repeated cometbft.types.v1.Validator validators = 1 */ validators: Validator$3[]; /** * @generated from protobuf field: cometbft.types.v1.Validator proposer = 2 */ proposer?: Validator$3; /** * @generated from protobuf field: int64 total_voting_power = 3 */ totalVotingPower: bigint; } /** * Validator represents a node participating in the consensus protocol. * * @generated from protobuf message cometbft.types.v1.Validator */ interface Validator$3 { /** * @generated from protobuf field: bytes address = 1 */ address: Uint8Array; /** * @deprecated * @generated from protobuf field: cometbft.crypto.v1.PublicKey pub_key = 2 [deprecated = true] */ pubKey?: PublicKey$1; /** * @generated from protobuf field: int64 voting_power = 3 */ votingPower: bigint; /** * @generated from protobuf field: int64 proposer_priority = 4 */ proposerPriority: bigint; /** * @generated from protobuf field: bytes pub_key_bytes = 5 */ pubKeyBytes: Uint8Array; /** * @generated from protobuf field: string pub_key_type = 6 */ pubKeyType: string; } /** * BlockIdFlag indicates which BlockID the signature is for * * @generated from protobuf enum cometbft.types.v1.BlockIDFlag */ declare enum BlockIDFlag { /** * Indicates an error condition * * @generated from protobuf enum value: BLOCK_ID_FLAG_UNKNOWN = 0; */ BLOCK_ID_FLAG_UNKNOWN = 0, /** * The vote was not received * * @generated from protobuf enum value: BLOCK_ID_FLAG_ABSENT = 1; */ BLOCK_ID_FLAG_ABSENT = 1, /** * Voted for the block that received the majority * * @generated from protobuf enum value: BLOCK_ID_FLAG_COMMIT = 2; */ BLOCK_ID_FLAG_COMMIT = 2, /** * Voted for nil * * @generated from protobuf enum value: BLOCK_ID_FLAG_NIL = 3; */ BLOCK_ID_FLAG_NIL = 3, } /** * @generated MessageType for protobuf message cometbft.types.v1.ValidatorSet */ declare const ValidatorSet = new ValidatorSet$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.Validator */ declare const Validator$3 = new Validator$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/abci/v1/types_pb.d.ts /** * Event allows application developers to attach additional information to * ResponseFinalizeBlock and ResponseCheckTx. * Up to 0.37, this could also be used in ResponseBeginBlock, ResponseEndBlock, * and ResponseDeliverTx. * Later, transactions may be queried using these events. * * @generated from protobuf message cometbft.abci.v1.Event */ interface Event$1 { /** * @generated from protobuf field: string type = 1 */ type: string; /** * @generated from protobuf field: repeated cometbft.abci.v1.EventAttribute attributes = 2 */ attributes: EventAttribute[]; } /** * EventAttribute is a single key-value pair, associated with an event. * * @generated from protobuf message cometbft.abci.v1.EventAttribute */ interface EventAttribute { /** * @generated from protobuf field: string key = 1 */ key: string; /** * @generated from protobuf field: string value = 2 */ value: string; /** * @generated from protobuf field: bool index = 3 */ index: boolean; // nondeterministic } /** * @generated MessageType for protobuf message cometbft.abci.v1.Event */ declare const Event$1 = new Event$Type(); /** * @generated MessageType for protobuf message cometbft.abci.v1.EventAttribute */ declare const EventAttribute = new EventAttribute$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/version/v1/types_pb.d.ts /** * Consensus captures the consensus rules for processing a block in the blockchain, * including all blockchain data structures and the rules of the application's * state transition machine. * * @generated from protobuf message cometbft.version.v1.Consensus */ interface Consensus { /** * @generated from protobuf field: uint64 block = 1 */ block: bigint; /** * @generated from protobuf field: uint64 app = 2 */ app: bigint; } /** * @generated MessageType for protobuf message cometbft.version.v1.Consensus */ declare const Consensus = new Consensus$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/types/v1/types_pb.d.ts /** * Header of the parts set for a block. * * @generated from protobuf message cometbft.types.v1.PartSetHeader */ interface PartSetHeader { /** * @generated from protobuf field: uint32 total = 1 */ total: number; /** * @generated from protobuf field: bytes hash = 2 */ hash: Uint8Array; } /** * BlockID defines the unique ID of a block as its hash and its `PartSetHeader`. * * @generated from protobuf message cometbft.types.v1.BlockID */ interface BlockID { /** * @generated from protobuf field: bytes hash = 1 */ hash: Uint8Array; /** * @generated from protobuf field: cometbft.types.v1.PartSetHeader part_set_header = 2 */ partSetHeader?: PartSetHeader; } /** * Header defines the structure of a block header. * * @generated from protobuf message cometbft.types.v1.Header */ interface Header$1 { /** * basic block info * * @generated from protobuf field: cometbft.version.v1.Consensus version = 1 */ version?: Consensus; /** * @generated from protobuf field: string chain_id = 2 */ chainId: string; /** * @generated from protobuf field: int64 height = 3 */ height: bigint; /** * @generated from protobuf field: google.protobuf.Timestamp time = 4 */ time?: Timestamp; /** * prev block info * * @generated from protobuf field: cometbft.types.v1.BlockID last_block_id = 5 */ lastBlockId?: BlockID; /** * hashes of block data * * @generated from protobuf field: bytes last_commit_hash = 6 */ lastCommitHash: Uint8Array; // commit from validators from the last block /** * @generated from protobuf field: bytes data_hash = 7 */ dataHash: Uint8Array; // transactions /** * hashes from the app output from the prev block * * @generated from protobuf field: bytes validators_hash = 8 */ validatorsHash: Uint8Array; // validators for the current block /** * @generated from protobuf field: bytes next_validators_hash = 9 */ nextValidatorsHash: Uint8Array; // validators for the next block /** * @generated from protobuf field: bytes consensus_hash = 10 */ consensusHash: Uint8Array; // consensus params for current block /** * @generated from protobuf field: bytes app_hash = 11 */ appHash: Uint8Array; // state after txs from the previous block /** * @generated from protobuf field: bytes last_results_hash = 12 */ lastResultsHash: Uint8Array; // root hash of all results from the txs from the previous block /** * consensus info * * @generated from protobuf field: bytes evidence_hash = 13 */ evidenceHash: Uint8Array; // evidence included in the block /** * @generated from protobuf field: bytes proposer_address = 14 */ proposerAddress: Uint8Array; // original proposer of the block } /** * Data contains the set of transactions included in the block * * @generated from protobuf message cometbft.types.v1.Data */ interface Data { /** * Txs that will be applied by state @ block.Height+1. * NOTE: not all txs here are valid. We're just agreeing on the order first. * This means that block.AppHash does not include these txs. * * @generated from protobuf field: repeated bytes txs = 1 */ txs: Uint8Array[]; } /** * Vote represents a prevote or precommit vote from validators for * consensus. * * @generated from protobuf message cometbft.types.v1.Vote */ interface Vote$2 { /** * @generated from protobuf field: cometbft.types.v1.SignedMsgType type = 1 */ type: SignedMsgType; /** * @generated from protobuf field: int64 height = 2 */ height: bigint; /** * @generated from protobuf field: int32 round = 3 */ round: number; /** * @generated from protobuf field: cometbft.types.v1.BlockID block_id = 4 */ blockId?: BlockID; // zero if vote is nil. /** * @generated from protobuf field: google.protobuf.Timestamp timestamp = 5 */ timestamp?: Timestamp; /** * @generated from protobuf field: bytes validator_address = 6 */ validatorAddress: Uint8Array; /** * @generated from protobuf field: int32 validator_index = 7 */ validatorIndex: number; /** * Vote signature by the validator if they participated in consensus for the * associated block. * * @generated from protobuf field: bytes signature = 8 */ signature: Uint8Array; /** * Vote extension provided by the application. Only valid for precommit * messages. * * @generated from protobuf field: bytes extension = 9 */ extension: Uint8Array; /** * Vote extension signature by the validator if they participated in * consensus for the associated block. * Only valid for precommit messages. * * @generated from protobuf field: bytes extension_signature = 10 */ extensionSignature: Uint8Array; } /** * Commit contains the evidence that a block was committed by a set of validators. * * @generated from protobuf message cometbft.types.v1.Commit */ interface Commit { /** * @generated from protobuf field: int64 height = 1 */ height: bigint; /** * @generated from protobuf field: int32 round = 2 */ round: number; /** * @generated from protobuf field: cometbft.types.v1.BlockID block_id = 3 */ blockId?: BlockID; /** * @generated from protobuf field: repeated cometbft.types.v1.CommitSig signatures = 4 */ signatures: CommitSig[]; } /** * CommitSig is a part of the Vote included in a Commit. * * @generated from protobuf message cometbft.types.v1.CommitSig */ interface CommitSig { /** * @generated from protobuf field: cometbft.types.v1.BlockIDFlag block_id_flag = 1 */ blockIdFlag: BlockIDFlag; /** * @generated from protobuf field: bytes validator_address = 2 */ validatorAddress: Uint8Array; /** * @generated from protobuf field: google.protobuf.Timestamp timestamp = 3 */ timestamp?: Timestamp; /** * @generated from protobuf field: bytes signature = 4 */ signature: Uint8Array; } /** * SignedHeader contains a Header(H) and Commit(H+1) with signatures of validators who signed it. * * @generated from protobuf message cometbft.types.v1.SignedHeader */ interface SignedHeader { /** * @generated from protobuf field: cometbft.types.v1.Header header = 1 */ header?: Header$1; /** * @generated from protobuf field: cometbft.types.v1.Commit commit = 2 */ commit?: Commit; } /** * LightBlock is a combination of SignedHeader and ValidatorSet. It is used by light clients. * * @generated from protobuf message cometbft.types.v1.LightBlock */ interface LightBlock { /** * @generated from protobuf field: cometbft.types.v1.SignedHeader signed_header = 1 */ signedHeader?: SignedHeader; /** * @generated from protobuf field: cometbft.types.v1.ValidatorSet validator_set = 2 */ validatorSet?: ValidatorSet; } /** * SignedMsgType is a type of signed message in the consensus. * * @generated from protobuf enum cometbft.types.v1.SignedMsgType */ declare enum SignedMsgType { /** * Unknown * * @generated from protobuf enum value: SIGNED_MSG_TYPE_UNKNOWN = 0; */ UNKNOWN = 0, /** * Prevote * * @generated from protobuf enum value: SIGNED_MSG_TYPE_PREVOTE = 1; */ PREVOTE = 1, /** * Precommit * * @generated from protobuf enum value: SIGNED_MSG_TYPE_PRECOMMIT = 2; */ PRECOMMIT = 2, /** * Proposal * * @generated from protobuf enum value: SIGNED_MSG_TYPE_PROPOSAL = 32; */ PROPOSAL = 32, } /** * @generated MessageType for protobuf message cometbft.types.v1.PartSetHeader */ declare const PartSetHeader = new PartSetHeader$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.BlockID */ declare const BlockID = new BlockID$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.Header */ declare const Header$1 = new Header$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.Data */ declare const Data = new Data$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.Vote */ declare const Vote$2 = new Vote$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.Commit */ declare const Commit = new Commit$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.CommitSig */ declare const CommitSig = new CommitSig$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.SignedHeader */ declare const SignedHeader = new SignedHeader$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.LightBlock */ declare const LightBlock = new LightBlock$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/staking/v1beta1/staking_pb.d.ts /** * CommissionRates defines the initial commission rates to be used for creating * a validator. * * @generated from protobuf message cosmos.staking.v1beta1.CommissionRates */ interface CommissionRates { /** * rate is the commission rate charged to delegators, as a fraction. * * @generated from protobuf field: string rate = 1 */ rate: string; /** * max_rate defines the maximum commission rate which validator can ever charge, as a fraction. * * @generated from protobuf field: string max_rate = 2 */ maxRate: string; /** * max_change_rate defines the maximum daily increase of the validator commission, as a fraction. * * @generated from protobuf field: string max_change_rate = 3 */ maxChangeRate: string; } /** * Commission defines commission parameters for a given validator. * * @generated from protobuf message cosmos.staking.v1beta1.Commission */ interface Commission { /** * commission_rates defines the initial commission rates to be used for creating a validator. * * @generated from protobuf field: cosmos.staking.v1beta1.CommissionRates commission_rates = 1 */ commissionRates?: CommissionRates; /** * update_time is the last time the commission rate was changed. * * @generated from protobuf field: google.protobuf.Timestamp update_time = 2 */ updateTime?: Timestamp; } /** * Description defines a validator description. * * @generated from protobuf message cosmos.staking.v1beta1.Description */ interface Description { /** * moniker defines a human-readable name for the validator. * * @generated from protobuf field: string moniker = 1 */ moniker: string; /** * identity defines an optional identity signature (ex. UPort or Keybase). * * @generated from protobuf field: string identity = 2 */ identity: string; /** * website defines an optional website link. * * @generated from protobuf field: string website = 3 */ website: string; /** * security_contact defines an optional email for security contact. * * @generated from protobuf field: string security_contact = 4 */ securityContact: string; /** * details define other optional details. * * @generated from protobuf field: string details = 5 */ details: string; } /** * Validator defines a validator, together with the total amount of the * Validator's bond shares and their exchange rate to coins. Slashing results in * a decrease in the exchange rate, allowing correct calculation of future * undelegations without iterating over delegators. When coins are delegated to * this validator, the validator is credited with a delegation whose number of * bond shares is based on the amount of coins delegated divided by the current * exchange rate. Voting power can be calculated as total bonded shares * multiplied by exchange rate. * * @generated from protobuf message cosmos.staking.v1beta1.Validator */ interface Validator$1 { /** * operator_address defines the address of the validator's operator; bech encoded in JSON. * * @generated from protobuf field: string operator_address = 1 */ operatorAddress: string; /** * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. * * @generated from protobuf field: google.protobuf.Any consensus_pubkey = 2 */ consensusPubkey?: Any; /** * jailed defined whether the validator has been jailed from bonded status or not. * * @generated from protobuf field: bool jailed = 3 */ jailed: boolean; /** * status is the validator status (bonded/unbonding/unbonded). * * @generated from protobuf field: cosmos.staking.v1beta1.BondStatus status = 4 */ status: BondStatus$1; /** * tokens define the delegated tokens (incl. self-delegation). * * @generated from protobuf field: string tokens = 5 */ tokens: string; /** * delegator_shares defines total shares issued to a validator's delegators. * * @generated from protobuf field: string delegator_shares = 6 */ delegatorShares: string; /** * description defines the description terms for the validator. * * @generated from protobuf field: cosmos.staking.v1beta1.Description description = 7 */ description?: Description; /** * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. * * @generated from protobuf field: int64 unbonding_height = 8 */ unbondingHeight: bigint; /** * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. * * @generated from protobuf field: google.protobuf.Timestamp unbonding_time = 9 */ unbondingTime?: Timestamp; /** * commission defines the commission parameters. * * @generated from protobuf field: cosmos.staking.v1beta1.Commission commission = 10 */ commission?: Commission; /** * min_self_delegation is the validator's self declared minimum self delegation. * * Since: cosmos-sdk 0.46 * * @generated from protobuf field: string min_self_delegation = 11 */ minSelfDelegation: string; /** * strictly positive if this validator's unbonding has been stopped by external modules * * @generated from protobuf field: int64 unbonding_on_hold_ref_count = 12 */ unbondingOnHoldRefCount: bigint; /** * list of unbonding ids, each uniquely identifing an unbonding of this validator * * @generated from protobuf field: repeated uint64 unbonding_ids = 13 */ unbondingIds: bigint[]; } /** * Delegation represents the bond with tokens held by an account. It is * owned by one delegator, and is associated with the voting power of one * validator. * * @generated from protobuf message cosmos.staking.v1beta1.Delegation */ interface Delegation$1 { /** * delegator_address is the encoded address of the delegator. * * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * validator_address is the encoded address of the validator. * * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * shares define the delegation shares received. * * @generated from protobuf field: string shares = 3 */ shares: string; } /** * UnbondingDelegation stores all of a single delegator's unbonding bonds * for a single validator in an time-ordered list. * * @generated from protobuf message cosmos.staking.v1beta1.UnbondingDelegation */ interface UnbondingDelegation { /** * delegator_address is the encoded address of the delegator. * * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * validator_address is the encoded address of the validator. * * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * entries are the unbonding delegation entries. * * @generated from protobuf field: repeated cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3 */ entries: UnbondingDelegationEntry[]; // unbonding delegation entries } /** * UnbondingDelegationEntry defines an unbonding object with relevant metadata. * * @generated from protobuf message cosmos.staking.v1beta1.UnbondingDelegationEntry */ interface UnbondingDelegationEntry { /** * creation_height is the height which the unbonding took place. * * @generated from protobuf field: int64 creation_height = 1 */ creationHeight: bigint; /** * completion_time is the unix time for unbonding completion. * * @generated from protobuf field: google.protobuf.Timestamp completion_time = 2 */ completionTime?: Timestamp; /** * initial_balance defines the tokens initially scheduled to receive at completion. * * @generated from protobuf field: string initial_balance = 3 */ initialBalance: string; /** * balance defines the tokens to receive at completion. * * @generated from protobuf field: string balance = 4 */ balance: string; /** * Incrementing id that uniquely identifies this entry * * @generated from protobuf field: uint64 unbonding_id = 5 */ unbondingId: bigint; /** * Strictly positive if this entry's unbonding has been stopped by external modules * * @generated from protobuf field: int64 unbonding_on_hold_ref_count = 6 */ unbondingOnHoldRefCount: bigint; } /** * RedelegationEntry defines a redelegation object with relevant metadata. * * @generated from protobuf message cosmos.staking.v1beta1.RedelegationEntry */ interface RedelegationEntry { /** * creation_height defines the height which the redelegation took place. * * @generated from protobuf field: int64 creation_height = 1 */ creationHeight: bigint; /** * completion_time defines the unix time for redelegation completion. * * @generated from protobuf field: google.protobuf.Timestamp completion_time = 2 */ completionTime?: Timestamp; /** * initial_balance defines the initial balance when redelegation started. * * @generated from protobuf field: string initial_balance = 3 */ initialBalance: string; /** * shares_dst is the amount of destination-validator shares created by redelegation. * * @generated from protobuf field: string shares_dst = 4 */ sharesDst: string; /** * Incrementing id that uniquely identifies this entry * * @generated from protobuf field: uint64 unbonding_id = 5 */ unbondingId: bigint; /** * Strictly positive if this entry's unbonding has been stopped by external modules * * @generated from protobuf field: int64 unbonding_on_hold_ref_count = 6 */ unbondingOnHoldRefCount: bigint; } /** * Redelegation contains the list of a particular delegator's redelegating bonds * from a particular source validator to a particular destination validator. * * @generated from protobuf message cosmos.staking.v1beta1.Redelegation */ interface Redelegation { /** * delegator_address is the bech32-encoded address of the delegator. * * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * validator_src_address is the validator redelegation source operator address. * * @generated from protobuf field: string validator_src_address = 2 */ validatorSrcAddress: string; /** * validator_dst_address is the validator redelegation destination operator address. * * @generated from protobuf field: string validator_dst_address = 3 */ validatorDstAddress: string; /** * entries are the redelegation entries. * * @generated from protobuf field: repeated cosmos.staking.v1beta1.RedelegationEntry entries = 4 */ entries: RedelegationEntry[]; // redelegation entries } /** * Params defines the parameters for the x/staking module. * * @generated from protobuf message cosmos.staking.v1beta1.Params */ interface Params$4 { /** * unbonding_time is the time duration of unbonding. * * @generated from protobuf field: google.protobuf.Duration unbonding_time = 1 */ unbondingTime?: Duration; /** * max_validators is the maximum number of validators. * * @generated from protobuf field: uint32 max_validators = 2 */ maxValidators: number; /** * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). * * @generated from protobuf field: uint32 max_entries = 3 */ maxEntries: number; /** * historical_entries is the number of historical entries to persist. * * @generated from protobuf field: uint32 historical_entries = 4 */ historicalEntries: number; /** * bond_denom defines the bondable coin denomination. * * @generated from protobuf field: string bond_denom = 5 */ bondDenom: string; /** * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators * * @generated from protobuf field: string min_commission_rate = 6 */ minCommissionRate: string; } /** * DelegationResponse is equivalent to Delegation except that it contains a * balance in addition to shares which is more suitable for client responses. * * @generated from protobuf message cosmos.staking.v1beta1.DelegationResponse */ interface DelegationResponse { /** * @generated from protobuf field: cosmos.staking.v1beta1.Delegation delegation = 1 */ delegation?: Delegation$1; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin balance = 2 */ balance?: Coin$1; } /** * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it * contains a balance in addition to shares which is more suitable for client * responses. * * @generated from protobuf message cosmos.staking.v1beta1.RedelegationEntryResponse */ interface RedelegationEntryResponse { /** * @generated from protobuf field: cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1 */ redelegationEntry?: RedelegationEntry; /** * @generated from protobuf field: string balance = 4 */ balance: string; } /** * RedelegationResponse is equivalent to a Redelegation except that its entries * contain a balance in addition to shares which is more suitable for client * responses. * * @generated from protobuf message cosmos.staking.v1beta1.RedelegationResponse */ interface RedelegationResponse { /** * @generated from protobuf field: cosmos.staking.v1beta1.Redelegation redelegation = 1 */ redelegation?: Redelegation; /** * @generated from protobuf field: repeated cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2 */ entries: RedelegationEntryResponse[]; } /** * Pool is used for tracking bonded and not-bonded token supply of the bond * denomination. * * @generated from protobuf message cosmos.staking.v1beta1.Pool */ interface Pool$1 { /** * @generated from protobuf field: string not_bonded_tokens = 1 */ notBondedTokens: string; /** * @generated from protobuf field: string bonded_tokens = 2 */ bondedTokens: string; } /** * BondStatus is the status of a validator. * * @generated from protobuf enum cosmos.staking.v1beta1.BondStatus */ declare enum BondStatus$1 { /** * UNSPECIFIED defines an invalid validator status. * * @generated from protobuf enum value: BOND_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * UNBONDED defines a validator that is not bonded. * * @generated from protobuf enum value: BOND_STATUS_UNBONDED = 1; */ UNBONDED = 1, /** * UNBONDING defines a validator that is unbonding. * * @generated from protobuf enum value: BOND_STATUS_UNBONDING = 2; */ UNBONDING = 2, /** * BONDED defines a validator that is bonded. * * @generated from protobuf enum value: BOND_STATUS_BONDED = 3; */ BONDED = 3, } /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.CommissionRates */ declare const CommissionRates = new CommissionRates$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Commission */ declare const Commission = new Commission$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Description */ declare const Description = new Description$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Validator */ declare const Validator$1 = new Validator$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Delegation */ declare const Delegation$1 = new Delegation$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.UnbondingDelegation */ declare const UnbondingDelegation = new UnbondingDelegation$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.UnbondingDelegationEntry */ declare const UnbondingDelegationEntry = new UnbondingDelegationEntry$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.RedelegationEntry */ declare const RedelegationEntry = new RedelegationEntry$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Redelegation */ declare const Redelegation = new Redelegation$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Params */ declare const Params$4 = new Params$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.DelegationResponse */ declare const DelegationResponse = new DelegationResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.RedelegationEntryResponse */ declare const RedelegationEntryResponse = new RedelegationEntryResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.RedelegationResponse */ declare const RedelegationResponse = new RedelegationResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.Pool */ declare const Pool$1 = new Pool$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/staking/v1beta1/tx_pb.d.ts /** * MsgCreateValidator defines a SDK message for creating a new validator. * * @generated from protobuf message cosmos.staking.v1beta1.MsgCreateValidator */ interface MsgCreateValidator$1 { /** * @generated from protobuf field: cosmos.staking.v1beta1.Description description = 1 */ description?: Description; /** * @generated from protobuf field: cosmos.staking.v1beta1.CommissionRates commission = 2 */ commission?: CommissionRates; /** * @generated from protobuf field: string min_self_delegation = 3 */ minSelfDelegation: string; /** * Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. * The validator address bytes and delegator address bytes refer to the same account while creating validator (defer * only in bech32 notation). * * @deprecated * @generated from protobuf field: string delegator_address = 4 [deprecated = true] */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 5 */ validatorAddress: string; /** * @generated from protobuf field: google.protobuf.Any pubkey = 6 */ pubkey?: Any; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin value = 7 */ value?: Coin$1; } /** * MsgEditValidator defines a SDK message for editing an existing validator. * * @generated from protobuf message cosmos.staking.v1beta1.MsgEditValidator */ interface MsgEditValidator$1 { /** * @generated from protobuf field: cosmos.staking.v1beta1.Description description = 1 */ description?: Description; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * We pass a reference to the new commission rate and min self delegation as * it's not mandatory to update. If not updated, the deserialized rate will be * zero with no way to distinguish if an update was intended. * REF: #2373 * * @generated from protobuf field: string commission_rate = 3 */ commissionRate: string; /** * @generated from protobuf field: string min_self_delegation = 4 */ minSelfDelegation: string; } /** * MsgDelegate defines a SDK message for performing a delegation of coins * from a delegator to a validator. * * @generated from protobuf message cosmos.staking.v1beta1.MsgDelegate */ interface MsgDelegate$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgTransferDelegation defines a SDK message for transferring a delegation of coins * from a delegator to another address. * * @generated from protobuf message cosmos.staking.v1beta1.MsgTransferDelegation */ interface MsgTransferDelegation$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * @generated from protobuf field: string receiver_address = 3 */ receiverAddress: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 4 */ amount?: Coin$1; } /** * MsgBeginRedelegate defines a SDK message for performing a redelegation * of coins from a delegator and source validator to a destination validator. * * @generated from protobuf message cosmos.staking.v1beta1.MsgBeginRedelegate */ interface MsgBeginRedelegate$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_src_address = 2 */ validatorSrcAddress: string; /** * @generated from protobuf field: string validator_dst_address = 3 */ validatorDstAddress: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 4 */ amount?: Coin$1; } /** * MsgUndelegate defines a SDK message for performing an undelegation from a * delegate and a validator. * * @generated from protobuf message cosmos.staking.v1beta1.MsgUndelegate */ interface MsgUndelegate$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator * * Since: cosmos-sdk 0.46 * * @generated from protobuf message cosmos.staking.v1beta1.MsgCancelUnbondingDelegation */ interface MsgCancelUnbondingDelegation$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; /** * amount is always less than or equal to unbonding delegation entry balance * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; /** * creation_height is the height which the unbonding took place. * * @generated from protobuf field: int64 creation_height = 4 */ creationHeight: bigint; } /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgCreateValidator */ declare const MsgCreateValidator$1 = new MsgCreateValidator$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgEditValidator */ declare const MsgEditValidator$1 = new MsgEditValidator$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgDelegate */ declare const MsgDelegate$1 = new MsgDelegate$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgTransferDelegation */ declare const MsgTransferDelegation$1 = new MsgTransferDelegation$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgBeginRedelegate */ declare const MsgBeginRedelegate$1 = new MsgBeginRedelegate$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgUndelegate */ declare const MsgUndelegate$1 = new MsgUndelegate$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.MsgCancelUnbondingDelegation */ declare const MsgCancelUnbondingDelegation$1 = new MsgCancelUnbondingDelegation$Type(); //#endregion //#region src/core/modules/staking/msgs/MsgDelegate.d.ts declare namespace MsgDelegate { interface Params { amount: { denom: string; amount: string; }; validatorAddress: string; injectiveAddress: string; } type Proto = MsgDelegate$1; } /** * @category Messages */ declare class MsgDelegate extends MsgBase { static fromJSON(params: MsgDelegate.Params): MsgDelegate; toProto(): MsgDelegate$1; toData(): { delegatorAddress: string; validatorAddress: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgDelegate$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgSignData.d.ts declare namespace MsgSignData { interface Params { sender: string; data: string; } type Proto = MsgSignData$2; } /** * @category Messages */ declare class MsgSignData extends MsgBase { static fromJSON(params: MsgSignData.Params): MsgSignData; toProto(): MsgSignData$2; toData(): { signer: Uint8Array; data: Uint8Array; '@type': string; }; toAmino(): { type: string; value: { signer: string; data: string; }; }; toWeb3Gw(): { signer: string; data: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSignData$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgWithdraw.d.ts declare namespace MsgWithdraw { interface Params { subaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgWithdraw$2; } /** * @category Messages */ declare class MsgWithdraw extends MsgBase { static fromJSON(params: MsgWithdraw.Params): MsgWithdraw; toProto(): MsgWithdraw$2; toData(): { sender: string; subaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgWithdraw$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/wasm/msgs/MsgUpdateAdmin.d.ts declare namespace MsgUpdateAdmin { interface Params { sender: string; newAdmin: string; contract: string; } type Proto = MsgUpdateAdmin$1; } /** * @category Messages */ declare class MsgUpdateAdmin extends MsgBase { static fromJSON(params: MsgUpdateAdmin.Params): MsgUpdateAdmin; toProto(): MsgUpdateAdmin$1; toData(): { sender: string; newAdmin: string; contract: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; new_admin: string; contract: string; }; }; toWeb3Gw(): { sender: string; new_admin: string; contract: string; '@type': string; }; toDirectSign(): { type: string; message: MsgUpdateAdmin$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/tx_pb.d.ts /** * @generated from protobuf message injective.exchange.v2.MsgUpdateSpotMarket */ interface MsgUpdateSpotMarket { /** * current admin address of the associated market * * @generated from protobuf field: string admin = 1 */ admin: string; /** * id of the market to be updated * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * (optional) updated ticker value * * @generated from protobuf field: string new_ticker = 3 */ newTicker: string; /** * (optional) updated min price tick size value (in human readable format) * * @generated from protobuf field: string new_min_price_tick_size = 4 */ newMinPriceTickSize: string; /** * (optional) updated min quantity tick size value (in human readable format) * * @generated from protobuf field: string new_min_quantity_tick_size = 5 */ newMinQuantityTickSize: string; /** * (optional) updated min notional (in human readable format) * * @generated from protobuf field: string new_min_notional = 6 */ newMinNotional: string; } /** * @generated from protobuf message injective.exchange.v2.MsgUpdateDerivativeMarket */ interface MsgUpdateDerivativeMarket { /** * current admin address of the associated market * * @generated from protobuf field: string admin = 1 */ admin: string; /** * id of the market to be updated * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * (optional) updated value for ticker * * @generated from protobuf field: string new_ticker = 3 */ newTicker: string; /** * (optional) updated value for min_price_tick_size (in human readable format) * * @generated from protobuf field: string new_min_price_tick_size = 4 */ newMinPriceTickSize: string; /** * (optional) updated value min_quantity_tick_size (in human readable format) * * @generated from protobuf field: string new_min_quantity_tick_size = 5 */ newMinQuantityTickSize: string; /** * (optional) updated min notional (in human readable format) * * @generated from protobuf field: string new_min_notional = 6 */ newMinNotional: string; /** * (optional) updated value for initial_margin_ratio * * @generated from protobuf field: string new_initial_margin_ratio = 7 */ newInitialMarginRatio: string; /** * (optional) updated value for maintenance_margin_ratio * * @generated from protobuf field: string new_maintenance_margin_ratio = 8 */ newMaintenanceMarginRatio: string; /** * (optional) updated value for reduce_margin_ratio * * @generated from protobuf field: string new_reduce_margin_ratio = 9 */ newReduceMarginRatio: string; /** * (optional) updated value for open_notional_cap * * @generated from protobuf field: injective.exchange.v2.OpenNotionalCap new_open_notional_cap = 10 */ newOpenNotionalCap?: OpenNotionalCap$2; /** * (optional) tri-state toggle for cross-margin eligibility. Direct message * updates are exchange-admin-only and may set either ELIGIBLE or INELIGIBLE. * UNSPECIFIED is a no-op (preserves current value). * * @generated from protobuf field: injective.exchange.v2.CrossMarginEligibility cross_margin_eligibility = 11 */ crossMarginEligibility: CrossMarginEligibility; } /** * MsgUpdateSwapParams updates only the swap parameter group. It is callable by * the governance authority or any exchange admin, providing an immediate * operational path for pausing swaps or maintaining the market allowlist. * * @generated from protobuf message injective.exchange.v2.MsgUpdateSwapParams */ interface MsgUpdateSwapParams { /** * sender is the governance authority or an exchange admin. * * @generated from protobuf field: string sender = 1 */ sender: string; /** * swap_params fully replaces the current swap parameter group. * * @generated from protobuf field: injective.exchange.v2.SwapParams swap_params = 2 */ swapParams?: SwapParams; } /** * MsgDeposit defines a SDK message for transferring coins from the sender's * bank balance into the subaccount's exchange deposits * * @generated from protobuf message injective.exchange.v2.MsgDeposit */ interface MsgDeposit$2 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * (Optional) the subaccount ID to deposit funds into. If empty, the coin * will be deposited to the sender's default subaccount address. * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the amount of the deposit (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgWithdraw defines a SDK message for withdrawing coins from a subaccount's * deposits to the user's bank balance * * @generated from protobuf message injective.exchange.v2.MsgWithdraw */ interface MsgWithdraw$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID to withdraw funds from * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the amount of the withdrawal (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * MsgUpdateSubaccountRiskProfile defines a SDK message for updating a * subaccount's risk profile (e.g. opting into cross-margin). * * @generated from protobuf message injective.exchange.v2.MsgUpdateSubaccountRiskProfile */ interface MsgUpdateSubaccountRiskProfile { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID to update the risk profile for * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the requested risk profile (subject to eligibility & safety gates) * * @generated from protobuf field: injective.exchange.v2.SubaccountRiskProfile risk_profile = 3 */ riskProfile?: SubaccountRiskProfile; } /** * MsgCreateSpotLimitOrder defines a SDK message for creating a new spot limit * order. * * @generated from protobuf message injective.exchange.v2.MsgCreateSpotLimitOrder */ interface MsgCreateSpotLimitOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.SpotOrder order = 2 */ order?: SpotOrder$1; } /** * MsgInstantSpotMarketLaunch defines a SDK message for creating a new spot * market by paying listing fee without governance * * @generated from protobuf message injective.exchange.v2.MsgInstantSpotMarketLaunch */ interface MsgInstantSpotMarketLaunch$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Ticker for the spot market. * * @generated from protobuf field: string ticker = 2 */ ticker: string; /** * type of coin to use as the base currency * * @generated from protobuf field: string base_denom = 3 */ baseDenom: string; /** * type of coin to use as the quote currency * * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * min_price_tick_size defines the minimum tick size of the order's price (in * human readable format) * * @generated from protobuf field: string min_price_tick_size = 5 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the order's * quantity (in human readable format) * * @generated from protobuf field: string min_quantity_tick_size = 6 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market (in human readable format) * * @generated from protobuf field: string min_notional = 7 */ minNotional: string; /** * base token decimals * * @generated from protobuf field: uint32 base_decimals = 8 */ baseDecimals: number; /** * quote token decimals * * @generated from protobuf field: uint32 quote_decimals = 9 */ quoteDecimals: number; } /** * MsgInstantBinaryOptionsMarketLaunch defines a SDK message for creating a new * perpetual futures market by paying listing fee without governance * * @generated from protobuf message injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch */ interface MsgInstantBinaryOptionsMarketLaunch$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * Ticker for the derivative contract. * * @generated from protobuf field: string ticker = 2 */ ticker: string; /** * Oracle symbol * * @generated from protobuf field: string oracle_symbol = 3 */ oracleSymbol: string; /** * Oracle Provider * * @generated from protobuf field: string oracle_provider = 4 */ oracleProvider: string; /** * Oracle type * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 5 */ oracleType: OracleType; /** * Scale factor for oracle prices. * * @generated from protobuf field: uint32 oracle_scale_factor = 6 */ oracleScaleFactor: number; /** * maker_fee_rate defines the trade fee rate for makers on the perpetual * market * * @generated from protobuf field: string maker_fee_rate = 7 */ makerFeeRate: string; /** * taker_fee_rate defines the trade fee rate for takers on the perpetual * market * * @generated from protobuf field: string taker_fee_rate = 8 */ takerFeeRate: string; /** * expiration timestamp * * @generated from protobuf field: int64 expiration_timestamp = 9 */ expirationTimestamp: bigint; /** * expiration timestamp * * @generated from protobuf field: int64 settlement_timestamp = 10 */ settlementTimestamp: bigint; /** * admin of the market * * @generated from protobuf field: string admin = 11 */ admin: string; /** * Address of the quote currency denomination for the binary options contract * * @generated from protobuf field: string quote_denom = 12 */ quoteDenom: string; /** * min_price_tick_size defines the minimum tick size that the price and margin * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_price_tick_size = 13 */ minPriceTickSize: string; /** * min_quantity_tick_size defines the minimum tick size of the quantity * required for orders in the market (in human readable format) * * @generated from protobuf field: string min_quantity_tick_size = 14 */ minQuantityTickSize: string; /** * min_notional defines the minimum notional (in quote asset) required for * orders in the market (in human readable format) * * @generated from protobuf field: string min_notional = 15 */ minNotional: string; /** * open_notional_cap defines the cap on the open notional * * @generated from protobuf field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 16 */ openNotionalCap?: OpenNotionalCap$2; } /** * MsgCreateSpotMarketOrder defines a SDK message for creating a new spot market * order. * * @generated from protobuf message injective.exchange.v2.MsgCreateSpotMarketOrder */ interface MsgCreateSpotMarketOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.SpotOrder order = 2 */ order?: SpotOrder$1; } /** * A Cosmos-SDK MsgCreateDerivativeLimitOrder * * @generated from protobuf message injective.exchange.v2.MsgCreateDerivativeLimitOrder */ interface MsgCreateDerivativeLimitOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.DerivativeOrder order = 2 */ order?: DerivativeOrder$1; } /** * A Cosmos-SDK MsgCreateBinaryOptionsLimitOrder * * @generated from protobuf message injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder */ interface MsgCreateBinaryOptionsLimitOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.DerivativeOrder order = 2 */ order?: DerivativeOrder$1; } /** * MsgCancelSpotOrder defines the Msg/CancelSpotOrder response type. * * @generated from protobuf message injective.exchange.v2.MsgCancelSpotOrder */ interface MsgCancelSpotOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * the order hash (optional) * * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 5 */ cid: string; } /** * MsgBatchCancelSpotOrders defines the Msg/BatchCancelSpotOrders response type. * * @generated from protobuf message injective.exchange.v2.MsgBatchCancelSpotOrders */ interface MsgBatchCancelSpotOrders$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v2.OrderData data = 2 */ data: OrderData[]; } /** * MsgBatchCancelBinaryOptionsOrders defines the * Msg/BatchCancelBinaryOptionsOrders response type. * * @generated from protobuf message injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders */ interface MsgBatchCancelBinaryOptionsOrders$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v2.OrderData data = 2 */ data: OrderData[]; } /** * MsgBatchUpdateOrders defines the Msg/BatchUpdateOrders response type. * * @generated from protobuf message injective.exchange.v2.MsgBatchUpdateOrders */ interface MsgBatchUpdateOrders$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * subaccount_id only used for the spot_market_ids_to_cancel_all and * derivative_market_ids_to_cancel_all (optional) * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the market IDs to cancel all spot orders for (optional) * * @generated from protobuf field: repeated string spot_market_ids_to_cancel_all = 3 */ spotMarketIdsToCancelAll: string[]; /** * the market IDs to cancel all derivative orders for (optional) * * @generated from protobuf field: repeated string derivative_market_ids_to_cancel_all = 4 */ derivativeMarketIdsToCancelAll: string[]; /** * the spot orders to cancel * * @generated from protobuf field: repeated injective.exchange.v2.OrderData spot_orders_to_cancel = 5 */ spotOrdersToCancel: OrderData[]; /** * the derivative orders to cancel * * @generated from protobuf field: repeated injective.exchange.v2.OrderData derivative_orders_to_cancel = 6 */ derivativeOrdersToCancel: OrderData[]; /** * the spot orders to create * * @generated from protobuf field: repeated injective.exchange.v2.SpotOrder spot_orders_to_create = 7 */ spotOrdersToCreate: SpotOrder$1[]; /** * the derivative orders to create * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeOrder derivative_orders_to_create = 8 */ derivativeOrdersToCreate: DerivativeOrder$1[]; /** * the binary options orders to cancel * * @generated from protobuf field: repeated injective.exchange.v2.OrderData binary_options_orders_to_cancel = 9 */ binaryOptionsOrdersToCancel: OrderData[]; /** * the market IDs to cancel all binary options orders for (optional) * * @generated from protobuf field: repeated string binary_options_market_ids_to_cancel_all = 10 */ binaryOptionsMarketIdsToCancelAll: string[]; /** * the binary options orders to create * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeOrder binary_options_orders_to_create = 11 */ binaryOptionsOrdersToCreate: DerivativeOrder$1[]; /** * the spot market orders to create * * @generated from protobuf field: repeated injective.exchange.v2.SpotOrder spot_market_orders_to_create = 12 */ spotMarketOrdersToCreate: SpotOrder$1[]; /** * the derivative market orders to create * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeOrder derivative_market_orders_to_create = 13 */ derivativeMarketOrdersToCreate: DerivativeOrder$1[]; /** * the binary options market orders to create * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeOrder binary_options_market_orders_to_create = 14 */ binaryOptionsMarketOrdersToCreate: DerivativeOrder$1[]; } /** * A Cosmos-SDK MsgCreateDerivativeMarketOrder * * @generated from protobuf message injective.exchange.v2.MsgCreateDerivativeMarketOrder */ interface MsgCreateDerivativeMarketOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.DerivativeOrder order = 2 */ order?: DerivativeOrder$1; } /** * A Cosmos-SDK MsgCreateBinaryOptionsMarketOrder * * @generated from protobuf message injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder */ interface MsgCreateBinaryOptionsMarketOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the order details * * @generated from protobuf field: injective.exchange.v2.DerivativeOrder order = 2 */ order?: DerivativeOrder$1; } /** * MsgCancelDerivativeOrder defines the Msg/CancelDerivativeOrder response type. * * @generated from protobuf message injective.exchange.v2.MsgCancelDerivativeOrder */ interface MsgCancelDerivativeOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * the order hash (optional) * * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * the order mask (bitwise combination of OrderMask enum values) (optional) * * @generated from protobuf field: int32 order_mask = 5 */ orderMask: number; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 6 */ cid: string; } /** * MsgCancelBinaryOptionsOrder defines the Msg/CancelBinaryOptionsOrder response * type. * * @generated from protobuf message injective.exchange.v2.MsgCancelBinaryOptionsOrder */ interface MsgCancelBinaryOptionsOrder$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * the order hash (optional) * * @generated from protobuf field: string order_hash = 4 */ orderHash: string; /** * the order mask (bitwise combination of OrderMask enum values) (optional) * * @generated from protobuf field: int32 order_mask = 5 */ orderMask: number; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 6 */ cid: string; } /** * @generated from protobuf message injective.exchange.v2.OrderData */ interface OrderData { /** * the market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the order hash (optional - either the order_hash or the cid should be * provided) * * @generated from protobuf field: string order_hash = 3 */ orderHash: string; /** * the order mask (bitwise combination of OrderMask enum values) * * @generated from protobuf field: int32 order_mask = 4 */ orderMask: number; /** * the client order ID (optional - either the order_hash or the cid should be * provided) * * @generated from protobuf field: string cid = 5 */ cid: string; } /** * MsgBatchCancelDerivativeOrders defines the Msg/CancelDerivativeOrders * response type. * * @generated from protobuf message injective.exchange.v2.MsgBatchCancelDerivativeOrders */ interface MsgBatchCancelDerivativeOrders$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: repeated injective.exchange.v2.OrderData data = 2 */ data: OrderData[]; } /** * A Cosmos-SDK MsgSubaccountTransfer * * @generated from protobuf message injective.exchange.v2.MsgSubaccountTransfer */ interface MsgSubaccountTransfer { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the source subaccount ID * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the destination subaccount ID * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the amount to transfer (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 4 */ amount?: Coin$1; } /** * A Cosmos-SDK MsgExternalTransfer * * @generated from protobuf message injective.exchange.v2.MsgExternalTransfer */ interface MsgExternalTransfer$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the source subaccount ID * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the destination subaccount ID * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the amount to transfer (in chain format) * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 4 */ amount?: Coin$1; } /** * A Cosmos-SDK MsgLiquidatePosition * * @generated from protobuf message injective.exchange.v2.MsgLiquidatePosition */ interface MsgLiquidatePosition$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID the position belongs to * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * the position's market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * optional order to provide for liquidation * * @generated from protobuf field: injective.exchange.v2.DerivativeOrder order = 4 */ order?: DerivativeOrder$1; } /** * A Cosmos-SDK MsgOffsetPosition * * @generated from protobuf message injective.exchange.v2.MsgOffsetPosition */ interface MsgOffsetPosition { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * @generated from protobuf field: repeated string offsetting_subaccount_ids = 4 */ offsettingSubaccountIds: string[]; } /** * A Cosmos-SDK MsgIncreasePositionMargin * * @generated from protobuf message injective.exchange.v2.MsgIncreasePositionMargin */ interface MsgIncreasePositionMargin$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID sending the funds * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the subaccount ID the position belongs to * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 4 */ marketId: string; /** * amount defines the amount of margin to add to the position (in human * readable format) * * @generated from protobuf field: string amount = 5 */ amount: string; } /** * A Cosmos-SDK MsgDecreasePositionMargin * * @generated from protobuf message injective.exchange.v2.MsgDecreasePositionMargin */ interface MsgDecreasePositionMargin$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the subaccount ID the position belongs to * * @generated from protobuf field: string source_subaccount_id = 2 */ sourceSubaccountId: string; /** * the destination subaccount ID * * @generated from protobuf field: string destination_subaccount_id = 3 */ destinationSubaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 4 */ marketId: string; /** * amount defines the amount of margin to withdraw from the position (in human * readable format) * * @generated from protobuf field: string amount = 5 */ amount: string; } /** * A Cosmos-SDK MsgRewardsOptOut * * @generated from protobuf message injective.exchange.v2.MsgRewardsOptOut */ interface MsgRewardsOptOut$1 { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; } /** * A Cosmos-SDK MsgReclaimLockedFunds * * @generated from protobuf message injective.exchange.v2.MsgReclaimLockedFunds */ interface MsgReclaimLockedFunds$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: bytes lockedAccountPubKey = 2 */ lockedAccountPubKey: Uint8Array; /** * @generated from protobuf field: bytes signature = 3 */ signature: Uint8Array; } /** * MsgSignData defines an arbitrary, general-purpose, off-chain message * * @generated from protobuf message injective.exchange.v2.MsgSignData */ interface MsgSignData$1 { /** * Signer is the sdk.AccAddress of the message signer * * @generated from protobuf field: bytes Signer = 1 */ signer: Uint8Array; /** * Data represents the raw bytes of the content that is signed (text, json, * etc) * * @generated from protobuf field: bytes Data = 2 */ data: Uint8Array; } /** * MsgAdminUpdateBinaryOptionsMarket is used by the market Admin to operate the * market * * @generated from protobuf message injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket */ interface MsgAdminUpdateBinaryOptionsMarket$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * new price at which market will be settled * * @generated from protobuf field: string settlement_price = 3 */ settlementPrice: string; /** * expiration timestamp * * @generated from protobuf field: int64 expiration_timestamp = 4 */ expirationTimestamp: bigint; /** * expiration timestamp * * @generated from protobuf field: int64 settlement_timestamp = 5 */ settlementTimestamp: bigint; /** * Status of the market * * @generated from protobuf field: injective.exchange.v2.MarketStatus status = 6 */ status: MarketStatus; } /** * MsgAuthorizeStakeGrants grants stakes to grantees. * * @generated from protobuf message injective.exchange.v2.MsgAuthorizeStakeGrants */ interface MsgAuthorizeStakeGrants$1 { /** * Injective address of the stake granter * * @generated from protobuf field: string sender = 1 */ sender: string; /** * list of stake grants to authorize (mandatory) * * @generated from protobuf field: repeated injective.exchange.v2.GrantAuthorization grants = 2 */ grants: GrantAuthorization$1[]; } /** * MsgActivateStakeGrant allows a grantee to activate a stake grant. * * @generated from protobuf message injective.exchange.v2.MsgActivateStakeGrant */ interface MsgActivateStakeGrant { /** * Injective address of the stake grantee * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Injective address of the stake granter * * @generated from protobuf field: string granter = 2 */ granter: string; } /** * MsgSetDelegationTransferReceivers defines a message for adding delegation * transfer receivers. * * @generated from protobuf message injective.exchange.v2.MsgSetDelegationTransferReceivers */ interface MsgSetDelegationTransferReceivers { /** * the sender's Injective address (must be exchange admin) * * @generated from protobuf field: string sender = 1 */ sender: string; /** * list of receiver addresses to set as delegation transfer receivers * * @generated from protobuf field: repeated string receivers = 2 */ receivers: string[]; } /** * MsgCancelPostOnlyMode defines a message for canceling post-only mode * * @generated from protobuf message injective.exchange.v2.MsgCancelPostOnlyMode */ interface MsgCancelPostOnlyMode { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; } /** * MsgActivatePostOnlyMode defines a message to turn on the post-only mode for a * number of blocks * * @generated from protobuf message injective.exchange.v2.MsgActivatePostOnlyMode */ interface MsgActivatePostOnlyMode { /** * the sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the number of blocks to activate post-only mode for * * @generated from protobuf field: uint32 blocks_amount = 2 */ blocksAmount: number; } /** * MsgLiquidateCrossMarginPool atomically closes all positions in a * cross-margin pool, netting surplus from profitable positions against deficits * before touching the insurance fund. * * @generated from protobuf message injective.exchange.v2.MsgLiquidateCrossMarginPool */ interface MsgLiquidateCrossMarginPool { /** * the liquidator's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the cross-margin subaccount to liquidate * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * identifies which cross-margin pool (by quote denom) * * @generated from protobuf field: string quote_denom = 3 */ quoteDenom: string; } /** * @generated MessageType for protobuf message injective.exchange.v2.MsgUpdateSpotMarket */ declare const MsgUpdateSpotMarket = new MsgUpdateSpotMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgUpdateDerivativeMarket */ declare const MsgUpdateDerivativeMarket = new MsgUpdateDerivativeMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgUpdateSwapParams */ declare const MsgUpdateSwapParams = new MsgUpdateSwapParams$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgDeposit */ declare const MsgDeposit$2 = new MsgDeposit$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgWithdraw */ declare const MsgWithdraw$1 = new MsgWithdraw$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgUpdateSubaccountRiskProfile */ declare const MsgUpdateSubaccountRiskProfile = new MsgUpdateSubaccountRiskProfile$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateSpotLimitOrder */ declare const MsgCreateSpotLimitOrder$1 = new MsgCreateSpotLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgInstantSpotMarketLaunch */ declare const MsgInstantSpotMarketLaunch$1 = new MsgInstantSpotMarketLaunch$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch */ declare const MsgInstantBinaryOptionsMarketLaunch$1 = new MsgInstantBinaryOptionsMarketLaunch$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateSpotMarketOrder */ declare const MsgCreateSpotMarketOrder$1 = new MsgCreateSpotMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateDerivativeLimitOrder */ declare const MsgCreateDerivativeLimitOrder$1 = new MsgCreateDerivativeLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder */ declare const MsgCreateBinaryOptionsLimitOrder$1 = new MsgCreateBinaryOptionsLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCancelSpotOrder */ declare const MsgCancelSpotOrder$1 = new MsgCancelSpotOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgBatchCancelSpotOrders */ declare const MsgBatchCancelSpotOrders$1 = new MsgBatchCancelSpotOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders */ declare const MsgBatchCancelBinaryOptionsOrders$1 = new MsgBatchCancelBinaryOptionsOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgBatchUpdateOrders */ declare const MsgBatchUpdateOrders$1 = new MsgBatchUpdateOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateDerivativeMarketOrder */ declare const MsgCreateDerivativeMarketOrder$1 = new MsgCreateDerivativeMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder */ declare const MsgCreateBinaryOptionsMarketOrder$1 = new MsgCreateBinaryOptionsMarketOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCancelDerivativeOrder */ declare const MsgCancelDerivativeOrder$1 = new MsgCancelDerivativeOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCancelBinaryOptionsOrder */ declare const MsgCancelBinaryOptionsOrder$1 = new MsgCancelBinaryOptionsOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OrderData */ declare const OrderData = new OrderData$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgBatchCancelDerivativeOrders */ declare const MsgBatchCancelDerivativeOrders$1 = new MsgBatchCancelDerivativeOrders$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgSubaccountTransfer */ declare const MsgSubaccountTransfer = new MsgSubaccountTransfer$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgExternalTransfer */ declare const MsgExternalTransfer$1 = new MsgExternalTransfer$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgLiquidatePosition */ declare const MsgLiquidatePosition$1 = new MsgLiquidatePosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgOffsetPosition */ declare const MsgOffsetPosition = new MsgOffsetPosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgIncreasePositionMargin */ declare const MsgIncreasePositionMargin$1 = new MsgIncreasePositionMargin$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgDecreasePositionMargin */ declare const MsgDecreasePositionMargin$1 = new MsgDecreasePositionMargin$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgRewardsOptOut */ declare const MsgRewardsOptOut$1 = new MsgRewardsOptOut$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgReclaimLockedFunds */ declare const MsgReclaimLockedFunds$1 = new MsgReclaimLockedFunds$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgSignData */ declare const MsgSignData$1 = new MsgSignData$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket */ declare const MsgAdminUpdateBinaryOptionsMarket$1 = new MsgAdminUpdateBinaryOptionsMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgAuthorizeStakeGrants */ declare const MsgAuthorizeStakeGrants$1 = new MsgAuthorizeStakeGrants$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgActivateStakeGrant */ declare const MsgActivateStakeGrant = new MsgActivateStakeGrant$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgSetDelegationTransferReceivers */ declare const MsgSetDelegationTransferReceivers = new MsgSetDelegationTransferReceivers$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgCancelPostOnlyMode */ declare const MsgCancelPostOnlyMode = new MsgCancelPostOnlyMode$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgActivatePostOnlyMode */ declare const MsgActivatePostOnlyMode = new MsgActivatePostOnlyMode$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MsgLiquidateCrossMarginPool */ declare const MsgLiquidateCrossMarginPool = new MsgLiquidateCrossMarginPool$Type(); //#endregion //#region src/core/modules/exchange/msgs/MsgDepositV2.d.ts declare namespace MsgDepositV2 { interface Params { subaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgDeposit$2; } /** * @category Messages */ declare class MsgDepositV2 extends MsgBase { static fromJSON(params: MsgDepositV2.Params): MsgDepositV2; toProto(): MsgDeposit$2; toData(): { sender: string; subaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgDeposit$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgUndelegate.d.ts declare namespace MsgUndelegate { interface Params { amount: { denom: string; amount: string; }; validatorAddress: string; injectiveAddress: string; } type Proto = MsgUndelegate$1; } /** * @category Messages */ declare class MsgUndelegate extends MsgBase { static fromJSON(params: MsgUndelegate.Params): MsgUndelegate; toProto(): MsgUndelegate$1; toData(): { delegatorAddress: string; validatorAddress: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgUndelegate$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgSignDataV2.d.ts declare namespace MsgSignDataV2 { interface Params { sender: string; data: string; } type Proto = MsgSignData$1; } /** * @category Messages */ declare class MsgSignDataV2 extends MsgBase { static fromJSON(params: MsgSignDataV2.Params): MsgSignDataV2; toProto(): MsgSignData$1; toData(): { signer: Uint8Array; data: Uint8Array; '@type': string; }; toAmino(): { type: string; value: { signer: string; data: string; }; }; toWeb3Gw(): { signer: string; data: string; '@type': string; }; toDirectSign(): { type: string; message: MsgSignData$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgWithdrawV2.d.ts declare namespace MsgWithdrawV2 { interface Params { subaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgWithdraw$1; } /** * @category Messages */ declare class MsgWithdrawV2 extends MsgBase { static fromJSON(params: MsgWithdrawV2.Params): MsgWithdrawV2; toProto(): MsgWithdraw$1; toData(): { sender: string; subaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgWithdraw$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/insurance/v1beta1/insurance_pb.d.ts /** * @generated from protobuf message injective.insurance.v1beta1.Params */ interface Params { /** * default_redemption_notice_period_duration defines the default minimum * notice period duration that must pass after an underwriter sends a * redemption request before the underwriter can claim his tokens * * @generated from protobuf field: google.protobuf.Duration default_redemption_notice_period_duration = 1 */ defaultRedemptionNoticePeriodDuration?: Duration; } /** * @generated from protobuf message injective.insurance.v1beta1.InsuranceFund */ interface InsuranceFund$1 { /** * deposit denomination for the given insurance fund * * @generated from protobuf field: string deposit_denom = 1 */ depositDenom: string; /** * insurance fund pool token denomination for the given insurance fund * * @generated from protobuf field: string insurance_pool_token_denom = 2 */ insurancePoolTokenDenom: string; /** * redemption_notice_period_duration defines the minimum notice period * duration that must pass after an underwriter sends a redemption request * before the underwriter can claim his tokens * * @generated from protobuf field: google.protobuf.Duration redemption_notice_period_duration = 3 */ redemptionNoticePeriodDuration?: Duration; /** * balance of fund * * @generated from protobuf field: string balance = 4 */ balance: string; /** * total share tokens minted * * @generated from protobuf field: string total_share = 5 */ totalShare: string; /** * marketID of the derivative market * * @generated from protobuf field: string market_id = 6 */ marketId: string; /** * ticker of the derivative market * * @generated from protobuf field: string market_ticker = 7 */ marketTicker: string; /** * Oracle base currency of the derivative market OR the oracle symbol for the * binary options market. * * @generated from protobuf field: string oracle_base = 8 */ oracleBase: string; /** * Oracle quote currency of the derivative market OR the oracle provider for * the binary options market. * * @generated from protobuf field: string oracle_quote = 9 */ oracleQuote: string; /** * Oracle type of the binary options or derivative market * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 10 */ oracleType: OracleType; /** * Expiration time of the derivative market. Should be -1 for perpetual or -2 * for binary options markets. * * @generated from protobuf field: int64 expiry = 11 */ expiry: bigint; } /** * @generated from protobuf message injective.insurance.v1beta1.RedemptionSchedule */ interface RedemptionSchedule$1 { /** * id of redemption schedule * * @generated from protobuf field: uint64 id = 1 */ id: bigint; /** * marketId of insurance fund for the redemption * * @generated from protobuf field: string marketId = 2 */ marketId: string; /** * address of the redeemer * * @generated from protobuf field: string redeemer = 3 */ redeemer: string; /** * the time after which the redemption can be claimed * * @generated from protobuf field: google.protobuf.Timestamp claimable_redemption_time = 4 */ claimableRedemptionTime?: Timestamp; /** * the insurance_pool_token amount to redeem * * @generated from protobuf field: cosmos.base.v1beta1.Coin redemption_amount = 5 */ redemptionAmount?: Coin$1; } /** * @generated MessageType for protobuf message injective.insurance.v1beta1.Params */ declare const Params = new Params$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.InsuranceFund */ declare const InsuranceFund$1 = new InsuranceFund$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.RedemptionSchedule */ declare const RedemptionSchedule$1 = new RedemptionSchedule$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/insurance/v1beta1/tx_pb.d.ts /** * MsgCreateInsuranceFund a message to create an insurance fund for a derivative * market. * * @generated from protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFund */ interface MsgCreateInsuranceFund$1 { /** * Creator of the insurance fund. * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Ticker for the derivative market. * * @generated from protobuf field: string ticker = 2 */ ticker: string; /** * Coin denom to use for the market quote denom * * @generated from protobuf field: string quote_denom = 3 */ quoteDenom: string; /** * Oracle base currency of the derivative market OR the oracle symbol for the * binary options market. * * @generated from protobuf field: string oracle_base = 4 */ oracleBase: string; /** * Oracle quote currency of the derivative market OR the oracle provider for * the binary options market. * * @generated from protobuf field: string oracle_quote = 5 */ oracleQuote: string; /** * Oracle type of the binary options or derivative market * * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 6 */ oracleType: OracleType; /** * Expiration time of the derivative market. Should be -1 for perpetual or -2 * for binary options markets. * * @generated from protobuf field: int64 expiry = 7 */ expiry: bigint; /** * Initial deposit of the insurance fund * * @generated from protobuf field: cosmos.base.v1beta1.Coin initial_deposit = 8 */ initialDeposit?: Coin$1; } /** * MsgUnderwrite defines a message for depositing coins to underwrite an * insurance fund * * @generated from protobuf message injective.insurance.v1beta1.MsgUnderwrite */ interface MsgUnderwrite$1 { /** * Address of the underwriter. * * @generated from protobuf field: string sender = 1 */ sender: string; /** * MarketID of the insurance fund. * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Amount of quote_denom to underwrite the insurance fund. * * @generated from protobuf field: cosmos.base.v1beta1.Coin deposit = 3 */ deposit?: Coin$1; } /** * MsgRequestRedemption defines a message for requesting a redemption of the * sender's insurance fund tokens * * @generated from protobuf message injective.insurance.v1beta1.MsgRequestRedemption */ interface MsgRequestRedemption$1 { /** * Address of the underwriter requesting a redemption. * * @generated from protobuf field: string sender = 1 */ sender: string; /** * MarketID of the insurance fund. * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Insurance fund share token amount to be redeemed. * * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3 */ amount?: Coin$1; } /** * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFund */ declare const MsgCreateInsuranceFund$1 = new MsgCreateInsuranceFund$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgUnderwrite */ declare const MsgUnderwrite$1 = new MsgUnderwrite$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgRequestRedemption */ declare const MsgRequestRedemption$1 = new MsgRequestRedemption$Type(); //#endregion //#region src/core/modules/insurance/msgs/MsgUnderwrite.d.ts declare namespace MsgUnderwrite { interface Params { marketId: string; amount: { denom: string; amount: string; }; injectiveAddress: string; } type Proto = MsgUnderwrite$1; } /** * @category Messages */ declare class MsgUnderwrite extends MsgBase { static fromJSON(params: MsgUnderwrite.Params): MsgUnderwrite; toProto(): MsgUnderwrite$1; toData(): { sender: string; marketId: string; deposit?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; deposit: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; market_id: string; deposit: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgUnderwrite$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgEditValidator.d.ts declare namespace MsgEditValidator { interface Params { description: { moniker: string; identity: string; website: string; securityContact?: string; details: string; }; validatorAddress: string; commissionRate?: string; minSelfDelegation?: string; } type Proto = MsgEditValidator$1; } /** * @category Messages */ declare class MsgEditValidator extends MsgBase { static fromJSON(params: MsgEditValidator.Params): MsgEditValidator; toProto(): MsgEditValidator$1; toData(): { description?: Description; validatorAddress: string; commissionRate: string; minSelfDelegation: string; '@type': string; }; toAmino(): { type: string; value: { description: { moniker: string | undefined; identity: string | undefined; website: string | undefined; security_contact: string | undefined; details: string | undefined; }; validator_address: string; commission_rate: string; min_self_delegation: string; }; }; toWeb3Gw(): { description: { moniker: string | undefined; identity: string | undefined; website: string | undefined; security_contact: string | undefined; details: string | undefined; }; validator_address: string; commission_rate: string; min_self_delegation: string; '@type': string; }; toEip712(): { type: string; value: { commission_rate: string; description: { moniker: string | undefined; identity: string | undefined; website: string | undefined; security_contact: string | undefined; details: string | undefined; }; validator_address: string; min_self_delegation: string; }; }; toEip712V2(): { commission_rate: string; description: { moniker: string | undefined; identity: string | undefined; website: string | undefined; security_contact: string | undefined; details: string | undefined; }; validator_address: string; min_self_delegation: string; '@type': string; }; toDirectSign(): { type: string; message: MsgEditValidator$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.d.ts type SnakeCaseKeys$1 | readonly any[]> = snakecaseKeys.SnakeCaseKeys; declare namespace MsgPrivilegedExecuteContract { interface Params { sender: string; funds: string; contractAddress: string; data: ExecPrivilegedArgs; } type Proto = MsgPrivilegedExecuteContract$1; } /** * @category Messages */ declare class MsgPrivilegedExecuteContract extends MsgBase { static fromJSON(params: MsgPrivilegedExecuteContract.Params): MsgPrivilegedExecuteContract; toProto(): MsgPrivilegedExecuteContract.Proto; toData(): { sender: string; funds: string; contractAddress: string; data: string; '@type': string; }; toAmino(): { type: string; value: SnakeCaseKeys$1; }; toWeb3Gw(): { sender: string; funds: string; contractAddress: string; data: string; '@type': string; }; toDirectSign(): { type: string; message: MsgPrivilegedExecuteContract$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgRewardsOptOut.d.ts declare namespace MsgRewardsOptOut { interface Params { sender: string; } type Proto = MsgRewardsOptOut$2; } /** * @category Messages */ declare class MsgRewardsOptOut extends MsgBase { static fromJSON(params: MsgRewardsOptOut.Params): MsgRewardsOptOut; toProto(): MsgRewardsOptOut$2; toData(): { sender: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; }; }; toWeb3Gw(): { sender: string; '@type': string; }; toDirectSign(): { type: string; message: MsgRewardsOptOut$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/tokenfactory/msgs/MsgChangeAdmin.d.ts declare namespace MsgChangeAdmin { interface Params { sender: string; denom: string; newAdmin: string; } type Proto = MsgChangeAdmin$1; } /** * @category Messages */ declare class MsgChangeAdmin extends MsgBase { static fromJSON(params: MsgChangeAdmin.Params): MsgChangeAdmin; toProto(): MsgChangeAdmin$1; toData(): { sender: string; denom: string; newAdmin: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; denom: string; new_admin: string; }; }; toWeb3Gw(): { sender: string; denom: string; new_admin: string; '@type': string; }; toDirectSign(): { type: string; message: MsgChangeAdmin$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/tokenfactory/msgs/MsgCreateDenom.d.ts declare namespace MsgCreateDenom { interface Params { sender: string; subdenom: string; decimals?: number; name?: string; symbol?: string; allowAdminBurn?: boolean; } type Proto = MsgCreateDenom$1; } /** * @category Messages */ declare class MsgCreateDenom extends MsgBase { static fromJSON(params: MsgCreateDenom.Params): MsgCreateDenom; toProto(): MsgCreateDenom$1; toData(): { sender: string; subdenom: string; name: string; symbol: string; decimals: number; allowAdminBurn: boolean; '@type': string; }; toAmino(): { type: string; value: { allow_admin_burn?: boolean | undefined; sender: string; subdenom: string; name: string; symbol: string; decimals: number; }; }; toWeb3Gw(): { allow_admin_burn?: boolean | undefined; sender: string; subdenom: string; name: string; symbol: string; decimals: number; '@type': string; }; toDirectSign(): { type: string; message: MsgCreateDenom$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/wasm/msgs/MsgExecuteContract.d.ts declare namespace MsgExecuteContract { interface Params { funds?: Coin | Coin[]; sender: string; contractAddress: string; execArgs?: ExecArgs; exec?: { msg: object; action: string; }; /** * Same as exec but you don't pass * the action as a separate property * but as a whole object */ msg?: object; } type Proto = MsgExecuteContract$1; type Object = Omit & { msg: any; }; } /** * @category Messages */ declare class MsgExecuteContract extends MsgBase { static fromJSON(params: MsgExecuteContract.Params): MsgExecuteContract; toProto(): MsgExecuteContract$1; toData(): { sender: string; contract: string; msg: Uint8Array; funds: Coin$1[]; '@type': string; }; toAmino(): { type: string; value: MsgExecuteContract.Object; }; toWeb3Gw(): { sender: string; contract: string; funds: Coin$1[]; msg: any; '@type': string; }; toEip712(): never; toDirectSign(): { type: string; message: MsgExecuteContract$1; }; toBinary(): Uint8Array; private getMsgObject; } //#endregion //#region src/core/modules/wasm/msgs/MsgMigrateContract.d.ts declare namespace MsgMigrateContract { interface Params { sender: string; contract: string; codeId: number; msg: object; } type Proto = MsgMigrateContract$1; type Object = Omit & { msg: any; }; } /** * @category Messages */ declare class MsgMigrateContract extends MsgBase { static fromJSON(params: MsgMigrateContract.Params): MsgMigrateContract; toProto(): MsgMigrateContract$1; toData(): { sender: string; contract: string; codeId: bigint; msg: Uint8Array; '@type': string; }; toAmino(): { type: string; value: MsgMigrateContract.Object; }; toEip712V2(): { msg: object; sender: string; contract: string; codeId: bigint; '@type': string; }; toWeb3Gw(): { msg: any; sender: string; contract: string; codeId: bigint; '@type': string; }; toEip712(): never; toDirectSign(): { type: string; message: MsgMigrateContract$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/peggy/msgs/MsgCreateRateLimit.d.ts declare namespace MsgCreateRateLimit { interface Params { authority: string; tokenAddress: string; tokenDecimals: string | number; absoluteMintLimit?: string | number; tokenPriceId: string; /** pyth price id */ tokenOracleType: OracleType; rateLimitInUsd: string | number; /** rate limit = notional amount of tokens per window */ rateLimitWindow: string | number; /** window = numbers of blocks */ } type Proto = MsgCreateRateLimit$1; } /** * @category Messages */ declare class MsgCreateRateLimit extends MsgBase { static fromJSON(params: MsgCreateRateLimit.Params): MsgCreateRateLimit; toProto(): MsgCreateRateLimit$1; toData(): { authority: string; tokenAddress: string; tokenDecimals: number; tokenPriceId: string; rateLimitUsd: string; absoluteMintLimit: string; rateLimitWindow: bigint; tokenOracleType: OracleType; '@type': string; }; toAmino(): { type: string; value: { authority: string; token_address: string; token_decimals: number; token_price_id: string; rate_limit_usd: string | number; absolute_mint_limit: string; rate_limit_window: string; token_oracle_type: OracleType; }; }; toEip712(): never; toEip712V2(): { token_oracle_type: string; rate_limit_usd: string; authority: string; token_address: string; token_decimals: number; token_price_id: string; absolute_mint_limit: string; rate_limit_window: string; '@type': string; }; toWeb3Gw(): { authority: string; token_address: string; token_decimals: number; token_price_id: string; rate_limit_usd: string | number; absolute_mint_limit: string; rate_limit_window: string; token_oracle_type: OracleType; '@type': string; }; toDirectSign(): { type: string; message: MsgCreateRateLimit$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/peggy/msgs/MsgUpdateRateLimit.d.ts declare namespace MsgUpdateRateLimit { interface Params { injectiveAddress: string; tokenAddress: string; newTokenPriceId: string; /** pyth price id */ newTokenOracleType: OracleType; newRateLimitInUsd: string; /** rate limit = notional amount of tokens per window */ newRateLimitWindow: string; /** window = numbers of blocks */ } type Proto = MsgUpdateRateLimit$1; } /** * @category Messages */ declare class MsgUpdateRateLimit extends MsgBase { static fromJSON(params: MsgUpdateRateLimit.Params): MsgUpdateRateLimit; toProto(): MsgUpdateRateLimit$1; toData(): { authority: string; tokenAddress: string; newTokenPriceId: string; newRateLimitUsd: string; newRateLimitWindow: bigint; newTokenOracleType: OracleType; '@type': string; }; toAmino(): { type: string; value: { authority: string; token_address: string; new_token_price_id: string; new_rate_limit_usd: string; new_rate_limit_window: string; new_token_oracle_type: OracleType; }; }; toEip712(): never; toEip712V2(): { new_token_oracle_type: string; new_rate_limit_usd: string; authority: string; token_address: string; new_token_price_id: string; new_rate_limit_window: string; '@type': string; }; toWeb3Gw(): { authority: string; token_address: string; new_token_price_id: string; new_rate_limit_usd: string; new_rate_limit_window: string; new_token_oracle_type: OracleType; '@type': string; }; toDirectSign(): { type: string; message: MsgUpdateRateLimit$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/peggy/msgs/MsgRemoveRateLimit.d.ts declare namespace MsgRemoveRateLimit { interface Params { injectiveAddress: string; tokenAddress: string; } type Proto = MsgRemoveRateLimit$1; } /** * @category Messages */ declare class MsgRemoveRateLimit extends MsgBase { static fromJSON(params: MsgRemoveRateLimit.Params): MsgRemoveRateLimit; toProto(): MsgRemoveRateLimit$1; toData(): { authority: string; tokenAddress: string; '@type': string; }; toAmino(): { type: string; value: { authority: string; token_address: string; }; }; toWeb3Gw(): { authority: string; token_address: string; '@type': string; }; toDirectSign(): { type: string; message: MsgRemoveRateLimit$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/erc20_pb.d.ts /** * TokenPair defines an association of bank denom <-> EVM token (erc20 contract * address) * * @generated from protobuf message injective.erc20.v1beta1.TokenPair */ interface TokenPair$1 { /** * @generated from protobuf field: string bank_denom = 1 */ bankDenom: string; // bank denom /** * @generated from protobuf field: string erc20_address = 2 */ erc20Address: string; // address of erc20 smart contract that is backed by } /** * @generated MessageType for protobuf message injective.erc20.v1beta1.TokenPair */ declare const TokenPair$1 = new TokenPair$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/params_pb.d.ts /** * Params defines the parameters for the erc20 module. * * @generated from protobuf message injective.erc20.v1beta1.Params */ interface Params$7 { /** * @generated from protobuf field: cosmos.base.v1beta1.Coin denom_creation_fee = 1 */ denomCreationFee?: Coin$1; } /** * @generated MessageType for protobuf message injective.erc20.v1beta1.Params */ declare const Params$7 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/tx_pb.d.ts /** * @generated from protobuf message injective.erc20.v1beta1.MsgCreateTokenPair */ interface MsgCreateTokenPair$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: injective.erc20.v1beta1.TokenPair token_pair = 2 */ tokenPair?: TokenPair$1; } /** * @generated MessageType for protobuf message injective.erc20.v1beta1.MsgCreateTokenPair */ declare const MsgCreateTokenPair$1 = new MsgCreateTokenPair$Type(); //#endregion //#region src/core/modules/erc20/msgs/MsgCreateTokenPair.d.ts declare namespace MsgCreateTokenPair { interface Params { injectiveAddress: string; tokenPair: { denom: string; erc20Address: string; }; } type Proto = MsgCreateTokenPair$1; } /** * @category Messages */ declare class MsgCreateTokenPair extends MsgBase { static fromJSON(params: MsgCreateTokenPair.Params): MsgCreateTokenPair; toProto(): MsgCreateTokenPair$1; toData(): { sender: string; tokenPair?: TokenPair$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; token_pair: { bank_denom: string | undefined; erc20_address: string | undefined; }; }; }; toDirectSign(): { type: string; message: MsgCreateTokenPair$1; }; toWeb3Gw(): { sender: string; token_pair: { bank_denom: string | undefined; erc20_address: string | undefined; }; '@type': string; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/feegrant/v1beta1/tx_pb.d.ts /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. * * @generated from protobuf message cosmos.feegrant.v1beta1.MsgGrantAllowance */ interface MsgGrantAllowance$1 { /** * granter is the address of the user granting an allowance of their funds. * * @generated from protobuf field: string granter = 1 */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. * * @generated from protobuf field: string grantee = 2 */ grantee: string; /** * allowance can be any of basic, periodic, allowed fee allowance. * * @generated from protobuf field: google.protobuf.Any allowance = 3 */ allowance?: Any; } /** * MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. * * @generated from protobuf message cosmos.feegrant.v1beta1.MsgRevokeAllowance */ interface MsgRevokeAllowance$1 { /** * granter is the address of the user granting an allowance of their funds. * * @generated from protobuf field: string granter = 1 */ granter: string; /** * grantee is the address of the user being granted an allowance of another user's funds. * * @generated from protobuf field: string grantee = 2 */ grantee: string; } /** * @generated MessageType for protobuf message cosmos.feegrant.v1beta1.MsgGrantAllowance */ declare const MsgGrantAllowance$1 = new MsgGrantAllowance$Type(); /** * @generated MessageType for protobuf message cosmos.feegrant.v1beta1.MsgRevokeAllowance */ declare const MsgRevokeAllowance$1 = new MsgRevokeAllowance$Type(); //#endregion //#region src/core/modules/feegrant/msgs/MsgGrantAllowance.d.ts declare namespace MsgGrantAllowance { interface Params { granter: string; grantee: string; allowance: { spendLimit: Coin[]; expiration: number | undefined; }; } type Proto = MsgGrantAllowance$1; type Object = Omit & { allowance: any; }; } /** * @category Messages */ declare class MsgGrantAllowance extends MsgBase { static fromJSON(params: MsgGrantAllowance.Params): MsgGrantAllowance; toProto(): MsgGrantAllowance$1; toData(): { granter: string; grantee: string; allowance?: Any; '@type': string; }; toAmino(): { type: string; value: MsgGrantAllowance.Object; }; toDirectSign(): { type: string; message: MsgGrantAllowance$1; }; toWeb3Gw(): { granter: string; grantee: string; allowance: { '@type': string; spendLimit: { denom: string; amount: string; }[]; expiration: string; }; '@type': string; }; toEip712V2(): { allowance: { '@type': string; spend_limit: { denom: string; amount: string; }[]; expiration: string; }; granter: string; grantee: string; '@type': string; }; private getTimestamp; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgBeginRedelegate.d.ts declare namespace MsgBeginRedelegate { interface Params { amount: { denom: string; amount: string; }; srcValidatorAddress: string; dstValidatorAddress: string; injectiveAddress: string; } type Proto = MsgBeginRedelegate$1; } /** * @category Messages */ declare class MsgBeginRedelegate extends MsgBase { static fromJSON(params: MsgBeginRedelegate.Params): MsgBeginRedelegate; toProto(): MsgBeginRedelegate.Proto; toData(): { delegatorAddress: string; validatorSrcAddress: string; validatorDstAddress: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_src_address: string; validator_dst_address: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { delegator_address: string; validator_src_address: string; validator_dst_address: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgBeginRedelegate$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgCreateValidator.d.ts declare namespace MsgCreateValidator { interface Params { description: { moniker: string; identity: string; website: string; securityContact?: string; details: string; }; value: { amount: string; denom: string; }; pubKey: { type: string; value: string; }; delegatorAddress: string; validatorAddress: string; commission: { maxChangeRate: string; rate: string; maxRate: string; }; minSelfDelegation?: string; } type Proto = MsgCreateValidator$1; type Object = Omit & { pubKey: any; }; } /** * @category Messages */ declare class MsgCreateValidator extends MsgBase { static fromJSON(params: MsgCreateValidator.Params): MsgCreateValidator; toProto(): MsgCreateValidator$1; toData(): { description?: Description; commission?: CommissionRates; minSelfDelegation: string; delegatorAddress: string; validatorAddress: string; pubkey?: Any; value?: Coin$1; '@type': string; }; toAmino(): { type: string; value: MsgCreateValidator.Object; }; toWeb3Gw(): { value?: Coin$1 | undefined; description?: Description | undefined; commission?: CommissionRates | undefined; minSelfDelegation: string; delegatorAddress: string; validatorAddress: string; pubkey?: Any | undefined; pubKey: any; '@type': string; }; toEip712(): never; toEip712V2(): MsgCreateValidator.Object; toDirectSign(): { type: string; message: MsgCreateValidator$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelSpotOrder.d.ts declare namespace MsgCancelSpotOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; cid?: string; } type Proto = MsgCancelSpotOrder$2; } /** * @category Messages */ declare class MsgCancelSpotOrder extends MsgBase { static fromJSON(params: MsgCancelSpotOrder.Params): MsgCancelSpotOrder; toProto(): MsgCancelSpotOrder$2; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelSpotOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/feegrant/msgs/MsgRevokeAllowance.d.ts declare namespace MsgRevokeAllowance { interface Params { granter: string; grantee: string; } type Proto = MsgRevokeAllowance$1; } /** * @category Messages */ declare class MsgRevokeAllowance extends MsgBase { static fromJSON(params: MsgRevokeAllowance.Params): MsgRevokeAllowance; toProto(): MsgRevokeAllowance$1; toData(): { granter: string; grantee: string; '@type': string; }; toAmino(): { type: string; value: { granter: string; grantee: string; }; }; toWeb3Gw(): { granter: string; grantee: string; '@type': string; }; toDirectSign(): { type: string; message: MsgRevokeAllowance$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgRewardsOptOutV2.d.ts declare namespace MsgRewardsOptOutV2 { interface Params { sender: string; } type Proto = MsgRewardsOptOut$1; } /** * @category Messages */ declare class MsgRewardsOptOutV2 extends MsgBase { static fromJSON(params: MsgRewardsOptOutV2.Params): MsgRewardsOptOutV2; toProto(): MsgRewardsOptOut$1; toData(): { sender: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; }; }; toWeb3Gw(): { sender: string; '@type': string; }; toDirectSign(): { type: string; message: MsgRewardsOptOut$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgExternalTransfer.d.ts declare namespace MsgExternalTransfer { interface Params { srcSubaccountId: string; dstSubaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgExternalTransfer$2; } /** * @category Messages */ declare class MsgExternalTransfer extends MsgBase { static fromJSON(params: MsgExternalTransfer.Params): MsgExternalTransfer; toProto(): MsgExternalTransfer$2; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgExternalTransfer$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgOffsetPositionV2.d.ts declare namespace MsgOffsetPositionV2 { interface Params { sender: string; subaccountId: string; marketId: string; offsettingSubaccountIds: string[]; } type Proto = MsgOffsetPosition; } /** * @category Messages */ declare class MsgOffsetPositionV2 extends MsgBase { static fromJSON(params: MsgOffsetPositionV2.Params): MsgOffsetPositionV2; toProto(): MsgOffsetPosition; toData(): { sender: string; subaccountId: string; marketId: string; offsettingSubaccountIds: string[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; market_id: string; offsetting_subaccount_ids: string[]; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; market_id: string; offsetting_subaccount_ids: string[]; '@type': string; }; toDirectSign(): { type: string; message: MsgOffsetPosition; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchUpdateOrders.d.ts type SnakeCaseKeys | readonly any[]> = T; interface SpotOrderToCreate$1 { orderType: OrderType$2; triggerPrice?: string; marketId: string; feeRecipient: string; price: string; quantity: string; cid?: string; } interface DerivativeOrderToCreate$1 { orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; marketId: string; price: string; margin: string; quantity: string; cid?: string; } interface BinaryOptionOrderToCreate$1 { orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; marketId: string; price: string; margin: string; quantity: string; cid?: string; } declare namespace MsgBatchUpdateOrders { interface Params { subaccountId: string; spotMarketIdsToCancelAll?: string[]; derivativeMarketIdsToCancelAll?: string[]; binaryOptionsMarketIdsToCancelAll?: string[]; spotOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; derivativeOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; binaryOptionsOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; spotOrdersToCreate?: SpotOrderToCreate$1[]; derivativeOrdersToCreate?: DerivativeOrderToCreate$1[]; binaryOptionsOrdersToCreate?: BinaryOptionOrderToCreate$1[]; injectiveAddress: string; } type Proto = MsgBatchUpdateOrders$2; } /** * @category Messages */ declare class MsgBatchUpdateOrders extends MsgBase { static fromJSON(params: MsgBatchUpdateOrders.Params): MsgBatchUpdateOrders; toProto(): MsgBatchUpdateOrders$2; toData(): { sender: string; subaccountId: string; spotMarketIdsToCancelAll: string[]; derivativeMarketIdsToCancelAll: string[]; spotOrdersToCancel: OrderData$1[]; derivativeOrdersToCancel: OrderData$1[]; spotOrdersToCreate: SpotOrder$2[]; derivativeOrdersToCreate: DerivativeOrder$2[]; binaryOptionsOrdersToCancel: OrderData$1[]; binaryOptionsMarketIdsToCancelAll: string[]; binaryOptionsOrdersToCreate: DerivativeOrder$2[]; '@type': string; }; toAmino(): { type: string; value: SnakeCaseKeys; }; toWeb3Gw(): { sender: string; subaccountId: string; spotMarketIdsToCancelAll: string[]; derivativeMarketIdsToCancelAll: string[]; spotOrdersToCancel: OrderData$1[]; derivativeOrdersToCancel: OrderData$1[]; spotOrdersToCreate: SpotOrder$2[]; derivativeOrdersToCreate: DerivativeOrder$2[]; binaryOptionsOrdersToCancel: OrderData$1[]; binaryOptionsMarketIdsToCancelAll: string[]; binaryOptionsOrdersToCreate: DerivativeOrder$2[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchUpdateOrders$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgLiquidatePosition.d.ts declare namespace MsgLiquidatePosition { interface Params { subaccountId: string; injectiveAddress: string; marketId: string; /** optional order to provide for liquidation */ order?: { marketId: string; subaccountId: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; }; } type Proto = MsgLiquidatePosition$2; } /** * @category Messages */ declare class MsgLiquidatePosition extends MsgBase { static fromJSON(params: MsgLiquidatePosition.Params): MsgLiquidatePosition; toProto(): MsgLiquidatePosition$2; toData(): { sender: string; subaccountId: string; marketId: string; order?: DerivativeOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; market_id: string; order: { market_id: string; order_info: { subaccount_id: string | undefined; fee_recipient: string | undefined; price: string | undefined; quantity: string | undefined; cid: string | undefined; }; order_type: OrderType$2; margin: string; trigger_price: string; } | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; market_id: string; order: { market_id: string; order_info: { subaccount_id: string | undefined; fee_recipient: string | undefined; price: string | undefined; quantity: string | undefined; cid: string | undefined; }; order_type: OrderType$2; margin: string; trigger_price: string; } | undefined; '@type': string; }; toEip712V2(): { order: any; sender: string; subaccount_id: string; market_id: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; subaccount_id: string; market_id: string; }; }; toDirectSign(): { type: string; message: MsgLiquidatePosition$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/wasm/msgs/MsgInstantiateContract.d.ts declare namespace MsgInstantiateContract { interface Params { sender: string; admin: string; codeId: number; label: string; msg: Object; amount?: { denom: string; amount: string; }; } type Proto = MsgInstantiateContract$1; } /** * @category Messages */ declare class MsgInstantiateContract extends MsgBase { static fromJSON(params: MsgInstantiateContract.Params): MsgInstantiateContract; toProto(): MsgInstantiateContract$1; toData(): { sender: string; admin: string; codeId: bigint; label: string; msg: Uint8Array; funds: Coin$1[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; admin: string; code_id: string; label: string; msg: string; funds: Coin$1[]; }; }; toEip712V2(): { msg: Object; sender: string; admin: string; code_id: string; label: string; funds: Coin$1[]; '@type': string; }; toWeb3Gw(): { msg: any; sender: string; admin: string; code_id: string; label: string; funds: Coin$1[]; '@type': string; }; toEip712(): never; toDirectSign(): { type: string; message: MsgInstantiateContract$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelSpotOrderV2.d.ts declare namespace MsgCancelSpotOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; cid?: string; } type Proto = MsgCancelSpotOrder$1; } /** * @category Messages * No toEip712/toEip712V2 override needed — spot cancel has no order_mask field, so base-class defaults (toAmino/toWeb3Gw) are correct. */ declare class MsgCancelSpotOrderV2 extends MsgBase { static fromJSON(params: MsgCancelSpotOrderV2.Params): MsgCancelSpotOrderV2; toProto(): MsgCancelSpotOrder$1; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelSpotOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/insurance/msgs/MsgRequestRedemption.d.ts declare namespace MsgRequestRedemption { interface Params { marketId: string; amount: { denom: string; amount: string; }; injectiveAddress: string; } type Proto = MsgRequestRedemption$1; } /** * @category Messages */ declare class MsgRequestRedemption extends MsgBase { static fromJSON(params: MsgRequestRedemption.Params): MsgRequestRedemption; toProto(): MsgRequestRedemption$1; toData(): { sender: string; marketId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; market_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgRequestRedemption$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgTransferDelegation.d.ts declare namespace MsgTransferDelegation { interface Params { amount: { denom: string; amount: string; }; injectiveAddress: string; validatorAddress: string; receiverAddress: string; } type Proto = MsgTransferDelegation$1; } /** * @category Messages */ declare class MsgTransferDelegation extends MsgBase { static fromJSON(params: MsgTransferDelegation.Params): MsgTransferDelegation; toProto(): MsgTransferDelegation$1; toData(): { delegatorAddress: string; validatorAddress: string; receiverAddress: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_address: string; receiver_address: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { delegator_address: string; validator_address: string; receiver_address: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgTransferDelegation$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/tx_pb.d.ts /** * MsgRelayProviderPrice defines a SDK message for setting a price through the * provider oracle. * * @generated from protobuf message injective.oracle.v1beta1.MsgRelayProviderPrices */ interface MsgRelayProviderPrices$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string provider = 2 */ provider: string; /** * @generated from protobuf field: repeated string symbols = 3 */ symbols: string[]; /** * @generated from protobuf field: repeated string prices = 4 */ prices: string[]; } /** * @generated MessageType for protobuf message injective.oracle.v1beta1.MsgRelayProviderPrices */ declare const MsgRelayProviderPrices$1 = new MsgRelayProviderPrices$Type(); //#endregion //#region src/core/modules/oracle/msgs/MsgRelayProviderPrices.d.ts declare namespace MsgRelayProviderPrices { interface Params { sender: string; provider: string; symbols: string[]; prices: string[]; } type Proto = MsgRelayProviderPrices$1; } /** * @category Messages */ declare class MsgRelayProviderPrices extends MsgBase { static fromJSON(params: MsgRelayProviderPrices.Params): MsgRelayProviderPrices; toProto(): MsgRelayProviderPrices$1; toData(): { sender: string; provider: string; symbols: string[]; prices: string[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; provider: string; symbols: string[]; prices: string[]; }; }; toEip712(): never; toEip712V2(): { prices: any; sender: string; provider: string; symbols: string[]; '@type': string; }; toWeb3Gw(): { sender: string; provider: string; symbols: string[]; prices: string[]; '@type': string; }; toDirectSign(): { type: string; message: MsgRelayProviderPrices$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgReclaimLockedFunds.d.ts declare namespace MsgReclaimLockedFunds { interface Params { sender: string; lockedAccountPubKey: string; signature: Uint8Array; } type Proto = MsgReclaimLockedFunds$2; } /** * @category Messages */ declare class MsgReclaimLockedFunds extends MsgBase { static fromJSON(params: MsgReclaimLockedFunds.Params): MsgReclaimLockedFunds; toProto(): MsgReclaimLockedFunds$2; toData(): { sender: string; lockedAccountPubKey: Uint8Array; signature: Uint8Array; '@type': string; }; toAmino(): { type: string; value: { sender: string; lockedAccountPubKey: string; signature: string; }; }; toWeb3Gw(): never; toEip712(): never; toEip712V2(): never; toDirectSign(): { type: string; message: MsgReclaimLockedFunds$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.d.ts declare namespace MsgUpdateSpotMarketV2 { interface Params { admin: string; marketId: string; newTicker?: string; newMinNotional?: string; newMinPriceTickSize?: string; newMinQuantityTickSize?: string; } type Proto = MsgUpdateSpotMarket; } /** * @category Messages */ declare class MsgUpdateSpotMarketV2 extends MsgBase { static fromJSON(params: MsgUpdateSpotMarketV2.Params): MsgUpdateSpotMarketV2; toProto(): MsgUpdateSpotMarket; toData(): { admin: string; marketId: string; newTicker: string; newMinPriceTickSize: string; newMinQuantityTickSize: string; newMinNotional: string; '@type': string; }; toAmino(): { type: string; value: { admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; }; }; toWeb3Gw(): { admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; '@type': string; }; toEip712(): { type: string; value: { admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; }; }; toEip712V2(): { '@type': string; admin: string; market_id: string; new_ticker: string; new_min_price_tick_size: string; new_min_quantity_tick_size: string; new_min_notional: string; }; toDirectSign(): { type: string; message: MsgUpdateSpotMarket; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgUpdateSwapParamsV2.d.ts declare namespace MsgUpdateSwapParamsV2 { interface Params { sender: string; swapParams: SwapParams; } type Proto = MsgUpdateSwapParams; } /** * @category Messages */ declare class MsgUpdateSwapParamsV2 extends MsgBase { static fromJSON(params: MsgUpdateSwapParamsV2.Params): MsgUpdateSwapParamsV2; toProto(): MsgUpdateSwapParams; toData(): { sender: string; swapParams?: SwapParams; '@type': string; }; toAmino(): { type: string; value: { sender: string; swap_params: { enabled: boolean; allowed_markets: string[]; }; }; }; toWeb3Gw(): { sender: string; swap_params: { enabled: boolean; allowed_markets: string[]; }; '@type': string; }; toEip712(): { type: string; value: { sender: string; swap_params: { enabled: boolean; allowed_markets: string[]; }; }; }; toEip712V2(): { sender: string; swap_params: { enabled: boolean; allowed_markets: string[]; }; '@type': string; }; toEip712Types(): Map; toDirectSign(): { type: string; message: MsgUpdateSwapParams; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.d.ts declare namespace MsgSetDenomMetadata { interface Params { sender: string; metadata: Metadata$1; adminBurnDisabled?: boolean; } type Proto = MsgSetDenomMetadata$1; } /** * @category Messages */ declare class MsgSetDenomMetadata extends MsgBase { static fromJSON(params: MsgSetDenomMetadata.Params): MsgSetDenomMetadata; toProto(): MsgSetDenomMetadata$1; toData(): { sender: string; metadata?: Metadata$1; adminBurnDisabled?: MsgSetDenomMetadata_AdminBurnDisabled; '@type': string; }; toAmino(): { type: string; value: { admin_burn_disabled?: { should_disable: boolean; } | undefined; sender: string; metadata: { description: string; denom_units: DenomUnit[]; base: string; display: string; name: string; symbol: string; uri: string; uri_hash: string; decimals: string | number; }; }; }; toWeb3Gw(): { admin_burn_disabled?: { should_disable: boolean; } | undefined; sender: string; metadata: { description: string; denom_units: DenomUnit[]; base: string; display: string; name: string; symbol: string; uri: string; uri_hash: string; decimals: string | number; }; '@type': string; }; toDirectSign(): { type: string; message: MsgSetDenomMetadata$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgExternalTransferV2.d.ts declare namespace MsgExternalTransferV2 { interface Params { srcSubaccountId: string; dstSubaccountId: string; injectiveAddress: string; amount: { amount: string; denom: string; }; } type Proto = MsgExternalTransfer$1; } /** * @category Messages */ declare class MsgExternalTransferV2 extends MsgBase { static fromJSON(params: MsgExternalTransferV2.Params): MsgExternalTransferV2; toProto(): MsgExternalTransfer$1; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgExternalTransfer$1; }; toBinary(): Uint8Array; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/distribution/v1beta1/tx_pb.d.ts /** * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator * from a single validator. * * @generated from protobuf message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward */ interface MsgWithdrawDelegatorReward$1 { /** * @generated from protobuf field: string delegator_address = 1 */ delegatorAddress: string; /** * @generated from protobuf field: string validator_address = 2 */ validatorAddress: string; } /** * MsgWithdrawValidatorCommission withdraws the full commission to the validator * address. * * @generated from protobuf message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission */ interface MsgWithdrawValidatorCommission$1 { /** * @generated from protobuf field: string validator_address = 1 */ validatorAddress: string; } /** * MsgFundCommunityPool allows an account to directly * fund the community pool. * * @generated from protobuf message cosmos.distribution.v1beta1.MsgFundCommunityPool */ interface MsgFundCommunityPool$1 { /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 1 */ amount: Coin$1[]; /** * @generated from protobuf field: string depositor = 2 */ depositor: string; } /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward */ declare const MsgWithdrawDelegatorReward$1 = new MsgWithdrawDelegatorReward$Type(); /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission */ declare const MsgWithdrawValidatorCommission$1 = new MsgWithdrawValidatorCommission$Type(); /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.MsgFundCommunityPool */ declare const MsgFundCommunityPool$1 = new MsgFundCommunityPool$Type(); //#endregion //#region src/core/modules/distribution/msgs/MsgFundCommunityPool.d.ts declare namespace MsgFundCommunityPool { interface Params { amount: Coin | Coin[]; depositor: string; } type Proto = MsgFundCommunityPool$1; } /** * @category Messages */ declare class MsgFundCommunityPool extends MsgBase { static fromJSON(params: MsgFundCommunityPool.Params): MsgFundCommunityPool; toProto(): MsgFundCommunityPool$1; toData(): { amount: Coin$1[]; depositor: string; '@type': string; }; toAmino(): { type: string; value: { depositor: string; amount: Coin$1[]; }; }; toWeb3Gw(): { depositor: string; amount: Coin$1[]; '@type': string; }; toDirectSign(): { type: string; message: MsgFundCommunityPool$1; }; toBinary(): Uint8Array; toEip712Types(): Map; toEip712V2(): any; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchUpdateOrdersV2.d.ts interface SpotOrderToCreate { orderType: OrderType$1; triggerPrice?: string; marketId: string; feeRecipient: string; price: string; quantity: string; cid?: string; expirationBlock?: string; } interface DerivativeOrderToCreate { orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; marketId: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } interface BinaryOptionOrderToCreate { orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; marketId: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } declare namespace MsgBatchUpdateOrdersV2 { interface Params { subaccountId: string; spotMarketIdsToCancelAll?: string[]; derivativeMarketIdsToCancelAll?: string[]; binaryOptionsMarketIdsToCancelAll?: string[]; spotOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; derivativeOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; binaryOptionsOrdersToCancel?: { marketId: string; subaccountId: string; orderHash?: string; cid?: string; }[]; spotOrdersToCreate?: SpotOrderToCreate[]; derivativeOrdersToCreate?: DerivativeOrderToCreate[]; binaryOptionsOrdersToCreate?: BinaryOptionOrderToCreate[]; spotMarketOrdersToCreate?: SpotOrderToCreate[]; derivativeMarketOrdersToCreate?: DerivativeOrderToCreate[]; binaryOptionsMarketOrdersToCreate?: BinaryOptionOrderToCreate[]; injectiveAddress: string; } type Proto = MsgBatchUpdateOrders$1; } /** * @category Messages */ declare class MsgBatchUpdateOrdersV2 extends MsgBase { static fromJSON(params: MsgBatchUpdateOrdersV2.Params): MsgBatchUpdateOrdersV2; toProto(): MsgBatchUpdateOrders$1; toData(): { sender: string; subaccountId: string; spotMarketIdsToCancelAll: string[]; derivativeMarketIdsToCancelAll: string[]; spotOrdersToCancel: OrderData[]; derivativeOrdersToCancel: OrderData[]; spotOrdersToCreate: SpotOrder$1[]; derivativeOrdersToCreate: DerivativeOrder$1[]; binaryOptionsOrdersToCancel: OrderData[]; binaryOptionsMarketIdsToCancelAll: string[]; binaryOptionsOrdersToCreate: DerivativeOrder$1[]; spotMarketOrdersToCreate: SpotOrder$1[]; derivativeMarketOrdersToCreate: DerivativeOrder$1[]; binaryOptionsMarketOrdersToCreate: DerivativeOrder$1[]; '@type': string; }; toAmino(): { type: string; value: any; }; toWeb3Gw(): any; toEip712(): { type: string; value: Record; }; toEip712Types(): Map; toEip712V2(): { '@type': string; sender: any; subaccount_id: any; spot_market_ids_to_cancel_all: any; derivative_market_ids_to_cancel_all: any; spot_orders_to_cancel: any; derivative_orders_to_cancel: any; spot_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; trigger_price: string; expiration_block: string; }[]; derivative_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; margin: string; trigger_price: string; expiration_block: string; }[]; binary_options_orders_to_cancel: any; binary_options_market_ids_to_cancel_all: any; binary_options_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; margin: string; trigger_price: string; expiration_block: string; }[]; spot_market_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; trigger_price: string; expiration_block: string; }[]; derivative_market_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; margin: string; trigger_price: string; expiration_block: string; }[]; binary_options_market_orders_to_create: { market_id: any; order_info: { subaccount_id: any; fee_recipient: any; price: string; quantity: string; cid: any; }; order_type: string; margin: string; trigger_price: string; expiration_block: string; }[]; }; toDirectSign(): { type: string; message: MsgBatchUpdateOrders$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgLiquidatePositionV2.d.ts declare namespace MsgLiquidatePositionV2 { interface Params { subaccountId: string; injectiveAddress: string; marketId: string; /** optional order to provide for liquidation */ order?: { marketId: string; subaccountId: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; }; } type Proto = MsgLiquidatePosition$1; } /** * @category Messages */ declare class MsgLiquidatePositionV2 extends MsgBase { static fromJSON(params: MsgLiquidatePositionV2.Params): MsgLiquidatePositionV2; toProto(): MsgLiquidatePosition$1; toData(): { sender: string; subaccountId: string; marketId: string; order?: DerivativeOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; market_id: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; } | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; market_id: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; } | undefined; '@type': string; }; toEip712V2(): { order: any; sender: string; subaccount_id: string; market_id: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; subaccount_id: string; market_id: string; }; }; toEip712Types(): Map; toDirectSign(): { type: string; message: MsgLiquidatePosition$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/insurance/msgs/MsgCreateInsuranceFund.d.ts declare namespace MsgCreateInsuranceFund { interface Params { fund: { ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; oracleType: OracleType; expiry?: number; }; deposit: { amount: string; denom: string; }; injectiveAddress: string; } type Proto = MsgCreateInsuranceFund$1; } /** * @category Messages */ declare class MsgCreateInsuranceFund extends MsgBase { static fromJSON(params: MsgCreateInsuranceFund.Params): MsgCreateInsuranceFund; toProto(): MsgCreateInsuranceFund$1; toData(): { sender: string; ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; oracleType: OracleType; expiry: bigint; initialDeposit?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_type: OracleType; expiry: string; initial_deposit: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; oracle_type: OracleType; expiry: string; initial_deposit: Coin$1 | undefined; '@type': string; }; toEip712V2(): { oracle_type: string; sender: string; ticker: string; quote_denom: string; oracle_base: string; oracle_quote: string; expiry: string; initial_deposit: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgCreateInsuranceFund$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.d.ts declare namespace MsgAuthorizeStakeGrants { interface Params { grantee: string; injectiveAddress: string; amount: string; } type Proto = MsgAuthorizeStakeGrants$2; } /** * @category Messages */ declare class MsgAuthorizeStakeGrants extends MsgBase { static fromJSON(params: MsgAuthorizeStakeGrants.Params): MsgAuthorizeStakeGrants; toProto(): MsgAuthorizeStakeGrants$2; toData(): { sender: string; grants: GrantAuthorization$3[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; grants: GrantAuthorization$3[]; }; }; toWeb3Gw(): { sender: string; grants: GrantAuthorization$3[]; '@type': string; }; toDirectSign(): { type: string; message: MsgAuthorizeStakeGrants$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.d.ts declare namespace MsgCreateSpotLimitOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; quantity: string; cid?: string; } type Proto = MsgCreateSpotLimitOrder$2; } /** * @category Messages */ declare class MsgCreateSpotLimitOrder extends MsgBase { static fromJSON(params: MsgCreateSpotLimitOrder.Params): MsgCreateSpotLimitOrder; toProto(): MsgCreateSpotLimitOrder$2; toData(): { sender: string; order?: SpotOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateSpotLimitOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.d.ts declare namespace MsgCancelPostOnlyModeV2 { interface Params { sender: string; } type Proto = MsgCancelPostOnlyMode; } /** * @category Messages */ declare class MsgCancelPostOnlyModeV2 extends MsgBase { static fromJSON(params: MsgCancelPostOnlyModeV2.Params): MsgCancelPostOnlyModeV2; toProto(): MsgCancelPostOnlyMode; toData(): { sender: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; }; }; toWeb3Gw(): { sender: string; '@type': string; }; toEip712(): { type: string; value: { sender: string; }; }; toEip712V2(): { sender: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelPostOnlyMode; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgReclaimLockedFundsV2.d.ts declare namespace MsgReclaimLockedFundsV2 { interface Params { sender: string; lockedAccountPubKey: string; signature: Uint8Array; } type Proto = MsgReclaimLockedFunds$1; } /** * @category Messages */ declare class MsgReclaimLockedFundsV2 extends MsgBase { static fromJSON(params: MsgReclaimLockedFundsV2.Params): MsgReclaimLockedFundsV2; toProto(): MsgReclaimLockedFunds$1; toData(): { sender: string; lockedAccountPubKey: Uint8Array; signature: Uint8Array; '@type': string; }; toAmino(): { type: string; value: { sender: string; lockedAccountPubKey: string; signature: string; }; }; toWeb3Gw(): { sender: string; lockedAccountPubKey: string; signature: string; '@type': string; }; toEip712(): { type: string; value: { sender: string; lockedAccountPubKey: number[]; signature: number[]; }; }; toEip712Types(): Map; toDirectSign(): { type: string; message: MsgReclaimLockedFunds$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgSubaccountTransferV2.d.ts declare namespace MsgSubaccountTransferV2 { interface Params { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; amount: { amount: string; denom: string; }; } type Proto = MsgSubaccountTransfer; } /** * @category Messages */ declare class MsgSubaccountTransferV2 extends MsgBase { static fromJSON(params: MsgSubaccountTransferV2.Params): MsgSubaccountTransferV2; toProto(): MsgSubaccountTransfer; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; amount?: Coin$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; amount: Coin$1 | undefined; '@type': string; }; toDirectSign(): { type: string; message: MsgSubaccountTransfer; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgActivateStakeGrantV2.d.ts declare namespace MsgActivateStakeGrantV2 { interface Params { sender: string; granter: string; } type Proto = MsgActivateStakeGrant; } /** * @category Messages */ declare class MsgActivateStakeGrantV2 extends MsgBase { static fromJSON(params: MsgActivateStakeGrantV2.Params): MsgActivateStakeGrantV2; toProto(): MsgActivateStakeGrant; toData(): { sender: string; granter: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; granter: string; }; }; toWeb3Gw(): { sender: string; granter: string; '@type': string; }; toDirectSign(): { type: string; message: MsgActivateStakeGrant; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/authz/msgs/authorizations/Base.d.ts declare abstract class BaseAuthorization { params: Params$19; constructor(params: Params$19); abstract toAny(): Any; abstract toAmino(): DataRepresentation; abstract toWeb3(): DataRepresentation; abstract toProto(): Proto; } //#endregion //#region src/core/modules/authz/msgs/MsgGrantWithAuthorization.d.ts declare namespace MsgGrantWithAuthorization { interface Params { authorization: BaseAuthorization; grantee: string; granter: string; expiration?: number; expiryInYears?: number; expiryInSeconds?: number; } type Proto = MsgGrant$1; type Object = Omit & { msgs: any; }; } /** * @category Messages */ declare class MsgGrantWithAuthorization extends MsgBase { static fromJSON(params: MsgGrantWithAuthorization.Params): MsgGrantWithAuthorization; toProto(): MsgGrant$1; toData(): { granter: string; grantee: string; grant?: Grant; '@type': string; }; toAmino(): { type: string; value: MsgGrantWithAuthorization.Object; }; toDirectSign(): { type: string; message: MsgGrant$1; }; toWeb3Gw(): { granter: string; grantee: string; grant: { authorization: unknown; expiration: string; }; '@type': string; }; toEip712(): never; private getTimestamp; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/wasm/msgs/MsgUpdateInstantiateConfig.d.ts declare namespace MsgUpdateInstantiateConfig { interface Params { sender: string; codeId: number | string | bigint; newInstantiatePermission: AccessConfig; } type Proto = MsgUpdateInstantiateConfig$1; } /** * @category Messages */ declare class MsgUpdateInstantiateConfig extends MsgBase { static fromJSON(params: MsgUpdateInstantiateConfig.Params): MsgUpdateInstantiateConfig; toProto(): MsgUpdateInstantiateConfig$1; toData(): { sender: string; codeId: bigint; newInstantiatePermission?: AccessConfig; '@type': string; }; toAmino(): { type: string; value: { sender: string; code_id: string; new_instantiate_permission: { permission: string; addresses: string[]; }; }; }; toWeb3Gw(): { sender: string; code_id: string; new_instantiate_permission: { permission: string; addresses: string[]; }; '@type': string; }; toEip712(): never; toDirectSign(): { type: string; message: MsgUpdateInstantiateConfig$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.d.ts declare namespace MsgBatchCancelSpotOrders { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask$1; cid?: string; }[]; } type Proto = MsgBatchCancelSpotOrders$2; } /** * @category Messages */ declare class MsgBatchCancelSpotOrders extends MsgBase { static fromJSON(params: MsgBatchCancelSpotOrders.Params): MsgBatchCancelSpotOrders; toProto(): MsgBatchCancelSpotOrders$2; toData(): { sender: string; data: OrderData$1[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelSpotOrders$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.d.ts declare namespace MsgCancelDerivativeOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; orderMask?: OrderMask$1; cid?: string; } type Proto = MsgCancelDerivativeOrder$2; } declare class MsgCancelDerivativeOrder extends MsgBase { static fromJSON(params: MsgCancelDerivativeOrder.Params): MsgCancelDerivativeOrder; toProto(): MsgCancelDerivativeOrder$2; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; orderMask: number; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelDerivativeOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.d.ts declare namespace MsgCreateSpotMarketOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; quantity: string; cid?: string; } type Proto = MsgCreateSpotMarketOrder$2; } /** * @category Messages */ declare class MsgCreateSpotMarketOrder extends MsgBase { static fromJSON(params: MsgCreateSpotMarketOrder.Params): MsgCreateSpotMarketOrder; toProto(): MsgCreateSpotMarketOrder$2; toData(): { sender: string; order?: SpotOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateSpotMarketOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgIncreasePositionMargin.d.ts declare namespace MsgIncreasePositionMargin { interface Params { marketId: string; injectiveAddress: string; srcSubaccountId: string; dstSubaccountId: string; amount: string; } type Proto = MsgIncreasePositionMargin$2; } /** * @category Messages */ declare class MsgIncreasePositionMargin extends MsgBase { static fromJSON(params: MsgIncreasePositionMargin.Params): MsgIncreasePositionMargin; toProto(): MsgIncreasePositionMargin$2; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; marketId: string; amount: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; '@type': string; }; toEip712(): { type: string; value: { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; }; }; toEip712V2(): { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; '@type': string; }; toDirectSign(): { type: string; message: MsgIncreasePositionMargin$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgDecreasePositionMargin.d.ts declare namespace MsgDecreasePositionMargin { interface Params { marketId: string; injectiveAddress: string; srcSubaccountId: string; dstSubaccountId: string; amount: string; } type Proto = MsgDecreasePositionMargin$2; } /** * @category Messages */ declare class MsgDecreasePositionMargin extends MsgBase { static fromJSON(params: MsgDecreasePositionMargin.Params): MsgDecreasePositionMargin; toProto(): MsgDecreasePositionMargin$2; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; marketId: string; amount: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; '@type': string; }; toEip712(): { type: string; value: { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; }; }; toEip712V2(): { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; '@type': string; }; toDirectSign(): { type: string; message: MsgDecreasePositionMargin$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgAuthorizeStakeGrantsV2.d.ts declare namespace MsgAuthorizeStakeGrantsV2 { interface Params { injectiveAddress: string; grants: Array<{ grantee: string; amount: string; }>; } type Proto = MsgAuthorizeStakeGrants$1; } /** * @category Messages */ declare class MsgAuthorizeStakeGrantsV2 extends MsgBase { static fromJSON(params: MsgAuthorizeStakeGrantsV2.Params): MsgAuthorizeStakeGrantsV2; toProto(): MsgAuthorizeStakeGrants$1; toData(): { sender: string; grants: GrantAuthorization$1[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; grants: GrantAuthorization$1[]; }; }; toWeb3Gw(): { sender: string; grants: GrantAuthorization$1[]; '@type': string; }; toDirectSign(): { type: string; message: MsgAuthorizeStakeGrants$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateSpotLimitOrderV2.d.ts declare namespace MsgCreateSpotLimitOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateSpotLimitOrder$1; } /** * @category Messages */ declare class MsgCreateSpotLimitOrderV2 extends MsgBase { static fromJSON(params: MsgCreateSpotLimitOrderV2.Params): MsgCreateSpotLimitOrderV2; toProto(): MsgCreateSpotLimitOrder$1; toData(): { sender: string; order?: SpotOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateSpotLimitOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgActivatePostOnlyModeV2.d.ts declare namespace MsgActivatePostOnlyModeV2 { interface Params { sender: string; blocksAmount: number; } type Proto = MsgActivatePostOnlyMode; } /** * @category Messages */ declare class MsgActivatePostOnlyModeV2 extends MsgBase { static fromJSON(params: MsgActivatePostOnlyModeV2.Params): MsgActivatePostOnlyModeV2; toProto(): MsgActivatePostOnlyMode; toData(): { sender: string; blocksAmount: number; '@type': string; }; toAmino(): { type: string; value: { sender: string; blocks_amount: number; }; }; toWeb3Gw(): { sender: string; blocks_amount: number; '@type': string; }; toDirectSign(): { type: string; message: MsgActivatePostOnlyMode; }; toBinary(): Uint8Array; toEip712Types(): Map; } //#endregion //#region src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts declare namespace MsgInstantSpotMarketLaunch { interface Params { proposer: string; market: { sender: string; ticker: string; baseDenom: string; quoteDenom: string; minNotional: string; baseDecimals: number; quoteDecimals: number; minPriceTickSize: string; minQuantityTickSize: string; }; } type Proto = MsgInstantSpotMarketLaunch$2; } /** * @category Messages */ declare class MsgInstantSpotMarketLaunch extends MsgBase { static fromJSON(params: MsgInstantSpotMarketLaunch.Params): MsgInstantSpotMarketLaunch; toProto(): MsgInstantSpotMarketLaunch$2; toData(): { sender: string; ticker: string; baseDenom: string; quoteDenom: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; baseDecimals: number; quoteDecimals: number; '@type': string; }; toAmino(): { type: string; value: { sender: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; base_decimals: number; quote_decimals: number; }; }; toWeb3Gw(): { sender: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; base_decimals: number; quote_decimals: number; '@type': string; }; toEip712(): { type: string; value: { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; sender: string; ticker: string; base_denom: string; quote_denom: string; base_decimals: number; quote_decimals: number; }; }; toEip712V2(): { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; sender: string; ticker: string; base_denom: string; quote_denom: string; base_decimals: number; quote_decimals: number; '@type': string; }; toDirectSign(): { type: string; message: MsgInstantSpotMarketLaunch$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelDerivativeOrderV2.d.ts declare namespace MsgCancelDerivativeOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; orderMask?: OrderMask; cid?: string; } type Proto = MsgCancelDerivativeOrder$1; } /** * @category Messages */ declare class MsgCancelDerivativeOrderV2 extends MsgBase { static fromJSON(params: MsgCancelDerivativeOrderV2.Params): MsgCancelDerivativeOrderV2; toProto(): MsgCancelDerivativeOrder$1; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; orderMask: number; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelDerivativeOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelSpotOrdersV2.d.ts declare namespace MsgBatchCancelSpotOrdersV2 { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask; cid?: string; }[]; } type Proto = MsgBatchCancelSpotOrders$1; } /** * @category Messages */ declare class MsgBatchCancelSpotOrdersV2 extends MsgBase { static fromJSON(params: MsgBatchCancelSpotOrdersV2.Params): MsgBatchCancelSpotOrdersV2; toProto(): MsgBatchCancelSpotOrders$1; toData(): { sender: string; data: OrderData[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelSpotOrders$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateSpotMarketOrderV2.d.ts declare namespace MsgCreateSpotMarketOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateSpotMarketOrder$1; } /** * @category Messages */ declare class MsgCreateSpotMarketOrderV2 extends MsgBase { static fromJSON(params: MsgCreateSpotMarketOrderV2.Params): MsgCreateSpotMarketOrderV2; toProto(): MsgCreateSpotMarketOrder$1; toData(): { sender: string; order?: SpotOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateSpotMarketOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.d.ts declare namespace MsgCancelBinaryOptionsOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; orderMask?: OrderMask$1; cid?: string; } type Proto = MsgCancelBinaryOptionsOrder$2; } /** * @category Messages */ declare class MsgCancelBinaryOptionsOrder extends MsgBase { static fromJSON(params: MsgCancelBinaryOptionsOrder.Params): MsgCancelBinaryOptionsOrder; toProto(): MsgCancelBinaryOptionsOrder$2; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; orderMask: number; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelBinaryOptionsOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.d.ts declare namespace MsgUpdateDerivativeMarketV2 { interface Params { admin: string; marketId: string; newTicker?: string; newMinNotional?: string; newMinPriceTickSize?: string; newMinQuantityTickSize?: string; newInitialMarginRatio?: string; newMaintenanceMarginRatio?: string; newReduceMarginRatio?: string; newOpenNotionalCap?: OpenNotionalCap$2; crossMarginEligibility?: CrossMarginEligibility; } type Proto = MsgUpdateDerivativeMarket; } /** * @category Messages */ declare class MsgUpdateDerivativeMarketV2 extends MsgBase { static fromJSON(params: MsgUpdateDerivativeMarketV2.Params): MsgUpdateDerivativeMarketV2; toProto(): MsgUpdateDerivativeMarket; toData(): { admin: string; marketId: string; newTicker: string; newMinPriceTickSize: string; newMinQuantityTickSize: string; newMinNotional: string; newInitialMarginRatio: string; newMaintenanceMarginRatio: string; newReduceMarginRatio: string; newOpenNotionalCap?: OpenNotionalCap$2; crossMarginEligibility: CrossMarginEligibility; '@type': string; }; toAmino(): { type: string; value: { cross_margin_eligibility: CrossMarginEligibility; new_open_notional_cap?: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; } | undefined; admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; new_initial_margin_ratio: string | undefined; new_maintenance_margin_ratio: string | undefined; new_reduce_margin_ratio: string | undefined; }; }; toWeb3Gw(): { cross_margin_eligibility: CrossMarginEligibility; new_open_notional_cap?: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; } | undefined; admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; new_initial_margin_ratio: string | undefined; new_maintenance_margin_ratio: string | undefined; new_reduce_margin_ratio: string | undefined; '@type': string; }; toEip712(): { type: string; value: { cross_margin_eligibility: CrossMarginEligibility; new_open_notional_cap?: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; } | undefined; admin: string; market_id: string; new_ticker: string; new_min_notional: string | undefined; new_min_price_tick_size: string | undefined; new_min_quantity_tick_size: string | undefined; new_initial_margin_ratio: string | undefined; new_maintenance_margin_ratio: string | undefined; new_reduce_margin_ratio: string | undefined; }; }; toEip712V2(): { '@type': string; admin: string; market_id: string; new_ticker: string; new_min_price_tick_size: string; new_min_quantity_tick_size: string; new_min_notional: string; new_initial_margin_ratio: string; new_maintenance_margin_ratio: string; new_reduce_margin_ratio: string; new_open_notional_cap: {}; cross_margin_eligibility: string; }; toDirectSign(): { type: string; message: MsgUpdateDerivativeMarket; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgIncreasePositionMarginV2.d.ts declare namespace MsgIncreasePositionMarginV2 { interface Params { marketId: string; injectiveAddress: string; srcSubaccountId: string; dstSubaccountId: string; amount: string; } type Proto = MsgIncreasePositionMargin$1; } /** * @category Messages */ declare class MsgIncreasePositionMarginV2 extends MsgBase { static fromJSON(params: MsgIncreasePositionMarginV2.Params): MsgIncreasePositionMarginV2; toProto(): MsgIncreasePositionMargin$1; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; marketId: string; amount: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; '@type': string; }; toEip712(): { type: string; value: { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; }; }; toEip712V2(): { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; '@type': string; }; toDirectSign(): { type: string; message: MsgIncreasePositionMargin$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgDecreasePositionMarginV2.d.ts declare namespace MsgDecreasePositionMarginV2 { interface Params { marketId: string; injectiveAddress: string; srcSubaccountId: string; dstSubaccountId: string; amount: string; } type Proto = MsgDecreasePositionMargin$1; } /** * @category Messages */ declare class MsgDecreasePositionMarginV2 extends MsgBase { static fromJSON(params: MsgDecreasePositionMarginV2.Params): MsgDecreasePositionMarginV2; toProto(): MsgDecreasePositionMargin$1; toData(): { sender: string; sourceSubaccountId: string; destinationSubaccountId: string; marketId: string; amount: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; }; }; toWeb3Gw(): { sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; amount: string; '@type': string; }; toEip712(): { type: string; value: { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; }; }; toEip712V2(): { amount: string; sender: string; source_subaccount_id: string; destination_subaccount_id: string; market_id: string; '@type': string; }; toDirectSign(): { type: string; message: MsgDecreasePositionMargin$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/staking/msgs/MsgCancelUnbondingDelegation.d.ts declare namespace MsgCancelUnbondingDelegation { interface Params { amount: { denom: string; amount: string; }; validatorAddress: string; delegatorAddress: string; creationHeight: string; } type Proto = MsgCancelUnbondingDelegation$1; } /** * @category Messages */ declare class MsgCancelUnbondingDelegation extends MsgBase { static fromJSON(params: MsgCancelUnbondingDelegation.Params): MsgCancelUnbondingDelegation; toProto(): MsgCancelUnbondingDelegation$1; toData(): { delegatorAddress: string; validatorAddress: string; amount?: Coin$1; creationHeight: bigint; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; creation_height: string; }; }; toWeb3Gw(): { delegator_address: string; validator_address: string; amount: Coin$1 | undefined; creation_height: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelUnbondingDelegation$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.d.ts declare namespace MsgWithdrawDelegatorReward { interface Params { delegatorAddress: string; validatorAddress: string; } type Proto = MsgWithdrawDelegatorReward$1; } /** * @category Messages */ declare class MsgWithdrawDelegatorReward extends MsgBase { static fromJSON(params: MsgWithdrawDelegatorReward.Params): MsgWithdrawDelegatorReward; toProto(): MsgWithdrawDelegatorReward$1; toData(): { delegatorAddress: string; validatorAddress: string; '@type': string; }; toAmino(): { type: string; value: { delegator_address: string; validator_address: string; }; }; toWeb3Gw(): { delegator_address: string; validator_address: string; '@type': string; }; toDirectSign(): { type: string; message: MsgWithdrawDelegatorReward$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunchV2.d.ts declare namespace MsgInstantSpotMarketLaunchV2 { interface Params { proposer: string; market: { ticker: string; baseDenom: string; quoteDenom: string; minNotional: string; baseDecimals: number; quoteDecimals: number; minPriceTickSize: string; minQuantityTickSize: string; }; } type Proto = MsgInstantSpotMarketLaunch$1; } /** * @category Messages */ declare class MsgInstantSpotMarketLaunchV2 extends MsgBase { static fromJSON(params: MsgInstantSpotMarketLaunchV2.Params): MsgInstantSpotMarketLaunchV2; toProto(): MsgInstantSpotMarketLaunch$1; toData(): { sender: string; ticker: string; baseDenom: string; quoteDenom: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; baseDecimals: number; quoteDecimals: number; '@type': string; }; toAmino(): { type: string; value: { sender: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; base_decimals: number; quote_decimals: number; }; }; toWeb3Gw(): { sender: string; ticker: string; base_denom: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; base_decimals: number; quote_decimals: number; '@type': string; }; toEip712(): { type: string; value: { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; sender: string; ticker: string; base_denom: string; quote_denom: string; base_decimals: number; quote_decimals: number; }; }; toEip712V2(): { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; sender: string; ticker: string; base_denom: string; quote_denom: string; base_decimals: number; quote_decimals: number; '@type': string; }; toDirectSign(): { type: string; message: MsgInstantSpotMarketLaunch$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgLiquidateCrossMarginPoolV2.d.ts declare namespace MsgLiquidateCrossMarginPoolV2 { interface Params { sender: string; subaccountId: string; quoteDenom: string; } type Proto = MsgLiquidateCrossMarginPool; } /** * @category Messages */ declare class MsgLiquidateCrossMarginPoolV2 extends MsgBase { static fromJSON(params: MsgLiquidateCrossMarginPoolV2.Params): MsgLiquidateCrossMarginPoolV2; toProto(): MsgLiquidateCrossMarginPool; toData(): { sender: string; subaccountId: string; quoteDenom: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; quote_denom: string; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; quote_denom: string; '@type': string; }; toDirectSign(): { type: string; message: MsgLiquidateCrossMarginPool; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.d.ts declare namespace MsgCreateDerivativeLimitOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; } type Proto = MsgCreateDerivativeLimitOrder$2; } /** * @category Messages */ declare class MsgCreateDerivativeLimitOrder extends MsgBase { static fromJSON(params: MsgCreateDerivativeLimitOrder.Params): MsgCreateDerivativeLimitOrder; toProto(): MsgCreateDerivativeLimitOrder$2; toData(): { sender: string; order?: DerivativeOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; margin: string; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateDerivativeLimitOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrderV2.d.ts declare namespace MsgCancelBinaryOptionsOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderHash?: string; orderMask?: OrderMask; cid?: string; } type Proto = MsgCancelBinaryOptionsOrder$1; } /** * @category Messages */ declare class MsgCancelBinaryOptionsOrderV2 extends MsgBase { static fromJSON(params: MsgCancelBinaryOptionsOrderV2.Params): MsgCancelBinaryOptionsOrderV2; toProto(): MsgCancelBinaryOptionsOrder$1; toData(): { sender: string; marketId: string; subaccountId: string; orderHash: string; orderMask: number; cid: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }; }; toWeb3Gw(): { sender: string; market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCancelBinaryOptionsOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.d.ts declare namespace MsgBatchCancelDerivativeOrders { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask$1; cid?: string; }[]; } type Proto = MsgBatchCancelDerivativeOrders$2; } /** * @category Messages */ declare class MsgBatchCancelDerivativeOrders extends MsgBase { static fromJSON(params: MsgBatchCancelDerivativeOrders.Params): MsgBatchCancelDerivativeOrders; toProto(): MsgBatchCancelDerivativeOrders$2; toData(): { sender: string; data: OrderData$1[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelDerivativeOrders$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.d.ts declare namespace MsgCreateDerivativeMarketOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; } type Proto = MsgCreateDerivativeMarketOrder$2; } /** * @category Messages */ declare class MsgCreateDerivativeMarketOrder extends MsgBase { static fromJSON(params: MsgCreateDerivativeMarketOrder.Params): MsgCreateDerivativeMarketOrder; toProto(): MsgCreateDerivativeMarketOrder$2; toData(): { sender: string; order?: DerivativeOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; margin: string; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateDerivativeMarketOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrderV2.d.ts declare namespace MsgCreateDerivativeLimitOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateDerivativeLimitOrder$1; } /** * @category Messages */ declare class MsgCreateDerivativeLimitOrderV2 extends MsgBase { static fromJSON(params: MsgCreateDerivativeLimitOrderV2.Params): MsgCreateDerivativeLimitOrderV2; toProto(): MsgCreateDerivativeLimitOrder$1; toData(): { sender: string; order?: DerivativeOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateDerivativeLimitOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.d.ts declare namespace MsgWithdrawValidatorCommission { interface Params { validatorAddress: string; } type Proto = MsgWithdrawValidatorCommission$1; } /** * @category Messages */ declare class MsgWithdrawValidatorCommission extends MsgBase { static fromJSON(params: MsgWithdrawValidatorCommission.Params): MsgWithdrawValidatorCommission; toProto(): MsgWithdrawValidatorCommission$1; toData(): { validatorAddress: string; '@type': string; }; toAmino(): { type: string; value: { validator_address: string; }; }; toWeb3Gw(): { validator_address: string; '@type': string; }; toDirectSign(): { type: string; message: MsgWithdrawValidatorCommission$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.d.ts declare namespace MsgCreateBinaryOptionsLimitOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; } type Proto = MsgCreateBinaryOptionsLimitOrder$2; } /** * @category Messages */ declare class MsgCreateBinaryOptionsLimitOrder extends MsgBase { static fromJSON(params: MsgCreateBinaryOptionsLimitOrder.Params): MsgCreateBinaryOptionsLimitOrder; toProto(): MsgCreateBinaryOptionsLimitOrder$2; toData(): { sender: string; order?: DerivativeOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; margin: string; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateBinaryOptionsLimitOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrdersV2.d.ts declare namespace MsgBatchCancelDerivativeOrdersV2 { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask; cid?: string; }[]; } type Proto = MsgBatchCancelDerivativeOrders$1; } /** * @category Messages */ declare class MsgBatchCancelDerivativeOrdersV2 extends MsgBase { static fromJSON(params: MsgBatchCancelDerivativeOrdersV2.Params): MsgBatchCancelDerivativeOrdersV2; toProto(): MsgBatchCancelDerivativeOrders$1; toData(): { sender: string; data: OrderData[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelDerivativeOrders$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrderV2.d.ts declare namespace MsgCreateDerivativeMarketOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateDerivativeMarketOrder$1; } /** * @category Messages */ declare class MsgCreateDerivativeMarketOrderV2 extends MsgBase { static fromJSON(params: MsgCreateDerivativeMarketOrderV2.Params): MsgCreateDerivativeMarketOrderV2; toProto(): MsgCreateDerivativeMarketOrder$1; toData(): { sender: string; order?: DerivativeOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateDerivativeMarketOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgUpdateSubaccountRiskProfileV2.d.ts declare namespace MsgUpdateSubaccountRiskProfileV2 { interface Params { sender: string; subaccountId: string; riskProfile: SubaccountRiskProfile; } type Proto = MsgUpdateSubaccountRiskProfile; } /** * @category Messages */ declare class MsgUpdateSubaccountRiskProfileV2 extends MsgBase { static fromJSON(params: MsgUpdateSubaccountRiskProfileV2.Params): MsgUpdateSubaccountRiskProfileV2; toProto(): MsgUpdateSubaccountRiskProfile; toData(): { sender: string; subaccountId: string; riskProfile?: SubaccountRiskProfile; '@type': string; }; toAmino(): { type: string; value: { sender: string; subaccount_id: string; risk_profile: { mode: string | RiskMode; reservation_policy: string | ReservationPolicy; credit_line_id: string; } | undefined; }; }; toWeb3Gw(): { sender: string; subaccount_id: string; risk_profile: { mode: string | RiskMode; reservation_policy: string | ReservationPolicy; credit_line_id: string; } | undefined; '@type': string; }; toEip712V2(): { risk_profile: { mode: string | RiskMode; reservation_policy: string | ReservationPolicy; credit_line_id: string; } | undefined; sender: string; subaccount_id: string; '@type': string; }; toEip712(): { type: string; value: { risk_profile: { mode: any; reservation_policy: any; }; sender: string; subaccount_id: string; }; }; toEip712Types(): Map; toDirectSign(): { type: string; message: MsgUpdateSubaccountRiskProfile; }; toBinary(): Uint8Array; } //#endregion //#region src/client/chain/types/gov.d.ts interface GovModuleStateParams { votingParams: { votingPeriod: number; expeditedVotingPeriod: number; }; tallyParams: { quorum: string; threshold: string; vetoThreshold: string; expeditedThreshold: string; }; depositParams: { minDeposit: Coin[]; maxDepositPeriod: number; expeditedMinDeposit: Coin[]; }; } interface Proposal { proposalId: number; title: string; summary: string; proposer: string; content: any; type: string; status: ProposalStatus$1; expedited: boolean; failedReason: string; submitTime: number; finalTallyResult: GrpcTallyResult | undefined; totalDeposits: Coin[]; votingStartTime: number; votingEndTime: number; depositEndTime: number; } type WeightedVoteOption = { option: VoteOption$1; weight: string; }; type Vote = { proposalId: number; voter: string; options: WeightedVoteOption[]; metadata: string; }; type TallyResult = { yesCount: string; abstainCount: string; noCount: string; noWithVetoCount: string; }; type ProposalDeposit = { depositor: string; amounts: Coin[]; }; type GrpcProposal = Proposal$1; type GrpcProposalDeposit = Deposit; type GrpcGovernanceTallyParams = Params$13; type GrpcGovernanceVotingParams = Params$13; type GrpcGovernanceDepositParams = Params$13; type GrpcTallyResult = TallyResult$1; type GrpcVote = Vote$1; type VoteOption = VoteOption$1; type ProposalStatus = ProposalStatus$1; declare const VoteOptionMap: typeof VoteOption$1; declare const ProposalStatusMap: typeof ProposalStatus$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/base/query/v1beta1/pagination_pb.d.ts /** * PageRequest is to be embedded in gRPC request messages for efficient * pagination. Ex: * * message SomeRequest { * Foo some_parameter = 1; * PageRequest pagination = 2; * } * * @generated from protobuf message cosmos.base.query.v1beta1.PageRequest */ interface PageRequest { /** * 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. * * @generated from protobuf field: bytes key = 1 */ key: Uint8Array; /** * 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. * * @generated from protobuf field: uint64 offset = 2 */ offset: bigint; /** * 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. * * @generated from protobuf field: uint64 limit = 3 */ limit: bigint; /** * 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. * * @generated from protobuf field: bool count_total = 4 */ countTotal: boolean; /** * reverse is set to true if results are to be returned in the descending order. * * Since: cosmos-sdk 0.43 * * @generated from protobuf field: bool reverse = 5 */ 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; * } * * @generated from protobuf message cosmos.base.query.v1beta1.PageResponse */ interface PageResponse { /** * next_key is the key to be passed to PageRequest.key to * query the next page most efficiently. It will be empty if * there are no more results. * * @generated from protobuf field: bytes next_key = 1 */ nextKey: Uint8Array; /** * total is total number of results available if PageRequest.count_total * was set, its value is undefined otherwise * * @generated from protobuf field: uint64 total = 2 */ total: bigint; } /** * @generated MessageType for protobuf message cosmos.base.query.v1beta1.PageRequest */ declare const PageRequest = new PageRequest$Type(); /** * @generated MessageType for protobuf message cosmos.base.query.v1beta1.PageResponse */ declare const PageResponse = new PageResponse$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmwasm/wasm/v1/query_pb.d.ts /** * QueryContractHistoryResponse is the response type for the * Query/ContractHistory RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryContractHistoryResponse */ interface QueryContractHistoryResponse { /** * @generated from protobuf field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1 */ entries: ContractCodeHistoryEntry$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryContractsByCodeResponse is the response type for the * Query/ContractsByCode RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryContractsByCodeResponse */ interface QueryContractsByCodeResponse { /** * contracts are a set of contract addresses * * @generated from protobuf field: repeated string contracts = 1 */ contracts: string[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryAllContractStateResponse is the response type for the * Query/AllContractState RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryAllContractStateResponse */ interface QueryAllContractStateResponse { /** * @generated from protobuf field: repeated cosmwasm.wasm.v1.Model models = 1 */ models: Model[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryRawContractStateResponse is the response type for the * Query/RawContractState RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryRawContractStateResponse */ interface QueryRawContractStateResponse { /** * Data contains the raw store data * * @generated from protobuf field: bytes data = 1 */ data: Uint8Array; } /** * QuerySmartContractStateResponse is the response type for the * Query/SmartContractState RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QuerySmartContractStateResponse */ interface QuerySmartContractStateResponse { /** * Data contains the json data returned from the smart contract * * @generated from protobuf field: bytes data = 1 */ data: Uint8Array; } /** * CodeInfoResponse contains code meta data from CodeInfo * * @generated from protobuf message cosmwasm.wasm.v1.CodeInfoResponse */ interface CodeInfoResponse$1 { /** * @generated from protobuf field: uint64 code_id = 1 */ codeId: bigint; // id for legacy support /** * @generated from protobuf field: string creator = 2 */ creator: string; /** * @generated from protobuf field: bytes data_hash = 3 */ dataHash: Uint8Array; /** * @generated from protobuf field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6 */ instantiatePermission?: AccessConfig; } /** * QueryCodeResponse is the response type for the Query/Code RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryCodeResponse */ interface QueryCodeResponse { /** * @generated from protobuf field: cosmwasm.wasm.v1.CodeInfoResponse code_info = 1 */ codeInfo?: CodeInfoResponse$1; /** * @generated from protobuf field: bytes data = 2 */ data: Uint8Array; } /** * QueryCodesResponse is the response type for the Query/Codes RPC method * * @generated from protobuf message cosmwasm.wasm.v1.QueryCodesResponse */ interface QueryCodesResponse { /** * @generated from protobuf field: repeated cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1 */ codeInfos: CodeInfoResponse$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryContractHistoryResponse */ declare const QueryContractHistoryResponse = new QueryContractHistoryResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryContractsByCodeResponse */ declare const QueryContractsByCodeResponse = new QueryContractsByCodeResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryAllContractStateResponse */ declare const QueryAllContractStateResponse = new QueryAllContractStateResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryRawContractStateResponse */ declare const QueryRawContractStateResponse = new QueryRawContractStateResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QuerySmartContractStateResponse */ declare const QuerySmartContractStateResponse = new QuerySmartContractStateResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.CodeInfoResponse */ declare const CodeInfoResponse$1 = new CodeInfoResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryCodeResponse */ declare const QueryCodeResponse = new QueryCodeResponse$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.QueryCodesResponse */ declare const QueryCodesResponse = new QueryCodesResponse$Type(); //#endregion //#region src/client/chain/types/wasm.d.ts interface AbsoluteTxPosition { blockHeight: number; txIndex: number; } interface GoogleProtoBufAny { typeUrl: string; value: Uint8Array | string; } interface ContractAccountBalance { account: string; balance: string; } interface ContractInfo { codeId: number; creator: string; admin: string; label: string; created?: AbsoluteTxPosition; ibcPortId: string; extension?: GoogleProtoBufAny; } interface TokenInfo$1 { name: string; symbol: string; decimals: number; total_supply: string; mint: string; } interface MarketingInfo { project: string; description: string; logo: { url: string; }; marketing: string; } interface ContractAccountsBalanceWithPagination { tokenInfo: TokenInfo$1; contractInfo: ContractInfo; marketingInfo: MarketingInfo; contractAccountsBalance: ContractAccountBalance[]; pagination?: Pagination; } interface ContractStateWithPagination { tokenInfo: TokenInfo$1; contractInfo: ContractInfo; marketingInfo: MarketingInfo; contractAccountsBalance: ContractAccountBalance[]; pagination?: Pagination; } interface AbsoluteTxPosition { blockHeight: number; txIndex: number; } interface ContractCodeHistoryEntry { operation: ContractCodeHistoryOperationType$1; codeId: number; updated?: AbsoluteTxPosition; msg: Uint8Array | string; } interface CodeInfoResponse { codeId: number; creator: string; dataHash: Uint8Array | string; } type GrpcCodeInfoResponse = CodeInfoResponse$1; type grpcContractInfo = ContractInfo$1; type GrpcContractInfo = ContractInfo$1; type GrpcContractCodeHistoryEntry = ContractCodeHistoryEntry$1; type GrpcAbsoluteTxPosition = AbsoluteTxPosition$1; type ContractCodeHistoryOperationType = ContractCodeHistoryOperationType$1; declare const ContractCodeHistoryOperationTypeMap: typeof ContractCodeHistoryOperationType$1; //#endregion //#region src/client/chain/types/staking.d.ts interface StakingModuleParams extends Omit { unbondingTime: number; } interface Delegation { delegation: { delegatorAddress: string; validatorAddress: string; shares: string; }; balance: { denom: string; amount: string; }; } interface ReDelegation { delegation: { delegatorAddress: string; sourceValidatorAddress: string; completionTime: number; destinationValidatorAddress: string; }; balance: string; } interface UnBondingDelegation { delegatorAddress: string; validatorAddress: string; creationHeight: number; completionTime: number; initialBalance: string; balance: string; } interface Pool { notBondedTokens: string; bondedTokens: string; } type BondStatus = 'UnBonded' | 'UnBonding' | 'Bonded'; declare const BondStatus: { readonly UnBonded: "UnBonded"; readonly UnBonding: "UnBonding"; readonly Bonded: "Bonded"; }; interface ValidatorDescription { moniker: string; identity: string; website: string; securityContact: string; details: string; } interface ValidatorCommission { commissionRates: { rate: string; maxRate: string; maxChangeRate: string; }; updateTime: Date; } interface Validator { operatorAddress: string; consensusPubKey?: string; jailed: boolean; status: BondStatus; tokens: string; delegatorShares: string; description: ValidatorDescription; unbondingHeight: number; unbondingTime: number; commission: ValidatorCommission; minSelfDelegation: string; } type GrpcValidator = Validator$1; type GrpcDelegation = Delegation$1; type GrpcValidatorDescription = Description; type GrpcValidatorCommission = Commission; type GrpcValidatorCommissionRates = CommissionRates; type GrpcUnbondingDelegation = UnbondingDelegation; type GrpcUnbondingDelegationEntry = UnbondingDelegationEntry; type GrpcReDelegation = Redelegation; type GrpcDelegationResponse = DelegationResponse; type GrpcReDelegationResponse = RedelegationResponse; type GrpcReDelegationEntryResponse = RedelegationEntryResponse; type GrpcStakingParams = Params$4; type GrpcPool = Pool$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/genesis_pb.d.ts /** * GenesisState defines the exchange module's genesis state. * * @generated from protobuf message injective.exchange.v1beta1.GenesisState */ interface GenesisState$5 { /** * params defines all the parameters of related to exchange. * * @generated from protobuf field: injective.exchange.v1beta1.Params params = 1 */ params?: Params$17; /** * spot_markets is an array containing the genesis trade pairs * * @generated from protobuf field: repeated injective.exchange.v1beta1.SpotMarket spot_markets = 2 */ spotMarkets: SpotMarket$2[]; /** * derivative_markets is an array containing the genesis derivative markets * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeMarket derivative_markets = 3 */ derivativeMarkets: DerivativeMarket$2[]; /** * spot_orderbook defines the spot exchange limit orderbook active at genesis. * * @generated from protobuf field: repeated injective.exchange.v1beta1.SpotOrderBook spot_orderbook = 4 */ spotOrderbook: SpotOrderBook$1[]; /** * derivative_orderbook defines the derivative exchange limit orderbook active * at genesis. * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeOrderBook derivative_orderbook = 5 */ derivativeOrderbook: DerivativeOrderBook$1[]; /** * balances defines the exchange users balances active at genesis. * * @generated from protobuf field: repeated injective.exchange.v1beta1.Balance balances = 6 */ balances: Balance$1[]; /** * positions defines the exchange derivative positions at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativePosition positions = 7 */ positions: DerivativePosition$3[]; /** * subaccount_trade_nonces defines the subaccount trade nonces for the * subaccounts at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.SubaccountNonce subaccount_trade_nonces = 8 */ subaccountTradeNonces: SubaccountNonce$1[]; /** * expiry_futures_market_info defines the market info for the expiry futures * markets at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.ExpiryFuturesMarketInfoState expiry_futures_market_info_state = 9 */ expiryFuturesMarketInfoState: ExpiryFuturesMarketInfoState$1[]; /** * perpetual_market_info defines the market info for the perpetual derivative * markets at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.PerpetualMarketInfo perpetual_market_info = 10 */ perpetualMarketInfo: PerpetualMarketInfo$3[]; /** * perpetual_market_funding_state defines the funding state for the perpetual * derivative markets at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.PerpetualMarketFundingState perpetual_market_funding_state = 11 */ perpetualMarketFundingState: PerpetualMarketFundingState$1[]; /** * derivative_market_settlement_scheduled defines the scheduled markets for * settlement at genesis * * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeMarketSettlementInfo derivative_market_settlement_scheduled = 12 */ derivativeMarketSettlementScheduled: DerivativeMarketSettlementInfo$1[]; /** * sets spot markets as enabled * * @generated from protobuf field: bool is_spot_exchange_enabled = 13 */ isSpotExchangeEnabled: boolean; /** * sets derivative markets as enabled * * @generated from protobuf field: bool is_derivatives_exchange_enabled = 14 */ isDerivativesExchangeEnabled: boolean; /** * the current trading reward campaign info * * @generated from protobuf field: injective.exchange.v1beta1.TradingRewardCampaignInfo trading_reward_campaign_info = 15 */ tradingRewardCampaignInfo?: TradingRewardCampaignInfo$2; /** * the current and upcoming trading reward campaign pools * * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool trading_reward_pool_campaign_schedule = 16 */ tradingRewardPoolCampaignSchedule: CampaignRewardPool$2[]; /** * the current trading reward account points * * @generated from protobuf field: repeated injective.exchange.v1beta1.TradingRewardCampaignAccountPoints trading_reward_campaign_account_points = 17 */ tradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPoints$1[]; /** * the fee discount schedule * * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountSchedule fee_discount_schedule = 18 */ feeDiscountSchedule?: FeeDiscountSchedule$2; /** * the cached fee discount account tiers with TTL * * @generated from protobuf field: repeated injective.exchange.v1beta1.FeeDiscountAccountTierTTL fee_discount_account_tier_ttl = 19 */ feeDiscountAccountTierTtl: FeeDiscountAccountTierTTL$1[]; /** * the fee discount paid by accounts in all buckets * * @generated from protobuf field: repeated injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts fee_discount_bucket_volume_accounts = 20 */ feeDiscountBucketVolumeAccounts: FeeDiscountBucketVolumeAccounts$1[]; /** * sets the first fee cycle as finished * * @generated from protobuf field: bool is_first_fee_cycle_finished = 21 */ isFirstFeeCycleFinished: boolean; /** * the current and upcoming trading reward campaign pending pools * * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 22 */ pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool$2[]; /** * the pending trading reward account points * * @generated from protobuf field: repeated injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints pending_trading_reward_campaign_account_points = 23 */ pendingTradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPendingPoints$1[]; /** * the addresses opting out of trading rewards * * @generated from protobuf field: repeated string rewards_opt_out_addresses = 24 */ rewardsOptOutAddresses: string[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.TradeRecords historical_trade_records = 25 */ historicalTradeRecords: TradeRecords$1[]; /** * binary_options_markets is an array containing the genesis binary options * markets * * @generated from protobuf field: repeated injective.exchange.v1beta1.BinaryOptionsMarket binary_options_markets = 26 */ binaryOptionsMarkets: BinaryOptionsMarket$2[]; /** * binary_options_markets_scheduled_for_settlement contains the marketIDs of * binary options markets scheduled for next-block settlement * * @generated from protobuf field: repeated string binary_options_market_ids_scheduled_for_settlement = 27 */ binaryOptionsMarketIdsScheduledForSettlement: string[]; /** * spot_market_ids_scheduled_to_force_close defines the scheduled markets for * forced closings at genesis * * @generated from protobuf field: repeated string spot_market_ids_scheduled_to_force_close = 28 */ spotMarketIdsScheduledToForceClose: string[]; /** * denom_decimals defines the denom decimals for the exchange. * * @generated from protobuf field: repeated injective.exchange.v1beta1.DenomDecimals denom_decimals = 29 */ denomDecimals: DenomDecimals$1[]; /** * conditional_derivative_orderbook contains conditional orderbooks for all * markets (both lmit and market conditional orders) * * @generated from protobuf field: repeated injective.exchange.v1beta1.ConditionalDerivativeOrderBook conditional_derivative_orderbooks = 30 */ conditionalDerivativeOrderbooks: ConditionalDerivativeOrderBook$1[]; /** * market_fee_multipliers contains any non-default atomic order fee * multipliers * * @generated from protobuf field: repeated injective.exchange.v1beta1.MarketFeeMultiplier market_fee_multipliers = 31 */ marketFeeMultipliers: MarketFeeMultiplier$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.OrderbookSequence orderbook_sequences = 32 */ orderbookSequences: OrderbookSequence$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.AggregateSubaccountVolumeRecord subaccount_volumes = 33 */ subaccountVolumes: AggregateSubaccountVolumeRecord$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.MarketVolume market_volumes = 34 */ marketVolumes: MarketVolume$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.FullGrantAuthorizations grant_authorizations = 35 */ grantAuthorizations: FullGrantAuthorizations$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.FullActiveGrant active_grants = 36 */ activeGrants: FullActiveGrant$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DenomMinNotional denom_min_notionals = 37 */ denomMinNotionals: DenomMinNotional$1[]; } /** * @generated from protobuf message injective.exchange.v1beta1.OrderbookSequence */ interface OrderbookSequence$1 { /** * @generated from protobuf field: uint64 sequence = 1 */ sequence: bigint; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; } /** * @generated from protobuf message injective.exchange.v1beta1.FeeDiscountAccountTierTTL */ interface FeeDiscountAccountTierTTL$1 { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountTierTTL tier_ttl = 2 */ tierTtl?: FeeDiscountTierTTL$2; } /** * @generated from protobuf message injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts */ interface FeeDiscountBucketVolumeAccounts$1 { /** * @generated from protobuf field: int64 bucket_start_timestamp = 1 */ bucketStartTimestamp: bigint; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.AccountVolume account_volume = 2 */ accountVolume: AccountVolume$1[]; } /** * @generated from protobuf message injective.exchange.v1beta1.AccountVolume */ interface AccountVolume$1 { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: string volume = 2 */ volume: string; } /** * @generated from protobuf message injective.exchange.v1beta1.TradingRewardCampaignAccountPoints */ interface TradingRewardCampaignAccountPoints$1 { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: string points = 2 */ points: string; } /** * @generated from protobuf message injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints */ interface TradingRewardCampaignAccountPendingPoints$1 { /** * @generated from protobuf field: int64 reward_pool_start_timestamp = 1 */ rewardPoolStartTimestamp: bigint; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.TradingRewardCampaignAccountPoints account_points = 2 */ accountPoints: TradingRewardCampaignAccountPoints$1[]; } /** * Spot Exchange Limit Orderbook * * @generated from protobuf message injective.exchange.v1beta1.SpotOrderBook */ interface SpotOrderBook$1 { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: bool isBuySide = 2 */ isBuySide: boolean; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.SpotLimitOrder orders = 3 */ orders: SpotLimitOrder$3[]; } /** * Derivative Exchange Limit Orderbook * * @generated from protobuf message injective.exchange.v1beta1.DerivativeOrderBook */ interface DerivativeOrderBook$1 { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: bool isBuySide = 2 */ isBuySide: boolean; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeLimitOrder orders = 3 */ orders: DerivativeLimitOrder$4[]; } /** * Orderbook containing limit & market conditional orders * * @generated from protobuf message injective.exchange.v1beta1.ConditionalDerivativeOrderBook */ interface ConditionalDerivativeOrderBook$1 { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeLimitOrder limit_buy_orders = 2 */ limitBuyOrders: DerivativeLimitOrder$4[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeMarketOrder market_buy_orders = 3 */ marketBuyOrders: DerivativeMarketOrder$1[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeLimitOrder limit_sell_orders = 4 */ limitSellOrders: DerivativeLimitOrder$4[]; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativeMarketOrder market_sell_orders = 5 */ marketSellOrders: DerivativeMarketOrder$1[]; } /** * @generated from protobuf message injective.exchange.v1beta1.Balance */ interface Balance$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the denom of the balance * * @generated from protobuf field: string denom = 2 */ denom: string; /** * the token deposits details * * @generated from protobuf field: injective.exchange.v1beta1.Deposit deposits = 3 */ deposits?: Deposit$2; } /** * @generated from protobuf message injective.exchange.v1beta1.DerivativePosition */ interface DerivativePosition$3 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * the position details * * @generated from protobuf field: injective.exchange.v1beta1.Position position = 3 */ position?: Position$2; } /** * @generated from protobuf message injective.exchange.v1beta1.SubaccountNonce */ interface SubaccountNonce$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the subaccount trade nonce * * @generated from protobuf field: injective.exchange.v1beta1.SubaccountTradeNonce subaccount_trade_nonce = 2 */ subaccountTradeNonce?: SubaccountTradeNonce$1; } /** * @generated from protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketInfoState */ interface ExpiryFuturesMarketInfoState$1 { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: injective.exchange.v1beta1.ExpiryFuturesMarketInfo market_info = 2 */ marketInfo?: ExpiryFuturesMarketInfo$3; } /** * @generated from protobuf message injective.exchange.v1beta1.PerpetualMarketFundingState */ interface PerpetualMarketFundingState$1 { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: injective.exchange.v1beta1.PerpetualMarketFunding funding = 2 */ funding?: PerpetualMarketFunding$3; } /** * @generated from protobuf message injective.exchange.v1beta1.FullGrantAuthorizations */ interface FullGrantAuthorizations$1 { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string total_grant_amount = 2 */ totalGrantAmount: string; /** * @generated from protobuf field: int64 last_delegations_checked_time = 3 */ lastDelegationsCheckedTime: bigint; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 4 */ grants: GrantAuthorization$3[]; } /** * @generated from protobuf message injective.exchange.v1beta1.FullActiveGrant */ interface FullActiveGrant$1 { /** * @generated from protobuf field: string grantee = 1 */ grantee: string; /** * @generated from protobuf field: injective.exchange.v1beta1.ActiveGrant active_grant = 2 */ activeGrant?: ActiveGrant$1; } /** * @generated MessageType for protobuf message injective.exchange.v1beta1.GenesisState */ declare const GenesisState$5 = new GenesisState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.OrderbookSequence */ declare const OrderbookSequence$1 = new OrderbookSequence$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountAccountTierTTL */ declare const FeeDiscountAccountTierTTL$1 = new FeeDiscountAccountTierTTL$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FeeDiscountBucketVolumeAccounts */ declare const FeeDiscountBucketVolumeAccounts$1 = new FeeDiscountBucketVolumeAccounts$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.AccountVolume */ declare const AccountVolume$1 = new AccountVolume$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignAccountPoints */ declare const TradingRewardCampaignAccountPoints$1 = new TradingRewardCampaignAccountPoints$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.TradingRewardCampaignAccountPendingPoints */ declare const TradingRewardCampaignAccountPendingPoints$1 = new TradingRewardCampaignAccountPendingPoints$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.SpotOrderBook */ declare const SpotOrderBook$1 = new SpotOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.DerivativeOrderBook */ declare const DerivativeOrderBook$1 = new DerivativeOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.ConditionalDerivativeOrderBook */ declare const ConditionalDerivativeOrderBook$1 = new ConditionalDerivativeOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.Balance */ declare const Balance$1 = new Balance$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.DerivativePosition */ declare const DerivativePosition$3 = new DerivativePosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.SubaccountNonce */ declare const SubaccountNonce$1 = new SubaccountNonce$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.ExpiryFuturesMarketInfoState */ declare const ExpiryFuturesMarketInfoState$1 = new ExpiryFuturesMarketInfoState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.PerpetualMarketFundingState */ declare const PerpetualMarketFundingState$1 = new PerpetualMarketFundingState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FullGrantAuthorizations */ declare const FullGrantAuthorizations$1 = new FullGrantAuthorizations$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FullActiveGrant */ declare const FullActiveGrant$1 = new FullActiveGrant$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb.d.ts /** * QueryExchangeParamsRequest is the response type for the Query/ExchangeParams * RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryExchangeParamsResponse */ interface QueryExchangeParamsResponse$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.Params params = 1 */ params?: Params$17; } /** * QueryDenomDecimalsRequest is the response type for the Query/DenomDecimals * RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryDenomDecimalsResponse */ interface QueryDenomDecimalsResponse { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DenomDecimals denom_decimals = 1 */ denomDecimals: DenomDecimals$1[]; } /** * QuerySpotMarketsResponse is the response type for the Query/SpotMarkets RPC * method. * * @generated from protobuf message injective.exchange.v1beta1.QuerySpotMarketsResponse */ interface QuerySpotMarketsResponse$1 { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.SpotMarket markets = 1 */ markets: SpotMarket$2[]; } /** * @generated from protobuf message injective.exchange.v1beta1.FullSpotMarket */ interface FullSpotMarket$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.SpotMarket market = 1 */ market?: SpotMarket$2; /** * mid_price_and_tob defines the mid price for this market and the best ask * and bid orders * * @generated from protobuf field: injective.exchange.v1beta1.MidPriceAndTOB mid_price_and_tob = 2 */ midPriceAndTob?: MidPriceAndTOB$1; } /** * QueryFullSpotMarketsResponse is the response type for the * Query/FullSpotMarkets RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryFullSpotMarketsResponse */ interface QueryFullSpotMarketsResponse$1 { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.FullSpotMarket markets = 1 */ markets: FullSpotMarket$1[]; } /** * @generated from protobuf message injective.exchange.v1beta1.PerpetualMarketState */ interface PerpetualMarketState$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.PerpetualMarketInfo market_info = 1 */ marketInfo?: PerpetualMarketInfo$3; /** * @generated from protobuf field: injective.exchange.v1beta1.PerpetualMarketFunding funding_info = 2 */ fundingInfo?: PerpetualMarketFunding$3; } /** * @generated from protobuf message injective.exchange.v1beta1.FullDerivativeMarket */ interface FullDerivativeMarket$1 { /** * derivative market details * * @generated from protobuf field: injective.exchange.v1beta1.DerivativeMarket market = 1 */ market?: DerivativeMarket$2; /** * perpetual market state or expiry futures market state * * @generated from protobuf oneof: info */ info: { oneofKind: "perpetualInfo"; /** * perpetual market info * * @generated from protobuf field: injective.exchange.v1beta1.PerpetualMarketState perpetual_info = 2 */ perpetualInfo: PerpetualMarketState$1; } | { oneofKind: "futuresInfo"; /** * expiry futures market info * * @generated from protobuf field: injective.exchange.v1beta1.ExpiryFuturesMarketInfo futures_info = 3 */ futuresInfo: ExpiryFuturesMarketInfo$3; } | { oneofKind: undefined; }; /** * mark price (in chain format) * * @generated from protobuf field: string mark_price = 4 */ markPrice: string; /** * mid_price_and_tob defines the mid price for this market and the best ask * and bid orders * * @generated from protobuf field: injective.exchange.v1beta1.MidPriceAndTOB mid_price_and_tob = 5 */ midPriceAndTob?: MidPriceAndTOB$1; } /** * QueryDerivativeMarketsResponse is the response type for the * Query/DerivativeMarkets RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryDerivativeMarketsResponse */ interface QueryDerivativeMarketsResponse$1 { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.FullDerivativeMarket markets = 1 */ markets: FullDerivativeMarket$1[]; } /** * QuerySubaccountTradeNonceResponse is the response type for the * Query/SubaccountTradeNonce RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse */ interface QuerySubaccountTradeNonceResponse { /** * @generated from protobuf field: uint32 nonce = 1 */ nonce: number; } /** * QueryModuleStateResponse is the response type for the * Query/ExchangeModuleState RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryModuleStateResponse */ interface QueryModuleStateResponse$4 { /** * @generated from protobuf field: injective.exchange.v1beta1.GenesisState state = 1 */ state?: GenesisState$5; } /** * QueryPositionsResponse is the response type for the Query/Positions RPC * method. * * @generated from protobuf message injective.exchange.v1beta1.QueryPositionsResponse */ interface QueryPositionsResponse$1 { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DerivativePosition state = 1 */ state: DerivativePosition$3[]; } /** * QueryTradeRewardCampaignResponse is the response type for the * Query/TradeRewardCampaign RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryTradeRewardCampaignResponse */ interface QueryTradeRewardCampaignResponse$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.TradingRewardCampaignInfo trading_reward_campaign_info = 1 */ tradingRewardCampaignInfo?: TradingRewardCampaignInfo$2; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool trading_reward_pool_campaign_schedule = 2 */ tradingRewardPoolCampaignSchedule: CampaignRewardPool$2[]; /** * @generated from protobuf field: string total_trade_reward_points = 3 */ totalTradeRewardPoints: string; /** * @generated from protobuf field: repeated injective.exchange.v1beta1.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 4 */ pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool$2[]; /** * @generated from protobuf field: repeated string pending_total_trade_reward_points = 5 */ pendingTotalTradeRewardPoints: string[]; } /** * QueryIsRegisteredDMMResponse is the response type for the * Query/IsRegisteredDMM RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse */ interface QueryIsOptedOutOfRewardsResponse$1 { /** * @generated from protobuf field: bool is_opted_out = 1 */ isOptedOut: boolean; } /** * QueryFeeDiscountAccountInfoResponse is the response type for the * Query/FeeDiscountAccountInfo RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse */ interface QueryFeeDiscountAccountInfoResponse$1 { /** * @generated from protobuf field: uint64 tier_level = 1 */ tierLevel: bigint; /** * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountTierInfo account_info = 2 */ accountInfo?: FeeDiscountTierInfo$2; /** * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountTierTTL account_ttl = 3 */ accountTtl?: FeeDiscountTierTTL$2; } /** * QueryFeeDiscountScheduleResponse is the response type for the * Query/FeeDiscountSchedule RPC method. * * @generated from protobuf message injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse */ interface QueryFeeDiscountScheduleResponse$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.FeeDiscountSchedule fee_discount_schedule = 1 */ feeDiscountSchedule?: FeeDiscountSchedule$2; } /** * @generated from protobuf message injective.exchange.v1beta1.QueryActiveStakeGrantResponse */ interface QueryActiveStakeGrantResponse$1 { /** * @generated from protobuf field: injective.exchange.v1beta1.ActiveGrant grant = 1 */ grant?: ActiveGrant$1; /** * @generated from protobuf field: injective.exchange.v1beta1.EffectiveGrant effective_grant = 2 */ effectiveGrant?: EffectiveGrant$1; } /** * @generated from protobuf message injective.exchange.v1beta1.QueryDenomMinNotionalResponse */ interface QueryDenomMinNotionalResponse { /** * the minimum notional amount for the denom (in chain format) * * @generated from protobuf field: string amount = 1 */ amount: string; } /** * @generated from protobuf message injective.exchange.v1beta1.QueryDenomMinNotionalsResponse */ interface QueryDenomMinNotionalsResponse$1 { /** * @generated from protobuf field: repeated injective.exchange.v1beta1.DenomMinNotional denom_min_notionals = 1 */ denomMinNotionals: DenomMinNotional$1[]; } /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryExchangeParamsResponse */ declare const QueryExchangeParamsResponse$1 = new QueryExchangeParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryDenomDecimalsResponse */ declare const QueryDenomDecimalsResponse = new QueryDenomDecimalsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QuerySpotMarketsResponse */ declare const QuerySpotMarketsResponse$1 = new QuerySpotMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FullSpotMarket */ declare const FullSpotMarket$1 = new FullSpotMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryFullSpotMarketsResponse */ declare const QueryFullSpotMarketsResponse$1 = new QueryFullSpotMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.PerpetualMarketState */ declare const PerpetualMarketState$1 = new PerpetualMarketState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.FullDerivativeMarket */ declare const FullDerivativeMarket$1 = new FullDerivativeMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryDerivativeMarketsResponse */ declare const QueryDerivativeMarketsResponse$1 = new QueryDerivativeMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse */ declare const QuerySubaccountTradeNonceResponse = new QuerySubaccountTradeNonceResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryModuleStateResponse */ declare const QueryModuleStateResponse$4 = new QueryModuleStateResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryPositionsResponse */ declare const QueryPositionsResponse$1 = new QueryPositionsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryTradeRewardCampaignResponse */ declare const QueryTradeRewardCampaignResponse$1 = new QueryTradeRewardCampaignResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse */ declare const QueryIsOptedOutOfRewardsResponse$1 = new QueryIsOptedOutOfRewardsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse */ declare const QueryFeeDiscountAccountInfoResponse$1 = new QueryFeeDiscountAccountInfoResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse */ declare const QueryFeeDiscountScheduleResponse$1 = new QueryFeeDiscountScheduleResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryActiveStakeGrantResponse */ declare const QueryActiveStakeGrantResponse$1 = new QueryActiveStakeGrantResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryDenomMinNotionalResponse */ declare const QueryDenomMinNotionalResponse = new QueryDenomMinNotionalResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.QueryDenomMinNotionalsResponse */ declare const QueryDenomMinNotionalsResponse$1 = new QueryDenomMinNotionalsResponse$Type(); //#endregion //#region src/client/chain/types/exchange.d.ts interface DepositProposalParams { amount: string; denom: string; } interface FeeDiscountTierInfo { makerDiscountRate: string; takerDiscountRate: string; stakedAmount: string; volume: string; } interface FeeDiscountSchedule { bucketCount: number; bucketDuration: number; quoteDenomsList: Array; tierInfosList: Array; disqualifiedMarketIdsList: Array; } interface PointsMultiplier { makerPointsMultiplier: string; takerPointsMultiplier: string; } interface TradingRewardCampaignBoostInfo { boostedSpotMarketIdsList: Array; spotMarketMultipliersList: Array; boostedDerivativeMarketIdsList: Array; derivativeMarketMultipliersList: Array; } interface TradingRewardCampaignInfo { campaignDurationSeconds: number; quoteDenomsList: Array; tradingRewardBoostInfo?: TradingRewardCampaignBoostInfo; disqualifiedMarketIdsList: Array; } interface CampaignRewardPool { startTimestamp: number; maxCampaignRewardsList: Coin[]; } interface FeeDiscountTierTTL { tier: number; ttlTimestamp: number; } interface FeeDiscountAccountInfo { tierLevel: number; accountInfo?: FeeDiscountTierInfo; accountTtl?: FeeDiscountTierTTL; } interface TradeRewardCampaign { tradingRewardCampaignInfo?: TradingRewardCampaignInfo; tradingRewardPoolCampaignScheduleList: CampaignRewardPool[]; totalTradeRewardPoints: string; pendingTradingRewardPoolCampaignScheduleList: CampaignRewardPool[]; pendingTotalTradeRewardPointsList: string[]; } interface IsOptedOutOfRewards { isOptedOut: boolean; } interface ExchangeParams { spotMarketInstantListingFee?: Coin; derivativeMarketInstantListingFee?: Coin; defaultSpotMakerFeeRate: string; defaultSpotTakerFeeRate: string; defaultDerivativeMakerFeeRate: string; defaultDerivativeTakerFeeRate: string; defaultInitialMarginRatio: string; defaultMaintenanceMarginRatio: string; defaultFundingInterval: number; fundingMultiple: number; relayerFeeShareRate: string; defaultHourlyFundingRateCap: string; defaultHourlyInterestRate: string; maxDerivativeOrderSideCount: number; injRewardStakedRequirementThreshold: string; tradingRewardsVestingDuration: number; liquidatorRewardShareRate: string; binaryOptionsMarketInstantListingFee?: Coin; atomicMarketOrderAccessLevel: string; spotAtomicMarketOrderFeeMultiplier: string; derivativeAtomicMarketOrderFeeMultiplier: string; binaryOptionsAtomicMarketOrderFeeMultiplier: string; minimalProtocolFeeRate: string; isInstantDerivativeMarketLaunchEnabled: boolean; postOnlyModeHeightThreshold: string; marginDecreasePriceTimestampThresholdSeconds: string; exchangeAdmins: string[]; } interface ExchangeModuleParams extends ExchangeParams {} interface ChainPosition { islong: boolean; quantity: string; entryPrice: string; margin: string; cumulativeFundingEntry: string; } interface ChainDerivativePosition { subaccountId: string; marketId: string; position?: ChainPosition; } interface ChainDenomDecimal { denom: string; decimals: string; } interface ChainDenomMinNotional { denom: string; minNotional: string; } interface ChainCrossMarginPoolSnapshot { quoteDenom: string; quoteBalance: string; positionMarginTotal: string; unrealizedPnl: string; unrealizedPnlEffective: string; equityAdmission: string; equityLiquidation: string; initialMarginTotal: string; maintenanceMarginTotal: string; initialMarginWithOrdersTotal: string; entryLossTotal: string; feeReserveTotal: string; orderLockRequirement: string; positiveUpnlHaircutRate: string; healthFactor: string; } interface ChainOrderbookLevel { price: string; quantity: string; } interface ChainL3Orderbook { bids: Array<{ price: string; quantity: string; orderHash: string; subaccountId: string; }>; asks: Array<{ price: string; quantity: string; orderHash: string; subaccountId: string; }>; sequence: number; } interface ChainOrderbook { buys: ChainOrderbookLevel[]; sells: ChainOrderbookLevel[]; sequence: number; } interface ChainTrimmedSpotLimitOrder { price: string; quantity: string; fillable: string; isBuy: boolean; orderHash: string; cid: string; } interface ChainTrimmedDerivativeLimitOrder extends ChainTrimmedSpotLimitOrder { margin: string; } interface ChainTrimmedDerivativeConditionalOrder { price: string; quantity: string; margin: string; triggerPrice: string; isBuy: boolean; isLimit: boolean; orderHash: string; cid: string; } interface ChainSubaccountOrderData { order?: { price: string; quantity: string; isReduceOnly: boolean; cid: string; }; orderHash: string; } interface ChainTradeRewardPoints { accountTradeRewardPoints: string[]; } interface ChainOpenInterest { marketId: string; balance: string; } interface ChainDeposit { availableBalance: string; totalBalance: string; } interface ChainMarketVolume { marketId: string; volume?: { makerVolume: string; takerVolume: string; }; } interface ChainAggregateAccountVolume { account: string; marketVolumes: ChainMarketVolume[]; } interface ChainMidPriceAndTob { midPrice: string; bestBuyPrice: string; bestSellPrice: string; } interface ChainDerivativeMarketAddress { address: string; subaccountId: string; } interface ChainSubaccountRiskProfile { mode: number; reservationPolicy: number; creditLineId: string; } interface ChainEffectivePosition { isLong: boolean; quantity: string; entryPrice: string; effectiveMargin: string; } interface ChainPerpetualMarketInfo { marketId: string; hourlyFundingRateCap: string; hourlyInterestRate: string; nextFundingTimestamp: number; fundingInterval: number; } interface ChainExpiryFuturesMarketInfo { marketId: string; expirationTimestamp: number; twapStartTimestamp: number; expirationTwapStartPriceCumulative: string; settlementPrice: string; expirationTwapStartBaseCumulativePrice: string; expirationTwapStartQuoteCumulativePrice: string; } interface ChainPerpetualMarketFunding { cumulativeFunding: string; cumulativePrice: string; lastTimestamp: number; } interface ChainTierStatistic { tier: number; count: number; } interface ChainTradeRecord { timestamp: number; price: string; quantity: string; } interface ChainTradeRecords { marketId: string; latestTradeRecords: ChainTradeRecord[]; } interface ChainGrantAuthorization { grantee: string; amount: string; } interface ChainMarketBalance { marketId: string; balance: string; } interface ChainSubaccountOrderbookMetadata { marketId: string; isBuy: boolean; metadata?: { vanillaLimitOrderCount: number; reduceOnlyLimitOrderCount: number; aggregateReduceOnlyQuantity: string; aggregateVanillaQuantity: string; vanillaConditionalOrderCount: number; reduceOnlyConditionalOrderCount: number; }; } interface ChainMarketVolatility { volatility: string; historyMetadata?: { groupCount: number; recordsSampleSize: number; mean: string; twap: string; firstTimestamp: number; lastTimestamp: number; minPrice: string; maxPrice: string; medianPrice: string; }; rawHistory: ChainTradeRecord[]; } interface ChainBinaryOptionsMarket { ticker: string; oracleSymbol: string; oracleProvider: string; oracleType: number; oracleScaleFactor: number; expirationTimestamp: number; settlementTimestamp: number; admin: string; quoteDenom: string; marketId: string; makerFeeRate: string; takerFeeRate: string; relayerFeeShareRate: string; status: number; minPriceTickSize: string; minQuantityTickSize: string; settlementPrice: string; minNotional: string; adminPermissions: number; quoteDecimals: number; openNotionalCap?: { type?: 'uncapped' | 'capped'; value?: string; }; hasDisabledMinimalProtocolFee: boolean; forcePausedInfo?: { reason: number; markPriceAtPausing: string; }; } type GrpcOrderInfo = OrderInfo$2; type GrpcSpotMarket = SpotMarket$2; type GrpcSpotMarketOrder = SpotMarketOrder; type GrpcSpotOrder = SpotOrder$2; type GrpcExchangeParams = Params$17; type GrpcFeeDiscountTierInfo = FeeDiscountTierInfo$2; type GrpcFeeDiscountTierTTL = FeeDiscountTierTTL$2; type GrpcFeeDiscountSchedule = FeeDiscountSchedule$2; type GrpcPointsMultiplier = PointsMultiplier$2; type GrpcTradingRewardCampaignBoostInfo = TradingRewardCampaignBoostInfo$2; type GrpcTradingRewardCampaignInfo = TradingRewardCampaignInfo$2; type GrpcCampaignRewardPool = CampaignRewardPool$2; type GrpcChainPosition = Position$2; type GrpcChainDerivativePosition = DerivativePosition$3; type GrpcFeeDiscountAccountInfo = QueryFeeDiscountAccountInfoResponse$1; type GrpcTradeRewardCampaign = QueryTradeRewardCampaignResponse$1; type GrpcDenomDecimals = DenomDecimals$1; type GrpcDenomMinNotional = DenomMinNotional$1; type GrpcChainFullDerivativeMarket = FullDerivativeMarket$1; type GrpcChainFullSpotMarket = FullSpotMarket$1; type GrpcChainDerivativeMarket = DerivativeMarket$2; type GrpcChainSpotMarket = SpotMarket$2; type GrpcOrderType = OrderType$2; declare const GrpcOrderTypeMap: typeof OrderType$2; type OrderType = OrderType$2; declare const OrderTypeMap: typeof OrderType$2; type GrpcMarketStatus = MarketStatus$1; declare const GrpcMarketStatusMap: typeof MarketStatus$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/evm/v1/log_pb.d.ts /** * Log represents an protobuf compatible Ethereum Log that defines a contract * log event. These events are generated by the LOG opcode and stored/indexed by * the node. * * NOTE: address, topics and data are consensus fields. The rest of the fields * are derived, i.e. filled in by the nodes, but not secured by consensus. * * @generated from protobuf message injective.evm.v1.Log */ interface Log { /** * address of the contract that generated the event * * @generated from protobuf field: string address = 1 */ address: string; /** * topics is a list of topics provided by the contract. * * @generated from protobuf field: repeated string topics = 2 */ topics: string[]; /** * data which is supplied by the contract, usually ABI-encoded * * @generated from protobuf field: bytes data = 3 */ data: Uint8Array; /** * block_number of the block in which the transaction was included * * @generated from protobuf field: uint64 block_number = 4 */ blockNumber: bigint; /** * tx_hash is the transaction hash * * @generated from protobuf field: string tx_hash = 5 */ txHash: string; /** * tx_index of the transaction in the block * * @generated from protobuf field: uint64 tx_index = 6 */ txIndex: bigint; /** * block_hash of the block in which the transaction was included * * @generated from protobuf field: string block_hash = 7 */ blockHash: string; /** * index of the log in the block * * @generated from protobuf field: uint64 index = 8 */ index: bigint; /** * removed is true if this log was reverted due to a chain * reorganisation. You must pay attention to this field if you receive logs * through a filter query. * * @generated from protobuf field: bool removed = 9 */ removed: boolean; } /** * @generated MessageType for protobuf message injective.evm.v1.Log */ declare const Log = new Log$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/evm/v1/chain_config_pb.d.ts /** * ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int * values instead of *big.Int. * * @generated from protobuf message injective.evm.v1.ChainConfig */ interface ChainConfig { /** * homestead_block switch (nil no fork, 0 = already homestead) * * @generated from protobuf field: string homestead_block = 1 */ homesteadBlock: string; /** * dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) * * @generated from protobuf field: string dao_fork_block = 2 */ daoForkBlock: string; /** * dao_fork_support defines whether the nodes supports or opposes the DAO * hard-fork * * @generated from protobuf field: bool dao_fork_support = 3 */ daoForkSupport: boolean; /** * eip150_block: EIP150 implements the Gas price changes * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork) * * @generated from protobuf field: string eip150_block = 4 */ eip150Block: string; /** * eip150_hash: EIP150 HF hash (needed for header only clients as only gas * pricing changed) * * @generated from protobuf field: string eip150_hash = 5 */ eip150Hash: string; /** * eip155_block: EIP155Block HF block * * @generated from protobuf field: string eip155_block = 6 */ eip155Block: string; /** * eip158_block: EIP158 HF block * * @generated from protobuf field: string eip158_block = 7 */ eip158Block: string; /** * byzantium_block: Byzantium switch block (nil no fork, 0 = already on * byzantium) * * @generated from protobuf field: string byzantium_block = 8 */ byzantiumBlock: string; /** * constantinople_block: Constantinople switch block (nil no fork, 0 = already * activated) * * @generated from protobuf field: string constantinople_block = 9 */ constantinopleBlock: string; /** * petersburg_block: Petersburg switch block (nil same as Constantinople) * * @generated from protobuf field: string petersburg_block = 10 */ petersburgBlock: string; /** * istanbul_block: Istanbul switch block (nil no fork, 0 = already on * istanbul) * * @generated from protobuf field: string istanbul_block = 11 */ istanbulBlock: string; /** * muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = * already activated) * * @generated from protobuf field: string muir_glacier_block = 12 */ muirGlacierBlock: string; /** * berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) * * @generated from protobuf field: string berlin_block = 13 */ berlinBlock: string; /** * london_block: London switch block (nil = no fork, 0 = already on london) * * @generated from protobuf field: string london_block = 17 */ londonBlock: string; /** * arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = * already activated) * * @generated from protobuf field: string arrow_glacier_block = 18 */ arrowGlacierBlock: string; /** * gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = * already activated) * * @generated from protobuf field: string gray_glacier_block = 20 */ grayGlacierBlock: string; /** * merge_netsplit_block: Virtual fork after The Merge to use as a network * splitter * * @generated from protobuf field: string merge_netsplit_block = 21 */ mergeNetsplitBlock: string; /** * shanghai switch time (nil = no fork, 0 = already on shanghai) * * @generated from protobuf field: string shanghai_time = 22 */ shanghaiTime: string; /** * cancun switch time (nil = no fork, 0 = already on cancun) * * @generated from protobuf field: string cancun_time = 23 */ cancunTime: string; /** * prague switch time (nil = no fork, 0 = already on prague) * * @generated from protobuf field: string prague_time = 24 */ pragueTime: string; /** * eip155_chain_id: identifies the chain and is used for replay protection * * @generated from protobuf field: string eip155_chain_id = 25 */ eip155ChainId: string; /** * eip7840: per-fork schedule of max and target blob counts in client * configuration files * * @generated from protobuf field: injective.evm.v1.BlobScheduleConfig blob_schedule_config = 26 */ blobScheduleConfig?: BlobScheduleConfig; } /** * @generated from protobuf message injective.evm.v1.BlobScheduleConfig */ interface BlobScheduleConfig { /** * @generated from protobuf field: injective.evm.v1.BlobConfig cancun = 1 */ cancun?: BlobConfig; /** * @generated from protobuf field: injective.evm.v1.BlobConfig prague = 2 */ prague?: BlobConfig; /** * @generated from protobuf field: injective.evm.v1.BlobConfig osaka = 3 */ osaka?: BlobConfig; /** * @generated from protobuf field: injective.evm.v1.BlobConfig verkle = 4 */ verkle?: BlobConfig; } /** * @generated from protobuf message injective.evm.v1.BlobConfig */ interface BlobConfig { /** * @generated from protobuf field: uint64 target = 1 */ target: bigint; /** * @generated from protobuf field: uint64 max = 2 */ max: bigint; /** * @generated from protobuf field: uint64 base_fee_update_fraction = 3 */ baseFeeUpdateFraction: bigint; } /** * @generated MessageType for protobuf message injective.evm.v1.ChainConfig */ declare const ChainConfig = new ChainConfig$Type(); /** * @generated MessageType for protobuf message injective.evm.v1.BlobScheduleConfig */ declare const BlobScheduleConfig = new BlobScheduleConfig$Type(); /** * @generated MessageType for protobuf message injective.evm.v1.BlobConfig */ declare const BlobConfig = new BlobConfig$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/evm/v1/params_pb.d.ts /** * Params defines the EVM module parameters * * @generated from protobuf message injective.evm.v1.Params */ interface Params$12 { /** * evm_denom represents the token denomination used to run the EVM state * transitions. * * @generated from protobuf field: string evm_denom = 1 */ evmDenom: string; /** * enable_create toggles state transitions that use the vm.Create function * * @generated from protobuf field: bool enable_create = 2 */ enableCreate: boolean; /** * enable_call toggles state transitions that use the vm.Call function * * @generated from protobuf field: bool enable_call = 3 */ enableCall: boolean; /** * extra_eips defines the additional EIPs for the vm.Config * * @generated from protobuf field: repeated int64 extra_eips = 4 */ extraEips: bigint[]; /** * chain_config defines the EVM chain configuration parameters * * @generated from protobuf field: injective.evm.v1.ChainConfig chain_config = 5 */ chainConfig?: ChainConfig; /** * allow_unprotected_txs defines if replay-protected (i.e non EIP155 * signed) transactions can be executed on the state machine. * * @generated from protobuf field: bool allow_unprotected_txs = 6 */ allowUnprotectedTxs: boolean; /** * list of ETH addresses that are allowed to deploy contracts. Only relevant * if permissioned is true. * * @generated from protobuf field: repeated string authorized_deployers = 7 */ authorizedDeployers: string[]; /** * make contract deployment permissioned, such that only accounts listed in * authorized_deployers are allowed to deploy contracts. * * @generated from protobuf field: bool permissioned = 8 */ permissioned: boolean; } /** * @generated MessageType for protobuf message injective.evm.v1.Params */ declare const Params$12 = new Params$Type(); //#endregion //#region src/client/chain/types/evm.d.ts interface EvmLog { address: string; topics: string[]; data: Uint8Array; blockNumber: string; txHash: string; txIndex: string; blockHash: string; index: string; removed: boolean; } interface EvmBlobConfig { target: string; max: string; baseFeeUpdateFraction: string; } interface EvmBlobScheduleConfig { cancun?: EvmBlobConfig; prague?: EvmBlobConfig; osaka?: EvmBlobConfig; verkle?: EvmBlobConfig; } interface EvmChainConfig { homesteadBlock: string; daoForkBlock: string; daoForkSupport: boolean; eip150Block: string; eip150Hash: string; eip155Block: string; eip158Block: string; byzantiumBlock: string; constantinopleBlock: string; petersburgBlock: string; istanbulBlock: string; muirGlacierBlock: string; berlinBlock: string; londonBlock: string; arrowGlacierBlock: string; grayGlacierBlock: string; mergeNetsplitBlock: string; shanghaiTime: string; cancunTime: string; pragueTime: string; eip155ChainId: string; blobScheduleConfig?: EvmBlobScheduleConfig; } interface EvmParams { evmDenom: string; enableCreate: boolean; enableCall: boolean; extraEips: string[]; chainConfig?: EvmChainConfig; allowUnprotectedTxs: boolean; authorizedDeployers: string[]; permissioned: boolean; } type GrpcEvmLog = Log; type GrpcEvmParams = Params$12; type GrpcEvmChainConfig = ChainConfig; type GrpcEvmBlobScheduleConfig = BlobScheduleConfig; type GrpcEvmBlobConfig = BlobConfig; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/auth/v1beta1/auth_pb.d.ts /** * BaseAccount defines a base account type. It contains all the necessary fields * for basic account functionality. Any custom account type should extend this * type for additional functionality (e.g. vesting). * * @generated from protobuf message cosmos.auth.v1beta1.BaseAccount */ interface BaseAccount$1 { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: google.protobuf.Any pub_key = 2 */ pubKey?: Any; /** * @generated from protobuf field: uint64 account_number = 3 */ accountNumber: bigint; /** * @generated from protobuf field: uint64 sequence = 4 */ sequence: bigint; } /** * Params defines the parameters for the auth module. * * @generated from protobuf message cosmos.auth.v1beta1.Params */ interface Params$11 { /** * @generated from protobuf field: uint64 max_memo_characters = 1 */ maxMemoCharacters: bigint; /** * @generated from protobuf field: uint64 tx_sig_limit = 2 */ txSigLimit: bigint; /** * @generated from protobuf field: uint64 tx_size_cost_per_byte = 3 */ txSizeCostPerByte: bigint; /** * @generated from protobuf field: uint64 sig_verify_cost_ed25519 = 4 */ sigVerifyCostEd25519: bigint; /** * @generated from protobuf field: uint64 sig_verify_cost_secp256k1 = 5 */ sigVerifyCostSecp256K1: bigint; } /** * @generated MessageType for protobuf message cosmos.auth.v1beta1.BaseAccount */ declare const BaseAccount$1 = new BaseAccount$Type(); /** * @generated MessageType for protobuf message cosmos.auth.v1beta1.Params */ declare const Params$11 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/account_pb.d.ts /** * EthAccount implements the authtypes.AccountI interface and embeds an * authtypes.BaseAccount type. It is compatible with the auth AccountKeeper. * * @generated from protobuf message injective.types.v1beta1.EthAccount */ interface EthAccount$1 { /** * @generated from protobuf field: cosmos.auth.v1beta1.BaseAccount base_account = 1 */ baseAccount?: BaseAccount$1; /** * @generated from protobuf field: bytes code_hash = 2 */ codeHash: Uint8Array; } /** * @generated MessageType for protobuf message injective.types.v1beta1.EthAccount */ declare const EthAccount$1 = new EthAccount$Type(); //#endregion //#region src/client/chain/types/auth.d.ts interface AuthModuleParams { maxMemoCharacters: number; txSigLimit: number; txSizeCostPerByte: number; sigVerifyCostEd25519: number; sigVerifyCostSecp256k1: number; } interface PubKey$1 { key: string; typeUrl: string; } interface AuthBaseAccount { address: string; pubKey?: PubKey$1; accountNumber: number; sequence: number; } interface Account { codeHash: string; baseAccount: AuthBaseAccount; } type EthAccount = EthAccount$1; //#endregion //#region src/client/chain/types/bank.d.ts interface BankModuleParams { sendEnabledList: Array; defaultSendEnabled: boolean; } interface TotalSupply extends Array {} type GrpcSupply = Supply; type GrpcBankParams = Params$10; type SendEnabled = SendEnabled$1; type Metadata = Metadata$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/mint/v1beta1/mint_pb.d.ts /** * Params defines the parameters for the x/mint module. * * @generated from protobuf message cosmos.mint.v1beta1.Params */ interface Params$9 { /** * type of coin to mint * * @generated from protobuf field: string mint_denom = 1 */ mintDenom: string; /** * maximum annual change in inflation rate * * @generated from protobuf field: string inflation_rate_change = 2 */ inflationRateChange: string; /** * maximum inflation rate * * @generated from protobuf field: string inflation_max = 3 */ inflationMax: string; /** * minimum inflation rate * * @generated from protobuf field: string inflation_min = 4 */ inflationMin: string; /** * goal of percent bonded atoms * * @generated from protobuf field: string goal_bonded = 5 */ goalBonded: string; /** * expected blocks per year * * @generated from protobuf field: uint64 blocks_per_year = 6 */ blocksPerYear: bigint; } /** * @generated MessageType for protobuf message cosmos.mint.v1beta1.Params */ declare const Params$9 = new Params$Type(); //#endregion //#region src/client/chain/types/mint.d.ts type GrpcMintParams = Params$9; interface MinModuleParams extends GrpcMintParams {} //#endregion //#region src/client/chain/types/insurance.d.ts interface InsuranceModuleParams { defaultRedemptionNoticePeriodDuration: number; } interface InsuranceFund { depositDenom: string; insurancePoolTokenDenom: string; redemptionNoticePeriodDuration?: number; balance: string; totalShare: string; marketId: string; marketTicker: string; oracleBase: string; oracleQuote: string; oracleType: OracleType; expiry: number; } type GrpcInsuranceParams = Params; type GrpcInsuranceFund = InsuranceFund$1; type GrpcRedemptionSchedule = RedemptionSchedule$1; declare const OracleTypeMap: typeof OracleType; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/authz_pb.d.ts /** * spot authz messages * * @generated from protobuf message injective.exchange.v1beta1.CreateSpotLimitOrderAuthz */ interface CreateSpotLimitOrderAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.CreateSpotMarketOrderAuthz */ interface CreateSpotMarketOrderAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz */ interface BatchCreateSpotLimitOrdersAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.CancelSpotOrderAuthz */ interface CancelSpotOrderAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz */ interface BatchCancelSpotOrdersAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * derivative authz messages * * @generated from protobuf message injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz */ interface CreateDerivativeLimitOrderAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz */ interface CreateDerivativeMarketOrderAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz */ interface BatchCreateDerivativeLimitOrdersAuthz$1 { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the market IDs * * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.CancelDerivativeOrderAuthz */ interface CancelDerivativeOrderAuthz$1 { /** * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated from protobuf message injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz */ interface BatchCancelDerivativeOrdersAuthz$1 { /** * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * @generated from protobuf field: repeated string market_ids = 2 */ marketIds: string[]; } /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CreateSpotLimitOrderAuthz */ declare const CreateSpotLimitOrderAuthz$1 = new CreateSpotLimitOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CreateSpotMarketOrderAuthz */ declare const CreateSpotMarketOrderAuthz$1 = new CreateSpotMarketOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz */ declare const BatchCreateSpotLimitOrdersAuthz$1 = new BatchCreateSpotLimitOrdersAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CancelSpotOrderAuthz */ declare const CancelSpotOrderAuthz$1 = new CancelSpotOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz */ declare const BatchCancelSpotOrdersAuthz$1 = new BatchCancelSpotOrdersAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz */ declare const CreateDerivativeLimitOrderAuthz$1 = new CreateDerivativeLimitOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz */ declare const CreateDerivativeMarketOrderAuthz$1 = new CreateDerivativeMarketOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz */ declare const BatchCreateDerivativeLimitOrdersAuthz$1 = new BatchCreateDerivativeLimitOrdersAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.CancelDerivativeOrderAuthz */ declare const CancelDerivativeOrderAuthz$1 = new CancelDerivativeOrderAuthz$Type(); /** * @generated MessageType for protobuf message injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz */ declare const BatchCancelDerivativeOrdersAuthz$1 = new BatchCancelDerivativeOrdersAuthz$Type(); //#endregion //#region src/client/chain/types/authZ.d.ts type Grant$1 = Grant; type GrantAuthorization$2 = GrantAuthorization; type GenericAuthorization$1 = GenericAuthorization$2; type CreateSpotLimitOrderAuthz = CreateSpotLimitOrderAuthz$1; type CreateSpotMarketOrderAuthz = CreateSpotMarketOrderAuthz$1; type BatchCreateSpotLimitOrdersAuthz = BatchCreateSpotLimitOrdersAuthz$1; type CancelSpotOrderAuthz = CancelSpotOrderAuthz$1; type BatchCancelSpotOrdersAuthz = BatchCancelSpotOrdersAuthz$1; type CreateDerivativeLimitOrderAuthz = CreateDerivativeLimitOrderAuthz$1; type CreateDerivativeMarketOrderAuthz = CreateDerivativeMarketOrderAuthz$1; type BatchCreateDerivativeLimitOrdersAuthz = BatchCreateDerivativeLimitOrdersAuthz$1; type CancelDerivativeOrderAuthz = CancelDerivativeOrderAuthz$1; type BatchCancelDerivativeOrdersAuthz = BatchCancelDerivativeOrdersAuthz$1; interface GrantWithDecodedAuthorization extends Omit { authorization: GenericAuthorization$1 | undefined; /** Todo: add more authorizations */ authorizationType: string; expiration: number; } interface GrantAuthorizationWithDecodedAuthorization extends Omit { authorization: GenericAuthorization$1 | undefined; /** Todo: add more authorizations */ authorizationType: string; expiration: number; } //#endregion //#region src/client/chain/types/peggy.d.ts type GrpcPeggyParams = { peggyId: string; contractSourceHash: string; bridgeEthereumAddress: string; bridgeChainId: string; signedValsetsWindow: string; signedBatchesWindow: string; signedClaimsWindow: string; targetBatchTimeout: string; averageBlockTime: string; averageEthereumBlockTime: string; slashFractionValset: Uint8Array; slashFractionBatch: Uint8Array; slashFractionClaim: Uint8Array; slashFractionConflictingClaim: Uint8Array; unbondSlashingValsetsWindow: string; slashFractionBadEthSignature: Uint8Array; cosmosCoinDenom: string; cosmosCoinErc20Contract: string; claimSlashingEnabled: boolean; bridgeContractStartHeight: string; valsetReward: Coin | undefined; }; interface PeggyModuleParams extends GrpcPeggyParams { valsetReward: Coin; } //#endregion //#region src/client/chain/types/erc20.d.ts interface TokenPair { /** bank denom */ bankDenom: string; /** address of erc20 smart contract that is backed by */ erc20Address: string; } interface Params$6 { denomCreationFee?: Coin; } type GrpcParams = Params$7; type GrpcTokenPair = TokenPair$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/txfees/v1beta1/txfees_pb.d.ts /** * @generated from protobuf message injective.txfees.v1beta1.Params */ interface Params$16 { /** * @generated from protobuf field: uint64 max_gas_wanted_per_tx = 1 */ maxGasWantedPerTx: bigint; /** * @generated from protobuf field: uint64 high_gas_tx_threshold = 2 */ highGasTxThreshold: bigint; /** * @generated from protobuf field: string min_gas_price_for_high_gas_tx = 3 */ minGasPriceForHighGasTx: string; /** * @generated from protobuf field: bool mempool1559_enabled = 4 */ mempool1559Enabled: boolean; /** * @generated from protobuf field: string min_gas_price = 5 */ minGasPrice: string; /** * @generated from protobuf field: string default_base_fee_multiplier = 6 */ defaultBaseFeeMultiplier: string; /** * @generated from protobuf field: string max_base_fee_multiplier = 7 */ maxBaseFeeMultiplier: string; /** * @generated from protobuf field: int64 reset_interval = 8 */ resetInterval: bigint; /** * @generated from protobuf field: string max_block_change_rate = 9 */ maxBlockChangeRate: string; /** * @generated from protobuf field: string target_block_space_percent_rate = 10 */ targetBlockSpacePercentRate: string; /** * @generated from protobuf field: string recheck_fee_low_base_fee = 11 */ recheckFeeLowBaseFee: string; /** * @generated from protobuf field: string recheck_fee_high_base_fee = 12 */ recheckFeeHighBaseFee: string; /** * @generated from protobuf field: string recheck_fee_base_fee_threshold_multiplier = 13 */ recheckFeeBaseFeeThresholdMultiplier: string; } /** * @generated MessageType for protobuf message injective.txfees.v1beta1.Params */ declare const Params$16 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/txfees/v1beta1/query_pb.d.ts /** * @generated from protobuf message injective.txfees.v1beta1.EipBaseFee */ interface EipBaseFee { /** * The current chain gas price * * @generated from protobuf field: string base_fee = 1 */ baseFee: string; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message injective.txfees.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$11 { /** * params defines the parameters of the module. * * @generated from protobuf field: injective.txfees.v1beta1.Params params = 1 */ params?: Params$16; } /** * @generated from protobuf message injective.txfees.v1beta1.QueryEipBaseFeeResponse */ interface QueryEipBaseFeeResponse { /** * @generated from protobuf field: injective.txfees.v1beta1.EipBaseFee base_fee = 1 */ baseFee?: EipBaseFee; } /** * @generated MessageType for protobuf message injective.txfees.v1beta1.EipBaseFee */ declare const EipBaseFee = new EipBaseFee$Type(); /** * @generated MessageType for protobuf message injective.txfees.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$11 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.txfees.v1beta1.QueryEipBaseFeeResponse */ declare const QueryEipBaseFeeResponse = new QueryEipBaseFeeResponse$Type(); //#endregion //#region src/client/chain/types/txFees.d.ts interface TxFeesModuleStateParams { maxGasWantedPerTx: string; highGasTxThreshold: string; minGasPriceForHighGasTx: string; mempool1559Enabled: boolean; minGasPrice: string; defaultBaseFeeMultiplier: string; maxBaseFeeMultiplier: string; resetInterval: string; maxBlockChangeRate: string; targetBlockSpacePercentRate: string; recheckFeeLowBaseFee: string; recheckFeeHighBaseFee: string; recheckFeeBaseFeeThresholdMultiplier: string; } interface TxFeesEipBaseFee { baseFee?: string; } type GrpcTxFeesParams = Params$16; type GrpcTxFeesEipBaseFee = EipBaseFee; //#endregion //#region src/client/chain/types/oracle.d.ts type GrpcOracleParams = Params$18; interface OracleModuleParams extends GrpcOracleParams {} //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/permissions_pb.d.ts /** * Namespace defines a permissions namespace * * @generated from protobuf message injective.permissions.v1beta1.Namespace */ interface Namespace { /** * The tokenfactory denom to which this namespace applies to * * @generated from protobuf field: string denom = 1 */ denom: string; /** * The address of cosmwasm contract to apply code-based restrictions * * @generated from protobuf field: string wasm_hook = 2 */ wasmHook: string; /** * permissions for each role * * @generated from protobuf field: repeated injective.permissions.v1beta1.Role role_permissions = 3 */ rolePermissions: Role[]; /** * roles for each actor * * @generated from protobuf field: repeated injective.permissions.v1beta1.ActorRoles actor_roles = 4 */ actorRoles: ActorRoles[]; /** * managers for each role * * @generated from protobuf field: repeated injective.permissions.v1beta1.RoleManager role_managers = 5 */ roleManagers: RoleManager[]; /** * status for each policy * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 6 */ policyStatuses: PolicyStatus[]; /** * capabilities for each manager for each policy * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 7 */ policyManagerCapabilities: PolicyManagerCapability[]; /** * The address of the EVM contract to map code-based permissions: must * implement isTransferRestricted(address from, address to, Cosmos.Coin * amount) returns (bool) * * @generated from protobuf field: string evm_hook = 8 */ evmHook: string; /** * The address of the EVM contract to get called after every successful * transfer postTransfer(address from, address to, Cosmos.Coin amount) * * @generated from protobuf field: string evm_post_hook = 9 */ evmPostHook: string; } /** * AddressRoles defines roles for an actor * * @generated from protobuf message injective.permissions.v1beta1.ActorRoles */ interface ActorRoles { /** * The actor name * * @generated from protobuf field: string actor = 1 */ actor: string; /** * The roles for the actor * * @generated from protobuf field: repeated string roles = 2 */ roles: string[]; } /** * RoleActors defines actors for a role * * @generated from protobuf message injective.permissions.v1beta1.RoleActors */ interface RoleActors { /** * The role name * * @generated from protobuf field: string role = 1 */ role: string; /** * List of actor names associated with the role * * @generated from protobuf field: repeated string actors = 2 */ actors: string[]; } /** * RoleManager defines roles for a manager address * * @generated from protobuf message injective.permissions.v1beta1.RoleManager */ interface RoleManager { /** * The manager name * * @generated from protobuf field: string manager = 1 */ manager: string; /** * List of roles associated with the manager * * @generated from protobuf field: repeated string roles = 2 */ roles: string[]; } /** * PolicyStatus defines the status of a policy * * @generated from protobuf message injective.permissions.v1beta1.PolicyStatus */ interface PolicyStatus { /** * The action code number * * @generated from protobuf field: injective.permissions.v1beta1.Action action = 1 */ action: Action; /** * Whether the policy is disabled * * @generated from protobuf field: bool is_disabled = 2 */ isDisabled: boolean; /** * Whether the policy is sealed * * @generated from protobuf field: bool is_sealed = 3 */ isSealed: boolean; } /** * Role is only used for storage * * @generated from protobuf message injective.permissions.v1beta1.Role */ interface Role { /** * The role name * * @generated from protobuf field: string name = 1 */ name: string; /** * The role ID * * @generated from protobuf field: uint32 role_id = 2 */ roleId: number; /** * Integer representing the bitwise combination of all actions assigned to the * role * * @generated from protobuf field: uint32 permissions = 3 */ permissions: number; } /** * PolicyManagerCapability defines the capabilities of a manager for a policy * * @generated from protobuf message injective.permissions.v1beta1.PolicyManagerCapability */ interface PolicyManagerCapability { /** * The manager name * * @generated from protobuf field: string manager = 1 */ manager: string; /** * The action code number * * @generated from protobuf field: injective.permissions.v1beta1.Action action = 2 */ action: Action; /** * Whether the manager can disable the policy * * @generated from protobuf field: bool can_disable = 3 */ canDisable: boolean; /** * Whether the manager can seal the policy * * @generated from protobuf field: bool can_seal = 4 */ canSeal: boolean; } /** * used in storage * * @generated from protobuf message injective.permissions.v1beta1.RoleIDs */ interface RoleIDs { /** * @generated from protobuf field: repeated uint32 role_ids = 1 */ roleIds: number[]; } /** * each Action enum value should be a power of two * * @generated from protobuf enum injective.permissions.v1beta1.Action */ declare enum Action { /** * 0 is reserved for ACTION_UNSPECIFIED * * @generated from protobuf enum value: UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * 1 is reserved for MINT * * @generated from protobuf enum value: MINT = 1; */ MINT = 1, /** * 2 is reserved for RECEIVE * * @generated from protobuf enum value: RECEIVE = 2; */ RECEIVE = 2, /** * 4 is reserved for BURN * * @generated from protobuf enum value: BURN = 4; */ BURN = 4, /** * 8 is reserved for SEND * * @generated from protobuf enum value: SEND = 8; */ SEND = 8, /** * 16 is reserved for SUPER_BURN * * @generated from protobuf enum value: SUPER_BURN = 16; */ SUPER_BURN = 16, /** * 2^27 is reserved for MODIFY_POLICY_MANAGERS * * 2^27 or 134217728 * * @generated from protobuf enum value: MODIFY_POLICY_MANAGERS = 134217728; */ MODIFY_POLICY_MANAGERS = 134217728, /** * 2^28 is reserved for MODIFY_CONTRACT_HOOK * * 2^28 or 268435456 * * @generated from protobuf enum value: MODIFY_CONTRACT_HOOK = 268435456; */ MODIFY_CONTRACT_HOOK = 268435456, /** * 2^29 is reserved for MODIFY_ROLE_PERMISSIONS * * 2^29 or 536870912 * * @generated from protobuf enum value: MODIFY_ROLE_PERMISSIONS = 536870912; */ MODIFY_ROLE_PERMISSIONS = 536870912, /** * 2^30 is reserved for MODIFY_ROLE_MANAGERS * * 2^30 or 1073741824 * * @generated from protobuf enum value: MODIFY_ROLE_MANAGERS = 1073741824; */ MODIFY_ROLE_MANAGERS = 1073741824, } /** * @generated MessageType for protobuf message injective.permissions.v1beta1.Namespace */ declare const Namespace = new Namespace$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.ActorRoles */ declare const ActorRoles = new ActorRoles$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.RoleActors */ declare const RoleActors = new RoleActors$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.RoleManager */ declare const RoleManager = new RoleManager$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.PolicyStatus */ declare const PolicyStatus = new PolicyStatus$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.Role */ declare const Role = new Role$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.PolicyManagerCapability */ declare const PolicyManagerCapability = new PolicyManagerCapability$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.RoleIDs */ declare const RoleIDs = new RoleIDs$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/params_pb.d.ts /** * EnforcedRestrictionsContract defines an EVM contract with its pause, * blacklist and unblacklist event signatures * * @generated from protobuf message injective.permissions.v1beta1.EnforcedRestrictionsEVMContract */ interface EnforcedRestrictionsEVMContract { /** * EVM address of the contract * * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * Pause event signature for the contract (e.g. "Pause()") * * @generated from protobuf field: string pause_event_signature = 2 */ pauseEventSignature: string; /** * Unpause event signature for the contract (e.g. "Unpause()") * * @generated from protobuf field: string unpause_event_signature = 3 */ unpauseEventSignature: string; /** * Blacklist event signature for the contract (e.g. Blacklisted(address)") * * @generated from protobuf field: string blacklist_event_signature = 4 */ blacklistEventSignature: string; /** * UnBlacklist event signature for the contract (e.g. * "UnBlacklisted(address)") * * @generated from protobuf field: string unblacklist_event_signature = 5 */ unblacklistEventSignature: string; } /** * Params defines the parameters for the permissions module. * * @generated from protobuf message injective.permissions.v1beta1.Params */ interface Params$3 { /** * Max amount of gas allowed for contract hook queries * * @generated from protobuf field: uint64 contract_hook_max_gas = 1 */ contractHookMaxGas: bigint; /** * DEPRECATED in favor of enforced_restrictions_evm_contracts, but left * for compatibility and upgrade purposes * * EVM addresses of contracts that will not bypass module-to-module transfers * * @generated from protobuf field: repeated string deprecated_enforced_restrictions_contracts = 2 */ deprecatedEnforcedRestrictionsContracts: string[]; /** * EVM Contracts that module will be listening to sync permissions stored * inside namespace on every update inside smart contract state * * @generated from protobuf field: repeated injective.permissions.v1beta1.EnforcedRestrictionsEVMContract enforced_restrictions_evm_contracts = 3 */ enforcedRestrictionsEvmContracts: EnforcedRestrictionsEVMContract[]; } /** * @generated MessageType for protobuf message injective.permissions.v1beta1.EnforcedRestrictionsEVMContract */ declare const EnforcedRestrictionsEVMContract = new EnforcedRestrictionsEVMContract$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.Params */ declare const Params$3 = new Params$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/common/vouchers/v1/vouchers_pb.d.ts /** * AddressVoucher pairs a bech32 address with its outstanding voucher coin. * * @generated from protobuf message injective.common.vouchers.v1.AddressVoucher */ interface AddressVoucher { /** * The bech32 address of the voucher holder. * * @generated from protobuf field: string address = 1 */ address: string; /** * The outstanding voucher coin. * * @generated from protobuf field: cosmos.base.v1beta1.Coin voucher = 2 */ voucher?: Coin$1; } /** * @generated MessageType for protobuf message injective.common.vouchers.v1.AddressVoucher */ declare const AddressVoucher = new AddressVoucher$Type(); //#endregion //#region src/client/chain/types/permissions.d.ts interface PermissionParams { wasmHookQueryMaxGas: string; } interface PermissionRole { name: string; roleId: number; permissions: number; } interface PermissionActorRoles { actor: string; roles: string[]; } interface PermissionRoleManager { manager: string; roles: string[]; } interface PermissionPolicyStatus { action: Action; isDisabled: boolean; isSealed: boolean; } interface PermissionPolicyManagerCapability { manager: string; action: Action; canDisable: boolean; canSeal: boolean; } interface PermissionRoleActors { role: string; actors: string[]; } interface PermissionRoleIDs { roleIds: number[]; } interface PermissionAddressVoucher { address: string; voucher?: Coin; } interface PermissionNamespace { denom: string; evmHook: string; wasmHook: string; rolePermissions: PermissionRole[]; actorRoles: PermissionActorRoles[]; roleManagers: PermissionRoleManager[]; policyStatuses: PermissionPolicyStatus[]; policyManagerCapabilities: PermissionPolicyManagerCapability[]; } interface PermissionsModuleParams { wasmHookQueryMaxGas: string; } interface PermissionAddressRoles { address: string; roles: string[]; } interface PermissionRoleIDs { roleIds: number[]; } interface PermissionVoucher { coins: Coin[]; } interface PermissionAddressVoucher { address: string; voucher?: Coin; } interface PermissionGenesisState { params?: PermissionParams; namespaces: PermissionNamespace[]; vouchers: PermissionAddressVoucher[]; } type GrpcPermissionNamespace = Namespace; type GrpcPermissionRoleIDs = RoleIDs; type GrpcPermissionsNamespace = Namespace; type GrpcPermissionRoleActors = RoleActors; type GrpcPermissionActorRoles = ActorRoles; type GrpcPermissionRoleManager = RoleManager; type GrpcPermissionPolicyStatus = PolicyStatus; type GrpcPermissionAddressVoucher = AddressVoucher; type GrpcPermissionPolicyStatusManagerCapability = PolicyManagerCapability; type GrpcPermissionsParams = Params$3; type GrpcPermissionRole = Role; declare const PermissionActionMap: typeof Action; //#endregion //#region src/client/chain/types/auction.d.ts interface AuctionParams { auctionPeriod: number; minNextBidIncrementRate: string; injBasketMaxCap: string; biddersWhitelist: string[]; } interface AuctionBid { bidder: string; amount?: Coin; } interface AuctionLastAuctionResult { winner: string; amount?: Coin; round: string; } interface AuctionEventBid { bidder: string; amount?: Coin; round: string; } interface AuctionEventAuctionResult { winner: string; amount?: Coin; round: string; } interface AuctionEventAuctionStart { round: string; endingTimestamp: string; newBasket: Coin[]; } interface AuctionCurrentBasket { amountList: Coin[]; auctionRound: number; auctionClosingTime: number; highestBidder: string; highestBidAmount: string; } interface AuctionModuleParams { auctionPeriod: number; minNextBidIncrementRate: string; } interface AuctionModuleStateParams { auctionPeriod: number; minNextBidIncrementRate: string; injBasketMaxCap: string; biddersWhitelist: string[]; } interface AuctionModuleState { params?: AuctionModuleStateParams; auctionRound: number; highestBid?: AuctionBid; auctionEndingTimestamp: number; lastAuctionResult?: AuctionLastAuctionResult; } interface AuctionModuleStateResponse { params?: AuctionParams; auctionRound: string; highestBid?: AuctionBid; auctionEndingTimestamp: string; lastAuctionResult?: AuctionLastAuctionResult; } type GrpcAuctionParams = Params$5; type GrpcAuctionBid = Bid; type GrpcAuctionLastAuctionResult = LastAuctionResult; type GrpcAuctionEventBid = EventBid; type GrpcAuctionEventAuctionResult = EventAuctionResult; type GrpcAuctionEventAuctionStart = EventAuctionStart; //#endregion //#region src/client/chain/types/auth-rest.d.ts interface AccountsResponse { accounts: { '@type': string; code_hash: string; base_account: { address: string; account_number: string; sequence: string; pub_key: { '@type': string; key: string; }; }; }[]; pagination: { nextKey?: string; total: string; }; } interface AccountResponse { account: { '@type': string; code_hash: string; base_account: { address: string; account_number: string; sequence: string; pub_key: { '@type': string; key: string; }; }; }; } interface CosmosAccountRestResponse { account: { address: string; account_number: string; sequence: string; pub_key: { '@type': string; key: string; }; }; } interface BaseAccountRestResponse { address: string; account_number: string; sequence: string; pub_key: { '@type': string; key: string; }; } //#endregion //#region src/client/chain/types/bank-rest.d.ts interface DenomBalance { denom: string; amount: string; } interface BalancesResponse { balances: DenomBalance[]; } interface DenomOwnersResponse { denom_owners: { address: string; balance: { denom: string; amount: string; }; }[]; } //#endregion //#region src/client/chain/types/distribution.d.ts interface DistributionModuleParams { communityTax: string; baseProposerReward: string; bonusProposerReward: string; withdrawAddrEnabled: boolean; } interface ValidatorRewards { rewards: Coin[]; validatorAddress: string; } type GrpcDelegationDelegatorReward = DelegationDelegatorReward; type GrpcDistributionParams = Params$2; type GrpcDecCoin = DecCoin; //#endregion //#region src/client/chain/types/tokenfactory.d.ts interface TokenFactoryModuleParams { denomCreationFee: Coin[]; } interface TokenFactoryModuleState { denomCreationFee: Coin[]; factoryDenoms: FactoryDenomWithMetadata[]; } interface FactoryDenomWithMetadata { denom: string; authorityMetadata: AuthorityMetadata; } interface AuthorityMetadata { admin: string | undefined; } //#endregion //#region src/client/chain/types/tendermint-rest.d.ts interface BlockLatestRestResponse { block_id: { hash: string; part_set_header: { total: number; hash: string; }; }; block: { header: { version: { block: string; app: string; }; chain_id: string; height: string; time: Date; last_block_id: { hash: string; part_set_header: { total: 0; hash: string; }; }; last_commit_hash: string; data_hash: string; validators_hash: string; next_validators_hash: string; consensus_hash: string; app_hash: string; last_results_hash: string; evidence_hash: string; proposer_address: string; }; }; sdk_block: { header: { version: { block: string; app: string; }; chain_id: string; height: string; time: Date; last_block_id: { hash: string; part_set_header: { total: 0; hash: string; }; }; last_commit_hash: string; data_hash: string; validators_hash: string; next_validators_hash: string; consensus_hash: string; app_hash: string; last_results_hash: string; evidence_hash: string; proposer_address: string; }; }; } interface NodeInfoRestResponse { default_node_info: { protocol_version: { p2p: string; block: string; app: string; }; default_node_id: string; listen_addr: string; network: string; version: string; channels: string; moniker: string; other: { tx_index: string; rpc_address: string; }; }; application_version: { name: string; app_name: string; version: string; git_commit: string; build_tags: string; go_version: string; build_deps: [{ path: string; version: string; sum: string; }]; cosmos_sdk_version: string; }; } //#endregion //#region src/client/chain/types/index.d.ts interface RestApiResponse { data: T; } declare const ChainModule: { Gov: "chain-gov"; Ibc: "chain-ibc"; Evm: "chain-evm"; Auth: "chain-auth"; Bank: "chain-bank"; Mint: "chain-mint"; Wasm: "chain-wasm"; Authz: "chain-authz"; Peggy: "chain-peggy"; WasmX: "chain-wasmx"; Erc20: "chain-erc20"; Oracle: "chain-oracle"; TxFees: "chain-tx-fees"; Auction: "chain-auction"; Staking: "chain-staking"; Exchange: "chain-exchange"; Tendermint: "chain-tendermint"; InsuranceFund: "chain-insurance"; Permissions: "chain-permissions"; Distribution: "chain-distribution"; }; //#endregion //#region src/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.d.ts declare namespace MsgAdminUpdateBinaryOptionsMarket { interface Params { sender: string; marketId: string; settlementPrice: string; expirationTimestamp: string; settlementTimestamp: string; status: GrpcMarketStatus; } type Proto = MsgAdminUpdateBinaryOptionsMarket$2; } /** * @category Messages */ declare class MsgAdminUpdateBinaryOptionsMarket extends MsgBase { static fromJSON(params: MsgAdminUpdateBinaryOptionsMarket.Params): MsgAdminUpdateBinaryOptionsMarket; toProto(): MsgAdminUpdateBinaryOptionsMarket$2; toData(): { sender: string; marketId: string; settlementPrice: string; expirationTimestamp: bigint; settlementTimestamp: bigint; status: MarketStatus$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; settlement_price: string; expiration_timestamp: string; settlement_timestamp: string; status: MarketStatus$1; }; }; toWeb3Gw(): { sender: string; market_id: string; settlement_price: string; expiration_timestamp: string; settlement_timestamp: string; status: MarketStatus$1; '@type': string; }; toEip712(): { type: string; value: { settlement_price: string; sender: string; market_id: string; expiration_timestamp: string; settlement_timestamp: string; status: MarketStatus$1; }; }; toEip712V2(): { settlement_price: string; status: string; sender: string; market_id: string; expiration_timestamp: string; settlement_timestamp: string; '@type': string; }; toDirectSign(): { type: string; message: MsgAdminUpdateBinaryOptionsMarket$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.d.ts declare namespace MsgBatchCancelBinaryOptionsOrders { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask$1; cid?: string; }[]; } type Proto = MsgBatchCancelBinaryOptionsOrders$2; } /** * @category Messages */ declare class MsgBatchCancelBinaryOptionsOrders extends MsgBase { static fromJSON(params: MsgBatchCancelBinaryOptionsOrders.Params): MsgBatchCancelBinaryOptionsOrders; toProto(): MsgBatchCancelBinaryOptionsOrders$2; toData(): { sender: string; data: OrderData$1[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string | undefined; order_mask: OrderMask$1 | undefined; cid: string | undefined; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string | undefined; order_mask: OrderMask$1 | undefined; cid: string | undefined; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelBinaryOptionsOrders$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.d.ts declare namespace MsgCreateBinaryOptionsMarketOrder { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$2; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; } type Proto = MsgCreateBinaryOptionsMarketOrder$2; } /** * @category Messages */ declare class MsgCreateBinaryOptionsMarketOrder extends MsgBase { static fromJSON(params: MsgCreateBinaryOptionsMarketOrder.Params): MsgCreateBinaryOptionsMarketOrder; toProto(): MsgCreateBinaryOptionsMarketOrder$2; toData(): { sender: string; order?: DerivativeOrder$2; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$2; margin: string; trigger_price: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: { order_info: { price: string; quantity: string; subaccount_id: string; fee_recipient: string; cid: string; }; margin: string; trigger_price: string; market_id: string; order_type: OrderType$2; }; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateBinaryOptionsMarketOrder$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrderV2.d.ts declare namespace MsgCreateBinaryOptionsLimitOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateBinaryOptionsLimitOrder$1; } /** * @category Messages */ declare class MsgCreateBinaryOptionsLimitOrderV2 extends MsgBase { static fromJSON(params: MsgCreateBinaryOptionsLimitOrderV2.Params): MsgCreateBinaryOptionsLimitOrderV2; toProto(): MsgCreateBinaryOptionsLimitOrder$1; toData(): { sender: string; order?: DerivativeOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateBinaryOptionsLimitOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarketV2.d.ts declare namespace MsgAdminUpdateBinaryOptionsMarketV2 { interface Params { sender: string; marketId: string; settlementPrice: string; expirationTimestamp: string; settlementTimestamp: string; status: MarketStatus; } type Proto = MsgAdminUpdateBinaryOptionsMarket$1; } /** * @category Messages */ declare class MsgAdminUpdateBinaryOptionsMarketV2 extends MsgBase { static fromJSON(params: MsgAdminUpdateBinaryOptionsMarketV2.Params): MsgAdminUpdateBinaryOptionsMarketV2; toProto(): MsgAdminUpdateBinaryOptionsMarket$1; toData(): { sender: string; marketId: string; settlementPrice: string; expirationTimestamp: bigint; settlementTimestamp: bigint; status: MarketStatus; '@type': string; }; toAmino(): { type: string; value: { sender: string; market_id: string; settlement_price: string; expiration_timestamp: string; settlement_timestamp: string; status: MarketStatus; }; }; toWeb3Gw(): { sender: string; market_id: string; settlement_price: string; expiration_timestamp: string; settlement_timestamp: string; status: MarketStatus; '@type': string; }; toEip712(): never; toEip712V2(): { settlement_price: string; status: string; sender: string; market_id: string; expiration_timestamp: string; settlement_timestamp: string; '@type': string; }; toDirectSign(): { type: string; message: MsgAdminUpdateBinaryOptionsMarket$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrdersV2.d.ts declare namespace MsgBatchCancelBinaryOptionsOrdersV2 { interface Params { injectiveAddress: string; orders: { marketId: string; subaccountId: string; orderHash?: string; orderMask?: OrderMask; cid?: string; }[]; } type Proto = MsgBatchCancelBinaryOptionsOrders$1; } /** * @category Messages */ declare class MsgBatchCancelBinaryOptionsOrdersV2 extends MsgBase { static fromJSON(params: MsgBatchCancelBinaryOptionsOrdersV2.Params): MsgBatchCancelBinaryOptionsOrdersV2; toProto(): MsgBatchCancelBinaryOptionsOrders$1; toData(): { sender: string; data: OrderData[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; }; }; toWeb3Gw(): { sender: string; data: { market_id: string; subaccount_id: string; order_hash: string; order_mask: number; cid: string; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgBatchCancelBinaryOptionsOrders$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrderV2.d.ts declare namespace MsgCreateBinaryOptionsMarketOrderV2 { interface Params { marketId: string; subaccountId: string; injectiveAddress: string; orderType: OrderType$1; triggerPrice?: string; feeRecipient: string; price: string; margin: string; quantity: string; cid?: string; expirationBlock?: string; } type Proto = MsgCreateBinaryOptionsMarketOrder$1; } /** * @category Messages */ declare class MsgCreateBinaryOptionsMarketOrderV2 extends MsgBase { static fromJSON(params: MsgCreateBinaryOptionsMarketOrderV2.Params): MsgCreateBinaryOptionsMarketOrderV2; toProto(): MsgCreateBinaryOptionsMarketOrder$1; toData(): { sender: string; order?: DerivativeOrder$1; '@type': string; }; toAmino(): { type: string; value: { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; }; }; toWeb3Gw(): { sender: string; order: { market_id: string; order_info: { subaccount_id: string; fee_recipient: string; price: string; quantity: string; cid: string; }; order_type: OrderType$1; margin: string; trigger_price: string; expiration_block: string; }; '@type': string; }; toEip712V2(): { order: any; sender: string; '@type': string; }; toEip712(): { type: string; value: { order: any; sender: string; }; }; toDirectSign(): { type: string; message: MsgCreateBinaryOptionsMarketOrder$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgSetDelegationTransferReceiversV2.d.ts declare namespace MsgSetDelegationTransferReceiversV2 { interface Params { sender: string; receivers: string[]; } type Proto = MsgSetDelegationTransferReceivers; } /** * @deprecated Delegation transfer receiver support was removed. This message is kept for backward compatibility. * @category Messages */ declare class MsgSetDelegationTransferReceiversV2 extends MsgBase { static fromJSON(params: MsgSetDelegationTransferReceiversV2.Params): MsgSetDelegationTransferReceiversV2; toProto(): MsgSetDelegationTransferReceivers; toData(): { sender: string; receivers: string[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; receivers: string[]; }; }; toWeb3Gw(): { sender: string; receivers: string[]; '@type': string; }; toDirectSign(): { type: string; message: MsgSetDelegationTransferReceivers; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunchV2.d.ts declare namespace MsgInstantBinaryOptionsMarketLaunchV2 { interface Params { proposer: string; market: { ticker: string; admin: string; oracleSymbol: string; oracleProvider: string; oracleScaleFactor: number; oracleType: OracleType; quoteDenom: string; makerFeeRate: string; takerFeeRate: string; expirationTimestamp: number; settlementTimestamp: number; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; openNotionalCap?: OpenNotionalCap$2; }; } type Proto = MsgInstantBinaryOptionsMarketLaunch$1; } /** * @category Messages */ declare class MsgInstantBinaryOptionsMarketLaunchV2 extends MsgBase { static fromJSON(params: MsgInstantBinaryOptionsMarketLaunchV2.Params): MsgInstantBinaryOptionsMarketLaunchV2; toProto(): MsgInstantBinaryOptionsMarketLaunch$1; toData(): { sender: string; ticker: string; oracleSymbol: string; oracleProvider: string; oracleType: OracleType; oracleScaleFactor: number; makerFeeRate: string; takerFeeRate: string; expirationTimestamp: bigint; settlementTimestamp: bigint; admin: string; quoteDenom: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; openNotionalCap?: OpenNotionalCap$2; '@type': string; }; toAmino(): { type: string; value: { open_notional_cap?: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; } | undefined; sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_type: OracleType; oracle_scale_factor: number; maker_fee_rate: string; taker_fee_rate: string; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; }; }; toWeb3Gw(): { open_notional_cap?: { uncapped: {}; capped?: undefined; } | { capped: { value: string; }; uncapped?: undefined; } | undefined; sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_type: OracleType; oracle_scale_factor: number; maker_fee_rate: string; taker_fee_rate: string; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; '@type': string; }; toEip712(): never; toEip712V2(): { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; taker_fee_rate: string; maker_fee_rate: string; oracle_type: string; open_notional_cap: {}; sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_scale_factor: number; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; '@type': string; }; toDirectSign(): { type: string; message: MsgInstantBinaryOptionsMarketLaunch$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/msgs.d.ts type AuctionMsgs = MsgBid; type IbcMsgs = MsgTransfer; type PeggyMsgs = MsgSendToEth | MsgCreateRateLimit | MsgUpdateRateLimit | MsgRemoveRateLimit; type Erc20Msgs = MsgCreateTokenPair; type BankMsgs = MsgSend | MsgMultiSend; type OracleMsgs = MsgRelayProviderPrices; type FeegrantMsgs = MsgGrantAllowance | MsgRevokeAllowance; type GovMsgs = MsgVote | MsgSubmitProposal | MsgDeposit$1; type AuthzMsgs = MsgGrant | MsgRevoke | MsgExec | MsgGrantWithAuthorization; type DistributionMsgs = MsgFundCommunityPool | MsgWithdrawDelegatorReward | MsgWithdrawValidatorCommission; type ExchangeV1Msgs = MsgDeposit | MsgSignData | MsgWithdraw | MsgRewardsOptOut | MsgCancelSpotOrder | MsgExternalTransfer | MsgBatchUpdateOrders | MsgLiquidatePosition | MsgReclaimLockedFunds | MsgAuthorizeStakeGrants | MsgCreateSpotLimitOrder | MsgBatchCancelSpotOrders | MsgCancelDerivativeOrder | MsgCreateSpotMarketOrder | MsgDecreasePositionMargin | MsgIncreasePositionMargin | MsgInstantSpotMarketLaunch | MsgCancelBinaryOptionsOrder | MsgCreateDerivativeLimitOrder | MsgBatchCancelDerivativeOrders | MsgCreateDerivativeMarketOrder | MsgCreateBinaryOptionsLimitOrder | MsgAdminUpdateBinaryOptionsMarket | MsgBatchCancelBinaryOptionsOrders | MsgCreateBinaryOptionsMarketOrder; type ExchangeV2Msgs = MsgDepositV2 | MsgSignDataV2 | MsgWithdrawV2 | MsgRewardsOptOutV2 | MsgCancelSpotOrderV2 | MsgExternalTransferV2 | MsgBatchUpdateOrdersV2 | MsgLiquidatePositionV2 | MsgOffsetPositionV2 | MsgReclaimLockedFundsV2 | MsgSubaccountTransferV2 | MsgActivateStakeGrantV2 | MsgAuthorizeStakeGrantsV2 | MsgActivatePostOnlyModeV2 | MsgCreateSpotLimitOrderV2 | MsgCancelDerivativeOrderV2 | MsgBatchCancelSpotOrdersV2 | MsgCreateSpotMarketOrderV2 | MsgIncreasePositionMarginV2 | MsgDecreasePositionMarginV2 | MsgInstantSpotMarketLaunchV2 | MsgCancelBinaryOptionsOrderV2 | MsgLiquidateCrossMarginPoolV2 | MsgCreateDerivativeLimitOrderV2 | MsgBatchCancelDerivativeOrdersV2 | MsgCreateDerivativeMarketOrderV2 | MsgCreateBinaryOptionsLimitOrderV2 | MsgAdminUpdateBinaryOptionsMarketV2 | MsgBatchCancelBinaryOptionsOrdersV2 | MsgCreateBinaryOptionsMarketOrderV2 | MsgInstantBinaryOptionsMarketLaunchV2 | MsgUpdateSpotMarketV2 | MsgUpdateSwapParamsV2 | MsgCancelPostOnlyModeV2 | MsgUpdateDerivativeMarketV2 | MsgSetDelegationTransferReceiversV2 | MsgUpdateSubaccountRiskProfileV2; type InsuranceMsgs = MsgUnderwrite | MsgRequestRedemption | MsgCreateInsuranceFund; type StakingMsgs = MsgDelegate | MsgUndelegate | MsgEditValidator | MsgBeginRedelegate | MsgCreateValidator | MsgTransferDelegation | MsgCancelUnbondingDelegation; type TokenFactoryMsgs = MsgBurn | MsgMint | MsgChangeAdmin | MsgCreateDenom | MsgSetDenomMetadata; type WasmMsgs = MsgStoreCode | MsgUpdateAdmin | MsgPrivilegedExecuteContract | MsgExecuteContract | MsgMigrateContract | MsgInstantiateContract | MsgUpdateInstantiateConfig | MsgExecuteContractCompat; type Msgs = AuctionMsgs | AuthzMsgs | BankMsgs | DistributionMsgs | ExchangeV1Msgs | ExchangeV2Msgs | FeegrantMsgs | GovMsgs | IbcMsgs | InsuranceMsgs | PeggyMsgs | StakingMsgs | TokenFactoryMsgs | WasmMsgs | Erc20Msgs | OracleMsgs; type ExchangeMsgs = ExchangeV1Msgs | ExchangeV2Msgs; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/types/v1/evidence_pb.d.ts /** * Evidence is a generic type for wrapping evidence of misbehavior by a validator. * * @generated from protobuf message cometbft.types.v1.Evidence */ interface Evidence { /** * The type of evidence. * * @generated from protobuf oneof: sum */ sum: { oneofKind: "duplicateVoteEvidence"; /** * @generated from protobuf field: cometbft.types.v1.DuplicateVoteEvidence duplicate_vote_evidence = 1 */ duplicateVoteEvidence: DuplicateVoteEvidence; } | { oneofKind: "lightClientAttackEvidence"; /** * @generated from protobuf field: cometbft.types.v1.LightClientAttackEvidence light_client_attack_evidence = 2 */ lightClientAttackEvidence: LightClientAttackEvidence; } | { oneofKind: undefined; }; } /** * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. * * @generated from protobuf message cometbft.types.v1.DuplicateVoteEvidence */ interface DuplicateVoteEvidence { /** * @generated from protobuf field: cometbft.types.v1.Vote vote_a = 1 */ voteA?: Vote$2; /** * @generated from protobuf field: cometbft.types.v1.Vote vote_b = 2 */ voteB?: Vote$2; /** * @generated from protobuf field: int64 total_voting_power = 3 */ totalVotingPower: bigint; /** * @generated from protobuf field: int64 validator_power = 4 */ validatorPower: bigint; /** * @generated from protobuf field: google.protobuf.Timestamp timestamp = 5 */ timestamp?: Timestamp; } /** * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. * * @generated from protobuf message cometbft.types.v1.LightClientAttackEvidence */ interface LightClientAttackEvidence { /** * @generated from protobuf field: cometbft.types.v1.LightBlock conflicting_block = 1 */ conflictingBlock?: LightBlock; /** * @generated from protobuf field: int64 common_height = 2 */ commonHeight: bigint; /** * @generated from protobuf field: repeated cometbft.types.v1.Validator byzantine_validators = 3 */ byzantineValidators: Validator$3[]; /** * @generated from protobuf field: int64 total_voting_power = 4 */ totalVotingPower: bigint; /** * @generated from protobuf field: google.protobuf.Timestamp timestamp = 5 */ timestamp?: Timestamp; } /** * EvidenceList is a list of evidence. * * @generated from protobuf message cometbft.types.v1.EvidenceList */ interface EvidenceList { /** * @generated from protobuf field: repeated cometbft.types.v1.Evidence evidence = 1 */ evidence: Evidence[]; } /** * @generated MessageType for protobuf message cometbft.types.v1.Evidence */ declare const Evidence = new Evidence$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.DuplicateVoteEvidence */ declare const DuplicateVoteEvidence = new DuplicateVoteEvidence$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.LightClientAttackEvidence */ declare const LightClientAttackEvidence = new LightClientAttackEvidence$Type(); /** * @generated MessageType for protobuf message cometbft.types.v1.EvidenceList */ declare const EvidenceList = new EvidenceList$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cometbft/types/v1/block_pb.d.ts /** * Block defines the structure of a block in the CometBFT blockchain. * * @generated from protobuf message cometbft.types.v1.Block */ interface Block$2 { /** * @generated from protobuf field: cometbft.types.v1.Header header = 1 */ header?: Header$1; /** * @generated from protobuf field: cometbft.types.v1.Data data = 2 */ data?: Data; /** * @generated from protobuf field: cometbft.types.v1.EvidenceList evidence = 3 */ evidence?: EvidenceList; /** * @generated from protobuf field: cometbft.types.v1.Commit last_commit = 4 */ lastCommit?: Commit; } /** * @generated MessageType for protobuf message cometbft.types.v1.Block */ declare const Block$2 = new Block$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/service_pb.d.ts /** * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC * method. * * @generated from protobuf enum cosmos.tx.v1beta1.BroadcastMode */ declare enum BroadcastMode$1 { /** * zero-value for mode ordering * * @generated from protobuf enum value: BROADCAST_MODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * DEPRECATED: use BROADCAST_MODE_SYNC instead, * BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. * * @deprecated * @generated from protobuf enum value: BROADCAST_MODE_BLOCK = 1 [deprecated = true]; */ BLOCK = 1, /** * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits * for a CheckTx execution response only. * * @generated from protobuf enum value: BROADCAST_MODE_SYNC = 2; */ SYNC = 2, /** * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client * returns immediately. * * @generated from protobuf enum value: BROADCAST_MODE_ASYNC = 3; */ ASYNC = 3, } //#endregion //#region src/core/tx/types/tx.d.ts type TxEventWebSocketFactory = (endpoint: string) => WebSocket; declare const TxInclusionStrategy: { readonly Poll: "poll"; readonly TendermintEvent: "tendermint-event"; readonly TendermintEventAndPoll: "tendermint-event-and-poll"; }; type TxInclusionStrategy = (typeof TxInclusionStrategy)[keyof typeof TxInclusionStrategy]; interface TxEventInclusionOptions { rpcEndpoint?: string; timeout?: number; fallbackToPolling?: boolean; webSocketFactory?: TxEventWebSocketFactory; onFallback?: (error: Error) => void; } interface TxClientInclusionOptions { inclusionStrategy?: TxInclusionStrategy; pollingInterval?: number; eventInclusion?: TxEventInclusionOptions; } interface TxInclusionWaiter { txHash: string; inclusionStrategy: TxInclusionStrategy; close: () => void; wait: (txHash?: string) => Promise; } interface TxFetchTxPollArgs { txHash: string; timeout?: number; pollingInterval?: number; abortSignal?: AbortSignal; } interface TxWaitForTxInclusionArgs { txHash: string; timeout?: number; options?: TxClientInclusionOptions; } interface TxPrepareTxInclusionWaitArgs { txHash: string; timeout?: number; options?: TxClientInclusionOptions; } interface TxClientBroadcastOptions extends TxClientInclusionOptions { mode?: BroadcastMode$1; timeout?: number; txTimeout?: number; onBroadcast?: (txHash: string) => void; } interface TxClientBroadcastResponse { height: number; txHash: string; codespace: string; code: number; data?: string; rawLog: string; logs?: any[]; info?: string; gasWanted: number; gasUsed: number; timestamp: string; events?: any[]; } interface TxClientSimulateResponse { result: { data: Uint8Array | string; log: string; eventsList: any[]; }; gasInfo: { gasWanted: number; gasUsed: number; }; } interface TxConcreteApi { broadcast(txRaw: TxRaw, options?: TxClientBroadcastOptions): Promise; broadcastBlock(txRaw: TxRaw): Promise; fetchTx(txHash: string): Promise; fetchTxPoll(args: TxFetchTxPollArgs): Promise; waitForTxInclusion(args: TxWaitForTxInclusionArgs): Promise; prepareTxInclusionWait(args: TxPrepareTxInclusionWaitArgs): Promise; simulate(txRaw: TxRaw): Promise; } declare const TxClientMode: { readonly gRpc: "grpc"; readonly rest: "rest"; }; type TxClientMode = (typeof TxClientMode)[keyof typeof TxClientMode]; type MsgArg = { type: string; message: any; }; interface SignerDetails { pubKey: string | Any; sequence: number; accountNumber: number; } /** @type {CreateTransactionWithSignersArgs} */ interface CreateTransactionWithSignersArgs { fee?: StdFee | string; memo?: string; chainId: string; message: Msgs | Msgs[]; signers: SignerDetails | SignerDetails[]; signMode?: SignMode; timeoutHeight?: number; } /** @type {CreateTransactionArgs} */ interface CreateTransactionArgs { fee?: StdFee; memo?: string; chainId: string; message: Msgs | Msgs[]; pubKey: string; sequence: number; accountNumber: number; signMode?: SignMode; timeoutHeight?: number; } /** @type {CreateTransactionResult} */ interface CreateTransactionResult { txRaw: TxRaw; signDoc: SignDoc; bodyBytes: Uint8Array; signers: SignerDetails | SignerDetails[]; signer: SignerDetails; authInfoBytes: Uint8Array; signBytes: Uint8Array; signHashedBytes: Uint8Array; } interface TxResponse { height: number; txHash: string; codespace: string; code: number; data?: string; rawLog: string; logs?: any[]; info?: string; gasWanted: number; gasUsed: number; timestamp: string; events?: any[]; } //#endregion //#region src/core/tx/types/tx-rest-client.d.ts interface RestSignerInfo { public_key: PublicKey$1 | null; mode_info: ModeInfo; sequence: string; } interface RestAuthInfo { signer_infos: RestSignerInfo[]; fee: Fee; } interface RestTxBody { messages: any[]; memo: string; timeout_height: string; } interface RestTx { body: RestTxBody; auth_info: RestAuthInfo; signatures: string[]; } interface RestTxLog { msg_index: number; log: string; events: { type: string; attributes: { key: string; value: string; }[]; }[]; } interface TxInfoResponse { height: string; txhash: string; codespace: string; code: number; data: string; raw_log: string; logs: RestTxLog[]; info: string; gas_wanted: string; gas_used: string; tx: RestTx; timestamp: string; } interface TxInfo { height: string; txhash: string; codespace: string; code: number; data: string; rawLog: string; gasWanted: string; gasUsed: string; logs: RestTxLog[]; info: string; tx: RestTx; timestamp: string; } declare const BroadcastMode: { readonly Sync: "BROADCAST_MODE_SYNC"; readonly Async: "BROADCAST_MODE_ASYNC"; readonly Block: "BROADCAST_MODE_BLOCK"; }; type BroadcastMode = (typeof BroadcastMode)[keyof typeof BroadcastMode]; declare const BroadcastModeKeplr: { readonly Sync: "sync"; readonly Async: "async"; readonly Block: "block"; }; type BroadcastModeKeplr = (typeof BroadcastModeKeplr)[keyof typeof BroadcastModeKeplr]; interface TxResultResponse { tx: RestTx; tx_response: TxInfoResponse; } interface TxResult { tx: RestTx; txResponse: TxInfo; } interface TxSearchResult { pagination: any; txs: TxInfo[]; } interface TxSearchResultParams { txs: RestTx[]; tx_responses: TxInfo; pagination: any; } interface SimulationResponse { gas_info: { gas_wanted: string; gas_used: string; }; result: { data: string; log: string; events: { type: string; attributes: { key: string; value: string; }[]; }[]; }; } //#endregion //#region src/core/tx/tx.d.ts /** * @typedef {Object} CreateTransactionWithSignersArgs * @param {CreateTransactionWithSignersArgs} params * @property {Msg | Msg[]} message - the Cosmos messages to wrap them in a transaction * @property {string} memo - the memo to attach to the transaction * @property {StdFee} fee - the fee to attach to the transaction * @property {SignerDetails} signers - the signers of the transaction * @property {number} number - the account number to attach to the transaction * @property {number} chainId - the chain-id to attach to the transaction * @property {string} pubKey - the account pubKey to attach to the transaction (in base64) * * @typedef {Object} CreateTransactionResult * @property {TxRaw} txRaw - the Tx raw that was created * @property {SignDoc} signDoc - the SignDoc that was created - used for signing of the transaction * @property {SignerDetails} signers - the signers of the transaction * @property {Uint8Array} bodyBytes - the body bytes of the transaction * @property {Uint8Array} authInfoBytes - the auth info bytes of the transaction * @property {Uint8Array} signBytes - the sign bytes of the transaction (SignDoc serialized to binary) * @property {Uint8Array} signHashedBytes - the sign bytes of the transaction (SignDoc serialized to binary) and hashed using keccak256 * @returns {CreateTransactionResult} result */ declare const createTransactionWithSigners: ({ signers, chainId, message, timeoutHeight, memo, fee, signMode }: CreateTransactionWithSignersArgs) => CreateTransactionResult; /** * @typedef {Object} CreateTransactionArgs * @param {CreateTransactionArgs} params * @property {MsgArg | MsgArg[]} message - the Cosmos messages to wrap them in a transaction * @property {string} memo - the memo to attach to the transaction * @property {StdFee} fee - the fee to attach to the transaction * @property {string} sequence - the account sequence to attach to the transaction * @property {number} number - the account number to attach to the transaction * @property {number} chainId - the chain-id to attach to the transaction * @property {string} pubKey - the account pubKey to attach to the transaction (in base64) * * @typedef {Object} CreateTransactionResult * @property {TxRaw} txRaw // the Tx raw that was created * @property {SignDoc} signDoc // the SignDoc that was created - used for signing of the transaction * @property {number} accountNumber // the account number of the signer of the transaction * @property {Uint8Array} bodyBytes // the body bytes of the transaction * @property {Uint8Array} authInfoBytes // the auth info bytes of the transaction * @property {Uint8Array} signBytes // the sign bytes of the transaction (SignDoc serialized to binary) * @property {Uint8Array} signHashedBytes // the sign bytes of the transaction (SignDoc serialized to binary) and hashed using keccak256 * @returns {CreateTransactionResult} result */ declare const createTransaction: (args: CreateTransactionArgs) => CreateTransactionResult; /** * Used when we want to pass a Msg class instead of the {type, message} * object of the Message (using the toDirectSign() method) * @returns */ declare const createTransactionFromMsg: (params: Omit & { message: Msgs | Msgs[]; }) => CreateTransactionResult; /** * Used when we get a DirectSignResponse from * Cosmos native wallets like Keplr, Leap, etc after * the TxRaw has been signed. * * The reason why we need to create a new TxRaw and * not use the one that we passed to signing is that the users * can change the gas fees and that will alter the original * TxRaw which will cause signature miss match if we broadcast * that transaction on chain * @returns TxRaw */ declare const createTxRawFromSigResponse: (response: TxRaw | DirectSignResponse) => TxRaw; /** * Used when we don't have account details and block details * and we pass the message and the user's address only * @returns */ declare const createTransactionForAddressAndMsg: (params: Omit & { message: Msgs | Msgs[]; address: string; pubKey?: string; endpoint: string; }) => Promise; declare const createTransactionAndCosmosSignDoc: (args: CreateTransactionArgs) => { cosmosSignDoc: SignDoc; txRaw: TxRaw; signDoc: SignDoc; bodyBytes: Uint8Array; signers: SignerDetails | SignerDetails[]; signer: SignerDetails; authInfoBytes: Uint8Array; signBytes: Uint8Array; signHashedBytes: Uint8Array; }; declare const createTransactionAndCosmosSignDocForAddressAndMsg: (params: Omit & { message: Msgs | Msgs[]; address: string; pubKey?: string; endpoint: string; }) => Promise<{ cosmosSignDoc: SignDoc; txRaw: TxRaw; signDoc: SignDoc; bodyBytes: Uint8Array; signers: SignerDetails | SignerDetails[]; signer: SignerDetails; authInfoBytes: Uint8Array; signBytes: Uint8Array; signHashedBytes: Uint8Array; }>; declare const getTxRawFromTxRawOrDirectSignResponse: (txRawOrDirectSignResponse: TxRaw | DirectSignResponse) => TxRaw; //#endregion //#region src/core/tx/api/utils.d.ts declare const waitTxBroadcasted: (txHash: string, options: { endpoints: { grpc?: string; rest: string; }; txTimeout?: number; txInclusion?: TxClientInclusionOptions; }) => Promise; //#endregion //#region src/core/tx/api/TxGrpcApi.d.ts declare class TxGrpcApi extends BaseGrpcConsumer implements TxConcreteApi { protected module: string; private get client(); fetchTx(hash: string): Promise; fetchTxPoll({ txHash, abortSignal, timeout, pollingInterval }: TxFetchTxPollArgs): Promise; waitForTxInclusion({ txHash, timeout, options }: TxWaitForTxInclusionArgs): Promise; prepareTxInclusionWait({ txHash, timeout, options }: TxPrepareTxInclusionWaitArgs): Promise; private safeFetchTx; private fetchTxDual; private throwIfTxPollingCancelled; simulate(txRaw: TxRaw): Promise<{ result: { data: string | Uint8Array; log: string; eventsList: Event$1[]; events?: Event$1[] | undefined; msgResponses?: Any[] | undefined; }; gasInfo: { gasWanted: number; gasUsed: number; }; }>; broadcast(txRaw: TxRaw, options?: TxClientBroadcastOptions): Promise; /** @deprecated - the BLOCK mode broadcasting is deprecated now, use either sync or async */ broadcastBlock(txRaw: TxRaw): Promise; } //#endregion //#region src/core/tx/api/TxRestApi.d.ts /** * It is recommended to use TxGrpcClient instead of TxRestApi */ declare class TxRestApi implements TxConcreteApi { httpClient: HttpClient; constructor(endpoint: string, options?: { timeout?: number; }); fetchTx(txHash: string, params?: any): Promise; fetchTxPoll({ txHash, timeout, pollingInterval, abortSignal }: TxFetchTxPollArgs): Promise; private throwIfTxPollingCancelled; waitForTxInclusion({ txHash, timeout, options }: TxWaitForTxInclusionArgs): Promise; prepareTxInclusionWait({ txHash, timeout, options }: TxPrepareTxInclusionWaitArgs): Promise; simulate(txRaw: TxRaw): Promise<{ result: { data: string; log: string; eventsList: { type: string; attributes: { key: string; value: string; }[]; }[]; }; gasInfo: { gasWanted: number; gasUsed: number; }; }>; broadcast(txRaw: TxRaw, options?: TxClientBroadcastOptions): Promise; /** * Broadcast the transaction using the "block" mode, waiting for its inclusion in the blockchain. * @param tx transaction to broadcast * * @deprecated - the BLOCk mode broadcasting is deprecated now, use either sync or async */ broadcastBlock(txRaw: TxRaw): Promise<{ txHash: string; rawLog: string; gasWanted: number; gasUsed: number; height: number; logs: RestTxLog[]; code: number; codespace: string; data: string; info: string; timestamp: string; }>; private broadcastTx; private getRaw; private postRaw; } //#endregion //#region src/core/tx/api/types.d.ts interface TendermintTxEventSubscription { close: () => void; wait: () => Promise; } interface SubscribeToTendermintTxEventArgs { txHash: string; timeout: number; endpoint: string; webSocketFactory?: TxEventWebSocketFactory; } //#endregion //#region src/core/tx/api/TxEventInclusion.d.ts declare function normalizeTendermintWebSocketEndpoint(endpoint: string): string; declare function subscribeToTendermintTxEvent({ txHash, timeout, endpoint, webSocketFactory }: SubscribeToTendermintTxEventArgs): Promise; //#endregion //#region src/core/tx/arbitrary.d.ts declare const generateArbitrarySignDoc: (message: string, signer: string) => { signDoc: { account_number: string; chain_id: string; fee: { amount: never[]; gas: string; }; memo: string; msgs: { type: string; value: { data: string; signer: string; }; }[]; sequence: string; }; signDocBuff: Uint8Array; stringifiedSignDoc: string; }; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/tx_ext_pb.d.ts /** * @generated from protobuf message injective.types.v1beta1.ExtensionOptionsWeb3Tx */ interface ExtensionOptionsWeb3Tx { /** * typedDataChainID used only in EIP712 Domain and should match * Ethereum network ID in a Web3 provider (e.g. Metamask). * * @generated from protobuf field: uint64 typedDataChainID = 1 */ typedDataChainID: bigint; /** * feePayer is an account address for the fee payer. It will be validated * during EIP712 signature checking. * * @generated from protobuf field: string feePayer = 2 */ feePayer: string; /** * feePayerSig is a signature data from the fee paying account, * allows to perform fee delegation when using EIP712 Domain. * * @generated from protobuf field: bytes feePayerSig = 3 */ feePayerSig: Uint8Array; } /** * @generated MessageType for protobuf message injective.types.v1beta1.ExtensionOptionsWeb3Tx */ declare const ExtensionOptionsWeb3Tx = new ExtensionOptionsWeb3Tx$Type(); //#endregion //#region src/core/tx/utils/tx.d.ts declare const getPublicKey: ({ chainId, key }: { chainId: string; key: string | Any; }) => Any; declare const createBody: ({ message, memo, timeoutHeight }: { message: Msgs | Msgs[]; memo?: string; timeoutHeight?: number; }) => TxBody; declare const createFee: ({ fee, payer, granter, gasLimit }: { fee: { amount: string; denom: string; }; payer?: string; granter?: string; gasLimit: number; }) => Fee; declare const createSigners: ({ chainId, mode, signers }: { chainId: string; signers: { pubKey: string | Any; sequence: number; }[]; mode: SignMode; }) => SignerInfo[]; declare const createSignerInfo: ({ chainId, publicKey, sequence, mode }: { chainId: string; publicKey: string | Any; sequence: number; mode: SignMode; }) => SignerInfo; declare const createAuthInfo: ({ signerInfo, fee }: { signerInfo: SignerInfo[]; fee: Fee; }) => AuthInfo; declare const createSignDoc: ({ bodyBytes, authInfoBytes, chainId, accountNumber }: { bodyBytes: Uint8Array; authInfoBytes: Uint8Array; chainId: string; accountNumber: number; }) => SignDoc; declare const createSignDocFromTransaction: (args: { txRaw: TxRaw; chainId: string; accountNumber: number; }) => SignDoc; declare const createTxRawEIP712: (txRaw: TxRaw, extension: ExtensionOptionsWeb3Tx, nonCriticalExtension?: Any | Any[]) => TxRaw; declare const createWeb3Extension: ({ evmChainId, feePayer, feePayerSig }: { evmChainId: EvmChainId; feePayer?: string; feePayerSig?: Uint8Array; }) => ExtensionOptionsWeb3Tx; declare const createNonCriticalExtensionFromObject: (object: Record) => Any; declare const getTransactionPartsFromTxRaw: (txRaw: TxRaw) => { authInfo: AuthInfo; body: TxBody; signatures: Uint8Array[]; }; declare const getAminoStdSignDoc: ({ memo, chainId, accountNumber, timeoutHeight, sequence, gas, msgs }: { memo?: string; chainId: ChainId; timeoutHeight?: string; accountNumber: number; sequence: number; gas?: string; msgs: Msgs[]; }) => { chain_id: ChainId; timeout_height: string; account_number: string; sequence: string; fee: { amount: { denom: string; amount: string; }[]; gas: string; payer: string | undefined; granter: string | undefined; feePayer: string | undefined; }; msgs: { type: string; value: any; }[]; memo: string; }; //#endregion //#region src/core/tx/utils/api.d.ts declare const isTxNotFoundError: (error: any) => boolean; declare const errorToErrorMessage: (error: any) => any; //#endregion //#region src/core/tx/utils/helpers.d.ts declare const createAnyMessage: (msg: { type: string; value: Uint8Array; }) => Any; declare const createAny: (value: any, type: string) => Any; declare const getInjectiveSignerAddress: (address: string | undefined) => string; declare const getEthereumSignerAddress: (address: string | undefined) => string; //#endregion //#region src/core/tx/utils/constants.d.ts declare const SIGN_DIRECT = CosmosTxSigningV1Beta1SigningPb.SignMode.DIRECT; declare const SIGN_AMINO = CosmosTxSigningV1Beta1SigningPb.SignMode.LEGACY_AMINO_JSON; declare const SIGN_EIP712 = CosmosTxSigningV1Beta1SigningPb.SignMode.LEGACY_AMINO_JSON; declare const SIGN_EIP712_V2 = CosmosTxSigningV1Beta1SigningPb.SignMode.EIP712_V2; //#endregion //#region src/core/tx/utils/classes/TxClient.d.ts declare class TxClient { /** * Encode a transaction to base64-encoded protobuf * @param tx transaction to encode */ static encode(tx: TxRaw): string; /** * Decode a transaction from base64-encoded protobuf * @param tx transaction string to decode */ static decode(encodedTx: string): TxRaw; /** * Get the transaction's hash * @param tx transaction to hash */ static hash(tx: TxRaw): string; } //#endregion //#region src/core/tx/eip712/maps.d.ts /** * ONLY USED FOR EIP712_V1 * * Function used to generate EIP712 types based on a message object * and its structure (recursive) */ declare const objectKeysToEip712Types: ({ object, messageType, primaryType }: { object: Record; messageType?: string; primaryType?: string; }) => Map; /** * The chain always includes expiration_block in order type schemas * even when the EIP712 v1 message value omits zero-valued fields. * Patch the resolved type map to add it to any of the given keys * that are missing it. */ declare const patchOrderTypesWithExpirationBlock: (result: Map, orderTypeKeys: string[]) => Map; /** * JavaScript doesn't know the exact number types that * we represent these fields on chain so we have to map * them in their chain representation from the number value * that is available in JavaScript */ declare const numberTypeToReflectionNumberType: (property?: string, messageType?: string) => "int32" | "uint32" | "int64" | "timeout_timestamp" | "uint64"; /** * JavaScript doesn't know the exact string types that * we represent these fields on chain so we have to map * them in their chain representation from the string value * that is available in JavaScript */ declare const stringTypeToReflectionStringType: (property?: string) => string; declare const getObjectEip712PropertyType: ({ property, parentProperty, messageType }: { property: string; parentProperty: string; messageType?: string; }) => string; /** * Mapping a path type to amino type for messages */ declare const protoTypeToAminoType: (type: string) => string; //#endregion //#region src/core/tx/eip712/utils.d.ts declare const getEip712Domain: (evmChainId: EvmChainId) => { domain: { name: string; version: string; chainId: string; salt: string; verifyingContract: string; }; }; declare const getEip712DomainV2: (evmChainId: EvmChainId) => { domain: { name: string; version: string; chainId: string; verifyingContract: string; salt: string; }; }; declare const getDefaultEip712Types: () => { types: { EIP712Domain: { name: string; type: string; }[]; Tx: { name: string; type: string; }[]; Fee: { name: string; type: string; }[]; Coin: { name: string; type: string; }[]; Msg: { name: string; type: string; }[]; }; }; declare const getDefaultEip712TypesV2: () => { types: { EIP712Domain: { name: string; type: string; }[]; Tx: { name: string; type: string; }[]; }; }; declare const getEip712Fee: (params?: Eip712ConvertFeeArgs) => { fee: { amount: { amount: string; denom: string; }[]; gas: string; feePayer?: string; granter?: string; }; }; declare const getEip712FeeV2: (params?: Eip712ConvertFeeArgs) => { fee: { amount: { denom: string; amount: string; }[]; gas: number; granter?: string; payer?: string; }; }; declare const getTypesIncludingFeeOptions: ({ fee, types }: { fee?: Eip712ConvertFeeArgs; types: ReturnType; }) => { types: { EIP712Domain: { name: string; type: string; }[]; Tx: { name: string; type: string; }[]; Fee: { name: string; type: string; }[]; Coin: { name: string; type: string; }[]; Msg: { name: string; type: string; }[]; }; }; declare const getEipTxDetails: ({ accountNumber, sequence, timeoutHeight, chainId, memo }: Eip712ConvertTxArgs) => { account_number: string; chain_id: string; sequence: string; timeout_height: string; memo: string; }; declare const getEipTxContext: ({ accountNumber, sequence, fee, timeoutHeight, chainId, memo }: Eip712ConvertTxArgs & { fee?: Eip712ConvertFeeArgs; }) => { account_number: number; chain_id: string; sequence: number; fee: Record; timeout_height: number; memo: string; }; //#endregion //#region src/core/tx/eip712/eip712.d.ts declare const getEip712TypedData: ({ msgs, tx, fee, evmChainId }: { msgs: Msgs | Msgs[]; tx: Eip712ConvertTxArgs; fee?: Eip712ConvertFeeArgs; evmChainId: EvmChainId; }) => { message: { msgs: { type: string; value: any; }[]; fee: { amount: { amount: string; denom: string; }[]; gas: string; feePayer?: string; granter?: string; }; account_number: string; chain_id: string; sequence: string; timeout_height: string; memo: string; }; domain: { name: string; version: string; chainId: string; salt: string; verifyingContract: string; }; primaryType: string; types: { EIP712Domain: { name: string; type: string; }[]; Tx: { name: string; type: string; }[]; Fee: { name: string; type: string; }[]; Coin: { name: string; type: string; }[]; Msg: { name: string; type: string; }[]; }; }; declare const getEip712TypedDataV2: ({ msgs, tx, fee, evmChainId }: { msgs: Msgs | Msgs[]; tx: Eip712ConvertTxArgs; fee?: Eip712ConvertFeeArgs; evmChainId: EvmChainId; }) => { message: { context: string; msgs: string; }; domain: { name: string; version: string; chainId: string; verifyingContract: string; salt: string; }; primaryType: string; types: { EIP712Domain: { name: string; type: string; }[]; Tx: { name: string; type: string; }[]; }; }; //#endregion //#region src/core/tx/eip712/MsgDecoder.d.ts declare class MsgDecoder { static decode(message: Any): Msgs; } //#endregion //#region src/core/accounts/Address.d.ts /** * @category Utility Classes */ declare class Address { bech32Address: string; constructor(bech32Address: string); compare(address: Address): boolean; get address(): string; /** * Create an address instance from a bech32-encoded address and a prefix * @param {string} bech32 bech32-encoded address * @param {string} prefix * @return {Address} * @throws {Error} if bech is not a valid bech32-encoded address */ static fromBech32(bech: string, prefix?: string): Address; /** * Create an address instance from an ethereum address * @param {string} hex Ethereum address * @param {string} prefix * @return {Address} * @throws {Error} if bech is not a valid bech32-encoded address */ static fromHex(hex: string, prefix?: string): Address; /** * Convert an address instance to a bech32-encoded account address * @param {string} prefix * @returns {string} */ toBech32(prefix?: string): string; /** * Return a bech32-encoded account address * @return {string} * @throws {Error} if this address is not a valid account address * */ toAccountAddress(): string; /** * Return a bech32-encoded validator address * @return {string} * @throws {Error} if this address is not a valid validator address * */ toValidatorAddress(): string; /** * Return a bech32-encoded consensus address * @return {string} * @throws {Error} if this address is not a valid consensus address * */ toConsensusAddress(): string; /** * Return a hex representation of address * @return {string} * @throws {Error} if this address is not a valid account address * */ toHex(): string; /** * Return a subaccount address from the given bech32 encoded address * @param {number} index the subaccount index * @return {string} * @throws {Error} if this address is not a valid account address * */ getSubaccountId(index?: number): string; /** * Return a ethereum address from the given bech32 encoded address * @return {string} * @throws {Error} if this address is not a valid account address * */ getEthereumAddress(): string; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/crypto/v1beta1/ethsecp256k1/keys_pb.d.ts /** * PubKey defines a type alias for an ecdsa.PublicKey that implements * Tendermint's PubKey interface. It represents the 33-byte compressed public * key format. * * @generated from protobuf message injective.crypto.v1beta1.ethsecp256k1.PubKey */ interface PubKey { /** * @generated from protobuf field: bytes key = 1 */ key: Uint8Array; } /** * @generated MessageType for protobuf message injective.crypto.v1beta1.ethsecp256k1.PubKey */ declare const PubKey = new PubKey$Type(); //#endregion //#region src/core/accounts/PublicKey.d.ts /** * @category Crypto Utility Classes */ declare class PublicKey { private type; private key; private constructor(); static fromBase64(publicKey: string): PublicKey; static fromBytes(publicKey: Uint8Array): PublicKey; static fromHex(pubKey: string): PublicKey; static fromPrivateKeyHex(privateKey: string | Uint8Array): PublicKey; toPubKeyBytes(): Uint8Array; toBase64(): string; toHex(): string; /** * Convert the public key to a pubkey in bech32 format. * Note: this does not convert the public key to an address. */ toBech32(): string; toAddress(): Address; toProto(): PubKey; toAny(): Any; } //#endregion //#region ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/types/register.d.ts interface Register {} type ResolvedRegister = { /** * TypeScript type to use for `address` values * @default `0x${string}` */ addressType: Register extends { addressType: infer type; } ? type : Register extends { AddressType: infer type; } ? type : DefaultRegister['addressType']; /** * TypeScript type to use for `int` and `uint` values, where `M > 48` * @default bigint */ bigIntType: Register extends { bigIntType: infer type; } ? type : Register extends { BigIntType: infer type; } ? type : DefaultRegister['bigIntType']; /** * TypeScript type to use for `bytes` values * @default { inputs: `0x${string}`; outputs: `0x${string}`; } */ bytesType: Register extends { bytesType: infer type extends { inputs: unknown; outputs: unknown; }; } ? type : Register extends { BytesType: infer type extends { inputs: unknown; outputs: unknown; }; } ? type : DefaultRegister['bytesType']; /** * TypeScript type to use for `int` and `uint` values, where `M <= 48` * @default number */ intType: Register extends { intType: infer type; } ? type : Register extends { IntType: infer type; } ? type : DefaultRegister['intType']; /** * Maximum depth for nested array types (e.g. string[][]) * * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown` * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`. * * @default false */ arrayMaxDepth: Register extends { arrayMaxDepth: infer type extends number | false; } ? type : Register extends { ArrayMaxDepth: infer type extends number | false; } ? type : DefaultRegister['arrayMaxDepth']; /** * Lower bound for fixed array length * @default 1 */ fixedArrayMinLength: Register extends { fixedArrayMinLength: infer type extends number; } ? type : Register extends { FixedArrayMinLength: infer type extends number; } ? type : DefaultRegister['fixedArrayMinLength']; /** * Upper bound for fixed array length * @default 99 */ fixedArrayMaxLength: Register extends { fixedArrayMaxLength: infer type extends number; } ? type : Register extends { FixedArrayMaxLength: infer type extends number; } ? type : DefaultRegister['fixedArrayMaxLength']; /** * Enables named tuple generation in {@link AbiParametersToPrimitiveTypes} for common ABI parameter names. * * @default false */ experimental_namedTuples: Register extends { experimental_namedTuples: infer type extends boolean; } ? type : DefaultRegister['experimental_namedTuples']; /** * When set, validates {@link AbiParameter}'s `type` against {@link AbiType} * * Note: You probably only want to set this to `true` if parsed types are returning as `unknown` * and you want to figure out why. * * @default false */ strictAbiType: Register extends { strictAbiType: infer type extends boolean; } ? type : Register extends { StrictAbiType: infer type extends boolean; } ? type : DefaultRegister['strictAbiType']; /** @deprecated Use `addressType` instead */ AddressType: ResolvedRegister['addressType']; /** @deprecated Use `addressType` instead */ BigIntType: ResolvedRegister['bigIntType']; /** @deprecated Use `bytesType` instead */ BytesType: ResolvedRegister['bytesType']; /** @deprecated Use `intType` instead */ IntType: ResolvedRegister['intType']; /** @deprecated Use `arrayMaxDepth` instead */ ArrayMaxDepth: ResolvedRegister['arrayMaxDepth']; /** @deprecated Use `fixedArrayMinLength` instead */ FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength']; /** @deprecated Use `fixedArrayMaxLength` instead */ FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength']; /** @deprecated Use `strictAbiType` instead */ StrictAbiType: ResolvedRegister['strictAbiType']; }; type DefaultRegister = { /** Maximum depth for nested array types (e.g. string[][]) */ arrayMaxDepth: false; /** Lower bound for fixed array length */ fixedArrayMinLength: 1; /** Upper bound for fixed array length */ fixedArrayMaxLength: 99; /** TypeScript type to use for `address` values */ addressType: `0x${string}`; /** TypeScript type to use for `bytes` values */ bytesType: { /** TypeScript type to use for `bytes` input values */ inputs: `0x${string}`; /** TypeScript type to use for `bytes` output values */ outputs: `0x${string}`; }; /** TypeScript type to use for `int` and `uint` values, where `M > 48` */ bigIntType: bigint; /** TypeScript type to use for `int` and `uint` values, where `M <= 48` */ intType: number; /** Enables named tuple generation in {@link AbiParametersToPrimitiveTypes} for common ABI parameter names */ experimental_namedTuples: false; /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */ strictAbiType: false; /** @deprecated Use `arrayMaxDepth` instead */ ArrayMaxDepth: DefaultRegister['arrayMaxDepth']; /** @deprecated Use `fixedArrayMinLength` instead */ FixedArrayMinLength: DefaultRegister['fixedArrayMinLength']; /** @deprecated Use `fixedArrayMaxLength` instead */ FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength']; /** @deprecated Use `addressType` instead */ AddressType: DefaultRegister['addressType']; /** @deprecated Use `bytesType` instead */ BytesType: { inputs: DefaultRegister['bytesType']['inputs']; outputs: DefaultRegister['bytesType']['outputs']; }; /** @deprecated Use `bigIntType` instead */ BigIntType: DefaultRegister['bigIntType']; /** @deprecated Use `intType` instead */ IntType: DefaultRegister['intType']; /** @deprecated Use `strictAbiType` instead */ StrictAbiType: DefaultRegister['strictAbiType']; }; //#endregion //#region ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/types/types.d.ts /** * Prints custom error message * * @param messages - Error message * @returns Custom error message * * @example * type Result = Error<'Custom error message'> * // ^? type Result = ['Error: Custom error message'] */ type Error$1 = messages extends string ? [`Error: ${messages}`] : { [key in keyof messages]: messages[key] extends infer message extends string ? `Error: ${message}` : never }; /** * Merges two object types into new type * * @param object1 - Object to merge into * @param object2 - Object to merge and override keys from {@link object1} * @returns New object type with keys from {@link object1} and {@link object2}. If a key exists in both {@link object1} and {@link object2}, the key from {@link object2} will be used. * * @example * type Result = Merge<{ foo: string }, { foo: number; bar: string }> * // ^? type Result = { foo: number; bar: string } */ type Merge = Omit & object2; /** * Combines members of an intersection into a readable type. * * @link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg * @example * type Result = Pretty<{ a: string } | { b: string } | { c: number, d: bigint }> * // ^? type Result = { a: string; b: string; c: number; d: bigint } */ type Pretty = { [key in keyof type$1]: type$1[key] } & unknown; /** * Creates range between two positive numbers using [tail recursion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#tail-recursion-elimination-on-conditional-types). * * @param start - Number to start range * @param stop - Number to end range * @returns Array with inclusive range from {@link start} to {@link stop} * * @example * type Result = Range<1, 3> * // ^? type Result = [1, 2, 3] */ type Range = current extends stop ? current extends start ? [current] : result extends [] ? [] : [...result, current] : current extends start ? Range : result extends [] ? Range : Range; /** * Create tuple of {@link type} type with {@link size} size * * @param Type - Type of tuple * @param Size - Size of tuple * @returns Tuple of {@link type} type with {@link size} size * * @example * type Result = Tuple * // ^? type Result = [string, string] */ type Tuple = size$1 extends size$1 ? number extends size$1 ? type$1[] : _TupleOf : never; type _TupleOf = acc['length'] extends size$1 ? acc : _TupleOf; //#endregion //#region ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/types/abi.d.ts type Address$1 = ResolvedRegister['addressType']; type MBytes = '' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32; type MBits = '' | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | 192 | 200 | 208 | 216 | 224 | 232 | 240 | 248 | 256; type SolidityAddress = 'address'; type SolidityBool = 'bool'; type SolidityBytes = `bytes${MBytes}`; type SolidityFunction = 'function'; type SolidityString = 'string'; type SolidityTuple = 'tuple'; type SolidityInt = `${'u' | ''}int${MBits}`; type SolidityFixedArrayRange = Range[number]; type SolidityFixedArraySizeLookup = { [Prop in SolidityFixedArrayRange as `${Prop}`]: Prop }; /** * Recursively build arrays up to maximum depth * or use a more broad type when maximum depth is switched "off" */ type _BuildArrayTypes = ResolvedRegister['arrayMaxDepth'] extends false ? `${T}[${string}]` : Depth['length'] extends ResolvedRegister['arrayMaxDepth'] ? T : T extends `${any}[${SolidityFixedArrayRange | ''}]` ? _BuildArrayTypes : _BuildArrayTypes<`${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]>; type SolidityArrayWithoutTuple = _BuildArrayTypes; type SolidityArrayWithTuple = _BuildArrayTypes; type SolidityArray = SolidityArrayWithoutTuple | SolidityArrayWithTuple; type AbiType = SolidityArray | SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString | SolidityTuple; type ResolvedAbiType = ResolvedRegister['strictAbiType'] extends true ? AbiType : string; type AbiInternalType = ResolvedAbiType | `address ${string}` | `contract ${string}` | `enum ${string}` | `struct ${string}`; type AbiParameter = Pretty<{ type: ResolvedAbiType; name?: string | undefined; /** Representation used by Solidity compiler */ internalType?: AbiInternalType | undefined; } & ({ type: Exclude; } | { type: SolidityTuple | SolidityArrayWithTuple; components: readonly AbiParameter[]; })>; /** Kind of {@link AbiParameter} */ type AbiParameterKind = 'inputs' | 'outputs'; type TypedDataDomain = { chainId?: number | bigint | undefined; name?: string | undefined; salt?: ResolvedRegister['bytesType']['outputs'] | undefined; verifyingContract?: Address$1 | undefined; version?: string | undefined; }; type TypedDataType = Exclude; type TypedDataParameter = { name: string; type: TypedDataType | keyof TypedData | `${keyof TypedData}[${string | ''}]`; }; /** * [EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A) Typed Data Specification */ type TypedData = Pretty & { [_ in TypedDataType]?: never }>; //#endregion //#region ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/types/utils.d.ts /** * Converts {@link AbiType} to corresponding TypeScript primitive type. * * Does not include full array or tuple conversion. Use {@link AbiParameterToPrimitiveType} to fully convert arrays and tuples. * * @param abiType - {@link AbiType} to convert to TypeScript representation * @param abiParameterKind - Optional {@link AbiParameterKind} to narrow by parameter type * @returns TypeScript primitive type */ type AbiTypeToPrimitiveType = abiType extends SolidityBytes ? PrimitiveTypeLookup[abiType][abiParameterKind] : PrimitiveTypeLookup[abiType]; interface PrimitiveTypeLookup extends SolidityIntMap, SolidityByteMap, SolidityArrayMap { address: ResolvedRegister['addressType']; bool: boolean; function: `${ResolvedRegister['addressType']}${string}`; string: string; tuple: Record; } type SolidityIntMap = { [_ in SolidityInt]: _ extends `${'u' | ''}int${infer bits extends keyof BitsTypeLookup}` ? BitsTypeLookup[bits] : never }; type SolidityByteMap = { [_ in SolidityBytes]: ResolvedRegister['bytesType'] }; type SolidityArrayMap = { [_ in SolidityArray]: readonly unknown[] }; type GreaterThan48Bits = Exclude; type LessThanOrEqualTo48Bits = Exclude; type NoBits = ''; type BitsTypeLookup = { [key in MBits]: ResolvedRegister[key extends LessThanOrEqualTo48Bits ? 'intType' : 'bigIntType'] }; /** * Converts {@link AbiParameter} to corresponding TypeScript primitive type. * * @param abiParameter - {@link AbiParameter} to convert to TypeScript representation * @param abiParameterKind - Optional {@link AbiParameterKind} to narrow by parameter type * @returns TypeScript primitive type */ type AbiParameterToPrimitiveType = abiParameter['type'] extends AbiBasicType ? AbiTypeToPrimitiveType : abiParameter extends { type: SolidityTuple; components: infer components extends readonly AbiParameter[]; } ? AbiComponentsToPrimitiveType : MaybeExtractArrayParameterType extends [infer head extends string, infer size] ? AbiArrayToPrimitiveType : ResolvedRegister['strictAbiType'] extends true ? Error$1<`Unknown type '${abiParameter['type'] & string}'.`> : abiParameter extends { components: Error$1; } ? abiParameter['components'] : unknown; type AbiBasicType = Exclude; type AbiComponentsToPrimitiveType = components$1 extends readonly [] ? [] : components$1[number]['name'] extends Exclude ? { [component in components$1[number] as component['name'] & {}]: AbiParameterToPrimitiveType } : { [key in keyof components$1]: AbiParameterToPrimitiveType }; type MaybeExtractArrayParameterType = /** * First, infer `Head` against a known size type (either fixed-length array value or `""`). * * | Input | Head | * | --------------- | ------------ | * | `string[]` | `string` | * | `string[][][3]` | `string[][]` | */ type$1 extends `${infer head}[${'' | `${SolidityFixedArrayRange}`}]` ? type$1 extends `${head}[${infer size}]` ? [head, size] : undefined : undefined; type AbiArrayToPrimitiveType = size$1 extends keyof SolidityFixedArraySizeLookup ? Tuple, abiParameterKind>, SolidityFixedArraySizeLookup[size$1]> : readonly AbiParameterToPrimitiveType, abiParameterKind>[]; /** * Converts array of {@link AbiParameter} to corresponding TypeScript primitive types. * * @param abiParameters - Array of {@link AbiParameter} to convert to TypeScript representations * @param abiParameterKind - Optional {@link AbiParameterKind} to narrow by parameter type * @returns Array of TypeScript primitive types */ /** * Converts {@link typedData} to corresponding TypeScript primitive types. * * @param typedData - {@link TypedData} to convert * @param abiParameterKind - Optional {@link AbiParameterKind} to narrow by parameter type * @returns Union of TypeScript primitive types */ type TypedDataToPrimitiveTypes = { [key in keyof typedData]: { [key2 in typedData[key][number] as key2['name']]: key2['type'] extends key ? Error$1<`Cannot convert self-referencing struct '${key2['type']}' to primitive type.`> : key2['type'] extends keyof typedData ? key2['type'] extends keyof keyReferences ? Error$1<`Circular reference detected. '${key2['type']}' is a circular reference.`> : TypedDataToPrimitiveTypes, abiParameterKind, keyReferences & { [_ in key2['type'] | key]: true }>[key2['type']] : key2['type'] extends `${infer type extends keyof typedData & string}[${infer tail}]` ? AbiParameterToPrimitiveType<{ name: key2['name']; type: `tuple[${tail}]`; components: _TypedDataParametersToAbiParameters; }, abiParameterKind> : key2['type'] extends TypedDataType ? AbiParameterToPrimitiveType : Error$1<`Cannot convert unknown type '${key2['type']}' to primitive type.`> } } & unknown; type _TypedDataParametersToAbiParameters = { [key in keyof typedDataParameters]: typedDataParameters[key] extends infer typedDataParameter extends { name: string; type: unknown; } ? typedDataParameter['type'] extends keyof typedData & string ? { name: typedDataParameter['name']; type: 'tuple'; components: typedDataParameter['type'] extends keyof keyReferences ? Error$1<`Circular reference detected. '${typedDataParameter['type']}' is a circular reference.`> : _TypedDataParametersToAbiParameters; } : typedDataParameter['type'] extends `${infer type extends keyof typedData & string}[${infer tail}]` ? { name: typedDataParameter['name']; type: `tuple[${tail}]`; components: type extends keyof keyReferences ? Error$1<`Circular reference detected. '${typedDataParameter['type']}' is a circular reference.`> : _TypedDataParametersToAbiParameters; } : typedDataParameter : never }; //#endregion //#region ../../node_modules/.pnpm/viem@2.54.6_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_types/types/utils.d.ts /** * @description Combines members of an intersection into a readable type. * * @see {@link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg} * @example * Prettify<{ a: string } & { b: string } & { c: number, d: bigint }> * => { a: string, b: string, c: number, d: bigint } */ type Prettify = { [K in keyof T]: T[K] } & {}; //#endregion //#region ../../node_modules/.pnpm/viem@2.54.6_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_types/types/typedData.d.ts type TypedDataDefinition = TypedData, primaryType$1 extends keyof typedData | 'EIP712Domain' = keyof typedData, primaryTypes = (typedData extends TypedData ? keyof typedData : string)> = primaryType$1 extends 'EIP712Domain' ? EIP712DomainDefinition : MessageDefinition; type MessageDefinition = TypedData, primaryType$1 extends keyof typedData = keyof typedData, messageKey extends string = 'message', primaryTypes = (typedData extends TypedData ? keyof typedData : string), schema extends Record = (typedData extends TypedData ? TypedDataToPrimitiveTypes : Record), message$1 = schema[primaryType$1 extends keyof schema ? primaryType$1 : keyof schema]> = { types: typedData; } & { primaryType: primaryTypes | (primaryType$1 extends primaryTypes ? primaryType$1 : never); domain?: (schema extends { EIP712Domain: infer domain; } ? domain : Prettify) | undefined; } & { [k in messageKey]: { [_: string]: any; } extends message$1 ? Record : message$1 }; type EIP712DomainDefinition = TypedData, primaryType$1 extends 'EIP712Domain' = 'EIP712Domain', schema extends Record = (typedData extends TypedData ? TypedDataToPrimitiveTypes : Record)> = { types?: typedData | undefined; } & { primaryType: 'EIP712Domain' | primaryType$1; domain: schema extends { EIP712Domain: infer domain; } ? domain : Prettify; message?: undefined; }; //#endregion //#region src/core/accounts/PrivateKey.d.ts /** * Class for wrapping SigningKey that is used for signature creation and public key derivation. * * @category Crypto Utility Classes */ declare class PrivateKey { private wallet; private constructor(); /** * Generate new private key with random mnemonic phrase * @returns { privateKey: PrivateKey, mnemonic: string } */ static generate(): { privateKey: PrivateKey; mnemonic: string; }; /** * Create a PrivateKey instance from a given mnemonic phrase and a HD derivation path. * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes. * @param {string} words the mnemonic phrase * @param {string|undefined} path the HD path that follows the BIP32 standard (optional) * @returns {PrivateKey} Initialized PrivateKey object */ static fromMnemonic(words: string, path?: string): PrivateKey; /** * Create a PrivateKey instance from a given private key and a HD derivation path. * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes. * @param {string} privateKey the private key * @returns {PrivateKey} Initialized PrivateKey object * * @deprecated - use fromHex instead */ static fromPrivateKey(privateKey: string): PrivateKey; /** * Create a PrivateKey instance from a given private key and a HD derivation path. * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes. * @param {string} privateKey the private key * @returns {PrivateKey} Initialized PrivateKey object */ static fromHex(privateKey: string | Uint8Array): PrivateKey; /** * Return the private key in hex * @returns {string} **/ toPrivateKeyHex(): string; /** * Return the PublicKey associated with this private key. * @returns {PublicKey} a Public key that can be used to verify the signatures made with this PrivateKey **/ toPublicKey(): PublicKey; /** * Return the hex address associated with this private key. * @returns {string} */ toHex(): string; /** * Return the Address associated with this private key. * @returns {Address} **/ toAddress(): Address; /** * Return the Bech32 address associated with this private key. * @returns {string} **/ toBech32(): string; /** * Sign the given message using the wallet's _signingKey function. * @param {string} messageBytes: the message that will be hashed and signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ sign(messageBytes: Uint8Array): Uint8Array; /** * Sign the given message using the edcsa sign_deterministic function. * @param {Buffer} messageBytes: the message that will be hashed and signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ signEcda(messageBytes: Uint8Array): Uint8Array; /** * Sign the given message using the wallet's _signingKey function. * @param {string} messageHashedBytes: the message that will be signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ signHashed(messageHashedBytes: Uint8Array): Uint8Array; /** * Sign the given message using the edcsa sign_deterministic function. * @param {Buffer} messageHashedBytes: the message that will be signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ signHashedEcda(messageHashedBytes: Uint8Array): Uint8Array; /** * Sign the given typed data using the edcsa sign_deterministic function. * @param {TypedDataDefinition | any} eip712Data: the typed data that will be hashed and signed * @returns {Uint8Array} a signature of this private key over the given message */ signTypedData(eip712Data: TypedDataDefinition | any): Promise; /** * Sign the given typed data using the edcsa sign_deterministic function. * @param {Buffer} eip712Data: the typed data that will be signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ signHashedTypedData(eip712Data: Uint8Array): Uint8Array; /** * Verify signature using EIP712 typed data * and the publicKey * * (params are passed as an object) * * @param {string} signature: the signature to verify in hex * @param {any} eip712: the EIP712 typed data to verify against * @param {string} publicKey: the public key to verify against in hex * */ static verifySignature({ signature, eip712, publicKey }: { signature: string; eip712: any; publicKey: string; }): Promise; /** * Verify signature using EIP712 typed data * and the publicKey * * (params are passed as an object) * * @param {string} signature: the signature to verify in hex * @param {any} eip712: the EIP712 typed data to verify against * @param {string} publicKey: the public key to verify against in hex * */ verifyThisPkSignature({ signature, eip712 }: { signature: string; eip712: any; }): Promise; /** * Verify cosmos signature EIP712 typed * data from the TxRaw and verify the signature * that's included in the TxRaw * * (params are passed as an object) * * @param {CosmosTxV1Beta1TxPb.TxRaw} txRaw: the signature to verify in hex * @param {object} signer: the public key and the account number to verify against **/ static verifyCosmosSignature({ txRaw, signer }: { txRaw: TxRaw; signer: { accountNumber: number | string; publicKey: string; }; }): Promise; /** * Verify signature using ADR-36 sign doc * and the publicKey * * (params are passed as an object) * * @param {string} signature: the signature to verify in hex * @param {any} signDoc: the signDoc to verify against * @param {string} publicKey:the public key to verify against in hex * */ static verifyArbitrarySignature({ signature, signDoc, publicKey }: { signature: string; signDoc: Uint8Array; publicKey: string; }): boolean; } //#endregion //#region src/types/auth.d.ts interface AccountDetails { address: string; pubKey: { type: string; key: string; }; accountNumber: number; sequence: number; } //#endregion //#region src/core/accounts/BaseAccount.d.ts /** * @category Utility Classes */ declare class BaseAccount extends Address { accountNumber: number; sequence: number; pubKey: { type: string; key: string; }; constructor({ address, accountNumber, sequence, pubKey }: { address: string; accountNumber: number; sequence: number; pubKey: { type: string; key: string; }; }); static fromRestApi(accountResponse: AccountResponse): BaseAccount; static fromRestCosmosApi(accountResponse: BaseAccountRestResponse): BaseAccount; incrementSequence(): this; toAccountDetails(): AccountDetails; } //#endregion //#region src/core/tx/broadcaster/MsgBroadcasterWithPk.d.ts interface MsgBroadcasterTxOptions { msgs: Msgs | Msgs[]; memo?: string; gas?: { gasPrice?: string; gas?: number; /** gas limit */ feePayer?: string; granter?: string; }; } interface MsgBroadcasterWithPkOptions { network?: Network; /** * Only used if we want to override the default * endpoints taken from the network param */ endpoints?: { indexer: string; grpc: string; rest: string; }; privateKey: string | PrivateKey; evmChainId?: EvmChainId; chainId?: ChainId; simulateTx?: boolean; loggingEnabled?: boolean; useRest?: boolean; txTimeout?: number; gasBufferCoefficient?: number; txTimeoutOnFeeDelegation?: boolean; useFixedGas?: boolean; } /** * This class is used to broadcast transactions * using a privateKey as a signer * for the transactions and broadcasting * the transactions directly to the node * * Mainly used for working in a Node Environment */ declare class MsgBroadcasterWithPk { endpoints: NetworkEndpoints; chainId: ChainId; evmChainId?: EvmChainId; privateKey: PrivateKey; simulateTx: boolean; txTimeoutOnFeeDelegation: boolean; useRest: boolean; gasBufferCoefficient: number; txTimeout: number; useFixedGas: boolean; constructor(options: MsgBroadcasterWithPkOptions); /** * Broadcasting the transaction using the client * * @param tx * @returns {string} transaction hash */ broadcast(transaction: MsgBroadcasterTxOptions, accountDetails?: AccountDetails): Promise; /** * Broadcasting the transaction with fee delegation services * * @param tx * @returns {string} transaction hash */ broadcastWithFeeDelegation(transaction: MsgBroadcasterTxOptions): Promise; /** * Broadcasting the transaction using the client * * @param tx * @returns {string} transaction hash */ simulate(transaction: MsgBroadcasterTxOptions, accountDetails?: AccountDetails): Promise<{ result: { data: string | Uint8Array; log: string; eventsList: Event$1[]; events?: Event$1[] | undefined; msgResponses?: Any[] | undefined; }; gasInfo: { gasWanted: number; gasUsed: number; }; }>; /** * In case we don't want to simulate the transaction * we get the gas limit based on the message type. * * If we want to simulate the transaction we set the * gas limit based on the simulation and add a small multiplier * to be safe (factor of 1.1 (or user specified)) */ private getTxWithStdFee; /** * Create TxRaw and simulate it */ private simulateTxRaw; private prepareTxForBroadcast; private getAccountDetails; private getTimeoutHeight; private broadcastTxRaw; } //#endregion //#region src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.d.ts declare namespace ExecArgNeptuneDeposit { interface Params {} interface Data {} } /** * @category Contract Exec Arguments */ declare class ExecArgNeptuneDeposit extends ExecArgBase { static fromJSON(params: ExecArgNeptuneDeposit.Params): ExecArgNeptuneDeposit; toData(): ExecArgNeptuneDeposit.Data; toExecData(): ExecDataRepresentation; } //#endregion //#region src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.d.ts declare namespace ExecArgNeptuneWithdraw { interface Params { amount: string; contract: string; } interface Data { amount: string; contract: string; msg: string; } } /** * @category Contract Exec Arguments */ declare class ExecArgNeptuneWithdraw extends ExecArgBase { static fromJSON(params: ExecArgNeptuneWithdraw.Params): ExecArgNeptuneWithdraw; toData(): ExecArgNeptuneWithdraw.Data; toExecData(): ExecDataRepresentation; } //#endregion //#region src/core/modules/authz/utils.d.ts declare const msgsOrMsgExecMsgs: (msgs: Msgs | Msgs[], grantee?: string) => Msgs[]; declare const getGenericAuthorizationFromMessageType: (messageTypeUrl: string) => Any; //#endregion //#region src/core/modules/authz/types.d.ts declare const GrantAuthorizationType: { readonly GenericAuthorization: "GenericAuthorization"; readonly ContractExecutionAuthorization: "ContractExecutionAuthorization"; }; type GrantAuthorizationType = (typeof GrantAuthorizationType)[keyof typeof GrantAuthorizationType]; //#endregion //#region src/core/modules/authz/msgs/authorizations/GenericAuthorization.d.ts declare namespace GenericAuthorization { interface Params { messageTypeUrl?: string; authorization?: Any; } type Any = Any; type Proto = GenericAuthorization$2; type Amino = Object; } /** * @category Contract Exec Arguments */ declare class GenericAuthorization extends BaseAuthorization { static fromJSON(params: GenericAuthorization.Params): GenericAuthorization; toProto(): GenericAuthorization.Proto; toAmino(): GenericAuthorization.Amino; toWeb3(): GenericAuthorization.Amino; toAny(): Any; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmwasm/wasm/v1/authz_pb.d.ts /** * ContractExecutionAuthorization defines authorization for wasm execute. * Since: wasmd 0.30 * * @generated from protobuf message cosmwasm.wasm.v1.ContractExecutionAuthorization */ interface ContractExecutionAuthorization$1 { /** * Grants for contract executions * * @generated from protobuf field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1 */ grants: ContractGrant[]; } /** * ContractGrant a granted permission for a single contract * Since: wasmd 0.30 * * @generated from protobuf message cosmwasm.wasm.v1.ContractGrant */ interface ContractGrant { /** * Contract is the bech32 address of the smart contract * * @generated from protobuf field: string contract = 1 */ contract: string; /** * Limit defines execution limits that are enforced and updated when the grant * is applied. When the limit lapsed the grant is removed. * * @generated from protobuf field: google.protobuf.Any limit = 2 */ limit?: Any; /** * Filter define more fine-grained control on the message payload passed * to the contract in the operation. When no filter applies on execution, the * operation is prohibited. * * @generated from protobuf field: google.protobuf.Any filter = 3 */ filter?: Any; } /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.ContractExecutionAuthorization */ declare const ContractExecutionAuthorization$1 = new ContractExecutionAuthorization$Type(); /** * @generated MessageType for protobuf message cosmwasm.wasm.v1.ContractGrant */ declare const ContractGrant = new ContractGrant$Type(); //#endregion //#region src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.d.ts declare namespace ContractExecutionAuthorization { interface Params { contract: string; limit?: { maxCalls?: number; amounts?: Coin[]; }; filter?: { acceptedMessagesKeys: string[]; }; } type Any = Any; type Proto = ContractExecutionAuthorization$1; type Amino = Object; } /** * @category Contract Exec Arguments */ declare class ContractExecutionAuthorization extends BaseAuthorization { static fromJSON(params: ContractExecutionAuthorization.Params): ContractExecutionAuthorization; toAny(): Any; toProto(): ContractExecutionAuthorization.Proto; toAmino(): ContractExecutionAuthorization.Amino; toWeb3(): ContractExecutionAuthorization.Amino; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/authz_pb.d.ts /** * ContractExecutionAuthorization defines authorization for wasm execute. * Since: wasmd 0.30 * * @generated from protobuf message injective.wasmx.v1.ContractExecutionCompatAuthorization */ interface ContractExecutionCompatAuthorization$1 { /** * Grants for contract executions * * @generated from protobuf field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1 */ grants: ContractGrant[]; } /** * @generated MessageType for protobuf message injective.wasmx.v1.ContractExecutionCompatAuthorization */ declare const ContractExecutionCompatAuthorization$1 = new ContractExecutionCompatAuthorization$Type(); //#endregion //#region src/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.d.ts declare namespace ContractExecutionCompatAuthorization { interface Params { contract: string; limit?: { maxCalls?: number; amounts?: Coin[]; }; filter?: { acceptedMessagesKeys: string[]; }; } type Any = Any; type Proto = ContractExecutionCompatAuthorization$1; type Amino = Object; } /** * @category Contract Exec Arguments */ declare class ContractExecutionCompatAuthorization extends BaseAuthorization { static fromJSON(params: ContractExecutionCompatAuthorization.Params): ContractExecutionCompatAuthorization; toAny(): Any; toProto(): ContractExecutionCompatAuthorization.Proto; toAmino(): ContractExecutionCompatAuthorization.Amino; toWeb3(): ContractExecutionCompatAuthorization.Amino; } //#endregion //#region src/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.d.ts declare namespace MsgInstantBinaryOptionsMarketLaunch { interface Params { proposer: string; market: { ticker: string; admin: string; oracleSymbol: string; oracleProvider: string; oracleScaleFactor: number; oracleType: OracleType; quoteDenom: string; makerFeeRate: string; takerFeeRate: string; expirationTimestamp: number; settlementTimestamp: number; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; }; } type Proto = MsgInstantBinaryOptionsMarketLaunch$2; } /** * @category Messages */ declare class MsgInstantBinaryOptionsMarketLaunch extends MsgBase { static fromJSON(params: MsgInstantBinaryOptionsMarketLaunch.Params): MsgInstantBinaryOptionsMarketLaunch; toProto(): MsgInstantBinaryOptionsMarketLaunch$2; toData(): { sender: string; ticker: string; oracleSymbol: string; oracleProvider: string; oracleType: OracleType; oracleScaleFactor: number; makerFeeRate: string; takerFeeRate: string; expirationTimestamp: bigint; settlementTimestamp: bigint; admin: string; quoteDenom: string; minPriceTickSize: string; minQuantityTickSize: string; minNotional: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_type: OracleType; oracle_scale_factor: number; maker_fee_rate: string; taker_fee_rate: string; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; }; }; toWeb3Gw(): { sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_type: OracleType; oracle_scale_factor: number; maker_fee_rate: string; taker_fee_rate: string; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; '@type': string; }; toEip712(): { type: string; value: { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; taker_fee_rate: string; maker_fee_rate: string; sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_type: OracleType; oracle_scale_factor: number; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; }; }; toEip712V2(): { min_price_tick_size: string; min_quantity_tick_size: string; min_notional: string; taker_fee_rate: string; maker_fee_rate: string; oracle_type: string; sender: string; ticker: string; oracle_symbol: string; oracle_provider: string; oracle_scale_factor: number; expiration_timestamp: string; settlement_timestamp: string; admin: string; quote_denom: string; '@type': string; }; toDirectSign(): { type: string; message: MsgInstantBinaryOptionsMarketLaunch$2; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/exchange/utils/classes/OrderHashManager.d.ts interface OrderInfo { subaccountId: string; feeRecipient: string; price: string; quantity: string; } interface SpotOrder { marketId: string; orderInfo: OrderInfo; orderType: number; triggerPrice?: string; } interface DerivativeOrder extends SpotOrder { margin: string; } declare class OrderHashManager { subaccountIndex: number; address: string; network: Network; nonce: number; constructor({ network, address, subaccountIndex }: { network: Network; address: string; subaccountIndex?: number; }); incrementNonce(): void; setNonce(nonce: number): void; /** * Keep in mind that the order params have to be transformed * in proper format that's supported on the chain */ getOrderHashes({ spotOrders, derivativeOrders }: { spotOrders: SpotOrder[]; derivativeOrders: DerivativeOrder[]; }): Promise<{ derivativeOrderHashes: string[]; spotOrderHashes: string[]; }>; /** * Keep in mind that the order params have to be transformed * in proper format that's supported on the chain */ getDerivativeOrderHashes(orders: DerivativeOrder[]): Promise; /** * Keep in mind that the order params have to be transformed * in proper format that's supported on the chain */ getSpotOrderHashes(orders: SpotOrder[]): Promise; getSpotOrderHashFromMsg(msg: MsgCreateSpotLimitOrder): Promise; getDerivativeOrderHashFromMsg(msg: MsgCreateDerivativeLimitOrder): Promise; private initSubaccountNonce; private hashTypedData; private incrementNonceAndReturn; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/tx_pb.d.ts /** * @generated from protobuf message injective.permissions.v1beta1.MsgUpdateParams */ interface MsgUpdateParams$1 { /** * authority is the address of the governance account. * * @generated from protobuf field: string authority = 1 */ authority: string; /** * params defines the permissions parameters to update. * * NOTE: All parameters must be supplied. * * @generated from protobuf field: injective.permissions.v1beta1.Params params = 2 */ params?: Params$3; } /** * @generated from protobuf message injective.permissions.v1beta1.MsgCreateNamespace */ interface MsgCreateNamespace$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The namespace information * * @generated from protobuf field: injective.permissions.v1beta1.Namespace namespace = 2 */ namespace?: Namespace; } /** * @generated from protobuf message injective.permissions.v1beta1.MsgUpdateNamespace */ interface MsgUpdateNamespace$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * denom whose namespace updates are to be applied * * @generated from protobuf field: string denom = 2 */ denom: string; /** * address of wasm smart contract to apply code-based restrictions * * @generated from protobuf field: injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook wasm_hook = 3 */ wasmHook?: MsgUpdateNamespace_SetContractHook; /** * role permissions to update * * @generated from protobuf field: repeated injective.permissions.v1beta1.Role role_permissions = 4 */ rolePermissions: Role[]; /** * role managers to update * * @generated from protobuf field: repeated injective.permissions.v1beta1.RoleManager role_managers = 5 */ roleManagers: RoleManager[]; /** * policy statuses to update * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 6 */ policyStatuses: PolicyStatus[]; /** * policy manager capabilities to update * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 7 */ policyManagerCapabilities: PolicyManagerCapability[]; /** * address of EVM smart contract to apply code-based restrictions * * @generated from protobuf field: injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook evm_hook = 8 */ evmHook?: MsgUpdateNamespace_SetContractHook; /** * address of EVM smart contract to invoke after each successful transfer * * @generated from protobuf field: injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook evm_post_hook = 9 */ evmPostHook?: MsgUpdateNamespace_SetContractHook; } /** * @generated from protobuf message injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook */ interface MsgUpdateNamespace_SetContractHook { /** * @generated from protobuf field: string new_value = 1 */ newValue: string; } /** * @generated from protobuf message injective.permissions.v1beta1.MsgUpdateActorRoles */ interface MsgUpdateActorRoles$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The namespace denom to which this updates are applied * * @generated from protobuf field: string denom = 2 */ denom: string; /** * The roles to add for given actors * * @generated from protobuf field: repeated injective.permissions.v1beta1.RoleActors role_actors_to_add = 3 */ roleActorsToAdd: RoleActors[]; /** * The roles to revoke from given actors * * @generated from protobuf field: repeated injective.permissions.v1beta1.RoleActors role_actors_to_revoke = 5 */ roleActorsToRevoke: RoleActors[]; } /** * @generated from protobuf message injective.permissions.v1beta1.MsgClaimVoucher */ interface MsgClaimVoucher$1 { /** * The sender's Injective address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * The token denom of the voucher to claim * * @generated from protobuf field: string denom = 2 */ denom: string; } /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgUpdateParams */ declare const MsgUpdateParams$1 = new MsgUpdateParams$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgCreateNamespace */ declare const MsgCreateNamespace$1 = new MsgCreateNamespace$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgUpdateNamespace */ declare const MsgUpdateNamespace$1 = new MsgUpdateNamespace$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook */ declare const MsgUpdateNamespace_SetContractHook = new MsgUpdateNamespace_SetContractHook$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgUpdateActorRoles */ declare const MsgUpdateActorRoles$1 = new MsgUpdateActorRoles$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.MsgClaimVoucher */ declare const MsgClaimVoucher$1 = new MsgClaimVoucher$Type(); //#endregion //#region src/core/modules/permissions/msgs/MsgClaimVoucher.d.ts declare namespace MsgClaimVoucher { interface Params { sender: string; denom: string; } type Proto = MsgClaimVoucher$1; } /** * @category Messages */ declare class MsgClaimVoucher extends MsgBase { static fromJSON(params: MsgClaimVoucher.Params): MsgClaimVoucher; toProto(): MsgClaimVoucher$1; toData(): { sender: string; denom: string; '@type': string; }; toAmino(): { type: string; value: { sender: string; denom: string; }; }; toWeb3Gw(): { sender: string; denom: string; '@type': string; }; toDirectSign(): { type: string; message: MsgClaimVoucher$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/permissions/msgs/MsgUpdateParams.d.ts declare namespace MsgUpdateParams { interface Params { authority: string; params: { wasmHookQueryMaxGas: string; deprecatedEnforcedRestrictionsContracts?: string[]; enforcedRestrictionsEvmContracts?: { contractAddress: string; pauseEventSignature: string; unpauseEventSignature: string; blacklistEventSignature: string; unblacklistEventSignature: string; }[]; }; } type Proto = MsgUpdateParams$1; } /** * @category Messages */ declare class MsgUpdateParams extends MsgBase { static fromJSON(params: MsgUpdateParams.Params): MsgUpdateParams; toProto(): MsgUpdateParams$1; toData(): { authority: string; params?: Params$3; '@type': string; }; toAmino(): { type: string; value: { authority: string; params: { contract_hook_max_gas: string; deprecated_enforced_restrictions_contracts: string[]; enforced_restrictions_evm_contracts: { contract_address: string; pause_event_signature: string; unpause_event_signature: string; blacklist_event_signature: string; unblacklist_event_signature: string; }[]; }; }; }; toWeb3Gw(): { authority: string; params: { contract_hook_max_gas: string; deprecated_enforced_restrictions_contracts: string[]; enforced_restrictions_evm_contracts: { contract_address: string; pause_event_signature: string; unpause_event_signature: string; blacklist_event_signature: string; unblacklist_event_signature: string; }[]; }; '@type': string; }; toDirectSign(): { type: string; message: MsgUpdateParams$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/permissions/msgs/MsgCreateNamespace.d.ts declare namespace MsgCreateNamespace { interface Params { sender: string; namespace: { denom: string; evmHook: string; evmPostHook?: string; wasmHook: string; rolePermissions: PermissionRole[]; actorRoles: PermissionActorRoles[]; roleManagers: PermissionRoleManager[]; policyStatuses: PermissionPolicyStatus[]; policyManagerCapabilities: PermissionPolicyManagerCapability[]; }; } type Proto = MsgCreateNamespace$1; } /** * @category Messages */ declare class MsgCreateNamespace extends MsgBase { static fromJSON(params: MsgCreateNamespace.Params): MsgCreateNamespace; toProto(): MsgCreateNamespace$1; toData(): { sender: string; namespace?: Namespace; '@type': string; }; toAmino(): { type: string; value: { sender: string; namespace: { denom: string | undefined; wasm_hook: string | undefined; role_permissions: { name: string; role_id: number; permissions: number; }[]; actor_roles: { actor: string; roles: string[]; }[]; role_managers: { manager: string; roles: string[]; }[]; policy_statuses: { action: Action; is_disabled: boolean; is_sealed: boolean; }[]; policy_manager_capabilities: { manager: string; action: Action; can_disable: boolean; can_seal: boolean; }[]; evm_hook: string | undefined; evm_post_hook: string | undefined; }; }; }; toWeb3Gw(): { sender: string; namespace: { denom: string | undefined; wasm_hook: string | undefined; role_permissions: { name: string; role_id: number; permissions: number; }[]; actor_roles: { actor: string; roles: string[]; }[]; role_managers: { manager: string; roles: string[]; }[]; policy_statuses: { action: Action; is_disabled: boolean; is_sealed: boolean; }[]; policy_manager_capabilities: { manager: string; action: Action; can_disable: boolean; can_seal: boolean; }[]; evm_hook: string | undefined; evm_post_hook: string | undefined; }; '@type': string; }; toEip712(): never; toEip712V2(): { namespace: { denom: any; wasm_hook: any; role_permissions: any; actor_roles: any; role_managers: any; policy_statuses: any; policy_manager_capabilities: any; evm_hook: any; evm_post_hook: any; }; sender: string; '@type': string; }; toDirectSign(): { type: string; message: MsgCreateNamespace$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/permissions/msgs/MsgUpdateNamespace.d.ts declare namespace MsgUpdateNamespace { interface Params { sender: string; denom: string; evmHook?: string; evmPostHook?: string; wasmHook?: string; rolePermissions: PermissionRole[]; roleManagers: PermissionRoleManager[]; policyStatuses: PermissionPolicyStatus[]; policyManagerCapabilities: PermissionPolicyManagerCapability[]; } type Proto = MsgUpdateNamespace$1; } /** * @category Messages */ declare class MsgUpdateNamespace extends MsgBase { static fromJSON(params: MsgUpdateNamespace.Params): MsgUpdateNamespace; toProto(): MsgUpdateNamespace$1; toData(): { sender: string; denom: string; wasmHook?: MsgUpdateNamespace_SetContractHook; rolePermissions: Role[]; roleManagers: RoleManager[]; policyStatuses: PolicyStatus[]; policyManagerCapabilities: PolicyManagerCapability[]; evmHook?: MsgUpdateNamespace_SetContractHook; evmPostHook?: MsgUpdateNamespace_SetContractHook; '@type': string; }; toAmino(): { type: string; value: { sender: string; denom: string; wasm_hook: { new_value: string; } | undefined; role_permissions: { name: string; role_id: number; permissions: number; }[]; role_managers: { manager: string; roles: string[]; }[]; policy_statuses: { action: Action; is_disabled: boolean; is_sealed: boolean; }[]; policy_manager_capabilities: { manager: string; action: Action; can_disable: boolean; can_seal: boolean; }[]; evm_hook: { new_value: string; } | undefined; evm_post_hook: { new_value: string; } | null; }; }; toWeb3Gw(): { sender: string; denom: string; wasm_hook: { new_value: string; } | undefined; role_permissions: { name: string; role_id: number; permissions: number; }[]; role_managers: { manager: string; roles: string[]; }[]; policy_statuses: { action: Action; is_disabled: boolean; is_sealed: boolean; }[]; policy_manager_capabilities: { manager: string; action: Action; can_disable: boolean; can_seal: boolean; }[]; evm_hook: { new_value: string; } | undefined; evm_post_hook: { new_value: string; } | null; '@type': string; }; toEip712(): never; toEip712V2(): { policy_statuses: any[]; policy_manager_capabilities: any[]; sender: string; denom: string; wasm_hook: { new_value: string; } | undefined; role_permissions: { name: string; role_id: number; permissions: number; }[]; role_managers: { manager: string; roles: string[]; }[]; evm_hook: { new_value: string; } | undefined; evm_post_hook: { new_value: string; } | null; '@type': string; }; toDirectSign(): { type: string; message: MsgUpdateNamespace$1; }; toBinary(): Uint8Array; } //#endregion //#region src/core/modules/permissions/msgs/MsgUpdateActorRoles.d.ts declare namespace MsgUpdateActorRoles { interface Params { sender: string; denom: string; roleActorsToAdd: PermissionRoleActors[]; roleActorsToRevoke: PermissionRoleActors[]; } type Proto = MsgUpdateActorRoles$1; } /** * @category Messages */ declare class MsgUpdateActorRoles extends MsgBase { static fromJSON(params: MsgUpdateActorRoles.Params): MsgUpdateActorRoles; toProto(): MsgUpdateActorRoles$1; toData(): { sender: string; denom: string; roleActorsToAdd: RoleActors[]; roleActorsToRevoke: RoleActors[]; '@type': string; }; toAmino(): { type: string; value: { sender: string; denom: string; role_actors_to_add: { role: string; actors: string[]; }[]; role_actors_to_revoke: { role: string; actors: string[]; }[]; }; }; toWeb3Gw(): { sender: string; denom: string; role_actors_to_add: { role: string; actors: string[]; }[]; role_actors_to_revoke: { role: string; actors: string[]; }[]; '@type': string; }; toDirectSign(): { type: string; message: MsgUpdateActorRoles$1; }; toBinary(): Uint8Array; } //#endregion //#region src/utils/time.d.ts /** * Returns a timeout timestamp in milliseconds so its compatible * with the way Cosmos handles transactions */ declare const makeTimeoutTimestamp: (timeoutInMs?: number) => number; /** * Returns a timeout timestamp in nanoseconds so its compatible * with the way Cosmos handles transactions */ declare const makeTimeoutTimestampInNs: (timeoutInMs?: number) => number; /** * Converts a protobuf Timestamp to a JavaScript Date * @param timestamp - Protobuf Timestamp object with seconds and nanos fields * @returns JavaScript Date or undefined if timestamp is null/undefined */ declare const protobufTimestampToDate: (timestamp: { seconds: bigint | number; nanos: number; } | null | undefined) => Date | undefined; /** * Converts a protobuf Timestamp to Unix timestamp in seconds * @param timestamp - Protobuf Timestamp object with seconds and nanos fields * @returns Unix timestamp in seconds or 0 if timestamp is null/undefined */ declare const protobufTimestampToUnixSeconds: (timestamp: { seconds: bigint | number; nanos: number; } | null | undefined) => number; /** * Converts a protobuf Timestamp to Unix timestamp in milliseconds * @param timestamp - Protobuf Timestamp object with seconds and nanos fields * @returns Unix timestamp in milliseconds or 0 if timestamp is null/undefined */ declare const protobufTimestampToUnixMs: (timestamp: { seconds: bigint | number; nanos: number; } | null | undefined) => number; //#endregion //#region src/utils/msgs.d.ts declare const getFixedGasLimitBasedOnMessage: (msgs: Msgs | Msgs[]) => number | undefined; declare const getGasOptionsBasedOnMessage: ({ msgs, gas, simulateTx, useFixedGas }: { msgs: Msgs | Msgs[]; gas?: number; simulateTx: boolean; useFixedGas?: boolean; }) => { gas: string; gasLimit: number; estimateGas: boolean; }; declare const getGasPriceBasedOnMessage: (msgs: Msgs[]) => number; //#endregion //#region src/utils/grpc.d.ts /** * Creates a gRPC-Web transport using @protobuf-ts/grpcweb-transport. * This transport works in browser, Node.js, and React Native environments. * * @param baseUrl - The base URL of the gRPC-Web endpoint * @param options - Optional configuration for the transport * @returns A configured RpcTransport instance */ declare const getGrpcWebTransport: (baseUrl: string, options?: GrpcWebTransportAdditionalOptions) => RpcTransport; //#endregion //#region src/utils/ofac.d.ts declare const ofacList: string[]; //#endregion //#region src/utils/crypto.d.ts /** * Hash data to hex string using SHA256 * @param data - Base64 encoded string to hash * @returns Uppercase hex string */ declare const hashToHex: (data: string) => string; /** * Compute SHA256 hash of Uint8Array data * @param data - Data to hash * @returns SHA256 hash as Uint8Array */ declare const sha256: (data: Uint8Array) => Uint8Array; /** * Compute RIPEMD160 hash of Uint8Array data * @param data - Data to hash * @returns RIPEMD160 hash as Uint8Array */ declare const ripemd160: (data: Uint8Array) => Uint8Array; /** * Derive public key from private key * @param privateKey - Private key as Uint8Array * @returns Compressed public key (33 bytes) */ declare const privateKeyToPublicKey: (privateKey: Uint8Array) => Uint8Array; /** * Derive public key from private key hash (hex string) * @param privateKeyHash - Private key as hex string (with or without 0x prefix) * @returns Compressed public key (33 bytes) */ declare const privateKeyHashToPublicKey: (privateKeyHash: string) => Uint8Array; /** * Derive public key from private key and encode as base64 * @param privateKey - Private key as Uint8Array * @returns Base64 encoded compressed public key */ declare const privateKeyToPublicKeyBase64: (privateKey: Uint8Array) => string; /** * Derive public key from private key hash and encode as base64 * @param privateKeyHash - Private key as hex string (with or without 0x prefix) * @returns Base64 encoded compressed public key */ declare const privateKeyHashToPublicKeyBase64: (privateKeyHash: string) => string; /** * Hash only the domain portion of EIP-712 typed data * @param message - EIP-712 typed data definition * @returns Hash of the domain */ declare const domainHash: (message: TypedDataDefinition) => `0x${string}`; /** * Hash only the message portion of EIP-712 typed data * @param message - EIP-712 typed data definition * @returns Hash of the message */ declare const messageHash: (message: TypedDataDefinition) => `0x${string}`; /** * Decompress a compressed public key (starts with 02 or 03) * If the key is already 64 bytes, prepends '04' to make it uncompressed * @param startsWith02Or03 - Compressed public key hex string * @returns Decompressed public key hex string (without 04 prefix) */ declare function decompressPubKey(startsWith02Or03: string): string; /** * Convert public key to Ethereum address using Keccak256 * @param pubKey - Public key as Uint8Array (64 bytes uncompressed or 33 bytes compressed) * @param sanitize - If true, will decompress compressed keys before hashing * @returns Ethereum address (20 bytes) * @throws Error if pubKey length is not 64 after sanitization */ declare const publicKeyToAddress: (pubKey: Uint8Array, sanitize?: boolean) => Uint8Array; /** * Sanitize typed data by converting BigInt values to strings * Recursively processes objects and arrays * @param data - Data to sanitize (can be object, array, or primitive) * @returns Sanitized data with BigInt values converted to strings */ declare const sanitizeTypedData: (data: T) => T; interface BufferLike { toString(encoding?: string): string; } declare const TypedDataUtilsSanitizeData: (data: T) => T; declare const TypedDataUtilsHashStruct: (primaryType: string, data: any, types: any, _version?: string) => BufferLike; declare const SignTypedDataVersionV4: "V4"; type TypedMessageV4 = TypedDataDefinition; //#endregion //#region src/utils/helpers.d.ts declare const isServerSide: () => boolean; declare const isReactNative: () => boolean; declare const isNode: () => boolean; declare const isBrowser: () => boolean; declare const objectToJson: (object: Record, params?: { replacer?: (key: string, value: unknown) => unknown; indentation?: number; } | undefined) => string; declare const protoObjectToJson: (object: any, params?: { replacer?: (key: string, value: unknown) => unknown; indentation?: number; } | undefined) => string; declare const grpcCoinToUiCoin: (coin: Coin$1) => Coin; declare const sortObjectByKeysWithReduce: (obj: T) => T; declare const sortObjectByKeys: (obj: T) => T; declare const getErrorMessage: (error: any, endpoint: string) => string; /** * Converts value to it's number representation */ declare const hexToNumber: (value: string) => number; declare function isJsonString(str: T): boolean; /** * BigInt-safe JSON replacer function. * Converts BigInt values to strings during JSON serialization. */ declare const bigIntReplacer: (_key: string, value: unknown) => unknown; /** * Converts a potentially bigint value to a number. * Handles bigint, string, and other number-like types. * Returns 0 for null/undefined values. */ declare const bigIntToNumber: (value: unknown) => number; /** * Converts a potentially bigint value to a string. * Handles bigint, string, and other types that can be converted to string. * Returns empty string for null/undefined values. */ declare const bigIntToString: (value: unknown) => string; /** * Stringify an object to JSON with BigInt support. * Converts BigInt values to strings during serialization to prevent * "Do not know how to serialize a BigInt" errors. * * @param value - The value to serialize * @param replacer - Optional custom replacer function (BigInt handling is applied first) * @param space - Optional indentation for pretty printing * @returns JSON string */ declare const safeBigIntStringify: (value: unknown, replacer?: ((key: string, value: unknown) => unknown) | null, space?: string | number) => string; //#endregion //#region src/utils/numbers.d.ts declare const isNumber: (number: string | number) => boolean; declare const formatNumberToAllowableDecimals: (value: string | number, allowableDecimals: number, roundingMode?: BigNumber$1.RoundingMode) => string; declare const formatNumberToAllowableTensMultiplier: (value: string | number, tensMultiplier: number, roundingMode?: BigNumber$1.RoundingMode) => string; declare const formatAmountToAllowableAmount: (value: string | number, tensMultiplier: number) => string; declare const formatPriceToAllowablePrice: (value: string | number, tensMultiplier: number) => string; /** * * Legacy function - use formatNumberToAllowableDecimals * * @param value * @param allowableDecimals * @returns */ declare const formatAmountToAllowableDecimals: (value: string | number, allowableDecimals: number) => string; /** * * Legacy function - use formatNumberToAllowableDecimals * * @param value * @param allowableDecimals * @returns */ declare const formatPriceToAllowableDecimals: (value: string | number, allowableDecimals: number) => string; /** * On chain amounts queried from a sentry using the * gRPC API are returned with an extra decimal point * 18 places from the beginning, so we need to remove it * to get a workable amount */ declare const denomAmountFromGrpcChainDenomAmount: (value: string | number | BigNumber$1) => BigNumber$1; /** * @deprecated use toChainFormat from injectivelabs/utils instead * * On chain amounts broadcasted to a sentry directly using the * gRPC API should be passed with an extra decimal point * 18 places from the beginning, so we need to add it * to get a workable amount */ declare const denomAmountToGrpcChainDenomAmount: (value: string | number | BigNumber$1) => BigNumber$1; /** * @deprecated use toChainFormat from injectivelabs/utils instead * * On chain amounts (based on the cosmosSdk.Dec type) * broadcasted to a sentry directly using the * gRPC API should be passed with an extra decimal point * 18 places from the beginning (i.e multiplied by 1e18), so we need to add it * to get a workable amount */ declare const amountToCosmosSdkDecAmount: (value: string | number | BigNumber$1) => BigNumber$1; /** * * @deprecated use toChainFormat from injectivelabs/utils instead * * Amount that the chain requires is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const denomAmountToChainDenomAmount: ({ value, decimals }: { value: number | string | BigNumber$1; decimals?: number | string; }) => BigNumber$1; /** * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const denomAmountToChainDenomAmountToFixed: ({ value, decimals, tensMultiplier, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; decimals?: number | string; tensMultiplier?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead * * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const denomAmountFromChainDenomAmount: ({ value, decimals }: { value: number | string | BigNumber$1; decimals?: number | string; }) => BigNumber$1; /** * * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number stringified */ declare const denomAmountFromChainDenomAmountToFixed: ({ value, decimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; decimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toChainFormat from injectivelabs/utils instead * * Amount that the chain requires is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const derivativeMarginToChainMargin: ({ value, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain requires is in the x * 10^(quoteDecimals) format * where x is a human readable number stringified */ declare const derivativeMarginToChainMarginToFixed: ({ value, quoteDecimals, tensMultiplier, decimalPlaces, roundingMode }: { decimalPlaces?: number; tensMultiplier?: number; roundingMode?: BigNumber$1.RoundingMode; value: number | string | BigNumber$1; quoteDecimals?: number | string; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead * * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const derivativeMarginFromChainMargin: ({ value, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const derivativeMarginFromChainMarginToFixed: ({ value, quoteDecimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; quoteDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toChainFormat from injectivelabs/utils instead * Amount that the chain requires is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const derivativePriceToChainPrice: ({ value, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain requires is in the x * 10^(quoteDecimals) format * where x is a human readable number stringified */ declare const derivativePriceToChainPriceToFixed: ({ value, tensMultiplier, quoteDecimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; tensMultiplier?: number; quoteDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead * * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number */ declare const derivativePriceFromChainPrice: ({ value, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain returns is in the x * 10^(quoteDecimals) format * where x is a human readable number stringified */ declare const derivativePriceFromChainPriceToFixed: ({ value, quoteDecimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; quoteDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toBigNumber from injectivelabs/utils instead * Amount that the chain requires is in the x format * where x is a human readable number */ declare const derivativeQuantityToChainQuantity: ({ value }: { value: number | string | BigNumber$1; }) => BigNumber$1; /** * Amount that the chain requires is in the x format * where x is a human readable number stringified */ declare const derivativeQuantityToChainQuantityToFixed: ({ value, decimalPlaces, tensMultiplier, roundingMode }: { value: number | string | BigNumber$1; decimalPlaces?: number; tensMultiplier?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated * Amount that the chain requires is in the x format * where x is a human readable number */ declare const derivativeQuantityFromChainQuantity: ({ value }: { value: number | string | BigNumber$1; }) => BigNumber$1; /** * Amount that the chain requires is in the x format * where x is a human readable number stringified */ declare const derivativeQuantityFromChainQuantityToFixed: ({ value, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toChainFormat from injectivelabs/utils instead * Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format * where x is a human readable number */ declare const spotPriceToChainPrice: ({ value, baseDecimals, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; baseDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format * where x is a human readable number stringified */ declare const spotPriceToChainPriceToFixed: ({ value, baseDecimals, quoteDecimals, tensMultiplier, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; baseDecimals?: number | string; decimalPlaces?: number; tensMultiplier?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead * * Amount that the chain returns is in the x / 10^(quoteDecimals - baseDecimals) format * where x is a human readable number */ declare const spotPriceFromChainPrice: ({ value, baseDecimals, quoteDecimals }: { value: number | string | BigNumber$1; quoteDecimals?: number | string; baseDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain returns is in the x / 10^(quoteDecimals - baseDecimals) format * where x is a human readable number stringified */ declare const spotPriceFromChainPriceToFixed: ({ value, baseDecimals, quoteDecimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; quoteDecimals?: number; baseDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toChainFormat from injectivelabs/utils instead * * Amount that the chain requires is in the x * 10^(baseDecimals) format * where x is a human readable number */ declare const spotQuantityToChainQuantity: ({ value, baseDecimals }: { value: number | string | BigNumber$1; baseDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain requires is in the x * 10^(baseDecimals) format * where x is a human readable number */ declare const spotQuantityToChainQuantityToFixed: ({ value, baseDecimals, tensMultiplier, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; tensMultiplier?: number; baseDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead * * Amount that the chain returns is in the x * 10^(baseDecimals) format * where x is a human readable number */ declare const spotQuantityFromChainQuantity: ({ value, baseDecimals }: { value: number | string | BigNumber$1; baseDecimals?: number | string; }) => BigNumber$1; /** * Amount that the chain returns is in the x * 10^(baseDecimals) format * where x is a human readable number */ declare const spotQuantityFromChainQuantityToFixed: ({ value, baseDecimals, decimalPlaces, roundingMode }: { value: number | string | BigNumber$1; baseDecimals?: number; decimalPlaces?: number; roundingMode?: BigNumber$1.RoundingMode; }) => string; /** * @deprecated use toHumanReadable from injectivelabs/utils instead */ declare const cosmosSdkDecToBigNumber: (number: string | number | BigNumber$1) => BigNumber$1; declare const numberToCosmosSdkDecString: (value: string | number | BigNumber$1) => string; /** * This function returns a multiplier of 10 * based on the input. There are two cases: * * 1. If the number is less than 1, it returns a NEGATIVE * number which is the number of decimals the number has * * 2. If the number is higher than 1, it returns a POSITIVE * number which is the number of 10 multiplier the number has * * @param number * @returns {number} */ declare const getTensMultiplier: (number: number | string) => number; //#endregion //#region src/utils/markets.d.ts declare const getDerivativeMarketTensMultiplier: ({ quoteDecimals, minPriceTickSize, minQuantityTickSize }: { minPriceTickSize: number | string; minQuantityTickSize: number | string; quoteDecimals: number; }) => { quantityTensMultiplier: number; priceTensMultiplier: number; }; declare const getSpotMarketTensMultiplier: ({ baseDecimals, quoteDecimals, minPriceTickSize, minQuantityTickSize }: { minPriceTickSize: number | string; minQuantityTickSize: number | string; baseDecimals: number; quoteDecimals: number; }) => { priceTensMultiplier: number; quantityTensMultiplier: number; }; declare const getDerivativeMarketDecimals: ({ minPriceTickSize, minQuantityTickSize, quoteDecimals }: { minPriceTickSize: number | string; minQuantityTickSize: number | string; quoteDecimals: number; }) => { quantityDecimals: number; priceDecimals: number; }; declare const getSpotMarketDecimals: ({ minPriceTickSize, minQuantityTickSize, baseDecimals, quoteDecimals }: { minPriceTickSize: number | string; minQuantityTickSize: number | string; baseDecimals: number; quoteDecimals: number; }) => { priceDecimals: number; quantityDecimals: number; }; //#endregion //#region src/utils/address.d.ts /** * Convert Ethereum address to checksummed format (EIP-55) * @param ethAddress - Ethereum address (with or without 0x prefix) * @returns Checksummed Ethereum address */ declare const getChecksumAddress: (ethAddress: string) => string; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_accounts_rpc_pb.d.ts /** * @generated from protobuf message injective_accounts_rpc.PortfolioResponse */ interface PortfolioResponse$1 { /** * The portfolio of this account * * @generated from protobuf field: injective_accounts_rpc.AccountPortfolio portfolio = 1 */ portfolio?: AccountPortfolio$1; } /** * @generated from protobuf message injective_accounts_rpc.AccountPortfolio */ interface AccountPortfolio$1 { /** * The account's portfolio value in USD. * * @generated from protobuf field: string portfolio_value = 1 */ portfolioValue: string; /** * The account's available balance value in USD. * * @generated from protobuf field: string available_balance = 2 */ availableBalance: string; /** * The account's locked balance value in USD. * * @generated from protobuf field: string locked_balance = 3 */ lockedBalance: string; /** * The account's total unrealized PnL value in USD. * * @generated from protobuf field: string unrealized_pnl = 4 */ unrealizedPnl: string; /** * List of all subaccounts' portfolio * * @generated from protobuf field: repeated injective_accounts_rpc.SubaccountPortfolio subaccounts = 5 */ subaccounts: SubaccountPortfolio$1[]; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountPortfolio */ interface SubaccountPortfolio$1 { /** * The ID of this subaccount * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * The subaccount's available balance value in USD. * * @generated from protobuf field: string available_balance = 2 */ availableBalance: string; /** * The subaccount's locked balance value in USD. * * @generated from protobuf field: string locked_balance = 3 */ lockedBalance: string; /** * The subaccount's total unrealized PnL value in USD. * * @generated from protobuf field: string unrealized_pnl = 4 */ unrealizedPnl: string; } /** * @generated from protobuf message injective_accounts_rpc.OrderStatesResponse */ interface OrderStatesResponse { /** * List of the spot order state records * * @generated from protobuf field: repeated injective_accounts_rpc.OrderStateRecord spot_order_states = 1 */ spotOrderStates: OrderStateRecord[]; /** * List of the derivative order state records * * @generated from protobuf field: repeated injective_accounts_rpc.OrderStateRecord derivative_order_states = 2 */ derivativeOrderStates: OrderStateRecord[]; } /** * @generated from protobuf message injective_accounts_rpc.OrderStateRecord */ interface OrderStateRecord { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * The Market ID of the order * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The type of the order * * @generated from protobuf field: string order_type = 4 */ orderType: string; /** * The side of the order * * @generated from protobuf field: string order_side = 5 */ orderSide: string; /** * The state (status) of the order * * @generated from protobuf field: string state = 6 */ state: string; /** * The filled quantity of the order * * @generated from protobuf field: string quantity_filled = 7 */ quantityFilled: string; /** * The filled quantity of the order * * @generated from protobuf field: string quantity_remaining = 8 */ quantityRemaining: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 9 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 10 */ updatedAt: bigint; /** * Order prices * * @generated from protobuf field: string price = 11 */ price: string; /** * Margin for derivative order * * @generated from protobuf field: string margin = 12 */ margin: string; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountBalancesListResponse */ interface SubaccountBalancesListResponse { /** * List of subaccount balances * * @generated from protobuf field: repeated injective_accounts_rpc.SubaccountBalance balances = 1 */ balances: SubaccountBalance$2[]; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountBalance */ interface SubaccountBalance$2 { /** * Related subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * Account address, owner of this subaccount * * @generated from protobuf field: string account_address = 2 */ accountAddress: string; /** * Coin denom on the chain. * * @generated from protobuf field: string denom = 3 */ denom: string; /** * @generated from protobuf field: injective_accounts_rpc.SubaccountDeposit deposit = 4 */ deposit?: SubaccountDeposit$2; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountDeposit */ interface SubaccountDeposit$2 { /** * @generated from protobuf field: string total_balance = 1 */ totalBalance: string; /** * @generated from protobuf field: string available_balance = 2 */ availableBalance: string; /** * @generated from protobuf field: string total_balance_usd = 3 */ totalBalanceUsd: string; /** * @generated from protobuf field: string available_balance_usd = 4 */ availableBalanceUsd: string; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountBalanceEndpointResponse */ interface SubaccountBalanceEndpointResponse { /** * Subaccount balance * * @generated from protobuf field: injective_accounts_rpc.SubaccountBalance balance = 1 */ balance?: SubaccountBalance$2; } /** * @generated from protobuf message injective_accounts_rpc.StreamSubaccountBalanceResponse */ interface StreamSubaccountBalanceResponse { /** * Subaccount balance * * @generated from protobuf field: injective_accounts_rpc.SubaccountBalance balance = 1 */ balance?: SubaccountBalance$2; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountHistoryResponse */ interface SubaccountHistoryResponse { /** * List of subaccount transfers * * @generated from protobuf field: repeated injective_accounts_rpc.SubaccountBalanceTransfer transfers = 1 */ transfers: SubaccountBalanceTransfer[]; /** * @generated from protobuf field: injective_accounts_rpc.Paging paging = 2 */ paging?: Paging$6; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountBalanceTransfer */ interface SubaccountBalanceTransfer { /** * Type of the subaccount balance transfer * * @generated from protobuf field: string transfer_type = 1 */ transferType: string; /** * Subaccount ID of the sending side * * @generated from protobuf field: string src_subaccount_id = 2 */ srcSubaccountId: string; /** * Account address of the sending side * * @generated from protobuf field: string src_account_address = 3 */ srcAccountAddress: string; /** * Subaccount ID of the receiving side * * @generated from protobuf field: string dst_subaccount_id = 4 */ dstSubaccountId: string; /** * Account address of the receiving side * * @generated from protobuf field: string dst_account_address = 5 */ dstAccountAddress: string; /** * Coin amount of the transfer * * @generated from protobuf field: injective_accounts_rpc.CosmosCoin amount = 6 */ amount?: CosmosCoin$2; /** * Timestamp of the transfer in UNIX millis * * @generated from protobuf field: sint64 executed_at = 7 */ executedAt: bigint; } /** * @generated from protobuf message injective_accounts_rpc.CosmosCoin */ interface CosmosCoin$2 { /** * Coin denominator * * @generated from protobuf field: string denom = 1 */ denom: string; /** * Coin amount (big int) * * @generated from protobuf field: string amount = 2 */ amount: string; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_accounts_rpc.Paging */ interface Paging$6 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * @generated from protobuf message injective_accounts_rpc.SubaccountOrderSummaryResponse */ interface SubaccountOrderSummaryResponse { /** * Total count of subaccount's spot orders in given market and direction * * @generated from protobuf field: sint64 spot_orders_total = 1 */ spotOrdersTotal: bigint; /** * Total count of subaccount's derivative orders in given market and direction * * @generated from protobuf field: sint64 derivative_orders_total = 2 */ derivativeOrdersTotal: bigint; } /** * @generated from protobuf message injective_accounts_rpc.RewardsResponse */ interface RewardsResponse { /** * The trading rewards distributed * * @generated from protobuf field: repeated injective_accounts_rpc.Reward rewards = 1 */ rewards: Reward[]; } /** * @generated from protobuf message injective_accounts_rpc.Reward */ interface Reward { /** * Account address * * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * Reward coins distributed * * @generated from protobuf field: repeated injective_accounts_rpc.Coin rewards = 2 */ rewards: Coin$8[]; /** * Rewards distribution timestamp in UNIX millis. * * @generated from protobuf field: sint64 distributed_at = 3 */ distributedAt: bigint; } /** * @generated from protobuf message injective_accounts_rpc.Coin */ interface Coin$8 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated MessageType for protobuf message injective_accounts_rpc.PortfolioResponse */ declare const PortfolioResponse$1 = new PortfolioResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.AccountPortfolio */ declare const AccountPortfolio$1 = new AccountPortfolio$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountPortfolio */ declare const SubaccountPortfolio$1 = new SubaccountPortfolio$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.OrderStatesResponse */ declare const OrderStatesResponse = new OrderStatesResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.OrderStateRecord */ declare const OrderStateRecord = new OrderStateRecord$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountBalancesListResponse */ declare const SubaccountBalancesListResponse = new SubaccountBalancesListResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountBalance */ declare const SubaccountBalance$2 = new SubaccountBalance$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountDeposit */ declare const SubaccountDeposit$2 = new SubaccountDeposit$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountBalanceEndpointResponse */ declare const SubaccountBalanceEndpointResponse = new SubaccountBalanceEndpointResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.StreamSubaccountBalanceResponse */ declare const StreamSubaccountBalanceResponse = new StreamSubaccountBalanceResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountHistoryResponse */ declare const SubaccountHistoryResponse = new SubaccountHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountBalanceTransfer */ declare const SubaccountBalanceTransfer = new SubaccountBalanceTransfer$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.CosmosCoin */ declare const CosmosCoin$2 = new CosmosCoin$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.Paging */ declare const Paging$6 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.SubaccountOrderSummaryResponse */ declare const SubaccountOrderSummaryResponse = new SubaccountOrderSummaryResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.RewardsResponse */ declare const RewardsResponse = new RewardsResponse$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.Reward */ declare const Reward = new Reward$Type(); /** * @generated MessageType for protobuf message injective_accounts_rpc.Coin */ declare const Coin$8 = new Coin$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_explorer_rpc_pb.d.ts /** * @generated from protobuf message injective_explorer_rpc.GetAccountTxsResponse */ interface GetAccountTxsResponse { /** * @generated from protobuf field: injective_explorer_rpc.Paging paging = 1 */ paging?: Paging$5; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxDetailData data = 2 */ data: TxDetailData[]; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_explorer_rpc.Paging */ interface Paging$5 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * TxDetailData wraps tx data includes details information * * @generated from protobuf message injective_explorer_rpc.TxDetailData */ interface TxDetailData { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: uint64 block_number = 2 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 3 */ blockTimestamp: string; /** * @generated from protobuf field: string hash = 4 */ hash: string; /** * @generated from protobuf field: uint32 code = 5 */ code: number; /** * @generated from protobuf field: bytes data = 6 */ data: Uint8Array; /** * @generated from protobuf field: string info = 8 */ info: string; /** * @generated from protobuf field: sint64 gas_wanted = 9 */ gasWanted: bigint; /** * @generated from protobuf field: sint64 gas_used = 10 */ gasUsed: bigint; /** * @generated from protobuf field: injective_explorer_rpc.GasFee gas_fee = 11 */ gasFee?: GasFee$1; /** * @generated from protobuf field: string codespace = 12 */ codespace: string; /** * @generated from protobuf field: repeated injective_explorer_rpc.Event events = 13 */ events: Event[]; /** * @generated from protobuf field: string tx_type = 14 */ txType: string; /** * @generated from protobuf field: bytes messages = 15 */ messages: Uint8Array; /** * @generated from protobuf field: repeated injective_explorer_rpc.Signature signatures = 16 */ signatures: Signature$1[]; /** * @generated from protobuf field: string memo = 17 */ memo: string; /** * @generated from protobuf field: uint64 tx_number = 18 */ txNumber: bigint; /** * Block timestamp in unix milli * * @generated from protobuf field: uint64 block_unix_timestamp = 19 */ blockUnixTimestamp: bigint; /** * Transaction log indicating errors * * @generated from protobuf field: string error_log = 20 */ errorLog: string; /** * transaction event logs * * @generated from protobuf field: bytes logs = 21 */ logs: Uint8Array; /** * peggy bridge claim id, non-zero if tx contains MsgDepositClaim * * @generated from protobuf field: repeated sint64 claim_ids = 22 */ claimIds: bigint[]; } /** * @generated from protobuf message injective_explorer_rpc.GasFee */ interface GasFee$1 { /** * @generated from protobuf field: repeated injective_explorer_rpc.CosmosCoin amount = 1 */ amount: CosmosCoin$1[]; /** * @generated from protobuf field: uint64 gas_limit = 2 */ gasLimit: bigint; /** * @generated from protobuf field: string payer = 3 */ payer: string; /** * @generated from protobuf field: string granter = 4 */ granter: string; } /** * @generated from protobuf message injective_explorer_rpc.CosmosCoin */ interface CosmosCoin$1 { /** * Coin denominator * * @generated from protobuf field: string denom = 1 */ denom: string; /** * Coin amount (big int) * * @generated from protobuf field: string amount = 2 */ amount: string; } /** * @generated from protobuf message injective_explorer_rpc.Event */ interface Event { /** * @generated from protobuf field: string type = 1 */ type: string; /** * @generated from protobuf field: map attributes = 2 */ attributes: { [key: string]: string; }; } /** * Signature wraps tx signature * * @generated from protobuf message injective_explorer_rpc.Signature */ interface Signature$1 { /** * @generated from protobuf field: string pubkey = 1 */ pubkey: string; /** * @generated from protobuf field: string address = 2 */ address: string; /** * @generated from protobuf field: uint64 sequence = 3 */ sequence: bigint; /** * @generated from protobuf field: string signature = 4 */ signature: string; } /** * @generated from protobuf message injective_explorer_rpc.GetAccountTxsV2Response */ interface GetAccountTxsV2Response { /** * @generated from protobuf field: injective_explorer_rpc.Cursor paging = 1 */ paging?: Cursor; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxDetailData data = 2 */ data: TxDetailData[]; } /** * Cursor Pagination defines the structure for required params for handling * pagination * * @generated from protobuf message injective_explorer_rpc.Cursor */ interface Cursor { /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 1 */ next: string[]; } /** * @generated from protobuf message injective_explorer_rpc.GetContractTxsV2Response */ interface GetContractTxsV2Response { /** * @generated from protobuf field: injective_explorer_rpc.Cursor paging = 1 */ paging?: Cursor; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxDetailData data = 2 */ data: TxDetailData[]; } /** * @generated from protobuf message injective_explorer_rpc.GetBlocksResponse */ interface GetBlocksResponse { /** * @generated from protobuf field: injective_explorer_rpc.Paging paging = 1 */ paging?: Paging$5; /** * @generated from protobuf field: repeated injective_explorer_rpc.BlockInfo data = 2 */ data: BlockInfo[]; } /** * @generated from protobuf message injective_explorer_rpc.BlockInfo */ interface BlockInfo { /** * @generated from protobuf field: uint64 height = 1 */ height: bigint; /** * @generated from protobuf field: string proposer = 2 */ proposer: string; /** * @generated from protobuf field: string moniker = 3 */ moniker: string; /** * @generated from protobuf field: string block_hash = 4 */ blockHash: string; /** * @generated from protobuf field: string parent_hash = 5 */ parentHash: string; /** * @generated from protobuf field: sint64 num_pre_commits = 6 */ numPreCommits: bigint; /** * @generated from protobuf field: sint64 num_txs = 7 */ numTxs: bigint; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxDataRPC txs = 8 */ txs: TxDataRPC[]; /** * @generated from protobuf field: string timestamp = 9 */ timestamp: string; /** * Block timestamp in unix milli * * @generated from protobuf field: uint64 block_unix_timestamp = 10 */ blockUnixTimestamp: bigint; } /** * TxData wraps tx data * * @generated from protobuf message injective_explorer_rpc.TxDataRPC */ interface TxDataRPC { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: uint64 block_number = 2 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 3 */ blockTimestamp: string; /** * @generated from protobuf field: string hash = 4 */ hash: string; /** * @generated from protobuf field: string codespace = 5 */ codespace: string; /** * @generated from protobuf field: string messages = 6 */ messages: string; /** * @generated from protobuf field: uint64 tx_number = 7 */ txNumber: bigint; /** * Transaction log indicating errors * * @generated from protobuf field: string error_log = 8 */ errorLog: string; /** * @generated from protobuf field: uint32 code = 9 */ code: number; /** * peggy bridge claim id, non-zero if tx contains MsgDepositClaim * * @generated from protobuf field: repeated sint64 claim_ids = 10 */ claimIds: bigint[]; } /** * @generated from protobuf message injective_explorer_rpc.GetBlocksV2Response */ interface GetBlocksV2Response { /** * @generated from protobuf field: injective_explorer_rpc.Cursor paging = 1 */ paging?: Cursor; /** * @generated from protobuf field: repeated injective_explorer_rpc.BlockInfo data = 2 */ data: BlockInfo[]; } /** * @generated from protobuf message injective_explorer_rpc.GetBlockResponse */ interface GetBlockResponse { /** * Status of the response. * * @generated from protobuf field: string s = 1 */ s: string; /** * Error message. * * @generated from protobuf field: string errmsg = 2 */ errmsg: string; /** * @generated from protobuf field: injective_explorer_rpc.BlockDetailInfo data = 3 */ data?: BlockDetailInfo; } /** * @generated from protobuf message injective_explorer_rpc.BlockDetailInfo */ interface BlockDetailInfo { /** * @generated from protobuf field: uint64 height = 1 */ height: bigint; /** * @generated from protobuf field: string proposer = 2 */ proposer: string; /** * @generated from protobuf field: string moniker = 3 */ moniker: string; /** * @generated from protobuf field: string block_hash = 4 */ blockHash: string; /** * @generated from protobuf field: string parent_hash = 5 */ parentHash: string; /** * @generated from protobuf field: sint64 num_pre_commits = 6 */ numPreCommits: bigint; /** * @generated from protobuf field: sint64 num_txs = 7 */ numTxs: bigint; /** * @generated from protobuf field: sint64 total_txs = 8 */ totalTxs: bigint; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxData txs = 9 */ txs: TxData[]; /** * @generated from protobuf field: string timestamp = 10 */ timestamp: string; /** * Block timestamp in unix milli * * @generated from protobuf field: uint64 block_unix_timestamp = 11 */ blockUnixTimestamp: bigint; } /** * TxData wraps tx data * * @generated from protobuf message injective_explorer_rpc.TxData */ interface TxData { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: uint64 block_number = 2 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 3 */ blockTimestamp: string; /** * @generated from protobuf field: string hash = 4 */ hash: string; /** * @generated from protobuf field: string codespace = 5 */ codespace: string; /** * @generated from protobuf field: bytes messages = 6 */ messages: Uint8Array; /** * @generated from protobuf field: uint64 tx_number = 7 */ txNumber: bigint; /** * Transaction log indicating errors * * @generated from protobuf field: string error_log = 8 */ errorLog: string; /** * @generated from protobuf field: uint32 code = 9 */ code: number; /** * @generated from protobuf field: bytes tx_msg_types = 10 */ txMsgTypes: Uint8Array; /** * transaction event logs * * @generated from protobuf field: bytes logs = 11 */ logs: Uint8Array; /** * peggy bridge claim id, non-zero if tx contains MsgDepositClaim * * @generated from protobuf field: repeated sint64 claim_ids = 12 */ claimIds: bigint[]; /** * @generated from protobuf field: repeated injective_explorer_rpc.Signature signatures = 13 */ signatures: Signature$1[]; /** * Block timestamp in unix milli * * @generated from protobuf field: uint64 block_unix_timestamp = 14 */ blockUnixTimestamp: bigint; /** * @generated from protobuf field: string ethereum_tx_hash_hex = 15 */ ethereumTxHashHex: string; /** * @generated from protobuf field: string memo = 16 */ memo: string; } /** * Validator defines the structure for validator information. * * @generated from protobuf message injective_explorer_rpc.Validator */ interface Validator$2 { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: string moniker = 2 */ moniker: string; /** * @generated from protobuf field: string operator_address = 3 */ operatorAddress: string; /** * @generated from protobuf field: string consensus_address = 4 */ consensusAddress: string; /** * @generated from protobuf field: bool jailed = 5 */ jailed: boolean; /** * @generated from protobuf field: sint32 status = 6 */ status: number; /** * @generated from protobuf field: string tokens = 7 */ tokens: string; /** * @generated from protobuf field: string delegator_shares = 8 */ delegatorShares: string; /** * @generated from protobuf field: injective_explorer_rpc.ValidatorDescription description = 9 */ description?: ValidatorDescription$1; /** * @generated from protobuf field: sint64 unbonding_height = 10 */ unbondingHeight: bigint; /** * @generated from protobuf field: string unbonding_time = 11 */ unbondingTime: string; /** * @generated from protobuf field: string commission_rate = 12 */ commissionRate: string; /** * @generated from protobuf field: string commission_max_rate = 13 */ commissionMaxRate: string; /** * @generated from protobuf field: string commission_max_change_rate = 14 */ commissionMaxChangeRate: string; /** * @generated from protobuf field: string commission_update_time = 15 */ commissionUpdateTime: string; /** * @generated from protobuf field: uint64 proposed = 16 */ proposed: bigint; /** * @generated from protobuf field: uint64 signed = 17 */ signed: bigint; /** * @generated from protobuf field: uint64 missed = 18 */ missed: bigint; /** * @generated from protobuf field: string timestamp = 19 */ timestamp: string; /** * @generated from protobuf field: repeated injective_explorer_rpc.ValidatorUptime uptimes = 20 */ uptimes: ValidatorUptime$1[]; /** * @generated from protobuf field: repeated injective_explorer_rpc.SlashingEvent slashing_events = 21 */ slashingEvents: SlashingEvent[]; /** * uptime percentage base on latest 10k block * * @generated from protobuf field: double uptime_percentage = 22 */ uptimePercentage: number; /** * URL of the validator logo * * @generated from protobuf field: string image_url = 23 */ imageUrl: string; } /** * @generated from protobuf message injective_explorer_rpc.ValidatorDescription */ interface ValidatorDescription$1 { /** * @generated from protobuf field: string moniker = 1 */ moniker: string; /** * @generated from protobuf field: string identity = 2 */ identity: string; /** * @generated from protobuf field: string website = 3 */ website: string; /** * @generated from protobuf field: string security_contact = 4 */ securityContact: string; /** * @generated from protobuf field: string details = 5 */ details: string; /** * @generated from protobuf field: string image_url = 6 */ imageUrl: string; } /** * @generated from protobuf message injective_explorer_rpc.ValidatorUptime */ interface ValidatorUptime$1 { /** * @generated from protobuf field: uint64 block_number = 1 */ blockNumber: bigint; /** * @generated from protobuf field: string status = 2 */ status: string; } /** * @generated from protobuf message injective_explorer_rpc.SlashingEvent */ interface SlashingEvent { /** * @generated from protobuf field: uint64 block_number = 1 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 2 */ blockTimestamp: string; /** * @generated from protobuf field: string address = 3 */ address: string; /** * @generated from protobuf field: uint64 power = 4 */ power: bigint; /** * @generated from protobuf field: string reason = 5 */ reason: string; /** * @generated from protobuf field: string jailed = 6 */ jailed: string; /** * @generated from protobuf field: uint64 missed_blocks = 7 */ missedBlocks: bigint; } /** * @generated from protobuf message injective_explorer_rpc.GetValidatorResponse */ interface GetValidatorResponse { /** * Status of the response. * * @generated from protobuf field: string s = 1 */ s: string; /** * Error message. * * @generated from protobuf field: string errmsg = 2 */ errmsg: string; /** * @generated from protobuf field: injective_explorer_rpc.Validator data = 3 */ data?: Validator$2; } /** * @generated from protobuf message injective_explorer_rpc.GetValidatorUptimeResponse */ interface GetValidatorUptimeResponse { /** * Status of the response. * * @generated from protobuf field: string s = 1 */ s: string; /** * Error message. * * @generated from protobuf field: string errmsg = 2 */ errmsg: string; /** * @generated from protobuf field: repeated injective_explorer_rpc.ValidatorUptime data = 3 */ data: ValidatorUptime$1[]; } /** * @generated from protobuf message injective_explorer_rpc.GetTxsResponse */ interface GetTxsResponse { /** * @generated from protobuf field: injective_explorer_rpc.Paging paging = 1 */ paging?: Paging$5; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxData data = 2 */ data: TxData[]; } /** * @generated from protobuf message injective_explorer_rpc.GetTxsV2Response */ interface GetTxsV2Response { /** * @generated from protobuf field: injective_explorer_rpc.Cursor paging = 1 */ paging?: Cursor; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxData data = 2 */ data: TxData[]; } /** * @generated from protobuf message injective_explorer_rpc.GetTxByTxHashResponse */ interface GetTxByTxHashResponse { /** * Status of the response. * * @generated from protobuf field: string s = 1 */ s: string; /** * Error message. * * @generated from protobuf field: string errmsg = 2 */ errmsg: string; /** * @generated from protobuf field: injective_explorer_rpc.TxDetailData data = 3 */ data?: TxDetailData; } /** * @generated from protobuf message injective_explorer_rpc.GetPeggyDepositTxsResponse */ interface GetPeggyDepositTxsResponse { /** * @generated from protobuf field: repeated injective_explorer_rpc.PeggyDepositTx field = 1 */ field: PeggyDepositTx$1[]; } /** * PeggyDepositTx wraps tx data includes peggy deposit tx details information * * @generated from protobuf message injective_explorer_rpc.PeggyDepositTx */ interface PeggyDepositTx$1 { /** * Sender address of deposit request * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Address of receiveer upon deposit * * @generated from protobuf field: string receiver = 2 */ receiver: string; /** * The event nonce of WithdrawalClaim event emitted by Ethereum chain upon * deposit * * @generated from protobuf field: uint64 event_nonce = 3 */ eventNonce: bigint; /** * The block height of WithdrawalClaim event emitted by Ethereum chain upon * deposit * * @generated from protobuf field: uint64 event_height = 4 */ eventHeight: bigint; /** * Amount of tokens being deposited * * @generated from protobuf field: string amount = 5 */ amount: string; /** * Denom of tokens being deposited * * @generated from protobuf field: string denom = 6 */ denom: string; /** * orchestratorAddress who created batch request * * @generated from protobuf field: string orchestrator_address = 7 */ orchestratorAddress: string; /** * @generated from protobuf field: string state = 8 */ state: string; /** * The claimType will be DepoistClaim for Deposits * * @generated from protobuf field: sint32 claim_type = 9 */ claimType: number; /** * @generated from protobuf field: repeated string tx_hashes = 10 */ txHashes: string[]; /** * @generated from protobuf field: string created_at = 11 */ createdAt: string; /** * @generated from protobuf field: string updated_at = 12 */ updatedAt: string; } /** * @generated from protobuf message injective_explorer_rpc.GetPeggyWithdrawalTxsResponse */ interface GetPeggyWithdrawalTxsResponse { /** * @generated from protobuf field: repeated injective_explorer_rpc.PeggyWithdrawalTx field = 1 */ field: PeggyWithdrawalTx$1[]; } /** * PeggyWithdrawalTx wraps tx data includes peggy withdrawal tx details * information * * @generated from protobuf message injective_explorer_rpc.PeggyWithdrawalTx */ interface PeggyWithdrawalTx$1 { /** * Sender address of withdrawal request * * @generated from protobuf field: string sender = 1 */ sender: string; /** * Address of receiveer upon withdrawal * * @generated from protobuf field: string receiver = 2 */ receiver: string; /** * Amount of tokens being withdrawan * * @generated from protobuf field: string amount = 3 */ amount: string; /** * Denom of tokens being withdrawan * * @generated from protobuf field: string denom = 4 */ denom: string; /** * The bridge fee paid by sender for withdrawal * * @generated from protobuf field: string bridge_fee = 5 */ bridgeFee: string; /** * A auto incremented unique ID representing the withdrawal request * * @generated from protobuf field: uint64 outgoing_tx_id = 6 */ outgoingTxId: bigint; /** * The timestamp after which Batch request will be discarded if not processed * already * * @generated from protobuf field: uint64 batch_timeout = 7 */ batchTimeout: bigint; /** * A auto incremented unique ID representing the Withdrawal Batches * * @generated from protobuf field: uint64 batch_nonce = 8 */ batchNonce: bigint; /** * orchestratorAddress who created batch request * * @generated from protobuf field: string orchestrator_address = 9 */ orchestratorAddress: string; /** * The event nonce of WithdrawalClaim event emitted by Ethereum chain upon * batch withdrawal * * @generated from protobuf field: uint64 event_nonce = 10 */ eventNonce: bigint; /** * The block height of WithdrawalClaim event emitted by Ethereum chain upon * batch withdrawal * * @generated from protobuf field: uint64 event_height = 11 */ eventHeight: bigint; /** * @generated from protobuf field: string state = 12 */ state: string; /** * The claimType will be WithdrawalClaim for Batch Withdrawals * * @generated from protobuf field: sint32 claim_type = 13 */ claimType: number; /** * @generated from protobuf field: repeated string tx_hashes = 14 */ txHashes: string[]; /** * @generated from protobuf field: string created_at = 15 */ createdAt: string; /** * @generated from protobuf field: string updated_at = 16 */ updatedAt: string; } /** * @generated from protobuf message injective_explorer_rpc.GetIBCTransferTxsResponse */ interface GetIBCTransferTxsResponse { /** * @generated from protobuf field: repeated injective_explorer_rpc.IBCTransferTx field = 1 */ field: IBCTransferTx$1[]; } /** * IBCTransferTx wraps tx data includes ibc transfer tx details information * * @generated from protobuf message injective_explorer_rpc.IBCTransferTx */ interface IBCTransferTx$1 { /** * the sender address * * @generated from protobuf field: string sender = 1 */ sender: string; /** * the recipient address on the destination chain * * @generated from protobuf field: string receiver = 2 */ receiver: string; /** * the port on which the packet will be sent * * @generated from protobuf field: string source_port = 3 */ sourcePort: string; /** * the channel by which the packet will be sent * * @generated from protobuf field: string source_channel = 4 */ sourceChannel: string; /** * identifies the port on the receiving chain * * @generated from protobuf field: string destination_port = 5 */ destinationPort: string; /** * identifies the channel end on the receiving chain * * @generated from protobuf field: string destination_channel = 6 */ destinationChannel: string; /** * transfer amount * * @generated from protobuf field: string amount = 7 */ amount: string; /** * transafer denom * * @generated from protobuf field: string denom = 8 */ denom: string; /** * Timeout height relative to the current block height. The timeout is disabled * when set to 0 * * @generated from protobuf field: string timeout_height = 9 */ timeoutHeight: string; /** * Timeout timestamp (in nanoseconds) relative to the current block timestamp * * @generated from protobuf field: uint64 timeout_timestamp = 10 */ timeoutTimestamp: bigint; /** * number corresponds to the order of sends and receives, where a Packet with * an earlier sequence number must be sent and received before a Packet with a * later sequence number * * @generated from protobuf field: uint64 packet_sequence = 11 */ packetSequence: bigint; /** * @generated from protobuf field: bytes data_hex = 12 */ dataHex: Uint8Array; /** * @generated from protobuf field: string state = 13 */ state: string; /** * it's injective chain tx hash array * * @generated from protobuf field: repeated string tx_hashes = 14 */ txHashes: string[]; /** * @generated from protobuf field: string created_at = 15 */ createdAt: string; /** * @generated from protobuf field: string updated_at = 16 */ updatedAt: string; } /** * Bank transfer represents a transfer * * @generated from protobuf message injective_explorer_rpc.BankTransfer */ interface BankTransfer$1 { /** * @generated from protobuf field: string sender = 1 */ sender: string; /** * @generated from protobuf field: string recipient = 2 */ recipient: string; /** * Amounts transferred * * @generated from protobuf field: repeated injective_explorer_rpc.Coin amounts = 3 */ amounts: Coin$7[]; /** * @generated from protobuf field: uint64 block_number = 4 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 5 */ blockTimestamp: string; } /** * @generated from protobuf message injective_explorer_rpc.Coin */ interface Coin$7 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated from protobuf message injective_explorer_rpc.GetBankTransfersV2Response */ interface GetBankTransfersV2Response { /** * @generated from protobuf field: injective_explorer_rpc.Cursor paging = 1 */ paging?: Cursor; /** * @generated from protobuf field: repeated injective_explorer_rpc.BankTransfer data = 2 */ data: BankTransfer$1[]; } /** * @generated from protobuf message injective_explorer_rpc.StreamTxsResponse */ interface StreamTxsResponse { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: uint64 block_number = 2 */ blockNumber: bigint; /** * @generated from protobuf field: string block_timestamp = 3 */ blockTimestamp: string; /** * @generated from protobuf field: string hash = 4 */ hash: string; /** * @generated from protobuf field: string codespace = 5 */ codespace: string; /** * @generated from protobuf field: string messages = 6 */ messages: string; /** * @generated from protobuf field: uint64 tx_number = 7 */ txNumber: bigint; /** * Transaction log indicating errors * * @generated from protobuf field: string error_log = 8 */ errorLog: string; /** * @generated from protobuf field: uint32 code = 9 */ code: number; /** * peggy bridge claim id, non-zero if tx contains MsgDepositClaim * * @generated from protobuf field: repeated sint64 claim_ids = 10 */ claimIds: bigint[]; } /** * @generated from protobuf message injective_explorer_rpc.StreamBlocksResponse */ interface StreamBlocksResponse { /** * @generated from protobuf field: uint64 height = 1 */ height: bigint; /** * @generated from protobuf field: string proposer = 2 */ proposer: string; /** * @generated from protobuf field: string moniker = 3 */ moniker: string; /** * @generated from protobuf field: string block_hash = 4 */ blockHash: string; /** * @generated from protobuf field: string parent_hash = 5 */ parentHash: string; /** * @generated from protobuf field: sint64 num_pre_commits = 6 */ numPreCommits: bigint; /** * @generated from protobuf field: sint64 num_txs = 7 */ numTxs: bigint; /** * @generated from protobuf field: repeated injective_explorer_rpc.TxDataRPC txs = 8 */ txs: TxDataRPC[]; /** * @generated from protobuf field: string timestamp = 9 */ timestamp: string; /** * Block timestamp in unix milli * * @generated from protobuf field: uint64 block_unix_timestamp = 10 */ blockUnixTimestamp: bigint; } /** * @generated from protobuf message injective_explorer_rpc.GetStatsResponse */ interface GetStatsResponse { /** * Total of unique addresses * * @generated from protobuf field: uint64 addresses = 1 */ addresses: bigint; /** * Total number of assets * * @generated from protobuf field: uint64 assets = 2 */ assets: bigint; /** * Total circulating supply of INJ * * @generated from protobuf field: uint64 inj_supply = 3 */ injSupply: bigint; /** * Avg of TX per second in the past 24hs * * @generated from protobuf field: uint64 txs_ps24_h = 4 */ txsPs24H: bigint; /** * Avg of TX per second in the 100 blocks * * @generated from protobuf field: uint64 txs_ps100_b = 5 */ txsPs100B: bigint; /** * Total number of TXs * * @generated from protobuf field: uint64 txs_total = 6 */ txsTotal: bigint; /** * Total number of TXs in the past 24hs * * @generated from protobuf field: uint64 txs24_h = 7 */ txs24H: bigint; /** * Total number of TXs in the past 30 days * * @generated from protobuf field: uint64 txs30_d = 8 */ txs30D: bigint; /** * Number of blocks produced in the past 24hs * * @generated from protobuf field: uint64 block_count24_h = 9 */ blockCount24H: bigint; } /** * @generated MessageType for protobuf message injective_explorer_rpc.GetAccountTxsResponse */ declare const GetAccountTxsResponse = new GetAccountTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Paging */ declare const Paging$5 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.TxDetailData */ declare const TxDetailData = new TxDetailData$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GasFee */ declare const GasFee$1 = new GasFee$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.CosmosCoin */ declare const CosmosCoin$1 = new CosmosCoin$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Event */ declare const Event = new Event$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Signature */ declare const Signature$1 = new Signature$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetAccountTxsV2Response */ declare const GetAccountTxsV2Response = new GetAccountTxsV2Response$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Cursor */ declare const Cursor = new Cursor$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetContractTxsV2Response */ declare const GetContractTxsV2Response = new GetContractTxsV2Response$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetBlocksResponse */ declare const GetBlocksResponse = new GetBlocksResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.BlockInfo */ declare const BlockInfo = new BlockInfo$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.TxDataRPC */ declare const TxDataRPC = new TxDataRPC$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetBlocksV2Response */ declare const GetBlocksV2Response = new GetBlocksV2Response$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetBlockResponse */ declare const GetBlockResponse = new GetBlockResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.BlockDetailInfo */ declare const BlockDetailInfo = new BlockDetailInfo$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.TxData */ declare const TxData = new TxData$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Validator */ declare const Validator$2 = new Validator$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.ValidatorDescription */ declare const ValidatorDescription$1 = new ValidatorDescription$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.ValidatorUptime */ declare const ValidatorUptime$1 = new ValidatorUptime$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.SlashingEvent */ declare const SlashingEvent = new SlashingEvent$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetValidatorResponse */ declare const GetValidatorResponse = new GetValidatorResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetValidatorUptimeResponse */ declare const GetValidatorUptimeResponse = new GetValidatorUptimeResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetTxsResponse */ declare const GetTxsResponse = new GetTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetTxsV2Response */ declare const GetTxsV2Response = new GetTxsV2Response$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetTxByTxHashResponse */ declare const GetTxByTxHashResponse = new GetTxByTxHashResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetPeggyDepositTxsResponse */ declare const GetPeggyDepositTxsResponse = new GetPeggyDepositTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.PeggyDepositTx */ declare const PeggyDepositTx$1 = new PeggyDepositTx$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetPeggyWithdrawalTxsResponse */ declare const GetPeggyWithdrawalTxsResponse = new GetPeggyWithdrawalTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.PeggyWithdrawalTx */ declare const PeggyWithdrawalTx$1 = new PeggyWithdrawalTx$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetIBCTransferTxsResponse */ declare const GetIBCTransferTxsResponse = new GetIBCTransferTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.IBCTransferTx */ declare const IBCTransferTx$1 = new IBCTransferTx$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.BankTransfer */ declare const BankTransfer$1 = new BankTransfer$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.Coin */ declare const Coin$7 = new Coin$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetBankTransfersV2Response */ declare const GetBankTransfersV2Response = new GetBankTransfersV2Response$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.StreamTxsResponse */ declare const StreamTxsResponse = new StreamTxsResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.StreamBlocksResponse */ declare const StreamBlocksResponse = new StreamBlocksResponse$Type(); /** * @generated MessageType for protobuf message injective_explorer_rpc.GetStatsResponse */ declare const GetStatsResponse = new GetStatsResponse$Type(); //#endregion //#region src/utils/pagination.d.ts /** * @deprecated Use ChainGrpcCommonTransformer.pageRequestToGrpcPageRequest instead */ declare const paginationRequestFromPagination: (pagination?: PaginationOption) => PageRequest | undefined; declare const pageRequestToGrpcPageRequestV2: (pagination?: PaginationOption) => PageRequest | undefined; /** * @deprecated Use ChainGrpcCommonTransformer.paginationUint8ArrayToString instead */ declare const paginationUint8ArrayToString: (key: any) => string; /** * @deprecated Use ChainGrpcCommonTransformer.grpcPaginationToPagination instead */ declare const grpcPaginationToPagination: (pagination: PageResponse | undefined) => Pagination; /** * @deprecated Use grpcPagingToPagingV2 instead (V1 proto package) */ declare const grpcPagingToPaging: (pagination: Paging$5 | undefined) => ExchangePagination; /** * Converts gRPC Paging to ExchangePagination for V2 proto packages. * Handles both InjectiveAccountsRpcPb.Paging and InjectiveExplorerRpcPb.Paging types. * Supports bigint and string types for the total and countBySubaccount fields. */ declare const grpcPagingToPagingV2: (pagination: Paging$6 | Paging$5 | undefined) => ExchangePagination; declare const fetchAllWithTokenPagination: (args: T, method: (args: T) => Promise, result?: Array) => Promise; declare const fetchAllWithPagination: (args: T, method: (args: T) => Promise, result?: Array) => Promise; //#endregion //#region src/utils/transaction.d.ts declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb.d.ts /** * @generated from protobuf message injective_rfq_rpc.StreamRequestResponse */ interface StreamRequestResponse { /** * RFQ request update * * @generated from protobuf field: injective_rfq_rpc.RFQRequestType request = 1 */ request?: RFQRequestType$1; /** * Operation type (insert, update, delete) * * @generated from protobuf field: string stream_operation = 2 */ streamOperation: string; } /** * RFQ request * * @generated from protobuf message injective_rfq_rpc.RFQRequestType */ interface RFQRequestType$1 { /** * Client ID * * @generated from protobuf field: string client_id = 1 */ clientId: string; /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 2 */ rfqId: bigint; /** * Market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * Direction (long/short) * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Margin amount * * @generated from protobuf field: string margin = 5 */ margin: string; /** * Quantity * * @generated from protobuf field: string quantity = 6 */ quantity: string; /** * Worst acceptable price * * @generated from protobuf field: string worst_price = 7 */ worstPrice: string; /** * Requester address * * @generated from protobuf field: string request_address = 8 */ requestAddress: string; /** * Expiry timestamp in milliseconds * * @generated from protobuf field: uint64 expiry = 9 */ expiry: bigint; /** * Status (open, cancelled, completed) * * @generated from protobuf field: string status = 10 */ status: string; /** * Creation timestamp * * @generated from protobuf field: sint64 created_at = 11 */ createdAt: bigint; /** * Last update timestamp * * @generated from protobuf field: sint64 updated_at = 12 */ updatedAt: bigint; /** * Transaction time timestamp * * @generated from protobuf field: uint64 transaction_time = 13 */ transactionTime: bigint; /** * Block height * * @generated from protobuf field: uint64 height = 14 */ height: bigint; /** * Canonical request identity, the taker address and rfq_id joined as * taker:rfq_id. Convenience only - both parts are already present on this * message * * @generated from protobuf field: string unique_rfq_id = 15 */ uniqueRfqId: string; } /** * @generated from protobuf message injective_rfq_rpc.StreamQuoteResponse */ interface StreamQuoteResponse { /** * RFQ quote update * * @generated from protobuf field: injective_rfq_rpc.RFQProcessedQuoteType quote = 1 */ quote?: RFQProcessedQuoteType$1; /** * Operation type (insert, update, delete) * * @generated from protobuf field: string stream_operation = 2 */ streamOperation: string; } /** * RFQ quote result streamed in real-time * * @generated from protobuf message injective_rfq_rpc.RFQProcessedQuoteType */ interface RFQProcessedQuoteType$1 { /** * Error message if quote is rejected * * @generated from protobuf field: string error = 50 */ error: string; /** * Executed quantity for the quote, if successful * * @generated from protobuf field: string executed_quantity = 51 */ executedQuantity: string; /** * Executed margin for the quote, if successful * * @generated from protobuf field: string executed_margin = 52 */ executedMargin: string; /** * Identity of the request this quote answers, the taker address and rfq_id * joined as taker:rfq_id * * @generated from protobuf field: string unique_rfq_id = 53 */ uniqueRfqId: string; /** * Chain ID * * @generated from protobuf field: string chain_id = 1 */ chainId: string; /** * Contract address * * @generated from protobuf field: string contract_address = 2 */ contractAddress: string; /** * Market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 4 */ rfqId: bigint; /** * Taker direction (long/short) * * @generated from protobuf field: string taker_direction = 5 */ takerDirection: string; /** * Margin amount * * @generated from protobuf field: string margin = 6 */ margin: string; /** * Quantity * * @generated from protobuf field: string quantity = 7 */ quantity: string; /** * Price * * @generated from protobuf field: string price = 8 */ price: string; /** * Expiry timestamp and height * * @generated from protobuf field: injective_rfq_rpc.RFQExpiryType expiry = 9 */ expiry?: RFQExpiryType$1; /** * Maker address * * @generated from protobuf field: string maker = 10 */ maker: string; /** * Taker address * * @generated from protobuf field: string taker = 11 */ taker: string; /** * Signature * * @generated from protobuf field: string signature = 12 */ signature: string; /** * Status (pending, accepted, rejected, expired) * * @generated from protobuf field: string status = 13 */ status: string; /** * Creation timestamp * * @generated from protobuf field: sint64 created_at = 14 */ createdAt: bigint; /** * Last update timestamp * * @generated from protobuf field: sint64 updated_at = 15 */ updatedAt: bigint; /** * Block height * * @generated from protobuf field: uint64 height = 16 */ height: bigint; /** * Event time timestamp * * @generated from protobuf field: uint64 event_time = 17 */ eventTime: bigint; /** * Transaction time timestamp * * @generated from protobuf field: uint64 transaction_time = 18 */ transactionTime: bigint; /** * Maker subaccount nonce used in quote signature * * @generated from protobuf field: uint32 maker_subaccount_nonce = 19 */ makerSubaccountNonce: number; /** * Optional minimum fill quantity used in quote signature * * @generated from protobuf field: string min_fill_quantity = 20 */ minFillQuantity: string; /** * Whether the quote is for price check only * * @generated from protobuf field: bool price_check = 21 */ priceCheck: boolean; /** * Client ID from the originating request * * @generated from protobuf field: string client_id = 22 */ clientId: string; /** * Signature scheme used for the quote: "v1" (raw JSON keccak256) or "v2" * (EIP-712). Defaults to "v1" when omitted, for backward compatibility with * pre-EIP-712 clients. * * @generated from protobuf field: string sign_mode = 23 */ signMode: string; /** * EVM chain ID embedded in the EIP-712 domain. Required when sign_mode is * "v2"; ignored otherwise. Must match one of the indexer's configured chain * IDs. * * @generated from protobuf field: uint64 evm_chain_id = 24 */ evmChainId: bigint; } /** * Expiry with timestamp and block height * * @generated from protobuf message injective_rfq_rpc.RFQExpiryType */ interface RFQExpiryType$1 { /** * Expiry timestamp in milliseconds * * @generated from protobuf field: uint64 timestamp = 1 */ timestamp: bigint; /** * Expiry block height * * @generated from protobuf field: uint64 height = 2 */ height: bigint; } /** * @generated from protobuf message injective_rfq_rpc.ListSettlementResponse */ interface ListSettlementResponse { /** * List of RFQ settlements * * @generated from protobuf field: repeated injective_rfq_rpc.RFQSettlementType settlements = 1 */ settlements: RFQSettlementType$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * RFQ settlement * * @generated from protobuf message injective_rfq_rpc.RFQSettlementType */ interface RFQSettlementType$1 { /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Taker address * * @generated from protobuf field: string taker = 3 */ taker: string; /** * Direction (long/short) * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Margin amount * * @generated from protobuf field: string margin = 5 */ margin: string; /** * Quantity * * @generated from protobuf field: string quantity = 6 */ quantity: string; /** * Worst acceptable price * * @generated from protobuf field: string worst_price = 7 */ worstPrice: string; /** * Unfilled action details * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementUnfilledActionType unfilled_action = 8 */ unfilledAction?: RFQSettlementUnfilledActionType$2; /** * Fallback quantity * * @generated from protobuf field: string fallback_quantity = 9 */ fallbackQuantity: string; /** * Fallback margin * * @generated from protobuf field: string fallback_margin = 10 */ fallbackMargin: string; /** * Transaction time timestamp * * @generated from protobuf field: uint64 transaction_time = 11 */ transactionTime: bigint; /** * Creation timestamp * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Last update timestamp * * @generated from protobuf field: sint64 updated_at = 13 */ updatedAt: bigint; /** * Event time timestamp * * @generated from protobuf field: uint64 event_time = 14 */ eventTime: bigint; /** * Block height * * @generated from protobuf field: uint64 height = 15 */ height: bigint; /** * Settlement CID * * @generated from protobuf field: string cid = 16 */ cid: string; /** * Settlement transaction hash * * @generated from protobuf field: string tx_hash = 17 */ txHash: string; } /** * Action to take for unfilled quantity - only one field should be set * * @generated from protobuf message injective_rfq_rpc.RFQSettlementUnfilledActionType */ interface RFQSettlementUnfilledActionType$2 { /** * Limit order action * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementLimitActionType limit = 1 */ limit?: RFQSettlementLimitActionType$2; /** * Market order action * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementMarketActionType market = 2 */ market?: RFQSettlementMarketActionType$1; } /** * Limit order action for unfilled quantity * * @generated from protobuf message injective_rfq_rpc.RFQSettlementLimitActionType */ interface RFQSettlementLimitActionType$2 { /** * Limit price * * @generated from protobuf field: string price = 1 */ price: string; } /** * Market order action for unfilled quantity * * @generated from protobuf message injective_rfq_rpc.RFQSettlementMarketActionType */ interface RFQSettlementMarketActionType$1 {} /** * @generated from protobuf message injective_rfq_rpc.StreamSettlementResponse */ interface StreamSettlementResponse { /** * RFQ settlement update * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementType settlement = 1 */ settlement?: RFQSettlementType$1; /** * Operation type (insert, update, delete) * * @generated from protobuf field: string stream_operation = 2 */ streamOperation: string; } /** * Conditional TP/SL order * * @generated from protobuf message injective_rfq_rpc.ConditionalOrderResponseType */ interface ConditionalOrderResponseType { /** * RFQ order ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Derivative market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Exit direction (long/short) * * @generated from protobuf field: string direction = 3 */ direction: string; /** * Collateral amount * * @generated from protobuf field: string margin = 4 */ margin: string; /** * Contract quantity * * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * Worst acceptable price * * @generated from protobuf field: string worst_price = 6 */ worstPrice: string; /** * Taker address * * @generated from protobuf field: string request_address = 7 */ requestAddress: string; /** * Mark price threshold * * @generated from protobuf field: string trigger_price = 8 */ triggerPrice: string; /** * Order status * * @generated from protobuf field: string status = 9 */ status: string; /** * Creation timestamp in milliseconds * * @generated from protobuf field: sint64 created_at = 10 */ createdAt: bigint; /** * Last update timestamp in milliseconds * * @generated from protobuf field: sint64 updated_at = 11 */ updatedAt: bigint; /** * Expiry timestamp in milliseconds * * @generated from protobuf field: sint64 expires_at = 12 */ expiresAt: bigint; /** * Trigger condition (mark_price_gte, mark_price_lte) * * @generated from protobuf field: string trigger_type = 13 */ triggerType: string; /** * Minimum total fill quantity * * @generated from protobuf field: string min_total_fill_quantity = 14 */ minTotalFillQuantity: string; /** * Event time timestamp in milliseconds (streaming only) * * @generated from protobuf field: uint64 event_time = 15 */ eventTime: bigint; /** * Deprecated: use 'errors' instead. Last error message, if any. * * @generated from protobuf field: string error = 16 */ error: string; /** * Settlement transaction hash, if any * * @generated from protobuf field: string tx_hash = 17 */ txHash: string; /** * Terminal timestamp in milliseconds (set when the order reaches a terminal * status: completed, failed, cancelled, or expired) * * @generated from protobuf field: sint64 terminal_at = 18 */ terminalAt: bigint; /** * EVM chain ID embedded in the EIP-712 domain at signing time. Zero for v1 * (raw JSON) orders. * * @generated from protobuf field: uint64 evm_chain_id = 19 */ evmChainId: bigint; /** * Replay protection nonce time window in milliseconds * * @generated from protobuf field: uint64 taker_nonce_time_window_ms = 20 */ takerNonceTimeWindowMs: bigint; /** * All error messages accumulated across execution attempts (most recent last) * * @generated from protobuf field: repeated string errors = 21 */ errors: string[]; } /** * @generated from protobuf message injective_rfq_rpc.ListConditionalOrdersResponse */ interface ListConditionalOrdersResponse { /** * List of conditional orders * * @generated from protobuf field: repeated injective_rfq_rpc.ConditionalOrderResponseType orders = 1 */ orders: ConditionalOrderResponseType[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_rfq_rpc.TakerStreamResponse */ interface TakerStreamResponse { /** * Type: 'quote', 'request_ack', 'error', 'pong', 'conditional_order_ack', * 'conditional_order_update', 'challenge', 'auth_result' * * @generated from protobuf field: string message_type = 1 */ messageType: string; /** * Quote from market maker * * @generated from protobuf field: injective_rfq_rpc.RFQQuoteType quote = 2 */ quote?: RFQQuoteType$1; /** * Acknowledgment for request creation * * @generated from protobuf field: injective_rfq_rpc.RequestStreamAck request_ack = 3 */ requestAck?: RequestStreamAck; /** * Error message * * @generated from protobuf field: injective_rfq_rpc.StreamError error = 4 */ error?: StreamError; /** * Acknowledgment for conditional order creation * * @generated from protobuf field: injective_rfq_rpc.ConditionalOrderAck conditional_order_ack = 5 */ conditionalOrderAck?: ConditionalOrderAck; /** * Conditional order lifecycle update * * @generated from protobuf field: injective_rfq_rpc.ConditionalOrderResponseType conditional_order = 6 */ conditionalOrder?: ConditionalOrderResponseType; /** * Optional EIP-712 authentication challenge * * @generated from protobuf field: injective_rfq_rpc.TakerChallenge challenge = 7 */ challenge?: TakerChallenge; /** * Result of taker stream authentication; informational and does not change * request handling * * @generated from protobuf field: injective_rfq_rpc.TakerAuthResult auth_result = 8 */ authResult?: TakerAuthResult; } /** * RFQ quote * * @generated from protobuf message injective_rfq_rpc.RFQQuoteType */ interface RFQQuoteType$1 { /** * Chain ID * * @generated from protobuf field: string chain_id = 1 */ chainId: string; /** * Contract address * * @generated from protobuf field: string contract_address = 2 */ contractAddress: string; /** * Market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 4 */ rfqId: bigint; /** * Taker direction (long/short) * * @generated from protobuf field: string taker_direction = 5 */ takerDirection: string; /** * Margin amount * * @generated from protobuf field: string margin = 6 */ margin: string; /** * Quantity * * @generated from protobuf field: string quantity = 7 */ quantity: string; /** * Price * * @generated from protobuf field: string price = 8 */ price: string; /** * Expiry timestamp and height * * @generated from protobuf field: injective_rfq_rpc.RFQExpiryType expiry = 9 */ expiry?: RFQExpiryType$1; /** * Maker address * * @generated from protobuf field: string maker = 10 */ maker: string; /** * Taker address * * @generated from protobuf field: string taker = 11 */ taker: string; /** * Signature * * @generated from protobuf field: string signature = 12 */ signature: string; /** * Status (pending, accepted, rejected, expired) * * @generated from protobuf field: string status = 13 */ status: string; /** * Creation timestamp * * @generated from protobuf field: sint64 created_at = 14 */ createdAt: bigint; /** * Last update timestamp * * @generated from protobuf field: sint64 updated_at = 15 */ updatedAt: bigint; /** * Block height * * @generated from protobuf field: uint64 height = 16 */ height: bigint; /** * Event time timestamp * * @generated from protobuf field: uint64 event_time = 17 */ eventTime: bigint; /** * Transaction time timestamp * * @generated from protobuf field: uint64 transaction_time = 18 */ transactionTime: bigint; /** * Maker subaccount nonce used in quote signature * * @generated from protobuf field: uint32 maker_subaccount_nonce = 19 */ makerSubaccountNonce: number; /** * Optional minimum fill quantity used in quote signature * * @generated from protobuf field: string min_fill_quantity = 20 */ minFillQuantity: string; /** * Whether the quote is for price check only * * @generated from protobuf field: bool price_check = 21 */ priceCheck: boolean; /** * Client ID from the originating request * * @generated from protobuf field: string client_id = 22 */ clientId: string; /** * Signature scheme used for the quote: "v1" (raw JSON keccak256) or "v2" * (EIP-712). Defaults to "v1" when omitted, for backward compatibility with * pre-EIP-712 clients. * * @generated from protobuf field: string sign_mode = 23 */ signMode: string; /** * EVM chain ID embedded in the EIP-712 domain. Required when sign_mode is * "v2"; ignored otherwise. Must match one of the indexer's configured chain * IDs. * * @generated from protobuf field: uint64 evm_chain_id = 24 */ evmChainId: bigint; } /** * Acknowledgment for stream operations * * @generated from protobuf message injective_rfq_rpc.RequestStreamAck */ interface RequestStreamAck { /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Client ID * * @generated from protobuf field: string client_id = 2 */ clientId: string; /** * Status of the operation * * @generated from protobuf field: string status = 3 */ status: string; } /** * Error message in stream * * @generated from protobuf message injective_rfq_rpc.StreamError */ interface StreamError { /** * Error code * * @generated from protobuf field: string code = 1 */ code: string; /** * Error message * * @generated from protobuf field: string message_ = 2 */ message: string; /** * Client ID. Only filled in taker streams * * @generated from protobuf field: string id = 3 */ id: string; /** * Taker address. Only filled in the maker stream * * @generated from protobuf field: string taker = 4 */ taker: string; /** * RFQ ID. Only filled if available * * @generated from protobuf field: uint64 rfq_id = 5 */ rfqId: bigint; } /** * Acknowledgment for conditional order creation * * @generated from protobuf message injective_rfq_rpc.ConditionalOrderAck */ interface ConditionalOrderAck { /** * Created conditional order * * @generated from protobuf field: injective_rfq_rpc.ConditionalOrderResponseType order = 1 */ order?: ConditionalOrderResponseType; } /** * Short-lived EIP-712 challenge proving control of the TakerStream * request_address * * @generated from protobuf message injective_rfq_rpc.TakerChallenge */ interface TakerChallenge { /** * Hex-encoded 32-byte nonce * * @generated from protobuf field: string nonce = 1 */ nonce: string; /** * Unix milliseconds after which the challenge is no longer accepted * * @generated from protobuf field: sint64 expires_at = 3 */ expiresAt: bigint; } /** * Informational authentication result. Authentication failure does not close * the stream or block RFQ requests. * * @generated from protobuf message injective_rfq_rpc.TakerAuthResult */ interface TakerAuthResult { /** * Whether the challenge signature was successfully verified * * @generated from protobuf field: bool authenticated = 1 */ authenticated: boolean; /** * Stable result code such as success, timeout, invalid_signature, or * missing_authz_grant * * @generated from protobuf field: string code = 2 */ code: string; /** * Human-readable result description * * @generated from protobuf field: string message_ = 3 */ message: string; /** * Hex-encoded nonce of the authentication challenge, when one was issued * * @generated from protobuf field: string nonce = 4 */ nonce: string; } /** * @generated from protobuf message injective_rfq_rpc.MakerStreamResponse */ interface MakerStreamResponse { /** * Type: 'request', 'quote_ack', 'quote_update', 'settlement_update', 'error', * 'pong', 'challenge' * * @generated from protobuf field: string message_type = 1 */ messageType: string; /** * RFQ request from taker * * @generated from protobuf field: injective_rfq_rpc.RFQRequestType request = 2 */ request?: RFQRequestType$1; /** * Acknowledgment for quote submission * * @generated from protobuf field: injective_rfq_rpc.QuoteStreamAck quote_ack = 3 */ quoteAck?: QuoteStreamAck; /** * Error message * * @generated from protobuf field: injective_rfq_rpc.StreamError error = 4 */ error?: StreamError; /** * Processed quote update for maker * * @generated from protobuf field: injective_rfq_rpc.RFQProcessedQuoteType processed_quote = 5 */ processedQuote?: RFQProcessedQuoteType$1; /** * Settlement update for maker * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementMakerUpdate settlement = 6 */ settlement?: RFQSettlementMakerUpdate; /** * Auth challenge issued before the stream loop begins * * @generated from protobuf field: injective_rfq_rpc.MakerChallenge challenge = 7 */ challenge?: MakerChallenge; } /** * Acknowledgment for stream operations * * @generated from protobuf message injective_rfq_rpc.QuoteStreamAck */ interface QuoteStreamAck { /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Status of the operation * * @generated from protobuf field: string status = 2 */ status: string; /** * Taker address * * @generated from protobuf field: string taker = 3 */ taker: string; /** * Identity of the request this quote answers, the taker address and rfq_id * joined as taker:rfq_id * * @generated from protobuf field: string unique_rfq_id = 4 */ uniqueRfqId: string; } /** * RFQ settlement update streamed to maker in real-time * * @generated from protobuf message injective_rfq_rpc.RFQSettlementMakerUpdate */ interface RFQSettlementMakerUpdate { /** * List of quotes considered for settlement * * @generated from protobuf field: repeated injective_rfq_rpc.RFQSettlementQuote quotes = 50 */ quotes: RFQSettlementQuote[]; /** * Identity of the settled request, the taker address and rfq_id joined as * taker:rfq_id * * @generated from protobuf field: string unique_rfq_id = 51 */ uniqueRfqId: string; /** * RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Taker address * * @generated from protobuf field: string taker = 3 */ taker: string; /** * Direction (long/short) * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Margin amount * * @generated from protobuf field: string margin = 5 */ margin: string; /** * Quantity * * @generated from protobuf field: string quantity = 6 */ quantity: string; /** * Worst acceptable price * * @generated from protobuf field: string worst_price = 7 */ worstPrice: string; /** * Unfilled action details * * @generated from protobuf field: injective_rfq_rpc.RFQSettlementUnfilledActionType unfilled_action = 8 */ unfilledAction?: RFQSettlementUnfilledActionType$2; /** * Fallback quantity * * @generated from protobuf field: string fallback_quantity = 9 */ fallbackQuantity: string; /** * Fallback margin * * @generated from protobuf field: string fallback_margin = 10 */ fallbackMargin: string; /** * Transaction time timestamp * * @generated from protobuf field: uint64 transaction_time = 11 */ transactionTime: bigint; /** * Creation timestamp * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Last update timestamp * * @generated from protobuf field: sint64 updated_at = 13 */ updatedAt: bigint; /** * Event time timestamp * * @generated from protobuf field: uint64 event_time = 14 */ eventTime: bigint; /** * Block height * * @generated from protobuf field: uint64 height = 15 */ height: bigint; /** * Settlement CID * * @generated from protobuf field: string cid = 16 */ cid: string; /** * Settlement transaction hash * * @generated from protobuf field: string tx_hash = 17 */ txHash: string; } /** * Quote data embedded in settlement * * @generated from protobuf message injective_rfq_rpc.RFQSettlementQuote */ interface RFQSettlementQuote { /** * Maker address * * @generated from protobuf field: string maker = 1 */ maker: string; /** * Price * * @generated from protobuf field: string price = 2 */ price: string; /** * Quoted margin amount * * @generated from protobuf field: string quoted_margin = 3 */ quotedMargin: string; /** * Quoted quantity * * @generated from protobuf field: string quoted_quantity = 4 */ quotedQuantity: string; /** * Executed margin amount * * @generated from protobuf field: string executed_margin = 5 */ executedMargin: string; /** * Executed quantity * * @generated from protobuf field: string executed_quantity = 6 */ executedQuantity: string; /** * Expiry timestamp and height * * @generated from protobuf field: injective_rfq_rpc.RFQExpiryType expiry = 7 */ expiry?: RFQExpiryType$1; /** * Signature * * @generated from protobuf field: string signature = 8 */ signature: string; /** * Nonce * * @generated from protobuf field: uint64 nonce = 9 */ nonce: bigint; /** * Quote status (accepted, rejected, expired) * * @generated from protobuf field: string status = 10 */ status: string; } /** * Auth challenge issued by the server before the maker stream loop begins * * @generated from protobuf message injective_rfq_rpc.MakerChallenge */ interface MakerChallenge { /** * Hex-encoded 32-byte nonce * * @generated from protobuf field: string nonce = 1 */ nonce: string; /** * EVM chain ID to use when signing the challenge with EIP-712 v2 * * @generated from protobuf field: uint64 evm_chain_id = 2 */ evmChainId: bigint; /** * Unix milliseconds after which the challenge is no longer accepted * * @generated from protobuf field: sint64 expires_at = 3 */ expiresAt: bigint; } /** * @generated MessageType for protobuf message injective_rfq_rpc.StreamRequestResponse */ declare const StreamRequestResponse = new StreamRequestResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQRequestType */ declare const RFQRequestType$1 = new RFQRequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.StreamQuoteResponse */ declare const StreamQuoteResponse = new StreamQuoteResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQProcessedQuoteType */ declare const RFQProcessedQuoteType$1 = new RFQProcessedQuoteType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQExpiryType */ declare const RFQExpiryType$1 = new RFQExpiryType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.ListSettlementResponse */ declare const ListSettlementResponse = new ListSettlementResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementType */ declare const RFQSettlementType$1 = new RFQSettlementType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementUnfilledActionType */ declare const RFQSettlementUnfilledActionType$2 = new RFQSettlementUnfilledActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementLimitActionType */ declare const RFQSettlementLimitActionType$2 = new RFQSettlementLimitActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementMarketActionType */ declare const RFQSettlementMarketActionType$1 = new RFQSettlementMarketActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.StreamSettlementResponse */ declare const StreamSettlementResponse = new StreamSettlementResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.ConditionalOrderResponseType */ declare const ConditionalOrderResponseType = new ConditionalOrderResponseType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.ListConditionalOrdersResponse */ declare const ListConditionalOrdersResponse = new ListConditionalOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.TakerStreamResponse */ declare const TakerStreamResponse = new TakerStreamResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQQuoteType */ declare const RFQQuoteType$1 = new RFQQuoteType$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RequestStreamAck */ declare const RequestStreamAck = new RequestStreamAck$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.StreamError */ declare const StreamError = new StreamError$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.ConditionalOrderAck */ declare const ConditionalOrderAck = new ConditionalOrderAck$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.TakerChallenge */ declare const TakerChallenge = new TakerChallenge$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.TakerAuthResult */ declare const TakerAuthResult = new TakerAuthResult$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.MakerStreamResponse */ declare const MakerStreamResponse = new MakerStreamResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.QuoteStreamAck */ declare const QuoteStreamAck = new QuoteStreamAck$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementMakerUpdate */ declare const RFQSettlementMakerUpdate = new RFQSettlementMakerUpdate$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.RFQSettlementQuote */ declare const RFQSettlementQuote = new RFQSettlementQuote$Type(); /** * @generated MessageType for protobuf message injective_rfq_rpc.MakerChallenge */ declare const MakerChallenge = new MakerChallenge$Type(); //#endregion //#region src/client/indexer/types/ws.d.ts /** * WebSocket connection states */ declare const WsState: { /** Initial state before connect() is called */ readonly Idle: "idle"; /** Connecting to the server */ readonly Connecting: "connecting"; /** Connected and ready to send/receive */ readonly Connected: "connected"; /** Connection lost, attempting to reconnect */ readonly Reconnecting: "reconnecting"; /** Connection closed (either by user or after max retries) */ readonly Disconnected: "disconnected"; }; type WsState = (typeof WsState)[keyof typeof WsState]; /** * Reasons for WebSocket disconnection */ declare const WsDisconnectReason: { /** User explicitly called disconnect() or destroy() */ readonly UserStopped: "user-stopped"; /** Failed to establish initial connection */ readonly ConnectionFailed: "connection-failed"; /** Connection timeout during handshake */ readonly ConnectionTimeout: "connection-timeout"; /** Server closed the connection (e.g., ping timeout on server side) */ readonly ServerClosed: "server-closed"; /** Max reconnection attempts reached */ readonly MaxRetries: "max-retries"; /** WebSocket error occurred */ readonly Error: "error"; }; type WsDisconnectReason = (typeof WsDisconnectReason)[keyof typeof WsDisconnectReason]; /** * Reconnection configuration */ interface WsReconnectConfig { /** Enable automatic reconnection (default: true) */ enabled: boolean; /** Maximum number of reconnection attempts (default: 10, 0 = infinite) */ maxAttempts: number; /** Initial delay before first reconnection attempt in ms (default: 1000) */ initialDelayMs: number; /** Maximum delay between reconnection attempts in ms (default: 30000) */ maxDelayMs: number; /** Multiplier for exponential backoff (default: 2) */ backoffMultiplier: number; } /** * WebSocket transport configuration */ interface WsTransportConfig { /** WebSocket URL (base URL, stream path will be appended) */ url: string; /** WebSocket subprotocol (default: 'grpc-ws') */ protocol?: string; /** Connection timeout in milliseconds (default: 10000) */ connectionTimeoutMs?: number; /** Reconnection configuration */ reconnect?: Partial; /** gRPC metadata (e.g., request_address for TakerStream) */ metadata?: Record; } /** * Resolved transport configuration with all defaults applied */ interface ResolvedWsTransportConfig { url: string; protocol: string; connectionTimeoutMs: number; reconnect: WsReconnectConfig; metadata?: Record; } type TransportEventType = 'connect' | 'disconnect' | 'message' | 'state_change' | 'error'; interface TransportEvents { connect: { isReconnect: boolean; }; disconnect: { reason: WsDisconnectReason; willRetry: boolean; }; message: ArrayBuffer; state_change: { from: WsState; to: WsState; }; error: Error; } type TransportEventListener = (data: TransportEvents[T]) => void; type IsomorphicWebSocket = WebSocket; interface GrpcFrame { isTrailer: boolean; message?: T; payload: Uint8Array; } declare class GrpcDecodeError extends Error { constructor(message: string); } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+mito-proto-ts-v2@1.17.3/node_modules/@injectivelabs/mito-proto-ts-v2/esm/generated/goadesign_goagen_mito_api_pb.d.ts /** * @generated from protobuf message mito_api.GetVaultsResponse */ interface GetVaultsResponse { /** * Vaults data response * * @generated from protobuf field: repeated mito_api.Vault vaults = 1 */ vaults: Vault$1[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.Vault */ interface Vault$1 { /** * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * @generated from protobuf field: uint64 code_id = 2 */ codeId: bigint; /** * @generated from protobuf field: string vault_name = 3 */ vaultName: string; /** * @generated from protobuf field: string market_id = 4 */ marketId: string; /** * @generated from protobuf field: double current_tvl = 5 */ currentTvl: number; /** * @generated from protobuf field: mito_api.Changes profits = 6 */ profits?: Changes; /** * @generated from protobuf field: uint64 updated_at = 7 */ updatedAt: bigint; /** * @generated from protobuf field: string vault_type = 8 */ vaultType: string; /** * @generated from protobuf field: double lp_token_price = 9 */ lpTokenPrice: number; /** * @generated from protobuf field: mito_api.SubaccountBalance subaccount_info = 10 */ subaccountInfo?: SubaccountBalance$1; /** * @generated from protobuf field: string master_contract_address = 11 */ masterContractAddress: string; /** * @generated from protobuf field: string total_lp_amount = 12 */ totalLpAmount: string; /** * @generated from protobuf field: string slug = 13 */ slug: string; /** * @generated from protobuf field: sint64 created_at = 14 */ createdAt: bigint; /** * @generated from protobuf field: string notional_value_cap = 15 */ notionalValueCap: string; /** * @generated from protobuf field: mito_api.Changes tvl_changes = 16 */ tvlChanges?: Changes; /** * @generated from protobuf field: double apy = 17 */ apy: number; /** * @generated from protobuf field: double apy7_d = 18 */ apy7D: number; /** * @generated from protobuf field: double apy7_d_fq = 19 */ apy7DFq: number; /** * @generated from protobuf field: double apyue = 20 */ apyue: number; /** * @generated from protobuf field: double apy_v3 = 21 */ apyV3: number; /** * @generated from protobuf field: string registration_mode = 22 */ registrationMode: string; } /** * @generated from protobuf message mito_api.Changes */ interface Changes { /** * @generated from protobuf field: double all_time_change = 1 */ allTimeChange: number; /** * @generated from protobuf field: optional double three_months_change = 2 */ threeMonthsChange?: number; /** * @generated from protobuf field: optional double one_month_change = 3 */ oneMonthChange?: number; /** * @generated from protobuf field: optional double one_day_change = 4 */ oneDayChange?: number; /** * @generated from protobuf field: optional double one_week_change = 5 */ oneWeekChange?: number; /** * @generated from protobuf field: optional double one_year_change = 6 */ oneYearChange?: number; /** * @generated from protobuf field: optional double three_years_change = 7 */ threeYearsChange?: number; /** * @generated from protobuf field: optional double six_months_change = 8 */ sixMonthsChange?: number; } /** * @generated from protobuf message mito_api.SubaccountBalance */ interface SubaccountBalance$1 { /** * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * @generated from protobuf field: repeated mito_api.DenomBalance balances = 2 */ balances: DenomBalance$1[]; } /** * @generated from protobuf message mito_api.DenomBalance */ interface DenomBalance$1 { /** * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string total_balance = 2 */ totalBalance: string; /** * @generated from protobuf field: optional string price = 3 */ price?: string; /** * @generated from protobuf field: optional sint64 updated_at = 4 */ updatedAt?: bigint; /** * @generated from protobuf field: optional string source = 5 */ source?: string; } /** * @generated from protobuf message mito_api.Pagination */ interface Pagination$1 { /** * @generated from protobuf field: uint32 total = 1 */ total: number; } /** * @generated from protobuf message mito_api.GetVaultResponse */ interface GetVaultResponse$1 { /** * Vault data response, if query by slug, there can be multiple vaults matching * the condition * * @generated from protobuf field: repeated mito_api.Vault vault = 1 */ vault: Vault$1[]; } /** * @generated from protobuf message mito_api.LPTokenPriceChartResponse */ interface LPTokenPriceChartResponse { /** * @generated from protobuf field: repeated mito_api.PriceSnapshot prices = 1 */ prices: PriceSnapshot[]; } /** * @generated from protobuf message mito_api.PriceSnapshot */ interface PriceSnapshot { /** * @generated from protobuf field: double price = 1 */ price: number; /** * @generated from protobuf field: uint64 updated_at = 2 */ updatedAt: bigint; } /** * @generated from protobuf message mito_api.VaultsByHolderAddressResponse */ interface VaultsByHolderAddressResponse { /** * @generated from protobuf field: repeated mito_api.Subscription subscriptions = 1 */ subscriptions: Subscription$2[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.Subscription */ interface Subscription$2 { /** * @generated from protobuf field: mito_api.Vault vault_info = 1 */ vaultInfo?: Vault$1; /** * @generated from protobuf field: string lp_amount = 2 */ lpAmount: string; /** * @generated from protobuf field: string holder_address = 3 */ holderAddress: string; /** * @generated from protobuf field: double lp_amount_percentage = 4 */ lpAmountPercentage: number; } /** * @generated from protobuf message mito_api.LPHoldersResponse */ interface LPHoldersResponse { /** * @generated from protobuf field: repeated mito_api.Holders holders = 1 */ holders: Holders[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.Holders */ interface Holders { /** * @generated from protobuf field: string holder_address = 1 */ holderAddress: string; /** * @generated from protobuf field: string vault_address = 2 */ vaultAddress: string; /** * @generated from protobuf field: string amount = 3 */ amount: string; /** * @generated from protobuf field: sint64 updated_at = 4 */ updatedAt: bigint; /** * @generated from protobuf field: double lp_amount_percentage = 5 */ lpAmountPercentage: number; /** * @generated from protobuf field: sint64 redemption_lock_time = 6 */ redemptionLockTime: bigint; /** * @generated from protobuf field: string staked_amount = 7 */ stakedAmount: string; } /** * @generated from protobuf message mito_api.PortfolioResponse */ interface PortfolioResponse { /** * @generated from protobuf field: double total_value = 1 */ totalValue: number; /** * @generated from protobuf field: double pnl = 2 */ pnl: number; /** * @generated from protobuf field: repeated mito_api.PriceSnapshot total_value_chart = 3 */ totalValueChart: PriceSnapshot[]; /** * @generated from protobuf field: repeated mito_api.PriceSnapshot pnl_chart = 4 */ pnlChart: PriceSnapshot[]; /** * @generated from protobuf field: sint64 pnl_updated_at = 5 */ pnlUpdatedAt: bigint; } /** * @generated from protobuf message mito_api.LeaderboardResponse */ interface LeaderboardResponse { /** * @generated from protobuf field: repeated mito_api.LeaderboardEntry entries = 1 */ entries: LeaderboardEntry[]; /** * @generated from protobuf field: sint64 snapshot_block = 2 */ snapshotBlock: bigint; /** * @generated from protobuf field: sint64 updated_at = 3 */ updatedAt: bigint; /** * @generated from protobuf field: uint32 epoch_id = 4 */ epochId: number; } /** * @generated from protobuf message mito_api.LeaderboardEntry */ interface LeaderboardEntry { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: double pnl = 2 */ pnl: number; } /** * @generated from protobuf message mito_api.LeaderboardEpochsResponse */ interface LeaderboardEpochsResponse { /** * @generated from protobuf field: repeated mito_api.LeaderboardEpoch epochs = 1 */ epochs: LeaderboardEpoch[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.LeaderboardEpoch */ interface LeaderboardEpoch { /** * @generated from protobuf field: uint32 epoch_id = 1 */ epochId: number; /** * @generated from protobuf field: sint64 start_at = 2 */ startAt: bigint; /** * @generated from protobuf field: sint64 end_at = 3 */ endAt: bigint; /** * @generated from protobuf field: bool is_live = 4 */ isLive: boolean; } /** * @generated from protobuf message mito_api.TransfersHistoryResponse */ interface TransfersHistoryResponse { /** * @generated from protobuf field: repeated mito_api.Transfer transfers = 1 */ transfers: Transfer[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.Transfer */ interface Transfer { /** * @generated from protobuf field: string lp_amount = 1 */ lpAmount: string; /** * @generated from protobuf field: repeated mito_api.Coin coins = 2 */ coins: Coin$6[]; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; /** * @generated from protobuf field: bool is_deposit = 4 */ isDeposit: boolean; /** * time in unix milli * * @generated from protobuf field: sint64 executed_at = 5 */ executedAt: bigint; /** * @generated from protobuf field: string account = 6 */ account: string; /** * @generated from protobuf field: string vault = 7 */ vault: string; /** * @generated from protobuf field: string tx_hash = 8 */ txHash: string; /** * @generated from protobuf field: uint32 tid_by_vault = 9 */ tidByVault: number; /** * @generated from protobuf field: uint32 tid_by_account = 10 */ tidByAccount: number; } /** * @generated from protobuf message mito_api.Coin */ interface Coin$6 { /** * @generated from protobuf field: string amount = 1 */ amount: string; /** * @generated from protobuf field: string denom = 2 */ denom: string; } /** * @generated from protobuf message mito_api.GetStakingPoolsResponse */ interface GetStakingPoolsResponse { /** * @generated from protobuf field: repeated mito_api.StakingPool pools = 1 */ pools: StakingPool[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.StakingPool */ interface StakingPool { /** * @generated from protobuf field: string vault_name = 1 */ vaultName: string; /** * @generated from protobuf field: string vault_address = 2 */ vaultAddress: string; /** * @generated from protobuf field: string stake_denom = 3 */ stakeDenom: string; /** * @generated from protobuf field: repeated mito_api.Gauge gauges = 4 */ gauges: Gauge[]; /** * @generated from protobuf field: double apr = 5 */ apr: number; /** * @generated from protobuf field: double total_liquidity = 6 */ totalLiquidity: number; /** * @generated from protobuf field: string staking_address = 7 */ stakingAddress: string; /** * denom => APR%, breakdown of staking APR * * @generated from protobuf field: map apr_breakdown = 8 */ aprBreakdown: { [key: string]: number; }; } /** * @generated from protobuf message mito_api.Gauge */ interface Gauge { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: string owner = 2 */ owner: string; /** * @generated from protobuf field: sint64 start_timestamp = 3 */ startTimestamp: bigint; /** * @generated from protobuf field: sint64 end_timestamp = 4 */ endTimestamp: bigint; /** * @generated from protobuf field: repeated mito_api.Coin reward_tokens = 5 */ rewardTokens: Coin$6[]; /** * @generated from protobuf field: uint32 last_distribution = 6 */ lastDistribution: number; /** * @generated from protobuf field: string status = 7 */ status: string; } /** * @generated from protobuf message mito_api.StakingRewardByAccountResponse */ interface StakingRewardByAccountResponse { /** * @generated from protobuf field: repeated mito_api.StakingReward rewards = 1 */ rewards: StakingReward[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.StakingReward */ interface StakingReward { /** * @generated from protobuf field: string vault_name = 1 */ vaultName: string; /** * @generated from protobuf field: string vault_address = 2 */ vaultAddress: string; /** * @generated from protobuf field: mito_api.Coin staked_amount = 3 */ stakedAmount?: Coin$6; /** * @generated from protobuf field: double apr = 4 */ apr: number; /** * @generated from protobuf field: repeated mito_api.Coin claimable_rewards = 5 */ claimableRewards: Coin$6[]; /** * @generated from protobuf field: sint64 lock_timestamp = 6 */ lockTimestamp: bigint; /** * @generated from protobuf field: mito_api.Coin locked_amount = 7 */ lockedAmount?: Coin$6; } /** * @generated from protobuf message mito_api.StakingHistoryResponse */ interface StakingHistoryResponse { /** * @generated from protobuf field: repeated mito_api.StakingActivity activities = 1 */ activities: StakingActivity[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.StakingActivity */ interface StakingActivity { /** * @generated from protobuf field: mito_api.Coin stake_amount = 1 */ stakeAmount?: Coin$6; /** * @generated from protobuf field: string vault_address = 2 */ vaultAddress: string; /** * @generated from protobuf field: string action = 3 */ action: string; /** * @generated from protobuf field: string tx_hash = 4 */ txHash: string; /** * @generated from protobuf field: repeated mito_api.Coin rewarded_tokens = 5 */ rewardedTokens: Coin$6[]; /** * @generated from protobuf field: sint64 timestamp = 6 */ timestamp: bigint; /** * @generated from protobuf field: string staker = 7 */ staker: string; /** * @generated from protobuf field: uint32 number_by_account = 8 */ numberByAccount: number; } /** * @generated from protobuf message mito_api.StreamTransfersResponse */ interface StreamTransfersResponse { /** * @generated from protobuf field: mito_api.Transfer data = 1 */ data?: Transfer; /** * Update type * * @generated from protobuf field: optional string op_type = 2 */ opType?: string; } /** * @generated from protobuf message mito_api.StreamVaultResponse */ interface StreamVaultResponse { /** * @generated from protobuf field: mito_api.Vault data = 1 */ data?: Vault$1; /** * Update type * * @generated from protobuf field: optional string op_type = 2 */ opType?: string; } /** * @generated from protobuf message mito_api.StreamHolderSubscriptionResponse */ interface StreamHolderSubscriptionResponse { /** * @generated from protobuf field: mito_api.Subscription data = 1 */ data?: Subscription$2; /** * Update type * * @generated from protobuf field: optional string op_type = 2 */ opType?: string; } /** * @generated from protobuf message mito_api.StreamStakingRewardByAccountResponse */ interface StreamStakingRewardByAccountResponse { /** * @generated from protobuf field: mito_api.StakingReward data = 1 */ data?: StakingReward; /** * Update type * * @generated from protobuf field: optional string op_type = 2 */ opType?: string; } /** * @generated from protobuf message mito_api.StreamHistoricalStakingResponse */ interface StreamHistoricalStakingResponse { /** * @generated from protobuf field: mito_api.StakingActivity data = 1 */ data?: StakingActivity; /** * Update type * * @generated from protobuf field: optional string op_type = 2 */ opType?: string; } /** * @generated from protobuf message mito_api.MissionsResponse */ interface MissionsResponse { /** * @generated from protobuf field: repeated mito_api.Mission data = 1 */ data: Mission[]; /** * @generated from protobuf field: optional sint64 rank = 2 */ rank?: bigint; } /** * @generated from protobuf message mito_api.Mission */ interface Mission { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: sint64 points = 2 */ points: bigint; /** * @generated from protobuf field: bool completed = 3 */ completed: boolean; /** * @generated from protobuf field: sint64 accrued_points = 4 */ accruedPoints: bigint; /** * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; /** * @generated from protobuf field: double progress = 6 */ progress: number; /** * @generated from protobuf field: double expected = 7 */ expected: number; } /** * @generated from protobuf message mito_api.MissionLeaderboardResponse */ interface MissionLeaderboardResponse { /** * @generated from protobuf field: repeated mito_api.MissionLeaderboardEntry data = 1 */ data: MissionLeaderboardEntry[]; /** * @generated from protobuf field: sint64 updated_at = 2 */ updatedAt: bigint; /** * @generated from protobuf field: optional sint64 user_rank = 3 */ userRank?: bigint; } /** * @generated from protobuf message mito_api.MissionLeaderboardEntry */ interface MissionLeaderboardEntry { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: sint64 accrued_points = 2 */ accruedPoints: bigint; } /** * @generated from protobuf message mito_api.ListIDOsResponse */ interface ListIDOsResponse { /** * @generated from protobuf field: repeated mito_api.IDO idos = 1 */ idos: IDO[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.IDO */ interface IDO { /** * @generated from protobuf field: sint64 start_time = 1 */ startTime: bigint; /** * @generated from protobuf field: sint64 end_time = 2 */ endTime: bigint; /** * @generated from protobuf field: string owner = 3 */ owner: string; /** * @generated from protobuf field: string status = 4 */ status: string; /** * @generated from protobuf field: mito_api.TokenInfo token_info = 5 */ tokenInfo?: TokenInfo; /** * @generated from protobuf field: string project_token_amount = 6 */ projectTokenAmount: string; /** * @generated from protobuf field: string quote_denom = 7 */ quoteDenom: string; /** * @generated from protobuf field: string target_amount_in_quote_denom = 8 */ targetAmountInQuoteDenom: string; /** * @generated from protobuf field: string target_amount_in_usd = 9 */ targetAmountInUsd: string; /** * @generated from protobuf field: string cap_per_address = 10 */ capPerAddress: string; /** * @generated from protobuf field: string contract_address = 11 */ contractAddress: string; /** * @generated from protobuf field: string subscribed_amount = 12 */ subscribedAmount: string; /** * @generated from protobuf field: double token_price = 13 */ tokenPrice: number; /** * @generated from protobuf field: bool is_account_white_listed = 14 */ isAccountWhiteListed: boolean; /** * @generated from protobuf field: string name = 15 */ name: string; /** * @generated from protobuf field: repeated mito_api.IDOProgress progress = 16 */ progress: IDOProgress[]; /** * @generated from protobuf field: repeated mito_api.ArrayOfString stake_to_subscription = 17 */ stakeToSubscription: ArrayOfString[]; /** * @generated from protobuf field: sint64 second_before_start_to_set_quote_price = 18 */ secondBeforeStartToSetQuotePrice: bigint; /** * @generated from protobuf field: bool use_whitelist = 19 */ useWhitelist: boolean; /** * @generated from protobuf field: string market_id = 20 */ marketId: string; /** * @generated from protobuf field: string vault_address = 21 */ vaultAddress: string; /** * @generated from protobuf field: bool is_launch_with_vault = 22 */ isLaunchWithVault: boolean; /** * @generated from protobuf field: bool is_vesting_schedule_enabled = 23 */ isVestingScheduleEnabled: boolean; /** * @generated from protobuf field: mito_api.InitParams init_params = 24 */ initParams?: InitParams; /** * @generated from protobuf field: string project_description = 25 */ projectDescription: string; /** * @generated from protobuf field: bool is_permissionless = 26 */ isPermissionless: boolean; } /** * @generated from protobuf message mito_api.TokenInfo */ interface TokenInfo { /** * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string supply = 2 */ supply: string; /** * @generated from protobuf field: string symbol = 3 */ symbol: string; /** * @generated from protobuf field: sint32 decimal = 4 */ decimal: number; /** * @generated from protobuf field: string logo_url = 5 */ logoUrl: string; } /** * @generated from protobuf message mito_api.IDOProgress */ interface IDOProgress { /** * @generated from protobuf field: string status = 1 */ status: string; /** * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated from protobuf message mito_api.ArrayOfString */ interface ArrayOfString { /** * @generated from protobuf field: repeated string field = 1 */ field: string[]; } /** * @generated from protobuf message mito_api.InitParams */ interface InitParams { /** * @generated from protobuf field: mito_api.VestingConfigMap vesting_config = 1 */ vestingConfig?: VestingConfigMap; } /** * @generated from protobuf message mito_api.VestingConfigMap */ interface VestingConfigMap { /** * @generated from protobuf field: mito_api.VestingConfig project_owner_quote = 1 */ projectOwnerQuote?: VestingConfig; /** * @generated from protobuf field: mito_api.VestingConfig project_owner_lp_tokens = 2 */ projectOwnerLpTokens?: VestingConfig; /** * @generated from protobuf field: mito_api.VestingConfig users_project_token = 3 */ usersProjectToken?: VestingConfig; } /** * @generated from protobuf message mito_api.VestingConfig */ interface VestingConfig { /** * @generated from protobuf field: optional sint64 vesting_duration_seconds = 1 */ vestingDurationSeconds?: bigint; /** * @generated from protobuf field: optional sint64 vesting_start_delay_seconds = 2 */ vestingStartDelaySeconds?: bigint; /** * @generated from protobuf field: optional string schedule = 3 */ schedule?: string; } /** * @generated from protobuf message mito_api.GetIDOResponse */ interface GetIDOResponse { /** * @generated from protobuf field: mito_api.IDO ido = 1 */ ido?: IDO; } /** * @generated from protobuf message mito_api.GetIDOSubscribersResponse */ interface GetIDOSubscribersResponse { /** * @generated from protobuf field: repeated mito_api.IDOSubscriber subscribers = 1 */ subscribers: IDOSubscriber[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; /** * @generated from protobuf field: mito_api.TokenInfo token_info = 3 */ tokenInfo?: TokenInfo; /** * @generated from protobuf field: string quote_denom = 4 */ quoteDenom: string; /** * @generated from protobuf field: string market_id = 5 */ marketId: string; } /** * @generated from protobuf message mito_api.IDOSubscriber */ interface IDOSubscriber { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: mito_api.Coin subscribed_coin = 2 */ subscribedCoin?: Coin$6; /** * @generated from protobuf field: sint64 last_subscribe_time = 3 */ lastSubscribeTime: bigint; /** * @generated from protobuf field: mito_api.Coin estimate_token_received = 4 */ estimateTokenReceived?: Coin$6; /** * @generated from protobuf field: mito_api.Coin estimate_lp_amount = 5 */ estimateLpAmount?: Coin$6; /** * @generated from protobuf field: mito_api.Coin estimate_refund_amount = 6 */ estimateRefundAmount?: Coin$6; /** * @generated from protobuf field: sint64 created_at = 7 */ createdAt: bigint; } /** * @generated from protobuf message mito_api.GetIDOSubscriptionResponse */ interface GetIDOSubscriptionResponse { /** * @generated from protobuf field: mito_api.IDOSubscription subscription = 1 */ subscription?: IDOSubscription; } /** * @generated from protobuf message mito_api.IDOSubscription */ interface IDOSubscription { /** * @generated from protobuf field: mito_api.Coin max_subscription_coin = 1 */ maxSubscriptionCoin?: Coin$6; /** * @generated from protobuf field: string committed_amount = 2 */ committedAmount: string; /** * @generated from protobuf field: double price = 3 */ price: number; /** * @generated from protobuf field: repeated mito_api.Coin claimable_coins = 4 */ claimableCoins: Coin$6[]; /** * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; /** * @generated from protobuf field: bool reward_claimed = 6 */ rewardClaimed: boolean; /** * @generated from protobuf field: mito_api.TokenInfo token_info = 7 */ tokenInfo?: TokenInfo; /** * @generated from protobuf field: string quote_denom = 8 */ quoteDenom: string; /** * @generated from protobuf field: string staked_amount = 9 */ stakedAmount: string; /** * @generated from protobuf field: optional string claim_tx_hash = 10 */ claimTxHash?: string; /** * @generated from protobuf field: repeated mito_api.Coin owner_claimable_coins = 11 */ ownerClaimableCoins: Coin$6[]; /** * @generated from protobuf field: string market_id = 12 */ marketId: string; /** * @generated from protobuf field: string weight = 13 */ weight: string; /** * @generated from protobuf field: mito_api.IDOClaimedCoins claimed_coins = 14 */ claimedCoins?: IDOClaimedCoins; } /** * @generated from protobuf message mito_api.IDOClaimedCoins */ interface IDOClaimedCoins { /** * @generated from protobuf field: repeated mito_api.Coin claimed_coins = 1 */ claimedCoins: Coin$6[]; /** * @generated from protobuf field: sint64 updated_at = 2 */ updatedAt: bigint; } /** * @generated from protobuf message mito_api.GetIDOActivitiesResponse */ interface GetIDOActivitiesResponse { /** * @generated from protobuf field: repeated mito_api.IDOSubscriptionActivity activities = 1 */ activities: IDOSubscriptionActivity[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.IDOSubscriptionActivity */ interface IDOSubscriptionActivity { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: mito_api.Coin subscribed_coin = 2 */ subscribedCoin?: Coin$6; /** * @generated from protobuf field: double usd_value = 3 */ usdValue: number; /** * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; /** * @generated from protobuf field: string tx_hash = 5 */ txHash: string; } /** * @generated from protobuf message mito_api.GetWhitelistResponse */ interface GetWhitelistResponse { /** * @generated from protobuf field: optional string ido_address = 1 */ idoAddress?: string; /** * @generated from protobuf field: repeated mito_api.WhitelistAccount accounts = 2 */ accounts: WhitelistAccount[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 3 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.WhitelistAccount */ interface WhitelistAccount { /** * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * @generated from protobuf field: sint64 updated_at = 2 */ updatedAt: bigint; /** * @generated from protobuf field: string weight = 3 */ weight: string; } /** * @generated from protobuf message mito_api.GetClaimReferencesResponse */ interface GetClaimReferencesResponse { /** * @generated from protobuf field: repeated mito_api.ClaimReference claim_references = 1 */ claimReferences: ClaimReference[]; /** * @generated from protobuf field: mito_api.Pagination pagination = 2 */ pagination?: Pagination$1; } /** * @generated from protobuf message mito_api.ClaimReference */ interface ClaimReference { /** * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * @generated from protobuf field: string cw_contract_address = 2 */ cwContractAddress: string; /** * @generated from protobuf field: string ido_contract_address = 3 */ idoContractAddress: string; /** * @generated from protobuf field: string start_vesting_time = 4 */ startVestingTime: string; /** * @generated from protobuf field: sint64 vesting_duration_seconds = 5 */ vestingDurationSeconds: bigint; /** * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; /** * @generated from protobuf field: string claimed_amount = 7 */ claimedAmount: string; /** * @generated from protobuf field: string claimable_amount = 8 */ claimableAmount: string; /** * @generated from protobuf field: string denom = 9 */ denom: string; } /** * @generated MessageType for protobuf message mito_api.GetVaultsResponse */ declare const GetVaultsResponse = new GetVaultsResponse$Type(); /** * @generated MessageType for protobuf message mito_api.Vault */ declare const Vault$1 = new Vault$Type(); /** * @generated MessageType for protobuf message mito_api.Changes */ declare const Changes = new Changes$Type(); /** * @generated MessageType for protobuf message mito_api.SubaccountBalance */ declare const SubaccountBalance$1 = new SubaccountBalance$Type(); /** * @generated MessageType for protobuf message mito_api.DenomBalance */ declare const DenomBalance$1 = new DenomBalance$Type(); /** * @generated MessageType for protobuf message mito_api.Pagination */ declare const Pagination$1 = new Pagination$Type(); /** * @generated MessageType for protobuf message mito_api.GetVaultResponse */ declare const GetVaultResponse$1 = new GetVaultResponse$Type(); /** * @generated MessageType for protobuf message mito_api.LPTokenPriceChartResponse */ declare const LPTokenPriceChartResponse = new LPTokenPriceChartResponse$Type(); /** * @generated MessageType for protobuf message mito_api.PriceSnapshot */ declare const PriceSnapshot = new PriceSnapshot$Type(); /** * @generated MessageType for protobuf message mito_api.VaultsByHolderAddressResponse */ declare const VaultsByHolderAddressResponse = new VaultsByHolderAddressResponse$Type(); /** * @generated MessageType for protobuf message mito_api.Subscription */ declare const Subscription$2 = new Subscription$Type(); /** * @generated MessageType for protobuf message mito_api.LPHoldersResponse */ declare const LPHoldersResponse = new LPHoldersResponse$Type(); /** * @generated MessageType for protobuf message mito_api.Holders */ declare const Holders = new Holders$Type(); /** * @generated MessageType for protobuf message mito_api.PortfolioResponse */ declare const PortfolioResponse = new PortfolioResponse$Type(); /** * @generated MessageType for protobuf message mito_api.LeaderboardResponse */ declare const LeaderboardResponse = new LeaderboardResponse$Type(); /** * @generated MessageType for protobuf message mito_api.LeaderboardEntry */ declare const LeaderboardEntry = new LeaderboardEntry$Type(); /** * @generated MessageType for protobuf message mito_api.LeaderboardEpochsResponse */ declare const LeaderboardEpochsResponse = new LeaderboardEpochsResponse$Type(); /** * @generated MessageType for protobuf message mito_api.LeaderboardEpoch */ declare const LeaderboardEpoch = new LeaderboardEpoch$Type(); /** * @generated MessageType for protobuf message mito_api.TransfersHistoryResponse */ declare const TransfersHistoryResponse = new TransfersHistoryResponse$Type(); /** * @generated MessageType for protobuf message mito_api.Transfer */ declare const Transfer = new Transfer$Type(); /** * @generated MessageType for protobuf message mito_api.Coin */ declare const Coin$6 = new Coin$Type(); /** * @generated MessageType for protobuf message mito_api.GetStakingPoolsResponse */ declare const GetStakingPoolsResponse = new GetStakingPoolsResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StakingPool */ declare const StakingPool = new StakingPool$Type(); /** * @generated MessageType for protobuf message mito_api.Gauge */ declare const Gauge = new Gauge$Type(); /** * @generated MessageType for protobuf message mito_api.StakingRewardByAccountResponse */ declare const StakingRewardByAccountResponse = new StakingRewardByAccountResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StakingReward */ declare const StakingReward = new StakingReward$Type(); /** * @generated MessageType for protobuf message mito_api.StakingHistoryResponse */ declare const StakingHistoryResponse = new StakingHistoryResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StakingActivity */ declare const StakingActivity = new StakingActivity$Type(); /** * @generated MessageType for protobuf message mito_api.StreamTransfersResponse */ declare const StreamTransfersResponse = new StreamTransfersResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StreamVaultResponse */ declare const StreamVaultResponse = new StreamVaultResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StreamHolderSubscriptionResponse */ declare const StreamHolderSubscriptionResponse = new StreamHolderSubscriptionResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StreamStakingRewardByAccountResponse */ declare const StreamStakingRewardByAccountResponse = new StreamStakingRewardByAccountResponse$Type(); /** * @generated MessageType for protobuf message mito_api.StreamHistoricalStakingResponse */ declare const StreamHistoricalStakingResponse = new StreamHistoricalStakingResponse$Type(); /** * @generated MessageType for protobuf message mito_api.MissionsResponse */ declare const MissionsResponse = new MissionsResponse$Type(); /** * @generated MessageType for protobuf message mito_api.Mission */ declare const Mission = new Mission$Type(); /** * @generated MessageType for protobuf message mito_api.MissionLeaderboardResponse */ declare const MissionLeaderboardResponse = new MissionLeaderboardResponse$Type(); /** * @generated MessageType for protobuf message mito_api.MissionLeaderboardEntry */ declare const MissionLeaderboardEntry = new MissionLeaderboardEntry$Type(); /** * @generated MessageType for protobuf message mito_api.ListIDOsResponse */ declare const ListIDOsResponse = new ListIDOsResponse$Type(); /** * @generated MessageType for protobuf message mito_api.IDO */ declare const IDO = new IDO$Type(); /** * @generated MessageType for protobuf message mito_api.TokenInfo */ declare const TokenInfo = new TokenInfo$Type(); /** * @generated MessageType for protobuf message mito_api.IDOProgress */ declare const IDOProgress = new IDOProgress$Type(); /** * @generated MessageType for protobuf message mito_api.ArrayOfString */ declare const ArrayOfString = new ArrayOfString$Type(); /** * @generated MessageType for protobuf message mito_api.InitParams */ declare const InitParams = new InitParams$Type(); /** * @generated MessageType for protobuf message mito_api.VestingConfigMap */ declare const VestingConfigMap = new VestingConfigMap$Type(); /** * @generated MessageType for protobuf message mito_api.VestingConfig */ declare const VestingConfig = new VestingConfig$Type(); /** * @generated MessageType for protobuf message mito_api.GetIDOResponse */ declare const GetIDOResponse = new GetIDOResponse$Type(); /** * @generated MessageType for protobuf message mito_api.GetIDOSubscribersResponse */ declare const GetIDOSubscribersResponse = new GetIDOSubscribersResponse$Type(); /** * @generated MessageType for protobuf message mito_api.IDOSubscriber */ declare const IDOSubscriber = new IDOSubscriber$Type(); /** * @generated MessageType for protobuf message mito_api.GetIDOSubscriptionResponse */ declare const GetIDOSubscriptionResponse = new GetIDOSubscriptionResponse$Type(); /** * @generated MessageType for protobuf message mito_api.IDOSubscription */ declare const IDOSubscription = new IDOSubscription$Type(); /** * @generated MessageType for protobuf message mito_api.IDOClaimedCoins */ declare const IDOClaimedCoins = new IDOClaimedCoins$Type(); /** * @generated MessageType for protobuf message mito_api.GetIDOActivitiesResponse */ declare const GetIDOActivitiesResponse = new GetIDOActivitiesResponse$Type(); /** * @generated MessageType for protobuf message mito_api.IDOSubscriptionActivity */ declare const IDOSubscriptionActivity = new IDOSubscriptionActivity$Type(); /** * @generated MessageType for protobuf message mito_api.GetWhitelistResponse */ declare const GetWhitelistResponse = new GetWhitelistResponse$Type(); /** * @generated MessageType for protobuf message mito_api.WhitelistAccount */ declare const WhitelistAccount = new WhitelistAccount$Type(); /** * @generated MessageType for protobuf message mito_api.GetClaimReferencesResponse */ declare const GetClaimReferencesResponse = new GetClaimReferencesResponse$Type(); /** * @generated MessageType for protobuf message mito_api.ClaimReference */ declare const ClaimReference = new ClaimReference$Type(); //#endregion //#region src/client/indexer/types/mito.d.ts type MitoGaugeStatus = 'active' | 'live'; declare const MitoGaugeStatus: { readonly Active: "active"; readonly Live: "live"; }; interface MitoHolders { holderAddress: string; vaultAddress: string; amount: string; updatedAt: number; lpAmountPercentage: number; redemptionLockTime: string; stakedAmount: string; } interface MitoPriceSnapshot { price: number; updatedAt: number; } interface MitoChanges { allTimeChange: number; threeMonthsChange?: number; oneMonthChange?: number; oneDayChange?: number; oneWeekChange?: number; oneYearChange?: number; threeYearsChange?: number; sixMonthsChange?: number; } interface MitoDenomBalance { denom: string; totalBalance: string; } interface MitoSubaccountBalance { subaccountId: string; balancesList: MitoDenomBalance[]; } interface MitoVault { contractAddress: string; codeId: string; vaultName: string; marketId: string; currentTvl: number; profits?: MitoChanges; updatedAt: number; vaultType: string; lpTokenPrice: number; subaccountInfo?: MitoSubaccountBalance; masterContractAddress: string; totalLpAmount: string; slug: string; createdAt: number; notionalValueCap: string; tvlChanges?: MitoChanges; apy: number; apy7D: number; apy7DFq: number; apyue: number; apyV3: number; registrationMode: string; } interface MitoSubscription { vaultInfo?: MitoVault; lpAmount: string; holderAddress: string; lpAmountPercentage: number; } interface MitoPagination { total: Number; } interface MitoPortfolio { totalValue: number; pnl: number; totalValueChartList: MitoPriceSnapshot[]; pnlChartList: MitoPriceSnapshot[]; updatedAt: number; } interface MitoLeaderboardEntry { address: string; pnl: number; } interface MitoLeaderboard { entriesList: MitoLeaderboardEntry[]; snapshotBlock: string; updatedAt: number; epochId: number; } interface MitoLeaderboardEpoch { epochId: number; startAt: number; endAt: number; isLive: boolean; } interface MitoTransfer { lpAmount: string; coins: Coin[]; usdValue: string; isDeposit: boolean; executedAt: number; account: string; vault: string; txHash: string; tidByVault: number; tidByAccount: number; } interface MitoGauge { id: string; owner: string; startTimestamp: number; endTimestamp: number; rewardTokens: Coin[]; lastDistribution: number; status: MitoGaugeStatus; } interface MitoStakingPool { vaultName: string; vaultAddress: string; stakeDenom: string; gauges: MitoGauge[]; apr: number; totalLiquidity: number; stakingAddress: string; aprBreakdown: Record; } interface MitoStakingReward { vaultName: string; vaultAddress: string; stakedAmount: Coin | undefined; apr: number; claimableRewards: Coin[]; lockTimestamp: number; lockedAmount: Coin | undefined; } interface MitoStakingActivity { stakeAmount: Coin | undefined; vaultAddress: string; action: string; txHash: string; rewardedTokens: Coin[]; timestamp: number; staker: string; numberByAccount: number; } interface MitoMission { id: string; points: string; completed: boolean; accruedPoints: string; updatedAt: number; progress: number; expected: number; } interface MitoMissionLeaderboardEntry { address: string; accruedPoints: string; } interface MitoMissionLeaderboard { entries: MitoMissionLeaderboardEntry[]; updatedAt: number; rank?: string; } interface MitoTokenInfo { denom: string; supply: string; symbol: string; decimal: number; logoUrl: string; } interface MitoIDOProgress { status: string; timestamp: number; } interface MitoStakeToSubscription { stakedAmount: string; subscribableAmount: string; } interface MitoVestingConfig { vestingDurationSeconds?: number; vestingStartDelaySeconds?: number; schedule?: string; } interface MitoVestingConfigMap { projectOwnerQuote?: MitoVestingConfig; projectOwnerLpTokens?: MitoVestingConfig; usersProjectToken?: MitoVestingConfig; } interface MitoIDOInitParams { vestingConfig?: MitoVestingConfigMap; } interface MitoIDO { startTime: number; endTime: number; owner: string; status: string; tokenInfo?: MitoTokenInfo; capPerAddress: string; contractAddress: string; subscribedAmount: string; projectTokenAmount: string; targetAmountInQuoteDenom: string; secondBeforeStartToSetQuotePrice: number; targetAmountInUsd: string; tokenPrice: number; isAccountWhiteListed: boolean; isLaunchWithVault: boolean; isVestingScheduleEnabled: boolean; name: string; progress: MitoIDOProgress[]; quoteDenom: string; stakeToSubscription: MitoStakeToSubscription[]; useWhitelist: boolean; marketId: string; vaultAddress: string; vestingConfig?: MitoVestingConfigMap; projectDescription: string; isPermissionless: boolean; } interface MitoIDOSubscriber { address: string; subscribedCoin?: Coin; lastSubscribeTime: number; estimateTokenReceived?: Coin; estimateLpAmount?: Coin | undefined; estimateRefundAmount?: Coin | undefined; createdAt: number; } interface MitoIDOSubscriptionActivity { address: string; subscribedCoin?: Coin; usdValue: number; timestamp: number; txHash: string; } interface MitoIDOClaimedCoins { claimedCoins: Coin[]; updatedAt: number; } interface MitoIDOSubscription { maxSubscriptionCoin?: Coin; committedAmount: string; price: number; claimableCoins: Coin[]; rewardClaimed: boolean; tokenInfo?: MitoTokenInfo; quoteDenom: string; updatedAt: number; stakedAmount: string; claimTxHash?: string; ownerClaimableCoins: Coin[]; marketId: string; claimedCoins?: MitoIDOClaimedCoins; } interface MitoWhitelistAccount { accountAddress: string; updatedAt: number; weight: string; } interface MitoClaimReference { denom: string; updatedAt: number; claimedAmount: string; claimableAmount: string; accountAddress: string; cwContractAddress: string; idoContractAddress: string; startVestingTime: number; vestingDurationSeconds: number; } type GrpcMitoIDO = IDO; type GrpcMitoVault = Vault$1; type GrpcMitoMission = Mission; type GrpcMitoChanges = Changes; type GrpcMitoHolders = Holders; type GrpcMitoStakingGauge = Gauge; type GrpcMitoTokenInfo = TokenInfo; type GrpcMitoPagination = Pagination$1; type GrpcMitoIDOProgress = IDOProgress; type GrpcMitoStakingPool = StakingPool; type GrpcMitoDenomBalance = DenomBalance$1; type GrpcMitoSubscription = Subscription$2; type GrpcMitoPriceSnapshot = PriceSnapshot; type GrpcMitoIDOSubscriber = IDOSubscriber; type GrpcMitoClaimReference = ClaimReference; type GrpcMitoIDOClaimedCoins = IDOClaimedCoins; type GrpcMitoIDOSubscription = IDOSubscription; type GrpcMitoLeaderboardEntry = LeaderboardEntry; type GrpcMitoLeaderboardEpoch = LeaderboardEpoch; type GrpcMitoStakingStakingReward = StakingReward; type GrpcMitoSubaccountBalance = SubaccountBalance$1; type GrpcMitoWhitelistAccount = WhitelistAccount; type GrpcMitoStakingStakingActivity = StakingActivity; type GrpcMitoMissionLeaderboardEntry = MissionLeaderboardEntry; type GrpcMitoIDOSubscriptionActivity = IDOSubscriptionActivity; //#endregion //#region src/client/indexer/types/account.d.ts declare const TransferType: { readonly Internal: "internal"; readonly External: "external"; readonly Withdraw: "withdraw"; readonly Deposit: "deposit"; }; type TransferType = (typeof TransferType)[keyof typeof TransferType]; interface SubaccountTransfer { transferType: TransferType; srcSubaccountId: string; srcSubaccountAddress: string; dstSubaccountId: string; dstSubaccountAddress: string; amount?: Coin; executedAt: number; } interface SubaccountDeposit { totalBalance: string; availableBalance: string; } interface SubaccountBalance { subaccountId: string; accountAddress: string; denom: string; deposit?: SubaccountDeposit; } interface SubaccountPortfolio { subaccountId: string; availableBalance: string; lockedBalance: string; unrealizedPnl: string; } interface AccountPortfolio { portfolioValue: string; availableBalance: string; lockedBalance: string; unrealizedPnl: string; subaccountsList: Array; } interface TradingReward { accountAddress: string; rewards: { amount: string; denom: string; }[]; distributedAt: number; } type GrpcTradingReward = Reward; type GrpcAccountPortfolio = AccountPortfolio$1; type GrpcSubaccountDeposit = SubaccountDeposit$2; type GrpcSubaccountBalance = SubaccountBalance$2; type GrpcSubaccountPortfolio = SubaccountPortfolio$1; type GrpcSubaccountBalanceTransfer = SubaccountBalanceTransfer; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_trading_rpc_pb.d.ts /** * @generated from protobuf message injective_trading_rpc.ListTradingStrategiesResponse */ interface ListTradingStrategiesResponse$1 { /** * The trading strategies * * @generated from protobuf field: repeated injective_trading_rpc.TradingStrategy strategies = 1 */ strategies: TradingStrategy$1[]; /** * @generated from protobuf field: injective_trading_rpc.Paging paging = 2 */ paging?: Paging$4; } /** * @generated from protobuf message injective_trading_rpc.TradingStrategy */ interface TradingStrategy$1 { /** * @generated from protobuf field: string state = 1 */ state: string; /** * MarketId of the trading strategy * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * subaccount ID of the trading strategy * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * Account address * * @generated from protobuf field: string account_address = 4 */ accountAddress: string; /** * Contract address * * @generated from protobuf field: string contract_address = 5 */ contractAddress: string; /** * Execution price of the trading strategy * * @generated from protobuf field: string execution_price = 6 */ executionPrice: string; /** * Base quantity of the trading strategy * * @generated from protobuf field: string base_quantity = 7 */ baseQuantity: string; /** * Quote quantity of the trading strategy * * @generated from protobuf field: string quote_quantity = 20 */ quoteQuantity: string; /** * Lower bound of the trading strategy * * @generated from protobuf field: string lower_bound = 8 */ lowerBound: string; /** * Upper bound of the trading strategy * * @generated from protobuf field: string upper_bound = 9 */ upperBound: string; /** * Stop loss limit of the trading strategy * * @generated from protobuf field: string stop_loss = 10 */ stopLoss: string; /** * Take profit limit of the trading strategy * * @generated from protobuf field: string take_profit = 11 */ takeProfit: string; /** * Swap fee of the trading strategy * * @generated from protobuf field: string swap_fee = 12 */ swapFee: string; /** * Base deposit at the time of closing the trading strategy * * @generated from protobuf field: string base_deposit = 17 */ baseDeposit: string; /** * Quote deposit at the time of closing the trading strategy * * @generated from protobuf field: string quote_deposit = 18 */ quoteDeposit: string; /** * Market mid price at the time of closing the trading strategy * * @generated from protobuf field: string market_mid_price = 19 */ marketMidPrice: string; /** * Subscription quote quantity of the trading strategy * * @generated from protobuf field: string subscription_quote_quantity = 21 */ subscriptionQuoteQuantity: string; /** * Subscription base quantity of the trading strategy * * @generated from protobuf field: string subscription_base_quantity = 22 */ subscriptionBaseQuantity: string; /** * Number of grid levels of the trading strategy * * @generated from protobuf field: string number_of_grid_levels = 23 */ numberOfGridLevels: string; /** * Indicates whether the trading strategy should exit with quote only * * @generated from protobuf field: bool should_exit_with_quote_only = 24 */ shouldExitWithQuoteOnly: boolean; /** * Indicates the reason for stopping the trading strategy * * @generated from protobuf field: string stop_reason = 25 */ stopReason: string; /** * Indicates whether the trading strategy is pending execution * * @generated from protobuf field: bool pending_execution = 26 */ pendingExecution: boolean; /** * Block height when the strategy was created. * * @generated from protobuf field: sint64 created_height = 13 */ createdHeight: bigint; /** * Block height when the strategy was removed. * * @generated from protobuf field: sint64 removed_height = 14 */ removedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 15 */ createdAt: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 16 */ updatedAt: bigint; /** * Indicate how bot will convert funds (into base or quote or keep as is) after * strategy ended * * @generated from protobuf field: string exit_type = 27 */ exitType: string; /** * Exit config for stop loss * * @generated from protobuf field: injective_trading_rpc.ExitConfig stop_loss_config = 28 */ stopLossConfig?: ExitConfig; /** * Exit config for take profit * * @generated from protobuf field: injective_trading_rpc.ExitConfig take_profit_config = 29 */ takeProfitConfig?: ExitConfig; /** * Strategy type: arithmetic, geometric... * * @generated from protobuf field: string strategy_type = 30 */ strategyType: string; /** * Version of the contract * * @generated from protobuf field: string contract_version = 31 */ contractVersion: string; /** * Name of the contract * * @generated from protobuf field: string contract_name = 32 */ contractName: string; /** * Type of the market * * @generated from protobuf field: string market_type = 33 */ marketType: string; /** * lastExecutedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 last_executed_at = 34 */ lastExecutedAt: bigint; /** * trailing up price * * @generated from protobuf field: string trail_up_price = 35 */ trailUpPrice: string; /** * trailing down price * * @generated from protobuf field: string trail_down_price = 36 */ trailDownPrice: string; /** * trailing up counter * * @generated from protobuf field: sint64 trail_up_counter = 37 */ trailUpCounter: bigint; /** * trailing down counter * * @generated from protobuf field: sint64 trail_down_counter = 38 */ trailDownCounter: bigint; /** * TVL of the trading strategy * * @generated from protobuf field: string tvl = 39 */ tvl: string; /** * PnL of the trading strategy * * @generated from protobuf field: string pnl = 40 */ pnl: string; /** * PnL percentage of the trading strategy * * @generated from protobuf field: string pnl_perc = 41 */ pnlPerc: string; /** * pnlUpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 pnl_updated_at = 42 */ pnlUpdatedAt: bigint; /** * Indicates the performance of the trading strategy * * @generated from protobuf field: string performance = 43 */ performance: string; /** * Return on investment of the trading strategy * * @generated from protobuf field: string roi = 44 */ roi: string; /** * Initial base price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string initial_base_price = 45 */ initialBasePrice: string; /** * Initial quote price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string initial_quote_price = 46 */ initialQuotePrice: string; /** * Current base price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string current_base_price = 47 */ currentBasePrice: string; /** * Current quote price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string current_quote_price = 48 */ currentQuotePrice: string; /** * Final base price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string final_base_price = 49 */ finalBasePrice: string; /** * Final quote price of the trading strategy from asset price service * Use strategyFinalData if available to have more accurate data * * @generated from protobuf field: string final_quote_price = 50 */ finalQuotePrice: string; /** * Final data of the trading strategy. This is present from contract v0.8.4. * * @generated from protobuf field: injective_trading_rpc.StrategyFinalData final_data = 51 */ finalData?: StrategyFinalData; /** * Margin ratio of the trading strategy * * @generated from protobuf field: string margin_ratio = 52 */ marginRatio: string; /** * Lower trailing bound of the trading strategy * * @generated from protobuf field: string lower_trailing_bound = 53 */ lowerTrailingBound: string; /** * Upper trailing bound of the trading strategy * * @generated from protobuf field: string upper_trailing_bound = 54 */ upperTrailingBound: string; /** * New upper bound of the trading strategy * * @generated from protobuf field: string new_upper_bound = 55 */ newUpperBound: string; /** * New lower bound of the trading strategy * * @generated from protobuf field: string new_lower_bound = 56 */ newLowerBound: string; } /** * @generated from protobuf message injective_trading_rpc.ExitConfig */ interface ExitConfig { /** * strategy exit type (stopLoss/takeProfit) * * @generated from protobuf field: string exit_type = 1 */ exitType: string; /** * strategy stopLoss/takeProfit price * * @generated from protobuf field: string exit_price = 2 */ exitPrice: string; } /** * @generated from protobuf message injective_trading_rpc.StrategyFinalData */ interface StrategyFinalData { /** * Initial base amount * * @generated from protobuf field: string initial_base_amount = 1 */ initialBaseAmount: string; /** * Initial quote amount * * @generated from protobuf field: string initial_quote_amount = 2 */ initialQuoteAmount: string; /** * Final base amount * * @generated from protobuf field: string final_base_amount = 3 */ finalBaseAmount: string; /** * Final quote amount * * @generated from protobuf field: string final_quote_amount = 4 */ finalQuoteAmount: string; /** * Initial base price * * @generated from protobuf field: string initial_base_price = 5 */ initialBasePrice: string; /** * Initial quote price * * @generated from protobuf field: string initial_quote_price = 6 */ initialQuotePrice: string; /** * Final base price * * @generated from protobuf field: string final_base_price = 7 */ finalBasePrice: string; /** * Final quote price * * @generated from protobuf field: string final_quote_price = 8 */ finalQuotePrice: string; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_trading_rpc.Paging */ interface Paging$4 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * @generated from protobuf message injective_trading_rpc.GetTradingStatsResponse */ interface GetTradingStatsResponse { /** * Total of unique active trading strategies * * @generated from protobuf field: uint64 active_trading_strategies = 1 */ activeTradingStrategies: bigint; /** * Total number of created trading strategies * * @generated from protobuf field: uint64 total_trading_strategies_created = 2 */ totalTradingStrategiesCreated: bigint; /** * Total TVL of all active trading strategies * * @generated from protobuf field: string total_tvl = 3 */ totalTvl: string; /** * Market stats * * @generated from protobuf field: repeated injective_trading_rpc.Market markets = 4 */ markets: Market[]; } /** * @generated from protobuf message injective_trading_rpc.Market */ interface Market { /** * MarketId of the trading strategy * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * Total of unique active trading strategies * * @generated from protobuf field: uint64 active_trading_strategies = 2 */ activeTradingStrategies: bigint; } /** * @generated from protobuf message injective_trading_rpc.StreamStrategyResponse */ interface StreamStrategyResponse { /** * The trading strategy * * @generated from protobuf field: injective_trading_rpc.TradingStrategy trading_strategy = 1 */ tradingStrategy?: TradingStrategy$1; /** * Timestamp in UNIX millis * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated MessageType for protobuf message injective_trading_rpc.ListTradingStrategiesResponse */ declare const ListTradingStrategiesResponse$1 = new ListTradingStrategiesResponse$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.TradingStrategy */ declare const TradingStrategy$1 = new TradingStrategy$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.ExitConfig */ declare const ExitConfig = new ExitConfig$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.StrategyFinalData */ declare const StrategyFinalData = new StrategyFinalData$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.Paging */ declare const Paging$4 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.GetTradingStatsResponse */ declare const GetTradingStatsResponse = new GetTradingStatsResponse$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.Market */ declare const Market = new Market$Type(); /** * @generated MessageType for protobuf message injective_trading_rpc.StreamStrategyResponse */ declare const StreamStrategyResponse = new StreamStrategyResponse$Type(); //#endregion //#region src/client/indexer/types/trading.d.ts type ListTradingStrategiesResponse = ListTradingStrategiesResponse$1; type TradingStrategy = TradingStrategy$1; declare const MarketType: { readonly Spot: "spot"; readonly Derivative: "derivative"; }; type MarketType = (typeof MarketType)[keyof typeof MarketType]; type GridStrategyType = 'geometric' | 'arithmetic' | 'perpetual'; declare const GridStrategyType: { readonly Geometric: "geometric"; readonly Arithmetic: "arithmetic"; readonly Perpetual: "perpetual"; }; type GridStrategyStreamResponse = StreamStrategyResponse; //#endregion //#region src/client/indexer/types/explorer.d.ts declare const AccessTypeCode: { readonly AccessTypeUnspecified: 0; readonly AccessTypeNobody: 1; readonly AccessTypeOnlyAddress: 2; readonly AccessTypeEverybody: 3; readonly AccessTypeAnyOfAddresses: 4; }; type AccessTypeCode = (typeof AccessTypeCode)[keyof typeof AccessTypeCode]; declare const AccessType: { readonly AccessTypeUnspecified: "Unspecified"; readonly AccessTypeNobody: "Nobody"; readonly AccessTypeOnlyAddress: "Only Address"; readonly AccessTypeEverybody: "Everybody"; readonly AccessTypeAnyOfAddresses: "Any of Addresses"; }; type AccessType = (typeof AccessType)[keyof typeof AccessType]; declare const ValidatorUptimeStatus: { readonly Proposed: "proposed"; readonly Signed: "signed"; readonly Missed: "missed"; }; type ValidatorUptimeStatus = (typeof ValidatorUptimeStatus)[keyof typeof ValidatorUptimeStatus]; interface Paging { from: number; to: number; total: number; } interface EventLogEvent { type: string; attributes: Array<{ key: string; value: string; }>; } interface EventLog { events: EventLogEvent[]; } interface Signature { pubkey: string; address: string; signature: string; sequence: number; } interface Message { type: string; message: any; } interface IBCTransferTx { sender: string; receiver: string; sourcePort: string; sourceChannel: string; destinationPort: string; destinationChannel: string; amount: string; denom: string; timeoutHeight: string; timeoutTimestamp: number; packetSequence: number; dataHex: Uint8Array | string; state: string; txHashesList: string[]; createdAt: string; updatedAt: string; } interface PeggyDepositTx { sender: string; receiver: string; eventNonce: number; eventHeight: number; amount: string; denom: string; orchestratorAddress: string; state: string; claimType: number; txHashesList: string[]; createdAt: string; updatedAt: string; } interface PeggyWithdrawalTx { sender: string; receiver: string; amount: string; denom: string; bridgeFee: string; outgoingTxId: number; batchTimeout: number; batchNonce: number; orchestratorAddress: string; eventNonce: number; eventHeight: number; state: string; claimType: number; txHashesList: string[]; createdAt: string; updatedAt: string; } interface GasFee { amounts: { amount: string; denom: string; }[]; gasLimit: number; payer: string; granter: string; } interface TxMessage { key: string; value: string; } interface GrpcBankMsgSendMessage { type: string; value: { amount: [{ amount: string; denom: string; }]; from_address: string; to_address: string; }; } interface BankMsgSendTransaction { blockNumber: number; blockTimestamp: string; hash: string; amount: string; denom: string; sender: string; receiver: string; } interface Transaction { id: string; blockNumber: number; blockTimestamp: string; hash: string; memo?: string; code: number; data?: Uint8Array | string; info: string; gasWanted: number; gasFee: GasFee; gasUsed: number; events?: Array<{ type: string; attributes: Record; }>; txType: string; signatures: Signature[]; codespace: string; messages?: TxMessage[]; errorLog?: string; } interface IndexerStreamTransaction { id: string; blockNumber: number; blockTimestamp: string; hash: string; codespace: string; messages: string; txNumber: number; errorLog: string; code: number; } interface Block$1 { height: number; proposer: string; moniker: string; blockHash: string; parentHash: string; numPreCommits: number; numTxs: number; timestamp: string; } interface BlockWithTxs { height: number; proposer: string; moniker: string; blockHash: string; parentHash: string; numPreCommits: number; numTxs: number; txs?: Transaction[]; timestamp: string; } interface ExplorerValidatorDescription { moniker: string; identity: string; website: string; securityContact: string; details: string; } interface ValidatorUptime { blockNumber: number; status: string; } interface ValidatorSlashingEvent { blockNumber: number; blockTimestamp: string; address: string; power: number; reason: string; jailed: string; missedBlocks: number; } interface ExplorerValidator { id: string; moniker: string; operatorAddress: string; consensusAddress: string; jailed: boolean; status: number; tokens: string; delegatorShares: string; description?: ExplorerValidatorDescription; unbondingHeight: number; unbondingTime: string; commissionRate: string; commissionMaxRate: string; commissionMaxChangeRate: string; commissionUpdateTime: string; proposed: number; signed: number; uptimePercentage: number; missed: number; timestamp: string; uptimesList: ValidatorUptime[]; slashingEventsList: ValidatorSlashingEvent[]; imageUrl: string; } interface CW20Message { decimals: number; initial_balances: [{ address: string; amount: string; }]; marketing: {}; mint: { minter: string; }; name: string; symbol: string; } interface ExplorerCW20BalanceWithToken { contractAddress: string; account: string; balance: string; updatedAt: number; token: TokenStatic; } interface Contract { label: string; address: string; txHash: string; creator: string; executes: number; instantiatedAt: number; lastExecutedAt: number; funds?: number; codeId: number; admin?: string; initMessage?: CW20Message; currentMigrateMessage?: CW20Message; cw20_metadata?: { token_info?: { name: string; symbol: string; decimals: number; total_supply: string; }; }; } interface ContractTransactionWithMessages extends Omit { messages: Array<{ type: string; value: { sender: string; contract: string; msg: Record; funds: string; }; }>; } interface WasmCode { id: number; txHash: string; creator: string; contractType: string; version: string; instantiates: number; creationDate: number; checksum?: CosmWasmChecksum; permission?: CosmWasmPermission; proposalId?: number; } interface BankTransfer { sender: string; recipient: string; amounts: Coin[]; blockNumber: number; blockTimestamp: number; } interface ContractTransaction { txHash: string; type: string; code: number; messages: Message[]; amount: BigNumber$1; fee: BigNumber$1; height: number; time: number; data: string; memo: string; tx_number: number; error_log: string; logs: EventLog[]; signatures: Signature[]; } interface ExplorerTransaction extends Omit { memo: string; messages: Message[]; errorLog?: string; logs?: EventLog[]; claimIds?: number[]; } interface ExplorerBlockWithTxs extends Omit { txs: ExplorerTransaction[]; } interface ExplorerValidatorUptime extends Omit { status: ValidatorUptimeStatus; } interface CosmWasmPermission { access_type: AccessTypeCode; address: string; } interface CosmWasmChecksum { algorithm: string; hash: string; } interface ExplorerStats { assets: string | bigint; txsTotal: string | bigint; addresses: string; injSupply: string | bigint; txsInPast30Days: string | bigint; txsInPast24Hours: string | bigint; blockCountInPast24Hours: string | bigint; txsPerSecondInPast24Hours: string | bigint; txsPerSecondInPast100Blocks: string | bigint; } interface ExplorerTxsV2Response { data: ExplorerTransactionV2[]; paging?: Paging$5; } interface ExplorerTransactionV2 { logs: any; id: string; code: number; hash: string; messages: any; txNumber: number; errorLog?: string; codespace: string; claimIds: string[]; blockNumber: number; txMsgTypes: string[]; blockTimestamp: number; blockUnixTimestamp: number; signatures: Signature$1[]; } type GrpcIBCTransferTx = IBCTransferTx$1; type GrpcPeggyDepositTx = PeggyDepositTx$1; type GrpcPeggyWithdrawalTx = PeggyWithdrawalTx$1; type GrpcGasFee = GasFee$1; type GrpcValidatorUptime = ValidatorUptime$1; type GrpcIndexerValidatorDescription = ValidatorDescription$1; type GrpcValidatorSlashingEvent = SlashingEvent; type GrpcExplorerStats = GetStatsResponse; //#endregion //#region src/client/indexer/types/rfq.d.ts /** * Signature scheme for RFQ quotes and conditional orders. * - `v1`: raw JSON keccak256 * - `v2`: EIP-712 */ type RFQSignMode = 'v1' | 'v2'; interface RFQRequestType { rfqId: number; margin: string; expiry: number; status: string; height: number; clientId: string; marketId: string; quantity: string; direction: string; createdAt: number; updatedAt: number; worstPrice: string; requestAddress: string; transactionTime: number; } interface RFQRequestInputType { margin: string; expiry: number; clientId: string; marketId: string; quantity: string; direction: string; worstPrice: string; priceCheck?: boolean; memo?: string; requestAddress?: string; transactionTime?: number; } interface RFQExpiryType { height?: number; timestamp?: number; } interface RFQQuoteType { rfqId: number; price: string; maker: string; taker: string; margin: string; status: string; height: number; chainId: string; marketId: string; quantity: string; clientId: string; signature: string; createdAt: number; updatedAt: number; eventTime: number; evmChainId: number; priceCheck: boolean; signMode: RFQSignMode; expiry: RFQExpiryType; takerDirection: string; contractAddress: string; transactionTime: number; minFillQuantity: string; makerSubaccountNonce: number; } interface RFQProcessedQuoteType { error: string; rfqId: number; price: string; maker: string; taker: string; margin: string; status: string; height: number; chainId: string; marketId: string; quantity: string; signature: string; createdAt: number; updatedAt: number; clientId: string; eventTime: number; evmChainId: number; priceCheck: boolean; signMode: RFQSignMode; executedMargin: string; takerDirection: string; expiry?: RFQExpiryType; contractAddress: string; transactionTime: number; minFillQuantity: string; executedQuantity: string; makerSubaccountNonce: number; } interface RFQSettlementLimitActionType$1 { price: string; } interface RFQSettlementUnfilledActionType { limit?: RFQSettlementLimitActionType$1; market?: {}; } interface RFQSettlementType { cid: string; rfqId: number; taker: string; margin: string; height: number; txHash: string; marketId: string; quantity: string; direction: string; createdAt: number; updatedAt: number; eventTime: number; worstPrice: string; fallbackMargin: string; transactionTime: number; fallbackQuantity: string; unfilledAction?: RFQSettlementUnfilledActionType; } interface SettlementsResponse { next: string[]; settlements: RFQSettlementType[]; } interface RFQConditionalOrderInput { version: number; chainId: string; contractAddress: string; taker: string; epoch: bigint; rfqId: bigint; marketId: string; subaccountNonce: number; laneVersion: bigint; deadlineMs: bigint; direction: string; quantity: string; margin: string; worstPrice: string; minTotalFillQuantity: string; triggerType: string; triggerPrice: string; unfilledAction?: string; cid?: string; allowedRelayer?: string; } interface RFQConditionalOrder { rfqId: number; error?: string; txHash: string; margin: string; status: string; marketId: string; quantity: string; direction: string; createdAt: number; updatedAt: number; expiresAt: number; eventTime: number; terminalAt: number; evmChainId: number; worstPrice: string; triggerType: string; triggerPrice: string; requestAddress: string; minTotalFillQuantity: string; takerNonceTimeWindowMs: number; } interface RFQConditionalOrdersResponse { next: string[]; orders: RFQConditionalOrder[]; } type GrpcRFQQuote = RFQQuoteType$1; type GrpcRFQExpiry = RFQExpiryType$1; type GrpcRFQRequest = RFQRequestType$1; type GrpcRFQSettlement = RFQSettlementType$1; type GrpcRFQProcessedQuote = RFQProcessedQuoteType$1; type GrpcRFQConditionalOrder = ConditionalOrderResponseType; interface RFQStreamErrorData { code: string; message: string; } interface RFQTakerStreamAckData { rfqId: number; status: string; clientId: string; } interface RFQTakerAuth { signature: string; } interface RFQTakerChallenge { nonce: string; expiresAt: number; } interface RFQTakerAuthResult { authenticated: boolean; code: string; message: string; nonce: string; } interface RFQMakerStreamAckData { rfqId: number; status: string; } interface RFQStreamPingData { sentAt: number; } interface TakerStreamEvents { /** Received a quote from a maker */ quote: { quote: RFQQuoteType; }; /** Request was acknowledged by server */ request_ack: RFQTakerStreamAckData; /** Conditional order creation was acknowledged by server */ conditional_order_ack: { order: RFQConditionalOrder; }; /** Conditional order lifecycle update (status transition, trigger, error) */ conditional_order_update: { order: RFQConditionalOrder; }; /** Auth challenge issued by server */ challenge: { challenge: RFQTakerChallenge; }; /** Result of taker stream authentication */ auth_result: RFQTakerAuthResult; /** Error received from server */ error: RFQStreamErrorData; /** Heartbeat ping sent via the local transport */ ping: RFQStreamPingData; /** Pong received (response to ping) */ pong: void; connect: { isReconnect: boolean; }; disconnect: { reason: WsDisconnectReason; willRetry: boolean; }; state_change: { from: WsState; to: WsState; }; } interface TakerStreamConfig { url: string; requestAddress: string; authVersion?: 'v1'; pingIntervalMs?: number; connectionTimeoutMs?: number; reconnect?: WsTransportConfig['reconnect']; } interface RFQMakerAuth { evmChainId: number; signature: string; } interface RFQMakerChallenge { nonce: string; evmChainId: number; expiresAt: number; } interface MakerStreamEvents { /** Received an RFQ request from a taker */ request: { request: RFQRequestType; }; /** Quote was acknowledged by server */ quote_ack: RFQMakerStreamAckData; /** Processed quote update for maker */ processed_quote: { processedQuote: RFQProcessedQuoteType; }; /** Settlement update for maker */ settlement: { settlement: RFQSettlementType; }; /** Error received from server */ error: RFQStreamErrorData; /** Auth challenge issued by server before stream loop begins */ challenge: { challenge: RFQMakerChallenge; }; /** Heartbeat ping sent via the local transport */ ping: RFQStreamPingData; /** Pong received (response to ping) */ pong: void; connect: { isReconnect: boolean; }; disconnect: { reason: WsDisconnectReason; willRetry: boolean; }; state_change: { from: WsState; to: WsState; }; } interface MakerStreamConfig { url: string; makerAddress: string; pingIntervalMs?: number; connectionTimeoutMs?: number; reconnect?: WsTransportConfig['reconnect']; } //#endregion //#region src/client/indexer/types/swap.d.ts interface Route { steps: string[]; sourceDenom: string; targetDenom: string; } interface QuantityAndFees { expectedFees: Coin[]; resultQuantity: string; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_spot_exchange_rpc_pb.d.ts /** * @generated from protobuf message injective_spot_exchange_rpc.MarketsResponse */ interface MarketsResponse$1 { /** * Spot Markets list * * @generated from protobuf field: repeated injective_spot_exchange_rpc.SpotMarketInfo markets = 1 */ markets: SpotMarketInfo[]; } /** * @generated from protobuf message injective_spot_exchange_rpc.SpotMarketInfo */ interface SpotMarketInfo { /** * SpotMarket ID is keccak265(baseDenom || quoteDenom) * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The status of the market * * @generated from protobuf field: string market_status = 2 */ marketStatus: string; /** * A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote * asset. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * Coin denom used for the base asset. * * @generated from protobuf field: string base_denom = 4 */ baseDenom: string; /** * Token metadata for base asset * * @generated from protobuf field: injective_spot_exchange_rpc.TokenMeta base_token_meta = 5 */ baseTokenMeta?: TokenMeta$3; /** * Coin denom used for the quote asset. * * @generated from protobuf field: string quote_denom = 6 */ quoteDenom: string; /** * Token metadata for quote asset * * @generated from protobuf field: injective_spot_exchange_rpc.TokenMeta quote_token_meta = 7 */ quoteTokenMeta?: TokenMeta$3; /** * Defines the fee percentage makers pay when trading (in quote asset) * * @generated from protobuf field: string maker_fee_rate = 8 */ makerFeeRate: string; /** * Defines the fee percentage takers pay when trading (in quote asset) * * @generated from protobuf field: string taker_fee_rate = 9 */ takerFeeRate: string; /** * Percentage of the transaction fee shared with the service provider * * @generated from protobuf field: string service_provider_fee = 10 */ serviceProviderFee: string; /** * Defines the minimum required tick size for the order's price * * @generated from protobuf field: string min_price_tick_size = 11 */ minPriceTickSize: string; /** * Defines the minimum required tick size for the order's quantity * * @generated from protobuf field: string min_quantity_tick_size = 12 */ minQuantityTickSize: string; /** * Minimum notional value for the market * * @generated from protobuf field: string min_notional = 13 */ minNotional: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.TokenMeta */ interface TokenMeta$3 { /** * Token full name * * @generated from protobuf field: string name = 1 */ name: string; /** * Token contract address (native or not) * * @generated from protobuf field: string address = 2 */ address: string; /** * Token symbol short name * * @generated from protobuf field: string symbol = 3 */ symbol: string; /** * URL to the logo image * * @generated from protobuf field: string logo = 4 */ logo: string; /** * Token decimals * * @generated from protobuf field: sint32 decimals = 5 */ decimals: number; /** * Token metadata fetched timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.MarketResponse */ interface MarketResponse$1 { /** * Info about particular spot market * * @generated from protobuf field: injective_spot_exchange_rpc.SpotMarketInfo market = 1 */ market?: SpotMarketInfo; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamMarketsResponse */ interface StreamMarketsResponse$1 { /** * Info about particular spot market * * @generated from protobuf field: injective_spot_exchange_rpc.SpotMarketInfo market = 1 */ market?: SpotMarketInfo; /** * Update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.OrderbookV2Response */ interface OrderbookV2Response$1 { /** * Orderbook of a particular spot market * * @generated from protobuf field: injective_spot_exchange_rpc.SpotLimitOrderbookV2 orderbook = 1 */ orderbook?: SpotLimitOrderbookV2; } /** * @generated from protobuf message injective_spot_exchange_rpc.SpotLimitOrderbookV2 */ interface SpotLimitOrderbookV2 { /** * Array of price levels for buys * * @generated from protobuf field: repeated injective_spot_exchange_rpc.PriceLevel buys = 1 */ buys: PriceLevel$2[]; /** * Array of price levels for sells * * @generated from protobuf field: repeated injective_spot_exchange_rpc.PriceLevel sells = 2 */ sells: PriceLevel$2[]; /** * market orderbook sequence * * @generated from protobuf field: uint64 sequence = 3 */ sequence: bigint; /** * Last update timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; /** * Block height at which the orderbook was last updated. * * @generated from protobuf field: sint64 height = 5 */ height: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.PriceLevel */ interface PriceLevel$2 { /** * Price number of the price level. * * @generated from protobuf field: string price = 1 */ price: string; /** * Quantity of the price level. * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * Price level last updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.OrderbooksV2Response */ interface OrderbooksV2Response$1 { /** * @generated from protobuf field: repeated injective_spot_exchange_rpc.SingleSpotLimitOrderbookV2 orderbooks = 1 */ orderbooks: SingleSpotLimitOrderbookV2[]; } /** * @generated from protobuf message injective_spot_exchange_rpc.SingleSpotLimitOrderbookV2 */ interface SingleSpotLimitOrderbookV2 { /** * market's ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * Orderbook of the market * * @generated from protobuf field: injective_spot_exchange_rpc.SpotLimitOrderbookV2 orderbook = 2 */ orderbook?: SpotLimitOrderbookV2; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamOrderbookV2Response */ interface StreamOrderbookV2Response$1 { /** * Orderbook of a Spot Market * * @generated from protobuf field: injective_spot_exchange_rpc.SpotLimitOrderbookV2 orderbook = 1 */ orderbook?: SpotLimitOrderbookV2; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; /** * MarketId of the market's orderbook * * @generated from protobuf field: string market_id = 4 */ marketId: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamOrderbookUpdateResponse */ interface StreamOrderbookUpdateResponse$1 { /** * Orderbook level updates of a Spot Market * * @generated from protobuf field: injective_spot_exchange_rpc.OrderbookLevelUpdates orderbook_level_updates = 1 */ orderbookLevelUpdates?: OrderbookLevelUpdates$1; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; /** * MarketId of the market's orderbook * * @generated from protobuf field: string market_id = 4 */ marketId: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.OrderbookLevelUpdates */ interface OrderbookLevelUpdates$1 { /** * market's ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * orderbook update sequence * * @generated from protobuf field: uint64 sequence = 2 */ sequence: bigint; /** * buy levels * * @generated from protobuf field: repeated injective_spot_exchange_rpc.PriceLevelUpdate buys = 3 */ buys: PriceLevelUpdate$1[]; /** * sell levels * * @generated from protobuf field: repeated injective_spot_exchange_rpc.PriceLevelUpdate sells = 4 */ sells: PriceLevelUpdate$1[]; /** * updates timestamp * * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.PriceLevelUpdate */ interface PriceLevelUpdate$1 { /** * Price number of the price level. * * @generated from protobuf field: string price = 1 */ price: string; /** * Quantity of the price level. * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * Price level status. * * @generated from protobuf field: bool is_active = 3 */ isActive: boolean; /** * Price level last updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.OrdersResponse */ interface OrdersResponse$2 { /** * @generated from protobuf field: repeated injective_spot_exchange_rpc.SpotLimitOrder orders = 1 */ orders: SpotLimitOrder$2[]; /** * @generated from protobuf field: injective_spot_exchange_rpc.Paging paging = 2 */ paging?: Paging$3; } /** * @generated from protobuf message injective_spot_exchange_rpc.SpotLimitOrder */ interface SpotLimitOrder$2 { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The side of the order * * @generated from protobuf field: string order_side = 2 */ orderSide: string; /** * Spot Market ID is keccak265(baseDenom + quoteDenom) * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * Price of the order * * @generated from protobuf field: string price = 5 */ price: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 6 */ quantity: string; /** * The amount of the quantity remaining unfilled * * @generated from protobuf field: string unfilled_quantity = 7 */ unfilledQuantity: string; /** * Trigger price is the trigger price used by stop/take orders. 0 if the * trigger price is not set. * * @generated from protobuf field: string trigger_price = 8 */ triggerPrice: string; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 9 */ feeRecipient: string; /** * Order state * * @generated from protobuf field: string state = 10 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 11 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 12 */ updatedAt: bigint; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 13 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 14 */ cid: string; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_spot_exchange_rpc.Paging */ interface Paging$3 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamOrdersResponse */ interface StreamOrdersResponse$2 { /** * Updated market order * * @generated from protobuf field: injective_spot_exchange_rpc.SpotLimitOrder order = 1 */ order?: SpotLimitOrder$2; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.TradesResponse */ interface TradesResponse$2 { /** * Trades of a Spot Market * * @generated from protobuf field: repeated injective_spot_exchange_rpc.SpotTrade trades = 1 */ trades: SpotTrade$1[]; /** * Paging indicates pages response is on * * @generated from protobuf field: injective_spot_exchange_rpc.Paging paging = 2 */ paging?: Paging$3; } /** * @generated from protobuf message injective_spot_exchange_rpc.SpotTrade */ interface SpotTrade$1 { /** * Maker order hash. * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The subaccountId that executed the trade * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * The ID of the market that this trade is in * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The execution type of the trade * * @generated from protobuf field: string trade_execution_type = 4 */ tradeExecutionType: string; /** * The direction the trade * * @generated from protobuf field: string trade_direction = 5 */ tradeDirection: string; /** * Price level at which trade has been executed * * @generated from protobuf field: injective_spot_exchange_rpc.PriceLevel price = 6 */ price?: PriceLevel$2; /** * The fee associated with the trade (quote asset denom) * * @generated from protobuf field: string fee = 7 */ fee: string; /** * Timestamp of trade execution in UNIX millis * * @generated from protobuf field: sint64 executed_at = 8 */ executedAt: bigint; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 9 */ feeRecipient: string; /** * A unique string that helps differentiate between trades * * @generated from protobuf field: string trade_id = 10 */ tradeId: string; /** * Trade's execution side, maker,taker,n/a (n/a = not applicable) * * @generated from protobuf field: string execution_side = 11 */ executionSide: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 12 */ cid: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamTradesResponse */ interface StreamTradesResponse$2 { /** * New spot market trade * * @generated from protobuf field: injective_spot_exchange_rpc.SpotTrade trade = 1 */ trade?: SpotTrade$1; /** * Executed trades update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.SubaccountTradesListResponse */ interface SubaccountTradesListResponse$1 { /** * List of spot market trades * * @generated from protobuf field: repeated injective_spot_exchange_rpc.SpotTrade trades = 1 */ trades: SpotTrade$1[]; } /** * @generated from protobuf message injective_spot_exchange_rpc.OrdersHistoryResponse */ interface OrdersHistoryResponse$2 { /** * List of history spot orders * * @generated from protobuf field: repeated injective_spot_exchange_rpc.SpotOrderHistory orders = 1 */ orders: SpotOrderHistory$1[]; /** * @generated from protobuf field: injective_spot_exchange_rpc.Paging paging = 2 */ paging?: Paging$3; } /** * @generated from protobuf message injective_spot_exchange_rpc.SpotOrderHistory */ interface SpotOrderHistory$1 { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * Spot Market ID is keccak265(baseDenom + quoteDenom) * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * active state of the order * * @generated from protobuf field: bool is_active = 3 */ isActive: boolean; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * The execution type * * @generated from protobuf field: string execution_type = 5 */ executionType: string; /** * The side of the order * * @generated from protobuf field: string order_type = 6 */ orderType: string; /** * Price of the order * * @generated from protobuf field: string price = 7 */ price: string; /** * Trigger price * * @generated from protobuf field: string trigger_price = 8 */ triggerPrice: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 9 */ quantity: string; /** * Filled amount * * @generated from protobuf field: string filled_quantity = 10 */ filledQuantity: string; /** * Order state * * @generated from protobuf field: string state = 11 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 13 */ updatedAt: bigint; /** * Order direction (order side) * * @generated from protobuf field: string direction = 14 */ direction: string; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 15 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 16 */ cid: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.StreamOrdersHistoryResponse */ interface StreamOrdersHistoryResponse$2 { /** * Updated order * * @generated from protobuf field: injective_spot_exchange_rpc.SpotOrderHistory order = 1 */ order?: SpotOrderHistory$1; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_spot_exchange_rpc.AtomicSwapHistoryResponse */ interface AtomicSwapHistoryResponse { /** * Paging indicates total number of records with this filter * * @generated from protobuf field: injective_spot_exchange_rpc.Paging paging = 1 */ paging?: Paging$3; /** * swap data * * @generated from protobuf field: repeated injective_spot_exchange_rpc.AtomicSwap data = 2 */ data: AtomicSwap$1[]; } /** * @generated from protobuf message injective_spot_exchange_rpc.AtomicSwap */ interface AtomicSwap$1 { /** * executor of the swap * * @generated from protobuf field: string sender = 1 */ sender: string; /** * swap route * * @generated from protobuf field: string route = 2 */ route: string; /** * source coin * * @generated from protobuf field: injective_spot_exchange_rpc.Coin source_coin = 3 */ sourceCoin?: Coin$5; /** * destination received coin * * @generated from protobuf field: injective_spot_exchange_rpc.Coin dest_coin = 4 */ destCoin?: Coin$5; /** * fees of each steps in route * * @generated from protobuf field: repeated injective_spot_exchange_rpc.Coin fees = 5 */ fees: Coin$5[]; /** * contract address that executes to make this swap * * @generated from protobuf field: string contract_address = 6 */ contractAddress: string; /** * Numerical index by sender to use in pagination from_number and to_number * * @generated from protobuf field: sint32 index_by_sender = 7 */ indexBySender: number; /** * Numerical index by sender + acontract to use in pagination from_number and * to_number, that support contract filter * * @generated from protobuf field: sint32 index_by_sender_contract = 8 */ indexBySenderContract: number; /** * transaction hash of the swap * * @generated from protobuf field: string tx_hash = 9 */ txHash: string; /** * transaction timestamp of the swap * * @generated from protobuf field: sint64 executed_at = 10 */ executedAt: bigint; /** * Refunded amount of the swap * * @generated from protobuf field: string refund_amount = 11 */ refundAmount: string; } /** * @generated from protobuf message injective_spot_exchange_rpc.Coin */ interface Coin$5 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.MarketsResponse */ declare const MarketsResponse$1 = new MarketsResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SpotMarketInfo */ declare const SpotMarketInfo = new SpotMarketInfo$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.TokenMeta */ declare const TokenMeta$3 = new TokenMeta$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.MarketResponse */ declare const MarketResponse$1 = new MarketResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamMarketsResponse */ declare const StreamMarketsResponse$1 = new StreamMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.OrderbookV2Response */ declare const OrderbookV2Response$1 = new OrderbookV2Response$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SpotLimitOrderbookV2 */ declare const SpotLimitOrderbookV2 = new SpotLimitOrderbookV2$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.PriceLevel */ declare const PriceLevel$2 = new PriceLevel$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.OrderbooksV2Response */ declare const OrderbooksV2Response$1 = new OrderbooksV2Response$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SingleSpotLimitOrderbookV2 */ declare const SingleSpotLimitOrderbookV2 = new SingleSpotLimitOrderbookV2$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamOrderbookV2Response */ declare const StreamOrderbookV2Response$1 = new StreamOrderbookV2Response$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamOrderbookUpdateResponse */ declare const StreamOrderbookUpdateResponse$1 = new StreamOrderbookUpdateResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.OrderbookLevelUpdates */ declare const OrderbookLevelUpdates$1 = new OrderbookLevelUpdates$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.PriceLevelUpdate */ declare const PriceLevelUpdate$1 = new PriceLevelUpdate$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.OrdersResponse */ declare const OrdersResponse$2 = new OrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SpotLimitOrder */ declare const SpotLimitOrder$2 = new SpotLimitOrder$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.Paging */ declare const Paging$3 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamOrdersResponse */ declare const StreamOrdersResponse$2 = new StreamOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.TradesResponse */ declare const TradesResponse$2 = new TradesResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SpotTrade */ declare const SpotTrade$1 = new SpotTrade$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamTradesResponse */ declare const StreamTradesResponse$2 = new StreamTradesResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SubaccountTradesListResponse */ declare const SubaccountTradesListResponse$1 = new SubaccountTradesListResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.OrdersHistoryResponse */ declare const OrdersHistoryResponse$2 = new OrdersHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.SpotOrderHistory */ declare const SpotOrderHistory$1 = new SpotOrderHistory$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.StreamOrdersHistoryResponse */ declare const StreamOrdersHistoryResponse$2 = new StreamOrdersHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.AtomicSwapHistoryResponse */ declare const AtomicSwapHistoryResponse = new AtomicSwapHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.AtomicSwap */ declare const AtomicSwap$1 = new AtomicSwap$Type(); /** * @generated MessageType for protobuf message injective_spot_exchange_rpc.Coin */ declare const Coin$5 = new Coin$Type(); //#endregion //#region src/client/indexer/types/exchange.d.ts interface PriceLevel { price: string; quantity: string; timestamp: number; } interface Orderbook { buys: PriceLevel[]; sells: PriceLevel[]; } interface OrderbookWithSequence { sequence: number; buys: PriceLevel[]; sells: PriceLevel[]; } type GrpcTokenMeta = TokenMeta$3; type GrpcPriceLevel = PriceLevel$2; interface IndexerTokenMeta extends Omit { coinGeckoId: string; tokenType: TokenType; updatedAt: number; } //#endregion //#region src/client/indexer/types/spot.d.ts interface SpotMarket { marketId: string; marketStatus: string; ticker: string; baseDenom: string; quoteDenom: string; makerFeeRate: string; quoteToken: TokenMeta | undefined; baseToken: TokenMeta | undefined; takerFeeRate: string; serviceProviderFee: string; minPriceTickSize: number; minQuantityTickSize: number; minNotional: number; } interface SpotLimitOrder$1 { cid: string; orderHash: string; orderSide: OrderSide$1; marketId: string; subaccountId: string; price: string; state: OrderState; quantity: string; unfilledQuantity: string; triggerPrice: string; feeRecipient: string; createdAt: number; updatedAt: number; } interface SpotOrderHistory { orderHash: string; marketId: string; cid: string; active: boolean; subaccountId: string; executionType: string; orderType: string; price: string; triggerPrice: string; quantity: string; filledQuantity: string; state: string; createdAt: number; updatedAt: number; direction: string; } interface SpotTrade extends PriceLevel { orderHash: string; subaccountId: string; marketId: string; cid: string; tradeId: string; executedAt: number; tradeExecutionType: TradeExecutionType; executionSide: TradeExecutionSide; tradeDirection: TradeDirection; fee: string; feeRecipient: string; } interface SpotLimitOrderParams { orderType: GrpcOrderType; triggerPrice?: string; feeRecipient: string; price: string; quantity: string; } interface SpotOrderCancelParams { orderHash: string; } interface BatchSpotOrderCancelParams { orderHash: string; subaccountId: string; marketId: string; } interface AtomicSwap { sender: string; route: string; sourceCoin: Coin | undefined; destinationCoin: Coin | undefined; fees: Coin[]; contractAddress: string; indexBySender: number; indexBySenderContract: number; txHash: string; executedAt: number; } type GrpcSpotTrade = SpotTrade$1; type GrpcSpotMarketInfo = SpotMarketInfo; type GrpcSpotLimitOrder = SpotLimitOrder$2; type GrpcSpotOrderHistory = SpotOrderHistory$1; type GrpcAtomicSwap = AtomicSwap$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_oracle_rpc_pb.d.ts /** * @generated from protobuf message injective_oracle_rpc.OracleListResponse */ interface OracleListResponse { /** * List of oracles * * @generated from protobuf field: repeated injective_oracle_rpc.Oracle oracles = 1 */ oracles: Oracle$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_oracle_rpc.Oracle */ interface Oracle$1 { /** * The symbol of the oracle asset. * * @generated from protobuf field: string symbol = 1 */ symbol: string; /** * Oracle base currency * * @generated from protobuf field: string base_symbol = 2 */ baseSymbol: string; /** * Oracle quote currency * * @generated from protobuf field: string quote_symbol = 3 */ quoteSymbol: string; /** * Oracle Type * * @generated from protobuf field: string oracle_type = 4 */ oracleType: string; /** * The price of the oracle asset * * @generated from protobuf field: string price = 5 */ price: string; } /** * @generated from protobuf message injective_oracle_rpc.PriceResponse */ interface PriceResponse { /** * The price of the oracle asset * * @generated from protobuf field: string price = 1 */ price: string; } /** * @generated from protobuf message injective_oracle_rpc.PriceV2Response */ interface PriceV2Response { /** * @generated from protobuf field: repeated injective_oracle_rpc.PriceV2Result prices = 1 */ prices: PriceV2Result[]; } /** * @generated from protobuf message injective_oracle_rpc.PriceV2Result */ interface PriceV2Result { /** * Oracle base currency * * @generated from protobuf field: string base_symbol = 1 */ baseSymbol: string; /** * Oracle quote currency * * @generated from protobuf field: string quote_symbol = 2 */ quoteSymbol: string; /** * Oracle Type * * @generated from protobuf field: string oracle_type = 3 */ oracleType: string; /** * OracleScaleFactor * * @generated from protobuf field: uint32 oracle_scale_factor = 4 */ oracleScaleFactor: number; /** * The price of the oracle asset * * @generated from protobuf field: string price = 5 */ price: string; /** * marketID * * @generated from protobuf field: string market_id = 6 */ marketId: string; } /** * @generated from protobuf message injective_oracle_rpc.StreamPricesResponse */ interface StreamPricesResponse { /** * The price of the oracle asset * * @generated from protobuf field: string price = 1 */ price: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated from protobuf message injective_oracle_rpc.StreamOracleListResponse */ interface StreamOracleListResponse { /** * The symbol of the oracle asset * * @generated from protobuf field: string symbol = 1 */ symbol: string; /** * Oracle type * * @generated from protobuf field: string oracle_type = 2 */ oracleType: string; /** * The price of the oracle asset * * @generated from protobuf field: string price = 3 */ price: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated from protobuf message injective_oracle_rpc.StreamPricesByMarketsResponse */ interface StreamPricesByMarketsResponse { /** * The price of the oracle asset * * @generated from protobuf field: string price = 1 */ price: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; /** * marketID that the price has been updated * * @generated from protobuf field: string market_id = 3 */ marketId: string; } /** * @generated MessageType for protobuf message injective_oracle_rpc.OracleListResponse */ declare const OracleListResponse = new OracleListResponse$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.Oracle */ declare const Oracle$1 = new Oracle$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.PriceResponse */ declare const PriceResponse = new PriceResponse$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.PriceV2Response */ declare const PriceV2Response = new PriceV2Response$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.PriceV2Result */ declare const PriceV2Result = new PriceV2Result$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesResponse */ declare const StreamPricesResponse = new StreamPricesResponse$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.StreamOracleListResponse */ declare const StreamOracleListResponse = new StreamOracleListResponse$Type(); /** * @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesByMarketsResponse */ declare const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$Type(); //#endregion //#region src/client/indexer/types/oracle.d.ts type GrpcOracle = Oracle$1; type GrpcOraclePriceV2 = PriceV2Result; interface Oracle extends GrpcOracle {} interface OraclePriceV2Filter { baseSymbol: string; quoteSymbol: string; oracleType: string; oracleScaleFactor: number; } interface OraclePriceV2 extends GrpcOraclePriceV2 {} //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_gw_rpc_pb.d.ts /** * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712AutoSignRequestType */ interface RFQGwPrepareEip712AutoSignRequestType$1 { /** * @generated from protobuf field: string client_id = 1 */ clientId: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * @generated from protobuf field: string direction = 3 */ direction: string; /** * @generated from protobuf field: string margin = 4 */ margin: string; /** * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * @generated from protobuf field: string worst_price = 6 */ worstPrice: string; /** * Ephemeral autosign address (MsgExec grantee) that signs the EIP712 typed data * * @generated from protobuf field: string autosign_address = 7 */ autosignAddress: string; /** * RFQ request expiry in milliseconds. 0 = no expiry * * @generated from protobuf field: uint64 expiry = 8 */ expiry: bigint; /** * Hex-encoded autosign ephemeral public key * * @generated from protobuf field: string autosign_pub_key = 9 */ autosignPubKey: string; /** * Autosign (ephemeral) Cosmos account number * * @generated from protobuf field: uint64 autosign_account_number = 10 */ autosignAccountNumber: bigint; /** * Autosign (ephemeral) Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 autosign_account_sequence = 11 */ autosignAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 12 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 fee_payer_account_sequence = 13 */ feePayerAccountSequence: bigint; /** * How long to wait for quotes (max 5000ms) * * @generated from protobuf field: uint64 quotes_wait_time_ms = 20 */ quotesWaitTimeMs: bigint; /** * Action for quantity not filled by the selected quotes. Set `limit` to place * a limit order at the given price, `market` to sweep the remainder as a * market order. Omit to settle only the quoted amount. * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementUnfilledActionType unfilled_action = 21 */ unfilledAction?: RFQSettlementUnfilledActionType$1; /** * Taker subaccount nonce at settlement time. Prevents replay when submitting * multiple RFQs in the same block. Defaults to 0 (contract reads the on-chain * nonce). * * @generated from protobuf field: uint32 subaccount_nonce = 22 */ subaccountNonce: number; /** * Client order ID echoed through to the on-chain trade event. Used to * correlate a trade event back to the originating UI order. Not used * server-side. * * @generated from protobuf field: string cid = 23 */ cid: string; /** * Simulate the tx on chain and use the estimated gas (with adjustment buffer) * instead of the fee payer max gas. Falls back to max gas if the simulation * fails. * * @generated from protobuf field: bool simulate = 24 */ simulate: boolean; /** * Deprecated compatibility alias for memo * * @generated from protobuf field: string tx_body_memo = 25 */ txBodyMemo: string; /** * Optional RFQ request memo, also used as the outer Cosmos TxBody memo. * Maximum 256 UTF-8 bytes * * @generated from protobuf field: string memo = 26 */ memo: string; /** * Optional taker-signed RFQ intent used for request authentication * * @generated from protobuf field: injective_rfq_gw_rpc.RFQGwSignedRFQRequestType signed_request = 27 */ signedRequest?: RFQGwSignedRFQRequestType$1; /** * Hex-encoded taker EIP-712 signature over signed_request * * @generated from protobuf field: string taker_signature = 28 */ takerSignature: string; /** * Real taker address (authz granter); used as MsgExecuteContractCompat sender * * @generated from protobuf field: string taker_address = 30 */ takerAddress: string; /** * EVM chain ID used in the EIP712 domain separator (e.g. 1 for Injective * mainnet) * * @generated from protobuf field: uint64 eth_chain_id = 31 */ ethChainId: bigint; /** * EIP712 wrapper version: 'v2' uses WrapTxToEIP712V2, 'v1' uses legacy amino * JSON * * @generated from protobuf field: string eip712_wrapper = 32 */ eip712Wrapper: string; /** * Optional gas limit override. Takes precedence over simulate * * @generated from protobuf field: uint64 gas = 33 */ gas: bigint; } /** * Action to take for unfilled quantity - only one field should be set * * @generated from protobuf message injective_rfq_gw_rpc.RFQSettlementUnfilledActionType */ interface RFQSettlementUnfilledActionType$1 { /** * Limit order action * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementLimitActionType limit = 1 */ limit?: RFQSettlementLimitActionType; /** * Market order action * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementMarketActionType market = 2 */ market?: RFQSettlementMarketActionType; } /** * Limit order action for unfilled quantity * * @generated from protobuf message injective_rfq_gw_rpc.RFQSettlementLimitActionType */ interface RFQSettlementLimitActionType { /** * Limit price * * @generated from protobuf field: string price = 1 */ price: string; } /** * Market order action for unfilled quantity * * @generated from protobuf message injective_rfq_gw_rpc.RFQSettlementMarketActionType */ interface RFQSettlementMarketActionType {} /** * EIP-712 signed RFQ settlement request payload * * @generated from protobuf message injective_rfq_gw_rpc.RFQGwSignedRFQRequestType */ interface RFQGwSignedRFQRequestType$1 { /** * Signed request schema version * * @generated from protobuf field: uint32 schema_version = 1 */ schemaVersion: number; /** * EVM chain ID used in the EIP712 domain separator * * @generated from protobuf field: uint64 evm_chain_id = 2 */ evmChainId: bigint; /** * Taker address * * @generated from protobuf field: string taker = 3 */ taker: string; /** * Hex-encoded 32-byte taker-signed replay key * * @generated from protobuf field: string request_id = 4 */ requestId: string; /** * Signed request creation timestamp in milliseconds * * @generated from protobuf field: uint64 created_at_ms = 5 */ createdAtMs: bigint; /** * Signed request deadline timestamp in milliseconds * * @generated from protobuf field: uint64 deadline_ms = 6 */ deadlineMs: bigint; /** * @generated from protobuf field: string market_id = 7 */ marketId: string; /** * Taker subaccount nonce * * @generated from protobuf field: uint32 subaccount_nonce = 8 */ subaccountNonce: number; /** * @generated from protobuf field: string direction = 9 */ direction: string; /** * @generated from protobuf field: string quantity = 10 */ quantity: string; /** * @generated from protobuf field: string margin = 11 */ margin: string; /** * @generated from protobuf field: string worst_price = 12 */ worstPrice: string; /** * @generated from protobuf field: string min_total_fill_quantity = 13 */ minTotalFillQuantity: string; /** * Client order ID embedded in the signed payload * * @generated from protobuf field: string cid = 14 */ cid: string; /** * Address allowed to relay this request on-chain; must match the configured * executor wallet when set * * @generated from protobuf field: string allowed_relayer = 15 */ allowedRelayer: string; /** * Optional settlement fee-rate ceiling * * @generated from protobuf field: string max_fee_rate = 16 */ maxFeeRate: string; /** * Optional settlement-cost ceiling * * @generated from protobuf field: string max_total_taker_funds = 17 */ maxTotalTakerFunds: string; } /** * @generated from protobuf message injective_rfq_gw_rpc.PrepareEip712AutoSignResponse */ interface PrepareEip712AutoSignResponse { /** * Generated RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * EIP712-compatible JSON containing MsgExec wrapper, signable with * eth_signTypedData_v4 * * @generated from protobuf field: string data = 2 */ data: string; /** * Hex-encoded fee payer signature over the EIP712 hash * * @generated from protobuf field: string fee_payer_sig = 3 */ feePayerSig: string; /** * Fee payer address * * @generated from protobuf field: string fee_payer = 4 */ feePayer: string; /** * SIGN_MODE_EIP712_V2 or SIGN_MODE_LEGACY_AMINO_JSON * * @generated from protobuf field: string sign_mode = 5 */ signMode: string; /** * Fee payer public key type * * @generated from protobuf field: string pub_key_type = 6 */ pubKeyType: string; /** * Fee payer public key * * @generated from protobuf field: injective_rfq_gw_rpc.CosmosPubKey fee_payer_pub_key = 7 */ feePayerPubKey?: CosmosPubKey$1; /** * Selected quotes in execution order * * @generated from protobuf field: repeated injective_rfq_gw_rpc.RFQGwPrepareQuoteResult quotes = 8 */ quotes: RFQGwPrepareQuoteResult[]; /** * Autosign (ephemeral) account number * * @generated from protobuf field: uint64 autosign_account_number = 9 */ autosignAccountNumber: bigint; /** * Autosign (ephemeral) account sequence * * @generated from protobuf field: uint64 autosign_account_sequence = 10 */ autosignAccountSequence: bigint; /** * Actual milliseconds elapsed waiting for quotes; use as quotes_wait_time_ms * hint in next request * * @generated from protobuf field: uint64 quotes_wait_ms = 11 */ quotesWaitMs: bigint; /** * Number of quotes that expired after being received and were excluded from * selection * * @generated from protobuf field: uint64 expired_quotes_count = 12 */ expiredQuotesCount: bigint; } /** * @generated from protobuf message injective_rfq_gw_rpc.CosmosPubKey */ interface CosmosPubKey$1 { /** * Pubkey type URL * * @generated from protobuf field: string type = 1 */ type: string; /** * Hex-encoded string of the public key * * @generated from protobuf field: string key = 2 */ key: string; } /** * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareQuoteResult */ interface RFQGwPrepareQuoteResult { /** * Maker address * * @generated from protobuf field: string maker = 1 */ maker: string; /** * Quote price * * @generated from protobuf field: string price = 2 */ price: string; /** * Quote quantity * * @generated from protobuf field: string quantity = 3 */ quantity: string; /** * Quote margin * * @generated from protobuf field: string margin = 4 */ margin: string; } /** * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareAutoSignRequestType */ interface RFQGwPrepareAutoSignRequestType$1 { /** * @generated from protobuf field: string client_id = 1 */ clientId: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * @generated from protobuf field: string direction = 3 */ direction: string; /** * @generated from protobuf field: string margin = 4 */ margin: string; /** * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * @generated from protobuf field: string worst_price = 6 */ worstPrice: string; /** * Ephemeral autosign address (MsgExec grantee) that signs the prepared tx * * @generated from protobuf field: string autosign_address = 7 */ autosignAddress: string; /** * RFQ request expiry in milliseconds. 0 = no expiry * * @generated from protobuf field: uint64 expiry = 8 */ expiry: bigint; /** * Hex-encoded autosign ephemeral public key * * @generated from protobuf field: string autosign_pub_key = 9 */ autosignPubKey: string; /** * Autosign (ephemeral) Cosmos account number * * @generated from protobuf field: uint64 autosign_account_number = 10 */ autosignAccountNumber: bigint; /** * Autosign (ephemeral) Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 autosign_account_sequence = 11 */ autosignAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 12 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 fee_payer_account_sequence = 13 */ feePayerAccountSequence: bigint; /** * How long to wait for quotes (max 5000ms) * * @generated from protobuf field: uint64 quotes_wait_time_ms = 20 */ quotesWaitTimeMs: bigint; /** * Action for quantity not filled by the selected quotes. Set `limit` to place * a limit order at the given price, `market` to sweep the remainder as a * market order. Omit to settle only the quoted amount. * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementUnfilledActionType unfilled_action = 21 */ unfilledAction?: RFQSettlementUnfilledActionType$1; /** * Taker subaccount nonce at settlement time. Prevents replay when submitting * multiple RFQs in the same block. Defaults to 0 (contract reads the on-chain * nonce). * * @generated from protobuf field: uint32 subaccount_nonce = 22 */ subaccountNonce: number; /** * Client order ID echoed through to the on-chain trade event. Used to * correlate a trade event back to the originating UI order. Not used * server-side. * * @generated from protobuf field: string cid = 23 */ cid: string; /** * Simulate the tx on chain and use the estimated gas (with adjustment buffer) * instead of the fee payer max gas. Falls back to max gas if the simulation * fails. * * @generated from protobuf field: bool simulate = 24 */ simulate: boolean; /** * Deprecated compatibility alias for memo * * @generated from protobuf field: string tx_body_memo = 25 */ txBodyMemo: string; /** * Optional RFQ request memo, also used as the outer Cosmos TxBody memo. * Maximum 256 UTF-8 bytes * * @generated from protobuf field: string memo = 26 */ memo: string; /** * Optional taker-signed RFQ intent used for request authentication * * @generated from protobuf field: injective_rfq_gw_rpc.RFQGwSignedRFQRequestType signed_request = 27 */ signedRequest?: RFQGwSignedRFQRequestType$1; /** * Hex-encoded taker EIP-712 signature over signed_request * * @generated from protobuf field: string taker_signature = 28 */ takerSignature: string; /** * Real taker address (authz granter); used as MsgExecuteContractCompat sender * * @generated from protobuf field: string taker_address = 30 */ takerAddress: string; } /** * @generated from protobuf message injective_rfq_gw_rpc.PrepareAutoSignResponse */ interface PrepareAutoSignResponse { /** * Generated RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Fee-delegated prepared transaction bytes containing MsgExec wrapper * * @generated from protobuf field: bytes tx = 2 */ tx: Uint8Array; /** * Hex-encoded fee payer signature * * @generated from protobuf field: string fee_payer_sig = 3 */ feePayerSig: string; /** * Fee payer address * * @generated from protobuf field: string fee_payer = 4 */ feePayer: string; /** * Sign mode (SIGN_MODE_DIRECT) * * @generated from protobuf field: string sign_mode = 5 */ signMode: string; /** * Fee payer public key type * * @generated from protobuf field: string pub_key_type = 6 */ pubKeyType: string; /** * Fee payer public key * * @generated from protobuf field: injective_rfq_gw_rpc.CosmosPubKey fee_payer_pub_key = 7 */ feePayerPubKey?: CosmosPubKey$1; /** * Selected quotes in execution order * * @generated from protobuf field: repeated injective_rfq_gw_rpc.RFQGwPrepareQuoteResult quotes = 8 */ quotes: RFQGwPrepareQuoteResult[]; /** * Autosign (ephemeral) account number * * @generated from protobuf field: uint64 autosign_account_number = 9 */ autosignAccountNumber: bigint; /** * Autosign (ephemeral) account sequence * * @generated from protobuf field: uint64 autosign_account_sequence = 10 */ autosignAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 11 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence * * @generated from protobuf field: uint64 fee_payer_account_sequence = 12 */ feePayerAccountSequence: bigint; /** * Actual milliseconds elapsed waiting for quotes; use as quotes_wait_time_ms * hint in next request * * @generated from protobuf field: uint64 quotes_wait_ms = 13 */ quotesWaitMs: bigint; /** * Number of quotes that expired after being received and were excluded from * selection * * @generated from protobuf field: uint64 expired_quotes_count = 14 */ expiredQuotesCount: bigint; } /** * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712RequestType */ interface RFQGwPrepareEip712RequestType$1 { /** * @generated from protobuf field: string client_id = 1 */ clientId: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * @generated from protobuf field: string direction = 3 */ direction: string; /** * @generated from protobuf field: string margin = 4 */ margin: string; /** * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * @generated from protobuf field: string worst_price = 6 */ worstPrice: string; /** * @generated from protobuf field: string taker_address = 7 */ takerAddress: string; /** * RFQ request expiry in milliseconds. 0 = no expiry * * @generated from protobuf field: uint64 expiry = 8 */ expiry: bigint; /** * Hex-encoded taker public key * * @generated from protobuf field: string taker_pub_key = 9 */ takerPubKey: string; /** * Taker Cosmos account number * * @generated from protobuf field: uint64 taker_account_number = 10 */ takerAccountNumber: bigint; /** * Taker Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 taker_account_sequence = 11 */ takerAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 12 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 fee_payer_account_sequence = 13 */ feePayerAccountSequence: bigint; /** * How long to wait for quotes (max 5000ms) * * @generated from protobuf field: uint64 quotes_wait_time_ms = 20 */ quotesWaitTimeMs: bigint; /** * Action for quantity not filled by the selected quotes. Set `limit` to place * a limit order at the given price, `market` to sweep the remainder as a * market order. Omit to settle only the quoted amount. * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementUnfilledActionType unfilled_action = 21 */ unfilledAction?: RFQSettlementUnfilledActionType$1; /** * Taker subaccount nonce at settlement time. Prevents replay when submitting * multiple RFQs in the same block. Defaults to 0 (contract reads the on-chain * nonce). * * @generated from protobuf field: uint32 subaccount_nonce = 22 */ subaccountNonce: number; /** * Client order ID echoed through to the on-chain trade event. Used to * correlate a trade event back to the originating UI order. Not used * server-side. * * @generated from protobuf field: string cid = 23 */ cid: string; /** * Simulate the tx on chain and use the estimated gas (with adjustment buffer) * instead of the fee payer max gas. Falls back to max gas if the simulation * fails. * * @generated from protobuf field: bool simulate = 24 */ simulate: boolean; /** * Deprecated compatibility alias for memo * * @generated from protobuf field: string tx_body_memo = 25 */ txBodyMemo: string; /** * Optional RFQ request memo, also used as the outer Cosmos TxBody memo. * Maximum 256 UTF-8 bytes * * @generated from protobuf field: string memo = 26 */ memo: string; /** * Optional taker-signed RFQ intent used for request authentication * * @generated from protobuf field: injective_rfq_gw_rpc.RFQGwSignedRFQRequestType signed_request = 27 */ signedRequest?: RFQGwSignedRFQRequestType$1; /** * Hex-encoded taker EIP-712 signature over signed_request * * @generated from protobuf field: string taker_signature = 28 */ takerSignature: string; /** * EVM chain ID used in the EIP712 domain separator (e.g. 1 for Injective * mainnet) * * @generated from protobuf field: uint64 eth_chain_id = 30 */ ethChainId: bigint; /** * EIP712 wrapper version: 'v2' uses WrapTxToEIP712V2, 'v1' uses legacy amino * JSON * * @generated from protobuf field: string eip712_wrapper = 31 */ eip712Wrapper: string; /** * Optional gas limit override. Takes precedence over simulate * * @generated from protobuf field: uint64 gas = 32 */ gas: bigint; } /** * @generated from protobuf message injective_rfq_gw_rpc.PrepareEip712Response */ interface PrepareEip712Response$1 { /** * Generated RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * EIP712-compatible JSON, signable with eth_signTypedData_v4 * * @generated from protobuf field: string data = 2 */ data: string; /** * Hex-encoded fee payer signature over the EIP712 hash * * @generated from protobuf field: string fee_payer_sig = 3 */ feePayerSig: string; /** * Fee payer address * * @generated from protobuf field: string fee_payer = 4 */ feePayer: string; /** * SIGN_MODE_EIP712_V2 or SIGN_MODE_LEGACY_AMINO_JSON * * @generated from protobuf field: string sign_mode = 5 */ signMode: string; /** * Fee payer public key type * * @generated from protobuf field: string pub_key_type = 6 */ pubKeyType: string; /** * Fee payer public key * * @generated from protobuf field: injective_rfq_gw_rpc.CosmosPubKey fee_payer_pub_key = 7 */ feePayerPubKey?: CosmosPubKey$1; /** * Selected quotes in execution order * * @generated from protobuf field: repeated injective_rfq_gw_rpc.RFQGwPrepareQuoteResult quotes = 8 */ quotes: RFQGwPrepareQuoteResult[]; /** * Taker Cosmos account number * * @generated from protobuf field: uint64 taker_account_number = 9 */ takerAccountNumber: bigint; /** * Taker Cosmos account sequence * * @generated from protobuf field: uint64 taker_account_sequence = 10 */ takerAccountSequence: bigint; /** * Actual milliseconds elapsed waiting for quotes; use as quotes_wait_time_ms * hint in next request * * @generated from protobuf field: uint64 quotes_wait_ms = 11 */ quotesWaitMs: bigint; /** * Number of quotes that expired after being received and were excluded from * selection * * @generated from protobuf field: uint64 expired_quotes_count = 12 */ expiredQuotesCount: bigint; } /** * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareRequestType */ interface RFQGwPrepareRequestType$1 { /** * @generated from protobuf field: string client_id = 1 */ clientId: string; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * @generated from protobuf field: string direction = 3 */ direction: string; /** * @generated from protobuf field: string margin = 4 */ margin: string; /** * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * @generated from protobuf field: string worst_price = 6 */ worstPrice: string; /** * @generated from protobuf field: string taker_address = 7 */ takerAddress: string; /** * RFQ request expiry in milliseconds. 0 = no expiry * * @generated from protobuf field: uint64 expiry = 8 */ expiry: bigint; /** * Hex-encoded taker public key * * @generated from protobuf field: string taker_pub_key = 9 */ takerPubKey: string; /** * Taker Cosmos account number * * @generated from protobuf field: uint64 taker_account_number = 10 */ takerAccountNumber: bigint; /** * Taker Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 taker_account_sequence = 11 */ takerAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 12 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence (nonce) * * @generated from protobuf field: uint64 fee_payer_account_sequence = 13 */ feePayerAccountSequence: bigint; /** * How long to wait for quotes (max 5000ms) * * @generated from protobuf field: uint64 quotes_wait_time_ms = 20 */ quotesWaitTimeMs: bigint; /** * Action for quantity not filled by the selected quotes. Set `limit` to place * a limit order at the given price, `market` to sweep the remainder as a * market order. Omit to settle only the quoted amount. * * @generated from protobuf field: injective_rfq_gw_rpc.RFQSettlementUnfilledActionType unfilled_action = 21 */ unfilledAction?: RFQSettlementUnfilledActionType$1; /** * Taker subaccount nonce at settlement time. Prevents replay when submitting * multiple RFQs in the same block. Defaults to 0 (contract reads the on-chain * nonce). * * @generated from protobuf field: uint32 subaccount_nonce = 22 */ subaccountNonce: number; /** * Client order ID echoed through to the on-chain trade event. Used to * correlate a trade event back to the originating UI order. Not used * server-side. * * @generated from protobuf field: string cid = 23 */ cid: string; /** * Simulate the tx on chain and use the estimated gas (with adjustment buffer) * instead of the fee payer max gas. Falls back to max gas if the simulation * fails. * * @generated from protobuf field: bool simulate = 24 */ simulate: boolean; /** * Deprecated compatibility alias for memo * * @generated from protobuf field: string tx_body_memo = 25 */ txBodyMemo: string; /** * Optional RFQ request memo, also used as the outer Cosmos TxBody memo. * Maximum 256 UTF-8 bytes * * @generated from protobuf field: string memo = 26 */ memo: string; /** * Optional taker-signed RFQ intent used for request authentication * * @generated from protobuf field: injective_rfq_gw_rpc.RFQGwSignedRFQRequestType signed_request = 27 */ signedRequest?: RFQGwSignedRFQRequestType$1; /** * Hex-encoded taker EIP-712 signature over signed_request * * @generated from protobuf field: string taker_signature = 28 */ takerSignature: string; } /** * @generated from protobuf message injective_rfq_gw_rpc.PrepareResponse */ interface PrepareResponse { /** * Generated RFQ ID * * @generated from protobuf field: uint64 rfq_id = 1 */ rfqId: bigint; /** * Fee-delegated prepared transaction bytes * * @generated from protobuf field: bytes tx = 2 */ tx: Uint8Array; /** * Hex-encoded fee payer signature * * @generated from protobuf field: string fee_payer_sig = 3 */ feePayerSig: string; /** * Fee payer address * * @generated from protobuf field: string fee_payer = 4 */ feePayer: string; /** * Sign mode (SIGN_MODE_DIRECT) * * @generated from protobuf field: string sign_mode = 5 */ signMode: string; /** * Fee payer public key type * * @generated from protobuf field: string pub_key_type = 6 */ pubKeyType: string; /** * Fee payer public key * * @generated from protobuf field: injective_rfq_gw_rpc.CosmosPubKey fee_payer_pub_key = 7 */ feePayerPubKey?: CosmosPubKey$1; /** * Selected quotes in execution order * * @generated from protobuf field: repeated injective_rfq_gw_rpc.RFQGwPrepareQuoteResult quotes = 8 */ quotes: RFQGwPrepareQuoteResult[]; /** * Taker Cosmos account number * * @generated from protobuf field: uint64 taker_account_number = 9 */ takerAccountNumber: bigint; /** * Taker Cosmos account sequence * * @generated from protobuf field: uint64 taker_account_sequence = 10 */ takerAccountSequence: bigint; /** * Fee payer Cosmos account number * * @generated from protobuf field: uint64 fee_payer_account_number = 11 */ feePayerAccountNumber: bigint; /** * Fee payer Cosmos account sequence * * @generated from protobuf field: uint64 fee_payer_account_sequence = 12 */ feePayerAccountSequence: bigint; /** * Actual milliseconds elapsed waiting for quotes; use as quotes_wait_time_ms * hint in next request * * @generated from protobuf field: uint64 quotes_wait_ms = 13 */ quotesWaitMs: bigint; /** * Number of quotes that expired after being received and were excluded from * selection * * @generated from protobuf field: uint64 expired_quotes_count = 14 */ expiredQuotesCount: bigint; } /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712AutoSignRequestType */ declare const RFQGwPrepareEip712AutoSignRequestType$1 = new RFQGwPrepareEip712AutoSignRequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQSettlementUnfilledActionType */ declare const RFQSettlementUnfilledActionType$1 = new RFQSettlementUnfilledActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQSettlementLimitActionType */ declare const RFQSettlementLimitActionType = new RFQSettlementLimitActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQSettlementMarketActionType */ declare const RFQSettlementMarketActionType = new RFQSettlementMarketActionType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwSignedRFQRequestType */ declare const RFQGwSignedRFQRequestType$1 = new RFQGwSignedRFQRequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.PrepareEip712AutoSignResponse */ declare const PrepareEip712AutoSignResponse = new PrepareEip712AutoSignResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.CosmosPubKey */ declare const CosmosPubKey$1 = new CosmosPubKey$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwPrepareQuoteResult */ declare const RFQGwPrepareQuoteResult = new RFQGwPrepareQuoteResult$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwPrepareAutoSignRequestType */ declare const RFQGwPrepareAutoSignRequestType$1 = new RFQGwPrepareAutoSignRequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.PrepareAutoSignResponse */ declare const PrepareAutoSignResponse = new PrepareAutoSignResponse$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712RequestType */ declare const RFQGwPrepareEip712RequestType$1 = new RFQGwPrepareEip712RequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.PrepareEip712Response */ declare const PrepareEip712Response$1 = new PrepareEip712Response$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.RFQGwPrepareRequestType */ declare const RFQGwPrepareRequestType$1 = new RFQGwPrepareRequestType$Type(); /** * @generated MessageType for protobuf message injective_rfq_gw_rpc.PrepareResponse */ declare const PrepareResponse = new PrepareResponse$Type(); //#endregion //#region src/client/indexer/types/rfq-gw.d.ts interface RFQGwSignedRFQRequestType { taker: string; requestId: string; marketId: string; direction: string; quantity: string; margin: string; worstPrice: string; minTotalFillQuantity: string; cid: string; schemaVersion: number; evmChainId: number; createdAtMs: number; deadlineMs: number; subaccountNonce: number; allowedRelayer?: string; maxFeeRate?: string; maxTotalTakerFunds?: string; } interface RFQGwPrepareAutoSignRequestType { cid?: string; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; takerAddress?: string; autosignPubKey: string; autosignAddress: string; subaccountNonce?: number; quotesWaitTimeMs?: number; autosignAccountNumber?: number; feePayerAccountNumber?: number; autosignAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; } interface CosmosPubKeyType { key: string; type: string; } interface RFQGwPrepareQuoteResultType { maker: string; price: string; margin: string; quantity: string; } interface RFQGwPrepareAutoSignResponseType { rfqId: number; tx: Uint8Array; feePayer: string; signMode: string; pubKeyType: string; feePayerSig: string; quotesWaitMs: number; expiredQuotesCount: number; autosignAccountNumber: number; feePayerAccountNumber: number; autosignAccountSequence: number; feePayerAccountSequence: number; feePayerPubKey?: CosmosPubKeyType; quotes: RFQGwPrepareQuoteResultType[]; } interface RFQGwPrepareRequestType { cid?: string; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; takerAddress: string; takerPubKey: string; subaccountNonce?: number; quotesWaitTimeMs?: number; takerAccountNumber?: number; takerAccountSequence?: number; feePayerAccountNumber?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; } interface RFQGwPrepareResponseType { rfqId: number; tx: Uint8Array; feePayer: string; signMode: string; pubKeyType: string; feePayerSig: string; quotesWaitMs: number; expiredQuotesCount: number; takerAccountNumber: number; takerAccountSequence: number; feePayerAccountNumber: number; feePayerAccountSequence: number; feePayerPubKey?: CosmosPubKeyType; quotes: RFQGwPrepareQuoteResultType[]; } interface RFQGwPrepareEip712RequestType { cid?: string; gas?: number; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; takerAddress: string; takerPubKey: string; ethChainId?: number; eip712Wrapper?: string; subaccountNonce?: number; quotesWaitTimeMs?: number; takerAccountNumber?: number; takerAccountSequence?: number; feePayerAccountNumber?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; } interface RFQGwPrepareEip712ResponseType { rfqId: number; data: string; feePayer: string; signMode: string; pubKeyType: string; feePayerSig: string; quotesWaitMs: number; expiredQuotesCount: number; takerAccountNumber: number; takerAccountSequence: number; feePayerPubKey?: CosmosPubKeyType; quotes: RFQGwPrepareQuoteResultType[]; } interface RFQGwPrepareEip712AutoSignRequestType { cid?: string; gas?: number; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; takerAddress?: string; ethChainId?: number; autosignPubKey: string; eip712Wrapper?: string; autosignAddress: string; subaccountNonce?: number; quotesWaitTimeMs?: number; autosignAccountNumber?: number; feePayerAccountNumber?: number; autosignAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; } interface RFQGwPrepareEip712AutoSignResponseType { rfqId: number; data: string; feePayer: string; signMode: string; pubKeyType: string; feePayerSig: string; quotesWaitMs: number; expiredQuotesCount: number; autosignAccountNumber: number; autosignAccountSequence: number; feePayerPubKey?: CosmosPubKeyType; quotes: RFQGwPrepareQuoteResultType[]; } type GrpcCosmosPubKey = CosmosPubKey$1; type GrpcRFQGwPrepareRequest = RFQGwPrepareRequestType$1; type GrpcRFQGwPrepareResponse = PrepareResponse; type GrpcRFQGwPrepareQuoteResult = RFQGwPrepareQuoteResult; type GrpcRFQGwPrepareAutoSignResponse = PrepareAutoSignResponse; type GrpcRFQGwPrepareAutoSignRequest = RFQGwPrepareAutoSignRequestType$1; type GrpcRFQGwPrepareEip712Request = RFQGwPrepareEip712RequestType$1; type GrpcRFQGwPrepareEip712Response = PrepareEip712Response$1; type GrpcRFQGwPrepareEip712AutoSignRequest = RFQGwPrepareEip712AutoSignRequestType$1; type GrpcRFQGwPrepareEip712AutoSignResponse = PrepareEip712AutoSignResponse; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_auction_rpc_pb.d.ts /** * @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse */ interface AuctionEndpointResponse { /** * The auction * * @generated from protobuf field: injective_auction_rpc.Auction auction = 1 */ auction?: Auction$1; /** * Bids of the auction * * @generated from protobuf field: repeated injective_auction_rpc.Bid bids = 2 */ bids: Bid$1[]; } /** * @generated from protobuf message injective_auction_rpc.Auction */ interface Auction$1 { /** * Account address of the auction winner * * @generated from protobuf field: string winner = 1 */ winner: string; /** * Coins in the basket * * @generated from protobuf field: repeated injective_auction_rpc.Coin basket = 2 */ basket: Coin$4[]; /** * @generated from protobuf field: string winning_bid_amount = 3 */ winningBidAmount: string; /** * @generated from protobuf field: uint64 round = 4 */ round: bigint; /** * Auction end timestamp in UNIX millis. * * @generated from protobuf field: sint64 end_timestamp = 5 */ endTimestamp: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; /** * @generated from protobuf field: injective_auction_rpc.AuctionContract contract = 7 */ contract?: AuctionContract$1; } /** * @generated from protobuf message injective_auction_rpc.Coin */ interface Coin$4 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated from protobuf message injective_auction_rpc.AuctionContract */ interface AuctionContract$1 { /** * @generated from protobuf field: uint64 id = 1 */ id: bigint; /** * Bid target of the auction * * @generated from protobuf field: string bid_target = 2 */ bidTarget: string; /** * Total slots of the auction * * @generated from protobuf field: uint64 current_slots = 3 */ currentSlots: bigint; /** * Total slots of the auction * * @generated from protobuf field: uint64 total_slots = 4 */ totalSlots: bigint; /** * Max user allocation of the auction * * @generated from protobuf field: string max_user_allocation = 5 */ maxUserAllocation: string; /** * Total committed amount of the auction * * @generated from protobuf field: string total_committed = 6 */ totalCommitted: string; /** * Whitelist addresses for the auction * * @generated from protobuf field: repeated string whitelist_addresses = 7 */ whitelistAddresses: string[]; /** * Auction start timestamp in UNIX millis. * * @generated from protobuf field: uint64 start_timestamp = 8 */ startTimestamp: bigint; /** * Auction end timestamp in UNIX millis. * * @generated from protobuf field: uint64 end_timestamp = 9 */ endTimestamp: bigint; /** * Max round allocation of the auction * * @generated from protobuf field: string max_round_allocation = 10 */ maxRoundAllocation: string; /** * Whether any bid has been placed in the auction. * * @generated from protobuf field: bool is_bid_placed = 11 */ isBidPlaced: boolean; } /** * @generated from protobuf message injective_auction_rpc.Bid */ interface Bid$1 { /** * Account address of the bidder * * @generated from protobuf field: string bidder = 1 */ bidder: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * Bid timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_auction_rpc.AuctionsResponse */ interface AuctionsResponse { /** * The historical auctions * * @generated from protobuf field: repeated injective_auction_rpc.Auction auctions = 1 */ auctions: Auction$1[]; } /** * @generated from protobuf message injective_auction_rpc.AuctionsHistoryV2Response */ interface AuctionsHistoryV2Response { /** * The historical auctions * * @generated from protobuf field: repeated injective_auction_rpc.AuctionV2Result auctions = 1 */ auctions: AuctionV2Result[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_auction_rpc.AuctionV2Result */ interface AuctionV2Result { /** * Account address of the auction winner * * @generated from protobuf field: string winner = 1 */ winner: string; /** * Coins in the basket * * @generated from protobuf field: repeated injective_auction_rpc.CoinPrices basket = 2 */ basket: CoinPrices[]; /** * @generated from protobuf field: string winning_bid_amount = 3 */ winningBidAmount: string; /** * @generated from protobuf field: uint64 round = 4 */ round: bigint; /** * Auction end timestamp in UNIX millis. * * @generated from protobuf field: sint64 end_timestamp = 5 */ endTimestamp: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; /** * @generated from protobuf field: injective_auction_rpc.AuctionContract contract = 7 */ contract?: AuctionContract$1; /** * @generated from protobuf field: string winning_bid_amount_usd = 8 */ winningBidAmountUsd: string; } /** * @generated from protobuf message injective_auction_rpc.CoinPrices */ interface CoinPrices { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * Map of historical prices. * * @generated from protobuf field: map prices = 3 */ prices: { [key: string]: string; }; } /** * @generated from protobuf message injective_auction_rpc.AccountAuctionsV2Response */ interface AccountAuctionsV2Response { /** * The historical auctions * * @generated from protobuf field: repeated injective_auction_rpc.AccountAuctionV2 auctions = 1 */ auctions: AccountAuctionV2$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; /** * Total number of auctions * * @generated from protobuf field: sint64 total = 3 */ total: bigint; } /** * @generated from protobuf message injective_auction_rpc.AccountAuctionV2 */ interface AccountAuctionV2$1 { /** * @generated from protobuf field: uint64 id = 1 */ id: bigint; /** * @generated from protobuf field: uint64 round = 2 */ round: bigint; /** * @generated from protobuf field: string amount_deposited = 3 */ amountDeposited: string; /** * Whether the auction rewards can be claimed. * * @generated from protobuf field: bool is_claimable = 4 */ isClaimable: boolean; /** * @generated from protobuf field: repeated injective_auction_rpc.CoinPrices claimed_assets = 5 */ claimedAssets: CoinPrices[]; } /** * @generated from protobuf message injective_auction_rpc.AuctionAccountStatusResponse */ interface AuctionAccountStatusResponse { /** * The allowlist status of the account * * @generated from protobuf field: string status = 1 */ status: string; } /** * @generated from protobuf message injective_auction_rpc.StreamBidsResponse */ interface StreamBidsResponse$1 { /** * Account address of the bidder * * @generated from protobuf field: string bidder = 1 */ bidder: string; /** * @generated from protobuf field: string bid_amount = 2 */ bidAmount: string; /** * @generated from protobuf field: uint64 round = 3 */ round: bigint; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated from protobuf message injective_auction_rpc.AuctionsStatsResponse */ interface AuctionsStatsResponse { /** * Total cumulative amount of INJ burnt in auctions * * @generated from protobuf field: string total_burnt = 1 */ totalBurnt: string; /** * Total cumulative historical basket value in USD of all auctions * * @generated from protobuf field: string total_usd_value = 2 */ totalUsdValue: string; } /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionEndpointResponse */ declare const AuctionEndpointResponse = new AuctionEndpointResponse$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.Auction */ declare const Auction$1 = new Auction$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.Coin */ declare const Coin$4 = new Coin$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionContract */ declare const AuctionContract$1 = new AuctionContract$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.Bid */ declare const Bid$1 = new Bid$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionsResponse */ declare const AuctionsResponse = new AuctionsResponse$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionsHistoryV2Response */ declare const AuctionsHistoryV2Response = new AuctionsHistoryV2Response$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionV2Result */ declare const AuctionV2Result = new AuctionV2Result$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.CoinPrices */ declare const CoinPrices = new CoinPrices$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AccountAuctionsV2Response */ declare const AccountAuctionsV2Response = new AccountAuctionsV2Response$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AccountAuctionV2 */ declare const AccountAuctionV2$1 = new AccountAuctionV2$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionAccountStatusResponse */ declare const AuctionAccountStatusResponse = new AuctionAccountStatusResponse$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.StreamBidsResponse */ declare const StreamBidsResponse$1 = new StreamBidsResponse$Type(); /** * @generated MessageType for protobuf message injective_auction_rpc.AuctionsStatsResponse */ declare const AuctionsStatsResponse = new AuctionsStatsResponse$Type(); //#endregion //#region src/client/indexer/types/auction.d.ts interface IndexerAuctionBid { bidder: string; bidAmount: string; bidTimestamp: number; } interface AuctionCoin { denom: string; amount: string; usdValue: string; } interface AuctionCoinPrices { denom: string; amount: string; prices: { [key: string]: string; }; } interface AuctionContract { id: string; bidTarget: string; currentSlots: string; totalSlots: string; maxUserAllocation: string; totalCommitted: string; whitelistAddresses: string[]; startTimestamp: string; endTimestamp: string; maxRoundAllocation: string; isBidPlaced: boolean; } interface Auction { winner: string; basket: AuctionCoin[]; winningBidAmount: string; round: number; endTimestamp: number; updatedAt: number; contract?: AuctionContract; } interface AuctionV2 { winner: string; basket: AuctionCoinPrices[]; winningBidAmount: string; winningBidAmountUsd: string; round: number; endTimestamp: number; updatedAt: number; contract?: AuctionContract; } interface AccountAuctionV2 { id: string; round: number; amountDeposited: string; isClaimable: boolean; claimedAssets: AuctionCoinPrices[]; } interface AuctionsStats { totalBurnt: string; totalBurntInUsd: string; } interface AccountAuctionStatus { status: string; } type GrpcAuction = Auction$1; type GrpcAuctionCoin = Coin$4; type GrpcIndexerAuctionBid = Bid$1; type GrpcAuctionV2 = AuctionV2Result; type GrpcAuctionCoinPrices = CoinPrices; type GrpcAccountAuctionV2 = AccountAuctionV2$1; type GrpcAuctionContract = AuctionContract$1; type StreamBidsResponse = StreamBidsResponse$1; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_archiver_rpc_pb.d.ts /** * @generated from protobuf message injective_archiver_rpc.BalanceResponse */ interface BalanceResponse { /** * @generated from protobuf field: injective_archiver_rpc.HistoricalBalance historical_balance = 1 */ historicalBalance?: HistoricalBalance$1; } /** * @generated from protobuf message injective_archiver_rpc.HistoricalBalance */ interface HistoricalBalance$1 { /** * Time, Unix timestamp (UTC) * * @generated from protobuf field: repeated sint32 t = 1 */ t: number[]; /** * Balance value * * @generated from protobuf field: repeated double v = 2 */ v: number[]; /** * Detailed Balance value * * @generated from protobuf field: repeated injective_archiver_rpc.HistoricalDetailedBalance dv = 3 */ dv: HistoricalDetailedBalance[]; } /** * @generated from protobuf message injective_archiver_rpc.HistoricalDetailedBalance */ interface HistoricalDetailedBalance { /** * Spot amount value * * @generated from protobuf field: double spot = 1 */ spot: number; /** * Perpetual amount value * * @generated from protobuf field: double perp = 2 */ perp: number; /** * Staking amount value * * @generated from protobuf field: double staking = 3 */ staking: number; } /** * @generated from protobuf message injective_archiver_rpc.AccountStatsResponse */ interface AccountStatsResponse { /** * Account address * * @generated from protobuf field: string account = 1 */ account: string; /** * Realized profit and loss (USD) * * @generated from protobuf field: double pnl = 2 */ pnl: number; /** * Trade volume (USD) * * @generated from protobuf field: double volume = 3 */ volume: number; /** * Staking amount (INJ) * * @generated from protobuf field: string stake = 4 */ stake: string; } /** * @generated from protobuf message injective_archiver_rpc.RpnlResponse */ interface RpnlResponse { /** * @generated from protobuf field: injective_archiver_rpc.HistoricalRPNL historical_rpnl = 1 */ historicalRpnl?: HistoricalRPNL$1; } /** * @generated from protobuf message injective_archiver_rpc.HistoricalRPNL */ interface HistoricalRPNL$1 { /** * Time, Unix timestamp (UTC) * * @generated from protobuf field: repeated sint32 t = 1 */ t: number[]; /** * Realized Profit and Loss value * * @generated from protobuf field: repeated double v = 2 */ v: number[]; /** * Detailed Profit and Loss value * * @generated from protobuf field: repeated injective_archiver_rpc.HistoricalDetailedPNL dv = 3 */ dv: HistoricalDetailedPNL[]; } /** * @generated from protobuf message injective_archiver_rpc.HistoricalDetailedPNL */ interface HistoricalDetailedPNL { /** * Realized Profit and Loss value * * @generated from protobuf field: double rpnl = 1 */ rpnl: number; /** * Unrealized Profit and Loss value * * @generated from protobuf field: double upnl = 2 */ upnl: number; } /** * @generated from protobuf message injective_archiver_rpc.VolumesResponse */ interface VolumesResponse { /** * @generated from protobuf field: injective_archiver_rpc.HistoricalVolumes historical_volumes = 1 */ historicalVolumes?: HistoricalVolumes$1; } /** * @generated from protobuf message injective_archiver_rpc.HistoricalVolumes */ interface HistoricalVolumes$1 { /** * Time, Unix timestamp (UTC) * * @generated from protobuf field: repeated sint32 t = 1 */ t: number[]; /** * Volume value * * @generated from protobuf field: repeated double v = 2 */ v: number[]; } /** * @generated from protobuf message injective_archiver_rpc.PnlLeaderboardResponse */ interface PnlLeaderboardResponse { /** * First date of snapshots used for the leaderboard period * * @generated from protobuf field: string first_date = 1 */ firstDate: string; /** * Last date of snapshots used for the leaderboard period * * @generated from protobuf field: string last_date = 2 */ lastDate: string; /** * Leaderboard entries * * @generated from protobuf field: repeated injective_archiver_rpc.LeaderboardRow leaders = 3 */ leaders: LeaderboardRow$1[]; /** * Leaderboard entry for the querying account * * @generated from protobuf field: injective_archiver_rpc.LeaderboardRow account_row = 4 */ accountRow?: LeaderboardRow$1; } /** * @generated from protobuf message injective_archiver_rpc.LeaderboardRow */ interface LeaderboardRow$1 { /** * Account address * * @generated from protobuf field: string account = 1 */ account: string; /** * Realized profit and loss (USD) * * @generated from protobuf field: double pnl = 2 */ pnl: number; /** * Trade volume (USD) * * @generated from protobuf field: double volume = 3 */ volume: number; /** * Rank in leaderboard * * @generated from protobuf field: sint32 rank = 4 */ rank: number; } /** * @generated from protobuf message injective_archiver_rpc.VolLeaderboardResponse */ interface VolLeaderboardResponse { /** * First date of snapshots used for the leaderboard period * * @generated from protobuf field: string first_date = 1 */ firstDate: string; /** * Last date of snapshots used for the leaderboard period * * @generated from protobuf field: string last_date = 2 */ lastDate: string; /** * Leaderboard entries * * @generated from protobuf field: repeated injective_archiver_rpc.LeaderboardRow leaders = 3 */ leaders: LeaderboardRow$1[]; /** * Leaderboard entry for the querying account * * @generated from protobuf field: injective_archiver_rpc.LeaderboardRow account_row = 4 */ accountRow?: LeaderboardRow$1; } /** * @generated from protobuf message injective_archiver_rpc.PnlLeaderboardFixedResolutionResponse */ interface PnlLeaderboardFixedResolutionResponse { /** * First date of snapshots used for the leaderboard period * * @generated from protobuf field: string first_date = 1 */ firstDate: string; /** * Last date of snapshots used for the leaderboard period * * @generated from protobuf field: string last_date = 2 */ lastDate: string; /** * Leaderboard entries * * @generated from protobuf field: repeated injective_archiver_rpc.LeaderboardRow leaders = 3 */ leaders: LeaderboardRow$1[]; /** * Leaderboard entry for the querying account * * @generated from protobuf field: injective_archiver_rpc.LeaderboardRow account_row = 4 */ accountRow?: LeaderboardRow$1; } /** * @generated from protobuf message injective_archiver_rpc.VolLeaderboardFixedResolutionResponse */ interface VolLeaderboardFixedResolutionResponse { /** * First date of snapshots used for the leaderboard period * * @generated from protobuf field: string first_date = 1 */ firstDate: string; /** * Last date of snapshots used for the leaderboard period * * @generated from protobuf field: string last_date = 2 */ lastDate: string; /** * Leaderboard entries * * @generated from protobuf field: repeated injective_archiver_rpc.LeaderboardRow leaders = 3 */ leaders: LeaderboardRow$1[]; /** * Leaderboard entry for the querying account * * @generated from protobuf field: injective_archiver_rpc.LeaderboardRow account_row = 4 */ accountRow?: LeaderboardRow$1; } /** * @generated from protobuf message injective_archiver_rpc.DenomHoldersResponse */ interface DenomHoldersResponse { /** * @generated from protobuf field: repeated injective_archiver_rpc.Holder holders = 1 */ holders: Holder$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; /** * Total number of holders * * @generated from protobuf field: sint32 total = 3 */ total: number; } /** * @generated from protobuf message injective_archiver_rpc.Holder */ interface Holder$1 { /** * Account address for the holder * * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * The balance of the holder * * @generated from protobuf field: string balance = 2 */ balance: string; } /** * @generated from protobuf message injective_archiver_rpc.StreamSpotAverageEntriesResponse */ interface StreamSpotAverageEntriesResponse { /** * List of spot average entries * * @generated from protobuf field: injective_archiver_rpc.SpotAverageEntry average_entry = 1 */ averageEntry?: SpotAverageEntry$1; /** * Operation timestamp in UNIX. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated from protobuf message injective_archiver_rpc.SpotAverageEntry */ interface SpotAverageEntry$1 { /** * The ID of the market * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The average entry price for the spot market * * @generated from protobuf field: string average_entry_price = 2 */ averageEntryPrice: string; /** * The total quantity held in the spot market * * @generated from protobuf field: string quantity = 3 */ quantity: string; /** * The USD value of the total quantity held in the spot market * * @generated from protobuf field: string usd_value = 4 */ usdValue: string; } /** * @generated MessageType for protobuf message injective_archiver_rpc.BalanceResponse */ declare const BalanceResponse = new BalanceResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.HistoricalBalance */ declare const HistoricalBalance$1 = new HistoricalBalance$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.HistoricalDetailedBalance */ declare const HistoricalDetailedBalance = new HistoricalDetailedBalance$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.AccountStatsResponse */ declare const AccountStatsResponse = new AccountStatsResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.RpnlResponse */ declare const RpnlResponse = new RpnlResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.HistoricalRPNL */ declare const HistoricalRPNL$1 = new HistoricalRPNL$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.HistoricalDetailedPNL */ declare const HistoricalDetailedPNL = new HistoricalDetailedPNL$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.VolumesResponse */ declare const VolumesResponse = new VolumesResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.HistoricalVolumes */ declare const HistoricalVolumes$1 = new HistoricalVolumes$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.PnlLeaderboardResponse */ declare const PnlLeaderboardResponse = new PnlLeaderboardResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.LeaderboardRow */ declare const LeaderboardRow$1 = new LeaderboardRow$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.VolLeaderboardResponse */ declare const VolLeaderboardResponse = new VolLeaderboardResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.PnlLeaderboardFixedResolutionResponse */ declare const PnlLeaderboardFixedResolutionResponse = new PnlLeaderboardFixedResolutionResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.VolLeaderboardFixedResolutionResponse */ declare const VolLeaderboardFixedResolutionResponse = new VolLeaderboardFixedResolutionResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.DenomHoldersResponse */ declare const DenomHoldersResponse = new DenomHoldersResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.Holder */ declare const Holder$1 = new Holder$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.StreamSpotAverageEntriesResponse */ declare const StreamSpotAverageEntriesResponse = new StreamSpotAverageEntriesResponse$Type(); /** * @generated MessageType for protobuf message injective_archiver_rpc.SpotAverageEntry */ declare const SpotAverageEntry$1 = new SpotAverageEntry$Type(); //#endregion //#region src/client/indexer/types/archiver.d.ts interface HistoricalBalance { t: number[]; v: number[]; } interface HistoricalRPNL { t: number[]; v: number[]; } interface HistoricalVolumes { t: number[]; v: number[]; } interface LeaderboardRow { account: string; pnl: number; volume: number; rank: number; } interface PnlLeaderboard { firstDate: string; lastDate: string; leaders: LeaderboardRow[]; accountRow: LeaderboardRow | undefined; } interface VolLeaderboard { firstDate: string; lastDate: string; leaders: LeaderboardRow[]; accountRow: LeaderboardRow | undefined; } interface Holder { accountAddress: string; balance: string; } interface DenomHolders { holders: Holder[]; next: string[]; total: number; } interface AccountStats { pnl: number; stake: string; volume: number; } interface SpotAverageEntry { marketId: string; averageEntryPrice: string; quantity: string; usdValue: string; } type GrpcHistoricalRPNL = HistoricalRPNL$1; type GrpcLeaderboardRow = LeaderboardRow$1; type GrpcDenomHolders = DenomHoldersResponse; type GrpcSpotAverageEntry = SpotAverageEntry$1; type GrpcHistoricalBalance = HistoricalBalance$1; type GrpcHistoricalVolumes = HistoricalVolumes$1; type GrpcPnlLeaderboard = PnlLeaderboardResponse | PnlLeaderboardFixedResolutionResponse; type GrpcVolLeaderboard = VolLeaderboardResponse | VolLeaderboardFixedResolutionResponse; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_referral_rpc_pb.d.ts /** * @generated from protobuf message injective_referral_rpc.GetReferrerDetailsResponse */ interface GetReferrerDetailsResponse { /** * List of invitees * * @generated from protobuf field: repeated injective_referral_rpc.ReferralInvitee invitees = 1 */ invitees: ReferralInvitee[]; /** * Total commission earned * * @generated from protobuf field: string total_commission = 2 */ totalCommission: string; /** * Total trading volume * * @generated from protobuf field: string total_trading_volume = 3 */ totalTradingVolume: string; /** * Referrer code * * @generated from protobuf field: string referrer_code = 4 */ referrerCode: string; } /** * @generated from protobuf message injective_referral_rpc.ReferralInvitee */ interface ReferralInvitee { /** * Address of the invitee * * @generated from protobuf field: string address = 1 */ address: string; /** * Commission earned from this invitee * * @generated from protobuf field: string commission = 2 */ commission: string; /** * Trading volume of this invitee * * @generated from protobuf field: string trading_volume = 3 */ tradingVolume: string; /** * Join date in ISO 8601 format * * @generated from protobuf field: string join_date = 4 */ joinDate: string; } /** * @generated from protobuf message injective_referral_rpc.GetInviteeDetailsResponse */ interface GetInviteeDetailsResponse { /** * Address of the referrer * * @generated from protobuf field: string referrer = 1 */ referrer: string; /** * Referral code used * * @generated from protobuf field: string used_code = 2 */ usedCode: string; /** * Total trading volume * * @generated from protobuf field: string trading_volume = 3 */ tradingVolume: string; /** * Join date in ISO 8601 format * * @generated from protobuf field: string joined_at = 4 */ joinedAt: string; /** * Whether the referral is still active * * @generated from protobuf field: bool active = 5 */ active: boolean; } /** * @generated from protobuf message injective_referral_rpc.GetReferrerByCodeResponse */ interface GetReferrerByCodeResponse { /** * Address of the referrer * * @generated from protobuf field: string referrer_address = 1 */ referrerAddress: string; } /** * @generated MessageType for protobuf message injective_referral_rpc.GetReferrerDetailsResponse */ declare const GetReferrerDetailsResponse = new GetReferrerDetailsResponse$Type(); /** * @generated MessageType for protobuf message injective_referral_rpc.ReferralInvitee */ declare const ReferralInvitee = new ReferralInvitee$Type(); /** * @generated MessageType for protobuf message injective_referral_rpc.GetInviteeDetailsResponse */ declare const GetInviteeDetailsResponse = new GetInviteeDetailsResponse$Type(); /** * @generated MessageType for protobuf message injective_referral_rpc.GetReferrerByCodeResponse */ declare const GetReferrerByCodeResponse = new GetReferrerByCodeResponse$Type(); //#endregion //#region src/client/indexer/types/referral.d.ts interface ReferralDetails { referrerCode: string; referrerAddress: string; totalCommission: BigNumber$1; totalTradingVolume: BigNumber$1; invitees: ReferralInvitee[]; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_campaign_rpc_pb.d.ts /** * @generated from protobuf message injective_campaign_rpc.RankingResponse */ interface RankingResponse { /** * The campaign information * * @generated from protobuf field: injective_campaign_rpc.Campaign campaign = 1 */ campaign?: Campaign$1; /** * The campaign users * * @generated from protobuf field: repeated injective_campaign_rpc.CampaignUser users = 2 */ users: CampaignUser$1[]; /** * @generated from protobuf field: injective_campaign_rpc.Paging paging = 3 */ paging?: Paging$2; } /** * @generated from protobuf message injective_campaign_rpc.Campaign */ interface Campaign$1 { /** * @generated from protobuf field: string campaign_id = 1 */ campaignId: string; /** * MarketId of the trading strategy * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Total campaign score * * @generated from protobuf field: string total_score = 4 */ totalScore: string; /** * Last time the campaign score has been updated. * * @generated from protobuf field: sint64 last_updated = 5 */ lastUpdated: bigint; /** * Campaign start date in UNIX millis. * * @generated from protobuf field: sint64 start_date = 6 */ startDate: bigint; /** * Campaign end date in UNIX millis. * * @generated from protobuf field: sint64 end_date = 7 */ endDate: bigint; /** * Whether the campaign rewards can be claimed. * * @generated from protobuf field: bool is_claimable = 8 */ isClaimable: boolean; /** * Campaigns round ID * * @generated from protobuf field: sint32 round_id = 9 */ roundId: number; /** * Contract address that controls this campaign * * @generated from protobuf field: string manager_contract = 10 */ managerContract: string; /** * Reward tokens of this campaign * * @generated from protobuf field: repeated injective_campaign_rpc.Coin rewards = 11 */ rewards: Coin$3[]; /** * Total user score if accountAddress is passed, this is useful to estimate * account's reward * * @generated from protobuf field: string user_score = 12 */ userScore: string; /** * Return true if user claimed the reward of this campaign * * @generated from protobuf field: bool user_claimed = 13 */ userClaimed: boolean; /** * Suffix of the subaccount that eligible for volume score * * @generated from protobuf field: string subaccount_id_suffix = 14 */ subaccountIdSuffix: string; /** * Contract that manage users reward * * @generated from protobuf field: string reward_contract = 15 */ rewardContract: string; /** * Version of reward contract, UI use this to determine the message that need * to be sent * * @generated from protobuf field: string version = 16 */ version: string; /** * Campaign type * * @generated from protobuf field: string type = 17 */ type: string; } /** * @generated from protobuf message injective_campaign_rpc.Coin */ interface Coin$3 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated from protobuf message injective_campaign_rpc.CampaignUser */ interface CampaignUser$1 { /** * @generated from protobuf field: string campaign_id = 1 */ campaignId: string; /** * MarketId of the trading strategy * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Account address * * @generated from protobuf field: string account_address = 3 */ accountAddress: string; /** * Campaign score * * @generated from protobuf field: string score = 4 */ score: string; /** * Whether the distribution contract has been updated with the latest score * * @generated from protobuf field: bool contract_updated = 5 */ contractUpdated: boolean; /** * Block height when the score has been updated. * * @generated from protobuf field: sint64 block_height = 6 */ blockHeight: bigint; /** * Block time timestamp in UNIX millis. * * @generated from protobuf field: sint64 block_time = 7 */ blockTime: bigint; /** * Amount swapped but only count base denom of the market * * @generated from protobuf field: string purchased_amount = 8 */ purchasedAmount: string; /** * True if this user is updated to be in Galxe Campain list, only eligible * address are added * * @generated from protobuf field: bool galxe_updated = 9 */ galxeUpdated: boolean; /** * True if this user claimed the reward * * @generated from protobuf field: bool reward_claimed = 10 */ rewardClaimed: boolean; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_campaign_rpc.Paging */ interface Paging$2 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * @generated from protobuf message injective_campaign_rpc.CampaignsResponse */ interface CampaignsResponse { /** * @generated from protobuf field: repeated injective_campaign_rpc.Campaign campaigns = 1 */ campaigns: Campaign$1[]; /** * @generated from protobuf field: repeated injective_campaign_rpc.Coin accumulated_rewards = 2 */ accumulatedRewards: Coin$3[]; /** * @generated from protobuf field: sint32 reward_count = 3 */ rewardCount: number; } /** * @generated from protobuf message injective_campaign_rpc.CampaignsV2Response */ interface CampaignsV2Response { /** * @generated from protobuf field: repeated injective_campaign_rpc.CampaignV2 campaigns = 1 */ campaigns: CampaignV2$1[]; /** * @generated from protobuf field: string cursor = 2 */ cursor: string; } /** * @generated from protobuf message injective_campaign_rpc.CampaignV2 */ interface CampaignV2$1 { /** * @generated from protobuf field: string campaign_id = 1 */ campaignId: string; /** * MarketId of the trading strategy * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Total campaign score * * @generated from protobuf field: string total_score = 4 */ totalScore: string; /** * Campaign creation date in UNIX millis. * * @generated from protobuf field: sint64 created_at = 5 */ createdAt: bigint; /** * Campaign last update date in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; /** * Campaign start date in UNIX millis. * * @generated from protobuf field: sint64 start_date = 7 */ startDate: bigint; /** * Campaign end date in UNIX millis. * * @generated from protobuf field: sint64 end_date = 8 */ endDate: bigint; /** * Whether the campaign rewards can be claimed. * * @generated from protobuf field: bool is_claimable = 9 */ isClaimable: boolean; /** * Campaigns round ID * * @generated from protobuf field: sint32 round_id = 10 */ roundId: number; /** * Contract address that controls this campaign * * @generated from protobuf field: string manager_contract = 11 */ managerContract: string; /** * Reward tokens of this campaign * * @generated from protobuf field: repeated injective_campaign_rpc.Coin rewards = 12 */ rewards: Coin$3[]; /** * Suffix of the subaccount that eligible for volume score * * @generated from protobuf field: string subaccount_id_suffix = 13 */ subaccountIdSuffix: string; /** * Contract that manage users reward * * @generated from protobuf field: string reward_contract = 14 */ rewardContract: string; /** * Campaign type * * @generated from protobuf field: string type = 15 */ type: string; /** * Version of reward contract, UI use this to determine the message that need * to be sent * * @generated from protobuf field: string version = 16 */ version: string; /** * Campaign name * * @generated from protobuf field: string name = 17 */ name: string; /** * Campaign description * * @generated from protobuf field: string description = 18 */ description: string; } /** * @generated from protobuf message injective_campaign_rpc.ListGuildsResponse */ interface ListGuildsResponse { /** * @generated from protobuf field: repeated injective_campaign_rpc.Guild guilds = 1 */ guilds: Guild$1[]; /** * @generated from protobuf field: injective_campaign_rpc.Paging paging = 2 */ paging?: Paging$2; /** * Snapshot updated at time in UNIX milli * * @generated from protobuf field: sint64 updated_at = 3 */ updatedAt: bigint; /** * Summary of the campaign * * @generated from protobuf field: injective_campaign_rpc.CampaignSummary campaign_summary = 4 */ campaignSummary?: CampaignSummary; } /** * @generated from protobuf message injective_campaign_rpc.Guild */ interface Guild$1 { /** * @generated from protobuf field: string campaign_contract = 1 */ campaignContract: string; /** * Guild ID * * @generated from protobuf field: string guild_id = 2 */ guildId: string; /** * Guild's master address * * @generated from protobuf field: string master_address = 3 */ masterAddress: string; /** * Guild creation date (in UNIX milliseconds) * * @generated from protobuf field: sint64 created_at = 4 */ createdAt: bigint; /** * Average TVL score * * @generated from protobuf field: string tvl_score = 5 */ tvlScore: string; /** * Total volume score * * @generated from protobuf field: string volume_score = 6 */ volumeScore: string; /** * guild's rank by volume * * @generated from protobuf field: sint32 rank_by_volume = 7 */ rankByVolume: number; /** * guild's rank by TVL * * @generated from protobuf field: sint32 rank_by_tvl = 8 */ rankByTvl: number; /** * 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 * * @generated from protobuf field: string logo = 9 */ logo: string; /** * guild's total TVL * * @generated from protobuf field: string total_tvl = 10 */ totalTvl: string; /** * Snapshot updated at time in UNIX milli * * @generated from protobuf field: sint64 updated_at = 11 */ updatedAt: bigint; /** * Guild name * * @generated from protobuf field: string name = 14 */ name: string; /** * Active status of guild, true when master total tvl meets the minimum * requirements * * @generated from protobuf field: bool is_active = 13 */ isActive: boolean; /** * Master balance (in current campaigns denom) * * @generated from protobuf field: string master_balance = 15 */ masterBalance: string; /** * Guild description, set by master of the guild * * @generated from protobuf field: string description = 16 */ description: string; } /** * @generated from protobuf message injective_campaign_rpc.CampaignSummary */ interface CampaignSummary { /** * Campaign id * * @generated from protobuf field: string campaign_id = 1 */ campaignId: string; /** * Guild manager contract address * * @generated from protobuf field: string campaign_contract = 2 */ campaignContract: string; /** * Number of guild in the campaign * * @generated from protobuf field: sint32 total_guilds_count = 3 */ totalGuildsCount: number; /** * Total TVL * * @generated from protobuf field: string total_tvl = 4 */ totalTvl: string; /** * Sum average TVL of all guilds * * @generated from protobuf field: string total_average_tvl = 5 */ totalAverageTvl: string; /** * Total volume across all guilds (in market quote denom, often USDT) * * @generated from protobuf field: string total_volume = 6 */ totalVolume: string; /** * Snapshot updated at time in UNIX milli * * @generated from protobuf field: sint64 updated_at = 7 */ updatedAt: bigint; /** * Total member joined the campaign (include guild masters) * * @generated from protobuf field: sint32 total_members_count = 8 */ totalMembersCount: number; /** * Campaign start time * * @generated from protobuf field: sint64 start_time = 9 */ startTime: bigint; /** * Campaign end time * * @generated from protobuf field: sint64 end_time = 10 */ endTime: bigint; } /** * @generated from protobuf message injective_campaign_rpc.ListGuildMembersResponse */ interface ListGuildMembersResponse { /** * @generated from protobuf field: repeated injective_campaign_rpc.GuildMember members = 1 */ members: GuildMember$1[]; /** * @generated from protobuf field: injective_campaign_rpc.Paging paging = 2 */ paging?: Paging$2; /** * @generated from protobuf field: injective_campaign_rpc.Guild guild_info = 3 */ guildInfo?: Guild$1; } /** * @generated from protobuf message injective_campaign_rpc.GuildMember */ interface GuildMember$1 { /** * Guild manager contract address * * @generated from protobuf field: string campaign_contract = 1 */ campaignContract: string; /** * Guild ID * * @generated from protobuf field: string guild_id = 2 */ guildId: string; /** * Guild member address * * @generated from protobuf field: string address = 3 */ address: string; /** * Guild enrollment date (in UNIX milliseconds) * * @generated from protobuf field: sint64 joined_at = 4 */ joinedAt: bigint; /** * Average TVL score * * @generated from protobuf field: string tvl_score = 5 */ tvlScore: string; /** * Total volume score * * @generated from protobuf field: string volume_score = 6 */ volumeScore: string; /** * Total volume score * * @generated from protobuf field: string total_tvl = 7 */ totalTvl: string; /** * Volume percentage out of guilds total volume * * @generated from protobuf field: double volume_score_percentage = 8 */ volumeScorePercentage: number; /** * TVL percentage out of guilds total TVL score * * @generated from protobuf field: double tvl_score_percentage = 9 */ tvlScorePercentage: number; /** * Rewards for volume campaign (amount+denom) * * @generated from protobuf field: repeated injective_campaign_rpc.Coin tvl_reward = 10 */ tvlReward: Coin$3[]; /** * Rewards for TVL campaign (amount+denom) * * @generated from protobuf field: repeated injective_campaign_rpc.Coin volume_reward = 11 */ volumeReward: Coin$3[]; } /** * @generated from protobuf message injective_campaign_rpc.GetGuildMemberResponse */ interface GetGuildMemberResponse { /** * @generated from protobuf field: injective_campaign_rpc.GuildMember info = 1 */ info?: GuildMember$1; } /** * @generated MessageType for protobuf message injective_campaign_rpc.RankingResponse */ declare const RankingResponse = new RankingResponse$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.Campaign */ declare const Campaign$1 = new Campaign$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.Coin */ declare const Coin$3 = new Coin$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.CampaignUser */ declare const CampaignUser$1 = new CampaignUser$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.Paging */ declare const Paging$2 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.CampaignsResponse */ declare const CampaignsResponse = new CampaignsResponse$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.CampaignsV2Response */ declare const CampaignsV2Response = new CampaignsV2Response$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.CampaignV2 */ declare const CampaignV2$1 = new CampaignV2$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.ListGuildsResponse */ declare const ListGuildsResponse = new ListGuildsResponse$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.Guild */ declare const Guild$1 = new Guild$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.CampaignSummary */ declare const CampaignSummary = new CampaignSummary$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.ListGuildMembersResponse */ declare const ListGuildMembersResponse = new ListGuildMembersResponse$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.GuildMember */ declare const GuildMember$1 = new GuildMember$Type(); /** * @generated MessageType for protobuf message injective_campaign_rpc.GetGuildMemberResponse */ declare const GetGuildMemberResponse = new GetGuildMemberResponse$Type(); //#endregion //#region src/client/indexer/types/campaign.d.ts interface Campaign { campaignId: string; marketId: string; totalScore: string; lastUpdated: number; startDate: number; endDate: number; isClaimable: boolean; rewards: Coin[]; roundId: number; userClaimed: boolean; userScore: string; rewardContract: string; version: string; } interface CampaignUser { campaignId: string; marketId: string; accountAddress: string; score: string; contractUpdated: boolean; blockHeight: string; blockTime: number; purchasedAmount: string; galxeUpdated: boolean; } interface Guild { campaignContract: string; guildId: string; masterAddress: string; createdAt: number; tvlScore: string; volumeScore: string; rankByVolume: number; rankByTvl: number; logo: string; totalTvl: string; updatedAt: number; name: string; isActive: boolean; description: string; masterBalance: string; } interface GuildMember { campaignContract: string; guildId: string; address: string; joinedAt: number; tvlScore: string; volumeScore: string; totalTvl: string; volumeScorePercentage: number; tvlScorePercentage: number; tvlReward: Coin[]; volumeReward: Coin[]; } interface GuildCampaignSummary { campaignId: string; campaignContract: string; totalGuildsCount: number; totalTvl: string; totalAverageTvl: string; totalVolume: string; updatedAt: number; totalMembersCount: number; startTime: number; endTime: number; } interface CampaignV2 { campaignId: string; marketId: string; totalScore: string; createdAt: number; updatedAt: number; startDate: number; endDate: number; isClaimable: boolean; roundId: number; managerContract: string; rewards: Coin[]; subaccountIdSuffix: string; rewardContract: string; type: string; version: string; name: string; description: string; } type GrpcGuild = Guild$1; type GrpcCampaign = Campaign$1; type GrpcGuildMember = GuildMember$1; type GrpcCampaignUser = CampaignUser$1; type GrpcCampaignV2 = CampaignV2$1; //#endregion //#region src/client/indexer/types/spot-rest.d.ts type ChronosSpotMarketSummary = { change: number; high: number; low: number; open: number; price: number; volume: number; }; type AllChronosSpotMarketSummary = { change: number; high: number; low: number; open: number; price: number; volume: number; marketId: string; }; interface ChronosSpotMarketSummaryResponse { data: ChronosSpotMarketSummary; } interface AllSpotMarketSummaryResponse { data: AllChronosSpotMarketSummary[]; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_megavault_rpc_pb.d.ts /** * @generated from protobuf message injective_megavault_rpc.GetVaultResponse */ interface GetVaultResponse { /** * The vault * * @generated from protobuf field: injective_megavault_rpc.Vault vault = 1 */ vault?: Vault; } /** * @generated from protobuf message injective_megavault_rpc.Vault */ interface Vault { /** * Contract address * * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * Contract name * * @generated from protobuf field: string contract_name = 2 */ contractName: string; /** * Contract version * * @generated from protobuf field: string contract_version = 3 */ contractVersion: string; /** * Admin * * @generated from protobuf field: string admin = 4 */ admin: string; /** * LP denom * * @generated from protobuf field: string lp_denom = 5 */ lpDenom: string; /** * Quote denom * * @generated from protobuf field: string quote_denom = 6 */ quoteDenom: string; /** * Operators * * @generated from protobuf field: repeated injective_megavault_rpc.Operator operators = 7 */ operators: Operator[]; /** * Incentives * * @generated from protobuf field: injective_megavault_rpc.Incentives incentives = 8 */ incentives?: Incentives; /** * TargetApr * * @generated from protobuf field: injective_megavault_rpc.TargetApr target_apr = 9 */ targetApr?: TargetApr; /** * Operators * * @generated from protobuf field: injective_megavault_rpc.VaultStats stats = 10 */ stats?: VaultStats; /** * Block height when the vault was created. * * @generated from protobuf field: sint64 created_height = 11 */ createdHeight: bigint; /** * CreatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Block height when the vault was updated. * * @generated from protobuf field: sint64 updated_height = 13 */ updatedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 14 */ updatedAt: bigint; } /** * @generated from protobuf message injective_megavault_rpc.Operator */ interface Operator { /** * Operator address * * @generated from protobuf field: string address = 1 */ address: string; /** * Total amount * * @generated from protobuf field: string total_amount = 2 */ totalAmount: string; /** * Total liquid amount * * @generated from protobuf field: string total_liquid_amount = 3 */ totalLiquidAmount: string; /** * Block height when the operator was updated. * * @generated from protobuf field: sint64 updated_height = 4 */ updatedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; /** * Percentage of the operator * * @generated from protobuf field: string percentage = 6 */ percentage: string; /** * Subaccount ID of the operator * * @generated from protobuf field: string subaccount_id = 7 */ subaccountId: string; } /** * @generated from protobuf message injective_megavault_rpc.Incentives */ interface Incentives { /** * Operator address * * @generated from protobuf field: string address = 1 */ address: string; /** * Amount * * @generated from protobuf field: string amount = 2 */ amount: string; /** * Block height when the target APR was updated. * * @generated from protobuf field: sint64 updated_height = 3 */ updatedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 4 */ updatedAt: bigint; } /** * @generated from protobuf message injective_megavault_rpc.TargetApr */ interface TargetApr { /** * APR * * @generated from protobuf field: string apr = 1 */ apr: string; /** * Upper threshold * * @generated from protobuf field: string upper_threshold = 2 */ upperThreshold: string; /** * Lower threshold * * @generated from protobuf field: string lower_threshold = 3 */ lowerThreshold: string; /** * Block height when the target APR was updated. * * @generated from protobuf field: sint64 updated_height = 4 */ updatedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; } /** * @generated from protobuf message injective_megavault_rpc.VaultStats */ interface VaultStats { /** * Total subscribed amount in the vault * * @generated from protobuf field: string total_subscribed_amount = 1 */ totalSubscribedAmount: string; /** * Total redeemed amount in the vault * * @generated from protobuf field: string total_redeemed_amount = 2 */ totalRedeemedAmount: string; /** * Current amount in the vault * * @generated from protobuf field: string current_amount = 3 */ currentAmount: string; /** * Current amount in the vault without taking into account the incentives * * @generated from protobuf field: string current_amount_without_incentives = 4 */ currentAmountWithoutIncentives: string; /** * Current amount of LP tokens in the vault * * @generated from protobuf field: string current_lp_amount = 5 */ currentLpAmount: string; /** * Current LP price * * @generated from protobuf field: string current_lp_price = 6 */ currentLpPrice: string; /** * PnL statistics * * @generated from protobuf field: injective_megavault_rpc.PnlStats pnl = 7 */ pnl?: PnlStats; /** * Volatility statistics * * @generated from protobuf field: injective_megavault_rpc.VolatilityStats volatility = 8 */ volatility?: VolatilityStats; /** * APR statistics * * @generated from protobuf field: injective_megavault_rpc.AprStats apr = 9 */ apr?: AprStats; /** * Max drawdown * * @generated from protobuf field: injective_megavault_rpc.MaxDrawdown max_drawdown = 10 */ maxDrawdown?: MaxDrawdown; } /** * @generated from protobuf message injective_megavault_rpc.PnlStats */ interface PnlStats { /** * Unrealized PnL * * @generated from protobuf field: injective_megavault_rpc.UnrealizedPnl unrealized = 1 */ unrealized?: UnrealizedPnl; /** * All-time PnL * * @generated from protobuf field: injective_megavault_rpc.Pnl all_time = 2 */ allTime?: Pnl; } /** * @generated from protobuf message injective_megavault_rpc.UnrealizedPnl */ interface UnrealizedPnl { /** * Unrealized PnL value * * @generated from protobuf field: string value = 1 */ value: string; /** * Unrealized PnL percentage * * @generated from protobuf field: string percentage = 2 */ percentage: string; } /** * @generated from protobuf message injective_megavault_rpc.Pnl */ interface Pnl { /** * PnL value * * @generated from protobuf field: string value = 1 */ value: string; /** * PnL percentage * * @generated from protobuf field: string percentage = 2 */ percentage: string; /** * Total amount subscribed * * @generated from protobuf field: string total_amount_subscribed = 3 */ totalAmountSubscribed: string; /** * Total amount redeemed * * @generated from protobuf field: string total_amount_redeemed = 4 */ totalAmountRedeemed: string; /** * Current amount * * @generated from protobuf field: string current_amount = 5 */ currentAmount: string; } /** * @generated from protobuf message injective_megavault_rpc.VolatilityStats */ interface VolatilityStats { /** * 30-days volatility * * @generated from protobuf field: injective_megavault_rpc.Volatility thirty_days = 1 */ thirtyDays?: Volatility; } /** * @generated from protobuf message injective_megavault_rpc.Volatility */ interface Volatility { /** * Volatility value * * @generated from protobuf field: string value = 1 */ value: string; } /** * @generated from protobuf message injective_megavault_rpc.AprStats */ interface AprStats { /** * 30-day APR * * @generated from protobuf field: injective_megavault_rpc.Apr thirty_days = 1 */ thirtyDays?: Apr; } /** * @generated from protobuf message injective_megavault_rpc.Apr */ interface Apr { /** * APR value * * @generated from protobuf field: string value = 1 */ value: string; /** * Original LP price * * @generated from protobuf field: string original_lp_price = 2 */ originalLpPrice: string; /** * Current LP price * * @generated from protobuf field: string current_lp_price = 3 */ currentLpPrice: string; } /** * @generated from protobuf message injective_megavault_rpc.MaxDrawdown */ interface MaxDrawdown { /** * Max drawdown value * * @generated from protobuf field: string value = 1 */ value: string; /** * Latest PnL peak * * @generated from protobuf field: string latest_pn_l_peak = 2 */ latestPnLPeak: string; } /** * @generated from protobuf message injective_megavault_rpc.GetUserResponse */ interface GetUserResponse { /** * The user * * @generated from protobuf field: injective_megavault_rpc.User user = 1 */ user?: User; } /** * @generated from protobuf message injective_megavault_rpc.User */ interface User { /** * User address * * @generated from protobuf field: string address = 1 */ address: string; /** * Contract address * * @generated from protobuf field: string contract_address = 2 */ contractAddress: string; /** * User stats * * @generated from protobuf field: injective_megavault_rpc.UserStats stats = 3 */ stats?: UserStats; /** * Block height when the vault was created. * * @generated from protobuf field: sint64 created_height = 4 */ createdHeight: bigint; /** * CreatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 5 */ createdAt: bigint; /** * Block height when the vault was updated. * * @generated from protobuf field: sint64 updated_height = 6 */ updatedHeight: bigint; /** * UpdatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 7 */ updatedAt: bigint; } /** * @generated from protobuf message injective_megavault_rpc.UserStats */ interface UserStats { /** * Current subscribed amount in the vault * * @generated from protobuf field: string current_amount = 1 */ currentAmount: string; /** * Current amount of LP tokens in the vault * * @generated from protobuf field: string current_lp_amount = 2 */ currentLpAmount: string; /** * PnL statistics * * @generated from protobuf field: injective_megavault_rpc.PnlStats pnl = 3 */ pnl?: PnlStats; /** * Current deposisted value * * @generated from protobuf field: string deposited_value = 4 */ depositedValue: string; } /** * @generated from protobuf message injective_megavault_rpc.ListSubscriptionsResponse */ interface ListSubscriptionsResponse { /** * List of subscriptions * * @generated from protobuf field: repeated injective_megavault_rpc.Subscription subscriptions = 1 */ subscriptions: Subscription$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_megavault_rpc.Subscription */ interface Subscription$1 { /** * Contract address * * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * User * * @generated from protobuf field: string user = 2 */ user: string; /** * Index number of the subscription * * @generated from protobuf field: sint64 index = 3 */ index: bigint; /** * Amount of LP tokens given to the user for the subscription * * @generated from protobuf field: string lp_amount = 4 */ lpAmount: string; /** * Amount in USDT the user gave for the subscription * * @generated from protobuf field: string amount = 5 */ amount: string; /** * Status of the subscription * * @generated from protobuf field: string status = 6 */ status: string; /** * Block height when the subscription was created. * * @generated from protobuf field: sint64 created_height = 7 */ createdHeight: bigint; /** * CreatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 8 */ createdAt: bigint; /** * Block height when the subscription was executed. * * @generated from protobuf field: sint64 executed_height = 9 */ executedHeight: bigint; /** * ExecutedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 executed_at = 10 */ executedAt: bigint; /** * Subscription status log * * @generated from protobuf field: repeated injective_megavault_rpc.OperationStatusLogEntry log = 11 */ log: OperationStatusLogEntry$1[]; } /** * @generated from protobuf message injective_megavault_rpc.OperationStatusLogEntry */ interface OperationStatusLogEntry$1 { /** * Status of the subscription at this log entry * * @generated from protobuf field: string status = 1 */ status: string; /** * Transaction hash associated with this log entry * * @generated from protobuf field: string tx_hash = 2 */ txHash: string; /** * Block height when this log entry occurred * * @generated from protobuf field: sint64 block_height = 3 */ blockHeight: bigint; /** * Timestamp when this log entry occurred in UNIX millis. * * @generated from protobuf field: sint64 block_time = 4 */ blockTime: bigint; } /** * @generated from protobuf message injective_megavault_rpc.ListRedemptionsResponse */ interface ListRedemptionsResponse { /** * List of subscriptions * * @generated from protobuf field: repeated injective_megavault_rpc.Redemption redemptions = 1 */ redemptions: Redemption$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_megavault_rpc.Redemption */ interface Redemption$1 { /** * Contract address * * @generated from protobuf field: string contract_address = 1 */ contractAddress: string; /** * User * * @generated from protobuf field: string user = 2 */ user: string; /** * Index number of the redemption * * @generated from protobuf field: sint64 index = 3 */ index: bigint; /** * Amount of LP tokens given to the user for the redemption * * @generated from protobuf field: string lp_amount = 4 */ lpAmount: string; /** * Amount in USDT the user gave for the redemption * * @generated from protobuf field: string amount = 5 */ amount: string; /** * Status of the subscription * * @generated from protobuf field: string status = 6 */ status: string; /** * DueAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 due_at = 7 */ dueAt: bigint; /** * Block height when the subscription was created. * * @generated from protobuf field: sint64 created_height = 8 */ createdHeight: bigint; /** * CreatedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 9 */ createdAt: bigint; /** * Block height when the subscription was executed. * * @generated from protobuf field: sint64 executed_height = 10 */ executedHeight: bigint; /** * ExecutedAt timestamp in UNIX millis. * * @generated from protobuf field: sint64 executed_at = 11 */ executedAt: bigint; /** * Redemption status log * * @generated from protobuf field: repeated injective_megavault_rpc.OperationStatusLogEntry log = 12 */ log: OperationStatusLogEntry$1[]; } /** * @generated from protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsResponse */ interface GetOperatorRedemptionBucketsResponse { /** * The redemption buckets * * @generated from protobuf field: repeated injective_megavault_rpc.RedemptionBucket buckets = 1 */ buckets: RedemptionBucket[]; } /** * @generated from protobuf message injective_megavault_rpc.RedemptionBucket */ interface RedemptionBucket { /** * Bucket * * @generated from protobuf field: string bucket = 1 */ bucket: string; /** * Amount of LP tokens to redeem * * @generated from protobuf field: string lp_amount_to_redeem = 2 */ lpAmountToRedeem: string; /** * Amount needed to cover all the redemptions in the bucket * * @generated from protobuf field: string needed_amount = 3 */ neededAmount: string; /** * Amount of liquidity missing needed to cover all the redemptions in the bucket * * @generated from protobuf field: string missing_liquidity = 4 */ missingLiquidity: string; } /** * @generated from protobuf message injective_megavault_rpc.TvlHistoryResponse */ interface TvlHistoryResponse { /** * @generated from protobuf field: repeated injective_megavault_rpc.HistoricalTVL history = 1 */ history: HistoricalTVL[]; } /** * @generated from protobuf message injective_megavault_rpc.HistoricalTVL */ interface HistoricalTVL { /** * Time, Unix timestamp in milliseconds (UTC) * * @generated from protobuf field: sint64 t = 1 */ t: bigint; /** * TVL Value * * @generated from protobuf field: string v = 2 */ v: string; } /** * @generated from protobuf message injective_megavault_rpc.PnlHistoryResponse */ interface PnlHistoryResponse { /** * @generated from protobuf field: repeated injective_megavault_rpc.HistoricalPnL history = 1 */ history: HistoricalPnL[]; } /** * @generated from protobuf message injective_megavault_rpc.HistoricalPnL */ interface HistoricalPnL { /** * Time, Unix timestamp in milliseconds (UTC) * * @generated from protobuf field: sint64 t = 1 */ t: bigint; /** * PnL Value * * @generated from protobuf field: string v = 2 */ v: string; } /** * @generated MessageType for protobuf message injective_megavault_rpc.GetVaultResponse */ declare const GetVaultResponse = new GetVaultResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Vault */ declare const Vault = new Vault$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Operator */ declare const Operator = new Operator$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Incentives */ declare const Incentives = new Incentives$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.TargetApr */ declare const TargetApr = new TargetApr$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.VaultStats */ declare const VaultStats = new VaultStats$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.PnlStats */ declare const PnlStats = new PnlStats$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.UnrealizedPnl */ declare const UnrealizedPnl = new UnrealizedPnl$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Pnl */ declare const Pnl = new Pnl$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.VolatilityStats */ declare const VolatilityStats = new VolatilityStats$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Volatility */ declare const Volatility = new Volatility$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.AprStats */ declare const AprStats = new AprStats$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Apr */ declare const Apr = new Apr$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.MaxDrawdown */ declare const MaxDrawdown = new MaxDrawdown$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.GetUserResponse */ declare const GetUserResponse = new GetUserResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.User */ declare const User = new User$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.UserStats */ declare const UserStats = new UserStats$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.ListSubscriptionsResponse */ declare const ListSubscriptionsResponse = new ListSubscriptionsResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Subscription */ declare const Subscription$1 = new Subscription$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.OperationStatusLogEntry */ declare const OperationStatusLogEntry$1 = new OperationStatusLogEntry$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.ListRedemptionsResponse */ declare const ListRedemptionsResponse = new ListRedemptionsResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.Redemption */ declare const Redemption$1 = new Redemption$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsResponse */ declare const GetOperatorRedemptionBucketsResponse = new GetOperatorRedemptionBucketsResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.RedemptionBucket */ declare const RedemptionBucket = new RedemptionBucket$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.TvlHistoryResponse */ declare const TvlHistoryResponse = new TvlHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.HistoricalTVL */ declare const HistoricalTVL = new HistoricalTVL$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.PnlHistoryResponse */ declare const PnlHistoryResponse = new PnlHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_megavault_rpc.HistoricalPnL */ declare const HistoricalPnL = new HistoricalPnL$Type(); //#endregion //#region src/client/indexer/types/mega-vault.d.ts interface OperationStatusLogEntry { status: string; txHash: string; blockTime: string; blockHeight: string; } interface MegaVaultOperator { address: string; updatedAt: string; percentage: string; totalAmount: string; subaccountId: string; updatedHeight: string; totalLiquidAmount: string; } interface MegaVault { admin: string; lpDenom: string; createdAt: string; updatedAt: string; quoteDenom: string; contractName: string; createdHeight: string; updatedHeight: string; contractAddress: string; contractVersion: string; operators: MegaVaultOperator[]; stats: MegaVaultStats | undefined; incentives: MegaVaultIncentives | undefined; targetApr: MegaVaultTargetApr | undefined; } interface MegaVaultIncentives { amount: string; address: string; updatedAt: string; updatedHeight: string; } interface MegaVaultStats { currentAmount: string; currentLpPrice: string; currentLpAmount: string; totalRedeemedAmount: string; totalSubscribedAmount: string; apr: MegaVaultAprStats | undefined; pnl: MegaVaultPnlStats | undefined; currentAmountWithoutIncentives: string; maxDrawdown: MegaVaultMaxDrawdown | undefined; volatility: MegaVaultVolatilityStats | undefined; } interface MegaVaultPnlStats { allTime: MegaVaultPnl | undefined; unrealized: MegaVaultUnrealizedPnl | undefined; } interface MegaVaultUnrealizedPnl { value: string; percentage: string; } interface MegaVaultPnl { value: string; percentage: string; currentAmount: string; totalAmountRedeemed: string; totalAmountSubscribed: string; } interface MegaVaultMaxDrawdown { value: string; latestPnLPeak: string; } interface MegaVaultVolatilityStats { thirtyDays: MegaVaultVolatility | undefined; } interface MegaVaultVolatility { value: string; } interface MegaVaultAprStats { thirtyDays: MegaVaultApr | undefined; } interface MegaVaultApr { value: string; currentLpPrice: string; originalLpPrice: string; } interface MegaVaultUser { address: string; updatedAt: string; updatedHeight: string; contractAddress: string; stats: MegaVaultUserStats | undefined; } interface MegaVaultUserStats { currentAmount: string; depositedValue: string; currentLpAmount: string; pnl: MegaVaultPnlStats | undefined; } interface MegaVaultSubscription { user: string; index: string; amount: string; status: string; lpAmount: string; createdAt: string; executedAt: string; createdHeight: string; executedHeight: string; contractAddress: string; log: OperationStatusLogEntry[]; } interface MegaVaultRedemption { user: string; index: string; dueAt: string; amount: string; status: string; lpAmount: string; createdAt: string; executedAt: string; createdHeight: string; executedHeight: string; contractAddress: string; log: OperationStatusLogEntry[]; } interface MegaVaultOperatorRedemptionBucket { bucket: string; neededAmount: string; lpAmountToRedeem: string; missingLiquidity: string; } interface MegaVaultHistoricalTVL { t: string; v: string; } interface MegaVaultHistoricalPnL { t: string; v: string; } interface MegaVaultTargetApr { apr: string; updatedAt: string; updatedHeight: string; upperThreshold: string; lowerThreshold: string; } type MegaVaultRedemptionStatus = 'pending' | 'executed' | 'executing'; declare const MegaVaultRedemptionStatus: { readonly Pending: "pending"; readonly Executed: "executed"; readonly Executing: "executing"; }; type MegaVaultSubscriptionStatus = 'pending' | 'executed' | 'executing'; declare const MegaVaultSubscriptionStatus: { readonly Pending: "pending"; readonly Executed: "executed"; readonly Executing: "executing"; }; type GrpcMegaVaultApr = Apr; type GrpcMegaVaultPnl = Pnl; type GrpcMegaVaultAprStats = AprStats; type GrpcMegaVaultPnlStats = PnlStats; type GrpcMegaVaultOperator = Operator; type GrpcMegaVaultTargetApr = TargetApr; type GrpcMegaVaultUserStats = UserStats; type GrpcMegaVaultIncentives = Incentives; type GrpcMegaVaultVaultStats = VaultStats; type GrpcMegaVaultVolatility = Volatility; type GrpcMegaVaultRedemption = Redemption$1; type GrpcMegaVaultMaxDrawdown = MaxDrawdown; type GrpcMegaVaultSubscription = Subscription$1; type GrpcMegaVaultHistoricalPnL = HistoricalPnL; type GrpcMegaVaultHistoricalTVL = HistoricalTVL; type GrpcMegaVaultUnrealizedPnl = UnrealizedPnl; type GrpcMegaVaultVolatilityStats = VolatilityStats; type GrpcMegaVaultOperatorRedemptionBucket = RedemptionBucket; type GrpcMegaVaultOperationStatusLogEntry = OperationStatusLogEntry$1; //#endregion //#region src/client/indexer/types/incentives.d.ts interface IncentivesRound { id: number; name: string; endDate: number; startDate: number; campaigns: string[]; } interface IncentivesCampaign { id: number; name: string; rewards: Coin[]; inRound: number; marketId: string; isFunded: boolean; description: string; totalRewards: string; isFinalized: boolean; subaccountIdSuffix: string; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.d.ts /** * @generated from protobuf message injective_insurance_rpc.FundsResponse */ interface FundsResponse { /** * @generated from protobuf field: repeated injective_insurance_rpc.InsuranceFund funds = 1 */ funds: InsuranceFund$2[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_insurance_rpc.InsuranceFund */ interface InsuranceFund$2 { /** * Ticker of the derivative market. * * @generated from protobuf field: string market_ticker = 1 */ marketTicker: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * Coin denom used for the underwriting of the insurance fund. * * @generated from protobuf field: string deposit_denom = 3 */ depositDenom: string; /** * Pool token denom * * @generated from protobuf field: string pool_token_denom = 4 */ poolTokenDenom: string; /** * Redemption notice period duration in seconds. * * @generated from protobuf field: sint64 redemption_notice_period_duration = 5 */ redemptionNoticePeriodDuration: bigint; /** * @generated from protobuf field: string balance = 6 */ balance: string; /** * @generated from protobuf field: string total_share = 7 */ totalShare: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 8 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 9 */ oracleQuote: string; /** * Oracle Type * * @generated from protobuf field: string oracle_type = 10 */ oracleType: string; /** * Defines the expiry, if any * * @generated from protobuf field: sint64 expiry = 11 */ expiry: bigint; /** * Token metadata for the deposit asset * * @generated from protobuf field: injective_insurance_rpc.TokenMeta deposit_token_meta = 12 */ depositTokenMeta?: TokenMeta$2; } /** * @generated from protobuf message injective_insurance_rpc.TokenMeta */ interface TokenMeta$2 { /** * Token full name * * @generated from protobuf field: string name = 1 */ name: string; /** * Token contract address (native or not) * * @generated from protobuf field: string address = 2 */ address: string; /** * Token symbol short name * * @generated from protobuf field: string symbol = 3 */ symbol: string; /** * URL to the logo image * * @generated from protobuf field: string logo = 4 */ logo: string; /** * Token decimals * * @generated from protobuf field: sint32 decimals = 5 */ decimals: number; /** * Token metadata fetched timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; } /** * @generated from protobuf message injective_insurance_rpc.RedemptionsResponse */ interface RedemptionsResponse { /** * @generated from protobuf field: repeated injective_insurance_rpc.RedemptionSchedule redemption_schedules = 1 */ redemptionSchedules: RedemptionSchedule[]; } /** * @generated from protobuf message injective_insurance_rpc.RedemptionSchedule */ interface RedemptionSchedule { /** * Redemption ID. * * @generated from protobuf field: uint64 redemption_id = 1 */ redemptionId: bigint; /** * Status of the redemption. Either pending or disbursed. * * @generated from protobuf field: string status = 2 */ status: string; /** * Account address of the redemption owner * * @generated from protobuf field: string redeemer = 3 */ redeemer: string; /** * Claimable redemption time in seconds * * @generated from protobuf field: sint64 claimable_redemption_time = 4 */ claimableRedemptionTime: bigint; /** * Amount of pool tokens being redeemed. * * @generated from protobuf field: string redemption_amount = 5 */ redemptionAmount: string; /** * Pool token denom being redeemed. * * @generated from protobuf field: string redemption_denom = 6 */ redemptionDenom: string; /** * Redemption request time in unix milliseconds. * * @generated from protobuf field: sint64 requested_at = 7 */ requestedAt: bigint; /** * Amount of quote tokens disbursed * * @generated from protobuf field: string disbursed_amount = 8 */ disbursedAmount: string; /** * Denom of the quote tokens disbursed * * @generated from protobuf field: string disbursed_denom = 9 */ disbursedDenom: string; /** * Redemption disbursement time in unix milliseconds. * * @generated from protobuf field: sint64 disbursed_at = 10 */ disbursedAt: bigint; } /** * @generated MessageType for protobuf message injective_insurance_rpc.FundsResponse */ declare const FundsResponse = new FundsResponse$Type(); /** * @generated MessageType for protobuf message injective_insurance_rpc.InsuranceFund */ declare const InsuranceFund$2 = new InsuranceFund$Type(); /** * @generated MessageType for protobuf message injective_insurance_rpc.TokenMeta */ declare const TokenMeta$2 = new TokenMeta$Type(); /** * @generated MessageType for protobuf message injective_insurance_rpc.RedemptionsResponse */ declare const RedemptionsResponse = new RedemptionsResponse$Type(); /** * @generated MessageType for protobuf message injective_insurance_rpc.RedemptionSchedule */ declare const RedemptionSchedule = new RedemptionSchedule$Type(); //#endregion //#region src/client/indexer/types/insurance-funds.d.ts interface IndexerInsuranceFund { depositDenom: string; insurancePoolTokenDenom: string; redemptionNoticePeriodDuration?: number; depositTokenMeta?: any; balance: string; totalShare: string; marketId: string; marketTicker: string; oracleBase: string; oracleQuote: string; oracleType: OracleType; expiry: number; } interface InsuranceFundsResponse { next: string[]; insuranceFunds: IndexerInsuranceFund[]; } type RedemptionStatus = 'pending' | 'disbursed'; declare const RedemptionStatus: { readonly Pending: "pending"; readonly Disbursed: "disbursed"; }; interface Redemption { redemptionId: number; status: RedemptionStatus; redeemer: string; claimableRedemptionTime: number; redemptionAmount: string; redemptionDenom: string; requestedAt: number; disbursedAmount: string; disbursedDenom: string; disbursedAt: number; } interface InsuranceFundCreateParams { ticker: string; quoteDenom: string; oracleBase: string; oracleQuote: string; oracleType: OracleType; expiry?: number; } type GrpcIndexerInsuranceFund = InsuranceFund$2; type GrpcIndexerRedemptionSchedule = RedemptionSchedule; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_derivative_exchange_rpc_pb.d.ts /** * @generated from protobuf message injective_derivative_exchange_rpc.MarketsResponse */ interface MarketsResponse { /** * Derivative Markets list * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeMarketInfo markets = 1 */ markets: DerivativeMarketInfo[]; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativeMarketInfo */ interface DerivativeMarketInfo { /** * DerivativeMarket ID is crypto.Keccak256Hash([]byte((oracleType.String() + * ticker + quoteDenom + oracleBase + oracleQuote))) for perpetual markets and * crypto.Keccak256Hash([]byte((oracleType.String() + ticker + quoteDenom + * oracleBase + oracleQuote + strconv.Itoa(int(expiry))))) for expiry futures * markets * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The status of the market * * @generated from protobuf field: string market_status = 2 */ marketStatus: string; /** * A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote * asset. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * Oracle base currency * * @generated from protobuf field: string oracle_base = 4 */ oracleBase: string; /** * Oracle quote currency * * @generated from protobuf field: string oracle_quote = 5 */ oracleQuote: string; /** * Oracle Type * * @generated from protobuf field: string oracle_type = 6 */ oracleType: string; /** * OracleScaleFactor * * @generated from protobuf field: uint32 oracle_scale_factor = 7 */ oracleScaleFactor: number; /** * Defines the initial margin ratio of a derivative market * * @generated from protobuf field: string initial_margin_ratio = 8 */ initialMarginRatio: string; /** * Defines the maintenance margin ratio of a derivative market * * @generated from protobuf field: string maintenance_margin_ratio = 9 */ maintenanceMarginRatio: string; /** * Coin denom used for the quote asset. * * @generated from protobuf field: string quote_denom = 10 */ quoteDenom: string; /** * Token metadata for quote asset * * @generated from protobuf field: injective_derivative_exchange_rpc.TokenMeta quote_token_meta = 11 */ quoteTokenMeta?: TokenMeta$1; /** * Defines the fee percentage makers pay when trading (in quote asset) * * @generated from protobuf field: string maker_fee_rate = 12 */ makerFeeRate: string; /** * Defines the fee percentage takers pay when trading (in quote asset) * * @generated from protobuf field: string taker_fee_rate = 13 */ takerFeeRate: string; /** * Percentage of the transaction fee shared with the service provider * * @generated from protobuf field: string service_provider_fee = 14 */ serviceProviderFee: string; /** * True if the market is a perpetual swap market * * @generated from protobuf field: bool is_perpetual = 15 */ isPerpetual: boolean; /** * Defines the minimum required tick size for the order's price * * @generated from protobuf field: string min_price_tick_size = 16 */ minPriceTickSize: string; /** * Defines the minimum required tick size for the order's quantity * * @generated from protobuf field: string min_quantity_tick_size = 17 */ minQuantityTickSize: string; /** * @generated from protobuf field: injective_derivative_exchange_rpc.PerpetualMarketInfo perpetual_market_info = 18 */ perpetualMarketInfo?: PerpetualMarketInfo$2; /** * @generated from protobuf field: injective_derivative_exchange_rpc.PerpetualMarketFunding perpetual_market_funding = 19 */ perpetualMarketFunding?: PerpetualMarketFunding$2; /** * @generated from protobuf field: injective_derivative_exchange_rpc.ExpiryFuturesMarketInfo expiry_futures_market_info = 20 */ expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo$2; /** * Minimum notional value for the order * * @generated from protobuf field: string min_notional = 21 */ minNotional: string; /** * Defines the reduce margin ratio of a derivative market * * @generated from protobuf field: string reduce_margin_ratio = 22 */ reduceMarginRatio: string; /** * The open notional cap of the market, if any * * @generated from protobuf field: injective_derivative_exchange_rpc.OpenNotionalCap open_notional_cap = 23 */ openNotionalCap?: OpenNotionalCap$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.TokenMeta */ interface TokenMeta$1 { /** * Token full name * * @generated from protobuf field: string name = 1 */ name: string; /** * Token contract address (native or not) * * @generated from protobuf field: string address = 2 */ address: string; /** * Token symbol short name * * @generated from protobuf field: string symbol = 3 */ symbol: string; /** * URL to the logo image * * @generated from protobuf field: string logo = 4 */ logo: string; /** * Token decimals * * @generated from protobuf field: sint32 decimals = 5 */ decimals: number; /** * Token metadata fetched timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 6 */ updatedAt: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PerpetualMarketInfo */ interface PerpetualMarketInfo$2 { /** * Defines the default maximum absolute value of the hourly funding rate of the * perpetual market. * * @generated from protobuf field: string hourly_funding_rate_cap = 1 */ hourlyFundingRateCap: string; /** * Defines the hourly interest rate of the perpetual market. * * @generated from protobuf field: string hourly_interest_rate = 2 */ hourlyInterestRate: string; /** * Defines the next funding timestamp in seconds of a perpetual market in UNIX * seconds. * * @generated from protobuf field: sint64 next_funding_timestamp = 3 */ nextFundingTimestamp: bigint; /** * Defines the funding interval in seconds of a perpetual market in seconds. * * @generated from protobuf field: sint64 funding_interval = 4 */ fundingInterval: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PerpetualMarketFunding */ interface PerpetualMarketFunding$2 { /** * Defines the cumulative funding of a perpetual market. * * @generated from protobuf field: string cumulative_funding = 1 */ cumulativeFunding: string; /** * Defines defines the cumulative price for the current hour up to the last * timestamp. * * @generated from protobuf field: string cumulative_price = 2 */ cumulativePrice: string; /** * Defines the last funding timestamp in seconds of a perpetual market in UNIX * seconds. * * @generated from protobuf field: sint64 last_timestamp = 3 */ lastTimestamp: bigint; /** * Defines the last funding rate of a perpetual market. * * @generated from protobuf field: string last_funding_rate = 4 */ lastFundingRate: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.ExpiryFuturesMarketInfo */ interface ExpiryFuturesMarketInfo$2 { /** * Defines the expiration time for a time expiry futures market in UNIX seconds. * * @generated from protobuf field: sint64 expiration_timestamp = 1 */ expirationTimestamp: bigint; /** * Defines the settlement price for a time expiry futures market. * * @generated from protobuf field: string settlement_price = 2 */ settlementPrice: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OpenNotionalCap */ interface OpenNotionalCap$1 { /** * The open notional cap of the market * * @generated from protobuf field: string cap = 1 */ cap: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.MarketResponse */ interface MarketResponse { /** * Info about particular derivative market * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeMarketInfo market = 1 */ market?: DerivativeMarketInfo; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamMarketResponse */ interface StreamMarketResponse { /** * Info about particular derivative market * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeMarketInfo market = 1 */ market?: DerivativeMarketInfo; /** * Update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse */ interface BinaryOptionsMarketsResponse { /** * Binary Options Markets list * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.BinaryOptionsMarketInfo markets = 1 */ markets: BinaryOptionsMarketInfo[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketInfo */ interface BinaryOptionsMarketInfo { /** * Binary Options Market ID is crypto.Keccak256Hash([]byte((oracleType.String() * + ticker + quoteDenom + oracleSymbol + oracleProvider))) * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The status of the market * * @generated from protobuf field: string market_status = 2 */ marketStatus: string; /** * A name of the binary options market. * * @generated from protobuf field: string ticker = 3 */ ticker: string; /** * Oracle symbol * * @generated from protobuf field: string oracle_symbol = 4 */ oracleSymbol: string; /** * Oracle provider * * @generated from protobuf field: string oracle_provider = 5 */ oracleProvider: string; /** * Oracle Type * * @generated from protobuf field: string oracle_type = 6 */ oracleType: string; /** * OracleScaleFactor * * @generated from protobuf field: uint32 oracle_scale_factor = 7 */ oracleScaleFactor: number; /** * Defines the expiration time for the market in UNIX seconds. * * @generated from protobuf field: sint64 expiration_timestamp = 8 */ expirationTimestamp: bigint; /** * Defines the settlement time for the market in UNIX seconds. * * @generated from protobuf field: sint64 settlement_timestamp = 9 */ settlementTimestamp: bigint; /** * Coin denom used for the quote asset. * * @generated from protobuf field: string quote_denom = 10 */ quoteDenom: string; /** * Token metadata for quote asset * * @generated from protobuf field: injective_derivative_exchange_rpc.TokenMeta quote_token_meta = 11 */ quoteTokenMeta?: TokenMeta$1; /** * Defines the fee percentage makers pay when trading (in quote asset) * * @generated from protobuf field: string maker_fee_rate = 12 */ makerFeeRate: string; /** * Defines the fee percentage takers pay when trading (in quote asset) * * @generated from protobuf field: string taker_fee_rate = 13 */ takerFeeRate: string; /** * Percentage of the transaction fee shared with the service provider * * @generated from protobuf field: string service_provider_fee = 14 */ serviceProviderFee: string; /** * Defines the minimum required tick size for the order's price * * @generated from protobuf field: string min_price_tick_size = 15 */ minPriceTickSize: string; /** * Defines the minimum required tick size for the order's quantity * * @generated from protobuf field: string min_quantity_tick_size = 16 */ minQuantityTickSize: string; /** * Defines the settlement price of the market * * @generated from protobuf field: string settlement_price = 17 */ settlementPrice: string; /** * Defines the minimum notional value for the market * * @generated from protobuf field: string min_notional = 18 */ minNotional: string; } /** * Paging defines the structure for required params for handling pagination * * @generated from protobuf message injective_derivative_exchange_rpc.Paging */ interface Paging$1 { /** * total number of txs saved in database * * @generated from protobuf field: sint64 total = 1 */ total: bigint; /** * can be either block height or index num * * @generated from protobuf field: sint32 from = 2 */ from: number; /** * can be either block height or index num * * @generated from protobuf field: sint32 to = 3 */ to: number; /** * count entries by subaccount, serving some places on helix * * @generated from protobuf field: sint64 count_by_subaccount = 4 */ countBySubaccount: bigint; /** * array of tokens to navigate to the next pages * * @generated from protobuf field: repeated string next = 5 */ next: string[]; } /** * @generated from protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketResponse */ interface BinaryOptionsMarketResponse { /** * Info about particular derivative market * * @generated from protobuf field: injective_derivative_exchange_rpc.BinaryOptionsMarketInfo market = 1 */ market?: BinaryOptionsMarketInfo; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OrderbookV2Response */ interface OrderbookV2Response { /** * Orderbook of a particular derivative market * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2 orderbook = 1 */ orderbook?: DerivativeLimitOrderbookV2; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2 */ interface DerivativeLimitOrderbookV2 { /** * Array of price levels for buys * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.PriceLevel buys = 1 */ buys: PriceLevel$1[]; /** * Array of price levels for sells * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.PriceLevel sells = 2 */ sells: PriceLevel$1[]; /** * market orderbook sequence * * @generated from protobuf field: uint64 sequence = 3 */ sequence: bigint; /** * Last update timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; /** * Block height at which the orderbook was last updated. * * @generated from protobuf field: sint64 height = 5 */ height: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PriceLevel */ interface PriceLevel$1 { /** * Price number of the price level. * * @generated from protobuf field: string price = 1 */ price: string; /** * Quantity of the price level. * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * Price level last updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OrderbooksV2Response */ interface OrderbooksV2Response { /** * @generated from protobuf field: repeated injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2 orderbooks = 1 */ orderbooks: SingleDerivativeLimitOrderbookV2[]; } /** * @generated from protobuf message injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2 */ interface SingleDerivativeLimitOrderbookV2 { /** * market's ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * Orderbook of the market * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2 orderbook = 2 */ orderbook?: DerivativeLimitOrderbookV2; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamOrderbookV2Response */ interface StreamOrderbookV2Response { /** * Orderbook of a Derivative Market * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2 orderbook = 1 */ orderbook?: DerivativeLimitOrderbookV2; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; /** * MarketId of the market's orderbook * * @generated from protobuf field: string market_id = 4 */ marketId: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse */ interface StreamOrderbookUpdateResponse { /** * Orderbook level updates of a Derivative Market * * @generated from protobuf field: injective_derivative_exchange_rpc.OrderbookLevelUpdates orderbook_level_updates = 1 */ orderbookLevelUpdates?: OrderbookLevelUpdates; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; /** * MarketId of the market's orderbook * * @generated from protobuf field: string market_id = 4 */ marketId: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OrderbookLevelUpdates */ interface OrderbookLevelUpdates { /** * market's ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * orderbook update sequence * * @generated from protobuf field: uint64 sequence = 2 */ sequence: bigint; /** * buy levels * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.PriceLevelUpdate buys = 3 */ buys: PriceLevelUpdate[]; /** * sell levels * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.PriceLevelUpdate sells = 4 */ sells: PriceLevelUpdate[]; /** * updates timestamp * * @generated from protobuf field: sint64 updated_at = 5 */ updatedAt: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PriceLevelUpdate */ interface PriceLevelUpdate { /** * Price number of the price level. * * @generated from protobuf field: string price = 1 */ price: string; /** * Quantity of the price level. * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * Price level status. * * @generated from protobuf field: bool is_active = 3 */ isActive: boolean; /** * Price level last updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OrdersResponse */ interface OrdersResponse$1 { /** * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeLimitOrder orders = 1 */ orders: DerivativeLimitOrder$3[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativeLimitOrder */ interface DerivativeLimitOrder$3 { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The side of the order * * @generated from protobuf field: string order_side = 2 */ orderSide: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * True if the order is a reduce-only order * * @generated from protobuf field: bool is_reduce_only = 5 */ isReduceOnly: boolean; /** * Margin of the order * * @generated from protobuf field: string margin = 6 */ margin: string; /** * Price of the order * * @generated from protobuf field: string price = 7 */ price: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 8 */ quantity: string; /** * The amount of the quantity remaining unfilled * * @generated from protobuf field: string unfilled_quantity = 9 */ unfilledQuantity: string; /** * Trigger price is the trigger price used by stop/take orders * * @generated from protobuf field: string trigger_price = 10 */ triggerPrice: string; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 11 */ feeRecipient: string; /** * Order state * * @generated from protobuf field: string state = 12 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 13 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 14 */ updatedAt: bigint; /** * Order number of subaccount * * @generated from protobuf field: sint64 order_number = 15 */ orderNumber: bigint; /** * Order type * * @generated from protobuf field: string order_type = 16 */ orderType: string; /** * Order type * * @generated from protobuf field: bool is_conditional = 17 */ isConditional: boolean; /** * Trigger timestamp, only exists for conditional orders * * @generated from protobuf field: uint64 trigger_at = 18 */ triggerAt: bigint; /** * OrderHash of order that is triggered by this conditional order * * @generated from protobuf field: string placed_order_hash = 19 */ placedOrderHash: string; /** * Execution type of conditional order * * @generated from protobuf field: string execution_type = 20 */ executionType: string; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 21 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 22 */ cid: string; /** * Account address that owns the subaccount which placed this order * * @generated from protobuf field: string account_address = 23 */ accountAddress: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PositionsResponse */ interface PositionsResponse$1 { /** * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativePosition positions = 1 */ positions: DerivativePosition$2[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativePosition */ interface DerivativePosition$2 { /** * Ticker of the derivative market * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * Direction of the position * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Quantity of the position * * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * Price of the position * * @generated from protobuf field: string entry_price = 6 */ entryPrice: string; /** * Margin of the position * * @generated from protobuf field: string margin = 7 */ margin: string; /** * LiquidationPrice of the position * * @generated from protobuf field: string liquidation_price = 8 */ liquidationPrice: string; /** * MarkPrice of the position * * @generated from protobuf field: string mark_price = 9 */ markPrice: string; /** * Aggregate Quantity of the Reduce Only orders associated with the position * * @generated from protobuf field: string aggregate_reduce_only_quantity = 11 */ aggregateReduceOnlyQuantity: string; /** * Position updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 12 */ updatedAt: bigint; /** * Position created timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 13 */ createdAt: bigint; /** * Last funding fees since position opened * * @generated from protobuf field: string funding_last = 14 */ fundingLast: string; /** * Net funding fees since position opened * * @generated from protobuf field: string funding_sum = 15 */ fundingSum: string; /** * Cumulative funding entry of the position * * @generated from protobuf field: string cumulative_funding_entry = 16 */ cumulativeFundingEntry: string; /** * Effective cumulative funding entry of the position * * @generated from protobuf field: string effective_cumulative_funding_entry = 17 */ effectiveCumulativeFundingEntry: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PositionsV2Response */ interface PositionsV2Response { /** * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativePositionV2 positions = 1 */ positions: DerivativePositionV2$1[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativePositionV2 */ interface DerivativePositionV2$1 { /** * Ticker of the derivative market * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * Direction of the position * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Quantity of the position * * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * Price of the position * * @generated from protobuf field: string entry_price = 6 */ entryPrice: string; /** * Margin of the position * * @generated from protobuf field: string margin = 7 */ margin: string; /** * LiquidationPrice of the position * * @generated from protobuf field: string liquidation_price = 8 */ liquidationPrice: string; /** * MarkPrice of the position * * @generated from protobuf field: string mark_price = 9 */ markPrice: string; /** * Position updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 11 */ updatedAt: bigint; /** * Market quote denom * * @generated from protobuf field: string denom = 12 */ denom: string; /** * Last funding fees since position opened * * @generated from protobuf field: string funding_last = 13 */ fundingLast: string; /** * Net funding fees since position opened * * @generated from protobuf field: string funding_sum = 14 */ fundingSum: string; /** * Cumulative funding entry of the position * * @generated from protobuf field: string cumulative_funding_entry = 15 */ cumulativeFundingEntry: string; /** * Effective cumulative funding entry of the position * * @generated from protobuf field: string effective_cumulative_funding_entry = 16 */ effectiveCumulativeFundingEntry: string; /** * Unrealized profit and loss of the position (only present when requested with * with_upnl=true) * * @generated from protobuf field: string upnl = 17 */ upnl: string; /** * Leverage at the time the position was opened * * @generated from protobuf field: string initial_leverage = 18 */ initialLeverage: string; /** * Margin at the time the position was opened, in USD * * @generated from protobuf field: string initial_margin = 19 */ initialMargin: string; /** * Entry price at the time the position was opened, in USD * * @generated from protobuf field: string initial_entry_price = 20 */ initialEntryPrice: string; /** * Quantity at the time the position was opened * * @generated from protobuf field: string initial_quantity = 21 */ initialQuantity: string; /** * Initial margin plus any subsequent margin increases or decreases, excluding * accrued funding. Note that funding is folded into this value by the chain * whenever the position is modified. * * @generated from protobuf field: string cumulative_margin = 22 */ cumulativeMargin: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.FundingPaymentsResponse */ interface FundingPaymentsResponse$1 { /** * List of funding payments * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.FundingPayment payments = 1 */ payments: FundingPayment$2[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.FundingPayment */ interface FundingPayment$2 { /** * Derivative Market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * Amount of the funding payment * * @generated from protobuf field: string amount = 3 */ amount: string; /** * Timestamp of funding payment in UNIX millis * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.FundingRatesResponse */ interface FundingRatesResponse { /** * List of funding rates * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.FundingRate funding_rates = 1 */ fundingRates: FundingRate$1[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.FundingRate */ interface FundingRate$1 { /** * Derivative Market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * Value of the funding rate * * @generated from protobuf field: string rate = 2 */ rate: string; /** * Timestamp of funding rate in UNIX millis * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamPositionsResponse */ interface StreamPositionsResponse$1 { /** * Updated derivative Position * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativePosition position = 1 */ position?: DerivativePosition$2; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamPositionsV2Response */ interface StreamPositionsV2Response { /** * Updated derivative Position * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativePositionV2 position = 1 */ position?: DerivativePositionV2$1; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; /** * Position update type * * @generated from protobuf field: string operation_type = 3 */ operationType: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamOrdersResponse */ interface StreamOrdersResponse$1 { /** * Updated market order * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeLimitOrder order = 1 */ order?: DerivativeLimitOrder$3; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.TradesResponse */ interface TradesResponse$1 { /** * Trades of a Derivative Market * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeTrade trades = 1 */ trades: DerivativeTrade$1[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativeTrade */ interface DerivativeTrade$1 { /** * Order hash. * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The subaccountId that executed the trade * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * The ID of the market that this trade is in * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The execution type of the trade * * @generated from protobuf field: string trade_execution_type = 4 */ tradeExecutionType: string; /** * True if the trade is a liquidation * * @generated from protobuf field: bool is_liquidation = 5 */ isLiquidation: boolean; /** * Position Delta from the trade * * @generated from protobuf field: injective_derivative_exchange_rpc.PositionDelta position_delta = 6 */ positionDelta?: PositionDelta$2; /** * The payout associated with the trade * * @generated from protobuf field: string payout = 7 */ payout: string; /** * The fee associated with the trade * * @generated from protobuf field: string fee = 8 */ fee: string; /** * Timestamp of trade execution in UNIX millis * * @generated from protobuf field: sint64 executed_at = 9 */ executedAt: bigint; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 10 */ feeRecipient: string; /** * A unique string that helps differentiate between trades * * @generated from protobuf field: string trade_id = 11 */ tradeId: string; /** * Trade's execution side, maker,taker,n/a (n/a = not applicable) * * @generated from protobuf field: string execution_side = 12 */ executionSide: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 13 */ cid: string; /** * Profit and loss of the trade * * @generated from protobuf field: string pnl = 14 */ pnl: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.PositionDelta */ interface PositionDelta$2 { /** * The direction the trade * * @generated from protobuf field: string trade_direction = 1 */ tradeDirection: string; /** * Execution Price of the trade. * * @generated from protobuf field: string execution_price = 2 */ executionPrice: string; /** * Execution Quantity of the trade. * * @generated from protobuf field: string execution_quantity = 3 */ executionQuantity: string; /** * Execution Margin of the trade. * * @generated from protobuf field: string execution_margin = 4 */ executionMargin: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamTradesResponse */ interface StreamTradesResponse$1 { /** * New derivative market trade * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeTrade trade = 1 */ trade?: DerivativeTrade$1; /** * Executed trades update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_derivative_exchange_rpc.SubaccountTradesListResponse */ interface SubaccountTradesListResponse { /** * List of derivative market trades * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeTrade trades = 1 */ trades: DerivativeTrade$1[]; } /** * @generated from protobuf message injective_derivative_exchange_rpc.OrdersHistoryResponse */ interface OrdersHistoryResponse$1 { /** * List of historical derivative orders * * @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeOrderHistory orders = 1 */ orders: DerivativeOrderHistory$1[]; /** * @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2 */ paging?: Paging$1; } /** * @generated from protobuf message injective_derivative_exchange_rpc.DerivativeOrderHistory */ interface DerivativeOrderHistory$1 { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * Spot Market ID is keccak265(baseDenom + quoteDenom) * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * active state of the order * * @generated from protobuf field: bool is_active = 3 */ isActive: boolean; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * The execution type * * @generated from protobuf field: string execution_type = 5 */ executionType: string; /** * The side of the order * * @generated from protobuf field: string order_type = 6 */ orderType: string; /** * Price of the order * * @generated from protobuf field: string price = 7 */ price: string; /** * Trigger price * * @generated from protobuf field: string trigger_price = 8 */ triggerPrice: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 9 */ quantity: string; /** * Filled amount * * @generated from protobuf field: string filled_quantity = 10 */ filledQuantity: string; /** * Order state * * @generated from protobuf field: string state = 11 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 13 */ updatedAt: bigint; /** * True if an order is reduce only * * @generated from protobuf field: bool is_reduce_only = 14 */ isReduceOnly: boolean; /** * Order direction (order side) * * @generated from protobuf field: string direction = 15 */ direction: string; /** * True if this is conditional order, otherwise false * * @generated from protobuf field: bool is_conditional = 16 */ isConditional: boolean; /** * Trigger timestamp in unix milli * * @generated from protobuf field: uint64 trigger_at = 17 */ triggerAt: bigint; /** * Order hash placed when this triggers * * @generated from protobuf field: string placed_order_hash = 18 */ placedOrderHash: string; /** * Order's margin * * @generated from protobuf field: string margin = 19 */ margin: string; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 20 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 21 */ cid: string; } /** * @generated from protobuf message injective_derivative_exchange_rpc.StreamOrdersHistoryResponse */ interface StreamOrdersHistoryResponse$1 { /** * Updated order * * @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeOrderHistory order = 1 */ order?: DerivativeOrderHistory$1; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.MarketsResponse */ declare const MarketsResponse = new MarketsResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeMarketInfo */ declare const DerivativeMarketInfo = new DerivativeMarketInfo$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.TokenMeta */ declare const TokenMeta$1 = new TokenMeta$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PerpetualMarketInfo */ declare const PerpetualMarketInfo$2 = new PerpetualMarketInfo$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PerpetualMarketFunding */ declare const PerpetualMarketFunding$2 = new PerpetualMarketFunding$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.ExpiryFuturesMarketInfo */ declare const ExpiryFuturesMarketInfo$2 = new ExpiryFuturesMarketInfo$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OpenNotionalCap */ declare const OpenNotionalCap$1 = new OpenNotionalCap$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.MarketResponse */ declare const MarketResponse = new MarketResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamMarketResponse */ declare const StreamMarketResponse = new StreamMarketResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse */ declare const BinaryOptionsMarketsResponse = new BinaryOptionsMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketInfo */ declare const BinaryOptionsMarketInfo = new BinaryOptionsMarketInfo$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.Paging */ declare const Paging$1 = new Paging$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.BinaryOptionsMarketResponse */ declare const BinaryOptionsMarketResponse = new BinaryOptionsMarketResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OrderbookV2Response */ declare const OrderbookV2Response = new OrderbookV2Response$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2 */ declare const DerivativeLimitOrderbookV2 = new DerivativeLimitOrderbookV2$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PriceLevel */ declare const PriceLevel$1 = new PriceLevel$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OrderbooksV2Response */ declare const OrderbooksV2Response = new OrderbooksV2Response$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2 */ declare const SingleDerivativeLimitOrderbookV2 = new SingleDerivativeLimitOrderbookV2$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamOrderbookV2Response */ declare const StreamOrderbookV2Response = new StreamOrderbookV2Response$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse */ declare const StreamOrderbookUpdateResponse = new StreamOrderbookUpdateResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OrderbookLevelUpdates */ declare const OrderbookLevelUpdates = new OrderbookLevelUpdates$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PriceLevelUpdate */ declare const PriceLevelUpdate = new PriceLevelUpdate$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OrdersResponse */ declare const OrdersResponse$1 = new OrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeLimitOrder */ declare const DerivativeLimitOrder$3 = new DerivativeLimitOrder$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PositionsResponse */ declare const PositionsResponse$1 = new PositionsResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativePosition */ declare const DerivativePosition$2 = new DerivativePosition$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PositionsV2Response */ declare const PositionsV2Response = new PositionsV2Response$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativePositionV2 */ declare const DerivativePositionV2$1 = new DerivativePositionV2$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.FundingPaymentsResponse */ declare const FundingPaymentsResponse$1 = new FundingPaymentsResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.FundingPayment */ declare const FundingPayment$2 = new FundingPayment$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.FundingRatesResponse */ declare const FundingRatesResponse = new FundingRatesResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.FundingRate */ declare const FundingRate$1 = new FundingRate$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamPositionsResponse */ declare const StreamPositionsResponse$1 = new StreamPositionsResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamPositionsV2Response */ declare const StreamPositionsV2Response = new StreamPositionsV2Response$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamOrdersResponse */ declare const StreamOrdersResponse$1 = new StreamOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.TradesResponse */ declare const TradesResponse$1 = new TradesResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeTrade */ declare const DerivativeTrade$1 = new DerivativeTrade$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.PositionDelta */ declare const PositionDelta$2 = new PositionDelta$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamTradesResponse */ declare const StreamTradesResponse$1 = new StreamTradesResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.SubaccountTradesListResponse */ declare const SubaccountTradesListResponse = new SubaccountTradesListResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.OrdersHistoryResponse */ declare const OrdersHistoryResponse$1 = new OrdersHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeOrderHistory */ declare const DerivativeOrderHistory$1 = new DerivativeOrderHistory$Type(); /** * @generated MessageType for protobuf message injective_derivative_exchange_rpc.StreamOrdersHistoryResponse */ declare const StreamOrdersHistoryResponse$1 = new StreamOrdersHistoryResponse$Type(); //#endregion //#region src/client/indexer/types/derivatives.d.ts interface PositionDelta { executionPrice: string; executionMargin: string; executionQuantity: string; tradeDirection: TradeDirection; } interface Position$1 { margin: string; ticker: string; marketId: string; quantity: string; markPrice: string; updatedAt: number; entryPrice: string; subaccountId: string; liquidationPrice: string; direction: TradeDirection; aggregateReduceOnlyQuantity: string; } interface PositionV2 extends Omit { upnl: string; denom: string; fundingSum: string; fundingLast: string; initialMargin: string; cumulativeMargin: string; initialQuantity: string; initialLeverage: string; initialEntryPrice: string; cumulativeFundingEntry: string; effectiveCumulativeFundingEntry: string; } interface PerpetualMarketInfo$1 { fundingInterval: number; hourlyInterestRate: string; hourlyFundingRateCap: string; nextFundingTimestamp: number; } interface PerpetualMarketFunding$1 { lastTimestamp: number; cumulativePrice: string; cumulativeFunding: string; } interface ExpiryFuturesMarketInfo$1 { settlementPrice: string; expirationTimestamp: number; } interface OpenNotionalCap { cap: string; } interface BaseDerivativeMarket { ticker: string; marketId: string; oracleType: string; quoteDenom: string; minNotional: number; marketStatus: string; makerFeeRate: string; takerFeeRate: string; minPriceTickSize: number; serviceProviderFee: string; minQuantityTickSize: number; quoteToken: TokenMeta | undefined; } interface PerpetualMarket extends BaseDerivativeMarket { oracleBase: string; oracleQuote: string; isPerpetual: boolean; reduceMarginRatio: string; oracleScaleFactor: number; initialMarginRatio: string; maintenanceMarginRatio: string; openNotionalCap?: OpenNotionalCap; perpetualMarketInfo?: PerpetualMarketInfo$1; perpetualMarketFunding?: PerpetualMarketFunding$1; } interface ExpiryFuturesMarket extends BaseDerivativeMarket { oracleBase: string; oracleQuote: string; isPerpetual: boolean; reduceMarginRatio: string; oracleScaleFactor: number; initialMarginRatio: string; maintenanceMarginRatio: string; expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo$1; openNotionalCap?: OpenNotionalCap; } interface BinaryOptionsMarket$1 extends Omit { minNotional: number; oracleSymbol: string; oracleProvider: string; settlementPrice: string; minPriceTickSize: number; oracleScaleFactor: number; serviceProviderFee: string; expirationTimestamp: number; settlementTimestamp: number; minQuantityTickSize: number; } type DerivativeMarket = PerpetualMarket | ExpiryFuturesMarket | BinaryOptionsMarket$1; type DerivativeMarketWithoutBinaryOptions = PerpetualMarket | ExpiryFuturesMarket; interface DerivativeLimitOrder$1 { cid: string; price: string; margin: string; marketId: string; quantity: string; orderHash: string; state: OrderState; createdAt: number; updatedAt: number; orderType: string; triggerAt: number; orderNumber: number; orderSide: OrderSide$1; subaccountId: string; triggerPrice: string; feeRecipient: string; isReduceOnly: boolean; executionType: string; isConditional: boolean; accountAddress: string; placedOrderHash: string; unfilledQuantity: string; } interface DerivativeOrderHistory { cid: string; price: string; state: string; margin: string; marketId: string; quantity: string; orderHash: string; isActive: boolean; orderType: string; createdAt: number; updatedAt: number; direction: string; triggerAt: number; subaccountId: string; triggerPrice: string; executionType: string; isReduceOnly: boolean; filledQuantity: string; isConditional: boolean; placedOrderHash: string; } interface DerivativeTrade extends PositionDelta { cid: string; fee: string; pnl: string; payout: string; tradeId: string; marketId: string; orderHash: string; executedAt: number; subaccountId: string; feeRecipient: string; isLiquidation: boolean; tradeDirection: TradeDirection; executionSide: TradeExecutionSide; tradeExecutionType: TradeExecutionType; } interface DerivativeLimitOrderParams { price: string; margin: string; quantity: string; feeRecipient: string; triggerPrice?: string; orderType: GrpcOrderType; } interface DerivativeOrderCancelParams { orderHash: string; } interface BatchDerivativeOrderCancelParams { marketId: string; orderHash: string; subaccountId: string; } interface FundingPayment { amount: string; marketId: string; timestamp: number; subaccountId: string; } interface FundingRate { rate: string; marketId: string; timestamp: number; } type GrpcFundingRate = FundingRate$1; type GrpcPositionDelta = PositionDelta$2; type GrpcFundingPayment = FundingPayment$2; type GrpcDerivativeTrade = DerivativeTrade$1; type GrpcDerivativePosition = DerivativePosition$2; type GrpcDerivativePositionV2 = DerivativePositionV2$1; type GrpcPerpetualMarketInfo = PerpetualMarketInfo$2; type GrpcDerivativeMarketInfo = DerivativeMarketInfo; type GrpcDerivativeLimitOrder = DerivativeLimitOrder$3; type GrpcPerpetualMarketFunding = PerpetualMarketFunding$2; type GrpcExpiryFuturesMarketInfo = ExpiryFuturesMarketInfo$2; type GrpcBinaryOptionsMarketInfo = BinaryOptionsMarketInfo; type GrpcDerivativeOrderHistory = DerivativeOrderHistory$1; //#endregion //#region src/client/indexer/types/explorer-rest.d.ts interface ExplorerApiResponse { data: T; } interface ExplorerApiResponseWithPagination { data: { paging: Paging; data: T; }; } interface TransactionFromExplorerApiResponse { id: string; block_number: number; block_timestamp: string; signatures: Signature[]; tx_type: string; hash: string; code: number; memo?: string; data?: Uint8Array | string; info: string; gas_wanted: number; gas_used: number; gas_fee: { amount: { amount: string; denom: string; }[]; gas_limit: number; payer: string; granter: string; }; events: Array; codespace: string; logs: EventLog[]; messages: Array<{ value: any; type: string; }>; error_log?: string; claim_id?: number[]; } interface BlockFromExplorerApiResponse { height: number; proposer: string; moniker: string; block_hash: string; parent_hash: string; num_pre_commits: number; num_txs: number; total_txs: number; timestamp: string; txs: TransactionFromExplorerApiResponse[]; } interface ExplorerTransactionApiResponse { paging: any; data: TransactionFromExplorerApiResponse[]; } interface ExplorerBlockApiResponse { paging: any; data: BlockFromExplorerApiResponse[]; } interface ValidatorUptimeFromExplorerApiResponse { block_number: number; status: ValidatorUptimeStatus; } interface WasmCodeExplorerApiResponse { checksum: CosmWasmChecksum; code_id: number; code_schema: string; code_view: string; contract_type: string; created_at: number; creator: string; instantiates: number; permission: CosmWasmPermission; tx_hash: string; version: string; proposal_id?: number; } interface ContractExplorerApiResponse { label: string; address: string; tx_hash: string; creator: string; executes: number; instantiated_at: number; init_message: string; last_executed_at: number; funds?: number; code_id: number; admin?: string; current_migrate_message: string; cw20_metadata?: { token_info?: { name: string; symbol: string; decimals: number; total_supply: string; }; }; } interface ContractTransactionExplorerApiResponse { hash: string; code: number; block_number: number; data: string; memo: string; tx_number: number; error_log: string; block_unix_timestamp: number; gas_fee: { amount: [{ amount: number; }]; }; messages: [{ type: string; value: { sender: string; contract: string; msg: Record; funds: string; }; }]; logs: EventLog[]; signatures: Signature[]; } interface CW20BalanceExplorerApiResponse { contract_address: string; account: string; balance: string; updated_at: number; cw20_metadata: { token_info: { name: string; symbol: string; decimals: number; total_supply: string; }; marketing_info: { project?: string; description?: string; logo?: string; marketing?: string; }; }; } interface BankTransferFromExplorerApiResponse { sender: string; recipient: string; amounts: Coin[]; block_number: number; block_timestamp: string; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.d.ts /** * @generated from protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse */ interface OrdersHistoryResponse { /** * List of TC order history entries * * @generated from protobuf field: repeated injective_tc_derivatives_rpc.TCDerivativeOrderHistoryType orders = 1 */ orders: TCDerivativeOrderHistoryType[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * TC order history combining settlement request with on-chain order data * * @generated from protobuf message injective_tc_derivatives_rpc.TCDerivativeOrderHistoryType */ interface TCDerivativeOrderHistoryType { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * Derivative Market ID is keccak265(baseDenom + quoteDenom) * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * active state of the order * * @generated from protobuf field: bool is_active = 3 */ isActive: boolean; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * The execution type * * @generated from protobuf field: string execution_type = 5 */ executionType: string; /** * The side of the order * * @generated from protobuf field: string order_type = 6 */ orderType: string; /** * Price of the order * * @generated from protobuf field: string price = 7 */ price: string; /** * Trigger price * * @generated from protobuf field: string trigger_price = 8 */ triggerPrice: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 9 */ quantity: string; /** * Filled amount * * @generated from protobuf field: string filled_quantity = 10 */ filledQuantity: string; /** * Order state * * @generated from protobuf field: string state = 11 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 12 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 13 */ updatedAt: bigint; /** * True if an order is reduce only * * @generated from protobuf field: bool is_reduce_only = 14 */ isReduceOnly: boolean; /** * Order direction (order side) * * @generated from protobuf field: string direction = 15 */ direction: string; /** * True if this is conditional order, otherwise false * * @generated from protobuf field: bool is_conditional = 16 */ isConditional: boolean; /** * Trigger timestamp in unix milli * * @generated from protobuf field: uint64 trigger_at = 17 */ triggerAt: bigint; /** * Order hash placed when this triggers * * @generated from protobuf field: string placed_order_hash = 18 */ placedOrderHash: string; /** * Order's margin * * @generated from protobuf field: string margin = 19 */ margin: string; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 20 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 21 */ cid: string; /** * Account address that owns the subaccount which placed this order * * @generated from protobuf field: string account_address = 22 */ accountAddress: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersHistoryResponse */ interface StreamOrdersHistoryResponse { /** * Updated TC order history entry * * @generated from protobuf field: injective_tc_derivatives_rpc.TCDerivativeOrderHistoryType order = 1 */ order?: TCDerivativeOrderHistoryType; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_tc_derivatives_rpc.OrdersResponse */ interface OrdersResponse { /** * List of derivative limit orders * * @generated from protobuf field: repeated injective_tc_derivatives_rpc.DerivativeLimitOrder orders = 1 */ orders: DerivativeLimitOrder$2[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_tc_derivatives_rpc.DerivativeLimitOrder */ interface DerivativeLimitOrder$2 { /** * Hash of the order * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The side of the order * * @generated from protobuf field: string order_side = 2 */ orderSide: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The subaccountId that this order belongs to * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * True if the order is a reduce-only order * * @generated from protobuf field: bool is_reduce_only = 5 */ isReduceOnly: boolean; /** * Margin of the order * * @generated from protobuf field: string margin = 6 */ margin: string; /** * Price of the order * * @generated from protobuf field: string price = 7 */ price: string; /** * Quantity of the order * * @generated from protobuf field: string quantity = 8 */ quantity: string; /** * The amount of the quantity remaining unfilled * * @generated from protobuf field: string unfilled_quantity = 9 */ unfilledQuantity: string; /** * Trigger price is the trigger price used by stop/take orders * * @generated from protobuf field: string trigger_price = 10 */ triggerPrice: string; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 11 */ feeRecipient: string; /** * Order state * * @generated from protobuf field: string state = 12 */ state: string; /** * Order committed timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 13 */ createdAt: bigint; /** * Order updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 14 */ updatedAt: bigint; /** * Order number of subaccount * * @generated from protobuf field: sint64 order_number = 15 */ orderNumber: bigint; /** * Order type * * @generated from protobuf field: string order_type = 16 */ orderType: string; /** * Order type * * @generated from protobuf field: bool is_conditional = 17 */ isConditional: boolean; /** * Trigger timestamp, only exists for conditional orders * * @generated from protobuf field: uint64 trigger_at = 18 */ triggerAt: bigint; /** * OrderHash of order that is triggered by this conditional order * * @generated from protobuf field: string placed_order_hash = 19 */ placedOrderHash: string; /** * Execution type of conditional order * * @generated from protobuf field: string execution_type = 20 */ executionType: string; /** * Transaction Hash where order is created. Not all orders have this field * * @generated from protobuf field: string tx_hash = 21 */ txHash: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 22 */ cid: string; /** * Account address that owns the subaccount which placed this order * * @generated from protobuf field: string account_address = 23 */ accountAddress: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersResponse */ interface StreamOrdersResponse { /** * Updated derivative limit order * * @generated from protobuf field: injective_tc_derivatives_rpc.DerivativeLimitOrder order = 1 */ order?: DerivativeLimitOrder$2; /** * Order update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_tc_derivatives_rpc.TradesResponse */ interface TradesResponse { /** * Trades of TC Derivative Markets * * @generated from protobuf field: repeated injective_tc_derivatives_rpc.TCDerivativeTrade trades = 1 */ trades: TCDerivativeTrade[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * TC derivative trade including position metadata fields * * @generated from protobuf message injective_tc_derivatives_rpc.TCDerivativeTrade */ interface TCDerivativeTrade { /** * Order hash. * * @generated from protobuf field: string order_hash = 1 */ orderHash: string; /** * The subaccountId that executed the trade * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * The ID of the market that this trade is in * * @generated from protobuf field: string market_id = 3 */ marketId: string; /** * The execution type of the trade * * @generated from protobuf field: string trade_execution_type = 4 */ tradeExecutionType: string; /** * True if the trade is a liquidation * * @generated from protobuf field: bool is_liquidation = 5 */ isLiquidation: boolean; /** * Position Delta from the trade * * @generated from protobuf field: injective_tc_derivatives_rpc.PositionDelta position_delta = 6 */ positionDelta?: PositionDelta$1; /** * The payout associated with the trade * * @generated from protobuf field: string payout = 7 */ payout: string; /** * The fee associated with the trade * * @generated from protobuf field: string fee = 8 */ fee: string; /** * Timestamp of trade execution in UNIX millis * * @generated from protobuf field: sint64 executed_at = 9 */ executedAt: bigint; /** * Fee recipient address * * @generated from protobuf field: string fee_recipient = 10 */ feeRecipient: string; /** * A unique string that helps differentiate between trades * * @generated from protobuf field: string trade_id = 11 */ tradeId: string; /** * Trade's execution side, maker,taker,n/a (n/a = not applicable) * * @generated from protobuf field: string execution_side = 12 */ executionSide: string; /** * Custom client order ID * * @generated from protobuf field: string cid = 13 */ cid: string; /** * Profit and loss of the trade * * @generated from protobuf field: string pnl = 14 */ pnl: string; /** * True if the position associated with this trade is long * * @generated from protobuf field: bool position_is_long = 15 */ positionIsLong: boolean; /** * Timestamp when the position was opened in UNIX millis * * @generated from protobuf field: sint64 position_opened_at = 16 */ positionOpenedAt: bigint; /** * Entry price of the position associated with this trade * * @generated from protobuf field: string position_entry_price = 17 */ positionEntryPrice: string; /** * True if the position is closed by this trade * * @generated from protobuf field: bool is_position_closed = 18 */ isPositionClosed: boolean; /** * RFQ maker address for the synthetic trade (set only on synthetic trades * coming from an RFQ settlement) * * @generated from protobuf field: string rfq_maker = 19 */ rfqMaker: string; /** * Account address that owns the subaccount which executed this trade * * @generated from protobuf field: string account_address = 20 */ accountAddress: string; /** * RFQ identifier associated with this trade. Set on synthetic RFQ settlement * trades and on trades attributed to an atomic RFQ proxy execution; presence * alone does not mean the trade is a settlement fill. * * @generated from protobuf field: uint64 rfq_id = 21 */ rfqId: bigint; /** * Transaction hash where the trade was executed * * @generated from protobuf field: string tx_hash = 22 */ txHash: string; /** * RFQ participant address attributed through atomic RFQ proxy execution * * @generated from protobuf field: string rfq_participant = 23 */ rfqParticipant: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta */ interface PositionDelta$1 { /** * The direction the trade * * @generated from protobuf field: string trade_direction = 1 */ tradeDirection: string; /** * Execution Price of the trade. * * @generated from protobuf field: string execution_price = 2 */ executionPrice: string; /** * Execution Quantity of the trade. * * @generated from protobuf field: string execution_quantity = 3 */ executionQuantity: string; /** * Execution Margin of the trade. * * @generated from protobuf field: string execution_margin = 4 */ executionMargin: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.StreamTradesResponse */ interface StreamTradesResponse { /** * New TC derivative market trade * * @generated from protobuf field: injective_tc_derivatives_rpc.TCDerivativeTrade trade = 1 */ trade?: TCDerivativeTrade; /** * Executed trades update type * * @generated from protobuf field: string operation_type = 2 */ operationType: string; /** * Operation timestamp in UNIX millis * * @generated from protobuf field: sint64 timestamp = 3 */ timestamp: bigint; } /** * @generated from protobuf message injective_tc_derivatives_rpc.PositionsResponse */ interface PositionsResponse { /** * List of derivative positions * * @generated from protobuf field: repeated injective_tc_derivatives_rpc.DerivativePositionV2 positions = 1 */ positions: DerivativePositionV2[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; /** * @generated from protobuf field: uint64 total = 3 */ total: bigint; } /** * @generated from protobuf message injective_tc_derivatives_rpc.DerivativePositionV2 */ interface DerivativePositionV2 { /** * Ticker of the derivative market * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * Direction of the position * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Quantity of the position * * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * Price of the position * * @generated from protobuf field: string entry_price = 6 */ entryPrice: string; /** * Margin of the position * * @generated from protobuf field: string margin = 7 */ margin: string; /** * LiquidationPrice of the position * * @generated from protobuf field: string liquidation_price = 8 */ liquidationPrice: string; /** * MarkPrice of the position * * @generated from protobuf field: string mark_price = 9 */ markPrice: string; /** * Position updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 11 */ updatedAt: bigint; /** * Market quote denom * * @generated from protobuf field: string denom = 12 */ denom: string; /** * Last funding fees since position opened * * @generated from protobuf field: string funding_last = 13 */ fundingLast: string; /** * Net funding fees since position opened * * @generated from protobuf field: string funding_sum = 14 */ fundingSum: string; /** * Cumulative funding entry of the position * * @generated from protobuf field: string cumulative_funding_entry = 15 */ cumulativeFundingEntry: string; /** * Effective cumulative funding entry of the position * * @generated from protobuf field: string effective_cumulative_funding_entry = 16 */ effectiveCumulativeFundingEntry: string; /** * Unrealized profit and loss of the position (only present when requested with * with_upnl=true) * * @generated from protobuf field: string upnl = 17 */ upnl: string; /** * Leverage at the time the position was opened * * @generated from protobuf field: string initial_leverage = 18 */ initialLeverage: string; /** * Margin at the time the position was opened, in USD * * @generated from protobuf field: string initial_margin = 19 */ initialMargin: string; /** * Entry price at the time the position was opened, in USD * * @generated from protobuf field: string initial_entry_price = 20 */ initialEntryPrice: string; /** * Quantity at the time the position was opened * * @generated from protobuf field: string initial_quantity = 21 */ initialQuantity: string; /** * Initial margin plus any subsequent margin increases or decreases, excluding * accrued funding. Note that funding is folded into this value by the chain * whenever the position is modified. * * @generated from protobuf field: string cumulative_margin = 22 */ cumulativeMargin: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.StreamPositionsResponse */ interface StreamPositionsResponse { /** * Updated derivative Position * * @generated from protobuf field: injective_tc_derivatives_rpc.DerivativePositionV2 position = 1 */ position?: DerivativePositionV2; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 2 */ timestamp: bigint; /** * Position update type * * @generated from protobuf field: string operation_type = 3 */ operationType: string; } /** * @generated from protobuf message injective_tc_derivatives_rpc.FundingPaymentsResponse */ interface FundingPaymentsResponse { /** * List of funding payments * * @generated from protobuf field: repeated injective_tc_derivatives_rpc.FundingPayment payments = 1 */ payments: FundingPayment$1[]; /** * Next tokens for pagination * * @generated from protobuf field: repeated string next = 2 */ next: string[]; } /** * @generated from protobuf message injective_tc_derivatives_rpc.FundingPayment */ interface FundingPayment$1 { /** * Derivative Market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; /** * Amount of the funding payment * * @generated from protobuf field: string amount = 3 */ amount: string; /** * Timestamp of funding payment in UNIX millis * * @generated from protobuf field: sint64 timestamp = 4 */ timestamp: bigint; } /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse */ declare const OrdersHistoryResponse = new OrdersHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.TCDerivativeOrderHistoryType */ declare const TCDerivativeOrderHistoryType = new TCDerivativeOrderHistoryType$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.StreamOrdersHistoryResponse */ declare const StreamOrdersHistoryResponse = new StreamOrdersHistoryResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.OrdersResponse */ declare const OrdersResponse = new OrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.DerivativeLimitOrder */ declare const DerivativeLimitOrder$2 = new DerivativeLimitOrder$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.StreamOrdersResponse */ declare const StreamOrdersResponse = new StreamOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.TradesResponse */ declare const TradesResponse = new TradesResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.TCDerivativeTrade */ declare const TCDerivativeTrade = new TCDerivativeTrade$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.PositionDelta */ declare const PositionDelta$1 = new PositionDelta$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.StreamTradesResponse */ declare const StreamTradesResponse = new StreamTradesResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.PositionsResponse */ declare const PositionsResponse = new PositionsResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.DerivativePositionV2 */ declare const DerivativePositionV2 = new DerivativePositionV2$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.StreamPositionsResponse */ declare const StreamPositionsResponse = new StreamPositionsResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.FundingPaymentsResponse */ declare const FundingPaymentsResponse = new FundingPaymentsResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_derivatives_rpc.FundingPayment */ declare const FundingPayment$1 = new FundingPayment$Type(); //#endregion //#region src/client/indexer/types/tc-derivatives.d.ts interface TcPositionDelta { executionPrice: string; executionMargin: string; executionQuantity: string; tradeDirection: TradeDirection; } interface TcDerivativeOrderHistory { cid: string; price: string; margin: string; txHash: string; marketId: string; quantity: string; state: OrderState; orderHash: string; isActive: boolean; orderType: string; createdAt: number; updatedAt: number; triggerAt: number; subaccountId: string; triggerPrice: string; executionType: string; isReduceOnly: boolean; filledQuantity: string; isConditional: boolean; accountAddress: string; placedOrderHash: string; direction: TradeDirection; } interface TcDerivativeTradeHistory { fee: string; cid: string; pnl: string; payout: string; tradeId: string; marketId: string; rfqMaker: string; orderHash: string; executedAt: number; subaccountId: string; feeRecipient: string; isLiquidation: boolean; accountAddress: string; executionPrice: string; positionIsLong: boolean; executionMargin: string; isPositionClosed: boolean; positionOpenedAt: number; executionQuantity: string; positionEntryPrice: string; tradeDirection: TradeDirection; executionSide: TradeExecutionSide; tradeExecutionType: TradeExecutionType; } interface TcDerivativePosition { upnl: string; denom: string; ticker: string; margin: string; marketId: string; quantity: string; markPrice: string; updatedAt: number; entryPrice: string; fundingSum: string; fundingLast: string; subaccountId: string; initialMargin: string; cumulativeMargin: string; initialQuantity: string; initialLeverage: string; liquidationPrice: string; initialEntryPrice: string; direction: TradeDirection; cumulativeFundingEntry: string; effectiveCumulativeFundingEntry: string; } interface TcFundingPayment { amount: string; marketId: string; timestamp: number; subaccountId: string; } interface TcDerivativeLimitOrder { cid: string; price: string; margin: string; marketId: string; quantity: string; state: OrderState; orderHash: string; createdAt: number; updatedAt: number; orderType: string; triggerAt: number; orderNumber: number; orderSide: OrderSide$1; subaccountId: string; triggerPrice: string; feeRecipient: string; isReduceOnly: boolean; executionType: string; isConditional: boolean; placedOrderHash: string; unfilledQuantity: string; accountAddress: string; } interface TcDerivativesOrdersHistoryResponse { next: string[]; orders: TcDerivativeOrderHistory[]; } interface TcDerivativeOrdersResponse { next: string[]; orders: TcDerivativeLimitOrder[]; } interface TcDerivativeTradesResponse { next: string[]; trades: TcDerivativeTradeHistory[]; } interface TcDerivativesPositionsResponse { next: string[]; total?: number; positions: TcDerivativePosition[]; } interface TcFundingPaymentsResponse { next: string[]; payments: TcFundingPayment[]; } type GrpcTcPositionDelta = PositionDelta$1; type GrpcTcDerivativeLimitOrder = DerivativeLimitOrder$2; type GrpcTcDerivativeTradeHistory = TCDerivativeTrade; type GrpcTcDerivativePosition = DerivativePositionV2; type GrpcTcDerivativeOrderHistory = TCDerivativeOrderHistoryType; type GrpcTcFundingPayment = FundingPayment$1; type GrpcTcDerivativeOrdersResponse = OrdersResponse; type GrpcTcDerivativeTradesResponse = TradesResponse; type GrpcTcDerivativesPositionsResponse = PositionsResponse; type GrpcTcDerivativesOrdersHistoryResponse = OrdersHistoryResponse; type GrpcTcFundingPaymentsResponse = FundingPaymentsResponse; //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+ws-price-oracle-proto-ts-v2@1.0.5/node_modules/@injectivelabs/ws-price-oracle-proto-ts-v2/generated/goagen_api_oracle_pb.d.ts /** * @generated from protobuf message injective.price.oracle.api.v1.StreamMarketsResponse */ interface StreamMarketsResponse { /** * @generated from protobuf field: string type = 1 */ type: string; /** * @generated from protobuf field: optional string market_id = 2 */ marketId?: string; /** * @generated from protobuf field: optional string market_ticker = 3 */ marketTicker?: string; /** * @generated from protobuf field: optional string oracle_base = 4 */ oracleBase?: string; /** * @generated from protobuf field: optional string oracle_quote = 5 */ oracleQuote?: string; /** * @generated from protobuf field: optional string oracle_type = 6 */ oracleType?: string; /** * @generated from protobuf field: optional sint32 oracle_scale_factor = 7 */ oracleScaleFactor?: number; /** * @generated from protobuf field: optional bool active = 8 */ active?: boolean; /** * @generated from protobuf field: optional string price = 9 */ price?: string; /** * @generated from protobuf field: optional string timestamp = 10 */ timestamp?: string; /** * @generated from protobuf field: optional string received_at = 11 */ receivedAt?: string; /** * @generated from protobuf field: optional uint64 sequence = 12 */ sequence?: bigint; /** * @generated from protobuf field: repeated injective.price.oracle.api.v1.MarketStreamLeg legs = 13 */ legs: MarketStreamLeg[]; /** * @generated from protobuf field: optional string verification_status = 14 */ verificationStatus?: string; /** * @generated from protobuf field: injective.price.oracle.api.v1.MarketStreamRawPayload raw = 15 */ raw?: MarketStreamRawPayload; } /** * @generated from protobuf message injective.price.oracle.api.v1.MarketStreamLeg */ interface MarketStreamLeg { /** * @generated from protobuf field: optional string oracle_type = 1 */ oracleType?: string; /** * @generated from protobuf field: optional string base = 2 */ base?: string; /** * @generated from protobuf field: optional string quote = 3 */ quote?: string; /** * @generated from protobuf field: optional string price = 4 */ price?: string; /** * @generated from protobuf field: optional string timestamp = 5 */ timestamp?: string; /** * @generated from protobuf field: optional string source = 6 */ source?: string; } /** * @generated from protobuf message injective.price.oracle.api.v1.MarketStreamRawPayload */ interface MarketStreamRawPayload { /** * @generated from protobuf field: optional string provider = 1 */ provider?: string; /** * @generated from protobuf field: optional string feed_id = 2 */ feedId?: string; /** * @generated from protobuf field: optional string encoding = 3 */ encoding?: string; /** * @generated from protobuf field: optional string data = 4 */ data?: string; } /** * @generated from protobuf message injective.price.oracle.api.v1.LatestMarketPricesResponse */ interface LatestMarketPricesResponse { /** * @generated from protobuf field: repeated injective.price.oracle.api.v1.MarketStreamMessage prices = 1 */ prices: MarketStreamMessage[]; } /** * @generated from protobuf message injective.price.oracle.api.v1.MarketStreamMessage */ interface MarketStreamMessage { /** * @generated from protobuf field: string type = 1 */ type: string; /** * @generated from protobuf field: optional string market_id = 2 */ marketId?: string; /** * @generated from protobuf field: optional string market_ticker = 3 */ marketTicker?: string; /** * @generated from protobuf field: optional string oracle_base = 4 */ oracleBase?: string; /** * @generated from protobuf field: optional string oracle_quote = 5 */ oracleQuote?: string; /** * @generated from protobuf field: optional string oracle_type = 6 */ oracleType?: string; /** * @generated from protobuf field: optional sint32 oracle_scale_factor = 7 */ oracleScaleFactor?: number; /** * @generated from protobuf field: optional bool active = 8 */ active?: boolean; /** * @generated from protobuf field: optional string price = 9 */ price?: string; /** * @generated from protobuf field: optional string timestamp = 10 */ timestamp?: string; /** * @generated from protobuf field: optional string received_at = 11 */ receivedAt?: string; /** * @generated from protobuf field: optional uint64 sequence = 12 */ sequence?: bigint; /** * @generated from protobuf field: repeated injective.price.oracle.api.v1.MarketStreamLeg legs = 13 */ legs: MarketStreamLeg[]; /** * @generated from protobuf field: optional string verification_status = 14 */ verificationStatus?: string; /** * @generated from protobuf field: injective.price.oracle.api.v1.MarketStreamRawPayload raw = 15 */ raw?: MarketStreamRawPayload; } /** * @generated from protobuf message injective.price.oracle.api.v1.StreamMarketsV2Response */ interface StreamMarketsV2Response { /** * @generated from protobuf field: string mode = 1 */ mode: string; /** * Full stream message. Populated when mode is full and for heartbeat/error * control messages in all modes. * * @generated from protobuf field: injective.price.oracle.api.v1.MarketStreamMessage message_ = 2 */ message?: MarketStreamMessage; /** * Light market price message. Populated when mode is light for price snapshots * and updates. * * @generated from protobuf field: injective.price.oracle.api.v1.LightMarketStreamMessage light = 3 */ light?: LightMarketStreamMessage; /** * One-entry market ID to price map. Populated when mode is slim for price * snapshots and updates. * * @generated from protobuf field: map slim = 4 */ slim: { [key: string]: string; }; } /** * @generated from protobuf message injective.price.oracle.api.v1.LightMarketStreamMessage */ interface LightMarketStreamMessage { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: string price = 2 */ price: string; /** * @generated from protobuf field: string timestamp = 3 */ timestamp: string; /** * @generated from protobuf field: string type = 4 */ type: string; } /** * @generated from protobuf message injective.price.oracle.api.v1.LatestMarketPricesV2Response */ interface LatestMarketPricesV2Response { /** * @generated from protobuf field: string mode = 1 */ mode: string; /** * Full market price snapshots. Populated when mode is full. * * @generated from protobuf field: repeated injective.price.oracle.api.v1.MarketStreamMessage prices = 2 */ prices: MarketStreamMessage[]; /** * Light market price snapshots. Populated when mode is light. * * @generated from protobuf field: repeated injective.price.oracle.api.v1.LightMarketStreamMessage light_prices = 3 */ lightPrices: LightMarketStreamMessage[]; /** * Market ID to price map. Populated when mode is slim. * * @generated from protobuf field: map slim_prices = 4 */ slimPrices: { [key: string]: string; }; } /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.StreamMarketsResponse */ declare const StreamMarketsResponse = new StreamMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.MarketStreamLeg */ declare const MarketStreamLeg = new MarketStreamLeg$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.MarketStreamRawPayload */ declare const MarketStreamRawPayload = new MarketStreamRawPayload$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.LatestMarketPricesResponse */ declare const LatestMarketPricesResponse = new LatestMarketPricesResponse$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.MarketStreamMessage */ declare const MarketStreamMessage = new MarketStreamMessage$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.StreamMarketsV2Response */ declare const StreamMarketsV2Response = new StreamMarketsV2Response$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.LightMarketStreamMessage */ declare const LightMarketStreamMessage = new LightMarketStreamMessage$Type(); /** * @generated MessageType for protobuf message injective.price.oracle.api.v1.LatestMarketPricesV2Response */ declare const LatestMarketPricesV2Response = new LatestMarketPricesV2Response$Type(); //#endregion //#region src/client/indexer/types/ws-price-oracle.d.ts type GrpcWsPriceOracleMarketStreamLeg = MarketStreamLeg; type GrpcWsPriceOracleMarketStreamRawPayload = MarketStreamRawPayload; type GrpcWsPriceOracleStreamMarketsResponse = StreamMarketsResponse; type GrpcWsPriceOracleStreamMarketsV2Response = StreamMarketsV2Response; type GrpcWsPriceOracleMarketStreamMessage = MarketStreamMessage; type GrpcWsPriceOracleLightMarketStreamMessage = LightMarketStreamMessage; type GrpcWsPriceOracleLatestMarketPricesResponse = LatestMarketPricesResponse; type GrpcWsPriceOracleLatestMarketPricesV2Response = LatestMarketPricesV2Response; type WsPriceOracleResponseMode = 'full' | 'light' | 'slim'; type WsPriceOracleSlimPrices = Record; interface WsPriceOracleLatestMarketPricesParams { marketIds?: string[]; oracleTypes?: string[]; includeInactive?: boolean; } interface WsPriceOracleLatestMarketPricesV2Params extends WsPriceOracleLatestMarketPricesParams { mode?: WsPriceOracleResponseMode; } interface WsPriceOracleMarketStreamLeg { oracleType?: string; base?: string; quote?: string; price?: string; timestamp?: string; source?: string; } interface WsPriceOracleMarketStreamRawPayload { provider?: string; feedId?: string; encoding?: string; data?: string; } interface WsPriceOracleLightMarketStreamMessage { marketId: string; price: string; timestamp: string; type: string; } interface WsPriceOracleStreamMarketsResponse { type: string; marketId?: string; marketTicker?: string; oracleBase?: string; oracleQuote?: string; oracleType?: string; oracleScaleFactor?: number; active?: boolean; price?: string; timestamp?: string; receivedAt?: string; sequence?: number; legs: WsPriceOracleMarketStreamLeg[]; verificationStatus?: string; raw?: WsPriceOracleMarketStreamRawPayload; } type WsPriceOracleMarketPrice = WsPriceOracleStreamMarketsResponse; interface WsPriceOracleStreamMarketsV2Response { mode: WsPriceOracleResponseMode; message?: WsPriceOracleMarketPrice; light?: WsPriceOracleLightMarketStreamMessage; slim: WsPriceOracleSlimPrices; } interface WsPriceOracleLatestMarketPricesResponse { prices: WsPriceOracleMarketPrice[]; } interface WsPriceOracleLatestMarketPricesV2Response { mode: WsPriceOracleResponseMode; prices: WsPriceOracleMarketPrice[]; lightPrices: WsPriceOracleLightMarketStreamMessage[]; slimPrices: WsPriceOracleSlimPrices; } //#endregion //#region src/client/indexer/types/derivatives-rest.d.ts type ChronosDerivativeMarketSummary = { change: number; high: number; low: number; open: number; price: number; volume: number; }; type AllChronosDerivativeMarketSummary = { change: number; high: number; low: number; open: number; price: number; volume: number; marketId: string; }; interface ChronosDerivativeMarketSummaryResponse { data: ChronosDerivativeMarketSummary; } interface AllDerivativeMarketSummaryResponse { data: AllChronosDerivativeMarketSummary[]; } //#endregion //#region src/client/indexer/types/leaderboard-rest.d.ts type ChronosLeaderboardEntry = { accountID: string; perc: string; volume: string; }; type ChronosLeaderboard = { entries: Array; resolution: string; updatedAt: number; }; interface ChronosLeaderboardResponse { data: ChronosLeaderboard; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.d.ts /** * @generated from protobuf message injective_portfolio_rpc.AccountPortfolioResponse */ interface AccountPortfolioResponse { /** * The portfolio of this account * * @generated from protobuf field: injective_portfolio_rpc.Portfolio portfolio = 1 */ portfolio?: Portfolio; } /** * @generated from protobuf message injective_portfolio_rpc.Portfolio */ interface Portfolio { /** * The account's portfolio address * * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * Account available bank balances * * @generated from protobuf field: repeated injective_portfolio_rpc.Coin bank_balances = 2 */ bankBalances: Coin$2[]; /** * Subaccounts list * * @generated from protobuf field: repeated injective_portfolio_rpc.SubaccountBalanceV2 subaccounts = 3 */ subaccounts: SubaccountBalanceV2[]; /** * All positions for all subaccounts, with unrealized PNL * * @generated from protobuf field: repeated injective_portfolio_rpc.PositionsWithUPNL positions_with_upnl = 4 */ positionsWithUpnl: PositionsWithUPNL$1[]; } /** * @generated from protobuf message injective_portfolio_rpc.Coin */ interface Coin$2 { /** * Denom of the coin * * @generated from protobuf field: string denom = 1 */ denom: string; /** * @generated from protobuf field: string amount = 2 */ amount: string; /** * @generated from protobuf field: string usd_value = 3 */ usdValue: string; } /** * @generated from protobuf message injective_portfolio_rpc.SubaccountBalanceV2 */ interface SubaccountBalanceV2 { /** * Related subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * Coin denom on the chain. * * @generated from protobuf field: string denom = 2 */ denom: string; /** * @generated from protobuf field: injective_portfolio_rpc.SubaccountDeposit deposit = 3 */ deposit?: SubaccountDeposit$1; } /** * @generated from protobuf message injective_portfolio_rpc.SubaccountDeposit */ interface SubaccountDeposit$1 { /** * @generated from protobuf field: string total_balance = 1 */ totalBalance: string; /** * @generated from protobuf field: string available_balance = 2 */ availableBalance: string; /** * @generated from protobuf field: string total_balance_usd = 3 */ totalBalanceUsd: string; /** * @generated from protobuf field: string available_balance_usd = 4 */ availableBalanceUsd: string; } /** * @generated from protobuf message injective_portfolio_rpc.PositionsWithUPNL */ interface PositionsWithUPNL$1 { /** * @generated from protobuf field: injective_portfolio_rpc.DerivativePosition position = 1 */ position?: DerivativePosition$1; /** * Unrealized PNL * * @generated from protobuf field: string unrealized_pnl = 2 */ unrealizedPnl: string; } /** * @generated from protobuf message injective_portfolio_rpc.DerivativePosition */ interface DerivativePosition$1 { /** * Ticker of the derivative market * * @generated from protobuf field: string ticker = 1 */ ticker: string; /** * Derivative Market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * The subaccountId that the position belongs to * * @generated from protobuf field: string subaccount_id = 3 */ subaccountId: string; /** * Direction of the position * * @generated from protobuf field: string direction = 4 */ direction: string; /** * Quantity of the position * * @generated from protobuf field: string quantity = 5 */ quantity: string; /** * Price of the position * * @generated from protobuf field: string entry_price = 6 */ entryPrice: string; /** * Margin of the position * * @generated from protobuf field: string margin = 7 */ margin: string; /** * LiquidationPrice of the position * * @generated from protobuf field: string liquidation_price = 8 */ liquidationPrice: string; /** * MarkPrice of the position * * @generated from protobuf field: string mark_price = 9 */ markPrice: string; /** * Aggregate Quantity of the Reduce Only orders associated with the position * * @generated from protobuf field: string aggregate_reduce_only_quantity = 11 */ aggregateReduceOnlyQuantity: string; /** * Position updated timestamp in UNIX millis. * * @generated from protobuf field: sint64 updated_at = 12 */ updatedAt: bigint; /** * Position created timestamp in UNIX millis. * * @generated from protobuf field: sint64 created_at = 13 */ createdAt: bigint; /** * Last funding fees since position opened * * @generated from protobuf field: string funding_last = 14 */ fundingLast: string; /** * Net funding fees since position opened * * @generated from protobuf field: string funding_sum = 15 */ fundingSum: string; /** * Cumulative funding entry of the position * * @generated from protobuf field: string cumulative_funding_entry = 16 */ cumulativeFundingEntry: string; /** * Effective cumulative funding entry of the position * * @generated from protobuf field: string effective_cumulative_funding_entry = 17 */ effectiveCumulativeFundingEntry: string; } /** * @generated from protobuf message injective_portfolio_rpc.AccountPortfolioBalancesResponse */ interface AccountPortfolioBalancesResponse { /** * The portfolio balances of this account * * @generated from protobuf field: injective_portfolio_rpc.PortfolioBalances portfolio = 1 */ portfolio?: PortfolioBalances; } /** * @generated from protobuf message injective_portfolio_rpc.PortfolioBalances */ interface PortfolioBalances { /** * The account's portfolio address * * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * Account available bank balances * * @generated from protobuf field: repeated injective_portfolio_rpc.Coin bank_balances = 2 */ bankBalances: Coin$2[]; /** * Subaccounts list * * @generated from protobuf field: repeated injective_portfolio_rpc.SubaccountBalanceV2 subaccounts = 3 */ subaccounts: SubaccountBalanceV2[]; /** * USD value of the portfolio * * @generated from protobuf field: string total_usd = 4 */ totalUsd: string; } /** * @generated from protobuf message injective_portfolio_rpc.StreamAccountPortfolioResponse */ interface StreamAccountPortfolioResponse { /** * type of portfolio entry * * @generated from protobuf field: string type = 1 */ type: string; /** * denom of portfolio entry * * @generated from protobuf field: string denom = 2 */ denom: string; /** * amount of portfolio entry * * @generated from protobuf field: string amount = 3 */ amount: string; /** * subaccount id of portfolio entry * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; /** * Operation timestamp in UNIX millis. * * @generated from protobuf field: sint64 timestamp = 5 */ timestamp: bigint; } /** * @generated MessageType for protobuf message injective_portfolio_rpc.AccountPortfolioResponse */ declare const AccountPortfolioResponse = new AccountPortfolioResponse$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.Portfolio */ declare const Portfolio = new Portfolio$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.Coin */ declare const Coin$2 = new Coin$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.SubaccountBalanceV2 */ declare const SubaccountBalanceV2 = new SubaccountBalanceV2$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.SubaccountDeposit */ declare const SubaccountDeposit$1 = new SubaccountDeposit$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.PositionsWithUPNL */ declare const PositionsWithUPNL$1 = new PositionsWithUPNL$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.DerivativePosition */ declare const DerivativePosition$1 = new DerivativePosition$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.AccountPortfolioBalancesResponse */ declare const AccountPortfolioBalancesResponse = new AccountPortfolioBalancesResponse$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.PortfolioBalances */ declare const PortfolioBalances = new PortfolioBalances$Type(); /** * @generated MessageType for protobuf message injective_portfolio_rpc.StreamAccountPortfolioResponse */ declare const StreamAccountPortfolioResponse = new StreamAccountPortfolioResponse$Type(); //#endregion //#region src/client/indexer/types/account-portfolio.d.ts interface SubaccountDepositV2 { totalBalance: string; availableBalance: string; } interface PortfolioSubaccountBalanceV2 { subaccountId: string; denom: string; deposit?: SubaccountDepositV2; } interface PositionsWithUPNL { position?: Position$1; unrealizedPnl: string; } interface AccountPortfolioV2 { accountAddress: string; bankBalancesList: Coin[]; subaccountsList: PortfolioSubaccountBalanceV2[]; positionsWithUpnlList: PositionsWithUPNL[]; } interface AccountPortfolioBalances { accountAddress: string; bankBalancesList: Coin[]; subaccountsList: PortfolioSubaccountBalanceV2[]; } type GrpcPositionV2 = DerivativePosition$1; type GrpcAccountPortfolioV2 = Portfolio; type GrpcSubaccountDepositV2 = SubaccountDeposit$1; type GrpcPositionsWithUPNL = PositionsWithUPNL$1; type GrpcPortfolioSubaccountBalanceV2 = SubaccountBalanceV2; //#endregion //#region src/client/indexer/types/markets-history-rest.d.ts type AllChronosMarketHistory = { marketID: string; resolution: string; t: number[]; v: number[]; c: number[]; h: number[]; l: number[]; o: number[]; }; interface ChronosMarketHistoryResponse { data: AllChronosMarketHistory[]; } //#endregion //#region src/client/indexer/types/index.d.ts interface StreamStatusResponse { details: string; code: number; metadata: any; } declare const IndexerModule: { Dmm: "dmm"; OLP: "olp"; Abacus: "abacus"; RFQ: "indexer-rfq"; Meta: "indexer-meta"; Mito: "indexer-mito"; Referral: "referral"; Spot: "indexer-spot"; Web3Gw: "web3-gateway"; RfqGw: "indexer-rfq-gw"; Oracle: "indexer-oracle"; Account: "indexer-account"; Auction: "indexer-auction"; Trading: "indexer-trading"; Archiver: "indexer-archiver"; Explorer: "indexer-explorer"; Campaign: "indexer-campaign"; Portfolio: "indexer-portfolio"; MegaVault: "indexer-mega-vault"; Derivatives: "indexer-derivatives"; Transaction: "indexer-transaction"; ChronosSpot: "indexer-chronos-spot"; TcDerivatives: "indexer-tc-derivatives"; InsuranceFund: "indexer-insurance-fund"; ChronosMarkets: "indexer-chronos-markets"; ChronosDerivative: "indexer-chronos-derivative"; }; //#endregion //#region src/client/indexer/ws/GrpcWebSocketCodec.d.ts /** * Codec for encoding/decoding gRPC-over-WebSocket messages for RFQ streams. */ declare const GrpcWebSocketCodec: { encodeTakerPing(): Uint8Array; encodeTakerRequest(input: RFQRequestInputType): Uint8Array; encodeTakerAuth(auth: RFQTakerAuth): Uint8Array; decodeTakerResponse(data: ArrayBuffer | Uint8Array): GrpcFrame; encodeMakerPing(): Uint8Array; encodeMakerQuote(input: RFQQuoteType): Uint8Array; encodeMakerAuth(auth: RFQMakerAuth): Uint8Array; decodeMakerResponse(data: ArrayBuffer | Uint8Array): GrpcFrame; isTrailerFrame(data: ArrayBuffer | Uint8Array): boolean; getPayloadLength(data: ArrayBuffer | Uint8Array): number; isCompleteFrame(data: ArrayBuffer | Uint8Array): boolean; HEADER_SIZE: number; }; //#endregion //#region src/client/indexer/ws/GrpcWebSocketTransport.d.ts /** * Low-level gRPC-over-WebSocket transport layer. * * Handles: * - WebSocket connection lifecycle * - Reconnection with exponential backoff * - State management * - Binary message framing * * This class does NOT handle protobuf encoding/decoding - use GrpcWebSocketCodec for that. */ declare class GrpcWebSocketTransport { private config; private ws; private state; private connectionTimeout; private reconnectTimeout; private reconnectAttempts; private currentReconnectDelay; private isDestroyed; private hasConnectedOnce; private listeners; constructor(config: WsTransportConfig); getState(): WsState; /** * Check if the transport is connected and ready to send */ isConnected(): boolean; connect(): Promise; disconnect(): void; destroy(): void; send(data: Uint8Array): void; on(event: T, listener: TransportEventListener): void; off(event: T, listener: TransportEventListener): void; private emit; private createConnection; private createWebSocket; private addMetadataToUrl; /** * Handle WebSocket open event */ private handleOpen; private handleClose; private handleError; private handleMessage; private handleConnectionTimeout; private clearConnectionTimeout; private clearReconnectTimeout; private scheduleReconnect; private shouldAttemptReconnect; private determineDisconnectReason; private cleanup; private setState; private resolveConfig; } //#endregion //#region src/client/indexer/ws/rfq/IndexerWsTakerStream.d.ts type TakerEventListener = (data: TakerStreamEvents[T]) => void; declare class IndexerWsTakerStream { private transport; private pingInterval; private listeners; private isDestroyed; private pingIntervalMs; constructor(config: TakerStreamConfig); getState(): WsState; isConnected(): boolean; connect(): Promise; disconnect(): void; destroy(): void; sendRequest(request: RFQRequestInputType): void; sendAuth(auth: RFQTakerAuth): void; on(event: T, listener: TakerEventListener): void; off(event: T, listener: TakerEventListener): void; private emit; private setupTransportHandlers; private handleMessage; private startPingInterval; private stopPingInterval; private buildUrl; } //#endregion //#region src/client/indexer/ws/rfq/IndexerWsMakerStream.d.ts type MakerEventListener = (data: MakerStreamEvents[T]) => void; declare class IndexerWsMakerStream { private transport; private pingInterval; private listeners; private isDestroyed; private pingIntervalMs; constructor(config: MakerStreamConfig); getState(): WsState; isConnected(): boolean; connect(): Promise; disconnect(): void; destroy(): void; sendQuote(quote: RFQQuoteType): void; sendAuth(auth: RFQMakerAuth): void; on(event: T, listener: MakerEventListener): void; off(event: T, listener: MakerEventListener): void; private emit; private setupTransportHandlers; private handleMessage; private startPingInterval; private stopPingInterval; private buildUrl; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcRfqApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcRFQApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchSettlements(params?: { token?: string; perPage?: number; addresses?: string[]; }): Promise; createConditionalOrder({ order, signMode, signature, evmChainId }: { signature: string; evmChainId: bigint; signMode: RFQSignMode; order: { cid?: string; taker: string; rfqId: bigint; epoch: bigint; margin: string; version: number; chainId: string; marketId: string; quantity: string; direction: string; worstPrice: string; deadlineMs: bigint; triggerType: string; laneVersion: bigint; triggerPrice: string; contractAddress: string; subaccountNonce: number; allowedRelayer?: string; unfilledAction?: string; minTotalFillQuantity: string; takerNonceTimeWindowMs?: bigint; }; }): Promise<{ order: RFQConditionalOrder | undefined; }>; listConditionalOrders(params?: { token?: string; status?: string[]; perPage?: number; marketId?: string; requestAddress?: string; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcMitoApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcMitoApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchVault({ contractAddress, slug }: { contractAddress?: string; slug?: string; }): Promise; fetchVaults({ limit, codeId, pageIndex }: { limit?: number; codeId?: string; pageIndex?: number; }): Promise<{ vaults: MitoVault[]; pagination?: MitoPagination; }>; fetchLpTokenPriceChart({ to, from, vaultAddress }: { to?: string; from?: string; vaultAddress: string; }): Promise; fetchTVLChartRequest({ to, from, vaultAddress }: { to?: string; from?: string; vaultAddress: string; }): Promise; fetchVaultsByHolderAddress({ skip, limit, holderAddress, vaultAddress }: { skip?: number; limit?: number; holderAddress: string; vaultAddress?: string; }): Promise<{ subscriptions: MitoSubscription[]; pagination: MitoPagination | undefined; }>; fetchLPHolders({ skip, limit, vaultAddress, stakingContractAddress }: { skip?: number; limit?: number; vaultAddress: string; stakingContractAddress: string; }): Promise<{ holders: MitoHolders[]; pagination: MitoPagination | undefined; }>; fetchHolderPortfolio({ holderAddress, stakingContractAddress }: { holderAddress: string; stakingContractAddress: string; }): Promise; fetchLeaderboard(epochId?: number): Promise; fetchTransferHistory({ vault, account, limit, toNumber, fromNumber }: { vault?: string; account?: string; limit?: number; toNumber?: number; fromNumber?: number; }): Promise<{ transfers: MitoTransfer[]; pagination: MitoPagination | undefined; }>; fetchLeaderboardEpochs({ limit, toEpochId, fromEpochId }: { limit?: number; toEpochId?: number; fromEpochId?: number; }): Promise<{ epochs: MitoLeaderboardEpoch[]; pagination: MitoPagination | undefined; }>; fetchStakingPools({ staker, stakingContractAddress }: { staker?: string; stakingContractAddress: string; }): Promise<{ pools: MitoStakingPool[]; pagination: MitoPagination | undefined; }>; fetchStakingHistory({ staker, toNumber, limit, fromNumber }?: { staker?: string; limit?: number; toNumber?: number; fromNumber?: number; }): Promise<{ activities: { action: string; txHash: string; staker: string; vaultAddress: string; numberByAccount: number; timestamp: number; rewardedTokens: Coin$9[]; stakeAmount: Coin$9 | undefined; }[]; pagination: MitoPagination | undefined; }>; fetchStakingRewardsByAccount({ staker, stakingContractAddress }: { staker: string; stakingContractAddress: string; }): Promise<{ rewards: { apr: number; vaultName: string; vaultAddress: string; lockTimestamp: number; claimableRewards: Coin$9[]; stakedAmount: Coin$9 | undefined; lockedAmount: Coin$9 | undefined; }[]; pagination: MitoPagination | undefined; }>; fetchMissions({ accountAddress }: { accountAddress: string; }): Promise; fetchMissionLeaderboard(userAddress?: string): Promise; fetchIDO({ contractAddress, accountAddress }: { contractAddress: string; accountAddress?: string; }): Promise<{ ido: MitoIDO | undefined; }>; fetchIDOs({ status, limit, toNumber, accountAddress, ownerAddress }?: { status?: string; limit?: number; toNumber?: number; accountAddress?: string; ownerAddress?: string; }): Promise<{ idos: MitoIDO[]; pagination: MitoPagination | undefined; }>; fetchIDOSubscribers({ skip, limit, sortBy, contractAddress }: { skip?: number; limit?: number; sortBy?: string; contractAddress: string; }): Promise<{ marketId: string; quoteDenom: string; subscribers: MitoIDOSubscriber[]; pagination: MitoPagination | undefined; tokenInfo: MitoTokenInfo | undefined; }>; fetchIDOSubscription({ contractAddress, accountAddress }: { contractAddress: string; accountAddress: string; }): Promise<{ subscription: MitoIDOSubscription | undefined; }>; fetchIDOActivities({ contractAddress, accountAddress, limit, toNumber }?: { contractAddress?: string; accountAddress?: string; limit?: number; toNumber?: string; }): Promise<{ activities: MitoIDOSubscriptionActivity[]; pagination: MitoPagination | undefined; }>; fetchIDOWhitelist({ skip, limit, idoAddress }: { skip?: number; limit?: number; idoAddress: string; }): Promise<{ idoAddress: string | undefined; accounts: MitoWhitelistAccount[]; pagination: MitoPagination | undefined; }>; fetchClaimReferences({ skip, limit, idoAddress, accountAddress }: { skip?: number; limit?: number; idoAddress: string; accountAddress: string; }): Promise<{ claimReferences: MitoClaimReference[]; pagination?: MitoPagination; }>; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_meta_rpc_pb.d.ts /** * @generated from protobuf message injective_meta_rpc.PingResponse */ interface PingResponse {} /** * @generated from protobuf message injective_meta_rpc.VersionResponse */ interface VersionResponse { /** * injective-exchange code version. * * @generated from protobuf field: string version = 1 */ version: string; /** * Additional build meta info. * * @generated from protobuf field: map build = 2 */ build: { [key: string]: string; }; } /** * @generated from protobuf message injective_meta_rpc.InfoResponse */ interface InfoResponse { /** * The original timestamp value in millis. * * @generated from protobuf field: sint64 timestamp = 1 */ timestamp: bigint; /** * UNIX time on the server in millis. * * @generated from protobuf field: sint64 server_time = 2 */ serverTime: bigint; /** * injective-exchange code version. * * @generated from protobuf field: string version = 3 */ version: string; /** * Additional build meta info. * * @generated from protobuf field: map build = 4 */ build: { [key: string]: string; }; /** * Server's location region * * @generated from protobuf field: string region = 5 */ region: string; } /** * @generated MessageType for protobuf message injective_meta_rpc.PingResponse */ declare const PingResponse = new PingResponse$Type(); /** * @generated MessageType for protobuf message injective_meta_rpc.VersionResponse */ declare const VersionResponse = new VersionResponse$Type(); /** * @generated MessageType for protobuf message injective_meta_rpc.InfoResponse */ declare const InfoResponse = new InfoResponse$Type(); //#endregion //#region src/client/indexer/grpc/IndexerGrpcMetaApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcMetaApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchPing(): Promise; fetchVersion(): Promise; fetchInfo(): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcSpotApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcSpotApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchMarkets(params?: { baseDenom?: string; marketStatus?: string; quoteDenom?: string; marketStatuses?: string[]; }): Promise; fetchMarket(marketId: string): Promise; /** @deprecated - use fetchOrderbookV2 */ fetchOrderbook(_marketId: string): Promise; fetchOrders(params?: { marketId?: string; marketIds?: string[]; subaccountId?: string; orderSide?: OrderSide$1; isConditional?: boolean; pagination?: PaginationOption; cid?: string; tradeId?: string; }): Promise<{ orders: SpotLimitOrder$1[]; pagination: ExchangePagination; }>; fetchOrderHistory(params?: { cid?: string; state?: OrderState; tradeId?: string; marketId?: string; marketIds?: string[]; direction?: TradeDirection; orderTypes?: OrderSide$1[]; pagination?: PaginationOption; isConditional?: boolean; executionTypes?: TradeExecutionType[]; subaccountId?: string; }): Promise<{ orderHistory: SpotOrderHistory[]; pagination: ExchangePagination; }>; fetchTrades(params?: { endTime?: number; tradeId?: string; marketId?: string; startTime?: number; marketIds?: string[]; subaccountId?: string; accountAddress?: string; direction?: TradeDirection; pagination?: PaginationOption; executionSide?: TradeExecutionSide; executionTypes?: TradeExecutionType[]; cid?: string; }): Promise<{ trades: SpotTrade[]; pagination: ExchangePagination; }>; fetchSubaccountOrdersList(params?: { subaccountId?: string; marketId?: string; pagination?: PaginationOption; }): Promise<{ orders: SpotLimitOrder$1[]; pagination: ExchangePagination; }>; fetchSubaccountTradesList(params?: { subaccountId?: string; marketId?: string; direction?: TradeDirection; executionType?: TradeExecutionType; pagination?: PaginationOption; }): Promise; /** @deprecated - use fetchOrderbooksV2 */ fetchOrderbooks(_marketIds: string[]): Promise; fetchOrderbooksV2(marketIds: string[]): Promise<{ marketId: string; orderbook: OrderbookWithSequence; }[]>; fetchOrderbookV2(marketId: string): Promise; fetchAtomicSwapHistory(params: { address: string; contractAddress: string; pagination?: PaginationOption; }): Promise<{ swapHistory: AtomicSwap[]; pagination: ExchangePagination; }>; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcRfqGwApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcRfqGwApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); private buildSignedRequest; fetchPrepareAutoSign({ cid, margin, expiry, clientId, marketId, quantity, direction, simulate, worstPrice, txBodyMemo, takerAddress, autosignPubKey, unfilledAction, autosignAddress, subaccountNonce, quotesWaitTimeMs, autosignAccountNumber, feePayerAccountNumber, autosignAccountSequence, feePayerAccountSequence, signedRequest, takerSignature }: { cid?: string; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; txBodyMemo?: string; takerAddress?: string; autosignPubKey: string; autosignAddress: string; subaccountNonce?: number; quotesWaitTimeMs?: number; autosignAccountNumber?: number; feePayerAccountNumber?: number; autosignAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; }): Promise; fetchPrepare({ cid, margin, expiry, clientId, marketId, quantity, direction, simulate, worstPrice, txBodyMemo, takerPubKey, takerAddress, unfilledAction, subaccountNonce, quotesWaitTimeMs, takerAccountNumber, feePayerAccountNumber, takerAccountSequence, feePayerAccountSequence, signedRequest, takerSignature }: { cid?: string; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; txBodyMemo?: string; takerAddress: string; takerPubKey: string; subaccountNonce?: number; quotesWaitTimeMs?: number; takerAccountNumber?: number; feePayerAccountNumber?: number; takerAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; }): Promise; fetchPrepareEip712({ cid, gas, margin, expiry, clientId, marketId, quantity, direction, simulate, worstPrice, txBodyMemo, ethChainId, takerPubKey, takerAddress, eip712Wrapper, unfilledAction, subaccountNonce, quotesWaitTimeMs, takerAccountNumber, feePayerAccountNumber, takerAccountSequence, feePayerAccountSequence, signedRequest, takerSignature }: { cid?: string; gas?: number; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; txBodyMemo?: string; ethChainId?: number; takerAddress: string; takerPubKey: string; eip712Wrapper?: string; subaccountNonce?: number; quotesWaitTimeMs?: number; takerAccountNumber?: number; feePayerAccountNumber?: number; takerAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; }): Promise; fetchPrepareEip712AutoSign({ cid, gas, margin, expiry, clientId, marketId, quantity, direction, simulate, worstPrice, txBodyMemo, ethChainId, takerAddress, autosignPubKey, eip712Wrapper, unfilledAction, autosignAddress, subaccountNonce, quotesWaitTimeMs, autosignAccountNumber, feePayerAccountNumber, autosignAccountSequence, feePayerAccountSequence, signedRequest, takerSignature }: { cid?: string; gas?: number; margin: string; expiry?: number; clientId: string; marketId: string; quantity: string; direction: string; simulate?: boolean; worstPrice: string; txBodyMemo?: string; ethChainId?: number; takerAddress?: string; autosignPubKey: string; eip712Wrapper?: string; autosignAddress: string; subaccountNonce?: number; quotesWaitTimeMs?: number; autosignAccountNumber?: number; feePayerAccountNumber?: number; autosignAccountSequence?: number; feePayerAccountSequence?: number; unfilledAction?: RFQSettlementUnfilledActionType; signedRequest?: RFQGwSignedRFQRequestType; takerSignature?: string; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcOracleApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcOracleApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchOracleList(): Promise; fetchOraclePrice({ baseSymbol, quoteSymbol, oracleScaleFactor, oracleType }: { baseSymbol: string; quoteSymbol: string; oracleType: string; oracleScaleFactor?: number; }): Promise; fetchOraclePriceV2(filters: OraclePriceV2Filter[]): Promise; fetchOraclePriceNoThrow({ baseSymbol, quoteSymbol, oracleScaleFactor, oracleType }: { baseSymbol: string; quoteSymbol: string; oracleType: string; oracleScaleFactor?: number; }): Promise; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.20.7/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_exchange_rpc_pb.d.ts /** * @generated from protobuf message injective_exchange_rpc.CosmosCoin */ interface CosmosCoin { /** * Coin denominator * * @generated from protobuf field: string denom = 1 */ denom: string; /** * Coin amount (big int) * * @generated from protobuf field: string amount = 2 */ amount: string; } /** * @generated from protobuf message injective_exchange_rpc.PrepareTxResponse */ interface PrepareTxResponse { /** * EIP712-compatible message suitable for signing with eth_signTypedData_v4 * * @generated from protobuf field: string data = 1 */ data: string; /** * Account tx sequence (nonce) * * @generated from protobuf field: uint64 sequence = 2 */ sequence: bigint; /** * Sign mode for the resulting tx * * @generated from protobuf field: string sign_mode = 3 */ signMode: string; /** * Specify proto-URL of a public key, which defines the signature format * * @generated from protobuf field: string pub_key_type = 4 */ pubKeyType: string; /** * Fee payer address provided by service * * @generated from protobuf field: string fee_payer = 5 */ feePayer: string; /** * Hex-encoded ethsecp256k1 signature bytes from fee payer * * @generated from protobuf field: string fee_payer_sig = 6 */ feePayerSig: string; } /** * @generated from protobuf message injective_exchange_rpc.PrepareEip712Response */ interface PrepareEip712Response { /** * EIP712-compatible message suitable for signing with eth_signTypedData_v4 * * @generated from protobuf field: string data = 1 */ data: string; } /** * @generated from protobuf message injective_exchange_rpc.CosmosPubKey */ interface CosmosPubKey { /** * Pubkey type URL * * @generated from protobuf field: string type = 1 */ type: string; /** * Hex-encoded string of the public key * * @generated from protobuf field: string key = 2 */ key: string; } /** * @generated from protobuf message injective_exchange_rpc.BroadcastTxResponse */ interface BroadcastTxResponse { /** * Hex-encoded Tendermint transaction hash * * @generated from protobuf field: string tx_hash = 1 */ txHash: string; /** * The block height * * @generated from protobuf field: sint64 height = 2 */ height: bigint; /** * Tx index in the block * * @generated from protobuf field: uint32 index = 3 */ index: number; /** * Namespace for the resp code * * @generated from protobuf field: string codespace = 4 */ codespace: string; /** * Response code * * @generated from protobuf field: uint32 code = 5 */ code: number; /** * Result bytes, if any * * @generated from protobuf field: bytes data = 6 */ data: Uint8Array; /** * The output of the application's logger (raw string). May be * non-deterministic. * * @generated from protobuf field: string raw_log = 7 */ rawLog: string; /** * Time of the previous block. * * @generated from protobuf field: string timestamp = 8 */ timestamp: string; } /** * @generated from protobuf message injective_exchange_rpc.PrepareCosmosTxResponse */ interface PrepareCosmosTxResponse { /** * proto encoded tx * * @generated from protobuf field: bytes tx = 1 */ tx: Uint8Array; /** * Sign mode for the resulting tx * * @generated from protobuf field: string sign_mode = 2 */ signMode: string; /** * Specify proto-URL of a public key, which defines the signature format * * @generated from protobuf field: string pub_key_type = 3 */ pubKeyType: string; /** * Fee payer address provided by service * * @generated from protobuf field: string fee_payer = 4 */ feePayer: string; /** * Hex-encoded ethsecp256k1 signature bytes from fee payer * * @generated from protobuf field: string fee_payer_sig = 5 */ feePayerSig: string; /** * ethsecp256k1 feePayer pubkey * * @generated from protobuf field: injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 6 */ feePayerPubKey?: CosmosPubKey; } /** * @generated from protobuf message injective_exchange_rpc.BroadcastCosmosTxResponse */ interface BroadcastCosmosTxResponse { /** * Hex-encoded Tendermint transaction hash * * @generated from protobuf field: string tx_hash = 1 */ txHash: string; /** * The block height * * @generated from protobuf field: sint64 height = 2 */ height: bigint; /** * Tx index in the block * * @generated from protobuf field: uint32 index = 3 */ index: number; /** * Namespace for the resp code * * @generated from protobuf field: string codespace = 4 */ codespace: string; /** * Response code * * @generated from protobuf field: uint32 code = 5 */ code: number; /** * Result bytes, if any * * @generated from protobuf field: bytes data = 6 */ data: Uint8Array; /** * The output of the application's logger (raw string). May be * non-deterministic. * * @generated from protobuf field: string raw_log = 7 */ rawLog: string; /** * Time of the previous block. * * @generated from protobuf field: string timestamp = 8 */ timestamp: string; } /** * @generated from protobuf message injective_exchange_rpc.GetFeePayerResponse */ interface GetFeePayerResponse { /** * Fee payer address provided by service * * @generated from protobuf field: string fee_payer = 1 */ feePayer: string; /** * ethsecp256k1 feePayer pubkey * * @generated from protobuf field: injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 2 */ feePayerPubKey?: CosmosPubKey; } /** * @generated from protobuf message injective_exchange_rpc.PrepareFeeGrantResponse */ interface PrepareFeeGrantResponse { /** * Feegrant granter address * * @generated from protobuf field: string granter_address = 1 */ granterAddress: string; /** * Grantee address * * @generated from protobuf field: string grantee_address = 2 */ granteeAddress: string; /** * Feegrant transaction hash * * @generated from protobuf field: string tx_hash = 3 */ txHash: string; /** * Feegrant expiration timestamp in Unix milliseconds * * @generated from protobuf field: uint64 expiration = 4 */ expiration: bigint; /** * Feegrant spend limit * * @generated from protobuf field: injective_exchange_rpc.CosmosCoin spend_limit = 5 */ spendLimit?: CosmosCoin; /** * Message type URLs allowed by the feegrant * * @generated from protobuf field: repeated string allowed_messages = 6 */ allowedMessages: string[]; } /** * @generated from protobuf message injective_exchange_rpc.PrepareTxPrerequisitesResponse */ interface PrepareTxPrerequisitesResponse { /** * @generated from protobuf field: string schema_version = 1 */ schemaVersion: string; /** * @generated from protobuf field: string request_id = 2 */ requestId: string; /** * @generated from protobuf field: string operation_id = 3 */ operationId: string; /** * @generated from protobuf field: string status = 4 */ status: string; /** * @generated from protobuf field: string chain_id = 5 */ chainId: string; /** * @generated from protobuf field: string address = 6 */ address: string; /** * @generated from protobuf field: string revision = 7 */ revision: string; /** * @generated from protobuf field: string valid_until_ms = 8 */ validUntilMs: string; /** * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesAccount account = 9 */ account?: TxPrerequisitesAccount; /** * Present only when requestFeeGrant is true and preparation succeeds * * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesFeeGrant fee_grant = 10 */ feeGrant?: TxPrerequisitesFeeGrant; /** * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesTransactionContext transaction_context = 11 */ transactionContext?: TxPrerequisitesTransactionContext; /** * @generated from protobuf field: uint64 retry_after_ms = 12 */ retryAfterMs: bigint; /** * @generated from protobuf field: repeated injective_exchange_rpc.TxPrerequisitesBlocker blockers = 13 */ blockers: TxPrerequisitesBlocker[]; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesAccount */ interface TxPrerequisitesAccount { /** * @generated from protobuf field: string status = 1 */ status: string; /** * @generated from protobuf field: string address = 2 */ address: string; /** * Exact decimal account number * * @generated from protobuf field: string account_number = 3 */ accountNumber: string; /** * Exact decimal sequence observed from chain state * * @generated from protobuf field: string sequence = 4 */ sequence: string; /** * The sequence is observed and is not reserved * * @generated from protobuf field: string sequence_mode = 5 */ sequenceMode: string; /** * Exact decimal height at which the account was observed * * @generated from protobuf field: string observed_at_height = 6 */ observedAtHeight: string; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesFeeGrant */ interface TxPrerequisitesFeeGrant { /** * @generated from protobuf field: string status = 1 */ status: string; /** * Stable revision derived from the prepared fee-grant identity and policy * * @generated from protobuf field: string revision = 2 */ revision: string; /** * @generated from protobuf field: string granter_address = 3 */ granterAddress: string; /** * @generated from protobuf field: string grantee_address = 4 */ granteeAddress: string; /** * @generated from protobuf field: string provision_transaction_hash = 5 */ provisionTransactionHash: string; /** * @generated from protobuf field: string allowance_type = 6 */ allowanceType: string; /** * @generated from protobuf field: repeated string allowed_messages = 7 */ allowedMessages: string[]; /** * @generated from protobuf field: injective_exchange_rpc.CosmosCoin spend_limit = 8 */ spendLimit?: CosmosCoin; /** * @generated from protobuf field: string expires_at_ms = 9 */ expiresAtMs: string; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesTransactionContext */ interface TxPrerequisitesTransactionContext { /** * @generated from protobuf field: string status = 1 */ status: string; /** * @generated from protobuf field: string context_id = 2 */ contextId: string; /** * @generated from protobuf field: uint64 valid_for_ms = 3 */ validForMs: bigint; /** * @generated from protobuf field: string consistency = 4 */ consistency: string; /** * @generated from protobuf field: string minimum_observed_height = 5 */ minimumObservedHeight: string; /** * @generated from protobuf field: string maximum_observed_height = 6 */ maximumObservedHeight: string; /** * @generated from protobuf field: string height_skew_blocks = 7 */ heightSkewBlocks: string; /** * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesBlock block = 8 */ block?: TxPrerequisitesBlock; /** * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesTimeout timeout = 9 */ timeout?: TxPrerequisitesTimeout; /** * @generated from protobuf field: injective_exchange_rpc.TxPrerequisitesChainClock chain_clock = 10 */ chainClock?: TxPrerequisitesChainClock; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesBlock */ interface TxPrerequisitesBlock { /** * @generated from protobuf field: string height = 1 */ height: string; /** * @generated from protobuf field: string hash = 2 */ hash: string; /** * @generated from protobuf field: string timestamp_ms = 3 */ timestampMs: string; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesTimeout */ interface TxPrerequisitesTimeout { /** * Exact decimal timeout height * * @generated from protobuf field: string height = 1 */ height: string; /** * Effective timeout-height delta * * @generated from protobuf field: uint64 blocks = 2 */ blocks: bigint; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesChainClock */ interface TxPrerequisitesChainClock { /** * @generated from protobuf field: uint64 snapshot_age_at_response_ms = 1 */ snapshotAgeAtResponseMs: bigint; /** * @generated from protobuf field: uint64 server_processing_ms = 2 */ serverProcessingMs: bigint; /** * @generated from protobuf field: uint64 upstream_round_trip_ms = 3 */ upstreamRoundTripMs: bigint; } /** * @generated from protobuf message injective_exchange_rpc.TxPrerequisitesBlocker */ interface TxPrerequisitesBlocker { /** * @generated from protobuf field: string code = 1 */ code: string; /** * @generated from protobuf field: string component = 2 */ component: string; /** * @generated from protobuf field: bool retryable = 3 */ retryable: boolean; } /** * @generated MessageType for protobuf message injective_exchange_rpc.CosmosCoin */ declare const CosmosCoin = new CosmosCoin$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.PrepareTxResponse */ declare const PrepareTxResponse = new PrepareTxResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.PrepareEip712Response */ declare const PrepareEip712Response = new PrepareEip712Response$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.CosmosPubKey */ declare const CosmosPubKey = new CosmosPubKey$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.BroadcastTxResponse */ declare const BroadcastTxResponse = new BroadcastTxResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.PrepareCosmosTxResponse */ declare const PrepareCosmosTxResponse = new PrepareCosmosTxResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.BroadcastCosmosTxResponse */ declare const BroadcastCosmosTxResponse = new BroadcastCosmosTxResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.GetFeePayerResponse */ declare const GetFeePayerResponse = new GetFeePayerResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.PrepareFeeGrantResponse */ declare const PrepareFeeGrantResponse = new PrepareFeeGrantResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.PrepareTxPrerequisitesResponse */ declare const PrepareTxPrerequisitesResponse = new PrepareTxPrerequisitesResponse$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesAccount */ declare const TxPrerequisitesAccount = new TxPrerequisitesAccount$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesFeeGrant */ declare const TxPrerequisitesFeeGrant = new TxPrerequisitesFeeGrant$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesTransactionContext */ declare const TxPrerequisitesTransactionContext = new TxPrerequisitesTransactionContext$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesBlock */ declare const TxPrerequisitesBlock = new TxPrerequisitesBlock$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesTimeout */ declare const TxPrerequisitesTimeout = new TxPrerequisitesTimeout$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesChainClock */ declare const TxPrerequisitesChainClock = new TxPrerequisitesChainClock$Type(); /** * @generated MessageType for protobuf message injective_exchange_rpc.TxPrerequisitesBlocker */ declare const TxPrerequisitesBlocker = new TxPrerequisitesBlocker$Type(); //#endregion //#region src/client/indexer/grpc/IndexerGrpcTransactionApi.d.ts interface PrepareTxArgs { address: AccountAddress; chainId: EvmChainId; message: any; estimateGas?: boolean; gasLimit?: number; memo?: string | number; timeoutHeight?: number; feeDenom?: string; feePrice?: string; } /** * @category Indexer Grpc API * @deprecated use IndexerGrpcWeb3GwApi */ declare class IndexerGrpcTransactionApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); prepareTxRequest(args: PrepareTxArgs): Promise; prepareExchangeTxRequest(args: PrepareTxArgs): Promise; prepareCosmosTxRequest({ memo, address, message, estimateGas, gasLimit, feeDenom, feePrice, timeoutHeight }: { address: string; message: any; estimateGas?: boolean; gasLimit?: number; memo?: string | number; timeoutHeight?: number; feeDenom?: string; feePrice?: string; }): Promise; /** * Keep in mind that the transaction is just added * to the mempool, we need to query the transaction hash * if we want to ensure that the transaction is included * in the block */ broadcastTxRequest({ signature, chainId, message, txResponse }: { signature: string; chainId: EvmChainId; useCorrectEIP712Hash?: boolean; txResponse: PrepareTxResponse; message: Record; }): Promise; /** * Keep in mind that the transaction is just added * to the mempool, we need to query the transaction hash * if we want to ensure that the transaction is included * in the block */ broadcastCosmosTxRequest({ address, signature, txRaw, pubKey }: { address: string; signature: string; txRaw: TxRaw; pubKey: { type: string; value: string; }; }): Promise; fetchFeePayer(): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcWeb3GwApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcWeb3GwApi extends IndexerGrpcTransactionApi { protected module: string; prepareFeeGrantRequest({ granteeAddress }: { granteeAddress: AccountAddress; }): Promise; prepareTxPrerequisites({ schemaVersion, chainId, address, timeoutInBlocks, requestFeeGrant, knownRevision, rejectedFeeGrant }: { schemaVersion?: string; chainId?: string; address: AccountAddress; timeoutInBlocks?: number; requestFeeGrant?: boolean; knownRevision?: string; rejectedFeeGrant?: { revision: string; chainCode: number; transactionHash?: string; }; }): Promise; prepareEip712Request({ address, chainId, message, memo, sequence, accountNumber, estimateGas, gasLimit, feeDenom, feePrice, timeoutHeight, eip712Version }: { address: AccountAddress; chainId: EvmChainId; message: any; estimateGas?: boolean; gasLimit?: number; memo?: string | number; timeoutHeight?: number; feeDenom?: string; feePrice?: string; sequence?: number; accountNumber?: number; eip712Version?: string; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcAccountApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcAccountApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); /** * @deprecated - use IndexerGrpcAccountPortfolioApi.fetchPortfolio instead */ fetchPortfolio(_address: string): Promise; fetchRewards({ address, epoch }: { address: string; epoch: number; }): Promise; fetchSubaccountsList(address: string): Promise; fetchSubaccountBalance(subaccountId: string, denom: string): Promise; fetchSubaccountBalancesList(subaccountId: string): Promise; fetchSubaccountHistory({ subaccountId, denom, transferTypes, pagination }: { subaccountId: string; denom?: string; transferTypes?: string[]; pagination?: PaginationOption; }): Promise<{ transfers: SubaccountTransfer[]; pagination: ExchangePagination; }>; fetchSubaccountOrderSummary({ subaccountId, marketId, orderDirection }: { subaccountId: string; marketId?: string; orderDirection?: string; }): Promise; fetchOrderStates(params?: { spotOrderHashes?: string[]; derivativeOrderHashes?: string[]; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcAuctionApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcAuctionApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchAuction(round?: number): Promise<{ auction: Auction; bids: IndexerAuctionBid[]; }>; fetchAuctions(): Promise; fetchInjBurnt(): Promise; fetchAuctionsHistoryV2({ token, endTime, perPage }: { token?: string; endTime?: string; perPage?: number; }): Promise<{ auctions: AuctionV2[]; next: string[]; }>; fetchAuctionV2(round?: number | string): Promise; fetchAccountAuctionsV2({ token, address, perPage }: { token?: string; address: string; perPage?: number; }): Promise<{ auctions: AccountAuctionV2[]; next: string[]; total: bigint; }>; fetchAuctionStats(): Promise; fetchAccountAuctionStatus({ address, round }: { address: string; round?: string | number; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcTradingApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcTradingApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchTradingStats(): Promise; fetchGridStrategies({ skip, state, limit, withTvl, endTime, marketId, startTime, marketType, strategyType, subaccountId, accountAddress, withPerformance, pendingExecution, lastExecutedTime, isTrailingStrategy }: { skip?: number; state?: string; limit?: number; endTime?: number; withTvl?: boolean; marketId?: string; startTime?: number; marketType?: MarketType; subaccountId?: string; strategyType?: GridStrategyType[]; accountAddress?: string; withPerformance?: boolean; pendingExecution?: boolean; lastExecutedTime?: number; isTrailingStrategy?: boolean; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcExplorerApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcExplorerApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchTxByHash(hash: string, isEvmHash?: boolean): Promise; fetchAccountTx({ address, limit, type, before, after, startTime, endTime }: { address: string; limit?: number; type?: string; before?: number; after?: number; startTime?: number; endTime?: number; }): Promise<{ txs: Transaction[]; pagination: ExchangePagination; }>; fetchValidator(validatorAddress: string): Promise; fetchValidatorUptime(validatorAddress: string): Promise; fetchPeggyDepositTxs({ sender, receiver, limit, skip }: { receiver?: string; sender?: string; limit?: number; skip?: number; }): Promise; fetchPeggyWithdrawalTxs({ sender, receiver, limit, skip }: { sender?: string; receiver?: string; limit?: number; skip?: number; }): Promise; fetchBlocks({ before, after, limit, from, to }: { before?: number; after?: number; limit?: number; from?: number; to?: number; }): Promise; fetchBlock(id: string): Promise; fetchTxs({ before, after, limit, skip, type, chainModule, startTime, endTime }: { before?: number; after?: number; limit?: number; skip?: number; type?: string; startTime?: number; endTime?: number; chainModule?: string; }): Promise; fetchIBCTransferTxs({ sender, receiver, srcChannel, srcPort, destChannel, destPort, limit, skip }: { sender?: string; receiver?: string; srcChannel?: string; srcPort?: string; destChannel?: string; destPort?: string; limit?: number; skip?: number; }): Promise; fetchExplorerStats(): Promise; fetchTxsV2({ type, token, status, perPage, endTime, startTime, blockNumber }: { type?: string; token?: string; status?: string; perPage?: number; endTime?: number; startTime?: number; blockNumber?: number; }): Promise<{ data: ExplorerTransaction[]; paging: Cursor | undefined; }>; fetchAccountTxsV2({ type, token, address, endTime, perPage, startTime }: { type?: string; token?: string; address: string; endTime?: number; perPage?: number; startTime?: number; }): Promise<{ data: ExplorerTransaction[]; paging: Cursor | undefined; }>; fetchBlocksV2({ token, perPage }: { token?: string; perPage?: number; }): Promise<{ paging: Cursor | undefined; data: Block$1[]; }>; fetchContractTxsV2({ to, from, token, height, status, perPage, contractAddress }: { to?: number; from?: number; token?: string; height?: string; status?: string; perPage?: number; contractAddress: string; }): Promise<{ data: ContractTransaction[]; paging: Cursor | undefined; }>; fetchBankTransfersV2({ senders, address, endTime, perPage, startTime, recipients, token, isCommunityPoolRelated }: { token?: string; perPage?: number; endTime?: number; startTime?: number; address?: string[]; senders?: string[]; recipients?: string[]; isCommunityPoolRelated?: boolean; }): Promise<{ data: BankTransfer[]; paging: Cursor | undefined; }>; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcCampaignApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcCampaignApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchCampaign({ skip, limit, marketId, campaignId, accountAddress, contractAddress }: { skip?: string; limit?: number; marketId?: string; campaignId: string; accountAddress?: string; contractAddress?: string; }): Promise<{ campaign: Campaign | undefined; users: CampaignUser[]; paging: ExchangePagination; }>; fetchCampaigns({ type, active, limit, cursor, status }: { type?: string; active?: boolean; limit?: number; cursor?: string; status?: string; }): Promise<{ campaigns: CampaignV2[]; cursor: string; }>; fetchRound({ roundId, toRoundId, accountAddress, contractAddress }: { roundId?: string; toRoundId?: number; accountAddress?: string; contractAddress?: string; }): Promise<{ campaigns: Campaign[]; accumulatedRewards: Coin$3[]; rewardCount: number; }>; fetchGuilds({ skip, limit, sortBy, campaignContract }: { skip?: number; limit?: number; sortBy: string; campaignContract: string; }): Promise<{ guilds: Guild[]; paging: ExchangePagination; updatedAt: number; summary: GuildCampaignSummary | undefined; }>; fetchGuildMember({ address, campaignContract }: { address: string; campaignContract: string; }): Promise<{ info: GuildMember | undefined; }>; fetchGuildMembers({ skip, limit, sortBy, guildId, campaignContract, includeGuildInfo }: { skip?: number; limit?: number; sortBy?: string; guildId: string; campaignContract: string; includeGuildInfo: boolean; }): Promise<{ members: GuildMember[]; paging: ExchangePagination; guildInfo: Guild | undefined; }>; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcArchiverApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcArchiverApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchHistoricalBalance({ account, resolution }: { account: string; resolution: string; }): Promise; fetchHistoricalRpnl({ account, resolution }: { account: string; resolution: string; }): Promise; fetchHistoricalVolumes({ account, resolution }: { account: string; resolution: string; }): Promise; fetchPnlLeaderboard({ startDate, endDate, limit, account }: { startDate: string; endDate: string; limit?: number; account?: string; }): Promise; fetchVolLeaderboard({ startDate, endDate, limit, account }: { startDate: string; endDate: string; limit?: number; account?: string; }): Promise; fetchPnlLeaderboardFixedResolution({ resolution, limit, account }: { resolution: string; limit?: number; account?: string; }): Promise; fetchVolLeaderboardFixedResolution({ resolution, limit, account }: { resolution: string; limit?: number; account?: string; }): Promise; fetchDenomHolders({ denom, token, limit }: { denom: string; token?: string; limit?: number; }): Promise; fetchAccountStats({ account, period }: { account: string; period?: string; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcReferralApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcReferralApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchReferrerDetails(address: string): Promise; fetchInviteeDetails(address: string): Promise; fetchReferrerByCode(code: string): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcMegaVaultApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcMegaVaultApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchVault({ vaultAddress }: { vaultAddress: string; }): Promise; fetchVaultUser({ vaultAddress, userAddress }: { userAddress: string; vaultAddress: string; }): Promise; fetchVaultSubscriptions({ token, status, perPage, userAddress, vaultAddress }: { token?: string; status?: string; perPage?: number; userAddress: string; vaultAddress: string; }): Promise; fetchVaultRedemptions({ token, status, perPage, userAddress, vaultAddress }: { token?: string; status?: string; perPage?: number; vaultAddress: string; userAddress: string; }): Promise; fetchOperatorRedemptionBuckets({ vaultAddress, operatorAddress }: { vaultAddress: string; operatorAddress: string; }): Promise; fetchVaultTvlHistory({ since, vaultAddress, maxDataPoints }: { since: number; vaultAddress: string; maxDataPoints?: number; }): Promise; fetchVaultPnlHistory({ since, vaultAddress, maxDataPoints }: { since: number; vaultAddress: string; maxDataPoints?: number; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcDerivativesApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcDerivativesApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchMarkets(params?: { quoteDenom?: string; marketStatus?: string; marketStatuses?: string[]; }): Promise; fetchMarket(marketId: string): Promise; fetchBinaryOptionsMarkets(params?: { marketStatus?: string; quoteDenom?: string; pagination?: PaginationOption; }): Promise<{ markets: BinaryOptionsMarket$1[]; pagination: ExchangePagination; }>; fetchBinaryOptionsMarket(marketId: string): Promise; /** @deprecated - use fetchOrderbookV2 */ fetchOrderbook(_marketId: string): Promise; fetchOrders(params?: { cid?: string; tradeId?: string; marketId?: string; marketIds?: string[]; orderSide?: OrderSide$1; pagination?: PaginationOption; subaccountId?: string; isConditional?: boolean; }): Promise<{ orders: DerivativeLimitOrder$1[]; pagination: ExchangePagination; }>; fetchOrderHistory(params?: { cid?: string; state?: OrderState; tradeId?: string; marketId?: string; marketIds?: string[]; orderTypes?: OrderSide$1[]; direction?: TradeDirection; pagination?: PaginationOption; subaccountId?: string; isConditional?: boolean; executionTypes?: TradeExecutionType[]; }): Promise<{ orderHistory: DerivativeOrderHistory[]; pagination: ExchangePagination; }>; fetchPositions(params?: { marketId?: string; marketIds?: string[]; subaccountId?: string; direction?: TradeDirection; pagination?: PaginationOption; }): Promise<{ positions: Position$1[]; pagination: ExchangePagination; }>; fetchPositionsV2(params?: { address?: string; marketId?: string; marketIds?: string[]; subaccountId?: string; direction?: TradeDirection; pagination?: PaginationOption; }): Promise<{ positions: PositionV2[]; pagination: ExchangePagination; }>; fetchTrades(params?: { endTime?: number; tradeId?: string; marketId?: string; startTime?: number; marketIds?: string[]; subaccountId?: string; accountAddress?: string; direction?: TradeDirection; pagination?: PaginationOption; executionSide?: TradeExecutionSide; executionTypes?: TradeExecutionType[]; cid?: string; }): Promise<{ trades: DerivativeTrade[]; pagination: ExchangePagination; }>; fetchFundingPayments(params?: { marketId?: string; marketIds?: string[]; subaccountId?: string; pagination?: PaginationOption; }): Promise<{ fundingPayments: FundingPayment[]; pagination: ExchangePagination; }>; fetchFundingRates(params?: { marketId?: string; pagination?: PaginationOption; }): Promise<{ fundingRates: FundingRate[]; pagination: ExchangePagination; }>; fetchSubaccountOrdersList(params?: { marketId?: string; subaccountId?: string; pagination?: PaginationOption; }): Promise<{ orders: DerivativeLimitOrder$1[]; pagination: ExchangePagination; }>; fetchSubaccountTradesList(params: { marketId?: string; subaccountId?: string; direction?: TradeDirection; executionType?: TradeExecutionType; pagination?: PaginationOption; }): Promise; /** @deprecated - use fetchOrderbooksV2 */ fetchOrderbooks(_marketIds: string[]): Promise; fetchOrderbooksV2(marketIds: string[]): Promise<{ marketId: string; orderbook: OrderbookWithSequence; }[]>; fetchOrderbookV2(marketId: string): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcPortfolioApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcAccountPortfolioApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchAccountPortfolio(address: string): Promise; fetchAccountPortfolioBalances(address: string): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcWsPriceOracleApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcWsPriceOracleApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); /** * Returns latest stored derivative market index price snapshots. */ fetchLatestMarketPrices(params?: WsPriceOracleLatestMarketPricesParams): Promise; /** * Returns latest stored derivative market index price snapshots with selectable response modes. */ fetchLatestMarketPricesV2(params?: WsPriceOracleLatestMarketPricesV2Params): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcTcDerivativesApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcTcDerivativesApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchOrdersHistory(params?: { token?: string; perPage?: number; marketId?: string; direction?: string; accountAddress?: string; }): Promise; fetchTradesHistory(params?: { token?: string; sortBy?: string; endTime?: number; perPage?: number; withPnl?: boolean; marketId?: string; rfqMaker?: string; startTime?: number; direction?: string; participant?: string; sortDirection?: string; accountAddress?: string; }): Promise; fetchPositions(params?: { token?: string; perPage?: number; marketId?: string; withUpnl?: boolean; direction?: string; withCount?: boolean; accountAddress?: string; }): Promise; fetchOrders(params?: { token?: string; perPage?: number; marketId?: string; direction?: string; accountAddress?: string; }): Promise; fetchFundingPayments(params?: { token?: string; perPage?: number; marketId?: string; }): Promise; } //#endregion //#region src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.d.ts /** * @category Indexer Grpc API */ declare class IndexerGrpcInsuranceFundApi extends BaseIndexerGrpcConsumer { protected module: string; private get client(); fetchRedemptions({ denom, address, status }: { address: string; denom?: string; status?: string; }): Promise; fetchInsuranceFunds(params?: { perPage?: number; token?: string; }): Promise; fetchAllInsuranceFunds(params?: { perPage?: number; }): Promise; } //#endregion //#region src/client/base/BaseRestConsumer.d.ts /** * @hidden */ declare class BaseRestConsumer extends HttpRestClient {} //#endregion //#region src/client/indexer/rest/IndexerRestExplorerApi.d.ts /** * @category Indexer Rest API */ declare class IndexerRestExplorerApi extends BaseRestConsumer { constructor(endpoint: string); fetchBlock(blockHashHeight: string): Promise; fetchBlocks(params?: { before?: number; limit?: number; from?: number; to?: number; }): Promise<{ paging: Paging; blocks: Block$1[]; }>; fetchBlocksWithTx(params?: { before?: number; limit?: number; from?: number; to?: number; }): Promise<{ paging: Paging; blocks: ExplorerBlockWithTxs[]; }>; fetchTransactions(params?: { fromNumber?: number; limit?: number; before?: number; after?: number; toNumber?: number; skip?: number; startTime?: number; endTime?: number; status?: MsgStatus; type?: MsgType[]; }): Promise<{ paging: Paging; transactions: ExplorerTransaction[]; }>; fetchAccountTransactions({ account, params }: { account: string; params?: { skip?: number; limit?: number; after?: number; before?: number; type?: MsgType[]; status?: MsgStatus; endTime?: number; toNumber?: number; fromNumber?: number; startTime?: number; withClaimId?: boolean; }; }): Promise<{ paging: Paging; transactions: ExplorerTransaction[]; }>; fetchTransaction(hash: string, isEvmTx?: boolean): Promise; fetchValidators(): Promise[]>; fetchValidatorUptime(validatorConsensusAddress: string): Promise; fetchContract(contractAddress: string): Promise; fetchContracts(params?: { assetsOnly?: boolean; fromNumber?: number; codeId?: string | number; limit?: number; skip?: number; label?: string; token?: string; lookup?: string; }): Promise<{ paging: Paging; contracts: Contract[]; }>; fetchContractTransactions({ contractAddress, params }: { contractAddress: string; params?: { fromNumber?: number; limit?: number; toNumber?: number; skip?: number; }; }): Promise<{ paging: Paging; transactions: ContractTransaction[]; }>; fetchContractTransactionsWithMessages({ contractAddress, params }: { contractAddress: string; params?: { fromNumber?: number; limit?: number; toNumber?: number; skip?: number; }; }): Promise<{ paging: Paging; transactions: ContractTransactionWithMessages[]; }>; fetchWasmCode(codeId: number): Promise; fetchWasmCodes(params?: { fromNumber?: number; limit?: number; toNumber?: number; }): Promise<{ paging: Paging; wasmCodes: WasmCode[]; }>; fetchCW20Balances(address: string): Promise; fetchCW20BalancesNoThrow(address: string): Promise; fetchBankTransfers(params: { limit?: number; skip?: number; startTime?: number; endTime?: number; address?: string; isCommunitySpendPool?: boolean; senders?: string; recipients?: string; }): Promise<{ paging: Paging; data: BankTransfer[]; }>; } //#endregion //#region src/client/indexer/rest/IndexerRestSpotChronosApi.d.ts /** * @category Indexer Chronos API */ declare class IndexerRestSpotChronosApi extends BaseRestConsumer { fetchMarketSummary(marketId: string): Promise; fetchMarketsSummary(): Promise; } //#endregion //#region src/client/indexer/rest/IndexerRestMarketChronosApi.d.ts declare class IndexerRestMarketChronosApi extends BaseRestConsumer { fetchMarketsHistory({ marketIds, resolution, countback }: { marketIds: string[]; resolution: string | number; countback: string | number; }): Promise; } //#endregion //#region src/client/indexer/rest/IndexerRestDerivativesChronosApi.d.ts /** * @category Indexer Chronos API */ declare class IndexerRestDerivativesChronosApi extends BaseRestConsumer { fetchMarketSummary(marketId: string): Promise; fetchMarketsSummary(): Promise; } //#endregion //#region src/client/indexer/rest/IndexerRestLeaderboardChronosApi.d.ts /** * @category Indexer Chronos API */ declare class IndexerRestLeaderboardChronosApi extends BaseRestConsumer { fetchLeaderboard(resolution: string): Promise; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcRfqTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcRfqTransformer { static grpcRfqRequestToRfqRequest(grpcRequest: GrpcRFQRequest): RFQRequestType; static grpcRfqQuoteToRfqQuote(grpcQuote: GrpcRFQQuote): RFQQuoteType; static grpcRfqSettlementToRfqSettlement(grpcSettlement: GrpcRFQSettlement): RFQSettlementType; static grpcRfqProcessedQuoteToRfqProcessedQuote(grpcProcessedQuote: GrpcRFQProcessedQuote): RFQProcessedQuoteType; static listSettlementsResponseToSettlements(response: ListSettlementResponse): SettlementsResponse; static grpcConditionalOrderToConditionalOrder(grpcOrder: GrpcRFQConditionalOrder): RFQConditionalOrder; static listConditionalOrdersResponseToConditionalOrders(response: ListConditionalOrdersResponse): RFQConditionalOrdersResponse; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcMitoTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcMitoTransformer { static grpcTokenInfoToTokenInfo(tokenInfo: TokenInfo): MitoTokenInfo; static mitoPaginationToPagination(pagination?: Pagination$1): MitoPagination | undefined; static mitoDenomBalanceToDenomBalance(denomBalance: DenomBalance$1): MitoDenomBalance; static changesResponseToChanges(changes?: Changes): MitoChanges | undefined; static mitoSubaccountInfoToSubaccountInfo(mitoSubaccountInfo?: SubaccountBalance$1): MitoSubaccountBalance | undefined; static mitoVaultToVault(vault: Vault$1): MitoVault; static mitoPriceSnapshotToPriceSnapshot(snapshot: PriceSnapshot): MitoPriceSnapshot; static portfolioResponseToPortfolio(portfolio: PortfolioResponse): MitoPortfolio; static leaderboardResponseToLeaderboard(leaderboard: LeaderboardResponse): MitoLeaderboard; static mitoTransferHistoryToTransferHistory(transfer: Transfer): MitoTransfer; static mitoLeaderboardEpochToLeaderboardEpoch(leaderboardEpoch: LeaderboardEpoch): MitoLeaderboardEpoch; static mitoStakingRewardToStakingReward(stakingReward: StakingReward): { apr: number; vaultName: string; vaultAddress: string; lockTimestamp: number; claimableRewards: Coin$9[]; stakedAmount: Coin$9 | undefined; lockedAmount: Coin$9 | undefined; }; static mitoGaugeToGauge(gauge: Gauge): MitoGauge; static mitoStakingPoolToStakingPool(stakingPool: StakingPool): MitoStakingPool; static mitoStakingActivityToStakingActivity(stakingActivity: StakingActivity): { action: string; txHash: string; staker: string; vaultAddress: string; numberByAccount: number; timestamp: number; rewardedTokens: Coin$9[]; stakeAmount: Coin$9 | undefined; }; static mitoSubscriptionToSubscription(subscription: Subscription$2): MitoSubscription; static mitoLpHolderToLPHolder(holder: Holders): MitoHolders; static mitoMissionToMission(mission: Mission): MitoMission; static mitoMissionLeaderboardEntryToMissionLeaderboardEntry(entry: MissionLeaderboardEntry): MitoMissionLeaderboardEntry; static mitoIDOProgressToIDOProgress(progress: IDOProgress): MitoIDOProgress; static mitoStakedToSubscriptionToStakedToSubscription(data: ArrayOfString): MitoStakeToSubscription; static mitoIDOToIDO(IDO: IDO): MitoIDO; static mitoIDOSubscriberToIDOSubscriber(IDOSubscriber: IDOSubscriber): MitoIDOSubscriber; static mitoIDOClaimedCoinsToIDOClaimedCoins(claimedCoins: IDOClaimedCoins): MitoIDOClaimedCoins; static mitoIDOSubscriptionToIDOSubscription(subscription: IDOSubscription): MitoIDOSubscription; static mitoIDOSubscriptionActivityToIDOSubscriptionActivity(IDOSubscriptionActivity: IDOSubscriptionActivity): MitoIDOSubscriptionActivity; static mitoWhitelistAccountToWhitelistAccount(account: WhitelistAccount): MitoWhitelistAccount; static mitoClaimReferenceToClaimReference(claimReference: ClaimReference): MitoClaimReference; static mitoVestingCOonfigToVestingConfig(config?: VestingConfig): MitoVestingConfig; static mitoIDOInitParamsToIDOVestingConfig(initParams?: InitParams): MitoVestingConfigMap | undefined; static vaultResponseToVault(response: GetVaultResponse$1): MitoVault; static vaultsResponseToVaults(response: GetVaultsResponse): { vaults: MitoVault[]; pagination?: MitoPagination; }; static lpTokenPriceChartResponseToLPTokenPriceChart(response: LPTokenPriceChartResponse): MitoPriceSnapshot[]; static vaultsByHolderAddressResponseToVaultsByHolderAddress(response: VaultsByHolderAddressResponse): { subscriptions: MitoSubscription[]; pagination: MitoPagination | undefined; }; static lpHoldersResponseToLPHolders(response: LPHoldersResponse): { holders: MitoHolders[]; pagination: MitoPagination | undefined; }; static transferHistoryResponseToTransfer(response: TransfersHistoryResponse): { transfers: MitoTransfer[]; pagination: MitoPagination | undefined; }; static leaderboardEpochsResponseToLeaderboardEpochs(response: LeaderboardEpochsResponse): { epochs: MitoLeaderboardEpoch[]; pagination: MitoPagination | undefined; }; static stakingPoolsResponseToStakingPools(response: GetStakingPoolsResponse): { pools: MitoStakingPool[]; pagination: MitoPagination | undefined; }; static stakingRewardByAccountResponseToStakingRewardByAccount(response: StakingRewardByAccountResponse): { rewards: { apr: number; vaultName: string; vaultAddress: string; lockTimestamp: number; claimableRewards: Coin$9[]; stakedAmount: Coin$9 | undefined; lockedAmount: Coin$9 | undefined; }[]; pagination: MitoPagination | undefined; }; static mitoStakingHistoryResponseTpStakingHistory(response: StakingHistoryResponse): { activities: { action: string; txHash: string; staker: string; vaultAddress: string; numberByAccount: number; timestamp: number; rewardedTokens: Coin$9[]; stakeAmount: Coin$9 | undefined; }[]; pagination: MitoPagination | undefined; }; static mitoMissionsResponseMissions(response: MissionsResponse): MitoMission[]; static mitoMissionLeaderboardResponseToMissionLeaderboard(response: MissionLeaderboardResponse): MitoMissionLeaderboard; static mitoListIDOsResponseToIDOs(response: ListIDOsResponse): { idos: MitoIDO[]; pagination: MitoPagination | undefined; }; static mitoIDOResponseToIDO(response: GetIDOResponse): { ido: MitoIDO | undefined; }; static mitoIDOSubscribersResponseToIDOSubscribers(response: GetIDOSubscribersResponse): { marketId: string; quoteDenom: string; subscribers: MitoIDOSubscriber[]; pagination: MitoPagination | undefined; tokenInfo: MitoTokenInfo | undefined; }; static mitoIDOSubscriptionResponseToIDOSubscription(response: GetIDOSubscriptionResponse): { subscription: MitoIDOSubscription | undefined; }; static mitoIDOActivitiesResponseToIDOActivities(response: GetIDOActivitiesResponse): { activities: MitoIDOSubscriptionActivity[]; pagination: MitoPagination | undefined; }; static mitoWhitelistAccountResponseToWhitelistAccount(response: GetWhitelistResponse): { idoAddress: string | undefined; accounts: MitoWhitelistAccount[]; pagination: MitoPagination | undefined; }; static claimReferencesResponseToClaimReferences(response: GetClaimReferencesResponse): { claimReferences: MitoClaimReference[]; pagination?: MitoPagination; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcSpotTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcSpotTransformer { static grpcTokenMetaToTokenMeta(tokenMeta: GrpcTokenMeta | undefined): IndexerTokenMeta | undefined; static marketResponseToMarket(response: MarketResponse$1): SpotMarket; static marketsResponseToMarkets(response: MarketsResponse$1): SpotMarket[]; static ordersResponseToOrders(response: OrdersResponse$2): { orders: SpotLimitOrder$1[]; pagination: ExchangePagination; }; static orderHistoryResponseToOrderHistory(response: OrdersHistoryResponse$2): { orderHistory: SpotOrderHistory[]; pagination: ExchangePagination; }; static tradesResponseToTrades(response: TradesResponse$2): { trades: SpotTrade[]; pagination: ExchangePagination; }; static subaccountTradesListResponseToTradesList(response: SubaccountTradesListResponse$1): SpotTrade[]; static orderbookV2ResponseToOrderbookV2(response: OrderbookV2Response$1): OrderbookWithSequence; static orderbooksV2ResponseToOrderbooksV2(response: OrderbooksV2Response$1): { marketId: string; orderbook: OrderbookWithSequence; }[]; static grpcMarketToMarket(market: GrpcSpotMarketInfo): SpotMarket; static grpcMarketsToMarkets(markets: GrpcSpotMarketInfo[]): SpotMarket[]; static grpcPriceLevelToPriceLevel(priceLevel: GrpcPriceLevel): PriceLevel; static grpcPriceLevelsToPriceLevels(priceLevels: GrpcPriceLevel[]): PriceLevel[]; static grpcOrderbookToOrderbook({ buys, sells }: { buys: GrpcPriceLevel[]; sells: GrpcPriceLevel[]; }): Orderbook; static grpcOrderbookV2ToOrderbookV2({ buys, sells, sequence }: { buys: GrpcPriceLevel[]; sells: GrpcPriceLevel[]; sequence: number; }): OrderbookWithSequence; static grpcOrderToOrder(order: GrpcSpotLimitOrder): SpotLimitOrder$1; static grpcOrdersToOrders(orders: GrpcSpotLimitOrder[]): SpotLimitOrder$1[]; static grpcOrderHistoryToOrderHistory(orderHistory: GrpcSpotOrderHistory): SpotOrderHistory; static grpcOrderHistoryListToOrderHistoryList(orderHistory: GrpcSpotOrderHistory[]): SpotOrderHistory[]; static grpcTradeToTrade(trade: GrpcSpotTrade): SpotTrade; static grpcTradesToTrades(trades: GrpcSpotTrade[]): SpotTrade[]; static grpcAtomicSwapHistoryListToAtomicSwapHistoryList(response: AtomicSwapHistoryResponse): { swapHistory: AtomicSwap[]; pagination: ExchangePagination; }; static grpcAtomicSwapHistoryToAtomicSwapHistory(swapHistory: GrpcAtomicSwap): AtomicSwap; } //#endregion //#region src/client/indexer/transformers/IndexerCampaignTransformer.d.ts declare class IndexerCampaignTransformer { static GrpcCampaignUserToCampaignUser(campaignUser: CampaignUser$1): CampaignUser; static GrpcCampaignToCampaign(campaign: Campaign$1): Campaign; static GrpcGuildToGuild(guild: Guild$1): Guild; static GrpcGuildMemberToGuildMember(member: GuildMember$1): GuildMember; static GrpcGuildCampaignSummaryToGuildCampaignSummary(campaignSummary: CampaignSummary): GuildCampaignSummary; static CampaignResponseToCampaign(response: RankingResponse): { campaign: Campaign | undefined; users: CampaignUser[]; paging: ExchangePagination; }; static RoundsResponseToRounds(response: CampaignsResponse): { campaigns: Campaign[]; accumulatedRewards: Coin$3[]; rewardCount: number; }; static GuildsResponseToGuilds(response: ListGuildsResponse): { guilds: Guild[]; paging: ExchangePagination; updatedAt: number; summary: GuildCampaignSummary | undefined; }; static GuildMemberResponseToGuildMember(response: GetGuildMemberResponse): { info: GuildMember | undefined; }; static GuildMembersResponseToGuildMembers(response: ListGuildMembersResponse): { members: GuildMember[]; paging: ExchangePagination; guildInfo: Guild | undefined; }; static GrpcCampaignV2ToCampaignV2(campaign: CampaignV2$1): CampaignV2; static CampaignsV2ResponseToCampaigns(response: CampaignsV2Response): { campaigns: CampaignV2[]; cursor: string; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcRfqGwTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcRfqGwTransformer { static grpcCosmosPubKeyToCosmosPubKey(grpcPubKey: GrpcCosmosPubKey): CosmosPubKeyType; static grpcPrepareQuoteResultToPrepareQuoteResult(grpcQuote: GrpcRFQGwPrepareQuoteResult): RFQGwPrepareQuoteResultType; static prepareAutoSignResponseToResponse(response: PrepareAutoSignResponse): RFQGwPrepareAutoSignResponseType; static prepareResponseToResponse(response: PrepareResponse): RFQGwPrepareResponseType; static prepareEip712ResponseToResponse(response: PrepareEip712Response$1): RFQGwPrepareEip712ResponseType; static prepareEip712AutoSignResponseToResponse(response: PrepareEip712AutoSignResponse): RFQGwPrepareEip712AutoSignResponseType; } //#endregion //#region src/client/indexer/transformers/IndexerRfqStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerRfqStreamTransformer { static requestStreamCallback: (response: StreamRequestResponse) => { request: RFQRequestType | undefined; }; static quoteStreamCallback: (response: StreamQuoteResponse) => { quote: RFQQuoteType | undefined; }; static settlementStreamCallback: (response: StreamSettlementResponse) => { settlement: RFQSettlementType | undefined; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcOracleTransformer.d.ts declare class IndexerGrpcOracleTransformer { static oraclesResponseToOracles(response: OracleListResponse): Oracle[]; static grpcOracleToOracle(grpcOracle: GrpcOracle): Oracle; static priceV2ResponseToPriceV2(response: PriceV2Response): OraclePriceV2[]; static grpcOraclePriceV2ToOraclePriceV2(grpcOraclePriceV2: GrpcOraclePriceV2): OraclePriceV2; } //#endregion //#region src/client/indexer/transformers/IndexerSpotStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerSpotStreamTransformer { static tradesStreamCallback: (response: StreamTradesResponse$2) => { trade: SpotTrade | undefined; operation: StreamOperation; timestamp: bigint; }; static ordersStreamCallback: (response: StreamOrdersResponse$2) => { order: SpotLimitOrder$1 | undefined; operation: StreamOperation; timestamp: bigint; }; static orderHistoryStreamCallback: (response: StreamOrdersHistoryResponse$2) => { order: SpotOrderHistory | undefined; operation: StreamOperation; timestamp: bigint; }; static orderbookV2StreamCallback: (response: StreamOrderbookV2Response$1) => { orderbook: OrderbookWithSequence | undefined; operation: StreamOperation; marketId: string; timestamp: bigint; }; static orderbookUpdateStreamCallback: (response: StreamOrderbookUpdateResponse$1) => { orderbook: OrderbookWithSequence | undefined; operation: StreamOperation; marketId: string; timestamp: bigint; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcAccountTransformer.d.ts /** * @category Indexer Grpc Transformer * */ declare class IndexerGrpcAccountTransformer { /** * * @deprecated - use IndexerGrpcAccountPortfolioApi.accountPortfolioResponseToAccountPortfolio */ static accountPortfolioResponseToAccountPortfolio(response: PortfolioResponse$1): AccountPortfolio; static grpcSubaccountPortfolioToSubaccountPortfolio(subaccountPortfolio: GrpcSubaccountPortfolio): SubaccountPortfolio; static grpcAccountPortfolioToAccountPortfolio(portfolio: GrpcAccountPortfolio): AccountPortfolio; static grpcAmountToAmount(amount: GrpcCoin): Coin; static grpcDepositToDeposit(deposit: GrpcSubaccountDeposit): SubaccountDeposit; static balancesResponseToBalances(response: SubaccountBalancesListResponse): SubaccountBalance[]; static balanceResponseToBalance(response: SubaccountBalanceEndpointResponse): SubaccountBalance; static grpcBalanceToBalance(balance: GrpcSubaccountBalance): SubaccountBalance; static grpcBalancesToBalances(balances: GrpcSubaccountBalance[]): SubaccountBalance[]; static grpcTransferHistoryEntryToTransferHistoryEntry(transfer: GrpcSubaccountBalanceTransfer): SubaccountTransfer; static tradingRewardsResponseToTradingRewards(response: RewardsResponse): TradingReward[]; static grpcTradingRewardsToTradingRewards(rewards: GrpcTradingReward[]): TradingReward[]; static grpcTradingRewardToTradingReward(reward: GrpcTradingReward): TradingReward; static transferHistoryResponseToTransferHistory(response: SubaccountHistoryResponse): { transfers: SubaccountTransfer[]; pagination: ExchangePagination; }; static grpcTransferHistoryToTransferHistory(transfers: GrpcSubaccountBalanceTransfer[]): SubaccountTransfer[]; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcAuctionTransformer { static grpcAuctionCoinToAuctionCoin(grpcCoin: GrpcAuctionCoin): AuctionCoin; static grpcAuctionCoinPricesToAuctionCoinPrices(grpcCoinPrices: GrpcAuctionCoinPrices): AuctionCoinPrices; static grpcBidToBid(grpcBid: GrpcIndexerAuctionBid): IndexerAuctionBid; static grpcAuctionToAuction(grpcAuction: GrpcAuction): Auction; static grpcAuctionV2ToAuctionV2(grpcAuction: GrpcAuctionV2): AuctionV2; static grpcAccountAuctionV2ToAccountAuctionV2(grpcAccountAuction: GrpcAccountAuctionV2): AccountAuctionV2; static auctionsResponseToAuctions(response: AuctionsResponse): Auction[]; static auctionsHistoryV2ResponseToAuctionHistory(response: AuctionsHistoryV2Response): { auctions: AuctionV2[]; next: string[]; }; static accountAuctionsV2ResponseToAccountAuctionsV2(response: AccountAuctionsV2Response): { auctions: AccountAuctionV2[]; next: string[]; total: bigint; }; static auctionResponseToAuction(response: AuctionEndpointResponse): { auction: Auction; bids: IndexerAuctionBid[]; }; static auctionStatsResponseToAuctionStats(response: AuctionsStatsResponse): AuctionsStats; static auctionAccountStatusResponseToAuctionAccountStatus(response: AuctionAccountStatusResponse): AccountAuctionStatus; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcArchiverTransformer { static grpcHistoricalBalanceToHistoricalBalance(historicalBalance: HistoricalBalance$1): HistoricalBalance; static grpcHistoricalRPNLToHistoricalRPNL(historicalRPNL: HistoricalRPNL$1): HistoricalRPNL; static grpcHistoricalVolumesToHistoricalVolumes(historicalVolumes: HistoricalVolumes$1): HistoricalVolumes; static grpcLeaderboardRowToLeaderboardRow(leaderboardRow: LeaderboardRow$1): LeaderboardRow; static grpcHistoricalBalanceResponseToHistoricalBalances(response: BalanceResponse): HistoricalBalance; static grpcHistoricalRPNLResponseToHistoricalRPNL(response: RpnlResponse): HistoricalRPNL; static grpcHistoricalVolumesResponseToHistoricalVolumes(response: VolumesResponse): HistoricalVolumes; static grpcPnlLeaderboardResponseToPnlLeaderboard(response: PnlLeaderboardResponse): PnlLeaderboard; static grpcVolLeaderboardResponseToVolLeaderboard(response: VolLeaderboardResponse): VolLeaderboard; static grpcPnlLeaderboardFixedResolutionResponseToPnlLeaderboard(response: PnlLeaderboardFixedResolutionResponse): PnlLeaderboard; static grpcVolLeaderboardFixedResolutionResponseToVolLeaderboard(response: VolLeaderboardFixedResolutionResponse): VolLeaderboard; static grpcDenomHoldersResponseToDenomHolders(response: DenomHoldersResponse): DenomHolders; static grpcAccountStatsResponseToAccountStats(response: AccountStatsResponse): AccountStats; static grpcSpotAverageEntryToSpotAverageEntry(averageEntry: SpotAverageEntry$1): SpotAverageEntry; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcExplorerTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcExplorerTransformer { static getTxByTxHashResponseToTx(tx: GetTxByTxHashResponse): Transaction; static getAccountTxsResponseToAccountTxs(response: GetAccountTxsResponse): { txs: Transaction[]; pagination: ExchangePagination; }; static getValidatorUptimeResponseToValidatorUptime(response: GetValidatorUptimeResponse): ValidatorUptime[]; static getPeggyDepositTxsResponseToPeggyDepositTxs(response: GetPeggyDepositTxsResponse): PeggyDepositTx[]; static getPeggyWithdrawalTxsResponseToPeggyWithdrawalTxs(response: GetPeggyWithdrawalTxsResponse): PeggyWithdrawalTx[]; static getIBCTransferTxsResponseToIBCTransferTxs(response: GetIBCTransferTxsResponse): IBCTransferTx[]; static validatorResponseToValidator(validator: GetValidatorResponse): ExplorerValidator; static streamTxResponseToTxs(response: StreamTxsResponse): IndexerStreamTransaction; static grpcGasFeeToGasFee(gasFee: GrpcGasFee): GasFee; static grpcTransactionToBankMsgSendTransaction(tx: GetTxByTxHashResponse): BankMsgSendTransaction; static grpcTransactionToTransaction(tx: GetTxByTxHashResponse): Transaction; static grpcTransactionsToTransactions(txs: Array): Array; static grpcTransactionToTransactionFromDetail(tx: TxDetailData): Transaction; static grpcTransactionsToTransactionsFromDetail(txs: TxDetailData[]): Array; static grpcBlockToBlock(block: BlockInfo): Block$1; static grpcBlockToBlockWithTxs(block: BlockInfo): BlockWithTxs; static grpcBlocksToBlocks(blocks: Array): Array; static grpcBlocksToBlocksWithTxs(blocks: Array): Array; static grpcValidatorDescriptionToValidatorDescription(validatorDescription: GrpcIndexerValidatorDescription): ExplorerValidatorDescription; static grpcValidatorUptimeToValidatorUptime(validatorUptime: GrpcValidatorUptime): ValidatorUptime; static grpcValidatorSlashingEventToValidatorSlashingEvent(validatorUptime: GrpcValidatorSlashingEvent): ValidatorSlashingEvent; static grpcIBCTransferTxToIBCTransferTx(grpcIBCTransferTx: GrpcIBCTransferTx): IBCTransferTx; static grpcPeggyDepositTx(grpcPeggyDepositTx: GrpcPeggyDepositTx): PeggyDepositTx; static grpcPeggyWithdrawalTx(grpcPeggyWithdrawalTx: GrpcPeggyWithdrawalTx): PeggyWithdrawalTx; static getExplorerStatsResponseToExplorerStats(response: GetStatsResponse): ExplorerStats; static getTxsV2ResponseToTxs(response: GetTxsV2Response): { data: ExplorerTransaction[]; paging: Cursor | undefined; }; static grpcTxV2ToTransaction(tx: TxData): ExplorerTransaction; static getAccountTxsV2ResponseToAccountTxs(response: GetAccountTxsV2Response): { data: ExplorerTransaction[]; paging: Cursor | undefined; }; static grpcAccountTxV2ToTransaction(tx: TxDetailData): ExplorerTransaction; static getBlocksV2ResponseToBlocks(response: GetBlocksV2Response): { paging: Cursor | undefined; data: Block$1[]; }; static grpcBlockV2ToBlock(block: BlockInfo): Block$1; static getContractTxsV2ResponseToContractTxs(response: GetContractTxsV2Response): { data: ContractTransaction[]; paging: Cursor | undefined; }; static grpcContractTxV2ToTransaction(tx: TxDetailData): ContractTransaction; static getBankTransfersV2ResponseToBankTransfers(response: GetBankTransfersV2Response): { data: BankTransfer[]; paging: Cursor | undefined; }; static grpcBankTransferV2ToBankTransfer(transfer: BankTransfer$1): BankTransfer; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcReferralTransformer.d.ts declare class IndexerGrpcReferralTransformer { static referrerDetailsResponseToReferrerDetails(address: string, response: GetReferrerDetailsResponse): ReferralDetails; static inviteeDetailsResponseToInviteeDetails(response: GetInviteeDetailsResponse): GetInviteeDetailsResponse; static referrerByCodeResponseToReferrerByCode(response: GetReferrerByCodeResponse): string; } //#endregion //#region src/client/indexer/transformers/IndexerOracleStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerOracleStreamTransformer { static pricesStreamCallback: (response: StreamPricesResponse) => { price: string; timestamp: number; operation: StreamOperation; }; static pricesByMarketsCallback: (response: StreamPricesByMarketsResponse) => { price: string; timestamp: bigint; marketId: string; }; static oracleListStreamCallback: (response: StreamOracleListResponse) => { symbol: string; oracleType: string; price: string; timestamp: number; }; } //#endregion //#region src/client/indexer/transformers/IndexerRestExplorerTransformer.d.ts /** * @category Indexer Rest Transformer */ declare class IndexerRestExplorerTransformer { static blockToBlock(block: BlockFromExplorerApiResponse): Block$1; static blocksToBlocks(blocks: BlockFromExplorerApiResponse[]): Block$1[]; static transactionToTransaction(transaction: TransactionFromExplorerApiResponse): ExplorerTransaction; static transactionsToTransactions(transactions: TransactionFromExplorerApiResponse[]): ExplorerTransaction[]; static blockWithTxToBlockWithTx(block: BlockFromExplorerApiResponse): ExplorerBlockWithTxs; static blocksWithTxsToBlocksWithTxs(blocks: BlockFromExplorerApiResponse[]): ExplorerBlockWithTxs[]; static baseTransactionToTransaction(transaction: Transaction): ExplorerTransaction; static validatorExplorerToValidator(validators: any[]): Partial[]; static validatorUptimeToExplorerValidatorUptime(validatorUptimeList: ValidatorUptimeFromExplorerApiResponse[]): ExplorerValidatorUptime[]; static contractToExplorerContract(contract: ContractExplorerApiResponse): Contract; static contractTransactionToExplorerContractTransaction(transaction: ContractTransactionExplorerApiResponse): ContractTransaction; static contractTransactionToExplorerContractTransactionWithMessages(transaction: ContractTransactionExplorerApiResponse): ContractTransactionWithMessages; static wasmCodeToExplorerWasmCode(wasmCode: WasmCodeExplorerApiResponse): WasmCode; static CW20BalanceToExplorerCW20Balance(balance: CW20BalanceExplorerApiResponse): ExplorerCW20BalanceWithToken; static bankTransferToBankTransfer(transfer: BankTransferFromExplorerApiResponse): BankTransfer; static bankTransfersToBankTransfers(transfers: BankTransferFromExplorerApiResponse[]): BankTransfer[]; } //#endregion //#region src/client/indexer/transformers/IndexerAccountStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerAccountStreamTransformer { static balanceStreamCallback: (response: StreamSubaccountBalanceResponse) => { balance: SubaccountBalance | undefined; operation: "update"; timestamp: bigint; }; } //#endregion //#region src/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerAuctionStreamTransformer { static bidsStreamCallback: (response: StreamBidsResponse$1) => { bid: IndexerAuctionBid; operation: "insert"; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.d.ts declare class IndexerGrpcMegaVaultTransformer { static vaultResponseToVault(response: GetVaultResponse): MegaVault | undefined; static userResponseToUser(response: GetUserResponse): MegaVaultUser | undefined; static subscriptionsResponseToSubscriptions(response: ListSubscriptionsResponse): MegaVaultSubscription[]; static redemptionsResponseToRedemptions(response: ListRedemptionsResponse): MegaVaultRedemption[]; static operatorRedemptionBucketsResponseToOperatorRedemptionBuckets(response: GetOperatorRedemptionBucketsResponse): MegaVaultOperatorRedemptionBucket[]; static tvlHistoryResponseToTvlHistory(response: TvlHistoryResponse): MegaVaultHistoricalTVL[]; static pnlHistoryResponseToPnlHistory(response: PnlHistoryResponse): MegaVaultHistoricalPnL[]; static grpcOperatorToOperator(operator: GrpcMegaVaultOperator): MegaVaultOperator; static grpcIncentiveToIncentive(incentive: GrpcMegaVaultIncentives): MegaVaultIncentives; static grpcTargetAprToTargetApr(targetApr: GrpcMegaVaultTargetApr): MegaVaultTargetApr; static grpcVaultStatsToVaultStats(stats: GrpcMegaVaultVaultStats): MegaVaultStats; static grpcPnlStatsToPnlStats(pnl: GrpcMegaVaultPnlStats): MegaVaultPnlStats; static grpcUnrealizedPnlToUnrealizedPnl(pnl: GrpcMegaVaultUnrealizedPnl): MegaVaultUnrealizedPnl; static grpcPnlToPnl(pnl: GrpcMegaVaultPnl): MegaVaultPnl; static grpcMaxDrawdownToMaxDrawdown(maxDrawdown: GrpcMegaVaultMaxDrawdown): MegaVaultMaxDrawdown; static grpcVolatilityStatsToVolatilityStats(volatility: GrpcMegaVaultVolatilityStats): MegaVaultVolatilityStats; static grpcVolatilityToVolatility(volatility: GrpcMegaVaultVolatility): MegaVaultVolatility; static grpcAprStatsToAprStats(apr: GrpcMegaVaultAprStats): MegaVaultAprStats; static grpcAprToApr(apr: GrpcMegaVaultApr): MegaVaultApr; static grpcUserStatsToUserStats(stats: GrpcMegaVaultUserStats): MegaVaultUserStats; static grpcSubscriptionsToSubscriptions(subscriptions: GrpcMegaVaultSubscription[]): MegaVaultSubscription[]; static grpcSubscriptionToSubscription(subscription: GrpcMegaVaultSubscription): MegaVaultSubscription; static grpcRedemptionToRedemption(redemption: GrpcMegaVaultRedemption): MegaVaultRedemption; static grpcOperatorRedemptionBucketToOperatorRedemptionBucket(bucket: GrpcMegaVaultOperatorRedemptionBucket): MegaVaultOperatorRedemptionBucket; static grpcHistoricalTVLToHistoricalTVL(history: GrpcMegaVaultHistoricalTVL): MegaVaultHistoricalTVL; static grpcHistoricalPnLToHistoricalPnL(history: GrpcMegaVaultHistoricalPnL): MegaVaultHistoricalPnL; static grpcOperationStatusLogEntryToOperationStatusLogEntry(log: GrpcMegaVaultOperationStatusLogEntry): OperationStatusLogEntry; } //#endregion //#region src/client/indexer/transformers/IndexerArchiverStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerArchiverStreamTransformer { static spotAverageEntriesStreamCallback: (response: StreamSpotAverageEntriesResponse) => { averageEntry: SpotAverageEntry | undefined; operation: "update"; timestamp: number; }; } //#endregion //#region src/client/indexer/transformers/IndexerExplorerStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class ExplorerStreamTransformer { static blocksStreamCallback: (response: StreamBlocksResponse) => { block: Block$1; operation: "insert"; }; static blocksWithTxsStreamCallback: (response: StreamBlocksResponse) => { block: BlockWithTxs; operation: "insert"; }; static transactionsStreamCallback: (response: StreamTxsResponse) => { block: IndexerStreamTransaction; operation: "insert"; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcDerivativeTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcDerivativeTransformer { static grpcTokenMetaToTokenMeta(tokenMeta: GrpcTokenMeta | undefined): IndexerTokenMeta | undefined; static grpcPerpetualMarketInfoToPerpetualMarketInfo(perpetualMarketInfo: GrpcPerpetualMarketInfo | undefined): PerpetualMarketInfo$1 | undefined; static grpcPerpetualMarketFundingToPerpetualMarketFunding(perpetualMarketFunding: GrpcPerpetualMarketFunding | undefined): PerpetualMarketFunding$1 | undefined; static grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo(expiryFuturesMarketInfo: GrpcExpiryFuturesMarketInfo | undefined): ExpiryFuturesMarketInfo$1 | undefined; static marketResponseToMarket(response: MarketResponse): DerivativeMarket; static marketsResponseToMarkets(response: MarketsResponse): DerivativeMarket[]; static ordersResponseToOrders(response: OrdersResponse$1): { orders: DerivativeLimitOrder$1[]; pagination: ExchangePagination; }; static orderHistoryResponseToOrderHistory(response: OrdersHistoryResponse$1, isConditional?: boolean): { orderHistory: DerivativeOrderHistory[]; pagination: ExchangePagination; }; static positionsResponseToPositions(response: PositionsResponse$1): { positions: Position$1[]; pagination: ExchangePagination; }; static positionsV2ResponseToPositionsV2(response: PositionsV2Response): { positions: PositionV2[]; pagination: ExchangePagination; }; static tradesResponseToTrades(response: TradesResponse$1): { trades: DerivativeTrade[]; pagination: ExchangePagination; }; static subaccountTradesListResponseToSubaccountTradesList(response: SubaccountTradesListResponse): DerivativeTrade[]; static fundingPaymentsResponseToFundingPayments(response: FundingPaymentsResponse$1): { fundingPayments: FundingPayment[]; pagination: ExchangePagination; }; static fundingRatesResponseToFundingRates(response: FundingRatesResponse): { fundingRates: FundingRate[]; pagination: ExchangePagination; }; static orderbookV2ResponseToOrderbookV2(response: OrderbookV2Response): OrderbookWithSequence; static orderbooksV2ResponseToOrderbooksV2(response: OrderbooksV2Response): { marketId: string; orderbook: OrderbookWithSequence; }[]; static binaryOptionsMarketResponseToBinaryOptionsMarket(response: BinaryOptionsMarketResponse): BinaryOptionsMarket$1; static binaryOptionsMarketResponseWithPaginationToBinaryOptionsMarket(response: BinaryOptionsMarketsResponse): { markets: BinaryOptionsMarket$1[]; pagination: ExchangePagination; }; static binaryOptionsMarketsResponseToBinaryOptionsMarkets(response: BinaryOptionsMarketsResponse): BinaryOptionsMarket$1[]; static grpcBinaryOptionsMarketToBinaryOptionsMarket(market: GrpcBinaryOptionsMarketInfo): BinaryOptionsMarket$1; static grpcBinaryOptionsMarketsToBinaryOptionsMarkets(markets: GrpcBinaryOptionsMarketInfo[]): BinaryOptionsMarket$1[]; static grpcMarketToMarket(market: GrpcDerivativeMarketInfo): DerivativeMarket; static grpcMarketsToMarkets(markets: GrpcDerivativeMarketInfo[]): DerivativeMarket[]; static grpcPositionDeltaToPositionDelta(positionDelta: GrpcPositionDelta): PositionDelta; static grpcPriceLevelToPriceLevel(priceLevel: GrpcPriceLevel): PriceLevel; static grpcPriceLevelsToPriceLevels(priceLevels: GrpcPriceLevel[]): PriceLevel[]; static grpcOrderbookToOrderbook({ buys, sells }: { buys: GrpcPriceLevel[]; sells: GrpcPriceLevel[]; }): Orderbook; static grpcOrderbookV2ToOrderbookV2({ sequence, buys, sells }: { sequence: number; buys: GrpcPriceLevel[]; sells: GrpcPriceLevel[]; }): OrderbookWithSequence; static priceLevelsToGrpcPriceLevels(priceLevels: PriceLevel[]): GrpcPriceLevel[]; static grpcOrderToOrder(order: GrpcDerivativeLimitOrder): DerivativeLimitOrder$1; static grpcOrdersToOrders(orders: GrpcDerivativeLimitOrder[]): DerivativeLimitOrder$1[]; static grpcOrderHistoryToOrderHistory(orderHistory: GrpcDerivativeOrderHistory): DerivativeOrderHistory; static grpcOrderHistoryListToOrderHistoryList(orderHistory: GrpcDerivativeOrderHistory[], isConditional?: boolean): DerivativeOrderHistory[]; static grpcPositionToPosition(position: GrpcDerivativePosition): Position$1; static grpcPositionV2ToPositionV2(position: GrpcDerivativePositionV2): PositionV2; static grpcPositionsToPositions(positions: GrpcDerivativePosition[]): Position$1[]; static grpcPositionsV2ToPositionsV2(positions: GrpcDerivativePositionV2[]): PositionV2[]; static grpcTradeToTrade(trade: GrpcDerivativeTrade): DerivativeTrade; static grpcTradesToTrades(trades: GrpcDerivativeTrade[]): DerivativeTrade[]; static grpcFundingPaymentToFundingPayment(fundingPayment: GrpcFundingPayment): FundingPayment; static grpcFundingPaymentsToFundingPayments(fundingPayments: GrpcFundingPayment[]): FundingPayment[]; static grpcFundingRateToFundingRate(fundingRate: GrpcFundingRate): FundingRate; static grpcFundingRatesToFundingRates(fundingRates: GrpcFundingRate[]): FundingRate[]; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerGrpcMitoStreamTransformer { static transfersStreamCallback: (response: StreamTransfersResponse) => { transfer: MitoTransfer | undefined; opType: StreamOperation; }; static vaultStreamCallback: (response: StreamVaultResponse) => { vault: MitoVault | undefined; opType: StreamOperation; }; static vaultHolderSubscriptionStreamCallback: (response: StreamHolderSubscriptionResponse) => { subscription: MitoSubscription | undefined; opType: StreamOperation; }; static stakingRewardByAccountStreamCallback: (response: StreamStakingRewardByAccountResponse) => { stakingReward: { apr: number; vaultName: string; vaultAddress: string; lockTimestamp: number; claimableRewards: Coin$9[]; stakedAmount: Coin$9 | undefined; lockedAmount: Coin$9 | undefined; } | undefined; opType: StreamOperation; }; static historicalStakingStreamCallback: (response: StreamHistoricalStakingResponse) => { historicalStaking: { action: string; txHash: string; staker: string; vaultAddress: string; numberByAccount: number; timestamp: number; rewardedTokens: Coin$9[]; stakeAmount: Coin$9 | undefined; } | undefined; opType: StreamOperation; }; } //#endregion //#region src/client/indexer/transformers/IndexerAccountPortfolioTransformer.d.ts declare class IndexerGrpcAccountPortfolioTransformer { static accountPortfolioResponseToAccountPortfolio(response: AccountPortfolioResponse, address: string): AccountPortfolioV2; static accountPortfolioBalancesResponseToAccountPortfolioBalances(response: AccountPortfolioBalancesResponse, address: string): AccountPortfolioBalances; static grpcPositionWithUPNLToPositionWithUPNL(positionsWithUPNL: GrpcPositionsWithUPNL): PositionsWithUPNL; static grpcSubaccountDepositToSubaccountDeposit(subaccountDeposit: GrpcSubaccountDepositV2): SubaccountDepositV2; static grpcSubaccountBalanceToSubaccountBalance(subaccountBalance: GrpcPortfolioSubaccountBalanceV2): PortfolioSubaccountBalanceV2; } //#endregion //#region src/client/indexer/transformers/IndexerDerivativeStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerDerivativeStreamTransformer { static tradesStreamCallback: (response: StreamTradesResponse$1) => { trade: DerivativeTrade | undefined; operation: StreamOperation; timestamp: bigint; }; static positionStreamCallback: (response: StreamPositionsResponse$1) => { position: Position$1 | undefined; timestamp: bigint; }; static ordersStreamCallback: (response: StreamOrdersResponse$1) => { order: DerivativeLimitOrder$1 | undefined; operation: StreamOperation; timestamp: bigint; }; static orderHistoryStreamCallback: (response: StreamOrdersHistoryResponse$1) => { order: DerivativeOrderHistory | undefined; operation: StreamOperation; timestamp: bigint; }; static orderbookV2StreamCallback: (response: StreamOrderbookV2Response) => { orderbook: OrderbookWithSequence | undefined; operation: StreamOperation; marketId: string; timestamp: bigint; }; static orderbookUpdateStreamCallback: (response: StreamOrderbookUpdateResponse) => { orderbook: OrderbookWithSequence | undefined; operation: StreamOperation; marketId: string; timestamp: bigint; }; static positionV2StreamCallback: (response: StreamPositionsV2Response) => { position: PositionV2 | undefined; timestamp: bigint; operationType: string; }; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcInsuranceFundTransformer { static insuranceFundsResponseToInsuranceFunds(response: FundsResponse): InsuranceFundsResponse; static redemptionsResponseToRedemptions(response: RedemptionsResponse): Redemption[]; static grpcInsuranceFundToInsuranceFund(grpcInsuranceFund: GrpcIndexerInsuranceFund): IndexerInsuranceFund; static grpcInsuranceFundsToInsuranceFunds(grpcInsuranceFunds: GrpcIndexerInsuranceFund[]): IndexerInsuranceFund[]; static grpcRedemptionToRedemption(redemption: GrpcIndexerRedemptionSchedule): Redemption; static grpcRedemptionsToRedemptions(redemptions: GrpcIndexerRedemptionSchedule[]): Redemption[]; } //#endregion //#region src/client/indexer/transformers/IndexerGrpcTcDerivativesTransformer.d.ts /** * @category Indexer Grpc Transformer */ declare class IndexerGrpcTcDerivativesTransformer { static grpcPositionDeltaToPositionDelta(positionDelta: GrpcTcPositionDelta): TcPositionDelta; static grpcOrderHistoryToOrderHistory(order: GrpcTcDerivativeOrderHistory): TcDerivativeOrderHistory; static grpcTradeToTrade(trade: GrpcTcDerivativeTradeHistory): TcDerivativeTradeHistory; static grpcPositionToPosition(position: GrpcTcDerivativePosition): TcDerivativePosition; static grpcFundingPaymentToFundingPayment(fundingPayment: GrpcTcFundingPayment): TcFundingPayment; static grpcDerivativeLimitOrderToDerivativeLimitOrder(order: GrpcTcDerivativeLimitOrder): TcDerivativeLimitOrder; static ordersHistoryResponseToOrdersHistory(response: OrdersHistoryResponse): TcDerivativesOrdersHistoryResponse; static ordersResponseToOrders(response: OrdersResponse): TcDerivativeOrdersResponse; static tradesResponseToTrades(response: TradesResponse): TcDerivativeTradesResponse; static positionsResponseToPositions(response: PositionsResponse): TcDerivativesPositionsResponse; static fundingPaymentsResponseToFundingPayments(response: FundingPaymentsResponse): TcFundingPaymentsResponse; } //#endregion //#region src/client/indexer/transformers/IndexerWsPriceOracleStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerWsPriceOracleStreamTransformer { static grpcMarketStreamLegToMarketStreamLeg(leg: GrpcWsPriceOracleMarketStreamLeg): WsPriceOracleMarketStreamLeg; static grpcMarketStreamRawPayloadToMarketStreamRawPayload(raw?: GrpcWsPriceOracleMarketStreamRawPayload): WsPriceOracleMarketStreamRawPayload | undefined; static grpcLightMarketStreamMessageToLightMarketStreamMessage(response: GrpcWsPriceOracleLightMarketStreamMessage): WsPriceOracleLightMarketStreamMessage; static grpcSlimPricesToSlimPrices(slimPrices: WsPriceOracleSlimPrices): WsPriceOracleSlimPrices; static grpcMarketStreamMessageToMarketPrice(response: GrpcWsPriceOracleMarketStreamMessage): WsPriceOracleMarketPrice; static streamMarketsResponseToStreamMarkets(response: GrpcWsPriceOracleStreamMarketsResponse): WsPriceOracleStreamMarketsResponse; static streamMarketsV2ResponseToStreamMarketsV2(response: GrpcWsPriceOracleStreamMarketsV2Response): WsPriceOracleStreamMarketsV2Response; static latestMarketPricesResponseToLatestMarketPrices(response: GrpcWsPriceOracleLatestMarketPricesResponse): WsPriceOracleLatestMarketPricesResponse; static latestMarketPricesV2ResponseToLatestMarketPricesV2(response: GrpcWsPriceOracleLatestMarketPricesV2Response): WsPriceOracleLatestMarketPricesV2Response; static streamMarketsCallback: (response: StreamMarketsResponse) => WsPriceOracleStreamMarketsResponse; static streamMarketsV2Callback: (response: StreamMarketsV2Response) => WsPriceOracleStreamMarketsV2Response; } //#endregion //#region src/client/indexer/transformers/IndexerTcDerivativesStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerTcDerivativesStreamTransformer { static orderHistoryStreamCallback: (response: StreamOrdersHistoryResponse) => { operationType: string; timestamp: number; order: TcDerivativeOrderHistory | undefined; } | undefined; static tradesStreamCallback: (response: StreamTradesResponse) => { operationType: string; timestamp: number; trade: TcDerivativeTradeHistory | undefined; }; static positionsStreamCallback: (response: StreamPositionsResponse) => { timestamp: number; operationType: string; position: TcDerivativePosition | undefined; }; static ordersStreamCallback: (response: StreamOrdersResponse) => { operationType: string; timestamp: number; order: TcDerivativeLimitOrder | undefined; }; } //#endregion //#region src/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.d.ts /** * @category Indexer Stream Transformer */ declare class IndexerAccountPortfolioStreamTransformer { static accountPortfolioStreamCallback: (response: StreamAccountPortfolioResponse) => { type: string; denom: string; amount: string; subaccountId: string; }; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcSpotStream.d.ts type MarketsStreamCallback = (response: StreamMarketsResponse$1) => void; type SpotOrderbookV2StreamCallback = (response: ReturnType) => void; type SpotOrderbookUpdateStreamCallback = (response: ReturnType) => void; type SpotOrdersStreamCallback = (response: ReturnType) => void; type SpotOrderHistoryStreamCallback = (response: ReturnType) => void; type SpotTradesStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to spot market data from Injective Indexer */ declare class IndexerGrpcSpotStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** @deprecated - use streamOrderbookV2 */ streamOrderbook(_args: { marketIds: string[]; callback: any; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot orders * @param params - Stream parameters * @param params.marketId - Optional market ID to filter orders * @param params.subaccountId - Optional subaccount ID to filter orders * @param params.orderSide - Optional order side to filter * @param params.callback - Called for each order update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrders({ marketId, subaccountId, orderSide, callback, onEndCallback, onStatusCallback }: { marketId?: string; subaccountId?: string; orderSide?: OrderSide$1; callback: SpotOrdersStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot order history * @param params - Stream parameters * @param params.marketId - Optional market ID to filter orders * @param params.subaccountId - Optional subaccount ID to filter orders * @param params.orderTypes - Optional array of order types to filter * @param params.executionTypes - Optional array of execution types to filter * @param params.direction - Optional trade direction to filter * @param params.state - Optional order state to filter * @param params.callback - Called for each order history update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrderHistory({ marketId, subaccountId, orderTypes, executionTypes, direction, state, callback, onEndCallback, onStatusCallback }: { marketId?: string; subaccountId?: string; orderTypes?: OrderSide$1[]; executionTypes?: TradeExecutionType[]; direction?: TradeDirection; state?: OrderState; callback: SpotOrderHistoryStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot trades * @param params - Stream parameters * @param params.marketIds - Optional array of market IDs to filter trades * @param params.marketId - Optional market ID to filter trades * @param params.subaccountIds - Optional array of subaccount IDs to filter trades * @param params.subaccountId - Optional subaccount ID to filter trades * @param params.pagination - Optional pagination options * @param params.direction - Optional trade direction to filter * @param params.executionSide - Optional trade execution side to filter * @param params.callback - Called for each trade update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamTrades({ marketIds, marketId, subaccountIds, subaccountId, pagination, direction, executionSide, callback, onEndCallback, onStatusCallback }: { marketIds?: string[]; marketId?: string; subaccountIds?: string[]; subaccountId?: string; pagination?: PaginationOption; direction?: TradeDirection; executionSide?: TradeExecutionSide; callback: SpotTradesStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot market data * @param params - Stream parameters * @param params.marketIds - Optional array of market IDs to filter * @param params.callback - Called for each market update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamMarkets({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds?: string[]; callback: MarketsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot orderbook V2 * @param params - Stream parameters * @param params.marketIds - Array of market IDs to stream orderbook for * @param params.callback - Called for each orderbook update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrderbooksV2({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds: string[]; callback: SpotOrderbookV2StreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream spot orderbook updates * @param params - Stream parameters * @param params.marketIds - Array of market IDs to stream orderbook updates for * @param params.callback - Called for each orderbook update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrderbookUpdates({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds: string[]; callback: SpotOrderbookUpdateStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcMitoStream.d.ts type TransfersStreamCallback = (response: ReturnType) => void; type VaultStreamCallback = (response: ReturnType) => void; type VaultHolderSubscriptionStreamCallback = (response: ReturnType) => void; type StakingRewardByAccountStreamCallback = (response: ReturnType) => void; type HistoricalStakingStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to Mito vault data from Injective Indexer */ declare class IndexerGrpcMitoStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream vault transfers * @param params - Stream parameters * @param params.vault - Optional vault address to filter * @param params.account - Optional account address to filter * @param params.callback - Called for each transfer update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamTransfers({ vault, account, callback, onEndCallback, onStatusCallback }: { vault?: string; account?: string; callback: TransfersStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream vault information * @param params - Stream parameters * @param params.vault - Optional vault address to filter * @param params.callback - Called for each vault update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamVault({ vault, callback, onEndCallback, onStatusCallback }: { vault?: string; callback: VaultStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream vault holder subscriptions * @param params - Stream parameters * @param params.holderAddress - The holder address to stream subscriptions for * @param params.vaultAddress - Optional vault address to filter * @param params.stakingContractAddress - Optional staking contract address to filter * @param params.callback - Called for each subscription update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamVaultHolderSubscriptions({ holderAddress, vaultAddress, stakingContractAddress, callback, onEndCallback, onStatusCallback }: { holderAddress: string; vaultAddress?: string; stakingContractAddress?: string; callback: VaultHolderSubscriptionStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream staking rewards by account * @param params - Stream parameters * @param params.staker - The staker address to stream rewards for * @param params.stakingContractAddress - The staking contract address * @param params.callback - Called for each reward update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamStakingRewardsByAccount({ staker, callback, onEndCallback, onStatusCallback, stakingContractAddress }: { staker: string; stakingContractAddress: string; callback: StakingRewardByAccountStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream historical staking data * @param params - Stream parameters * @param params.staker - The staker address to stream data for * @param params.stakingContractAddress - The staking contract address * @param params.callback - Called for each historical staking update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamHistoricalStaking({ staker, stakingContractAddress, callback, onEndCallback, onStatusCallback }: { staker: string; stakingContractAddress: string; callback: HistoricalStakingStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcOracleStream.d.ts type OraclePriceStreamCallback = (response: ReturnType) => void; type OraclePricesByMarketsStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to oracle price data from Injective Indexer */ declare class IndexerGrpcOracleStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream oracle price updates * @param params - Stream parameters * @param params.oracleType - The oracle type to stream prices for * @param params.baseSymbol - Optional base symbol filter * @param params.quoteSymbol - Optional quote symbol filter * @param params.callback - Called for each price update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOraclePrices({ oracleType, baseSymbol, quoteSymbol, callback, onEndCallback, onStatusCallback }: { oracleType: string; baseSymbol?: string; quoteSymbol?: string; callback: OraclePriceStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream oracle prices by markets * @param params - Stream parameters * @param params.marketIds - Optional array of market IDs to filter * @param params.callback - Called for each price update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOraclePricesByMarkets({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds?: string[]; callback: OraclePricesByMarketsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcAccountStream.d.ts type BalanceStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to account data from the Injective Indexer */ declare class IndexerGrpcAccountStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream subaccount balance updates * @param params - Stream parameters * @param params.subaccountId - The subaccount ID to stream balance for * @param params.callback - Called for each balance update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamSubaccountBalance({ subaccountId, callback, onEndCallback, onStatusCallback }: { subaccountId: string; callback: BalanceStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcAuctionStream.d.ts type BidsStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to auction data from Injective Indexer */ declare class IndexerGrpcAuctionStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream auction bids * @param params - Stream parameters * @param params.callback - Called for each bid update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamBids({ callback, onEndCallback, onStatusCallback }: { callback: BidsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcTradingStream.d.ts /** * @category Indexer Grid Strategy Grpc Stream * @description Provides streaming access to grid strategy data from Injective Indexer */ declare class IndexerGrpcTradingStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream grid strategies * @param params - Stream parameters * @param params.marketId - Optional market ID to filter strategies * @param params.accountAddresses - Optional array of account addresses to filter * @param params.callback - Called for each strategy update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamGridStrategies({ marketId, callback, onEndCallback, accountAddresses, onStatusCallback }: { marketId?: string; accountAddresses?: string[]; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; callback: (response: StreamStrategyResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcArchiverStream.d.ts type SpotAverageEntriesStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to archiver data from Injective Indexer */ declare class IndexerGrpcArchiverStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream spot average entries * @param params - Stream parameters * @param params.account - The account address to stream entries for * @param params.callback - Called for each average entry update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamSpotAverageEntries({ account, callback, onEndCallback, onStatusCallback }: { account: string; callback: SpotAverageEntriesStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcExplorerStream.d.ts type BlocksStreamCallback = (response: ReturnType) => void; type BlocksWithTxsStreamCallback = (response: ReturnType) => void; type TransactionsStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to blockchain explorer data from Injective Indexer */ declare class IndexerGrpcExplorerStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream block updates * @param params - Stream parameters * @param params.callback - Called for each block update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamBlocks({ callback, onEndCallback, onStatusCallback }: { callback: BlocksStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream blocks with transactions * @param params - Stream parameters * @param params.callback - Called for each block with transactions update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamBlocksWithTxs({ callback, onEndCallback, onStatusCallback }: { callback: BlocksWithTxsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream transaction updates * @param params - Stream parameters * @param params.callback - Called for each transaction update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamTransactions({ callback, onEndCallback, onStatusCallback }: { callback: TransactionsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcWsPriceOracleStream.d.ts type WsPriceOracleMarketsStreamCallback = (response: ReturnType) => void; type WsPriceOracleMarketsV2StreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to market oracle price data from the ws price oracle service */ declare class IndexerGrpcWsPriceOracleStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream current and live derivative market oracle prices * @param params - Stream parameters * @param params.marketIds - Optional market IDs to filter * @param params.oracleTypes - Optional oracle types to filter * @param params.includeInactive - Whether inactive markets should be included * @param params.callback - Called for each market oracle update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamMarkets({ callback, marketIds, oracleTypes, onEndCallback, includeInactive, onStatusCallback }: { marketIds?: string[]; oracleTypes?: string[]; includeInactive?: boolean; callback: WsPriceOracleMarketsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream current and live derivative market oracle prices with selectable response modes * @param params - Stream parameters * @param params.marketIds - Optional market IDs to filter * @param params.oracleTypes - Optional oracle types to filter * @param params.includeInactive - Whether inactive markets should be included * @param params.mode - Optional response mode: full, light, or slim * @param params.callback - Called for each market oracle update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamMarketsV2({ mode, callback, marketIds, oracleTypes, onEndCallback, includeInactive, onStatusCallback }: { marketIds?: string[]; oracleTypes?: string[]; includeInactive?: boolean; mode?: WsPriceOracleResponseMode; callback: WsPriceOracleMarketsV2StreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcDerivativesStream.d.ts type DerivativeMarketStreamCallback = (response: StreamMarketResponse) => void; type DerivativeOrdersStreamCallback = (response: ReturnType) => void; type DerivativeOrderHistoryStreamCallback = (response: ReturnType) => void; type DerivativeTradesStreamCallback = (response: ReturnType) => void; type DerivativePositionsStreamCallback = (response: ReturnType) => void; type DerivativePositionsV2StreamCallback = (response: ReturnType) => void; type DerivativeOrderbookV2StreamCallback = (response: ReturnType) => void; type DerivativeOrderbookUpdateStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to derivatives market data from Injective Indexer */ declare class IndexerGrpcDerivativesStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream derivative orders * @param params - Stream parameters * @param params.marketId - Optional market ID to filter orders * @param params.subaccountId - Optional subaccount ID to filter orders * @param params.orderSide - Optional order side to filter * @param params.callback - Called for each order update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrders({ marketId, subaccountId, orderSide, callback, onEndCallback, onStatusCallback }: { marketId?: string; subaccountId?: string; orderSide?: OrderSide$1; callback: DerivativeOrdersStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative order history * @param params - Stream parameters * @param params.marketId - Optional market ID to filter orders * @param params.subaccountId - Optional subaccount ID to filter orders * @param params.orderTypes - Optional array of order types to filter * @param params.direction - Optional trade direction to filter * @param params.state - Optional order state to filter * @param params.executionTypes - Optional array of execution types to filter * @param params.callback - Called for each order history update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrdersHistory({ marketId, subaccountId, orderTypes, direction, state, executionTypes, callback, onEndCallback, onStatusCallback }: { marketId?: string; subaccountId?: string; orderTypes?: string[]; direction?: TradeDirection; state?: OrderState; executionTypes?: TradeExecutionType[]; callback: DerivativeOrderHistoryStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative trades * @param params - Stream parameters * @param params.marketIds - Optional array of market IDs to filter trades * @param params.marketId - Optional market ID to filter trades * @param params.subaccountIds - Optional array of subaccount IDs to filter trades * @param params.subaccountId - Optional subaccount ID to filter trades * @param params.executionSide - Optional trade execution side to filter * @param params.direction - Optional trade direction to filter * @param params.pagination - Optional pagination options * @param params.callback - Called for each trade update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamTrades({ marketIds, marketId, subaccountIds, subaccountId, executionSide, direction, pagination, callback, onEndCallback, onStatusCallback }: { marketIds?: string[]; marketId?: string; subaccountIds?: string[]; subaccountId?: string; executionSide?: TradeExecutionSide; direction?: TradeDirection; pagination?: PaginationOption; callback: DerivativeTradesStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative positions * @param params - Stream parameters * @param params.marketId - Optional market ID to filter positions * @param params.address - Optional account address to filter positions * @param params.subaccountId - Optional subaccount ID to filter positions * @param params.callback - Called for each position update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamPositions({ marketId, address, subaccountId, callback, onEndCallback, onStatusCallback }: { marketId?: string; address?: string; subaccountId?: string; callback: DerivativePositionsStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative markets * @param params - Stream parameters * @param params.marketIds - Optional array of market IDs to filter * @param params.callback - Called for each market update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamMarkets({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds?: string[]; callback: DerivativeMarketStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative orderbooks V2 * @param params - Stream parameters * @param params.marketIds - Array of market IDs to stream orderbook for * @param params.callback - Called for each orderbook update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrderbooksV2({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds: string[]; callback: DerivativeOrderbookV2StreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative orderbook updates * @param params - Stream parameters * @param params.marketIds - Array of market IDs to stream orderbook updates for * @param params.callback - Called for each orderbook update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamOrderbookUpdates({ marketIds, callback, onEndCallback, onStatusCallback }: { marketIds: string[]; callback: DerivativeOrderbookUpdateStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; /** * Stream derivative positions V2 * @param params - Stream parameters * @param params.marketId - Optional market ID to filter positions * @param params.address - Optional account address to filter positions * @param params.subaccountId - Optional subaccount ID to filter positions * @param params.callback - Called for each position update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamPositionsV2({ marketId, address, subaccountId, callback, onEndCallback, onStatusCallback }: { marketId?: string; address?: string; subaccountId?: string; callback: DerivativePositionsV2StreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/IndexerGrpcAccountPortfolioStream.d.ts type AccountPortfolioStreamCallback = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides streaming access to account portfolio data from Injective Indexer */ declare class IndexerGrpcAccountPortfolioStream { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream account portfolio updates * @param params - Stream parameters * @param params.accountAddress - The account address to stream portfolio for * @param params.subaccountId - Optional subaccount ID to filter * @param params.type - Optional portfolio type to filter * @param params.callback - Called for each portfolio update * @param params.onEndCallback - Called when stream ends normally * @param params.onStatusCallback - Called on stream errors * @returns Subscription object with unsubscribe method */ streamAccountPortfolio({ subaccountId, accountAddress, type, callback, onEndCallback, onStatusCallback }: { accountAddress: string; subaccountId?: string; type?: string; callback: AccountPortfolioStreamCallback; onEndCallback?: (status?: StreamStatusResponse) => void; onStatusCallback?: (status: StreamStatusResponse) => void; }): Subscription; } //#endregion //#region src/client/indexer/grpc_stream/stream/streamHelpers.d.ts /** * Creates a subscription wrapper for V2 streaming with proper cancellation support. * * @param stream - The ServerStreamingCall from the V2 client * @param handleResponse - Callback to process each stream response * @param onEndCallback - Optional callback when stream ends normally * @param onStatusCallback - Optional callback for stream errors * @returns Subscription object with unsubscribe method */ declare function createStreamSubscription(stream: { responses: AsyncIterable; }, handleResponse: (response: TResponse) => void, onEndCallback?: (status?: StreamStatusResponse) => void, onStatusCallback?: (status: StreamStatusResponse) => void): Subscription; //#endregion //#region src/client/indexer/grpc_stream/stream/StreamManager.d.ts /** * StreamManager - Simple registry for managing multiple V1 stream subscriptions by key * * This is a lightweight utility for storing and canceling multiple V1 RxJS-based streams. * For V2 streams with advanced lifecycle management and retry logic, use StreamManagerV2. */ declare class StreamManager { private streams; set(stream: any, streamKey: T): void; get(streamKey: T): any; exists(streamKey: T): boolean; cancelAll(): void; cancel(streamKey: T): void; cancelIfExists(streamKey: T): void; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcRfqStreamV2.d.ts type RequestStreamCallbackV2 = (response: ReturnType) => void; type QuoteStreamCallbackV2 = (response: ReturnType) => void; type SettlementStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcRfqStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); streamRequests({ marketIds, callback }: { marketIds?: string[]; callback: RequestStreamCallbackV2; }): StreamSubscription; streamQuotes({ addresses, marketIds, callback }: { addresses?: string[]; marketIds?: string[]; callback: QuoteStreamCallbackV2; }): StreamSubscription; streamSettlements({ addresses, callback }: { addresses?: string[]; callback: SettlementStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcSpotStreamV2.d.ts type SpotOrderbookUpdateStreamCallbackV2 = (response: ReturnType) => void; type SpotOrdersStreamCallbackV2 = (response: ReturnType) => void; type SpotOrderHistoryStreamCallbackV2 = (response: ReturnType) => void; type SpotTradesStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcSpotStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream spot orderbook updates * @param params.marketIds - Array of market IDs to stream * @param params.callback - Called for each orderbook update * @returns StreamSubscription */ streamOrderbookUpdates({ marketIds, callback }: { marketIds: string[]; callback: SpotOrderbookUpdateStreamCallbackV2; }): StreamSubscription; /** * Stream spot orders * @param params.marketId - Optional market ID to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.orderSide - Optional order side to filter * @param params.callback - Called for each order update * @returns StreamSubscription */ streamOrders({ marketId, subaccountId, orderSide, callback }: { marketId?: string; subaccountId?: string; orderSide?: OrderSide$1; callback: SpotOrdersStreamCallbackV2; }): StreamSubscription; /** * Stream spot order history * @param params.subaccountId - Optional subaccount ID to filter * @param params.marketId - Optional market ID to filter * @param params.orderTypes - Optional order types to filter * @param params.direction - Optional direction to filter * @param params.state - Optional state to filter * @param params.executionTypes - Optional execution types to filter * @param params.callback - Called for each order history update * @returns StreamSubscription */ streamOrderHistory({ subaccountId, marketId, orderTypes, direction, state, executionTypes, callback }: { subaccountId?: string; marketId?: string; orderTypes?: string[]; direction?: string; state?: string; executionTypes?: string[]; callback: SpotOrderHistoryStreamCallbackV2; }): StreamSubscription; /** * Stream spot trades * @param params.marketId - Optional market ID to filter * @param params.marketIds - Optional array of market IDs to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.subaccountIds - Optional array of subaccount IDs to filter * @param params.executionSide - Optional execution side to filter * @param params.direction - Optional direction to filter * @param params.executionTypes - Optional execution types to filter * @param params.callback - Called for each trade update * @returns StreamSubscription */ streamTrades({ marketId, marketIds, subaccountId, subaccountIds, executionSide, direction, executionTypes, callback }: { marketId?: string; marketIds?: string[]; subaccountId?: string; subaccountIds?: string[]; executionSide?: string; direction?: string; executionTypes?: string[]; callback: SpotTradesStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcMitoStreamV2.d.ts type TransfersStreamCallbackV2 = (response: ReturnType) => void; type VaultStreamCallbackV2 = (response: ReturnType) => void; type VaultHolderSubscriptionStreamCallbackV2 = (response: ReturnType) => void; type StakingRewardByAccountStreamCallbackV2 = (response: ReturnType) => void; type HistoricalStakingStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcMitoStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream vault transfers * @param params.vault - Optional vault address to filter * @param params.account - Optional account address to filter * @param params.callback - Called for each transfer update * @returns StreamSubscription */ streamTransfers({ vault, account, callback }: { vault?: string; account?: string; callback: TransfersStreamCallbackV2; }): StreamSubscription; /** * Stream vault information * @param params.vault - Optional vault address to filter * @param params.callback - Called for each vault update * @returns StreamSubscription */ streamVault({ vault, callback }: { vault?: string; callback: VaultStreamCallbackV2; }): StreamSubscription; /** * Stream vault holder subscriptions * @param params.holderAddress - The holder address to stream subscriptions for * @param params.vaultAddress - Optional vault address to filter * @param params.stakingContractAddress - Optional staking contract address to filter * @param params.callback - Called for each subscription update * @returns StreamSubscription */ streamVaultHolderSubscriptions({ holderAddress, vaultAddress, stakingContractAddress, callback }: { holderAddress: string; vaultAddress?: string; stakingContractAddress?: string; callback: VaultHolderSubscriptionStreamCallbackV2; }): StreamSubscription; /** * Stream staking rewards by account * @param params.staker - The staker address to stream rewards for * @param params.stakingContractAddress - The staking contract address * @param params.callback - Called for each reward update * @returns StreamSubscription */ streamStakingRewardsByAccount({ staker, stakingContractAddress, callback }: { staker: string; stakingContractAddress: string; callback: StakingRewardByAccountStreamCallbackV2; }): StreamSubscription; /** * Stream historical staking data * @param params.staker - The staker address to stream data for * @param params.stakingContractAddress - The staking contract address * @param params.callback - Called for each historical staking update * @returns StreamSubscription */ streamHistoricalStaking({ staker, stakingContractAddress, callback }: { staker: string; stakingContractAddress: string; callback: HistoricalStakingStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcOracleStreamV2.d.ts type OracleListStreamCallbackV2 = (response: ReturnType) => void; type OraclePriceStreamCallbackV2 = (response: ReturnType) => void; type OraclePricesByMarketsStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcOracleStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream oracle price updates * @param params.oracleType - The oracle type to stream prices for * @param params.baseSymbol - Optional base symbol filter * @param params.quoteSymbol - Optional quote symbol filter * @param params.callback - Called for each price update * @returns StreamSubscription */ streamOraclePrices({ oracleType, baseSymbol, quoteSymbol, callback }: { oracleType: string; baseSymbol?: string; quoteSymbol?: string; callback: OraclePriceStreamCallbackV2; }): StreamSubscription; /** * Stream oracle prices by markets * @param params.marketIds - Optional array of market IDs to filter * @param params.callback - Called for each price update * @returns StreamSubscription */ streamOraclePricesByMarkets({ marketIds, callback }: { marketIds?: string[]; callback: OraclePricesByMarketsStreamCallbackV2; }): StreamSubscription; streamOracleList({ oracleType, symbols, callback }: { oracleType?: string; symbols?: string[]; callback: OracleListStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcAccountStreamV2.d.ts type BalanceStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcAccountStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream subaccount balance updates * @param params.subaccountId - The subaccount ID to stream balance for * @param params.callback - Called for each balance update * @returns StreamSubscription */ streamSubaccountBalance({ subaccountId, callback }: { subaccountId: string; callback: BalanceStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcAuctionStreamV2.d.ts type BidsStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcAuctionStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream auction bids * @param params.callback - Called for each bid update * @returns StreamSubscription */ streamBids({ callback }: { callback: BidsStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcTradingStreamV2.d.ts type GridStrategyStreamCallbackV2 = (response: StreamStrategyResponse) => void; declare class IndexerGrpcTradingStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream grid strategies * @param params.marketId - Optional market ID to filter strategies * @param params.accountAddresses - Optional array of account addresses to filter * @param params.callback - Called for each strategy update * @returns StreamSubscription */ streamGridStrategies({ marketId, accountAddresses, callback }: { marketId?: string; accountAddresses?: string[]; callback: GridStrategyStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcArchiverStreamV2.d.ts type SpotAverageEntriesStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcArchiverStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream spot average entries * @param params.account - The account address to stream entries for * @param params.callback - Called for each average entry update * @returns StreamSubscription */ streamSpotAverageEntries({ account, callback }: { account: string; callback: SpotAverageEntriesStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcExplorerStreamV2.d.ts type BlocksStreamCallbackV2 = (response: ReturnType) => void; type BlocksWithTxsStreamCallbackV2 = (response: ReturnType) => void; type TransactionsStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcExplorerStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream block updates * @param params.callback - Called for each block update * @returns StreamSubscription */ streamBlocks({ callback }: { callback: BlocksStreamCallbackV2; }): StreamSubscription; /** * Stream blocks with transactions * @param params.callback - Called for each block with transactions update * @returns StreamSubscription */ streamBlocksWithTxs({ callback }: { callback: BlocksWithTxsStreamCallbackV2; }): StreamSubscription; /** * Stream transaction updates * @param params.callback - Called for each transaction update * @returns StreamSubscription */ streamTransactions({ callback }: { callback: TransactionsStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcWsPriceOracleStreamV2.d.ts type WsPriceOracleMarketsStreamCallbackV2 = (response: ReturnType) => void; type WsPriceOracleMarketsV2StreamCallbackV2 = (response: ReturnType) => void; /** * @category Indexer Grpc Stream * @description Provides event-based streaming access to market oracle price data from the ws price oracle service */ declare class IndexerGrpcWsPriceOracleStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream current and live derivative market oracle prices * @param params.marketIds - Optional market IDs to filter * @param params.oracleTypes - Optional oracle types to filter * @param params.includeInactive - Whether inactive markets should be included * @param params.callback - Called for each market oracle update * @returns StreamSubscription */ streamMarkets({ marketIds, oracleTypes, includeInactive, callback }: { marketIds?: string[]; oracleTypes?: string[]; includeInactive?: boolean; callback: WsPriceOracleMarketsStreamCallbackV2; }): StreamSubscription; /** * Stream current and live derivative market oracle prices with selectable response modes * @param params.marketIds - Optional market IDs to filter * @param params.oracleTypes - Optional oracle types to filter * @param params.includeInactive - Whether inactive markets should be included * @param params.mode - Optional response mode: full, light, or slim * @param params.callback - Called for each market oracle update * @returns StreamSubscription */ streamMarketsV2({ mode, callback, marketIds, oracleTypes, includeInactive }: { marketIds?: string[]; oracleTypes?: string[]; includeInactive?: boolean; mode?: WsPriceOracleResponseMode; callback: WsPriceOracleMarketsV2StreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcDerivativesStreamV2.d.ts type DerivativeMarketStreamCallbackV2 = (response: StreamMarketResponse) => void; type DerivativeOrdersStreamCallbackV2 = (response: ReturnType) => void; type DerivativeOrderHistoryStreamCallbackV2 = (response: ReturnType) => void; type DerivativeTradesStreamCallbackV2 = (response: ReturnType) => void; type DerivativePositionsStreamCallbackV2 = (response: ReturnType) => void; type DerivativePositionsV2StreamCallbackV2 = (response: ReturnType) => void; type DerivativeOrderbookV2StreamCallbackV2 = (response: ReturnType) => void; type DerivativeOrderbookUpdateStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcDerivativesStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream derivative orders * @param params.marketId - Optional market ID to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.orderSide - Optional order side to filter * @param params.callback - Called for each order update * @returns StreamSubscription */ streamOrders({ marketId, subaccountId, orderSide, callback }: { marketId?: string; subaccountId?: string; orderSide?: OrderSide$1; callback: DerivativeOrdersStreamCallbackV2; }): StreamSubscription; /** * Stream derivative order history * @param params.subaccountId - Optional subaccount ID to filter * @param params.marketId - Optional market ID to filter * @param params.orderTypes - Optional order types to filter * @param params.direction - Optional direction to filter * @param params.state - Optional state to filter * @param params.executionTypes - Optional execution types to filter * @param params.callback - Called for each order history update * @returns StreamSubscription */ streamOrdersHistory({ subaccountId, marketId, orderTypes, direction, state, executionTypes, callback }: { subaccountId?: string; marketId?: string; orderTypes?: string[]; direction?: TradeDirection; state?: OrderState; executionTypes?: TradeExecutionType[]; callback: DerivativeOrderHistoryStreamCallbackV2; }): StreamSubscription; /** * Stream derivative trades * @param params.marketId - Optional market ID to filter * @param params.marketIds - Optional array of market IDs to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.subaccountIds - Optional array of subaccount IDs to filter * @param params.executionSide - Optional execution side to filter * @param params.direction - Optional direction to filter * @param params.pagination - Optional pagination options * @param params.callback - Called for each trade update * @returns StreamSubscription */ streamTrades({ marketIds, marketId, subaccountIds, subaccountId, executionSide, direction, pagination, callback }: { marketIds?: string[]; marketId?: string; subaccountIds?: string[]; subaccountId?: string; executionSide?: TradeExecutionSide; direction?: TradeDirection; pagination?: PaginationOption; callback: DerivativeTradesStreamCallbackV2; }): StreamSubscription; /** * Stream derivative positions * @param params.marketId - Optional market ID to filter * @param params.address - Optional address to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.callback - Called for each position update * @returns StreamSubscription */ streamPositions({ marketId, address, subaccountId, callback }: { marketId?: string; address?: string; subaccountId?: string; callback: DerivativePositionsStreamCallbackV2; }): StreamSubscription; /** * Stream derivative markets * @param params.marketIds - Optional array of market IDs to filter * @param params.callback - Called for each market update * @returns StreamSubscription */ streamMarkets({ marketIds, callback }: { marketIds?: string[]; callback: DerivativeMarketStreamCallbackV2; }): StreamSubscription; /** * Stream derivative orderbooks V2 * @param params.marketIds - Array of market IDs to stream * @param params.callback - Called for each orderbook update * @returns StreamSubscription */ streamOrderbooksV2({ marketIds, callback }: { marketIds: string[]; callback: DerivativeOrderbookV2StreamCallbackV2; }): StreamSubscription; /** * Stream derivative orderbook updates * @param params.marketIds - Array of market IDs to stream * @param params.callback - Called for each orderbook update * @returns StreamSubscription */ streamOrderbookUpdates({ marketIds, callback }: { marketIds: string[]; callback: DerivativeOrderbookUpdateStreamCallbackV2; }): StreamSubscription; /** * Stream derivative positions V2 * @param params.marketId - Optional market ID to filter * @param params.address - Optional address to filter * @param params.subaccountId - Optional subaccount ID to filter * @param params.callback - Called for each position update * @returns StreamSubscription */ streamPositionsV2({ marketId, address, subaccountId, callback }: { marketId?: string; address?: string; subaccountId?: string; callback: DerivativePositionsV2StreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcTcDerivativesStreamV2.d.ts type TcDerivativeOrderHistoryStreamCallbackV2 = (response: ReturnType) => void; type TcDerivativeTradesStreamCallbackV2 = (response: ReturnType) => void; type TcDerivativePositionsStreamCallbackV2 = (response: ReturnType) => void; type TcDerivativeOrdersStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcTcDerivativesStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); streamOrdersHistory({ marketId, accountAddress, callback }: { marketId?: string; accountAddress?: string; callback: TcDerivativeOrderHistoryStreamCallbackV2; }): StreamSubscription; streamTrades({ marketId, rfqMaker, callback, accountAddress }: { marketId?: string; rfqMaker?: string; accountAddress?: string; callback: TcDerivativeTradesStreamCallbackV2; }): StreamSubscription; streamPositions({ marketId, accountAddress, callback }: { marketId?: string; accountAddress?: string; callback: TcDerivativePositionsStreamCallbackV2; }): StreamSubscription; streamOrders({ marketId, accountAddress, callback }: { marketId?: string; accountAddress?: string; callback: TcDerivativeOrdersStreamCallbackV2; }): StreamSubscription; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcAccountPortfolioStreamV2.d.ts type AccountPortfolioStreamCallbackV2 = (response: ReturnType) => void; declare class IndexerGrpcAccountPortfolioStreamV2 { private client; private transport; constructor(endpoint: string, metadata?: Record); /** * Stream account portfolio updates * @param params.accountAddress - The account address to stream portfolio for * @param params.subaccountId - Optional subaccount ID to filter * @param params.type - Optional portfolio type to filter * @param params.callback - Called for each portfolio update * @returns StreamSubscription */ streamAccountPortfolio({ accountAddress, subaccountId, type, callback }: { accountAddress: string; subaccountId?: string; type?: string; callback: AccountPortfolioStreamCallbackV2; }): StreamSubscription; } //#endregion //#region ../../node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.d.ts /** * Minimal `EventEmitter` interface that is molded against the Node.js * `EventEmitter` interface. */ declare class EventEmitter { static prefixed: string | boolean; /** * Return an array listing the events for which the emitter has registered * listeners. */ eventNames(): Array>; /** * Return the listeners registered for a given event. */ listeners>(event: T): Array>; /** * Return the number of listeners listening to a given event. */ listenerCount(event: EventEmitter.EventNames): number; /** * Calls each of the listeners registered for a given event. */ emit>(event: T, ...args: EventEmitter.EventArgs): boolean; /** * Add a listener for a given event. */ on>(event: T, fn: EventEmitter.EventListener, context?: Context): this; addListener>(event: T, fn: EventEmitter.EventListener, context?: Context): this; /** * Add a one-time listener for a given event. */ once>(event: T, fn: EventEmitter.EventListener, context?: Context): this; /** * Remove the listeners of a given event. */ removeListener>(event: T, fn?: EventEmitter.EventListener, context?: Context, once?: boolean): this; off>(event: T, fn?: EventEmitter.EventListener, context?: Context, once?: boolean): this; /** * Remove all listeners, or those of the specified event. */ removeAllListeners(event?: EventEmitter.EventNames): this; } declare namespace EventEmitter { export interface ListenerFn { (...args: Args): void; } export interface EventEmitterStatic { new (): EventEmitter; } /** * `object` should be in either of the following forms: * ``` * interface EventTypes { * 'event-with-parameters': any[] * 'event-with-example-handler': (...args: any[]) => void * } * ``` */ export type ValidEventTypes = string | symbol | object; export type EventNames = T extends string | symbol ? T : keyof T; export type ArgumentMap = { [K in keyof T]: T[K$1] extends ((...args: any[]) => void) ? Parameters : T[K$1] extends any[] ? T[K$1] : any[] }; export type EventListener> = T extends string | symbol ? (...args: any[]) => void : (...args: ArgumentMap>[Extract]) => void; export type EventArgs> = Parameters>; export const EventEmitter: EventEmitterStatic; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/StreamManagerV2.d.ts /** * StreamManagerV2 - Manages gRPC stream connections with automatic retry * * V2 Features: * - Event-based lifecycle (on/off methods) * - Automatic retry with exponential backoff * - Persistent retry mode * - Comprehensive gRPC error code mapping * - Distinguishes retryable vs non-retryable errors * */ declare class StreamManagerV2 extends EventEmitter> { private config; private state; private subscription; private retryTimeoutId; private stableConnectionTimeoutId; private retryAttempt; constructor(config: StreamManagerConfig); start(): void; stop(): void; getId(): string; /** * Destroy the stream manager and clean up all resources * Call this when the stream manager is no longer needed */ destroy(): void; getState(): StreamState; private updateState; private get isDestroyed(); private clearActiveConnection; private cleanupForDisconnect; private emitDisconnectEvent; private clearSubscription; private clearRetryTimeout; private clearStableConnectionTimeout; private calculateNextBackoff; private scheduleRetry; private handleMaxRetriesReached; private handleError; /** * Handles incoming data - calls user callback * Called automatically when user emits 'data' event from streamFactory callback */ private handleData; private handleConnected; private scheduleStableConnectionReset; private markConnectionStable; private handleDisconnect; private connect; /** * Extracts error message, code, and details from an error object */ private extractErrorInfo; } //#endregion //#region src/client/indexer/grpc_stream/streamV2/streamHelpersV2.d.ts type StreamResponseSource = { responses: AsyncIterable; }; type StreamFactory = (abortSignal: AbortSignal) => StreamResponseSource; /** * Creates an event-based subscription for StreamManager V2. * This emits 'error' and 'complete' events instead of using callbacks. * * Error Handling: * - gRPC errors are extracted with full metadata and emitted as 'error' events * - User callback errors are caught and emitted separately to distinguish from stream errors * - Aborted streams don't emit any events (clean shutdown) * * @param streamFactory - Creates the ServerStreamingCall from the V2 client * @param handleResponse - Callback to process each stream response * @returns StreamSubscription with event emitters for error/complete */ declare function createStreamSubscriptionV2(streamFactory: StreamFactory, handleResponse: (response: TResponse) => void): StreamSubscription; //#endregion //#region src/core/accounts/AccountParserNoCosmjs.d.ts declare const accountEthParser: (ethAccount: any, pubKeyTypeUrl?: string) => T; //#endregion //#region src/client/chain/grpc/ChainGrpcGovApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcGovApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchProposals({ status, pagination }: { status: ProposalStatus$1; pagination?: PaginationOption; }): Promise<{ proposals: Proposal[]; pagination: Pagination; }>; fetchProposal(proposalId: number): Promise; fetchProposalDeposits({ proposalId, pagination }: { proposalId: number; pagination?: PaginationOption; }): Promise<{ deposits: ProposalDeposit[]; pagination: Pagination; }>; fetchProposalVotes({ proposalId, pagination }: { proposalId: number; pagination?: PaginationOption; }): Promise<{ votes: Vote[]; pagination: Pagination; }>; fetchProposalTally(proposalId: number): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcIbcApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcIbcApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchDenomTrace(hash: string): Promise; fetchDenomsTrace(pagination?: PaginationOption): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcEvmApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcEvmApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchAccount(ethAddress: string): Promise<{ balance: string; codeHash: string; nonce: string; }>; fetchCosmosAccount(ethAddress: string): Promise<{ sequence: string; cosmosAddress: string; accountNumber: string; }>; fetchValidatorAccount(consAddress: string): Promise<{ sequence: string; accountNumber: string; accountAddress: string; }>; fetchBalance(ethAddress: string): Promise; fetchStorage(ethAddress: string, key: string): Promise; fetchCode(ethAddress: string): Promise>; fetchParams(): Promise; fetchBaseFee(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcAuthApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcAuthApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchAccount(address: string): Promise; fetchAccounts(pagination?: PaginationOption): Promise<{ pagination: Pagination; accounts: Account[]; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcBankApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcBankApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchBalance({ accountAddress, denom }: { accountAddress: string; denom: string; }): Promise; fetchBalances(address: string, pagination?: PaginationOption): Promise<{ balances: Coin$9[]; pagination: Pagination; }>; fetchTotalSupply(pagination?: PaginationOption): Promise<{ supply: TotalSupply; pagination: Pagination; }>; /** a way to ensure all total supply is fully fetched */ fetchAllTotalSupply(pagination?: PaginationOption): Promise<{ supply: TotalSupply; pagination: Pagination; }>; fetchSupplyOf(denom: string): Promise; fetchDenomsMetadata(pagination?: PaginationOption): Promise<{ metadatas: Metadata[]; pagination: Pagination; }>; fetchDenomMetadata(denom: string): Promise; fetchDenomOwners(denom: string, pagination?: PaginationOption): Promise<{ denomOwners: { address: string; balance: Coin$9 | undefined; }[]; pagination: Pagination; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcMintApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcMintApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchInflation(): Promise<{ inflation: BigNumber; }>; fetchAnnualProvisions(): Promise<{ annualProvisions: string; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcWasmApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcWasmApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchContractAccountsBalance({ contractAddress, pagination }: { contractAddress: string; pagination?: PaginationOption; }): Promise; fetchContractState({ contractAddress, pagination }: { contractAddress: string; pagination?: PaginationOption; }): Promise; fetchContractInfo(contractAddress: string): Promise; fetchContractHistory(contractAddress: string): Promise<{ entriesList: ContractCodeHistoryEntry[]; pagination: Pagination; }>; fetchSmartContractState(contractAddress: string, query?: string | Record): Promise; fetchRawContractState(contractAddress: string, query?: string): Promise; fetchContractCodes(pagination?: PaginationOption): Promise<{ codeInfosList: CodeInfoResponse[]; pagination: Pagination; }>; fetchContractCode(codeId: number): Promise<{ codeInfo: CodeInfoResponse; data: Uint8Array; }>; fetchContractCodeContracts(codeId: number, pagination?: PaginationOption): Promise<{ contractsList: string[]; pagination: Pagination; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcAuthZApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcAuthZApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchGrants({ pagination, granter, grantee, msgTypeUrl }: { pagination?: PaginationOption; granter: string; grantee: string; msgTypeUrl?: string; }): Promise<{ pagination: Pagination; grants: GrantWithDecodedAuthorization[]; }>; fetchGranterGrants(granter: string, pagination?: PaginationOption): Promise<{ pagination: Pagination; grants: GrantAuthorizationWithDecodedAuthorization[]; }>; fetchGranteeGrants(grantee: string, pagination?: PaginationOption): Promise<{ pagination: Pagination; grants: GrantAuthorizationWithDecodedAuthorization[]; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcPeggyApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcPeggyApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/genesis_pb.d.ts /** * @generated from protobuf message injective.wasmx.v1.RegisteredContractWithAddress */ interface RegisteredContractWithAddress { /** * @generated from protobuf field: string address = 1 */ address: string; /** * @generated from protobuf field: injective.wasmx.v1.RegisteredContract registered_contract = 2 */ registeredContract?: RegisteredContract; } /** * GenesisState defines the wasmx module's genesis state. * * @generated from protobuf message injective.wasmx.v1.GenesisState */ interface GenesisState$4 { /** * params defines all the parameters of related to wasmx. * * @generated from protobuf field: injective.wasmx.v1.Params params = 1 */ params?: Params$15; /** * registered_contracts is an array containing the genesis registered * contracts * * @generated from protobuf field: repeated injective.wasmx.v1.RegisteredContractWithAddress registered_contracts = 2 */ registeredContracts: RegisteredContractWithAddress[]; } /** * @generated MessageType for protobuf message injective.wasmx.v1.RegisteredContractWithAddress */ declare const RegisteredContractWithAddress = new RegisteredContractWithAddress$Type(); /** * @generated MessageType for protobuf message injective.wasmx.v1.GenesisState */ declare const GenesisState$4 = new GenesisState$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/query_pb.d.ts /** * QueryWasmxParamsRequest is the response type for the Query/WasmxParams RPC * method. * * @generated from protobuf message injective.wasmx.v1.QueryWasmxParamsResponse */ interface QueryWasmxParamsResponse { /** * @generated from protobuf field: injective.wasmx.v1.Params params = 1 */ params?: Params$15; } /** * @generated MessageType for protobuf message injective.wasmx.v1.QueryWasmxParamsResponse */ declare const QueryWasmxParamsResponse = new QueryWasmxParamsResponse$Type(); //#endregion //#region src/client/chain/grpc/ChainGrpcWasmXApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcWasmXApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchModuleState(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcErc20Api.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcErc20Api extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchTokenPairs(pagination?: PaginationOption): Promise<{ tokenPairs: { bankDenom: string; erc20Address: string; }[]; pagination: Pagination; }>; fetchAllTokenPairsWithPagination(pagination?: PaginationOption): Promise<{ tokenPairs: { bankDenom: string; erc20Address: string; }[]; pagination: Pagination; }>; fetchTokenPairByDenom(denom: string): Promise; fetchTokenPairByErc20Address(erc20Address: string): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcOracleApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcOracleApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcTxFeesApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcTxFeesApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchEipBaseFee(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcAuctionApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcAuctionApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchCurrentBasket(): Promise; fetchModuleState(): Promise; fetchLastAuctionResult(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcStakingApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcStakingApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchPool(): Promise; fetchValidators(pagination?: PaginationOption): Promise<{ validators: Validator[]; pagination: Pagination; }>; fetchValidator(address: string): Promise; fetchValidatorDelegations({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchValidatorDelegationsNoThrow({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchValidatorUnbondingDelegations({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ unbondingDelegations: UnBondingDelegation[]; pagination: Pagination; }>; fetchValidatorUnbondingDelegationsNoThrow({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ unbondingDelegations: UnBondingDelegation[]; pagination: Pagination; }>; fetchDelegation({ injectiveAddress, validatorAddress }: { injectiveAddress: string; validatorAddress: string; }): Promise; fetchDelegations({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchDelegationsNoThrow({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchDelegators({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchDelegatorsNoThrow({ validatorAddress, pagination }: { validatorAddress: string; pagination?: PaginationOption; }): Promise<{ delegations: Delegation[]; pagination: Pagination; }>; fetchUnbondingDelegations({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ unbondingDelegations: UnBondingDelegation[]; pagination: Pagination; }>; fetchUnbondingDelegationsNoThrow({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ unbondingDelegations: UnBondingDelegation[]; pagination: Pagination; }>; fetchReDelegations({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ redelegations: ReDelegation[]; pagination: Pagination; }>; fetchReDelegationsNoThrow({ injectiveAddress, pagination }: { injectiveAddress: string; pagination?: PaginationOption; }): Promise<{ redelegations: ReDelegation[]; pagination: Pagination; }>; } //#endregion //#region src/client/chain/grpc/ChainGrpcExchangeApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcExchangeApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchModuleState(): Promise; fetchFeeDiscountSchedule(): Promise; fetchFeeDiscountAccountInfo(injectiveAddress: string): Promise; fetchTradingRewardsCampaign(): Promise; fetchTradeRewardPoints(injectiveAddresses: string[]): Promise; fetchPendingTradeRewardPoints(injectiveAddresses: string[], timestamp?: number): Promise; fetchPositions(): Promise; fetchSubaccountTradeNonce(subaccountId: string): Promise; fetchIsOptedOutOfRewards(account: string): Promise; fetchActiveStakeGrant(account: string): Promise<{ grant: ActiveGrant$1; effectiveGrant: EffectiveGrant$1; }>; fetchDenomDecimal(denom: string): Promise; fetchDenomDecimals(): Promise; fetchDenomMinNotional(denom: string): Promise; fetchDenomMinNotionals(): Promise; fetchDerivativeMarkets(status?: string, marketIds?: string[]): Promise; fetchSpotMarkets(status?: string, marketIds?: string[]): Promise; fetchFullSpotMarkets(status?: string, marketIds?: string[]): Promise; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/orderbook_pb.d.ts /** * Spot Exchange Limit Orderbook * * @generated from protobuf message injective.exchange.v2.SpotOrderBook */ interface SpotOrderBook { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: bool isBuySide = 2 */ isBuySide: boolean; /** * @generated from protobuf field: repeated injective.exchange.v2.SpotLimitOrder orders = 3 */ orders: SpotLimitOrder[]; } /** * Derivative Exchange Limit Orderbook * * @generated from protobuf message injective.exchange.v2.DerivativeOrderBook */ interface DerivativeOrderBook { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: bool isBuySide = 2 */ isBuySide: boolean; /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativeLimitOrder orders = 3 */ orders: DerivativeLimitOrder[]; } /** * Orderbook containing limit & market conditional orders * * @generated from protobuf message injective.exchange.v2.ConditionalDerivativeOrderBook */ interface ConditionalDerivativeOrderBook { /** * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativeLimitOrder limit_buy_orders = 2 */ limitBuyOrders: DerivativeLimitOrder[]; /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativeMarketOrder market_buy_orders = 3 */ marketBuyOrders: DerivativeMarketOrder[]; /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativeLimitOrder limit_sell_orders = 4 */ limitSellOrders: DerivativeLimitOrder[]; /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativeMarketOrder market_sell_orders = 5 */ marketSellOrders: DerivativeMarketOrder[]; } /** * @generated from protobuf message injective.exchange.v2.SubaccountOrderbookMetadata */ interface SubaccountOrderbookMetadata { /** * The number of vanilla limit orders * * @generated from protobuf field: uint32 vanilla_limit_order_count = 1 */ vanillaLimitOrderCount: number; /** * The number of reduce-only limit orders * * @generated from protobuf field: uint32 reduce_only_limit_order_count = 2 */ reduceOnlyLimitOrderCount: number; /** * The aggregate quantity of the subaccount's reduce-only limit orders (in * human readable format) * * @generated from protobuf field: string aggregate_reduce_only_quantity = 3 */ aggregateReduceOnlyQuantity: string; /** * The aggregate quantity of the subaccount's vanilla limit orders (in human * readable format) * * @generated from protobuf field: string aggregate_vanilla_quantity = 4 */ aggregateVanillaQuantity: string; /** * The number of vanilla conditional orders * * @generated from protobuf field: uint32 vanilla_conditional_order_count = 5 */ vanillaConditionalOrderCount: number; /** * The number of reduce-only conditional orders * * @generated from protobuf field: uint32 reduce_only_conditional_order_count = 6 */ reduceOnlyConditionalOrderCount: number; } /** * @generated MessageType for protobuf message injective.exchange.v2.SpotOrderBook */ declare const SpotOrderBook = new SpotOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.DerivativeOrderBook */ declare const DerivativeOrderBook = new DerivativeOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.ConditionalDerivativeOrderBook */ declare const ConditionalDerivativeOrderBook = new ConditionalDerivativeOrderBook$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountOrderbookMetadata */ declare const SubaccountOrderbookMetadata = new SubaccountOrderbookMetadata$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/genesis_pb.d.ts /** * GenesisState defines the exchange module's genesis state. * * @generated from protobuf message injective.exchange.v2.GenesisState */ interface GenesisState$3 { /** * params defines all the parameters of related to exchange. * * @generated from protobuf field: injective.exchange.v2.Params params = 1 */ params?: Params$14; /** * spot_markets is an array containing the genesis trade pairs * * @generated from protobuf field: repeated injective.exchange.v2.SpotMarket spot_markets = 2 */ spotMarkets: SpotMarket$1[]; /** * derivative_markets is an array containing the genesis derivative markets * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeMarket derivative_markets = 3 */ derivativeMarkets: DerivativeMarket$1[]; /** * spot_orderbook defines the spot exchange limit orderbook active at genesis. * * @generated from protobuf field: repeated injective.exchange.v2.SpotOrderBook spot_orderbook = 4 */ spotOrderbook: SpotOrderBook[]; /** * derivative_orderbook defines the derivative exchange limit orderbook active * at genesis. * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeOrderBook derivative_orderbook = 5 */ derivativeOrderbook: DerivativeOrderBook[]; /** * balances defines the exchange users balances active at genesis. * * @generated from protobuf field: repeated injective.exchange.v2.Balance balances = 6 */ balances: Balance[]; /** * positions defines the exchange derivative positions at genesis * * @generated from protobuf field: repeated injective.exchange.v2.DerivativePosition positions = 7 */ positions: DerivativePosition[]; /** * subaccount_trade_nonces defines the subaccount trade nonces for the * subaccounts at genesis * * @generated from protobuf field: repeated injective.exchange.v2.SubaccountNonce subaccount_trade_nonces = 8 */ subaccountTradeNonces: SubaccountNonce[]; /** * expiry_futures_market_info defines the market info for the expiry futures * markets at genesis * * @generated from protobuf field: repeated injective.exchange.v2.ExpiryFuturesMarketInfoState expiry_futures_market_info_state = 9 */ expiryFuturesMarketInfoState: ExpiryFuturesMarketInfoState[]; /** * perpetual_market_info defines the market info for the perpetual derivative * markets at genesis * * @generated from protobuf field: repeated injective.exchange.v2.PerpetualMarketInfo perpetual_market_info = 10 */ perpetualMarketInfo: PerpetualMarketInfo[]; /** * perpetual_market_funding_state defines the funding state for the perpetual * derivative markets at genesis * * @generated from protobuf field: repeated injective.exchange.v2.PerpetualMarketFundingState perpetual_market_funding_state = 11 */ perpetualMarketFundingState: PerpetualMarketFundingState[]; /** * derivative_market_settlement_scheduled defines the scheduled markets for * settlement at genesis * * @generated from protobuf field: repeated injective.exchange.v2.DerivativeMarketSettlementInfo derivative_market_settlement_scheduled = 12 */ derivativeMarketSettlementScheduled: DerivativeMarketSettlementInfo[]; /** * sets spot markets as enabled * * @generated from protobuf field: bool is_spot_exchange_enabled = 13 */ isSpotExchangeEnabled: boolean; /** * sets derivative markets as enabled * * @generated from protobuf field: bool is_derivatives_exchange_enabled = 14 */ isDerivativesExchangeEnabled: boolean; /** * the current trading reward campaign info * * @generated from protobuf field: injective.exchange.v2.TradingRewardCampaignInfo trading_reward_campaign_info = 15 */ tradingRewardCampaignInfo?: TradingRewardCampaignInfo$1; /** * the current and upcoming trading reward campaign pools * * @generated from protobuf field: repeated injective.exchange.v2.CampaignRewardPool trading_reward_pool_campaign_schedule = 16 */ tradingRewardPoolCampaignSchedule: CampaignRewardPool$1[]; /** * the current trading reward account points * * @generated from protobuf field: repeated injective.exchange.v2.TradingRewardCampaignAccountPoints trading_reward_campaign_account_points = 17 */ tradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPoints[]; /** * the fee discount schedule * * @generated from protobuf field: injective.exchange.v2.FeeDiscountSchedule fee_discount_schedule = 18 */ feeDiscountSchedule?: FeeDiscountSchedule$1; /** * the cached fee discount account tiers with TTL * * @generated from protobuf field: repeated injective.exchange.v2.FeeDiscountAccountTierTTL fee_discount_account_tier_ttl = 19 */ feeDiscountAccountTierTtl: FeeDiscountAccountTierTTL[]; /** * the fee discount paid by accounts in all buckets * * @generated from protobuf field: repeated injective.exchange.v2.FeeDiscountBucketVolumeAccounts fee_discount_bucket_volume_accounts = 20 */ feeDiscountBucketVolumeAccounts: FeeDiscountBucketVolumeAccounts[]; /** * sets the first fee cycle as finished * * @generated from protobuf field: bool is_first_fee_cycle_finished = 21 */ isFirstFeeCycleFinished: boolean; /** * the current and upcoming trading reward campaign pending pools * * @generated from protobuf field: repeated injective.exchange.v2.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 22 */ pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool$1[]; /** * the pending trading reward account points * * @generated from protobuf field: repeated injective.exchange.v2.TradingRewardCampaignAccountPendingPoints pending_trading_reward_campaign_account_points = 23 */ pendingTradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPendingPoints[]; /** * the addresses opting out of trading rewards * * @generated from protobuf field: repeated string rewards_opt_out_addresses = 24 */ rewardsOptOutAddresses: string[]; /** * @generated from protobuf field: repeated injective.exchange.v2.TradeRecords historical_trade_records = 25 */ historicalTradeRecords: TradeRecords[]; /** * binary_options_markets is an array containing the genesis binary options * markets * * @generated from protobuf field: repeated injective.exchange.v2.BinaryOptionsMarket binary_options_markets = 26 */ binaryOptionsMarkets: BinaryOptionsMarket[]; /** * binary_options_markets_scheduled_for_settlement contains the marketIDs of * binary options markets scheduled for next-block settlement * * @generated from protobuf field: repeated string binary_options_market_ids_scheduled_for_settlement = 27 */ binaryOptionsMarketIdsScheduledForSettlement: string[]; /** * spot_market_ids_scheduled_to_force_close defines the scheduled markets for * forced closings at genesis * * @generated from protobuf field: repeated string spot_market_ids_scheduled_to_force_close = 28 */ spotMarketIdsScheduledToForceClose: string[]; /** * auction_exchange_transfer_denom_decimals defines the denom decimals for the * exchange. * * @generated from protobuf field: repeated injective.exchange.v2.DenomDecimals auction_exchange_transfer_denom_decimals = 29 */ auctionExchangeTransferDenomDecimals: DenomDecimals[]; /** * conditional_derivative_orderbook contains conditional orderbooks for all * markets (both lmit and market conditional orders) * * @generated from protobuf field: repeated injective.exchange.v2.ConditionalDerivativeOrderBook conditional_derivative_orderbooks = 30 */ conditionalDerivativeOrderbooks: ConditionalDerivativeOrderBook[]; /** * market_fee_multipliers contains any non-default atomic order fee * multipliers * * @generated from protobuf field: repeated injective.exchange.v2.MarketFeeMultiplier market_fee_multipliers = 31 */ marketFeeMultipliers: MarketFeeMultiplier[]; /** * @generated from protobuf field: repeated injective.exchange.v2.OrderbookSequence orderbook_sequences = 32 */ orderbookSequences: OrderbookSequence[]; /** * @generated from protobuf field: repeated injective.exchange.v2.AggregateSubaccountVolumeRecord subaccount_volumes = 33 */ subaccountVolumes: AggregateSubaccountVolumeRecord[]; /** * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume market_volumes = 34 */ marketVolumes: MarketVolume[]; /** * @generated from protobuf field: repeated injective.exchange.v2.FullGrantAuthorizations grant_authorizations = 35 */ grantAuthorizations: FullGrantAuthorizations[]; /** * @generated from protobuf field: repeated injective.exchange.v2.FullActiveGrant active_grants = 36 */ activeGrants: FullActiveGrant[]; /** * @generated from protobuf field: repeated injective.exchange.v2.DenomMinNotional denom_min_notionals = 37 */ denomMinNotionals: DenomMinNotional[]; /** * @generated from protobuf field: repeated injective.exchange.v2.SubaccountRiskProfileRecord subaccount_risk_profiles = 38 */ subaccountRiskProfiles: SubaccountRiskProfileRecord[]; } /** * @generated from protobuf message injective.exchange.v2.OrderbookSequence */ interface OrderbookSequence { /** * @generated from protobuf field: uint64 sequence = 1 */ sequence: bigint; /** * @generated from protobuf field: string market_id = 2 */ marketId: string; } /** * @generated from protobuf message injective.exchange.v2.FeeDiscountAccountTierTTL */ interface FeeDiscountAccountTierTTL { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: injective.exchange.v2.FeeDiscountTierTTL tier_ttl = 2 */ tierTtl?: FeeDiscountTierTTL$1; } /** * @generated from protobuf message injective.exchange.v2.FeeDiscountBucketVolumeAccounts */ interface FeeDiscountBucketVolumeAccounts { /** * @generated from protobuf field: int64 bucket_start_timestamp = 1 */ bucketStartTimestamp: bigint; /** * @generated from protobuf field: repeated injective.exchange.v2.AccountVolume account_volume = 2 */ accountVolume: AccountVolume[]; } /** * @generated from protobuf message injective.exchange.v2.AccountVolume */ interface AccountVolume { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: string volume = 2 */ volume: string; } /** * @generated from protobuf message injective.exchange.v2.TradingRewardCampaignAccountPoints */ interface TradingRewardCampaignAccountPoints { /** * @generated from protobuf field: string account = 1 */ account: string; /** * @generated from protobuf field: string points = 2 */ points: string; } /** * @generated from protobuf message injective.exchange.v2.TradingRewardCampaignAccountPendingPoints */ interface TradingRewardCampaignAccountPendingPoints { /** * @generated from protobuf field: int64 reward_pool_start_timestamp = 1 */ rewardPoolStartTimestamp: bigint; /** * @generated from protobuf field: repeated injective.exchange.v2.TradingRewardCampaignAccountPoints account_points = 2 */ accountPoints: TradingRewardCampaignAccountPoints[]; } /** * @generated from protobuf message injective.exchange.v2.SubaccountNonce */ interface SubaccountNonce { /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * the subaccount trade nonce * * @generated from protobuf field: injective.exchange.v2.SubaccountTradeNonce subaccount_trade_nonce = 2 */ subaccountTradeNonce?: SubaccountTradeNonce; } /** * @generated from protobuf message injective.exchange.v2.FullGrantAuthorizations */ interface FullGrantAuthorizations { /** * @generated from protobuf field: string granter = 1 */ granter: string; /** * @generated from protobuf field: string total_grant_amount = 2 */ totalGrantAmount: string; /** * @generated from protobuf field: int64 last_delegations_checked_time = 3 */ lastDelegationsCheckedTime: bigint; /** * @generated from protobuf field: repeated injective.exchange.v2.GrantAuthorization grants = 4 */ grants: GrantAuthorization$1[]; } /** * @generated from protobuf message injective.exchange.v2.FullActiveGrant */ interface FullActiveGrant { /** * @generated from protobuf field: string grantee = 1 */ grantee: string; /** * @generated from protobuf field: injective.exchange.v2.ActiveGrant active_grant = 2 */ activeGrant?: ActiveGrant; } /** * @generated from protobuf message injective.exchange.v2.SubaccountRiskProfileRecord */ interface SubaccountRiskProfileRecord { /** * @generated from protobuf field: string subaccount_id = 1 */ subaccountId: string; /** * @generated from protobuf field: injective.exchange.v2.SubaccountRiskProfile risk_profile = 2 */ riskProfile?: SubaccountRiskProfile; } /** * @generated MessageType for protobuf message injective.exchange.v2.GenesisState */ declare const GenesisState$3 = new GenesisState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OrderbookSequence */ declare const OrderbookSequence = new OrderbookSequence$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FeeDiscountAccountTierTTL */ declare const FeeDiscountAccountTierTTL = new FeeDiscountAccountTierTTL$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FeeDiscountBucketVolumeAccounts */ declare const FeeDiscountBucketVolumeAccounts = new FeeDiscountBucketVolumeAccounts$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.AccountVolume */ declare const AccountVolume = new AccountVolume$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradingRewardCampaignAccountPoints */ declare const TradingRewardCampaignAccountPoints = new TradingRewardCampaignAccountPoints$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradingRewardCampaignAccountPendingPoints */ declare const TradingRewardCampaignAccountPendingPoints = new TradingRewardCampaignAccountPendingPoints$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountNonce */ declare const SubaccountNonce = new SubaccountNonce$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FullGrantAuthorizations */ declare const FullGrantAuthorizations = new FullGrantAuthorizations$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FullActiveGrant */ declare const FullActiveGrant = new FullActiveGrant$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountRiskProfileRecord */ declare const SubaccountRiskProfileRecord = new SubaccountRiskProfileRecord$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v2/query_pb.d.ts /** * @generated from protobuf message injective.exchange.v2.QuerySubaccountOrdersResponse */ interface QuerySubaccountOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.SubaccountOrderData buy_orders = 1 */ buyOrders: SubaccountOrderData[]; /** * @generated from protobuf field: repeated injective.exchange.v2.SubaccountOrderData sell_orders = 2 */ sellOrders: SubaccountOrderData[]; } /** * @generated from protobuf message injective.exchange.v2.SubaccountOrderbookMetadataWithMarket */ interface SubaccountOrderbookMetadataWithMarket { /** * the subaccount orderbook details * * @generated from protobuf field: injective.exchange.v2.SubaccountOrderbookMetadata metadata = 1 */ metadata?: SubaccountOrderbookMetadata; /** * the market ID * * @generated from protobuf field: string market_id = 2 */ marketId: string; /** * true if the orderbook is for a buy orders * * @generated from protobuf field: bool isBuy = 3 */ isBuy: boolean; } /** * QueryExchangeParamsRequest is the response type for the Query/ExchangeParams * RPC method. * * @generated from protobuf message injective.exchange.v2.QueryExchangeParamsResponse */ interface QueryExchangeParamsResponse { /** * @generated from protobuf field: injective.exchange.v2.Params params = 1 */ params?: Params$14; } /** * QuerySubaccountDepositsResponse is the response type for the * Query/SubaccountDeposits RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountDepositsResponse */ interface QuerySubaccountDepositsResponse { /** * @generated from protobuf field: map deposits = 1 */ deposits: { [key: string]: Deposit$1; }; } /** * QueryAggregateVolumeResponse is the response type for the * Query/AggregateVolume RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAggregateVolumeResponse */ interface QueryAggregateVolumeResponse { /** * if an address is specified, then the aggregate_volumes will aggregate the * volumes across all subaccounts for the address * * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume aggregate_volumes = 1 */ aggregateVolumes: MarketVolume[]; } /** * QueryAggregateVolumesResponse is the response type for the * Query/AggregateVolumes RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAggregateVolumesResponse */ interface QueryAggregateVolumesResponse { /** * the aggregate volume records for the accounts specified * * @generated from protobuf field: repeated injective.exchange.v2.AggregateAccountVolumeRecord aggregate_account_volumes = 1 */ aggregateAccountVolumes: AggregateAccountVolumeRecord[]; /** * the aggregate volumes for the markets specified * * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume aggregate_market_volumes = 2 */ aggregateMarketVolumes: MarketVolume[]; } /** * QueryAggregateMarketVolumeResponse is the response type for the * Query/AggregateMarketVolume RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAggregateMarketVolumeResponse */ interface QueryAggregateMarketVolumeResponse { /** * @generated from protobuf field: injective.exchange.v2.VolumeRecord volume = 1 */ volume?: VolumeRecord; } /** * QueryDenomDecimalsRequest is the response type for the Query/DenomDecimals * RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsResponse */ interface QueryAuctionExchangeTransferDenomDecimalsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.DenomDecimals denom_decimals = 1 */ denomDecimals: DenomDecimals[]; } /** * QueryAggregateMarketVolumesResponse is the response type for the * Query/AggregateMarketVolumes RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAggregateMarketVolumesResponse */ interface QueryAggregateMarketVolumesResponse { /** * the aggregate volumes for the entire market * * @generated from protobuf field: repeated injective.exchange.v2.MarketVolume volumes = 1 */ volumes: MarketVolume[]; } /** * QuerySubaccountDepositsResponse is the response type for the * Query/SubaccountDeposits RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountDepositResponse */ interface QuerySubaccountDepositResponse { /** * @generated from protobuf field: injective.exchange.v2.Deposit deposits = 1 */ deposits?: Deposit$1; } /** * QuerySpotMarketsResponse is the response type for the Query/SpotMarkets RPC * method. * * @generated from protobuf message injective.exchange.v2.QuerySpotMarketsResponse */ interface QuerySpotMarketsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.SpotMarket markets = 1 */ markets: SpotMarket$1[]; } /** * QuerySpotOrderbookResponse is the response type for the Query/SpotOrderbook * RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySpotOrderbookResponse */ interface QuerySpotOrderbookResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.Level buys_price_level = 1 */ buysPriceLevel: Level[]; /** * @generated from protobuf field: repeated injective.exchange.v2.Level sells_price_level = 2 */ sellsPriceLevel: Level[]; /** * the current orderbook sequence number * * @generated from protobuf field: uint64 seq = 3 */ seq: bigint; } /** * @generated from protobuf message injective.exchange.v2.FullSpotMarket */ interface FullSpotMarket { /** * spot market details * * @generated from protobuf field: injective.exchange.v2.SpotMarket market = 1 */ market?: SpotMarket$1; /** * mid_price_and_tob defines the mid price for this market and the best ask * and bid orders * * @generated from protobuf field: injective.exchange.v2.MidPriceAndTOB mid_price_and_tob = 2 */ midPriceAndTob?: MidPriceAndTOB; } /** * QueryFullSpotMarketsResponse is the response type for the * Query/FullSpotMarkets RPC method. * * @generated from protobuf message injective.exchange.v2.QueryFullSpotMarketsResponse */ interface QueryFullSpotMarketsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.FullSpotMarket markets = 1 */ markets: FullSpotMarket[]; } /** * QuerySpotOrdersByHashesResponse is the response type for the * Query/SpotOrdersByHashes RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySpotOrdersByHashesResponse */ interface QuerySpotOrdersByHashesResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1 */ orders: TrimmedSpotLimitOrder[]; } /** * @generated from protobuf message injective.exchange.v2.TrimmedSpotLimitOrder */ interface TrimmedSpotLimitOrder { /** * price of the order (in human readable format) * * @generated from protobuf field: string price = 1 */ price: string; /** * quantity of the order (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * the amount of the quantity remaining fillable (in human readable format) * * @generated from protobuf field: string fillable = 3 */ fillable: string; /** * true if the order is a buy * * @generated from protobuf field: bool isBuy = 4 */ isBuy: boolean; /** * the order hash (optional) * * @generated from protobuf field: string order_hash = 5 */ orderHash: string; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 6 */ cid: string; } /** * QueryTraderSpotOrdersResponse is the response type for the * Query/TraderSpotOrders RPC method. * * @generated from protobuf message injective.exchange.v2.QueryTraderSpotOrdersResponse */ interface QueryTraderSpotOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1 */ orders: TrimmedSpotLimitOrder[]; } /** * QueryAccountAddressSpotOrdersResponse is the response type for the * Query/AccountAddressSpotOrders RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAccountAddressSpotOrdersResponse */ interface QueryAccountAddressSpotOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1 */ orders: TrimmedSpotLimitOrder[]; } /** * QuerySpotMidPriceAndTOBResponse is the response type for the * Query/SpotMidPriceAndTOB RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySpotMidPriceAndTOBResponse */ interface QuerySpotMidPriceAndTOBResponse { /** * mid price of the market (in human readable format) * * @generated from protobuf field: string mid_price = 1 */ midPrice: string; /** * best buy price of the market (in human readable format) * * @generated from protobuf field: string best_buy_price = 2 */ bestBuyPrice: string; /** * best sell price of the market * * @generated from protobuf field: string best_sell_price = 3 */ bestSellPrice: string; } /** * QueryDerivativeMidPriceAndTOBResponse is the response type for the * Query/GetDerivativeMidPriceAndTOB RPC method. * * @generated from protobuf message injective.exchange.v2.QueryDerivativeMidPriceAndTOBResponse */ interface QueryDerivativeMidPriceAndTOBResponse { /** * mid price of the market * * @generated from protobuf field: string mid_price = 1 */ midPrice: string; /** * best buy price of the market * * @generated from protobuf field: string best_buy_price = 2 */ bestBuyPrice: string; /** * best sell price of the market * * @generated from protobuf field: string best_sell_price = 3 */ bestSellPrice: string; } /** * QueryDerivativeOrderbookResponse is the response type for the * Query/DerivativeOrderbook RPC method. * * @generated from protobuf message injective.exchange.v2.QueryDerivativeOrderbookResponse */ interface QueryDerivativeOrderbookResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.Level buys_price_level = 1 */ buysPriceLevel: Level[]; /** * @generated from protobuf field: repeated injective.exchange.v2.Level sells_price_level = 2 */ sellsPriceLevel: Level[]; /** * the current orderbook sequence number * * @generated from protobuf field: uint64 seq = 3 */ seq: bigint; } /** * @generated from protobuf message injective.exchange.v2.TrimmedDerivativeLimitOrder */ interface TrimmedDerivativeLimitOrder { /** * price of the order (in human readable format) * * @generated from protobuf field: string price = 1 */ price: string; /** * quantity of the order (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * margin of the order (in human readable format) * * @generated from protobuf field: string margin = 3 */ margin: string; /** * the amount of the quantity remaining fillable (in human readable format) * * @generated from protobuf field: string fillable = 4 */ fillable: string; /** * true if the order is a buy * * @generated from protobuf field: bool isBuy = 5 */ isBuy: boolean; /** * the order hash (optional) * * @generated from protobuf field: string order_hash = 6 */ orderHash: string; /** * the client order ID (optional) * * @generated from protobuf field: string cid = 7 */ cid: string; } /** * QueryTraderDerivativeOrdersResponse is the response type for the * Query/TraderDerivativeOrders RPC method. * * @generated from protobuf message injective.exchange.v2.QueryTraderDerivativeOrdersResponse */ interface QueryTraderDerivativeOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1 */ orders: TrimmedDerivativeLimitOrder[]; } /** * QueryAccountAddressDerivativeOrdersResponse is the response type for the * Query/AccountAddressDerivativeOrders RPC method. * * @generated from protobuf message injective.exchange.v2.QueryAccountAddressDerivativeOrdersResponse */ interface QueryAccountAddressDerivativeOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1 */ orders: TrimmedDerivativeLimitOrder[]; } /** * QueryDerivativeOrdersByHashesResponse is the response type for the * Query/DerivativeOrdersByHashes RPC method. * * @generated from protobuf message injective.exchange.v2.QueryDerivativeOrdersByHashesResponse */ interface QueryDerivativeOrdersByHashesResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1 */ orders: TrimmedDerivativeLimitOrder[]; } /** * @generated from protobuf message injective.exchange.v2.PerpetualMarketState */ interface PerpetualMarketState { /** * @generated from protobuf field: injective.exchange.v2.PerpetualMarketInfo market_info = 1 */ marketInfo?: PerpetualMarketInfo; /** * @generated from protobuf field: injective.exchange.v2.PerpetualMarketFunding funding_info = 2 */ fundingInfo?: PerpetualMarketFunding; } /** * @generated from protobuf message injective.exchange.v2.FullDerivativeMarket */ interface FullDerivativeMarket { /** * derivative market details * * @generated from protobuf field: injective.exchange.v2.DerivativeMarket market = 1 */ market?: DerivativeMarket$1; /** * perpetual market state or expiry futures market state * * @generated from protobuf oneof: info */ info: { oneofKind: "perpetualInfo"; /** * perpetual market info * * @generated from protobuf field: injective.exchange.v2.PerpetualMarketState perpetual_info = 2 */ perpetualInfo: PerpetualMarketState; } | { oneofKind: "futuresInfo"; /** * expiry futures market info * * @generated from protobuf field: injective.exchange.v2.ExpiryFuturesMarketInfo futures_info = 3 */ futuresInfo: ExpiryFuturesMarketInfo; } | { oneofKind: undefined; }; /** * mark price (in human readable format) * * @generated from protobuf field: string mark_price = 4 */ markPrice: string; /** * mid_price_and_tob defines the mid price for this market and the best ask * and bid orders * * @generated from protobuf field: injective.exchange.v2.MidPriceAndTOB mid_price_and_tob = 5 */ midPriceAndTob?: MidPriceAndTOB; } /** * QueryDerivativeMarketsResponse is the response type for the * Query/DerivativeMarkets RPC method. * * @generated from protobuf message injective.exchange.v2.QueryDerivativeMarketsResponse */ interface QueryDerivativeMarketsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.FullDerivativeMarket markets = 1 */ markets: FullDerivativeMarket[]; } /** * QueryDerivativeMarketAddressResponse is the response type for the * Query/DerivativeMarketAddress RPC method. * * @generated from protobuf message injective.exchange.v2.QueryDerivativeMarketAddressResponse */ interface QueryDerivativeMarketAddressResponse { /** * address for the market * * @generated from protobuf field: string address = 1 */ address: string; /** * subaccountID for the market * * @generated from protobuf field: string subaccount_id = 2 */ subaccountId: string; } /** * QueryPositionsInMarketResponse is the response type for the * Query/PositionsInMarket RPC method. * * @generated from protobuf message injective.exchange.v2.QueryPositionsInMarketResponse */ interface QueryPositionsInMarketResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativePosition state = 1 */ state: DerivativePosition[]; } /** * QuerySubaccountPositionsResponse is the response type for the * Query/SubaccountPositions RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountPositionsResponse */ interface QuerySubaccountPositionsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativePosition state = 1 */ state: DerivativePosition[]; } /** * QuerySubaccountPositionInMarketResponse is the response type for the * Query/SubaccountPositionInMarket RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountPositionInMarketResponse */ interface QuerySubaccountPositionInMarketResponse { /** * @generated from protobuf field: injective.exchange.v2.Position state = 1 */ state?: Position; /** * The risk mode of the subaccount (ISOLATED or CROSS). * For CROSS mode, the position's margin is an accounting value; actual * collateral is pooled. Use CrossMarginPoolSnapshot for pool-level health. * * @generated from protobuf field: injective.exchange.v2.RiskMode risk_mode = 2 */ riskMode: RiskMode; } /** * @generated from protobuf message injective.exchange.v2.EffectivePosition */ interface EffectivePosition { /** * whether the position is long or short * * @generated from protobuf field: bool is_long = 1 */ isLong: boolean; /** * the quantity of the position (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * the entry price of the position (in human readable format) * * @generated from protobuf field: string entry_price = 3 */ entryPrice: string; /** * the effective margin of the position (in human readable format) * * @generated from protobuf field: string effective_margin = 4 */ effectiveMargin: string; } /** * QuerySubaccountEffectivePositionInMarketResponse is the response type for the * Query/SubaccountEffectivePositionInMarket RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountEffectivePositionInMarketResponse */ interface QuerySubaccountEffectivePositionInMarketResponse { /** * @generated from protobuf field: injective.exchange.v2.EffectivePosition state = 1 */ state?: EffectivePosition; /** * The risk mode of the subaccount (ISOLATED or CROSS). * For CROSS mode, effective_margin reflects position value but liquidation * is determined at pool level. Use CrossMarginPoolSnapshot for pool health. * * @generated from protobuf field: injective.exchange.v2.RiskMode risk_mode = 2 */ riskMode: RiskMode; } /** * QueryPerpetualMarketInfoResponse is the response type for the * Query/PerpetualMarketInfo RPC method. * * @generated from protobuf message injective.exchange.v2.QueryPerpetualMarketInfoResponse */ interface QueryPerpetualMarketInfoResponse { /** * @generated from protobuf field: injective.exchange.v2.PerpetualMarketInfo info = 1 */ info?: PerpetualMarketInfo; } /** * QueryExpiryFuturesMarketInfoResponse is the response type for the Query/ * ExpiryFuturesMarketInfo RPC method. * * @generated from protobuf message injective.exchange.v2.QueryExpiryFuturesMarketInfoResponse */ interface QueryExpiryFuturesMarketInfoResponse { /** * @generated from protobuf field: injective.exchange.v2.ExpiryFuturesMarketInfo info = 1 */ info?: ExpiryFuturesMarketInfo; } /** * QueryPerpetualMarketFundingResponse is the response type for the * Query/PerpetualMarketFunding RPC method. * * @generated from protobuf message injective.exchange.v2.QueryPerpetualMarketFundingResponse */ interface QueryPerpetualMarketFundingResponse { /** * @generated from protobuf field: injective.exchange.v2.PerpetualMarketFunding state = 1 */ state?: PerpetualMarketFunding; } /** * QuerySubaccountOrderMetadataResponse is the response type for the * Query/SubaccountOrderMetadata RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountOrderMetadataResponse */ interface QuerySubaccountOrderMetadataResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.SubaccountOrderbookMetadataWithMarket metadata = 1 */ metadata: SubaccountOrderbookMetadataWithMarket[]; } /** * QuerySubaccountRiskProfileResponse is the response type for the * Query/SubaccountRiskProfile RPC method. * * @generated from protobuf message injective.exchange.v2.QuerySubaccountRiskProfileResponse */ interface QuerySubaccountRiskProfileResponse { /** * @generated from protobuf field: injective.exchange.v2.SubaccountRiskProfile profile = 1 */ profile?: SubaccountRiskProfile; /** * True if the profile was not explicitly stored and defaults were returned. * * @generated from protobuf field: bool is_default = 2 */ isDefault: boolean; } /** * QueryCrossMarginPoolSnapshotResponse is the response type for the * Query/CrossMarginPoolSnapshot RPC method. * * @generated from protobuf message injective.exchange.v2.QueryCrossMarginPoolSnapshotResponse */ interface QueryCrossMarginPoolSnapshotResponse { /** * The quote denom of the pool. * * @generated from protobuf field: string quote_denom = 1 */ quoteDenom: string; /** * Available quote balance in the pool (human-readable notional units). * * @generated from protobuf field: string quote_balance = 2 */ quoteBalance: string; /** * Total margin held in positions. * * @generated from protobuf field: string position_margin_total = 3 */ positionMarginTotal: string; /** * Raw unrealised PnL across all positions in the pool. * * @generated from protobuf field: string unrealized_pnl = 4 */ unrealizedPnl: string; /** * Effective unrealised PnL after applying positive uPnL haircut. * * @generated from protobuf field: string unrealized_pnl_effective = 5 */ unrealizedPnlEffective: string; /** * Equity used for order admission checks (quote_balance + position_margin + * uPnL_eff - fees_buffer). * * @generated from protobuf field: string equity_admission = 6 */ equityAdmission: string; /** * Equity used for liquidation checks (uses raw uPnL, not haircutted). * * @generated from protobuf field: string equity_liquidation = 7 */ equityLiquidation: string; /** * Sum of initial margin requirements for existing positions only. * * @generated from protobuf field: string initial_margin_total = 8 */ initialMarginTotal: string; /** * Sum of maintenance margin requirements for existing positions. * * @generated from protobuf field: string maintenance_margin_total = 9 */ maintenanceMarginTotal: string; /** * Initial margin using worst-case net exposure (q + B, q - S) across all * markets. * * @generated from protobuf field: string initial_margin_with_orders_total = 10 */ initialMarginWithOrdersTotal: string; /** * Sum of entry losses for all open orders. * * @generated from protobuf field: string entry_loss_total = 11 */ entryLossTotal: string; /** * Sum of fee reserves for all open orders. * * @generated from protobuf field: string fee_reserve_total = 12 */ feeReserveTotal: string; /** * Order Lock Requirement = IM_with_orders + entry_loss + fee_reserve. * Orders may be cancelled if equity_admission < order_lock_requirement. * * @generated from protobuf field: string order_lock_requirement = 13 */ orderLockRequirement: string; /** * The positive uPnL haircut rate applied (e.g., 0.5 = 50%). * * @generated from protobuf field: string positive_upnl_haircut_rate = 14 */ positiveUpnlHaircutRate: string; /** * Health factor = equity_liquidation / maintenance_margin_total. * When < 1, the account is liquidatable. When < 1.5, the account is in a * warning state. Empty if maintenance_margin_total is zero (no positions). * * @generated from protobuf field: string health_factor = 15 */ healthFactor: string; } /** * QueryModuleStateResponse is the response type for the * Query/ExchangeModuleState RPC method. * * @generated from protobuf message injective.exchange.v2.QueryModuleStateResponse */ interface QueryModuleStateResponse$3 { /** * @generated from protobuf field: injective.exchange.v2.GenesisState state = 1 */ state?: GenesisState$3; } /** * QueryPositionsResponse is the response type for the Query/Positions RPC * method. * * @generated from protobuf message injective.exchange.v2.QueryPositionsResponse */ interface QueryPositionsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.DerivativePosition state = 1 */ state: DerivativePosition[]; } /** * QueryTradeRewardPointsResponse is the response type for the * Query/TradeRewardPoints RPC method. * * @generated from protobuf message injective.exchange.v2.QueryTradeRewardPointsResponse */ interface QueryTradeRewardPointsResponse { /** * @generated from protobuf field: repeated string account_trade_reward_points = 1 */ accountTradeRewardPoints: string[]; } /** * QueryTradeRewardCampaignResponse is the response type for the * Query/TradeRewardCampaign RPC method. * * @generated from protobuf message injective.exchange.v2.QueryTradeRewardCampaignResponse */ interface QueryTradeRewardCampaignResponse { /** * @generated from protobuf field: injective.exchange.v2.TradingRewardCampaignInfo trading_reward_campaign_info = 1 */ tradingRewardCampaignInfo?: TradingRewardCampaignInfo$1; /** * @generated from protobuf field: repeated injective.exchange.v2.CampaignRewardPool trading_reward_pool_campaign_schedule = 2 */ tradingRewardPoolCampaignSchedule: CampaignRewardPool$1[]; /** * @generated from protobuf field: string total_trade_reward_points = 3 */ totalTradeRewardPoints: string; /** * @generated from protobuf field: repeated injective.exchange.v2.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 4 */ pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool$1[]; /** * @generated from protobuf field: repeated string pending_total_trade_reward_points = 5 */ pendingTotalTradeRewardPoints: string[]; } /** * QueryIsRegisteredDMMResponse is the response type for the * Query/IsRegisteredDMM RPC method. * * @generated from protobuf message injective.exchange.v2.QueryIsOptedOutOfRewardsResponse */ interface QueryIsOptedOutOfRewardsResponse { /** * @generated from protobuf field: bool is_opted_out = 1 */ isOptedOut: boolean; } /** * QueryFeeDiscountAccountInfoResponse is the response type for the * Query/FeeDiscountAccountInfo RPC method. * * @generated from protobuf message injective.exchange.v2.QueryFeeDiscountAccountInfoResponse */ interface QueryFeeDiscountAccountInfoResponse { /** * @generated from protobuf field: uint64 tier_level = 1 */ tierLevel: bigint; /** * @generated from protobuf field: injective.exchange.v2.FeeDiscountTierInfo account_info = 2 */ accountInfo?: FeeDiscountTierInfo$1; /** * @generated from protobuf field: injective.exchange.v2.FeeDiscountTierTTL account_ttl = 3 */ accountTtl?: FeeDiscountTierTTL$1; } /** * QueryFeeDiscountScheduleResponse is the response type for the * Query/FeeDiscountSchedule RPC method. * * @generated from protobuf message injective.exchange.v2.QueryFeeDiscountScheduleResponse */ interface QueryFeeDiscountScheduleResponse { /** * @generated from protobuf field: injective.exchange.v2.FeeDiscountSchedule fee_discount_schedule = 1 */ feeDiscountSchedule?: FeeDiscountSchedule$1; } /** * @generated from protobuf message injective.exchange.v2.TierStatistic */ interface TierStatistic { /** * @generated from protobuf field: uint64 tier = 1 */ tier: bigint; /** * @generated from protobuf field: uint64 count = 2 */ count: bigint; } /** * QueryFeeDiscountTierStatisticsResponse is the response type for the * Query/QueryFeeDiscountTierStatistics RPC method. * * @generated from protobuf message injective.exchange.v2.QueryFeeDiscountTierStatisticsResponse */ interface QueryFeeDiscountTierStatisticsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TierStatistic statistics = 1 */ statistics: TierStatistic[]; } /** * @generated from protobuf message injective.exchange.v2.QueryHistoricalTradeRecordsResponse */ interface QueryHistoricalTradeRecordsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TradeRecords trade_records = 1 */ tradeRecords: TradeRecords[]; } /** * TradeHistoryOptions are the optional params for Query/MarketVolatility RPC * method. * * @generated from protobuf message injective.exchange.v2.TradeHistoryOptions */ interface TradeHistoryOptions { /** * TradeGroupingSec of 0 means use the chain's default grouping * * @generated from protobuf field: uint64 trade_grouping_sec = 1 */ tradeGroupingSec: bigint; /** * MaxAge restricts the trade records oldest age in seconds from the current * block time to consider. A value of 0 means use all the records present on * the chain. * * @generated from protobuf field: uint64 max_age = 2 */ maxAge: bigint; /** * If IncludeRawHistory is true, the raw underlying data used for the * computation is included in the response * * @generated from protobuf field: bool include_raw_history = 4 */ includeRawHistory: boolean; /** * If IncludeMetadata is true, metadata on the computation is included in the * response * * @generated from protobuf field: bool include_metadata = 5 */ includeMetadata: boolean; } /** * QueryMarketVolatilityResponse is the response type for the * Query/MarketVolatility RPC method. * * @generated from protobuf message injective.exchange.v2.QueryMarketVolatilityResponse */ interface QueryMarketVolatilityResponse { /** * @generated from protobuf field: string volatility = 1 */ volatility: string; /** * @generated from protobuf field: injective.oracle.v1beta1.MetadataStatistics history_metadata = 2 */ historyMetadata?: MetadataStatistics; /** * @generated from protobuf field: repeated injective.exchange.v2.TradeRecord raw_history = 3 */ rawHistory: TradeRecord[]; } /** * QueryBinaryMarketsResponse is the response type for the Query/BinaryMarkets * RPC method. * * @generated from protobuf message injective.exchange.v2.QueryBinaryMarketsResponse */ interface QueryBinaryMarketsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.BinaryOptionsMarket markets = 1 */ markets: BinaryOptionsMarket[]; } /** * @generated from protobuf message injective.exchange.v2.TrimmedDerivativeConditionalOrder */ interface TrimmedDerivativeConditionalOrder { /** * price of the order (in human readable format) * * @generated from protobuf field: string price = 1 */ price: string; /** * quantity of the order (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * margin of the order (in human readable format) * * @generated from protobuf field: string margin = 3 */ margin: string; /** * price to trigger the order (in human readable format) * * @generated from protobuf field: string triggerPrice = 4 */ triggerPrice: string; /** * true if the order is a buy * * @generated from protobuf field: bool isBuy = 5 */ isBuy: boolean; /** * true if the order is a limit order * * @generated from protobuf field: bool isLimit = 6 */ isLimit: boolean; /** * the order hash * * @generated from protobuf field: string order_hash = 7 */ orderHash: string; /** * the client ID * * @generated from protobuf field: string cid = 8 */ cid: string; } /** * QueryTraderDerivativeOrdersResponse is the response type for the * Query/TraderDerivativeOrders RPC method. * * @generated from protobuf message injective.exchange.v2.QueryTraderDerivativeConditionalOrdersResponse */ interface QueryTraderDerivativeConditionalOrdersResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedDerivativeConditionalOrder orders = 1 */ orders: TrimmedDerivativeConditionalOrder[]; } /** * @generated from protobuf message injective.exchange.v2.QueryFullSpotOrderbookResponse */ interface QueryFullSpotOrderbookResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedLimitOrder Bids = 1 */ bids: TrimmedLimitOrder[]; /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedLimitOrder Asks = 2 */ asks: TrimmedLimitOrder[]; /** * the current orderbook sequence number * * @generated from protobuf field: uint64 seq = 3 */ seq: bigint; } /** * @generated from protobuf message injective.exchange.v2.QueryFullDerivativeOrderbookResponse */ interface QueryFullDerivativeOrderbookResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedLimitOrder Bids = 1 */ bids: TrimmedLimitOrder[]; /** * @generated from protobuf field: repeated injective.exchange.v2.TrimmedLimitOrder Asks = 2 */ asks: TrimmedLimitOrder[]; /** * the current orderbook sequence number * * @generated from protobuf field: uint64 seq = 3 */ seq: bigint; } /** * @generated from protobuf message injective.exchange.v2.TrimmedLimitOrder */ interface TrimmedLimitOrder { /** * price of the order (in human readable format) * * @generated from protobuf field: string price = 1 */ price: string; /** * quantity of the order (in human readable format) * * @generated from protobuf field: string quantity = 2 */ quantity: string; /** * the order hash * * @generated from protobuf field: string order_hash = 3 */ orderHash: string; /** * the subaccount ID * * @generated from protobuf field: string subaccount_id = 4 */ subaccountId: string; } /** * @generated from protobuf message injective.exchange.v2.QueryActiveStakeGrantResponse */ interface QueryActiveStakeGrantResponse { /** * @generated from protobuf field: injective.exchange.v2.ActiveGrant grant = 1 */ grant?: ActiveGrant; /** * @generated from protobuf field: injective.exchange.v2.EffectiveGrant effective_grant = 2 */ effectiveGrant?: EffectiveGrant; } /** * @generated from protobuf message injective.exchange.v2.QueryGrantAuthorizationsResponse */ interface QueryGrantAuthorizationsResponse { /** * @generated from protobuf field: string total_grant_amount = 1 */ totalGrantAmount: string; /** * @generated from protobuf field: repeated injective.exchange.v2.GrantAuthorization grants = 2 */ grants: GrantAuthorization$1[]; } /** * @generated from protobuf message injective.exchange.v2.QueryMarketBalanceResponse */ interface QueryMarketBalanceResponse { /** * @generated from protobuf field: injective.exchange.v2.MarketBalance balance = 1 */ balance?: MarketBalance; } /** * @generated from protobuf message injective.exchange.v2.MarketBalance */ interface MarketBalance { /** * the market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * the current balance of the market * * @generated from protobuf field: string balance = 2 */ balance: string; } /** * @generated from protobuf message injective.exchange.v2.QueryDenomMinNotionalsResponse */ interface QueryDenomMinNotionalsResponse { /** * @generated from protobuf field: repeated injective.exchange.v2.DenomMinNotional denom_min_notionals = 1 */ denomMinNotionals: DenomMinNotional[]; } /** * @generated from protobuf message injective.exchange.v2.OpenInterest */ interface OpenInterest { /** * the market ID * * @generated from protobuf field: string market_id = 1 */ marketId: string; /** * the open interest of the market * * @generated from protobuf field: string balance = 2 */ balance: string; } /** * @generated from protobuf message injective.exchange.v2.QueryOpenInterestResponse */ interface QueryOpenInterestResponse { /** * @generated from protobuf field: injective.exchange.v2.OpenInterest amount = 1 */ amount?: OpenInterest; } /** * @generated from protobuf enum injective.exchange.v2.OrderSide */ declare enum OrderSide { /** * will return both * * @generated from protobuf enum value: Side_Unspecified = 0; */ Side_Unspecified = 0, /** * @generated from protobuf enum value: Buy = 1; */ Buy = 1, /** * @generated from protobuf enum value: Sell = 2; */ Sell = 2, } /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountOrdersResponse */ declare const QuerySubaccountOrdersResponse = new QuerySubaccountOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.SubaccountOrderbookMetadataWithMarket */ declare const SubaccountOrderbookMetadataWithMarket = new SubaccountOrderbookMetadataWithMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryExchangeParamsResponse */ declare const QueryExchangeParamsResponse = new QueryExchangeParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountDepositsResponse */ declare const QuerySubaccountDepositsResponse = new QuerySubaccountDepositsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAggregateVolumeResponse */ declare const QueryAggregateVolumeResponse = new QueryAggregateVolumeResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAggregateVolumesResponse */ declare const QueryAggregateVolumesResponse = new QueryAggregateVolumesResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAggregateMarketVolumeResponse */ declare const QueryAggregateMarketVolumeResponse = new QueryAggregateMarketVolumeResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsResponse */ declare const QueryAuctionExchangeTransferDenomDecimalsResponse = new QueryAuctionExchangeTransferDenomDecimalsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAggregateMarketVolumesResponse */ declare const QueryAggregateMarketVolumesResponse = new QueryAggregateMarketVolumesResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountDepositResponse */ declare const QuerySubaccountDepositResponse = new QuerySubaccountDepositResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySpotMarketsResponse */ declare const QuerySpotMarketsResponse = new QuerySpotMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySpotOrderbookResponse */ declare const QuerySpotOrderbookResponse = new QuerySpotOrderbookResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FullSpotMarket */ declare const FullSpotMarket = new FullSpotMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFullSpotMarketsResponse */ declare const QueryFullSpotMarketsResponse = new QueryFullSpotMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySpotOrdersByHashesResponse */ declare const QuerySpotOrdersByHashesResponse = new QuerySpotOrdersByHashesResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TrimmedSpotLimitOrder */ declare const TrimmedSpotLimitOrder = new TrimmedSpotLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryTraderSpotOrdersResponse */ declare const QueryTraderSpotOrdersResponse = new QueryTraderSpotOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAccountAddressSpotOrdersResponse */ declare const QueryAccountAddressSpotOrdersResponse = new QueryAccountAddressSpotOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySpotMidPriceAndTOBResponse */ declare const QuerySpotMidPriceAndTOBResponse = new QuerySpotMidPriceAndTOBResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDerivativeMidPriceAndTOBResponse */ declare const QueryDerivativeMidPriceAndTOBResponse = new QueryDerivativeMidPriceAndTOBResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDerivativeOrderbookResponse */ declare const QueryDerivativeOrderbookResponse = new QueryDerivativeOrderbookResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TrimmedDerivativeLimitOrder */ declare const TrimmedDerivativeLimitOrder = new TrimmedDerivativeLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryTraderDerivativeOrdersResponse */ declare const QueryTraderDerivativeOrdersResponse = new QueryTraderDerivativeOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryAccountAddressDerivativeOrdersResponse */ declare const QueryAccountAddressDerivativeOrdersResponse = new QueryAccountAddressDerivativeOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDerivativeOrdersByHashesResponse */ declare const QueryDerivativeOrdersByHashesResponse = new QueryDerivativeOrdersByHashesResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.PerpetualMarketState */ declare const PerpetualMarketState = new PerpetualMarketState$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.FullDerivativeMarket */ declare const FullDerivativeMarket = new FullDerivativeMarket$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDerivativeMarketsResponse */ declare const QueryDerivativeMarketsResponse = new QueryDerivativeMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDerivativeMarketAddressResponse */ declare const QueryDerivativeMarketAddressResponse = new QueryDerivativeMarketAddressResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryPositionsInMarketResponse */ declare const QueryPositionsInMarketResponse = new QueryPositionsInMarketResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountPositionsResponse */ declare const QuerySubaccountPositionsResponse = new QuerySubaccountPositionsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountPositionInMarketResponse */ declare const QuerySubaccountPositionInMarketResponse = new QuerySubaccountPositionInMarketResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.EffectivePosition */ declare const EffectivePosition = new EffectivePosition$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountEffectivePositionInMarketResponse */ declare const QuerySubaccountEffectivePositionInMarketResponse = new QuerySubaccountEffectivePositionInMarketResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryPerpetualMarketInfoResponse */ declare const QueryPerpetualMarketInfoResponse = new QueryPerpetualMarketInfoResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryExpiryFuturesMarketInfoResponse */ declare const QueryExpiryFuturesMarketInfoResponse = new QueryExpiryFuturesMarketInfoResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryPerpetualMarketFundingResponse */ declare const QueryPerpetualMarketFundingResponse = new QueryPerpetualMarketFundingResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountOrderMetadataResponse */ declare const QuerySubaccountOrderMetadataResponse = new QuerySubaccountOrderMetadataResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QuerySubaccountRiskProfileResponse */ declare const QuerySubaccountRiskProfileResponse = new QuerySubaccountRiskProfileResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryCrossMarginPoolSnapshotResponse */ declare const QueryCrossMarginPoolSnapshotResponse = new QueryCrossMarginPoolSnapshotResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryModuleStateResponse */ declare const QueryModuleStateResponse$3 = new QueryModuleStateResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryPositionsResponse */ declare const QueryPositionsResponse = new QueryPositionsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryTradeRewardPointsResponse */ declare const QueryTradeRewardPointsResponse = new QueryTradeRewardPointsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryTradeRewardCampaignResponse */ declare const QueryTradeRewardCampaignResponse = new QueryTradeRewardCampaignResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryIsOptedOutOfRewardsResponse */ declare const QueryIsOptedOutOfRewardsResponse = new QueryIsOptedOutOfRewardsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFeeDiscountAccountInfoResponse */ declare const QueryFeeDiscountAccountInfoResponse = new QueryFeeDiscountAccountInfoResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFeeDiscountScheduleResponse */ declare const QueryFeeDiscountScheduleResponse = new QueryFeeDiscountScheduleResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TierStatistic */ declare const TierStatistic = new TierStatistic$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFeeDiscountTierStatisticsResponse */ declare const QueryFeeDiscountTierStatisticsResponse = new QueryFeeDiscountTierStatisticsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryHistoricalTradeRecordsResponse */ declare const QueryHistoricalTradeRecordsResponse = new QueryHistoricalTradeRecordsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TradeHistoryOptions */ declare const TradeHistoryOptions = new TradeHistoryOptions$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryMarketVolatilityResponse */ declare const QueryMarketVolatilityResponse = new QueryMarketVolatilityResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryBinaryMarketsResponse */ declare const QueryBinaryMarketsResponse = new QueryBinaryMarketsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TrimmedDerivativeConditionalOrder */ declare const TrimmedDerivativeConditionalOrder = new TrimmedDerivativeConditionalOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryTraderDerivativeConditionalOrdersResponse */ declare const QueryTraderDerivativeConditionalOrdersResponse = new QueryTraderDerivativeConditionalOrdersResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFullSpotOrderbookResponse */ declare const QueryFullSpotOrderbookResponse = new QueryFullSpotOrderbookResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryFullDerivativeOrderbookResponse */ declare const QueryFullDerivativeOrderbookResponse = new QueryFullDerivativeOrderbookResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.TrimmedLimitOrder */ declare const TrimmedLimitOrder = new TrimmedLimitOrder$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryActiveStakeGrantResponse */ declare const QueryActiveStakeGrantResponse = new QueryActiveStakeGrantResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryGrantAuthorizationsResponse */ declare const QueryGrantAuthorizationsResponse = new QueryGrantAuthorizationsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryMarketBalanceResponse */ declare const QueryMarketBalanceResponse = new QueryMarketBalanceResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.MarketBalance */ declare const MarketBalance = new MarketBalance$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryDenomMinNotionalsResponse */ declare const QueryDenomMinNotionalsResponse = new QueryDenomMinNotionalsResponse$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.OpenInterest */ declare const OpenInterest = new OpenInterest$Type(); /** * @generated MessageType for protobuf message injective.exchange.v2.QueryOpenInterestResponse */ declare const QueryOpenInterestResponse = new QueryOpenInterestResponse$Type(); //#endregion //#region src/client/chain/grpc/ChainGrpcExchangeApiV2.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcExchangeApiV2 extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchModuleState(): Promise; fetchFeeDiscountSchedule(): Promise; fetchFeeDiscountAccountInfo(injectiveAddress: string): Promise; fetchTradingRewardsCampaign(): Promise; fetchTradeRewardPoints(injectiveAddresses: string[]): Promise; fetchPendingTradeRewardPoints(injectiveAddresses: string[], timestamp?: number): Promise; fetchPositions(): Promise; fetchSubaccountTradeNonce(subaccountId: string): Promise<{ nonce: number; }>; fetchIsOptedOutOfRewards(account: string): Promise; fetchActiveStakeGrant(account: string): Promise<{ grant: ActiveGrant; effectiveGrant: EffectiveGrant; }>; fetchDenomDecimal(denom: string): Promise<{ decimal: bigint; }>; fetchDenomDecimals(): Promise; fetchDenomMinNotional(denom: string): Promise<{ amount: string; }>; fetchDenomMinNotionals(): Promise; fetchOpenInterest(marketId: string): Promise<{ amount?: ChainOpenInterest; }>; fetchDerivativeMarkets(status?: string, marketIds?: string[]): Promise; fetchSpotMarkets(status?: string, marketIds?: string[]): Promise; fetchFullSpotMarkets(status?: string, marketIds?: string[]): Promise; fetchL3DerivativeOrderbook(marketId: string): Promise; fetchL3SpotOrderbook(marketId: string): Promise; fetchSubaccountDeposits(subaccountId: string): Promise<{ deposits: Record; }>; fetchSubaccountDeposit({ subaccountId, denom }: { subaccountId: string; denom: string; }): Promise<{ deposits?: ChainDeposit; }>; fetchAggregateVolume(account: string): Promise<{ aggregateVolumes: ChainMarketVolume[]; }>; fetchAggregateVolumes({ accounts, marketIds }: { accounts: string[]; marketIds: string[]; }): Promise<{ aggregateAccountVolumes: ChainAggregateAccountVolume[]; aggregateMarketVolumes: ChainMarketVolume[]; }>; fetchAggregateMarketVolume(marketId: string): Promise<{ volume?: { makerVolume: string; takerVolume: string; }; }>; fetchAggregateMarketVolumes(marketIds: string[]): Promise<{ volumes: ChainMarketVolume[]; }>; fetchSpotMarket(marketId: string): Promise; fetchFullSpotMarket(marketId: string): Promise; fetchSpotOrderbook({ marketId, limit, orderSide, limitCumulativeNotional, limitCumulativeQuantity }: { marketId: string; limit?: number; orderSide?: OrderSide; limitCumulativeNotional?: string; limitCumulativeQuantity?: string; }): Promise; fetchTraderSpotOrders({ marketId, subaccountId }: { marketId: string; subaccountId: string; }): Promise<{ orders: ChainTrimmedSpotLimitOrder[]; }>; fetchAccountAddressSpotOrders({ marketId, accountAddress }: { marketId: string; accountAddress: string; }): Promise<{ orders: ChainTrimmedSpotLimitOrder[]; }>; fetchSpotOrdersByHashes({ marketId, subaccountId, orderHashes }: { marketId: string; subaccountId: string; orderHashes: string[]; }): Promise<{ orders: ChainTrimmedSpotLimitOrder[]; }>; fetchSubaccountOrders({ subaccountId, marketId }: { subaccountId: string; marketId: string; }): Promise<{ buyOrders: ChainSubaccountOrderData[]; sellOrders: ChainSubaccountOrderData[]; }>; fetchTraderSpotTransientOrders({ marketId, subaccountId }: { marketId: string; subaccountId: string; }): Promise<{ orders: ChainTrimmedSpotLimitOrder[]; }>; fetchSpotMidPriceAndTOB(marketId: string): Promise; fetchDerivativeMidPriceAndTOB(marketId: string): Promise; fetchDerivativeOrderbook({ marketId, limit, limitCumulativeNotional }: { marketId: string; limit?: number; limitCumulativeNotional?: string; }): Promise; fetchTraderDerivativeOrders({ marketId, subaccountId }: { marketId: string; subaccountId: string; }): Promise<{ orders: ChainTrimmedDerivativeLimitOrder[]; }>; fetchAccountAddressDerivativeOrders({ marketId, accountAddress }: { marketId: string; accountAddress: string; }): Promise<{ orders: ChainTrimmedDerivativeLimitOrder[]; }>; fetchDerivativeOrdersByHashes({ marketId, subaccountId, orderHashes }: { marketId: string; subaccountId: string; orderHashes: string[]; }): Promise<{ orders: ChainTrimmedDerivativeLimitOrder[]; }>; fetchTraderDerivativeTransientOrders({ marketId, subaccountId }: { marketId: string; subaccountId: string; }): Promise<{ orders: ChainTrimmedDerivativeLimitOrder[]; }>; fetchDerivativeMarket(marketId: string): Promise; fetchDerivativeMarketAddress(marketId: string): Promise; fetchSubaccountRiskProfile(subaccountId: string): Promise<{ profile?: ChainSubaccountRiskProfile; isDefault: boolean; }>; fetchCrossMarginPoolSnapshot({ subaccountId, quoteDenom }: { subaccountId: string; quoteDenom: string; }): Promise; fetchPositionsInMarket(marketId: string): Promise<{ state: ChainDerivativePosition[]; }>; fetchSubaccountPositions(subaccountId: string): Promise<{ state: ChainDerivativePosition[]; }>; fetchSubaccountPositionInMarket({ subaccountId, marketId }: { subaccountId: string; marketId: string; }): Promise<{ state?: ChainPosition; riskMode: number; }>; fetchSubaccountEffectivePositionInMarket({ subaccountId, marketId }: { subaccountId: string; marketId: string; }): Promise<{ state?: ChainEffectivePosition; riskMode: number; }>; fetchPerpetualMarketInfo(marketId: string): Promise<{ info?: ChainPerpetualMarketInfo; }>; fetchExpiryFuturesMarketInfo(marketId: string): Promise<{ info?: ChainExpiryFuturesMarketInfo; }>; fetchPerpetualMarketFunding(marketId: string): Promise<{ state?: ChainPerpetualMarketFunding; }>; fetchSubaccountOrderMetadata(subaccountId: string): Promise<{ metadata: ChainSubaccountOrderbookMetadata[]; }>; fetchFeeDiscountTierStatistics(): Promise<{ statistics: ChainTierStatistic[]; }>; fetchMarketIdFromVault(vaultAddress: string): Promise<{ marketId: string; }>; fetchHistoricalTradeRecords(marketId: string): Promise<{ tradeRecords: ChainTradeRecords[]; }>; fetchOptedOutOfRewardsAccounts(): Promise<{ accounts: string[]; }>; fetchMarketVolatility({ marketId, tradeHistoryOptions }: { marketId: string; tradeHistoryOptions?: TradeHistoryOptions; }): Promise; fetchBinaryOptionsMarkets(status?: string): Promise<{ markets: ChainBinaryOptionsMarket[]; }>; fetchTraderDerivativeConditionalOrders({ subaccountId, marketId }: { subaccountId: string; marketId: string; }): Promise<{ orders: ChainTrimmedDerivativeConditionalOrder[]; }>; fetchMarketAtomicExecutionFeeMultiplier(marketId: string): Promise<{ multiplier: string; }>; fetchGrantAuthorization({ granter, grantee }: { granter: string; grantee: string; }): Promise<{ amount: string; }>; fetchGrantAuthorizations(granter: string): Promise<{ totalGrantAmount: string; grants: ChainGrantAuthorization[]; }>; fetchMarketBalance(marketId: string): Promise<{ balance?: ChainMarketBalance; }>; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/base/tendermint/v1beta1/types_pb.d.ts /** * Block is tendermint type Block, with the Header proposer address * field converted to bech32 string. * * @generated from protobuf message cosmos.base.tendermint.v1beta1.Block */ interface Block { /** * @generated from protobuf field: cosmos.base.tendermint.v1beta1.Header header = 1 */ header?: Header; /** * @generated from protobuf field: cometbft.types.v1.Data data = 2 */ data?: Data; /** * @generated from protobuf field: cometbft.types.v1.EvidenceList evidence = 3 */ evidence?: EvidenceList; /** * @generated from protobuf field: cometbft.types.v1.Commit last_commit = 4 */ lastCommit?: Commit; } /** * Header defines the structure of a Tendermint block header. * * @generated from protobuf message cosmos.base.tendermint.v1beta1.Header */ interface Header { /** * basic block info * * @generated from protobuf field: cometbft.version.v1.Consensus version = 1 */ version?: Consensus; /** * @generated from protobuf field: string chain_id = 2 */ chainId: string; /** * @generated from protobuf field: int64 height = 3 */ height: bigint; /** * @generated from protobuf field: google.protobuf.Timestamp time = 4 */ time?: Timestamp; /** * prev block info * * @generated from protobuf field: cometbft.types.v1.BlockID last_block_id = 5 */ lastBlockId?: BlockID; /** * hashes of block data * * @generated from protobuf field: bytes last_commit_hash = 6 */ lastCommitHash: Uint8Array; // commit from validators from the last block /** * @generated from protobuf field: bytes data_hash = 7 */ dataHash: Uint8Array; // transactions /** * hashes from the app output from the prev block * * @generated from protobuf field: bytes validators_hash = 8 */ validatorsHash: Uint8Array; // validators for the current block /** * @generated from protobuf field: bytes next_validators_hash = 9 */ nextValidatorsHash: Uint8Array; // validators for the next block /** * @generated from protobuf field: bytes consensus_hash = 10 */ consensusHash: Uint8Array; // consensus params for current block /** * @generated from protobuf field: bytes app_hash = 11 */ appHash: Uint8Array; // state after txs from the previous block /** * @generated from protobuf field: bytes last_results_hash = 12 */ lastResultsHash: Uint8Array; // root hash of all results from the txs from the previous block /** * consensus info * * @generated from protobuf field: bytes evidence_hash = 13 */ evidenceHash: Uint8Array; // evidence included in the block /** * proposer_address is the original block proposer address, formatted as a Bech32 string. * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string * for better UX. * * @generated from protobuf field: string proposer_address = 14 */ proposerAddress: string; // original proposer of the block } /** * @generated MessageType for protobuf message cosmos.base.tendermint.v1beta1.Block */ declare const Block = new Block$Type(); /** * @generated MessageType for protobuf message cosmos.base.tendermint.v1beta1.Header */ declare const Header = new Header$Type(); //#endregion //#region src/client/chain/grpc/ChainGrpcTendermintApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcTendermintApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchLatestBlock(): Promise; fetchBlock(height: number | string): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcPermissionsApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcPermissionsApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchNamespaceDenoms(): Promise; fetchNamespaces(): Promise; fetchNamespace(denom: string): Promise; fetchActorsByRole({ denom, role }: { denom: string; role: string; }): Promise<{ roles: string; }[]>; fetchRolesByActor({ actor, denom }: { actor: string; denom: string; }): Promise<{ roles: string; }[]>; fetchRoleManager({ denom, manager }: { denom: string; manager: string; }): Promise; fetchRoleManagers(): Promise; fetchPolicyStatuses(): Promise; fetchPolicyManagerCapabilities(denom: string): Promise; fetchVoucher({ denom, address }: { denom: string; address: string; }): Promise; fetchVouchers(denom: string): Promise; fetchModuleState(): Promise<{ params: PermissionsModuleParams; namespaces: PermissionNamespace[]; vouchers: PermissionAddressVoucher[]; } | undefined>; } //#endregion //#region src/client/chain/grpc/ChainGrpcDistributionApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcDistributionApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchDelegatorRewardsForValidator({ delegatorAddress, validatorAddress }: { delegatorAddress: string; validatorAddress: string; }): Promise; fetchDelegatorRewardsForValidatorNoThrow({ delegatorAddress, validatorAddress }: { delegatorAddress: string; validatorAddress: string; }): Promise; fetchDelegatorRewards(injectiveAddress: string): Promise; fetchDelegatorRewardsNoThrow(injectiveAddress: string): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcTokenFactoryApi.d.ts /** * @category TokenFactory Grpc API */ declare class ChainGrpcTokenFactoryApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchDenomsFromCreator(creator: string): Promise; fetchDenomAuthorityMetadata(creator: string, subDenom: string): Promise; fetchModuleParams(): Promise; fetchModuleState(): Promise; } //#endregion //#region src/client/chain/grpc/ChainGrpcInsuranceFundApi.d.ts /** * @category Chain Grpc API */ declare class ChainGrpcInsuranceFundApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchModuleParams(): Promise; fetchInsuranceFunds(): Promise; fetchInsuranceFund(marketId: string): Promise; fetchEstimatedRedemptions({ marketId, address }: { marketId: string; address: string; }): Promise<{ amount: string; denom: string; }[]>; fetchPendingRedemptions({ marketId, address }: { marketId: string; address: string; }): Promise<{ amount: string; denom: string; }[]>; } //#endregion //#region src/client/chain/rest/ChainRestBankApi.d.ts /** * @category Chain Rest API */ declare class ChainRestBankApi extends BaseRestConsumer { /** * Get address's balance * * @param address address of account to look up */ fetchBalances(address: string, params?: Record): Promise; /** * Get address's balances * * @param address address of account to look up */ fetchBalance(address: string, denom: string, params?: Record): Promise; fetchDenomOwners(denom: string, params?: Record): Promise; } //#endregion //#region src/client/chain/rest/ChainRestAuthApi.d.ts /** * @category Chain Rest API */ declare class ChainRestAuthApi extends BaseRestConsumer { /** * Looks up the account information for the Injective address. * * @param address address of account to look up */ fetchAccount(address: string, params?: Record): Promise; /** * Looks up the account information for any cosmos chain address. * * @param address address of account to look up */ fetchCosmosAccount(address: string, params?: Record): Promise; } //#endregion //#region src/client/chain/rest/ChainRestWasmApi.d.ts type SmartContractStateResponse = unknown; /** * @category Chain Wasm API */ declare class ChainRestWasmApi extends BaseRestConsumer { fetchSmartContractState(contractAddress: string, query: string, params?: Record): Promise; } //#endregion //#region src/client/chain/rest/ChainRestTendermintApi.d.ts /** * @category Chain Rest API */ declare class ChainRestTendermintApi extends BaseRestConsumer { fetchLatestBlock(params?: Record): Promise; fetchBlock(height: number | string, params?: Record): Promise; fetchNodeInfo(params?: Record): Promise<{ nodeInfo: NodeInfoRestResponse['default_node_info']; applicationVersion: NodeInfoRestResponse['application_version']; }>; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1/query_pb.d.ts /** * QueryProposalResponse is the response type for the Query/Proposal RPC method. * * @generated from protobuf message cosmos.gov.v1.QueryProposalResponse */ interface QueryProposalResponse { /** * proposal is the requested governance proposal. * * @generated from protobuf field: cosmos.gov.v1.Proposal proposal = 1 */ proposal?: Proposal$1; } /** * QueryProposalsResponse is the response type for the Query/Proposals RPC * method. * * @generated from protobuf message cosmos.gov.v1.QueryProposalsResponse */ interface QueryProposalsResponse { /** * proposals defines all the requested governance proposals. * * @generated from protobuf field: repeated cosmos.gov.v1.Proposal proposals = 1 */ proposals: Proposal$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryVotesResponse is the response type for the Query/Votes RPC method. * * @generated from protobuf message cosmos.gov.v1.QueryVotesResponse */ interface QueryVotesResponse { /** * votes defines the queried votes. * * @generated from protobuf field: repeated cosmos.gov.v1.Vote votes = 1 */ votes: Vote$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message cosmos.gov.v1.QueryParamsResponse */ interface QueryParamsResponse$10 { /** * Deprecated: Prefer to use `params` instead. * voting_params defines the parameters related to voting. * * @deprecated * @generated from protobuf field: cosmos.gov.v1.VotingParams voting_params = 1 [deprecated = true] */ votingParams?: VotingParams; /** * Deprecated: Prefer to use `params` instead. * deposit_params defines the parameters related to deposit. * * @deprecated * @generated from protobuf field: cosmos.gov.v1.DepositParams deposit_params = 2 [deprecated = true] */ depositParams?: DepositParams; /** * Deprecated: Prefer to use `params` instead. * tally_params defines the parameters related to tally. * * @deprecated * @generated from protobuf field: cosmos.gov.v1.TallyParams tally_params = 3 [deprecated = true] */ tallyParams?: TallyParams; /** * params defines all the paramaters of x/gov module. * * Since: cosmos-sdk 0.47 * * @generated from protobuf field: cosmos.gov.v1.Params params = 4 */ params?: Params$13; } /** * QueryDepositsResponse is the response type for the Query/Deposits RPC method. * * @generated from protobuf message cosmos.gov.v1.QueryDepositsResponse */ interface QueryDepositsResponse { /** * deposits defines the requested deposits. * * @generated from protobuf field: repeated cosmos.gov.v1.Deposit deposits = 1 */ deposits: Deposit[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryTallyResultResponse is the response type for the Query/Tally RPC method. * * @generated from protobuf message cosmos.gov.v1.QueryTallyResultResponse */ interface QueryTallyResultResponse { /** * tally defines the requested tally. * * @generated from protobuf field: cosmos.gov.v1.TallyResult tally = 1 */ tally?: TallyResult$1; } /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryProposalResponse */ declare const QueryProposalResponse = new QueryProposalResponse$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryProposalsResponse */ declare const QueryProposalsResponse = new QueryProposalsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryVotesResponse */ declare const QueryVotesResponse = new QueryVotesResponse$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryParamsResponse */ declare const QueryParamsResponse$10 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryDepositsResponse */ declare const QueryDepositsResponse = new QueryDepositsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.gov.v1.QueryTallyResultResponse */ declare const QueryTallyResultResponse = new QueryTallyResultResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcGovTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcGovTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$10): GovModuleStateParams; static moduleParamsResponseToModuleParamsByType({ depositParams, votingParams, tallyParams }: { depositParams: GrpcGovernanceDepositParams; votingParams: GrpcGovernanceVotingParams; tallyParams: GrpcGovernanceTallyParams; }): GovModuleStateParams; static proposalResponseToProposal(response: QueryProposalResponse): Proposal | undefined; static proposalsResponseToProposals(response: QueryProposalsResponse): { proposals: Proposal[]; pagination: Pagination; }; static depositsResponseToDeposits(response: QueryDepositsResponse): { deposits: ProposalDeposit[]; pagination: Pagination; }; static grpcVoteToVote(vote: GrpcVote): Vote; static votesResponseToVotes(response: QueryVotesResponse): { votes: Vote[]; pagination: Pagination; }; static tallyResultResponseToTallyResult(response: QueryTallyResultResponse): TallyResult; static grpcTallyResultToTallyResult(result: GrpcTallyResult | undefined): TallyResult; static grpcProposalToProposal(proposal: GrpcProposal): Proposal | undefined; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/evm/v1/query_pb.d.ts /** * QueryAccountResponse is the response type for the Query/Account RPC method. * * @generated from protobuf message injective.evm.v1.QueryAccountResponse */ interface QueryAccountResponse$1 { /** * balance is the balance of the EVM denomination. * * @generated from protobuf field: string balance = 1 */ balance: string; /** * code_hash is the hex-formatted code bytes from the EOA. * * @generated from protobuf field: string code_hash = 2 */ codeHash: string; /** * nonce is the account's sequence number. * * @generated from protobuf field: uint64 nonce = 3 */ nonce: bigint; } /** * QueryCosmosAccountResponse is the response type for the Query/CosmosAccount * RPC method. * * @generated from protobuf message injective.evm.v1.QueryCosmosAccountResponse */ interface QueryCosmosAccountResponse { /** * cosmos_address is the cosmos address of the account. * * @generated from protobuf field: string cosmos_address = 1 */ cosmosAddress: string; /** * sequence is the account's sequence number. * * @generated from protobuf field: uint64 sequence = 2 */ sequence: bigint; /** * account_number is the account number * * @generated from protobuf field: uint64 account_number = 3 */ accountNumber: bigint; } /** * QueryValidatorAccountResponse is the response type for the * Query/ValidatorAccount RPC method. * * @generated from protobuf message injective.evm.v1.QueryValidatorAccountResponse */ interface QueryValidatorAccountResponse { /** * account_address is the cosmos address of the account in bech32 format. * * @generated from protobuf field: string account_address = 1 */ accountAddress: string; /** * sequence is the account's sequence number. * * @generated from protobuf field: uint64 sequence = 2 */ sequence: bigint; /** * account_number is the account number * * @generated from protobuf field: uint64 account_number = 3 */ accountNumber: bigint; } /** * QueryParamsResponse defines the response type for querying x/evm parameters. * * @generated from protobuf message injective.evm.v1.QueryParamsResponse */ interface QueryParamsResponse$9 { /** * params define the evm module parameters. * * @generated from protobuf field: injective.evm.v1.Params params = 1 */ params?: Params$12; } /** * @generated MessageType for protobuf message injective.evm.v1.QueryAccountResponse */ declare const QueryAccountResponse$1 = new QueryAccountResponse$Type(); /** * @generated MessageType for protobuf message injective.evm.v1.QueryCosmosAccountResponse */ declare const QueryCosmosAccountResponse = new QueryCosmosAccountResponse$Type(); /** * @generated MessageType for protobuf message injective.evm.v1.QueryValidatorAccountResponse */ declare const QueryValidatorAccountResponse = new QueryValidatorAccountResponse$Type(); /** * @generated MessageType for protobuf message injective.evm.v1.QueryParamsResponse */ declare const QueryParamsResponse$9 = new QueryParamsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcEvmTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcEvmTransformer { static grpcBlobConfigToBlobConfig(config: GrpcEvmBlobConfig): EvmBlobConfig; static grpcBlockScheduleConfigToBlockScheduleConfig(config: GrpcEvmBlobScheduleConfig): EvmBlobScheduleConfig; static grpcChainConfigToChainConfig(config: GrpcEvmChainConfig): EvmChainConfig; /** * response transformers * */ static accountResponseToAccount(response: QueryAccountResponse$1): { balance: string; codeHash: string; nonce: string; }; static cosmosAccountResponseToCosmosAccount(response: QueryCosmosAccountResponse): { sequence: string; cosmosAddress: string; accountNumber: string; }; static validatorAccountResponseToValidatorAccount(response: QueryValidatorAccountResponse): { sequence: string; accountNumber: string; accountAddress: string; }; static paramsResponseToParams(response: QueryParamsResponse$9): EvmParams | undefined; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/auth/v1beta1/query_pb.d.ts /** * QueryAccountsResponse is the response type for the Query/Accounts RPC method. * * Since: cosmos-sdk 0.43 * * @generated from protobuf message cosmos.auth.v1beta1.QueryAccountsResponse */ interface QueryAccountsResponse { /** * accounts are the existing accounts * * @generated from protobuf field: repeated google.protobuf.Any accounts = 1 */ accounts: Any[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryAccountResponse is the response type for the Query/Account RPC method. * * @generated from protobuf message cosmos.auth.v1beta1.QueryAccountResponse */ interface QueryAccountResponse { /** * account defines the account of the corresponding address. * * @generated from protobuf field: google.protobuf.Any account = 1 */ account?: Any; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message cosmos.auth.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$8 { /** * params defines the parameters of the module. * * @generated from protobuf field: cosmos.auth.v1beta1.Params params = 1 */ params?: Params$11; } /** * @generated MessageType for protobuf message cosmos.auth.v1beta1.QueryAccountsResponse */ declare const QueryAccountsResponse = new QueryAccountsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.auth.v1beta1.QueryAccountResponse */ declare const QueryAccountResponse = new QueryAccountResponse$Type(); /** * @generated MessageType for protobuf message cosmos.auth.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$8 = new QueryParamsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcAuthTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcAuthTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$8): AuthModuleParams; static grpcAccountToAccount(ethAccount: Any): Account; static accountResponseToAccount(response: QueryAccountResponse): Account; static accountsResponseToAccounts(response: QueryAccountsResponse): { pagination: Pagination; accounts: Account[]; }; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/bank/v1beta1/query_pb.d.ts /** * QueryBalanceResponse is the response type for the Query/Balance RPC method. * * @generated from protobuf message cosmos.bank.v1beta1.QueryBalanceResponse */ interface QueryBalanceResponse { /** * balance is the balance of the coin. * * @generated from protobuf field: cosmos.base.v1beta1.Coin balance = 1 */ balance?: Coin$1; } /** * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC * method. * * @generated from protobuf message cosmos.bank.v1beta1.QueryAllBalancesResponse */ interface QueryAllBalancesResponse { /** * balances is the balances of all the coins. * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin balances = 1 */ balances: Coin$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC * method * * @generated from protobuf message cosmos.bank.v1beta1.QueryTotalSupplyResponse */ interface QueryTotalSupplyResponse { /** * supply is the supply of the coins * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin supply = 1 */ supply: Coin$1[]; /** * pagination defines the pagination in the response. * * Since: cosmos-sdk 0.43 * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryParamsResponse defines the response type for querying x/bank parameters. * * @generated from protobuf message cosmos.bank.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$7 { /** * params provides the parameters of the bank module. * * @generated from protobuf field: cosmos.bank.v1beta1.Params params = 1 */ params?: Params$10; } /** * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC * method. * * @generated from protobuf message cosmos.bank.v1beta1.QueryDenomsMetadataResponse */ interface QueryDenomsMetadataResponse { /** * metadata provides the client information for all the registered tokens. * * @generated from protobuf field: repeated cosmos.bank.v1beta1.Metadata metadatas = 1 */ metadatas: Metadata$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * DenomOwner defines structure representing an account that owns or holds a * particular denominated token. It contains the account address and account * balance of the denominated token. * * Since: cosmos-sdk 0.46 * * @generated from protobuf message cosmos.bank.v1beta1.DenomOwner */ interface DenomOwner { /** * address defines the address that owns a particular denomination. * * @generated from protobuf field: string address = 1 */ address: string; /** * balance is the balance of the denominated coin for an account. * * @generated from protobuf field: cosmos.base.v1beta1.Coin balance = 2 */ balance?: Coin$1; } /** * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. * * Since: cosmos-sdk 0.46 * * @generated from protobuf message cosmos.bank.v1beta1.QueryDenomOwnersResponse */ interface QueryDenomOwnersResponse { /** * @generated from protobuf field: repeated cosmos.bank.v1beta1.DenomOwner denom_owners = 1 */ denomOwners: DenomOwner[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryBalanceResponse */ declare const QueryBalanceResponse = new QueryBalanceResponse$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryAllBalancesResponse */ declare const QueryAllBalancesResponse = new QueryAllBalancesResponse$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryTotalSupplyResponse */ declare const QueryTotalSupplyResponse = new QueryTotalSupplyResponse$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$7 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryDenomsMetadataResponse */ declare const QueryDenomsMetadataResponse = new QueryDenomsMetadataResponse$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.DenomOwner */ declare const DenomOwner = new DenomOwner$Type(); /** * @generated MessageType for protobuf message cosmos.bank.v1beta1.QueryDenomOwnersResponse */ declare const QueryDenomOwnersResponse = new QueryDenomOwnersResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcBankTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcBankTransformer { static metadataToMetadata(metadata: Metadata$1): Metadata; static moduleParamsResponseToModuleParams(response: QueryParamsResponse$7): BankModuleParams; static denomOwnersResponseToDenomOwners(response: QueryDenomOwnersResponse): { denomOwners: { address: string; balance: Coin | undefined; }[]; pagination: Pagination; }; static totalSupplyResponseToTotalSupply(response: QueryTotalSupplyResponse): { supply: TotalSupply; pagination: Pagination; }; static denomsMetadataResponseToDenomsMetadata(response: QueryDenomsMetadataResponse): { metadatas: Metadata[]; pagination: Pagination; }; static balanceResponseToBalance(response: QueryBalanceResponse): Coin; static balancesResponseToBalances(response: QueryAllBalancesResponse): { balances: Coin[]; pagination: Pagination; }; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/mint/v1beta1/query_pb.d.ts /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message cosmos.mint.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$6 { /** * params defines the parameters of the module. * * @generated from protobuf field: cosmos.mint.v1beta1.Params params = 1 */ params?: Params$9; } /** * @generated MessageType for protobuf message cosmos.mint.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$6 = new QueryParamsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcMintTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcMintTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$6): MinModuleParams; } //#endregion //#region src/client/chain/transformers/ChainGrpcWasmTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcWasmTransformer { static allContractStateResponseToContractAccountsBalanceWithPagination(response: QueryAllContractStateResponse): ContractAccountsBalanceWithPagination; static allContractStateResponseToContractState(response: QueryAllContractStateResponse): ContractStateWithPagination; static contactInfoResponseToContractInfo(contractInfo: grpcContractInfo): ContractInfo; static grpcContractCodeHistoryEntryToContractCodeHistoryEntry(entry: GrpcContractCodeHistoryEntry): ContractCodeHistoryEntry; static grpcCodeInfoResponseToCodeInfoResponse(info: GrpcCodeInfoResponse): CodeInfoResponse; static contactHistoryResponseToContractHistory(response: QueryContractHistoryResponse): { entriesList: ContractCodeHistoryEntry[]; pagination: Pagination; }; static contractCodesResponseToContractCodes(response: QueryCodesResponse): { codeInfosList: CodeInfoResponse[]; pagination: Pagination; }; static contractCodeResponseToContractCode(response: QueryCodeResponse): { codeInfo: CodeInfoResponse; data: Uint8Array; }; static contractByCodeResponseToContractByCode(response: QueryContractsByCodeResponse): { contractsList: string[]; pagination: Pagination; }; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/authz/v1beta1/query_pb.d.ts /** * QueryGrantsResponse is the response type for the Query/Authorizations RPC method. * * @generated from protobuf message cosmos.authz.v1beta1.QueryGrantsResponse */ interface QueryGrantsResponse { /** * authorizations is a list of grants granted for grantee by granter. * * @generated from protobuf field: repeated cosmos.authz.v1beta1.Grant grants = 1 */ grants: Grant[]; /** * pagination defines an pagination for the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. * * @generated from protobuf message cosmos.authz.v1beta1.QueryGranterGrantsResponse */ interface QueryGranterGrantsResponse { /** * grants is a list of grants granted by the granter. * * @generated from protobuf field: repeated cosmos.authz.v1beta1.GrantAuthorization grants = 1 */ grants: GrantAuthorization[]; /** * pagination defines an pagination for the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. * * @generated from protobuf message cosmos.authz.v1beta1.QueryGranteeGrantsResponse */ interface QueryGranteeGrantsResponse { /** * grants is a list of grants granted to the grantee. * * @generated from protobuf field: repeated cosmos.authz.v1beta1.GrantAuthorization grants = 1 */ grants: GrantAuthorization[]; /** * pagination defines an pagination for the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.QueryGrantsResponse */ declare const QueryGrantsResponse = new QueryGrantsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.QueryGranterGrantsResponse */ declare const QueryGranterGrantsResponse = new QueryGranterGrantsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.authz.v1beta1.QueryGranteeGrantsResponse */ declare const QueryGranteeGrantsResponse = new QueryGranteeGrantsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcAuthZTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcAuthZTransformer { static grpcGrantToGrant(grant: Grant): GrantWithDecodedAuthorization; static grpcGrantAuthorizationToGrantAuthorization(grant: GrantAuthorization): GrantAuthorizationWithDecodedAuthorization; static grpcGrantsToGrants(response: QueryGrantsResponse): { pagination: Pagination; grants: GrantWithDecodedAuthorization[]; }; static grpcGranteeGrantsToGranteeGrants(response: QueryGranteeGrantsResponse): { pagination: Pagination; grants: GrantAuthorizationWithDecodedAuthorization[]; }; static grpcGranterGrantsToGranterGrants(response: QueryGranterGrantsResponse): { pagination: Pagination; grants: GrantAuthorizationWithDecodedAuthorization[]; }; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/peggy/v1/query_pb.d.ts /** * @generated from protobuf message injective.peggy.v1.QueryParamsResponse */ interface QueryParamsResponse$5 { /** * @generated from protobuf field: injective.peggy.v1.Params params = 1 */ params?: Params$8; } /** * @generated MessageType for protobuf message injective.peggy.v1.QueryParamsResponse */ declare const QueryParamsResponse$5 = new QueryParamsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcPeggyTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcPeggyTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$5): PeggyModuleParams; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/query_pb.d.ts /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message injective.erc20.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$4 { /** * params defines the parameters of the module. * * @generated from protobuf field: injective.erc20.v1beta1.Params params = 1 */ params?: Params$7; } /** * QueryAllTokenPairsResponse is the response type for the Query/AllTokenPairs * RPC method. * * @generated from protobuf message injective.erc20.v1beta1.QueryAllTokenPairsResponse */ interface QueryAllTokenPairsResponse { /** * @generated from protobuf field: repeated injective.erc20.v1beta1.TokenPair token_pairs = 1 */ tokenPairs: TokenPair$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * @generated MessageType for protobuf message injective.erc20.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$4 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.erc20.v1beta1.QueryAllTokenPairsResponse */ declare const QueryAllTokenPairsResponse = new QueryAllTokenPairsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcErc20Transformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcErc20Transformer { static grpcTokenPairToTokenPair(grpcTokenPair: GrpcTokenPair): TokenPair; static paramsResponseToParams(response: QueryParamsResponse$4): Params$6; static tokenPairsResponseToTokenPairs(response: QueryAllTokenPairsResponse): { tokenPairs: { bankDenom: string; erc20Address: string; }[]; pagination: Pagination; }; } //#endregion //#region src/client/chain/transformers/ChainGrpcTxFeesTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcTxFeesTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$11): TxFeesModuleStateParams; static eipBaseFeeResponseToEipBaseFee(response: QueryEipBaseFeeResponse): TxFeesEipBaseFee; } //#endregion //#region src/client/chain/transformers/ChainGrpcCommonTransformer.d.ts declare class ChainGrpcCommonTransformer { static grpcCoinToCoin(coin: GrpcCoin): Coin; static pageRequestToGrpcPageRequestV2(pageRequest?: PaginationOption): PageRequest | undefined; static pageRequestToGrpcPageRequest(pageRequest?: PaginationOption): PageRequest | undefined; static paginationUint8ArrayToString(key: Uint8Array | string | undefined): string; static grpcPaginationToPagination(pagination: PageResponse | undefined): Pagination; static grpcPaginationToPaginationV2(pagination: PageResponse | undefined): Pagination; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/auction/v1beta1/genesis_pb.d.ts /** * GenesisState defines the auction module's genesis state. * * @generated from protobuf message injective.auction.v1beta1.GenesisState */ interface GenesisState$2 { /** * params defines all the parameters of related to auction. * * @generated from protobuf field: injective.auction.v1beta1.Params params = 1 */ params?: Params$5; /** * current auction round * * @generated from protobuf field: uint64 auction_round = 2 */ auctionRound: bigint; /** * current highest bid * * @generated from protobuf field: injective.auction.v1beta1.Bid highest_bid = 3 */ highestBid?: Bid; /** * auction ending timestamp * * @generated from protobuf field: int64 auction_ending_timestamp = 4 */ auctionEndingTimestamp: bigint; /** * last auction result * * @generated from protobuf field: injective.auction.v1beta1.LastAuctionResult last_auction_result = 5 */ lastAuctionResult?: LastAuctionResult; /** * outstanding vouchers (failed basket deliveries) * * @generated from protobuf field: repeated injective.common.vouchers.v1.AddressVoucher vouchers = 6 */ vouchers: AddressVoucher[]; } /** * @generated MessageType for protobuf message injective.auction.v1beta1.GenesisState */ declare const GenesisState$2 = new GenesisState$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/auction/v1beta1/query_pb.d.ts /** * QueryAuctionParamsRequest is the response type for the Query/AuctionParams * RPC method. * * @generated from protobuf message injective.auction.v1beta1.QueryAuctionParamsResponse */ interface QueryAuctionParamsResponse { /** * @generated from protobuf field: injective.auction.v1beta1.Params params = 1 */ params?: Params$5; } /** * QueryCurrentAuctionBasketResponse is the response type for the * Query/CurrentAuctionBasket RPC method. * * @generated from protobuf message injective.auction.v1beta1.QueryCurrentAuctionBasketResponse */ interface QueryCurrentAuctionBasketResponse { /** * amount describes the amount put on auction * * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 1 */ amount: Coin$1[]; /** * auctionRound describes current auction round * * @generated from protobuf field: uint64 auctionRound = 2 */ auctionRound: bigint; /** * auctionClosingTime describes auction close time for the round * * @generated from protobuf field: uint64 auctionClosingTime = 3 */ auctionClosingTime: bigint; /** * highestBidder describes highest bidder on current round * * @generated from protobuf field: string highestBidder = 4 */ highestBidder: string; /** * highestBidAmount describes highest bid amount on current round * * @generated from protobuf field: string highestBidAmount = 5 */ highestBidAmount: string; } /** * QueryModuleStateResponse is the response type for the * Query/AuctionModuleState RPC method. * * @generated from protobuf message injective.auction.v1beta1.QueryModuleStateResponse */ interface QueryModuleStateResponse$2 { /** * @generated from protobuf field: injective.auction.v1beta1.GenesisState state = 1 */ state?: GenesisState$2; } /** * @generated from protobuf message injective.auction.v1beta1.QueryLastAuctionResultResponse */ interface QueryLastAuctionResultResponse { /** * @generated from protobuf field: injective.auction.v1beta1.LastAuctionResult last_auction_result = 1 */ lastAuctionResult?: LastAuctionResult; } /** * @generated MessageType for protobuf message injective.auction.v1beta1.QueryAuctionParamsResponse */ declare const QueryAuctionParamsResponse = new QueryAuctionParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.QueryCurrentAuctionBasketResponse */ declare const QueryCurrentAuctionBasketResponse = new QueryCurrentAuctionBasketResponse$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.QueryModuleStateResponse */ declare const QueryModuleStateResponse$2 = new QueryModuleStateResponse$Type(); /** * @generated MessageType for protobuf message injective.auction.v1beta1.QueryLastAuctionResultResponse */ declare const QueryLastAuctionResultResponse = new QueryLastAuctionResultResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcAuctionTransformer.d.ts /** * Transformer for Auction module gRPC responses * @category Chain Grpc Transformer */ declare class ChainGrpcAuctionTransformer { static grpcBidToBid(grpcBid: GrpcAuctionBid): AuctionBid; static grpcLastAuctionResultToLastAuctionResult(grpcLastAuctionResult: GrpcAuctionLastAuctionResult): AuctionLastAuctionResult; static moduleParamsResponseToModuleParams(response: QueryAuctionParamsResponse): AuctionModuleStateParams; static currentBasketResponseToCurrentBasket(response: QueryCurrentAuctionBasketResponse): AuctionCurrentBasket; static auctionModuleStateResponseToAuctionModuleState(response: QueryModuleStateResponse$2): AuctionModuleState; static lastAuctionResultResponseToLastAuctionResult(response: QueryLastAuctionResultResponse): AuctionLastAuctionResult | undefined; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/staking/v1beta1/query_pb.d.ts /** * QueryValidatorsResponse is response type for the Query/Validators RPC method * * @generated from protobuf message cosmos.staking.v1beta1.QueryValidatorsResponse */ interface QueryValidatorsResponse { /** * validators contains all the queried validators. * * @generated from protobuf field: repeated cosmos.staking.v1beta1.Validator validators = 1 */ validators: Validator$1[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryValidatorResponse is response type for the Query/Validator RPC method * * @generated from protobuf message cosmos.staking.v1beta1.QueryValidatorResponse */ interface QueryValidatorResponse { /** * validator defines the validator info. * * @generated from protobuf field: cosmos.staking.v1beta1.Validator validator = 1 */ validator?: Validator$1; } /** * QueryDelegationResponse is response type for the Query/Delegation RPC method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryDelegationResponse */ interface QueryDelegationResponse { /** * delegation_responses defines the delegation info of a delegation. * * @generated from protobuf field: cosmos.staking.v1beta1.DelegationResponse delegation_response = 1 */ delegationResponse?: DelegationResponse; } /** * QueryDelegatorDelegationsResponse is response type for the * Query/DelegatorDelegations RPC method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse */ interface QueryDelegatorDelegationsResponse { /** * delegation_responses defines all the delegations' info of a delegator. * * @generated from protobuf field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 */ delegationResponses: DelegationResponse[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryUnbondingDelegatorDelegationsResponse is response type for the * Query/UnbondingDelegatorDelegations RPC method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse */ interface QueryDelegatorUnbondingDelegationsResponse { /** * @generated from protobuf field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 */ unbondingResponses: UnbondingDelegation[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryRedelegationsResponse is response type for the Query/Redelegations RPC * method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryRedelegationsResponse */ interface QueryRedelegationsResponse { /** * @generated from protobuf field: repeated cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 */ redelegationResponses: RedelegationResponse[]; /** * pagination defines the pagination in the response. * * @generated from protobuf field: cosmos.base.query.v1beta1.PageResponse pagination = 2 */ pagination?: PageResponse; } /** * QueryPoolResponse is response type for the Query/Pool RPC method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryPoolResponse */ interface QueryPoolResponse { /** * pool defines the pool info. * * @generated from protobuf field: cosmos.staking.v1beta1.Pool pool = 1 */ pool?: Pool$1; } /** * QueryParamsResponse is response type for the Query/Params RPC method. * * @generated from protobuf message cosmos.staking.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$3 { /** * params holds all the parameters of this module. * * @generated from protobuf field: cosmos.staking.v1beta1.Params params = 1 */ params?: Params$4; } /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryValidatorsResponse */ declare const QueryValidatorsResponse = new QueryValidatorsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryValidatorResponse */ declare const QueryValidatorResponse = new QueryValidatorResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryDelegationResponse */ declare const QueryDelegationResponse = new QueryDelegationResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse */ declare const QueryDelegatorDelegationsResponse = new QueryDelegatorDelegationsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse */ declare const QueryDelegatorUnbondingDelegationsResponse = new QueryDelegatorUnbondingDelegationsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryRedelegationsResponse */ declare const QueryRedelegationsResponse = new QueryRedelegationsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryPoolResponse */ declare const QueryPoolResponse = new QueryPoolResponse$Type(); /** * @generated MessageType for protobuf message cosmos.staking.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$3 = new QueryParamsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcStakingTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcStakingTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$3): StakingModuleParams; static validatorResponseToValidator(response: QueryValidatorResponse): Validator; static validatorsResponseToValidators(response: QueryValidatorsResponse): { validators: Validator[]; pagination: Pagination; }; static delegationResponseToDelegation(response: QueryDelegationResponse): Delegation; static delegationsResponseToDelegations(response: QueryDelegatorDelegationsResponse): { delegations: Delegation[]; pagination: Pagination; }; static unBondingDelegationsResponseToUnBondingDelegations(response: QueryDelegatorUnbondingDelegationsResponse): { unbondingDelegations: UnBondingDelegation[]; pagination: Pagination; }; static reDelegationsResponseToReDelegations(response: QueryRedelegationsResponse): { redelegations: ReDelegation[]; pagination: Pagination; }; static grpcValidatorToValidator(validator: GrpcValidator): Validator; static poolResponseToPool(response: QueryPoolResponse): Pool; static grpcValidatorDescriptionToDescription(description?: GrpcValidatorDescription): ValidatorDescription; static grpcValidatorCommissionToCommission(commission?: GrpcValidatorCommission): ValidatorCommission; static grpcValidatorStatusToStatus(status: number): "UnBonded" | "UnBonding" | "Bonded"; } //#endregion //#region src/client/chain/transformers/ChainGrpcExchangeTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcExchangeTransformer { static moduleStateResponseToModuleState(response: QueryModuleStateResponse$4): GenesisState$5; static moduleParamsResponseToParams(response: QueryExchangeParamsResponse$1): ExchangeModuleParams; static feeDiscountScheduleResponseToFeeDiscountSchedule(response: QueryFeeDiscountScheduleResponse$1): FeeDiscountSchedule; static tradingRewardsCampaignResponseToTradingRewardsCampaign(response: QueryTradeRewardCampaignResponse$1): TradeRewardCampaign; static feeDiscountAccountInfoResponseToFeeDiscountAccountInfo(response: QueryFeeDiscountAccountInfoResponse$1): FeeDiscountAccountInfo; static grpcFeeDiscountTierInfoToFeeDiscountTierInfo(info?: FeeDiscountTierInfo): FeeDiscountTierInfo | undefined; static grpcFeeDiscountTierTTLToFeeDiscountTierTTL(info?: GrpcFeeDiscountTierTTL): FeeDiscountTierTTL | undefined; static grpcPointsMultiplierToPointsMultiplier(point: GrpcPointsMultiplier): PointsMultiplier; static grpcTradingRewardCampaignBoostInfoToTradingRewardCampaignBoostInfo(info?: GrpcTradingRewardCampaignBoostInfo): TradingRewardCampaignBoostInfo | undefined; static grpcTradingRewardCampaignInfoToTradingRewardCampaignInfo(info?: GrpcTradingRewardCampaignInfo): TradingRewardCampaignInfo | undefined; static grpcCampaignRewardPoolToCampaignRewardPool(pool: GrpcCampaignRewardPool): CampaignRewardPool; static grpcPositionToPosition(position: GrpcChainPosition): ChainPosition; static positionsResponseToPositions(response: QueryPositionsResponse$1): ChainDerivativePosition[]; static isOptedOutOfRewardsResponseToIsOptedOutOfRewards(response: QueryIsOptedOutOfRewardsResponse$1): IsOptedOutOfRewards; static activeStakeGrantResponseToActiveStakeGrant(response: QueryActiveStakeGrantResponse$1): { grant: ActiveGrant$1; effectiveGrant: EffectiveGrant$1; }; static denomMinNotionalResponseToDenomMinNotional(response: QueryDenomMinNotionalResponse): string; static denomDecimalsResponseToDenomDecimals(response: QueryDenomDecimalsResponse): ChainDenomDecimal[]; static denomMinNotionalsResponseToDenomMinNotionals(response: QueryDenomMinNotionalsResponse$1): ChainDenomMinNotional[]; static spotMarketsResponseToSpotMarkets(response: QuerySpotMarketsResponse$1): SpotMarket[]; static grpcSpotMarketToSpotMarket(market: GrpcChainSpotMarket): SpotMarket; static fullSpotMarketsResponseToSpotMarkets(response: QueryFullSpotMarketsResponse$1): SpotMarket[]; static grpcFullSpotMarketToSpotMarket(market: GrpcChainFullSpotMarket): SpotMarket; static fullDerivativeMarketsResponseToDerivativeMarkets(response: QueryDerivativeMarketsResponse$1): DerivativeMarket[]; static grpcFullDerivativeMarketToDerivativeMarket(market: GrpcChainFullDerivativeMarket): DerivativeMarket; } //#endregion //#region src/client/chain/transformers/ChainGrpcExchangeTransformerV2.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcExchangeTransformerV2 { static moduleStateResponseToModuleState(response: QueryModuleStateResponse$3): GenesisState$3; static moduleParamsResponseToParams(response: QueryExchangeParamsResponse): ExchangeModuleParams; static feeDiscountScheduleResponseToFeeDiscountSchedule(response: QueryFeeDiscountScheduleResponse): FeeDiscountSchedule; static feeDiscountAccountInfoResponseToFeeDiscountAccountInfo(response: QueryFeeDiscountAccountInfoResponse): FeeDiscountAccountInfo; static grpcFeeDiscountTierInfoToFeeDiscountTierInfo(info?: FeeDiscountTierInfo$1): FeeDiscountTierInfo | undefined; static grpcFeeDiscountTierTTLToFeeDiscountTierTTL(info?: FeeDiscountTierTTL$1): FeeDiscountTierTTL | undefined; static grpcPointsMultiplierToPointsMultiplier(point: PointsMultiplier$1): PointsMultiplier; static grpcTradingRewardCampaignBoostInfoToTradingRewardCampaignBoostInfo(info?: TradingRewardCampaignBoostInfo$1): TradingRewardCampaignBoostInfo | undefined; static grpcTradingRewardCampaignInfoToTradingRewardCampaignInfo(info?: TradingRewardCampaignInfo$1): TradingRewardCampaignInfo | undefined; static grpcCampaignRewardPoolToCampaignRewardPool(pool: CampaignRewardPool$1): CampaignRewardPool; static tradingRewardsCampaignResponseToTradingRewardsCampaign(response: QueryTradeRewardCampaignResponse): TradeRewardCampaign; static isOptedOutOfRewardsResponseToIsOptedOutOfRewards(response: QueryIsOptedOutOfRewardsResponse): IsOptedOutOfRewards; static activeStakeGrantResponseToActiveStakeGrant(response: QueryActiveStakeGrantResponse): { grant: ActiveGrant; effectiveGrant: EffectiveGrant; }; static denomDecimalsResponseToDenomDecimals(response: QueryAuctionExchangeTransferDenomDecimalsResponse): ChainDenomDecimal[]; static denomMinNotionalsResponseToDenomMinNotionals(response: QueryDenomMinNotionalsResponse): ChainDenomMinNotional[]; static l3OrderbookResponseToOrderbook(response: QueryFullDerivativeOrderbookResponse | QueryFullSpotOrderbookResponse): ChainL3Orderbook; static orderbookResponseToOrderbook(response: QueryDerivativeOrderbookResponse | QuerySpotOrderbookResponse): ChainOrderbook; static grpcLevelToOrderbookLevel(level: Level): ChainOrderbookLevel; static grpcTrimmedSpotLimitOrderToOrder(order: TrimmedSpotLimitOrder): ChainTrimmedSpotLimitOrder; static grpcTrimmedDerivativeLimitOrderToOrder(order: TrimmedDerivativeLimitOrder): ChainTrimmedDerivativeLimitOrder; static spotOrdersResponseToOrders(response: QueryAccountAddressSpotOrdersResponse | QuerySpotOrdersByHashesResponse | QueryTraderSpotOrdersResponse): { orders: ChainTrimmedSpotLimitOrder[]; }; static derivativeOrdersResponseToOrders(response: QueryAccountAddressDerivativeOrdersResponse | QueryDerivativeOrdersByHashesResponse | QueryTraderDerivativeOrdersResponse): { orders: ChainTrimmedDerivativeLimitOrder[]; }; static grpcSubaccountOrderDataToOrderData(data: SubaccountOrderData): ChainSubaccountOrderData; static subaccountOrdersResponseToOrders(response: QuerySubaccountOrdersResponse): { buyOrders: ChainSubaccountOrderData[]; sellOrders: ChainSubaccountOrderData[]; }; static crossMarginPoolSnapshotResponseToCrossMarginPoolSnapshot(response: QueryCrossMarginPoolSnapshotResponse): ChainCrossMarginPoolSnapshot; static tradeRewardPointsResponseToTradeRewardPoints(response: QueryTradeRewardPointsResponse): ChainTradeRewardPoints; static openInterestResponseToOpenInterest(response: QueryOpenInterestResponse): { amount?: ChainOpenInterest; }; static subaccountDepositsResponseToSubaccountDeposits(response: QuerySubaccountDepositsResponse): { deposits: Record; }; static subaccountDepositResponseToSubaccountDeposit(response: QuerySubaccountDepositResponse): { deposits?: ChainDeposit; }; static aggregateVolumeResponseToAggregateVolume(response: QueryAggregateVolumeResponse): { aggregateVolumes: ChainMarketVolume[]; }; static aggregateVolumesResponseToAggregateVolumes(response: QueryAggregateVolumesResponse): { aggregateAccountVolumes: ChainAggregateAccountVolume[]; aggregateMarketVolumes: ChainMarketVolume[]; }; static aggregateMarketVolumeResponseToAggregateMarketVolume(response: QueryAggregateMarketVolumeResponse): { volume?: { makerVolume: string; takerVolume: string; }; }; static aggregateMarketVolumesResponseToAggregateMarketVolumes(response: QueryAggregateMarketVolumesResponse): { volumes: ChainMarketVolume[]; }; static midPriceAndTobResponseToMidPriceAndTob(response: QueryDerivativeMidPriceAndTOBResponse | QuerySpotMidPriceAndTOBResponse): ChainMidPriceAndTob; static derivativeMarketAddressResponseToDerivativeMarketAddress(response: QueryDerivativeMarketAddressResponse): ChainDerivativeMarketAddress; static grpcMarketVolumeToMarketVolume(marketVolume: MarketVolume): ChainMarketVolume; static spotMarketsResponseToSpotMarkets(response: QuerySpotMarketsResponse): SpotMarket[]; static grpcSpotMarketToSpotMarket(market: SpotMarket$1): SpotMarket; static fullSpotMarketsResponseToSpotMarkets(response: QueryFullSpotMarketsResponse): SpotMarket[]; static grpcFullSpotMarketToSpotMarket(market: FullSpotMarket): SpotMarket; static derivativeMarketsResponseToDerivativeMarkets(response: QueryDerivativeMarketsResponse): DerivativeMarket[]; static grpcFullDerivativeMarketToDerivativeMarket(market: FullDerivativeMarket): DerivativeMarket; static subaccountRiskProfileResponseToSubaccountRiskProfile(response: QuerySubaccountRiskProfileResponse): { profile?: ChainSubaccountRiskProfile; isDefault: boolean; }; static positionsResponseToPositions(response: QueryPositionsResponse): ChainDerivativePosition[]; static positionsInMarketResponseToPositions(response: QueryPositionsInMarketResponse | QuerySubaccountPositionsResponse): { state: ChainDerivativePosition[]; }; static grpcDerivativePositionToDerivativePosition(position: DerivativePosition): ChainDerivativePosition; static effectivePositionResponseToEffectivePosition(response: QuerySubaccountEffectivePositionInMarketResponse): { state?: ChainEffectivePosition; riskMode: number; }; static positionInMarketResponseToPositionInMarket(response: QuerySubaccountPositionInMarketResponse): { state?: ChainPosition; riskMode: number; }; static perpetualMarketInfoResponseToPerpetualMarketInfo(response: QueryPerpetualMarketInfoResponse): { info?: ChainPerpetualMarketInfo; }; static expiryFuturesMarketInfoResponseToExpiryFuturesMarketInfo(response: QueryExpiryFuturesMarketInfoResponse): { info?: ChainExpiryFuturesMarketInfo; }; static perpetualMarketFundingResponseToPerpetualMarketFunding(response: QueryPerpetualMarketFundingResponse): { state?: ChainPerpetualMarketFunding; }; static feeDiscountTierStatisticsResponseToFeeDiscountTierStatistics(response: QueryFeeDiscountTierStatisticsResponse): { statistics: ChainTierStatistic[]; }; static historicalTradeRecordsResponseToHistoricalTradeRecords(response: QueryHistoricalTradeRecordsResponse): { tradeRecords: ChainTradeRecords[]; }; static grpcTradeRecordToTradeRecord(record: TradeRecord): ChainTradeRecord; static grantAuthorizationsResponseToGrantAuthorizations(response: QueryGrantAuthorizationsResponse): { totalGrantAmount: string; grants: ChainGrantAuthorization[]; }; static marketBalanceResponseToMarketBalance(response: QueryMarketBalanceResponse): { balance?: ChainMarketBalance; }; static derivativeConditionalOrdersResponseToDerivativeConditionalOrders(response: QueryTraderDerivativeConditionalOrdersResponse): { orders: ChainTrimmedDerivativeConditionalOrder[]; }; static subaccountOrderMetadataResponseToSubaccountOrderMetadata(response: QuerySubaccountOrderMetadataResponse): { metadata: ChainSubaccountOrderbookMetadata[]; }; static binaryOptionsMarketsResponseToBinaryOptionsMarkets(response: QueryBinaryMarketsResponse): { markets: ChainBinaryOptionsMarket[]; }; static marketVolatilityResponseToMarketVolatility(response: QueryMarketVolatilityResponse): ChainMarketVolatility; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/genesis_pb.d.ts /** * GenesisState defines the permissions module's genesis state. * * @generated from protobuf message injective.permissions.v1beta1.GenesisState */ interface GenesisState$1 { /** * params defines the parameters of the module * * @generated from protobuf field: injective.permissions.v1beta1.Params params = 1 */ params?: Params$3; /** * namespaces defines the namespaces of the module * * @generated from protobuf field: repeated injective.permissions.v1beta1.Namespace namespaces = 2 */ namespaces: Namespace[]; /** * vouchers defines the vouchers of the module * * @generated from protobuf field: repeated injective.common.vouchers.v1.AddressVoucher vouchers = 3 */ vouchers: AddressVoucher[]; } /** * @generated MessageType for protobuf message injective.permissions.v1beta1.GenesisState */ declare const GenesisState$1 = new GenesisState$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/query_pb.d.ts /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$2 { /** * params defines the parameters of the module. * * @generated from protobuf field: injective.permissions.v1beta1.Params params = 1 */ params?: Params$3; } /** * QueryNamespaceDenomsResponse is the response type for the * Query/NamespaceDenoms RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryNamespaceDenomsResponse */ interface QueryNamespaceDenomsResponse { /** * List of denoms * * @generated from protobuf field: repeated string denoms = 1 */ denoms: string[]; } /** * QueryNamespacesResponse is the response type for the Query/Namespaces * RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryNamespacesResponse */ interface QueryNamespacesResponse { /** * List of namespaces * * @generated from protobuf field: repeated injective.permissions.v1beta1.Namespace namespaces = 1 */ namespaces: Namespace[]; } /** * QueryNamespaceResponse is the response type for the * Query/NamespaceByDenom RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryNamespaceResponse */ interface QueryNamespaceResponse { /** * The namespace details * * @generated from protobuf field: injective.permissions.v1beta1.Namespace namespace = 1 */ namespace?: Namespace; } /** * QueryAddressesByRoleResponse is the response type for the * Query/AddressesByRole RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryActorsByRoleResponse */ interface QueryActorsByRoleResponse { /** * List of actors' Injective addresses * * @generated from protobuf field: repeated string actors = 1 */ actors: string[]; } /** * QueryRolesByActorResponse is the response type for the * Query/RolesByActor RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryRolesByActorResponse */ interface QueryRolesByActorResponse { /** * List of roles * * @generated from protobuf field: repeated string roles = 1 */ roles: string[]; } /** * QueryRoleManagersResponse is the response type for the * Query/RoleManagers RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryRoleManagersResponse */ interface QueryRoleManagersResponse { /** * List of role managers * * @generated from protobuf field: repeated injective.permissions.v1beta1.RoleManager role_managers = 1 */ roleManagers: RoleManager[]; } /** * QueryRoleManagerResponse is the response type for the * Query/RoleManager RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryRoleManagerResponse */ interface QueryRoleManagerResponse { /** * The role manager details * * @generated from protobuf field: injective.permissions.v1beta1.RoleManager role_manager = 1 */ roleManager?: RoleManager; } /** * QueryRoleManagerResponse is the response type for the * Query/RoleManager RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryPolicyStatusesResponse */ interface QueryPolicyStatusesResponse { /** * List of policy statuses * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 1 */ policyStatuses: PolicyStatus[]; } /** * QueryPolicyManagerCapabilitiesResponse is the response type for the * Query/PolicyManagerCapabilities RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse */ interface QueryPolicyManagerCapabilitiesResponse { /** * List of policy manager capabilities * * @generated from protobuf field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 1 */ policyManagerCapabilities: PolicyManagerCapability[]; } /** * @generated from protobuf message injective.permissions.v1beta1.QueryVouchersResponse */ interface QueryVouchersResponse { /** * List of outstanding vouchers matching the request filter. * * @generated from protobuf field: repeated injective.common.vouchers.v1.AddressVoucher vouchers = 1 */ vouchers: AddressVoucher[]; } /** * @generated from protobuf message injective.permissions.v1beta1.QueryVoucherResponse */ interface QueryVoucherResponse { /** * The voucher amount * * @generated from protobuf field: cosmos.base.v1beta1.Coin voucher = 1 */ voucher?: Coin$1; } /** * QueryModuleStateResponse is the response type for the * Query/PermissionsModuleState RPC method. * * @generated from protobuf message injective.permissions.v1beta1.QueryModuleStateResponse */ interface QueryModuleStateResponse$1 { /** * The module state * * @generated from protobuf field: injective.permissions.v1beta1.GenesisState state = 1 */ state?: GenesisState$1; } /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$2 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryNamespaceDenomsResponse */ declare const QueryNamespaceDenomsResponse = new QueryNamespaceDenomsResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryNamespacesResponse */ declare const QueryNamespacesResponse = new QueryNamespacesResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryNamespaceResponse */ declare const QueryNamespaceResponse = new QueryNamespaceResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryActorsByRoleResponse */ declare const QueryActorsByRoleResponse = new QueryActorsByRoleResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryRolesByActorResponse */ declare const QueryRolesByActorResponse = new QueryRolesByActorResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryRoleManagersResponse */ declare const QueryRoleManagersResponse = new QueryRoleManagersResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryRoleManagerResponse */ declare const QueryRoleManagerResponse = new QueryRoleManagerResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryPolicyStatusesResponse */ declare const QueryPolicyStatusesResponse = new QueryPolicyStatusesResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse */ declare const QueryPolicyManagerCapabilitiesResponse = new QueryPolicyManagerCapabilitiesResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryVouchersResponse */ declare const QueryVouchersResponse = new QueryVouchersResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryVoucherResponse */ declare const QueryVoucherResponse = new QueryVoucherResponse$Type(); /** * @generated MessageType for protobuf message injective.permissions.v1beta1.QueryModuleStateResponse */ declare const QueryModuleStateResponse$1 = new QueryModuleStateResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcPermissionsTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcPermissionsTransformer { static grpcRoleToRole(grpcRole: GrpcPermissionRole): PermissionRole; static grpcActorRolesToActorRoles(grpcActorRoles: GrpcPermissionActorRoles): PermissionActorRoles; static grpcRoleManagerToRoleManager(grpcRoleManager: GrpcPermissionRoleManager): PermissionRoleManager; static grpcPolicyStatusToPolicyStatus(grpcPolicyStatus: GrpcPermissionPolicyStatus): PermissionPolicyStatus; static grpcPolicyManagerCapabilityToPolicyManagerCapability(grpcPolicyManagerCapability: GrpcPermissionPolicyStatusManagerCapability): PermissionPolicyManagerCapability; static grpcAddressVoucherToAddressVoucher(grpcAddressVoucher: GrpcPermissionAddressVoucher): PermissionAddressVoucher; static grpcNamespaceToNamespace(grpcNamespace: GrpcPermissionNamespace): PermissionNamespace; static moduleParamsResponseToModuleParams(response: QueryParamsResponse$2): PermissionsModuleParams; static nameSpaceDenomsResponseToNameSpaceDenoms(response: QueryNamespaceDenomsResponse): string[]; static namespaceResponseToNamespaces(response: QueryNamespaceResponse): PermissionNamespace | undefined; static namespacesResponseToNamespaces(response: QueryNamespacesResponse): void[]; static actorsByRoleResponseToActorsByRole(response: QueryActorsByRoleResponse): { roles: string; }[]; static rolesByActorResponseToRolesByActor(response: QueryRolesByActorResponse): { roles: string; }[]; static roleManagerResponseToRoleManager(response: QueryRoleManagerResponse): PermissionRoleManager | undefined; static roleManagersResponseToRoleManagers(response: QueryRoleManagersResponse): PermissionRoleManager[]; static policyStatusesResponseToPolicyStatuses(response: QueryPolicyStatusesResponse): PermissionPolicyStatus[]; static policyManagerCapabilitiesResponseToPolicyManagerCapabilities(response: QueryPolicyManagerCapabilitiesResponse): PermissionPolicyManagerCapability[]; static voucherResponseToVoucher(response: QueryVoucherResponse): Coin$9 | undefined; static vouchersResponseToVouchers(response: QueryVouchersResponse): PermissionAddressVoucher[]; static moduleStateResponseToModuleState(response: QueryModuleStateResponse$1): { params: PermissionsModuleParams; namespaces: PermissionNamespace[]; vouchers: PermissionAddressVoucher[]; } | undefined; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/distribution/v1beta1/query_pb.d.ts /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message cosmos.distribution.v1beta1.QueryParamsResponse */ interface QueryParamsResponse$1 { /** * params defines the parameters of the module. * * @generated from protobuf field: cosmos.distribution.v1beta1.Params params = 1 */ params?: Params$2; } /** * QueryDelegationRewardsResponse is the response type for the * Query/DelegationRewards RPC method. * * @generated from protobuf message cosmos.distribution.v1beta1.QueryDelegationRewardsResponse */ interface QueryDelegationRewardsResponse { /** * rewards defines the rewards accrued by a delegation. * * @generated from protobuf field: repeated cosmos.base.v1beta1.DecCoin rewards = 1 */ rewards: DecCoin[]; } /** * QueryDelegationTotalRewardsResponse is the response type for the * Query/DelegationTotalRewards RPC method. * * @generated from protobuf message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse */ interface QueryDelegationTotalRewardsResponse { /** * rewards defines all the rewards accrued by a delegator. * * @generated from protobuf field: repeated cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 */ rewards: DelegationDelegatorReward[]; /** * total defines the sum of all the rewards. * * @generated from protobuf field: repeated cosmos.base.v1beta1.DecCoin total = 2 */ total: DecCoin[]; } /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse$1 = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.QueryDelegationRewardsResponse */ declare const QueryDelegationRewardsResponse = new QueryDelegationRewardsResponse$Type(); /** * @generated MessageType for protobuf message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse */ declare const QueryDelegationTotalRewardsResponse = new QueryDelegationTotalRewardsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcDistributionTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcDistributionTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse$1): DistributionModuleParams; static delegationRewardResponseToReward(response: QueryDelegationRewardsResponse): Coin[]; static totalDelegationRewardResponseToTotalReward(response: QueryDelegationTotalRewardsResponse): ValidatorRewards[]; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/tokenfactory/v1beta1/authorityMetadata_pb.d.ts /** * DenomAuthorityMetadata specifies metadata for addresses that have specific * capabilities over a token factory denom. Right now there is only one Admin * permission, but is planned to be extended to the future. * * @generated from protobuf message injective.tokenfactory.v1beta1.DenomAuthorityMetadata */ interface DenomAuthorityMetadata { /** * Can be empty for no admin, or a valid injective address * * @generated from protobuf field: string admin = 1 */ admin: string; /** * true if the admin can burn tokens from other addresses * * @generated from protobuf field: bool admin_burn_allowed = 2 */ adminBurnAllowed: boolean; } /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.DenomAuthorityMetadata */ declare const DenomAuthorityMetadata = new DenomAuthorityMetadata$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/tokenfactory/v1beta1/genesis_pb.d.ts /** * GenesisState defines the tokenfactory module's genesis state. * * @generated from protobuf message injective.tokenfactory.v1beta1.GenesisState */ interface GenesisState { /** * params defines the parameters of the module. * * @generated from protobuf field: injective.tokenfactory.v1beta1.Params params = 1 */ params?: Params$1; /** * @generated from protobuf field: repeated injective.tokenfactory.v1beta1.GenesisDenom factory_denoms = 2 */ factoryDenoms: GenesisDenom[]; } /** * GenesisDenom defines a tokenfactory denom that is defined within genesis * state. The structure contains DenomAuthorityMetadata which defines the * denom's admin. * * @generated from protobuf message injective.tokenfactory.v1beta1.GenesisDenom */ interface GenesisDenom { /** * The denom * * @generated from protobuf field: string denom = 1 */ denom: string; /** * The authority metadata * * @generated from protobuf field: injective.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 2 */ authorityMetadata?: DenomAuthorityMetadata; /** * The name * * @generated from protobuf field: string name = 3 */ name: string; /** * The symbol * * @generated from protobuf field: string symbol = 4 */ symbol: string; /** * The number of decimals * * @generated from protobuf field: uint32 decimals = 5 */ decimals: number; } /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.GenesisState */ declare const GenesisState = new GenesisState$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.GenesisDenom */ declare const GenesisDenom = new GenesisDenom$Type(); //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/tokenfactory/v1beta1/query_pb.d.ts /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from protobuf message injective.tokenfactory.v1beta1.QueryParamsResponse */ interface QueryParamsResponse { /** * params defines the parameters of the module. * * @generated from protobuf field: injective.tokenfactory.v1beta1.Params params = 1 */ params?: Params$1; } /** * QueryDenomAuthorityMetadataResponse defines the response structure for the * DenomAuthorityMetadata gRPC query. * * @generated from protobuf message injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse */ interface QueryDenomAuthorityMetadataResponse { /** * The authority metadata * * @generated from protobuf field: injective.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 1 */ authorityMetadata?: DenomAuthorityMetadata; } /** * QueryDenomsFromCreatorRequest defines the response structure for the * DenomsFromCreator gRPC query. * * @generated from protobuf message injective.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse */ interface QueryDenomsFromCreatorResponse { /** * The list of denoms * * @generated from protobuf field: repeated string denoms = 1 */ denoms: string[]; } /** * QueryModuleStateResponse is the response type for the * Query/TokenfactoryModuleState RPC method. * * @generated from protobuf message injective.tokenfactory.v1beta1.QueryModuleStateResponse */ interface QueryModuleStateResponse { /** * The module state * * @generated from protobuf field: injective.tokenfactory.v1beta1.GenesisState state = 1 */ state?: GenesisState; } /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.QueryParamsResponse */ declare const QueryParamsResponse = new QueryParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse */ declare const QueryDenomAuthorityMetadataResponse = new QueryDenomAuthorityMetadataResponse$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse */ declare const QueryDenomsFromCreatorResponse = new QueryDenomsFromCreatorResponse$Type(); /** * @generated MessageType for protobuf message injective.tokenfactory.v1beta1.QueryModuleStateResponse */ declare const QueryModuleStateResponse = new QueryModuleStateResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcTokenFactoryTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcTokenFactoryTransformer { static moduleParamsResponseToModuleParams(response: QueryParamsResponse): TokenFactoryModuleParams; static moduleStateResponseToModuleState(response: QueryModuleStateResponse): TokenFactoryModuleState; static denomsCreatorResponseToDenomsString(response: QueryDenomsFromCreatorResponse): string[]; static authorityMetadataResponseToAuthorityMetadata(response: QueryDenomAuthorityMetadataResponse): AuthorityMetadata; } //#endregion //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.5/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/insurance/v1beta1/query_pb.d.ts /** * QueryInsuranceParamsRequest is the response type for the * Query/InsuranceParams RPC method. * * @generated from protobuf message injective.insurance.v1beta1.QueryInsuranceParamsResponse */ interface QueryInsuranceParamsResponse { /** * @generated from protobuf field: injective.insurance.v1beta1.Params params = 1 */ params?: Params; } /** * QueryInsuranceFundResponse is the response type for the Query/InsuranceFund * RPC method. * * @generated from protobuf message injective.insurance.v1beta1.QueryInsuranceFundResponse */ interface QueryInsuranceFundResponse { /** * @generated from protobuf field: injective.insurance.v1beta1.InsuranceFund fund = 1 */ fund?: InsuranceFund$1; } /** * QueryInsuranceFundsResponse is the response type for the Query/InsuranceFunds * RPC method. * * @generated from protobuf message injective.insurance.v1beta1.QueryInsuranceFundsResponse */ interface QueryInsuranceFundsResponse { /** * @generated from protobuf field: repeated injective.insurance.v1beta1.InsuranceFund funds = 1 */ funds: InsuranceFund$1[]; } /** * QueryEstimatedRedemptionsResponse is the response type for the * Query/EstimatedRedemptions RPC method. * * @generated from protobuf message injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse */ interface QueryEstimatedRedemptionsResponse { /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 1 */ amount: Coin$1[]; } /** * QueryPendingRedemptionsResponse is the response type for the * Query/PendingRedemptions RPC method. * * @generated from protobuf message injective.insurance.v1beta1.QueryPendingRedemptionsResponse */ interface QueryPendingRedemptionsResponse { /** * @generated from protobuf field: repeated cosmos.base.v1beta1.Coin amount = 1 */ amount: Coin$1[]; } /** * @generated MessageType for protobuf message injective.insurance.v1beta1.QueryInsuranceParamsResponse */ declare const QueryInsuranceParamsResponse = new QueryInsuranceParamsResponse$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.QueryInsuranceFundResponse */ declare const QueryInsuranceFundResponse = new QueryInsuranceFundResponse$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.QueryInsuranceFundsResponse */ declare const QueryInsuranceFundsResponse = new QueryInsuranceFundsResponse$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse */ declare const QueryEstimatedRedemptionsResponse = new QueryEstimatedRedemptionsResponse$Type(); /** * @generated MessageType for protobuf message injective.insurance.v1beta1.QueryPendingRedemptionsResponse */ declare const QueryPendingRedemptionsResponse = new QueryPendingRedemptionsResponse$Type(); //#endregion //#region src/client/chain/transformers/ChainGrpcInsuranceFundTransformer.d.ts /** * @category Chain Grpc Transformer */ declare class ChainGrpcInsuranceFundTransformer { static moduleParamsResponseToModuleParams(response: QueryInsuranceParamsResponse): InsuranceModuleParams; static grpcInsuranceFundToInsuranceFund(grpcFund: GrpcInsuranceFund): InsuranceFund; static insuranceFundResponseToInsuranceFund(response: QueryInsuranceFundResponse): InsuranceFund; static insuranceFundsResponseToInsuranceFunds(response: QueryInsuranceFundsResponse): InsuranceFund[]; static redemptionsResponseToRedemptions(response: QueryEstimatedRedemptionsResponse): { amount: string; denom: string; }[]; static estimatedRedemptionsResponseToEstimatedRedemptions(response: QueryPendingRedemptionsResponse): { amount: string; denom: string; }[]; } //#endregion export { TcDerivativeOrdersStreamCallbackV2 as $, EvmParams as $_, GrpcMegaVaultIncentives as $a, MsgCreateSpotMarketOrder as $b, RFQTakerAuthResult as $c, derivativeMarginFromChainMargin as $d, messageHash as $f, PermissionRoleIDs as $g, FactoryDenomWithMetadata as $h, ExplorerApiResponse as $i, ListTradingStrategiesResponse as $l, TxResultResponse as $m, IndexerGrpcAuctionTransformer as $n, AccountStats as $o, numberTypeToReflectionNumberType as $p, ChronosLeaderboard as $r, RFQGwPrepareResponseType as $s, DerivativeOrdersStreamCallback as $t, MitoLeaderboard as $u, GrpcDenomMinNotional as $v, MsgSendToEth as $x, ContractInfo as $y, ChainGrpcExchangeApi as A, GrpcInsuranceFund as A_, GrpcPerpetualMarketFunding as Aa, MsgWithdrawValidatorCommission as Ab, GrpcRFQQuote as Ac, WsTransportConfig as Ad, bigIntReplacer as Af, GrpcAuctionParams as Ag, GovMsgs as Ah, GrpcTcDerivativeTradeHistory as Ai, GrpcExplorerStats as Al, subscribeToTendermintTxEvent as Am, SpotOrderbookUpdateStreamCallback as An, MegaVaultTargetApr as Ao, msgsOrMsgExecMsgs as Ap, IndexerGrpcRfqGwApi as Ar, GrpcAuctionV2 as As, HistoricalStakingStreamCallbackV2 as At, GrpcMitoPriceSnapshot as Au, ChainSubaccountRiskProfile as Av, MsgCancelSpotOrder as Ax, GrpcReDelegationEntryResponse as Ay, ChainGrpcMintApi as B, GrpcSupply as B_, GrpcIndexerInsuranceFund as Ba, MsgDecreasePositionMarginV2 as Bb, RFQMakerChallenge as Bc, getChecksumAddress as Bd, isServerSide as Bf, GrpcPermissionsNamespace as Bg, MsgSetDelegationTransferReceiversV2 as Bh, TcDerivativePosition as Bi, Message as Bl, createTxRawFromSigResponse as Bm, IndexerGrpcAccountPortfolioTransformer as Bn, ChronosSpotMarketSummaryResponse as Bo, MsgDecoder as Bp, StreamStatusResponse as Br, GrpcRFQGwPrepareEip712Request as Bs, SpotTradesStreamCallbackV2 as Bt, MitoChanges as Bu, ExchangeParams as Bv, MsgChangeAdmin as Bx, ReDelegation as By, ChainRestBankApi as C, GrpcWebFetchTransport as CS, CreateSpotLimitOrderAuthz as C_, GrpcDerivativeOrderHistory as Ca, VoteOption as Cb, OrderbookWithSequence as Cc, ResolvedWsTransportConfig as Cd, spotPriceFromChainPriceToFixed as Cf, AuctionModuleStateResponse as Cg, BankMsgs as Ch, WsPriceOracleSlimPrices as Ci, ExplorerTransactionV2 as Cl, createTxRawEIP712 as Cm, StakingRewardByAccountStreamCallback as Cn, MegaVaultPnl as Co, OrderHashManager as Cp, IndexerGrpcExplorerApi as Cr, AuctionV2 as Cs, IndexerGrpcAuctionStreamV2 as Ct, GrpcMitoIDOSubscription as Cu, ChainOrderbook as Cv, MsgInstantiateContract as Cx, TradingRewardCampaignInfo as Cy, ChainGrpcPermissionsApi as D, GrantAuthorization$2 as D_, GrpcExpiryFuturesMarketInfo as Da, MsgCreateDerivativeMarketOrderV2 as Db, GrpcRFQConditionalOrder as Dc, WsDisconnectReason as Dd, spotQuantityFromChainQuantityToFixed as Df, GrpcAuctionEventAuctionStart as Dg, ExchangeV1Msgs as Dh, GrpcTcDerivativeOrderHistory as Di, ExplorerValidatorUptime as Dl, getTransactionPartsFromTxRaw as Dm, IndexerGrpcSpotStream as Dn, MegaVaultStats as Do, GenericAuthorization as Dp, IndexerGrpcWeb3GwApi as Dr, GrpcAuctionCoin as Ds, OracleListStreamCallbackV2 as Dt, GrpcMitoMission as Du, ChainPosition as Dv, MsgExternalTransfer as Dx, GrpcDelegationResponse as Dy, ChainGrpcDistributionApi as E, Grant$1 as E_, GrpcDerivativeTrade as Ea, MsgUpdateSubaccountRiskProfileV2 as Eb, Route as Ec, TransportEvents as Ed, spotQuantityFromChainQuantity as Ef, GrpcAuctionEventAuctionResult as Eg, ExchangeMsgs as Eh, GrpcTcDerivativeLimitOrder as Ei, ExplorerValidatorDescription as El, getPublicKey as Em, VaultStreamCallback as En, MegaVaultRedemptionStatus as Eo, ContractExecutionAuthorization as Ep, IndexerGrpcAccountApi as Er, GrpcAuction as Es, IndexerGrpcOracleStreamV2 as Et, GrpcMitoLeaderboardEpoch as Eu, ChainPerpetualMarketInfo as Ev, MsgOffsetPositionV2 as Ex, GrpcDelegation as Ey, ChainGrpcErc20Api as F, OracleTypeMap as F_, PerpetualMarketFunding$1 as Fa, MsgCreateDerivativeLimitOrder as Fb, RFQConditionalOrder as Fc, grpcPagingToPaging as Fd, hexToNumber as Ff, GrpcPermissionPolicyStatusManagerCapability as Fg, PeggyMsgs as Fh, GrpcTcFundingPaymentsResponse as Fi, GrpcPeggyWithdrawalTx as Fl, createTransactionAndCosmosSignDoc as Fm, IndexerTcDerivativesStreamTransformer as Fn, MegaVaultVolatilityStats as Fo, MsgBroadcasterWithPkOptions as Fp, IndexerWsMakerStream as Fr, GrpcCosmosPubKey as Fs, VaultStreamCallbackV2 as Ft, GrpcMitoSubaccountBalance as Fu, ChainTrimmedDerivativeConditionalOrder as Fv, MsgUpdateRateLimit as Fx, GrpcValidator as Fy, ChainGrpcGovApi as G, AuthBaseAccount as G_, Redemption as Ga, MsgBatchCancelSpotOrdersV2 as Gb, RFQRequestType as Gc, amountToCosmosSdkDecAmount as Gd, sortObjectByKeysWithReduce as Gf, PermissionAddressVoucher as Gg, MsgCreateBinaryOptionsMarketOrder as Gh, TcFundingPayment as Gi, Transaction as Gl, RestSignerInfo as Gm, IndexerGrpcMegaVaultTransformer as Gn, GrpcCampaignUser as Go, getEip712Domain as Gp, GrpcAccountPortfolioV2 as Gr, RFQGwPrepareAutoSignRequestType as Gs, StreamManager as Gt, MitoHolders as Gu, GrpcCampaignRewardPool as Gv, MsgWithdrawV2 as Gx, ValidatorDescription as Gy, ChainGrpcAuthApi as H, SendEnabled as H_, IndexerInsuranceFund as Ha, MsgUpdateDerivativeMarketV2 as Hb, RFQProcessedQuoteType as Hc, getDerivativeMarketTensMultiplier as Hd, protoObjectToJson as Hf, PermissionActionMap as Hg, MsgBatchCancelBinaryOptionsOrdersV2 as Hh, TcDerivativeTradesResponse as Hi, PeggyDepositTx as Hl, BroadcastMode as Hm, IndexerGrpcDerivativeTransformer as Hn, CampaignUser as Ho, getEip712TypedDataV2 as Hp, ChronosMarketHistoryResponse as Hr, GrpcRFQGwPrepareQuoteResult as Hs, QuoteStreamCallbackV2 as Ht, MitoDenomBalance as Hu, FeeDiscountSchedule as Hv, MsgPrivilegedExecuteContract as Hx, UnBondingDelegation as Hy, ChainGrpcWasmXApi as I, GrpcMintParams as I_, PerpetualMarketInfo$1 as Ia, MsgLiquidateCrossMarginPoolV2 as Ib, RFQConditionalOrderInput as Ic, grpcPagingToPagingV2 as Id, isBrowser as If, GrpcPermissionRole as Ig, StakingMsgs as Ih, GrpcTcPositionDelta as Ii, GrpcValidatorSlashingEvent as Il, createTransactionAndCosmosSignDocForAddressAndMsg as Im, IndexerWsPriceOracleStreamTransformer as In, OperationStatusLogEntry as Io, BaseAccount as Ip, IndexerWsTakerStream as Ir, GrpcRFQGwPrepareAutoSignRequest as Is, IndexerGrpcSpotStreamV2 as It, GrpcMitoSubscription as Iu, ChainTrimmedDerivativeLimitOrder as Iv, MsgCreateRateLimit as Ix, GrpcValidatorCommission as Iy, StreamManagerV2 as J, PubKey$1 as J_, IncentivesRound as Ja, MsgActivatePostOnlyModeV2 as Jb, RFQSettlementUnfilledActionType as Jc, denomAmountFromChainDenomAmountToFixed as Jd, TypedDataUtilsSanitizeData as Jf, PermissionParams as Jg, ChainModule as Jh, BankTransferFromExplorerApiResponse as Ji, ValidatorUptime as Jl, RestTxLog as Jm, IndexerRestExplorerTransformer as Jn, GrpcGuildMember as Jo, getEip712FeeV2 as Jp, GrpcPositionsWithUPNL as Jr, RFQGwPrepareEip712AutoSignResponseType as Js, IndexerGrpcAccountPortfolioStream as Jt, MitoIDOInitParams as Ju, GrpcChainFullDerivativeMarket as Jv, MsgDepositV2 as Jx, ContractAccountBalance as Jy, accountEthParser as K, AuthModuleParams as K_, RedemptionStatus as Ka, MsgCancelDerivativeOrderV2 as Kb, RFQSettlementLimitActionType$1 as Kc, cosmosSdkDecToBigNumber as Kd, SignTypedDataVersionV4 as Kf, PermissionGenesisState as Kg, MsgBatchCancelBinaryOptionsOrders as Kh, TcFundingPaymentsResponse as Ki, TxMessage as Kl, RestTx as Km, IndexerAuctionStreamTransformer as Kn, GrpcCampaignV2 as Ko, getEip712DomainV2 as Kp, GrpcPortfolioSubaccountBalanceV2 as Kr, RFQGwPrepareAutoSignResponseType as Ks, createStreamSubscription as Kt, MitoIDO as Ku, GrpcChainDerivativeMarket as Kv, MsgSignDataV2 as Kx, AbsoluteTxPosition as Ky, ChainGrpcPeggyApi as L, MinModuleParams as L_, Position$1 as La, MsgInstantSpotMarketLaunchV2 as Lb, RFQConditionalOrdersResponse as Lc, pageRequestToGrpcPageRequestV2 as Ld, isJsonString as Lf, GrpcPermissionRoleActors as Lg, TokenFactoryMsgs as Lh, TcDerivativeLimitOrder as Li, GrpcValidatorUptime as Ll, createTransactionForAddressAndMsg as Lm, IndexerGrpcTcDerivativesTransformer as Ln, AllChronosSpotMarketSummary as Lo, PrivateKey as Lp, GrpcWebSocketTransport as Lr, GrpcRFQGwPrepareAutoSignResponse as Ls, SpotOrderHistoryStreamCallbackV2 as Lt, GrpcMitoTokenInfo as Lu, ChainTrimmedSpotLimitOrder as Lv, MsgMigrateContract as Lx, GrpcValidatorCommissionRates as Ly, ChainGrpcAuctionApi as M, GrpcRedemptionSchedule as M_, GrpcPositionDelta as Ma, MsgCreateDerivativeMarketOrder as Mb, GrpcRFQSettlement as Mc, fetchAllWithPagination as Md, bigIntToString as Mf, GrpcPermissionAddressVoucher as Mg, InsuranceMsgs as Mh, GrpcTcDerivativesOrdersHistoryResponse as Mi, GrpcIBCTransferTx as Ml, TxGrpcApi as Mm, SpotOrdersStreamCallback as Mn, MegaVaultUser as Mo, ExecArgNeptuneDeposit as Mp, IndexerGrpcMetaApi as Mr, IndexerAuctionBid as Ms, StakingRewardByAccountStreamCallbackV2 as Mt, GrpcMitoStakingPool as Mu, ChainTradeRecord as Mv, MsgBeginRedelegate as Mx, GrpcStakingParams as My, ChainGrpcTxFeesApi as N, InsuranceFund as N_, OpenNotionalCap as Na, MsgBatchCancelDerivativeOrders as Nb, MakerStreamConfig as Nc, fetchAllWithTokenPagination as Nd, getErrorMessage as Nf, GrpcPermissionNamespace as Ng, Msgs as Nh, GrpcTcDerivativesPositionsResponse as Ni, GrpcIndexerValidatorDescription as Nl, waitTxBroadcasted as Nm, SpotTradesStreamCallback as Nn, MegaVaultUserStats as No, MsgBroadcasterTxOptions as Np, IndexerGrpcMitoApi as Nr, StreamBidsResponse as Ns, TransfersStreamCallbackV2 as Nt, GrpcMitoStakingStakingActivity as Nu, ChainTradeRecords as Nv, MsgGrantAllowance as Nx, GrpcUnbondingDelegation as Ny, ChainGrpcTendermintApi as O, GrantAuthorizationWithDecodedAuthorization as O_, GrpcFundingPayment as Oa, MsgBatchCancelDerivativeOrdersV2 as Ob, GrpcRFQExpiry as Oc, WsReconnectConfig as Od, spotQuantityToChainQuantity as Of, GrpcAuctionEventBid as Og, ExchangeV2Msgs as Oh, GrpcTcDerivativeOrdersResponse as Oi, GasFee as Ol, generateArbitrarySignDoc as Om, MarketsStreamCallback as On, MegaVaultSubscription as Oo, GrantAuthorizationType as Op, IndexerGrpcTransactionApi as Or, GrpcAuctionCoinPrices as Os, OraclePriceStreamCallbackV2 as Ot, GrpcMitoMissionLeaderboardEntry as Ou, ChainSubaccountOrderData as Ov, MsgRewardsOptOutV2 as Ox, GrpcPool as Oy, ChainGrpcOracleApi as P, InsuranceModuleParams as P_, PerpetualMarket as Pa, MsgCancelBinaryOptionsOrderV2 as Pb, MakerStreamEvents as Pc, grpcPaginationToPagination as Pd, grpcCoinToUiCoin as Pf, GrpcPermissionPolicyStatus as Pg, OracleMsgs as Ph, GrpcTcFundingPayment as Pi, GrpcPeggyDepositTx as Pl, createTransaction as Pm, IndexerAccountPortfolioStreamTransformer as Pn, MegaVaultVolatility as Po, MsgBroadcasterWithPk as Pp, IndexerGrpcRFQApi as Pr, CosmosPubKeyType as Ps, VaultHolderSubscriptionStreamCallbackV2 as Pt, GrpcMitoStakingStakingReward as Pu, ChainTradeRewardPoints as Pv, MsgRemoveRateLimit as Px, GrpcUnbondingDelegationEntry as Py, TcDerivativeOrderHistoryStreamCallbackV2 as Q, EvmLog as Q_, GrpcMegaVaultHistoricalTVL as Qa, MsgIncreasePositionMargin as Qb, RFQTakerAuth as Qc, denomAmountToGrpcChainDenomAmount as Qd, hashToHex as Qf, PermissionRoleActors as Qg, AuthorityMetadata as Qh, ContractTransactionExplorerApiResponse as Qi, GridStrategyType as Ql, TxResult as Qm, IndexerGrpcArchiverTransformer as Qn, ReferralDetails as Qo, getObjectEip712PropertyType as Qp, SubaccountDepositV2 as Qr, RFQGwPrepareRequestType as Qs, DerivativeOrderbookV2StreamCallback as Qt, MitoIDOSubscriptionActivity as Qu, GrpcDenomDecimals as Qv, MsgDelegate as Qx, ContractCodeHistoryOperationTypeMap as Qy, ChainGrpcAuthZApi as R, BankModuleParams as R_, PositionDelta as Ra, MsgWithdrawDelegatorReward as Rb, RFQExpiryType as Rc, paginationRequestFromPagination as Rd, isNode as Rf, GrpcPermissionRoleIDs as Rg, WasmMsgs as Rh, TcDerivativeOrderHistory as Ri, IBCTransferTx as Rl, createTransactionFromMsg as Rm, IndexerGrpcInsuranceFundTransformer as Rn, AllSpotMarketSummaryResponse as Ro, PublicKey as Rp, GrpcWebSocketCodec as Rr, GrpcRFQGwPrepareEip712AutoSignRequest as Rs, SpotOrderbookUpdateStreamCallbackV2 as Rt, GrpcMitoVault as Ru, DepositProposalParams as Rv, MsgExecuteContract as Rx, GrpcValidatorDescription as Ry, ChainRestAuthApi as S, MsgVote as SS, CreateDerivativeMarketOrderAuthz as S_, GrpcDerivativeMarketInfo as Sa, Vote as Sb, Orderbook as Sc, IsomorphicWebSocket as Sd, spotPriceFromChainPrice as Sf, AuctionModuleStateParams as Sg, AuthzMsgs as Sh, WsPriceOracleResponseMode as Si, ExplorerTransaction as Sl, createSigners as Sm, IndexerGrpcMitoStream as Sn, MegaVaultOperatorRedemptionBucket as So, MsgClaimVoucher as Sp, IndexerGrpcCampaignApi as Sr, AuctionContract as Ss, BidsStreamCallbackV2 as St, GrpcMitoIDOSubscriber as Su, ChainOpenInterest as Sv, MsgCancelSpotOrderV2 as Sx, TradingRewardCampaignBoostInfo as Sy, ChainGrpcTokenFactoryApi as T, GenericAuthorization$1 as T_, GrpcDerivativePositionV2 as Ta, WeightedVoteOption as Tb, QuantityAndFees as Tc, TransportEventType as Td, spotPriceToChainPriceToFixed as Tf, GrpcAuctionBid as Tg, Erc20Msgs as Th, WsPriceOracleStreamMarketsV2Response as Ti, ExplorerValidator as Tl, getAminoStdSignDoc as Tm, VaultHolderSubscriptionStreamCallback as Tn, MegaVaultRedemption as To, ContractExecutionCompatAuthorization as Tp, IndexerGrpcAuctionApi as Tr, GrpcAccountAuctionV2 as Ts, IndexerGrpcAccountStreamV2 as Tt, GrpcMitoLeaderboardEntry as Tu, ChainPerpetualMarketFunding as Tv, MsgBatchUpdateOrders as Tx, Delegation as Ty, ChainGrpcEvmApi as U, TotalSupply as U_, InsuranceFundCreateParams as Ua, MsgCancelBinaryOptionsOrder as Ub, RFQQuoteType as Uc, getSpotMarketDecimals as Ud, safeBigIntStringify as Uf, PermissionActorRoles as Ug, MsgAdminUpdateBinaryOptionsMarketV2 as Uh, TcDerivativesOrdersHistoryResponse as Ui, PeggyWithdrawalTx as Ul, BroadcastModeKeplr as Um, ExplorerStreamTransformer as Un, CampaignV2 as Uo, getDefaultEip712Types as Up, AccountPortfolioBalances as Ur, GrpcRFQGwPrepareRequest as Us, RequestStreamCallbackV2 as Ut, MitoGauge as Uu, FeeDiscountTierInfo as Uv, MsgEditValidator as Ux, Validator as Uy, ChainGrpcBankApi as V, Metadata as V_, GrpcIndexerRedemptionSchedule as Va, MsgIncreasePositionMarginV2 as Vb, RFQMakerStreamAckData as Vc, getDerivativeMarketDecimals as Vd, objectToJson as Vf, GrpcPermissionsParams as Vg, MsgCreateBinaryOptionsMarketOrderV2 as Vh, TcDerivativeTradeHistory as Vi, Paging as Vl, getTxRawFromTxRawOrDirectSignResponse as Vm, IndexerGrpcMitoStreamTransformer as Vn, Campaign as Vo, getEip712TypedData as Vp, AllChronosMarketHistory as Vr, GrpcRFQGwPrepareEip712Response as Vs, IndexerGrpcRfqStreamV2 as Vt, MitoClaimReference as Vu, FeeDiscountAccountInfo as Vv, MsgRewardsOptOut as Vx, StakingModuleParams as Vy, ChainGrpcIbcApi as W, Account as W_, InsuranceFundsResponse as Wa, MsgCreateSpotMarketOrderV2 as Wb, RFQRequestInputType as Wc, getSpotMarketTensMultiplier as Wd, sortObjectByKeys as Wf, PermissionAddressRoles as Wg, MsgCreateBinaryOptionsLimitOrderV2 as Wh, TcDerivativesPositionsResponse as Wi, Signature as Wl, RestAuthInfo as Wm, IndexerArchiverStreamTransformer as Wn, GrpcCampaign as Wo, getDefaultEip712TypesV2 as Wp, AccountPortfolioV2 as Wr, GrpcRFQGwPrepareResponse as Ws, SettlementStreamCallbackV2 as Wt, MitoGaugeStatus as Wu, FeeDiscountTierTTL as Wv, MsgUnderwrite as Wx, ValidatorCommission as Wy, IndexerGrpcAccountPortfolioStreamV2 as X, EvmBlobScheduleConfig as X_, GrpcMegaVaultAprStats as Xa, MsgAuthorizeStakeGrantsV2 as Xb, RFQStreamErrorData as Xc, denomAmountToChainDenomAmount as Xd, decompressPubKey as Xf, PermissionPolicyStatus as Xg, BlockLatestRestResponse as Xh, CW20BalanceExplorerApiResponse as Xi, WasmCode as Xl, TxInfo as Xm, IndexerGrpcReferralTransformer as Xn, GuildCampaignSummary as Xo, getEipTxDetails as Xp, PortfolioSubaccountBalanceV2 as Xr, RFQGwPrepareEip712ResponseType as Xs, DerivativeOrderHistoryStreamCallback as Xt, MitoIDOSubscriber as Xu, GrpcChainPosition as Xv, MsgWithdraw as Xx, ContractCodeHistoryEntry as Xy, AccountPortfolioStreamCallbackV2 as Y, EvmBlobConfig as Y_, GrpcMegaVaultApr as Ya, MsgCreateSpotLimitOrderV2 as Yb, RFQSignMode as Yc, denomAmountFromGrpcChainDenomAmount as Yd, TypedMessageV4 as Yf, PermissionPolicyManagerCapability as Yg, RestApiResponse as Yh, BlockFromExplorerApiResponse as Yi, ValidatorUptimeStatus as Yl, SimulationResponse as Ym, IndexerOracleStreamTransformer as Yn, Guild as Yo, getEipTxContext as Yp, GrpcSubaccountDepositV2 as Yr, RFQGwPrepareEip712RequestType as Ys, DerivativeMarketStreamCallback as Yt, MitoIDOProgress as Yu, GrpcChainFullSpotMarket as Yv, MsgUpdateAdmin as Yx, ContractAccountsBalanceWithPagination as Yy, IndexerGrpcTcDerivativesStreamV2 as Z, EvmChainConfig as Z_, GrpcMegaVaultHistoricalPnL as Za, MsgDecreasePositionMargin as Zb, RFQStreamPingData as Zc, denomAmountToChainDenomAmountToFixed as Zd, domainHash as Zf, PermissionRole as Zg, NodeInfoRestResponse as Zh, ContractExplorerApiResponse as Zi, GridStrategyStreamResponse as Zl, TxInfoResponse as Zm, IndexerGrpcExplorerTransformer as Zn, GuildMember as Zo, getTypesIncludingFeeOptions as Zp, PositionsWithUPNL as Zr, RFQGwPrepareQuoteResultType as Zs, DerivativeOrderbookUpdateStreamCallback as Zt, MitoIDOSubscription as Zu, GrpcChainSpotMarket as Zv, MsgSignData as Zx, ContractCodeHistoryOperationType as Zy, ChainGrpcAuthTransformer as _, MsgDeposit$1 as _S, BatchCreateDerivativeLimitOrdersAuthz as __, ExpiryFuturesMarketInfo$1 as _a, Proposal as _b, SpotOrderHistory as _c, MitoVestingConfig as _d, getExactDecimalsFromNumber as _f, AuctionEventAuctionStart as _g, TxInclusionWaiter as _h, WsPriceOracleLatestMarketPricesV2Response as _i, EventLog as _l, createFee as _m, IndexerGrpcAccountStream as _n, MegaVaultHistoricalPnL as _o, protobufTimestampToUnixSeconds as _p, IndexerGrpcAccountPortfolioApi as _r, AccountAuctionStatus as _s, TransactionsStreamCallbackV2 as _t, GrpcMitoDenomBalance as _u, ChainL3Orderbook as _v, MsgUpdateSpotMarketV2 as _x, IsOptedOutOfRewards as _y, ChainGrpcExchangeTransformerV2 as a, MsgTransfer as aS, GrpcTxFeesEipBaseFee as a_, WasmCodeExplorerApiResponse as aa, GrpcContractInfo as ab, OraclePriceV2Filter as ac, MitoPagination as ad, derivativePriceToChainPrice as af, GrpcDistributionParams as ag, MsgArg as ah, ChronosDerivativeMarketSummaryResponse as ai, AccessType as al, SIGN_AMINO as am, WsPriceOracleMarketsStreamCallback as an, GrpcMegaVaultPnlStats as ao, ripemd160 as ap, IndexerCampaignTransformer as ar, GrpcLeaderboardRow as as, DerivativeOrderbookV2StreamCallbackV2 as at, GrpcSubaccountBalanceTransfer as au, CampaignRewardPool as av, MsgSubaccountTransferV2 as ax, GrpcMarketStatus as ay, ChainRestTendermintApi as b, MsgBid as bS, CancelSpotOrderAuthz as b_, GrpcBinaryOptionsMarketInfo as ba, ProposalStatusMap as bb, GrpcTokenMeta as bc, GrpcDecodeError as bd, isNumber as bf, AuctionModuleParams as bg, TxWaitForTxInclusionArgs as bh, WsPriceOracleMarketStreamLeg as bi, ExplorerCW20BalanceWithToken as bl, createSignDocFromTransaction as bm, OraclePricesByMarketsStreamCallback as bn, MegaVaultMaxDrawdown as bo, MsgCreateNamespace as bp, IndexerGrpcReferralApi as br, AuctionCoin as bs, GridStrategyStreamCallbackV2 as bt, GrpcMitoIDOClaimedCoins as bu, ChainMarketVolume as bv, MsgTransferDelegation as bx, PointsMultiplier as by, ChainGrpcAuctionTransformer as c, ProposalDecomposer as cS, TxFeesModuleStateParams as c_, BinaryOptionsMarket$1 as ca, grpcContractInfo as cb, GrpcAtomicSwap as cc, MitoStakeToSubscription as cd, derivativeQuantityFromChainQuantityToFixed as cf, DenomBalance as cg, TxClientBroadcastResponse as ch, GrpcWsPriceOracleLightMarketStreamMessage as ci, BankTransfer as cl, SIGN_EIP712_V2 as cm, BlocksWithTxsStreamCallback as cn, GrpcMegaVaultTargetApr as co, ofacList as cp, IndexerGrpcRfqTransformer as cr, GrpcVolLeaderboard as cs, DerivativePositionsV2StreamCallbackV2 as ct, GrpcTradingReward as cu, ChainCrossMarginPoolSnapshot as cv, MsgCreateSpotLimitOrder as cx, GrpcOrderType as cy, ChainGrpcErc20Transformer as d, MsgSubmitProposalSpotMarketParamUpdate as dS, Params$6 as d_, DerivativeMarket as da, GrpcGovernanceTallyParams as db, GrpcSpotOrderHistory as dc, MitoStakingReward as dd, formatAmountToAllowableAmount as df, AccountsResponse as dg, TxClientSimulateResponse as dh, GrpcWsPriceOracleMarketStreamRawPayload as di, CW20Message as dl, getEthereumSignerAddress as dm, IndexerGrpcArchiverStream as dn, GrpcMegaVaultVaultStats as do, getGasOptionsBasedOnMessage as dp, IndexerRestMarketChronosApi as dr, HistoricalVolumes as ds, IndexerGrpcWsPriceOracleStreamV2 as dt, SubaccountPortfolio as du, ChainDeposit as dv, MsgLiquidatePositionV2 as dx, GrpcSpotMarket as dy, MsgStoreCode as eS, PermissionRoleManager as e_, ExplorerApiResponseWithPagination as ea, ContractStateWithPagination as eb, RFQGwSignedRFQRequestType as ec, MitoLeaderboardEntry as ed, derivativeMarginFromChainMarginToFixed as ef, TokenFactoryModuleParams as eg, TxSearchResult as eh, ChronosLeaderboardEntry as ei, RFQTakerChallenge as el, objectKeysToEip712Types as em, DerivativePositionsStreamCallback as en, GrpcMegaVaultMaxDrawdown as eo, privateKeyHashToPublicKey as ep, IndexerGrpcAccountTransformer as er, DenomHolders as es, TcDerivativePositionsStreamCallbackV2 as et, MarketType as eu, GrpcEvmBlobConfig as ev, MsgCancelDerivativeOrder as ex, GrpcExchangeParams as ey, ChainGrpcPeggyTransformer as f, MsgSubmitProposalPerpetualMarketLaunch as fS, TokenPair as f_, DerivativeMarketWithoutBinaryOptions as fa, GrpcGovernanceVotingParams as fb, GrpcSpotTrade as fc, MitoSubaccountBalance as fd, formatAmountToAllowableDecimals as ff, BaseAccountRestResponse as fg, TxConcreteApi as fh, GrpcWsPriceOracleStreamMarketsResponse as fi, Contract as fl, getInjectiveSignerAddress as fm, SpotAverageEntriesStreamCallback as fn, GrpcMegaVaultVolatility as fo, getGasPriceBasedOnMessage as fp, IndexerRestSpotChronosApi as fr, Holder as fs, WsPriceOracleMarketsStreamCallbackV2 as ft, SubaccountTransfer as fu, ChainDerivativeMarketAddress as fv, MsgBatchUpdateOrdersV2 as fx, GrpcSpotMarketOrder as fy, ChainGrpcBankTransformer as g, MsgSubmitTextProposal as gS, BatchCancelSpotOrdersAuthz as g_, ExpiryFuturesMarket as ga, GrpcVote as gb, SpotOrderCancelParams as gc, MitoVault as gd, formatPriceToAllowablePrice as gf, AuctionEventAuctionResult as gg, TxInclusionStrategy as gh, WsPriceOracleLatestMarketPricesV2Params as gi, CosmWasmPermission as gl, createBody as gm, BalanceStreamCallback as gn, MegaVaultAprStats as go, protobufTimestampToUnixMs as gp, IndexerGrpcWsPriceOracleApi as gr, VolLeaderboard as gs, IndexerGrpcExplorerStreamV2 as gt, GrpcMitoClaimReference as gu, ChainGrantAuthorization as gv, MsgUpdateSwapParamsV2 as gx, GrpcTradingRewardCampaignInfo as gy, ChainGrpcMintTransformer as h, MsgSubmitGenericProposal as hS, BatchCancelDerivativeOrdersAuthz as h_, DerivativeTrade as ha, GrpcTallyResult as hb, SpotMarket as hc, MitoTransfer as hd, formatPriceToAllowableDecimals as hf, AuctionCurrentBasket as hg, TxFetchTxPollArgs as hh, WsPriceOracleLatestMarketPricesResponse as hi, CosmWasmChecksum as hl, createAuthInfo as hm, IndexerGrpcAuctionStream as hn, MegaVaultApr as ho, protobufTimestampToDate as hp, IndexerGrpcTcDerivativesApi as hr, SpotAverageEntry as hs, BlocksWithTxsStreamCallbackV2 as ht, GrpcMitoChanges as hu, ChainExpiryFuturesMarketInfo as hv, MsgSetDenomMetadata as hx, GrpcTradingRewardCampaignBoostInfo as hy, ChainGrpcPermissionsTransformer as i, MsgBurn as iS, OracleModuleParams as i_, ValidatorUptimeFromExplorerApiResponse as ia, GrpcContractCodeHistoryEntry as ib, OraclePriceV2 as ic, MitoMissionLeaderboardEntry as id, derivativePriceFromChainPriceToFixed as if, GrpcDelegationDelegatorReward as ig, CreateTransactionWithSignersArgs as ih, ChronosDerivativeMarketSummary as ii, TakerStreamEvents as il, TxClient as im, IndexerGrpcWsPriceOracleStream as in, GrpcMegaVaultPnl as io, publicKeyToAddress as ip, IndexerGrpcRfqGwTransformer as ir, GrpcHistoricalVolumes as is, DerivativeOrderbookUpdateStreamCallbackV2 as it, GrpcSubaccountBalance as iu, GrpcEvmParams as iv, MsgActivateStakeGrantV2 as ix, GrpcFeeDiscountTierTTL as iy, ChainGrpcStakingApi as j, GrpcInsuranceParams as j_, GrpcPerpetualMarketInfo as ja, MsgCreateDerivativeLimitOrderV2 as jb, GrpcRFQRequest as jc, recoverTypedSignaturePubKey as jd, bigIntToNumber as jf, GrpcPermissionActorRoles as jg, IbcMsgs as jh, GrpcTcDerivativeTradesResponse as ji, GrpcGasFee as jl, TxRestApi as jm, SpotOrderbookV2StreamCallback as jn, MegaVaultUnrealizedPnl as jo, ExecArgNeptuneWithdraw as jp, IndexerGrpcSpotApi as jr, GrpcIndexerAuctionBid as js, IndexerGrpcMitoStreamV2 as jt, GrpcMitoStakingGauge as ju, ChainTierStatistic as jv, MsgCreateValidator as jx, GrpcReDelegationResponse as jy, ChainGrpcExchangeApiV2 as k, GrantWithDecodedAuthorization as k_, GrpcFundingRate as ka, MsgCreateBinaryOptionsLimitOrder as kb, GrpcRFQProcessedQuote as kc, WsState as kd, spotQuantityToChainQuantityToFixed as kf, GrpcAuctionLastAuctionResult as kg, FeegrantMsgs as kh, GrpcTcDerivativePosition as ki, GrpcBankMsgSendMessage as kl, normalizeTendermintWebSocketEndpoint as km, SpotOrderHistoryStreamCallback as kn, MegaVaultSubscriptionStatus as ko, getGenericAuthorizationFromMessageType as kp, IndexerGrpcOracleApi as kr, GrpcAuctionContract as ks, OraclePricesByMarketsStreamCallbackV2 as kt, GrpcMitoPagination as ku, ChainSubaccountOrderbookMetadata as kv, MsgRevokeAllowance as kx, GrpcReDelegation as ky, ChainGrpcCommonTransformer as l, MsgSubmitProposalExpiryFuturesMarketLaunch as lS, GrpcParams as l_, DerivativeLimitOrder$1 as la, GovModuleStateParams as lb, GrpcSpotLimitOrder as lc, MitoStakingActivity as ld, derivativeQuantityToChainQuantity as lf, DenomOwnersResponse as lg, TxClientInclusionOptions as lh, GrpcWsPriceOracleMarketStreamLeg as li, Block$1 as ll, createAny as lm, IndexerGrpcExplorerStream as ln, GrpcMegaVaultUnrealizedPnl as lo, getGrpcWebTransport as lp, IndexerRestLeaderboardChronosApi as lr, HistoricalBalance as ls, DerivativeTradesStreamCallbackV2 as lt, SubaccountBalance as lu, ChainDenomDecimal as lv, MsgAuthorizeStakeGrants as lx, GrpcOrderTypeMap as ly, ChainGrpcWasmTransformer as m, MsgSubmitProposalSpotMarketLaunch as mS, PeggyModuleParams as m_, DerivativeOrderHistory as ma, GrpcProposalDeposit as mb, SpotLimitOrderParams as mc, MitoTokenInfo as md, formatNumberToAllowableTensMultiplier as mf, AuctionBid as mg, TxEventWebSocketFactory as mh, WsPriceOracleLatestMarketPricesParams as mi, ContractTransactionWithMessages as ml, isTxNotFoundError as mm, BidsStreamCallback as mn, MegaVault as mo, makeTimeoutTimestampInNs as mp, IndexerGrpcInsuranceFundApi as mr, PnlLeaderboard as ms, BlocksStreamCallbackV2 as mt, TransferType as mu, ChainEffectivePosition as mv, MsgExternalTransferV2 as mx, GrpcTradeRewardCampaign as my, ChainGrpcTokenFactoryTransformer as n, MsgMultiSend as nS, PermissionsModuleParams as n_, ExplorerTransactionApiResponse as na, GrpcAbsoluteTxPosition as nb, GrpcOraclePriceV2 as nc, MitoMission as nd, derivativeMarginToChainMarginToFixed as nf, DistributionModuleParams as ng, CreateTransactionArgs as nh, AllChronosDerivativeMarketSummary as ni, SettlementsResponse as nl, protoTypeToAminoType as nm, DerivativeTradesStreamCallback as nn, GrpcMegaVaultOperator as no, privateKeyToPublicKey as np, IndexerGrpcOracleTransformer as nr, GrpcHistoricalBalance as ns, DerivativeMarketStreamCallbackV2 as nt, AccountPortfolio as nu, GrpcEvmChainConfig as nv, MsgUpdateInstantiateConfig as nx, GrpcFeeDiscountSchedule as ny, ChainGrpcExchangeTransformer as o, MsgExec as oS, GrpcTxFeesParams as o_, BaseDerivativeMarket as oa, MarketingInfo as ob, AtomicSwap as oc, MitoPortfolio as od, derivativePriceToChainPriceToFixed as of, ValidatorRewards as og, SignerDetails as oh, GrpcWsPriceOracleLatestMarketPricesResponse as oi, AccessTypeCode as ol, SIGN_DIRECT as om, WsPriceOracleMarketsV2StreamCallback as on, GrpcMegaVaultRedemption as oo, sanitizeTypedData as op, IndexerGrpcSpotTransformer as or, GrpcPnlLeaderboard as os, DerivativeOrdersStreamCallbackV2 as ot, GrpcSubaccountDeposit as ou, ChainAggregateAccountVolume as ov, MsgReclaimLockedFundsV2 as ox, GrpcMarketStatusMap as oy, ChainGrpcAuthZTransformer as p, MsgGrantProviderPrivilegeProposal as pS, GrpcPeggyParams as p_, DerivativeOrderCancelParams as pa, GrpcProposal as pb, SpotLimitOrder$1 as pc, MitoSubscription as pd, formatNumberToAllowableDecimals as pf, CosmosAccountRestResponse as pg, TxEventInclusionOptions as ph, GrpcWsPriceOracleStreamMarketsV2Response as pi, ContractTransaction as pl, errorToErrorMessage as pm, IndexerGrpcTradingStream as pn, GrpcMegaVaultVolatilityStats as po, makeTimeoutTimestamp as pp, IndexerRestExplorerApi as pr, LeaderboardRow as ps, WsPriceOracleMarketsV2StreamCallbackV2 as pt, TradingReward as pu, ChainDerivativePosition as pv, MsgFundCommunityPool as px, GrpcSpotOrder as py, createStreamSubscriptionV2 as q, EthAccount as q_, IncentivesCampaign as qa, MsgInstantSpotMarketLaunch as qb, RFQSettlementType as qc, denomAmountFromChainDenomAmount as qd, TypedDataUtilsHashStruct as qf, PermissionNamespace as qg, MsgAdminUpdateBinaryOptionsMarket as qh, TcPositionDelta as qi, ValidatorSlashingEvent as ql, RestTxBody as qm, IndexerAccountStreamTransformer as qn, GrpcGuild as qo, getEip712Fee as qp, GrpcPositionV2 as qr, RFQGwPrepareEip712AutoSignRequestType as qs, AccountPortfolioStreamCallback as qt, MitoIDOClaimedCoins as qu, GrpcChainDerivativePosition as qv, MsgUndelegate as qx, CodeInfoResponse as qy, ChainGrpcDistributionTransformer as r, MsgMint as rS, GrpcOracleParams as r_, TransactionFromExplorerApiResponse as ra, GrpcCodeInfoResponse as rb, Oracle as rc, MitoMissionLeaderboard as rd, derivativePriceFromChainPrice as rf, GrpcDecCoin as rg, CreateTransactionResult as rh, AllDerivativeMarketSummaryResponse as ri, TakerStreamConfig as rl, stringTypeToReflectionStringType as rm, IndexerGrpcDerivativesStream as rn, GrpcMegaVaultOperatorRedemptionBucket as ro, privateKeyToPublicKeyBase64 as rp, IndexerRfqStreamTransformer as rr, GrpcHistoricalRPNL as rs, DerivativeOrderHistoryStreamCallbackV2 as rt, GrpcAccountPortfolio as ru, GrpcEvmLog as rv, MsgGrantWithAuthorization as rx, GrpcFeeDiscountTierInfo as ry, ChainGrpcStakingTransformer as s, MsgSubmitProposal as sS, TxFeesEipBaseFee as s_, BatchDerivativeOrderCancelParams as sa, TokenInfo$1 as sb, BatchSpotOrderCancelParams as sc, MitoPriceSnapshot as sd, derivativeQuantityFromChainQuantity as sf, BalancesResponse as sg, TxClientBroadcastOptions as sh, GrpcWsPriceOracleLatestMarketPricesV2Response as si, BankMsgSendTransaction as sl, SIGN_EIP712 as sm, BlocksStreamCallback as sn, GrpcMegaVaultSubscription as so, sha256 as sp, IndexerGrpcMitoTransformer as sr, GrpcSpotAverageEntry as ss, DerivativePositionsStreamCallbackV2 as st, GrpcSubaccountPortfolio as su, ChainBinaryOptionsMarket as sv, MsgCancelPostOnlyModeV2 as sx, GrpcOrderInfo as sy, ChainGrpcInsuranceFundTransformer as t, MsgDeposit as tS, PermissionVoucher as t_, ExplorerBlockApiResponse as ta, GoogleProtoBufAny as tb, GrpcOracle as tc, MitoLeaderboardEpoch as td, derivativeMarginToChainMargin as tf, TokenFactoryModuleState as tg, TxSearchResultParams as th, ChronosLeaderboardResponse as ti, RFQTakerStreamAckData as tl, patchOrderTypesWithExpirationBlock as tm, DerivativePositionsV2StreamCallback as tn, GrpcMegaVaultOperationStatusLogEntry as to, privateKeyHashToPublicKeyBase64 as tp, IndexerSpotStreamTransformer as tr, GrpcDenomHolders as ts, TcDerivativeTradesStreamCallbackV2 as tt, TradingStrategy as tu, GrpcEvmBlobScheduleConfig as tv, MsgBatchCancelSpotOrders as tx, GrpcFeeDiscountAccountInfo as ty, ChainGrpcTxFeesTransformer as u, MsgSubmitProposalPerpetualMarketLaunchV2 as uS, GrpcTokenPair as u_, DerivativeLimitOrderParams as ua, GrpcGovernanceDepositParams as ub, GrpcSpotMarketInfo as uc, MitoStakingPool as ud, derivativeQuantityToChainQuantityToFixed as uf, AccountResponse as ug, TxClientMode as uh, GrpcWsPriceOracleMarketStreamMessage as ui, BlockWithTxs as ul, createAnyMessage as um, TransactionsStreamCallback as un, GrpcMegaVaultUserStats as uo, getFixedGasLimitBasedOnMessage as up, IndexerRestDerivativesChronosApi as ur, HistoricalRPNL as us, IndexerGrpcDerivativesStreamV2 as ut, SubaccountDeposit as uu, ChainDenomMinNotional as uv, MsgCreateInsuranceFund as ux, GrpcPointsMultiplier as uy, ChainGrpcEvmTransformer as v, MsgRevoke as vS, BatchCreateSpotLimitOrdersAuthz as v_, FundingPayment as va, ProposalDeposit as vb, SpotTrade as vc, MitoVestingConfigMap as vd, getSignificantDecimalsFromNumber as vf, AuctionEventBid as vg, TxPrepareTxInclusionWaitArgs as vh, WsPriceOracleLightMarketStreamMessage as vi, EventLogEvent as vl, createNonCriticalExtensionFromObject as vm, IndexerGrpcOracleStream as vn, MegaVaultHistoricalTVL as vo, MsgUpdateActorRoles as vp, IndexerGrpcDerivativesApi as vr, AccountAuctionV2 as vs, IndexerGrpcArchiverStreamV2 as vt, GrpcMitoHolders as vu, ChainMarketBalance as vv, MsgReclaimLockedFunds as vx, OrderType as vy, ChainGrpcInsuranceFundApi as w, CreateSpotMarketOrderAuthz as w_, GrpcDerivativePosition as wa, VoteOptionMap as wb, PriceLevel as wc, TransportEventListener as wd, spotPriceToChainPrice as wf, AuctionParams as wg, DistributionMsgs as wh, WsPriceOracleStreamMarketsResponse as wi, ExplorerTxsV2Response as wl, createWeb3Extension as wm, TransfersStreamCallback as wn, MegaVaultPnlStats as wo, MsgInstantBinaryOptionsMarketLaunch as wp, IndexerGrpcTradingApi as wr, AuctionsStats as ws, BalanceStreamCallbackV2 as wt, GrpcMitoIDOSubscriptionActivity as wu, ChainOrderbookLevel as wv, MsgLiquidatePosition as wx, BondStatus as wy, ChainRestWasmApi as x, MsgSend as xS, CreateDerivativeLimitOrderAuthz as x_, GrpcDerivativeLimitOrder as xa, TallyResult as xb, IndexerTokenMeta as xc, GrpcFrame as xd, numberToCosmosSdkDecString as xf, AuctionModuleState as xg, AuctionMsgs as xh, WsPriceOracleMarketStreamRawPayload as xi, ExplorerStats as xl, createSignerInfo as xm, HistoricalStakingStreamCallback as xn, MegaVaultOperator as xo, MsgUpdateParams as xp, IndexerGrpcArchiverApi as xr, AuctionCoinPrices as xs, IndexerGrpcTradingStreamV2 as xt, GrpcMitoIDOProgress as xu, ChainMidPriceAndTob as xv, MsgRequestRedemption as xx, TradeRewardCampaign as xy, ChainGrpcGovTransformer as y, MsgGrant as yS, CancelDerivativeOrderAuthz as y_, FundingRate as ya, ProposalStatus as yb, GrpcPriceLevel as yc, MitoWhitelistAccount as yd, getTensMultiplier as yf, AuctionLastAuctionResult as yg, TxResponse as yh, WsPriceOracleMarketPrice as yi, ExplorerBlockWithTxs as yl, createSignDoc as ym, OraclePriceStreamCallback as yn, MegaVaultIncentives as yo, MsgUpdateNamespace as yp, IndexerGrpcMegaVaultApi as yr, Auction as ys, SpotAverageEntriesStreamCallbackV2 as yt, GrpcMitoIDO as yu, ChainMarketVolatility as yv, MsgRelayProviderPrices as yx, OrderTypeMap as yy, ChainGrpcWasmApi as z, GrpcBankParams as z_, PositionV2 as za, MsgCancelUnbondingDelegation as zb, RFQMakerAuth as zc, paginationUint8ArrayToString as zd, isReactNative as zf, GrpcPermissionRoleManager as zg, MsgInstantBinaryOptionsMarketLaunchV2 as zh, TcDerivativeOrdersResponse as zi, IndexerStreamTransaction as zl, createTransactionWithSigners as zm, IndexerDerivativeStreamTransformer as zn, ChronosSpotMarketSummary as zo, Address as zp, IndexerModule as zr, GrpcRFQGwPrepareEip712AutoSignResponse as zs, SpotOrdersStreamCallbackV2 as zt, GrpcMitoWhitelistAccount as zu, ExchangeModuleParams as zv, MsgCreateDenom as zx, Pool as zy };