diff --git a/.gitignore b/.gitignore index c6f6951a2..54591cebd 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,8 @@ mochawesome-report **/generated/**/* !src/analytics/generated/**/* !src/pages/Swap/LimitOrderBox/generated/**/* +!src/services/**/generated/**/* +!src/graphql/generated/schema.ts storybook-static public/.well-known \ No newline at end of file diff --git a/package.json b/package.json index 597ce6f59..2005a13d5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "license": "GPL-3.0-or-later", "scripts": { "start": "yarn codegen:socket && yarn codegen:graphql && react-app-rewired start", - "build": "yarn codegen:wallet-connect-domain-verification && yarn codegen:socket && yarn codegen:graphql && cross-env GENERATE_SOURCEMAP=false react-app-rewired build", + "build": "git config --global --add safe.directory /workspace && yarn codegen:wallet-connect-domain-verification && cross-env GENERATE_SOURCEMAP=false react-app-rewired build", + "build:simple": "git config --global --add safe.directory /workspace && cross-env GENERATE_SOURCEMAP=false react-app-rewired build", "build:serve": "yarn build && serve -s ./build -l 5001", "ipfs-build": "cross-env PUBLIC_URL=\".\" GENERATE_SOURCEMAP=false react-app-rewired build", "lint": "eslint src --ext js,jsx,ts,tsx", diff --git a/src/graphql/generated/schema.ts b/src/graphql/generated/schema.ts new file mode 100644 index 000000000..9e40b0642 --- /dev/null +++ b/src/graphql/generated/schema.ts @@ -0,0 +1,6850 @@ +import { gql } from '@apollo/client' +import * as Apollo from '@apollo/client' +export type Maybe = T | null +export type InputMaybe = Maybe +export type Exact = { [K in keyof T]: T[K] } +export type MakeOptional = Omit & { [SubKey in K]?: Maybe } +export type MakeMaybe = Omit & { [SubKey in K]: Maybe } +const defaultOptions = {} as const +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string + String: string + Boolean: boolean + Int: number + Float: number + BigDecimal: any + BigInt: any + Bytes: any + Int8: any + Timestamp: any +} + +export enum Aggregation_Interval { + Day = 'day', + Hour = 'hour', +} + +export type BlockChangedFilter = { + number_gte: Scalars['Int'] +} + +export type Block_Height = { + hash?: InputMaybe + number?: InputMaybe + number_gte?: InputMaybe +} + +export type Bundle = { + __typename?: 'Bundle' + id: Scalars['ID'] + nativeCurrencyPrice: Scalars['BigDecimal'] +} + +export type Bundle_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + nativeCurrencyPrice?: InputMaybe + nativeCurrencyPrice_gt?: InputMaybe + nativeCurrencyPrice_gte?: InputMaybe + nativeCurrencyPrice_in?: InputMaybe> + nativeCurrencyPrice_lt?: InputMaybe + nativeCurrencyPrice_lte?: InputMaybe + nativeCurrencyPrice_not?: InputMaybe + nativeCurrencyPrice_not_in?: InputMaybe> + or?: InputMaybe>> +} + +export enum Bundle_OrderBy { + Id = 'id', + NativeCurrencyPrice = 'nativeCurrencyPrice', +} + +export type Burn = { + __typename?: 'Burn' + amount0?: Maybe + amount1?: Maybe + amountUSD?: Maybe + feeLiquidity?: Maybe + feeTo?: Maybe + id: Scalars['ID'] + liquidity: Scalars['BigDecimal'] + logIndex?: Maybe + needsComplete: Scalars['Boolean'] + pair: Pair + sender?: Maybe + timestamp: Scalars['BigInt'] + to?: Maybe + transaction: Transaction +} + +export type Burn_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount0?: InputMaybe + amount0_gt?: InputMaybe + amount0_gte?: InputMaybe + amount0_in?: InputMaybe> + amount0_lt?: InputMaybe + amount0_lte?: InputMaybe + amount0_not?: InputMaybe + amount0_not_in?: InputMaybe> + amount1?: InputMaybe + amount1_gt?: InputMaybe + amount1_gte?: InputMaybe + amount1_in?: InputMaybe> + amount1_lt?: InputMaybe + amount1_lte?: InputMaybe + amount1_not?: InputMaybe + amount1_not_in?: InputMaybe> + amountUSD?: InputMaybe + amountUSD_gt?: InputMaybe + amountUSD_gte?: InputMaybe + amountUSD_in?: InputMaybe> + amountUSD_lt?: InputMaybe + amountUSD_lte?: InputMaybe + amountUSD_not?: InputMaybe + amountUSD_not_in?: InputMaybe> + and?: InputMaybe>> + feeLiquidity?: InputMaybe + feeLiquidity_gt?: InputMaybe + feeLiquidity_gte?: InputMaybe + feeLiquidity_in?: InputMaybe> + feeLiquidity_lt?: InputMaybe + feeLiquidity_lte?: InputMaybe + feeLiquidity_not?: InputMaybe + feeLiquidity_not_in?: InputMaybe> + feeTo?: InputMaybe + feeTo_contains?: InputMaybe + feeTo_gt?: InputMaybe + feeTo_gte?: InputMaybe + feeTo_in?: InputMaybe> + feeTo_lt?: InputMaybe + feeTo_lte?: InputMaybe + feeTo_not?: InputMaybe + feeTo_not_contains?: InputMaybe + feeTo_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidity?: InputMaybe + liquidity_gt?: InputMaybe + liquidity_gte?: InputMaybe + liquidity_in?: InputMaybe> + liquidity_lt?: InputMaybe + liquidity_lte?: InputMaybe + liquidity_not?: InputMaybe + liquidity_not_in?: InputMaybe> + logIndex?: InputMaybe + logIndex_gt?: InputMaybe + logIndex_gte?: InputMaybe + logIndex_in?: InputMaybe> + logIndex_lt?: InputMaybe + logIndex_lte?: InputMaybe + logIndex_not?: InputMaybe + logIndex_not_in?: InputMaybe> + needsComplete?: InputMaybe + needsComplete_in?: InputMaybe> + needsComplete_not?: InputMaybe + needsComplete_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + sender?: InputMaybe + sender_contains?: InputMaybe + sender_gt?: InputMaybe + sender_gte?: InputMaybe + sender_in?: InputMaybe> + sender_lt?: InputMaybe + sender_lte?: InputMaybe + sender_not?: InputMaybe + sender_not_contains?: InputMaybe + sender_not_in?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + to?: InputMaybe + to_contains?: InputMaybe + to_gt?: InputMaybe + to_gte?: InputMaybe + to_in?: InputMaybe> + to_lt?: InputMaybe + to_lte?: InputMaybe + to_not?: InputMaybe + to_not_contains?: InputMaybe + to_not_in?: InputMaybe> + transaction?: InputMaybe + transaction_?: InputMaybe + transaction_contains?: InputMaybe + transaction_contains_nocase?: InputMaybe + transaction_ends_with?: InputMaybe + transaction_ends_with_nocase?: InputMaybe + transaction_gt?: InputMaybe + transaction_gte?: InputMaybe + transaction_in?: InputMaybe> + transaction_lt?: InputMaybe + transaction_lte?: InputMaybe + transaction_not?: InputMaybe + transaction_not_contains?: InputMaybe + transaction_not_contains_nocase?: InputMaybe + transaction_not_ends_with?: InputMaybe + transaction_not_ends_with_nocase?: InputMaybe + transaction_not_in?: InputMaybe> + transaction_not_starts_with?: InputMaybe + transaction_not_starts_with_nocase?: InputMaybe + transaction_starts_with?: InputMaybe + transaction_starts_with_nocase?: InputMaybe +} + +export enum Burn_OrderBy { + Amount0 = 'amount0', + Amount1 = 'amount1', + AmountUsd = 'amountUSD', + FeeLiquidity = 'feeLiquidity', + FeeTo = 'feeTo', + Id = 'id', + Liquidity = 'liquidity', + LogIndex = 'logIndex', + NeedsComplete = 'needsComplete', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Sender = 'sender', + Timestamp = 'timestamp', + To = 'to', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp', +} + +export type Claim = { + __typename?: 'Claim' + amounts: Array + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type Claim_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amounts?: InputMaybe> + amounts_contains?: InputMaybe> + amounts_contains_nocase?: InputMaybe> + amounts_not?: InputMaybe> + amounts_not_contains?: InputMaybe> + amounts_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum Claim_OrderBy { + Amounts = 'amounts', + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type DailyUniqueAddressInteraction = { + __typename?: 'DailyUniqueAddressInteraction' + addresses: Array + id: Scalars['ID'] + timestamp: Scalars['Int'] +} + +export type DailyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + addresses?: InputMaybe> + addresses_contains?: InputMaybe> + addresses_contains_nocase?: InputMaybe> + addresses_not?: InputMaybe> + addresses_not_contains?: InputMaybe> + addresses_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> +} + +export enum DailyUniqueAddressInteraction_OrderBy { + Addresses = 'addresses', + Id = 'id', + Timestamp = 'timestamp', +} + +export type Deposit = { + __typename?: 'Deposit' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type Deposit_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum Deposit_OrderBy { + Amount = 'amount', + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type LiquidityMiningCampaign = { + __typename?: 'LiquidityMiningCampaign' + claims: Array + deposits: Array + duration: Scalars['BigInt'] + endsAt: Scalars['BigInt'] + id: Scalars['ID'] + initialized: Scalars['Boolean'] + liquidityMiningPositionSnapshots: Array + liquidityMiningPositions: Array + locked: Scalars['Boolean'] + owner: Scalars['Bytes'] + recoveries: Array + rewards: Array + stakablePair: Pair + stakedAmount: Scalars['BigDecimal'] + stakingCap: Scalars['BigDecimal'] + startsAt: Scalars['BigInt'] + withdrawals: Array +} + +export type LiquidityMiningCampaignClaimsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignDepositsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignLiquidityMiningPositionSnapshotsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignLiquidityMiningPositionsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignRecoveriesArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignRewardsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignWithdrawalsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type LiquidityMiningCampaignReward = { + __typename?: 'LiquidityMiningCampaignReward' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + token: Token +} + +export type LiquidityMiningCampaignReward_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + token?: InputMaybe + token_?: InputMaybe + token_contains?: InputMaybe + token_contains_nocase?: InputMaybe + token_ends_with?: InputMaybe + token_ends_with_nocase?: InputMaybe + token_gt?: InputMaybe + token_gte?: InputMaybe + token_in?: InputMaybe> + token_lt?: InputMaybe + token_lte?: InputMaybe + token_not?: InputMaybe + token_not_contains?: InputMaybe + token_not_contains_nocase?: InputMaybe + token_not_ends_with?: InputMaybe + token_not_ends_with_nocase?: InputMaybe + token_not_in?: InputMaybe> + token_not_starts_with?: InputMaybe + token_not_starts_with_nocase?: InputMaybe + token_starts_with?: InputMaybe + token_starts_with_nocase?: InputMaybe +} + +export enum LiquidityMiningCampaignReward_OrderBy { + Amount = 'amount', + Id = 'id', + Token = 'token', + TokenDecimals = 'token__decimals', + TokenDerivedNativeCurrency = 'token__derivedNativeCurrency', + TokenId = 'token__id', + TokenName = 'token__name', + TokenSymbol = 'token__symbol', + TokenTotalLiquidity = 'token__totalLiquidity', + TokenTotalSupply = 'token__totalSupply', + TokenTradeVolume = 'token__tradeVolume', + TokenTradeVolumeUsd = 'token__tradeVolumeUSD', + TokenTxCount = 'token__txCount', + TokenUntrackedVolumeUsd = 'token__untrackedVolumeUSD', +} + +export type LiquidityMiningCampaign_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + claims_?: InputMaybe + deposits_?: InputMaybe + duration?: InputMaybe + duration_gt?: InputMaybe + duration_gte?: InputMaybe + duration_in?: InputMaybe> + duration_lt?: InputMaybe + duration_lte?: InputMaybe + duration_not?: InputMaybe + duration_not_in?: InputMaybe> + endsAt?: InputMaybe + endsAt_gt?: InputMaybe + endsAt_gte?: InputMaybe + endsAt_in?: InputMaybe> + endsAt_lt?: InputMaybe + endsAt_lte?: InputMaybe + endsAt_not?: InputMaybe + endsAt_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + initialized?: InputMaybe + initialized_in?: InputMaybe> + initialized_not?: InputMaybe + initialized_not_in?: InputMaybe> + liquidityMiningPositionSnapshots_?: InputMaybe + liquidityMiningPositions_?: InputMaybe + locked?: InputMaybe + locked_in?: InputMaybe> + locked_not?: InputMaybe + locked_not_in?: InputMaybe> + or?: InputMaybe>> + owner?: InputMaybe + owner_contains?: InputMaybe + owner_gt?: InputMaybe + owner_gte?: InputMaybe + owner_in?: InputMaybe> + owner_lt?: InputMaybe + owner_lte?: InputMaybe + owner_not?: InputMaybe + owner_not_contains?: InputMaybe + owner_not_in?: InputMaybe> + recoveries_?: InputMaybe + rewards?: InputMaybe> + rewards_?: InputMaybe + rewards_contains?: InputMaybe> + rewards_contains_nocase?: InputMaybe> + rewards_not?: InputMaybe> + rewards_not_contains?: InputMaybe> + rewards_not_contains_nocase?: InputMaybe> + stakablePair?: InputMaybe + stakablePair_?: InputMaybe + stakablePair_contains?: InputMaybe + stakablePair_contains_nocase?: InputMaybe + stakablePair_ends_with?: InputMaybe + stakablePair_ends_with_nocase?: InputMaybe + stakablePair_gt?: InputMaybe + stakablePair_gte?: InputMaybe + stakablePair_in?: InputMaybe> + stakablePair_lt?: InputMaybe + stakablePair_lte?: InputMaybe + stakablePair_not?: InputMaybe + stakablePair_not_contains?: InputMaybe + stakablePair_not_contains_nocase?: InputMaybe + stakablePair_not_ends_with?: InputMaybe + stakablePair_not_ends_with_nocase?: InputMaybe + stakablePair_not_in?: InputMaybe> + stakablePair_not_starts_with?: InputMaybe + stakablePair_not_starts_with_nocase?: InputMaybe + stakablePair_starts_with?: InputMaybe + stakablePair_starts_with_nocase?: InputMaybe + stakedAmount?: InputMaybe + stakedAmount_gt?: InputMaybe + stakedAmount_gte?: InputMaybe + stakedAmount_in?: InputMaybe> + stakedAmount_lt?: InputMaybe + stakedAmount_lte?: InputMaybe + stakedAmount_not?: InputMaybe + stakedAmount_not_in?: InputMaybe> + stakingCap?: InputMaybe + stakingCap_gt?: InputMaybe + stakingCap_gte?: InputMaybe + stakingCap_in?: InputMaybe> + stakingCap_lt?: InputMaybe + stakingCap_lte?: InputMaybe + stakingCap_not?: InputMaybe + stakingCap_not_in?: InputMaybe> + startsAt?: InputMaybe + startsAt_gt?: InputMaybe + startsAt_gte?: InputMaybe + startsAt_in?: InputMaybe> + startsAt_lt?: InputMaybe + startsAt_lte?: InputMaybe + startsAt_not?: InputMaybe + startsAt_not_in?: InputMaybe> + withdrawals_?: InputMaybe +} + +export enum LiquidityMiningCampaign_OrderBy { + Claims = 'claims', + Deposits = 'deposits', + Duration = 'duration', + EndsAt = 'endsAt', + Id = 'id', + Initialized = 'initialized', + LiquidityMiningPositionSnapshots = 'liquidityMiningPositionSnapshots', + LiquidityMiningPositions = 'liquidityMiningPositions', + Locked = 'locked', + Owner = 'owner', + Recoveries = 'recoveries', + Rewards = 'rewards', + StakablePair = 'stakablePair', + StakablePairCreatedAtBlockNumber = 'stakablePair__createdAtBlockNumber', + StakablePairCreatedAtTimestamp = 'stakablePair__createdAtTimestamp', + StakablePairId = 'stakablePair__id', + StakablePairLiquidityProviderCount = 'stakablePair__liquidityProviderCount', + StakablePairReserve0 = 'stakablePair__reserve0', + StakablePairReserve1 = 'stakablePair__reserve1', + StakablePairReserveNativeCurrency = 'stakablePair__reserveNativeCurrency', + StakablePairReserveUsd = 'stakablePair__reserveUSD', + StakablePairSwapFee = 'stakablePair__swapFee', + StakablePairToken0Price = 'stakablePair__token0Price', + StakablePairToken1Price = 'stakablePair__token1Price', + StakablePairTotalSupply = 'stakablePair__totalSupply', + StakablePairTrackedReserveNativeCurrency = 'stakablePair__trackedReserveNativeCurrency', + StakablePairTxCount = 'stakablePair__txCount', + StakablePairUntrackedVolumeUsd = 'stakablePair__untrackedVolumeUSD', + StakablePairVolumeToken0 = 'stakablePair__volumeToken0', + StakablePairVolumeToken1 = 'stakablePair__volumeToken1', + StakablePairVolumeUsd = 'stakablePair__volumeUSD', + StakedAmount = 'stakedAmount', + StakingCap = 'stakingCap', + StartsAt = 'startsAt', + Withdrawals = 'withdrawals', +} + +export type LiquidityMiningPosition = { + __typename?: 'LiquidityMiningPosition' + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + stakedAmount: Scalars['BigDecimal'] + targetedPair: Pair + user: User +} + +export type LiquidityMiningPositionSnapshot = { + __typename?: 'LiquidityMiningPositionSnapshot' + block: Scalars['Int'] + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + liquidityMiningPosition: LiquidityMiningPosition + pair: Pair + reserve0: Scalars['BigDecimal'] + reserve1: Scalars['BigDecimal'] + reserveUSD: Scalars['BigDecimal'] + stakedLiquidityTokenBalance: Scalars['BigDecimal'] + timestamp: Scalars['Int'] + token0PriceUSD: Scalars['BigDecimal'] + token1PriceUSD: Scalars['BigDecimal'] + totalStakedLiquidityToken: Scalars['BigDecimal'] + user: User +} + +export type LiquidityMiningPositionSnapshot_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + block?: InputMaybe + block_gt?: InputMaybe + block_gte?: InputMaybe + block_in?: InputMaybe> + block_lt?: InputMaybe + block_lte?: InputMaybe + block_not?: InputMaybe + block_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + liquidityMiningPosition?: InputMaybe + liquidityMiningPosition_?: InputMaybe + liquidityMiningPosition_contains?: InputMaybe + liquidityMiningPosition_contains_nocase?: InputMaybe + liquidityMiningPosition_ends_with?: InputMaybe + liquidityMiningPosition_ends_with_nocase?: InputMaybe + liquidityMiningPosition_gt?: InputMaybe + liquidityMiningPosition_gte?: InputMaybe + liquidityMiningPosition_in?: InputMaybe> + liquidityMiningPosition_lt?: InputMaybe + liquidityMiningPosition_lte?: InputMaybe + liquidityMiningPosition_not?: InputMaybe + liquidityMiningPosition_not_contains?: InputMaybe + liquidityMiningPosition_not_contains_nocase?: InputMaybe + liquidityMiningPosition_not_ends_with?: InputMaybe + liquidityMiningPosition_not_ends_with_nocase?: InputMaybe + liquidityMiningPosition_not_in?: InputMaybe> + liquidityMiningPosition_not_starts_with?: InputMaybe + liquidityMiningPosition_not_starts_with_nocase?: InputMaybe + liquidityMiningPosition_starts_with?: InputMaybe + liquidityMiningPosition_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + reserve0?: InputMaybe + reserve0_gt?: InputMaybe + reserve0_gte?: InputMaybe + reserve0_in?: InputMaybe> + reserve0_lt?: InputMaybe + reserve0_lte?: InputMaybe + reserve0_not?: InputMaybe + reserve0_not_in?: InputMaybe> + reserve1?: InputMaybe + reserve1_gt?: InputMaybe + reserve1_gte?: InputMaybe + reserve1_in?: InputMaybe> + reserve1_lt?: InputMaybe + reserve1_lte?: InputMaybe + reserve1_not?: InputMaybe + reserve1_not_in?: InputMaybe> + reserveUSD?: InputMaybe + reserveUSD_gt?: InputMaybe + reserveUSD_gte?: InputMaybe + reserveUSD_in?: InputMaybe> + reserveUSD_lt?: InputMaybe + reserveUSD_lte?: InputMaybe + reserveUSD_not?: InputMaybe + reserveUSD_not_in?: InputMaybe> + stakedLiquidityTokenBalance?: InputMaybe + stakedLiquidityTokenBalance_gt?: InputMaybe + stakedLiquidityTokenBalance_gte?: InputMaybe + stakedLiquidityTokenBalance_in?: InputMaybe> + stakedLiquidityTokenBalance_lt?: InputMaybe + stakedLiquidityTokenBalance_lte?: InputMaybe + stakedLiquidityTokenBalance_not?: InputMaybe + stakedLiquidityTokenBalance_not_in?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + token0PriceUSD?: InputMaybe + token0PriceUSD_gt?: InputMaybe + token0PriceUSD_gte?: InputMaybe + token0PriceUSD_in?: InputMaybe> + token0PriceUSD_lt?: InputMaybe + token0PriceUSD_lte?: InputMaybe + token0PriceUSD_not?: InputMaybe + token0PriceUSD_not_in?: InputMaybe> + token1PriceUSD?: InputMaybe + token1PriceUSD_gt?: InputMaybe + token1PriceUSD_gte?: InputMaybe + token1PriceUSD_in?: InputMaybe> + token1PriceUSD_lt?: InputMaybe + token1PriceUSD_lte?: InputMaybe + token1PriceUSD_not?: InputMaybe + token1PriceUSD_not_in?: InputMaybe> + totalStakedLiquidityToken?: InputMaybe + totalStakedLiquidityToken_gt?: InputMaybe + totalStakedLiquidityToken_gte?: InputMaybe + totalStakedLiquidityToken_in?: InputMaybe> + totalStakedLiquidityToken_lt?: InputMaybe + totalStakedLiquidityToken_lte?: InputMaybe + totalStakedLiquidityToken_not?: InputMaybe + totalStakedLiquidityToken_not_in?: InputMaybe> + user?: InputMaybe + user_?: InputMaybe + user_contains?: InputMaybe + user_contains_nocase?: InputMaybe + user_ends_with?: InputMaybe + user_ends_with_nocase?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_contains_nocase?: InputMaybe + user_not_ends_with?: InputMaybe + user_not_ends_with_nocase?: InputMaybe + user_not_in?: InputMaybe> + user_not_starts_with?: InputMaybe + user_not_starts_with_nocase?: InputMaybe + user_starts_with?: InputMaybe + user_starts_with_nocase?: InputMaybe +} + +export enum LiquidityMiningPositionSnapshot_OrderBy { + Block = 'block', + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + LiquidityMiningPosition = 'liquidityMiningPosition', + LiquidityMiningPositionId = 'liquidityMiningPosition__id', + LiquidityMiningPositionStakedAmount = 'liquidityMiningPosition__stakedAmount', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Reserve0 = 'reserve0', + Reserve1 = 'reserve1', + ReserveUsd = 'reserveUSD', + StakedLiquidityTokenBalance = 'stakedLiquidityTokenBalance', + Timestamp = 'timestamp', + Token0PriceUsd = 'token0PriceUSD', + Token1PriceUsd = 'token1PriceUSD', + TotalStakedLiquidityToken = 'totalStakedLiquidityToken', + User = 'user', + UserId = 'user__id', + UserUsdSwapped = 'user__usdSwapped', +} + +export type LiquidityMiningPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + stakedAmount?: InputMaybe + stakedAmount_gt?: InputMaybe + stakedAmount_gte?: InputMaybe + stakedAmount_in?: InputMaybe> + stakedAmount_lt?: InputMaybe + stakedAmount_lte?: InputMaybe + stakedAmount_not?: InputMaybe + stakedAmount_not_in?: InputMaybe> + targetedPair?: InputMaybe + targetedPair_?: InputMaybe + targetedPair_contains?: InputMaybe + targetedPair_contains_nocase?: InputMaybe + targetedPair_ends_with?: InputMaybe + targetedPair_ends_with_nocase?: InputMaybe + targetedPair_gt?: InputMaybe + targetedPair_gte?: InputMaybe + targetedPair_in?: InputMaybe> + targetedPair_lt?: InputMaybe + targetedPair_lte?: InputMaybe + targetedPair_not?: InputMaybe + targetedPair_not_contains?: InputMaybe + targetedPair_not_contains_nocase?: InputMaybe + targetedPair_not_ends_with?: InputMaybe + targetedPair_not_ends_with_nocase?: InputMaybe + targetedPair_not_in?: InputMaybe> + targetedPair_not_starts_with?: InputMaybe + targetedPair_not_starts_with_nocase?: InputMaybe + targetedPair_starts_with?: InputMaybe + targetedPair_starts_with_nocase?: InputMaybe + user?: InputMaybe + user_?: InputMaybe + user_contains?: InputMaybe + user_contains_nocase?: InputMaybe + user_ends_with?: InputMaybe + user_ends_with_nocase?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_contains_nocase?: InputMaybe + user_not_ends_with?: InputMaybe + user_not_ends_with_nocase?: InputMaybe + user_not_in?: InputMaybe> + user_not_starts_with?: InputMaybe + user_not_starts_with_nocase?: InputMaybe + user_starts_with?: InputMaybe + user_starts_with_nocase?: InputMaybe +} + +export enum LiquidityMiningPosition_OrderBy { + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + StakedAmount = 'stakedAmount', + TargetedPair = 'targetedPair', + TargetedPairCreatedAtBlockNumber = 'targetedPair__createdAtBlockNumber', + TargetedPairCreatedAtTimestamp = 'targetedPair__createdAtTimestamp', + TargetedPairId = 'targetedPair__id', + TargetedPairLiquidityProviderCount = 'targetedPair__liquidityProviderCount', + TargetedPairReserve0 = 'targetedPair__reserve0', + TargetedPairReserve1 = 'targetedPair__reserve1', + TargetedPairReserveNativeCurrency = 'targetedPair__reserveNativeCurrency', + TargetedPairReserveUsd = 'targetedPair__reserveUSD', + TargetedPairSwapFee = 'targetedPair__swapFee', + TargetedPairToken0Price = 'targetedPair__token0Price', + TargetedPairToken1Price = 'targetedPair__token1Price', + TargetedPairTotalSupply = 'targetedPair__totalSupply', + TargetedPairTrackedReserveNativeCurrency = 'targetedPair__trackedReserveNativeCurrency', + TargetedPairTxCount = 'targetedPair__txCount', + TargetedPairUntrackedVolumeUsd = 'targetedPair__untrackedVolumeUSD', + TargetedPairVolumeToken0 = 'targetedPair__volumeToken0', + TargetedPairVolumeToken1 = 'targetedPair__volumeToken1', + TargetedPairVolumeUsd = 'targetedPair__volumeUSD', + User = 'user', + UserId = 'user__id', + UserUsdSwapped = 'user__usdSwapped', +} + +export type LiquidityPosition = { + __typename?: 'LiquidityPosition' + id: Scalars['ID'] + liquidityTokenBalance: Scalars['BigDecimal'] + pair: Pair + user: User +} + +export type LiquidityPositionSnapshot = { + __typename?: 'LiquidityPositionSnapshot' + block: Scalars['Int'] + id: Scalars['ID'] + liquidityPosition: LiquidityPosition + liquidityTokenBalance: Scalars['BigDecimal'] + liquidityTokenTotalSupply: Scalars['BigDecimal'] + pair: Pair + reserve0: Scalars['BigDecimal'] + reserve1: Scalars['BigDecimal'] + reserveUSD: Scalars['BigDecimal'] + timestamp: Scalars['Int'] + token0PriceUSD: Scalars['BigDecimal'] + token1PriceUSD: Scalars['BigDecimal'] + user: User +} + +export type LiquidityPositionSnapshot_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + block?: InputMaybe + block_gt?: InputMaybe + block_gte?: InputMaybe + block_in?: InputMaybe> + block_lt?: InputMaybe + block_lte?: InputMaybe + block_not?: InputMaybe + block_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityPosition?: InputMaybe + liquidityPosition_?: InputMaybe + liquidityPosition_contains?: InputMaybe + liquidityPosition_contains_nocase?: InputMaybe + liquidityPosition_ends_with?: InputMaybe + liquidityPosition_ends_with_nocase?: InputMaybe + liquidityPosition_gt?: InputMaybe + liquidityPosition_gte?: InputMaybe + liquidityPosition_in?: InputMaybe> + liquidityPosition_lt?: InputMaybe + liquidityPosition_lte?: InputMaybe + liquidityPosition_not?: InputMaybe + liquidityPosition_not_contains?: InputMaybe + liquidityPosition_not_contains_nocase?: InputMaybe + liquidityPosition_not_ends_with?: InputMaybe + liquidityPosition_not_ends_with_nocase?: InputMaybe + liquidityPosition_not_in?: InputMaybe> + liquidityPosition_not_starts_with?: InputMaybe + liquidityPosition_not_starts_with_nocase?: InputMaybe + liquidityPosition_starts_with?: InputMaybe + liquidityPosition_starts_with_nocase?: InputMaybe + liquidityTokenBalance?: InputMaybe + liquidityTokenBalance_gt?: InputMaybe + liquidityTokenBalance_gte?: InputMaybe + liquidityTokenBalance_in?: InputMaybe> + liquidityTokenBalance_lt?: InputMaybe + liquidityTokenBalance_lte?: InputMaybe + liquidityTokenBalance_not?: InputMaybe + liquidityTokenBalance_not_in?: InputMaybe> + liquidityTokenTotalSupply?: InputMaybe + liquidityTokenTotalSupply_gt?: InputMaybe + liquidityTokenTotalSupply_gte?: InputMaybe + liquidityTokenTotalSupply_in?: InputMaybe> + liquidityTokenTotalSupply_lt?: InputMaybe + liquidityTokenTotalSupply_lte?: InputMaybe + liquidityTokenTotalSupply_not?: InputMaybe + liquidityTokenTotalSupply_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + reserve0?: InputMaybe + reserve0_gt?: InputMaybe + reserve0_gte?: InputMaybe + reserve0_in?: InputMaybe> + reserve0_lt?: InputMaybe + reserve0_lte?: InputMaybe + reserve0_not?: InputMaybe + reserve0_not_in?: InputMaybe> + reserve1?: InputMaybe + reserve1_gt?: InputMaybe + reserve1_gte?: InputMaybe + reserve1_in?: InputMaybe> + reserve1_lt?: InputMaybe + reserve1_lte?: InputMaybe + reserve1_not?: InputMaybe + reserve1_not_in?: InputMaybe> + reserveUSD?: InputMaybe + reserveUSD_gt?: InputMaybe + reserveUSD_gte?: InputMaybe + reserveUSD_in?: InputMaybe> + reserveUSD_lt?: InputMaybe + reserveUSD_lte?: InputMaybe + reserveUSD_not?: InputMaybe + reserveUSD_not_in?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + token0PriceUSD?: InputMaybe + token0PriceUSD_gt?: InputMaybe + token0PriceUSD_gte?: InputMaybe + token0PriceUSD_in?: InputMaybe> + token0PriceUSD_lt?: InputMaybe + token0PriceUSD_lte?: InputMaybe + token0PriceUSD_not?: InputMaybe + token0PriceUSD_not_in?: InputMaybe> + token1PriceUSD?: InputMaybe + token1PriceUSD_gt?: InputMaybe + token1PriceUSD_gte?: InputMaybe + token1PriceUSD_in?: InputMaybe> + token1PriceUSD_lt?: InputMaybe + token1PriceUSD_lte?: InputMaybe + token1PriceUSD_not?: InputMaybe + token1PriceUSD_not_in?: InputMaybe> + user?: InputMaybe + user_?: InputMaybe + user_contains?: InputMaybe + user_contains_nocase?: InputMaybe + user_ends_with?: InputMaybe + user_ends_with_nocase?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_contains_nocase?: InputMaybe + user_not_ends_with?: InputMaybe + user_not_ends_with_nocase?: InputMaybe + user_not_in?: InputMaybe> + user_not_starts_with?: InputMaybe + user_not_starts_with_nocase?: InputMaybe + user_starts_with?: InputMaybe + user_starts_with_nocase?: InputMaybe +} + +export enum LiquidityPositionSnapshot_OrderBy { + Block = 'block', + Id = 'id', + LiquidityPosition = 'liquidityPosition', + LiquidityPositionId = 'liquidityPosition__id', + LiquidityPositionLiquidityTokenBalance = 'liquidityPosition__liquidityTokenBalance', + LiquidityTokenBalance = 'liquidityTokenBalance', + LiquidityTokenTotalSupply = 'liquidityTokenTotalSupply', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Reserve0 = 'reserve0', + Reserve1 = 'reserve1', + ReserveUsd = 'reserveUSD', + Timestamp = 'timestamp', + Token0PriceUsd = 'token0PriceUSD', + Token1PriceUsd = 'token1PriceUSD', + User = 'user', + UserId = 'user__id', + UserUsdSwapped = 'user__usdSwapped', +} + +export type LiquidityPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityTokenBalance?: InputMaybe + liquidityTokenBalance_gt?: InputMaybe + liquidityTokenBalance_gte?: InputMaybe + liquidityTokenBalance_in?: InputMaybe> + liquidityTokenBalance_lt?: InputMaybe + liquidityTokenBalance_lte?: InputMaybe + liquidityTokenBalance_not?: InputMaybe + liquidityTokenBalance_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + user?: InputMaybe + user_?: InputMaybe + user_contains?: InputMaybe + user_contains_nocase?: InputMaybe + user_ends_with?: InputMaybe + user_ends_with_nocase?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_contains_nocase?: InputMaybe + user_not_ends_with?: InputMaybe + user_not_ends_with_nocase?: InputMaybe + user_not_in?: InputMaybe> + user_not_starts_with?: InputMaybe + user_not_starts_with_nocase?: InputMaybe + user_starts_with?: InputMaybe + user_starts_with_nocase?: InputMaybe +} + +export enum LiquidityPosition_OrderBy { + Id = 'id', + LiquidityTokenBalance = 'liquidityTokenBalance', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + User = 'user', + UserId = 'user__id', + UserUsdSwapped = 'user__usdSwapped', +} + +export type Mint = { + __typename?: 'Mint' + amount0?: Maybe + amount1?: Maybe + amountUSD?: Maybe + feeLiquidity?: Maybe + feeTo?: Maybe + id: Scalars['ID'] + liquidity: Scalars['BigDecimal'] + logIndex?: Maybe + pair: Pair + sender?: Maybe + timestamp: Scalars['BigInt'] + to: Scalars['Bytes'] + transaction: Transaction +} + +export type Mint_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount0?: InputMaybe + amount0_gt?: InputMaybe + amount0_gte?: InputMaybe + amount0_in?: InputMaybe> + amount0_lt?: InputMaybe + amount0_lte?: InputMaybe + amount0_not?: InputMaybe + amount0_not_in?: InputMaybe> + amount1?: InputMaybe + amount1_gt?: InputMaybe + amount1_gte?: InputMaybe + amount1_in?: InputMaybe> + amount1_lt?: InputMaybe + amount1_lte?: InputMaybe + amount1_not?: InputMaybe + amount1_not_in?: InputMaybe> + amountUSD?: InputMaybe + amountUSD_gt?: InputMaybe + amountUSD_gte?: InputMaybe + amountUSD_in?: InputMaybe> + amountUSD_lt?: InputMaybe + amountUSD_lte?: InputMaybe + amountUSD_not?: InputMaybe + amountUSD_not_in?: InputMaybe> + and?: InputMaybe>> + feeLiquidity?: InputMaybe + feeLiquidity_gt?: InputMaybe + feeLiquidity_gte?: InputMaybe + feeLiquidity_in?: InputMaybe> + feeLiquidity_lt?: InputMaybe + feeLiquidity_lte?: InputMaybe + feeLiquidity_not?: InputMaybe + feeLiquidity_not_in?: InputMaybe> + feeTo?: InputMaybe + feeTo_contains?: InputMaybe + feeTo_gt?: InputMaybe + feeTo_gte?: InputMaybe + feeTo_in?: InputMaybe> + feeTo_lt?: InputMaybe + feeTo_lte?: InputMaybe + feeTo_not?: InputMaybe + feeTo_not_contains?: InputMaybe + feeTo_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidity?: InputMaybe + liquidity_gt?: InputMaybe + liquidity_gte?: InputMaybe + liquidity_in?: InputMaybe> + liquidity_lt?: InputMaybe + liquidity_lte?: InputMaybe + liquidity_not?: InputMaybe + liquidity_not_in?: InputMaybe> + logIndex?: InputMaybe + logIndex_gt?: InputMaybe + logIndex_gte?: InputMaybe + logIndex_in?: InputMaybe> + logIndex_lt?: InputMaybe + logIndex_lte?: InputMaybe + logIndex_not?: InputMaybe + logIndex_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + sender?: InputMaybe + sender_contains?: InputMaybe + sender_gt?: InputMaybe + sender_gte?: InputMaybe + sender_in?: InputMaybe> + sender_lt?: InputMaybe + sender_lte?: InputMaybe + sender_not?: InputMaybe + sender_not_contains?: InputMaybe + sender_not_in?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + to?: InputMaybe + to_contains?: InputMaybe + to_gt?: InputMaybe + to_gte?: InputMaybe + to_in?: InputMaybe> + to_lt?: InputMaybe + to_lte?: InputMaybe + to_not?: InputMaybe + to_not_contains?: InputMaybe + to_not_in?: InputMaybe> + transaction?: InputMaybe + transaction_?: InputMaybe + transaction_contains?: InputMaybe + transaction_contains_nocase?: InputMaybe + transaction_ends_with?: InputMaybe + transaction_ends_with_nocase?: InputMaybe + transaction_gt?: InputMaybe + transaction_gte?: InputMaybe + transaction_in?: InputMaybe> + transaction_lt?: InputMaybe + transaction_lte?: InputMaybe + transaction_not?: InputMaybe + transaction_not_contains?: InputMaybe + transaction_not_contains_nocase?: InputMaybe + transaction_not_ends_with?: InputMaybe + transaction_not_ends_with_nocase?: InputMaybe + transaction_not_in?: InputMaybe> + transaction_not_starts_with?: InputMaybe + transaction_not_starts_with_nocase?: InputMaybe + transaction_starts_with?: InputMaybe + transaction_starts_with_nocase?: InputMaybe +} + +export enum Mint_OrderBy { + Amount0 = 'amount0', + Amount1 = 'amount1', + AmountUsd = 'amountUSD', + FeeLiquidity = 'feeLiquidity', + FeeTo = 'feeTo', + Id = 'id', + Liquidity = 'liquidity', + LogIndex = 'logIndex', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Sender = 'sender', + Timestamp = 'timestamp', + To = 'to', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp', +} + +export type MonthlyUniqueAddressInteraction = { + __typename?: 'MonthlyUniqueAddressInteraction' + addresses: Array + id: Scalars['ID'] + timestamp: Scalars['Int'] +} + +export type MonthlyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + addresses?: InputMaybe> + addresses_contains?: InputMaybe> + addresses_contains_nocase?: InputMaybe> + addresses_not?: InputMaybe> + addresses_not_contains?: InputMaybe> + addresses_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> +} + +export enum MonthlyUniqueAddressInteraction_OrderBy { + Addresses = 'addresses', + Id = 'id', + Timestamp = 'timestamp', +} + +/** Defines the order direction, either ascending or descending */ +export enum OrderDirection { + Asc = 'asc', + Desc = 'desc', +} + +export type Pair = { + __typename?: 'Pair' + burns: Array + createdAtBlockNumber: Scalars['BigInt'] + createdAtTimestamp: Scalars['BigInt'] + id: Scalars['ID'] + liquidityMiningCampaigns: Array + liquidityPositionSnapshots: Array + liquidityPositions: Array + liquidityProviderCount: Scalars['BigInt'] + mints: Array + pairHourData: Array + reserve0: Scalars['BigDecimal'] + reserve1: Scalars['BigDecimal'] + reserveNativeCurrency: Scalars['BigDecimal'] + reserveUSD: Scalars['BigDecimal'] + swapFee: Scalars['BigInt'] + swaps: Array + token0: Token + token0Price: Scalars['BigDecimal'] + token1: Token + token1Price: Scalars['BigDecimal'] + totalSupply: Scalars['BigDecimal'] + trackedReserveNativeCurrency: Scalars['BigDecimal'] + txCount: Scalars['BigInt'] + untrackedVolumeUSD: Scalars['BigDecimal'] + volumeToken0: Scalars['BigDecimal'] + volumeToken1: Scalars['BigDecimal'] + volumeUSD: Scalars['BigDecimal'] +} + +export type PairBurnsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairLiquidityMiningCampaignsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairLiquidityPositionSnapshotsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairLiquidityPositionsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairMintsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairPairHourDataArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairSwapsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type PairDayData = { + __typename?: 'PairDayData' + dailyTxns: Scalars['BigInt'] + dailyVolumeToken0: Scalars['BigDecimal'] + dailyVolumeToken1: Scalars['BigDecimal'] + dailyVolumeUSD: Scalars['BigDecimal'] + date: Scalars['Int'] + id: Scalars['ID'] + pairAddress: Scalars['Bytes'] + reserve0: Scalars['BigDecimal'] + reserve1: Scalars['BigDecimal'] + reserveUSD: Scalars['BigDecimal'] + token0: Token + token1: Token + totalSupply: Scalars['BigDecimal'] +} + +export type PairDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + dailyTxns?: InputMaybe + dailyTxns_gt?: InputMaybe + dailyTxns_gte?: InputMaybe + dailyTxns_in?: InputMaybe> + dailyTxns_lt?: InputMaybe + dailyTxns_lte?: InputMaybe + dailyTxns_not?: InputMaybe + dailyTxns_not_in?: InputMaybe> + dailyVolumeToken0?: InputMaybe + dailyVolumeToken0_gt?: InputMaybe + dailyVolumeToken0_gte?: InputMaybe + dailyVolumeToken0_in?: InputMaybe> + dailyVolumeToken0_lt?: InputMaybe + dailyVolumeToken0_lte?: InputMaybe + dailyVolumeToken0_not?: InputMaybe + dailyVolumeToken0_not_in?: InputMaybe> + dailyVolumeToken1?: InputMaybe + dailyVolumeToken1_gt?: InputMaybe + dailyVolumeToken1_gte?: InputMaybe + dailyVolumeToken1_in?: InputMaybe> + dailyVolumeToken1_lt?: InputMaybe + dailyVolumeToken1_lte?: InputMaybe + dailyVolumeToken1_not?: InputMaybe + dailyVolumeToken1_not_in?: InputMaybe> + dailyVolumeUSD?: InputMaybe + dailyVolumeUSD_gt?: InputMaybe + dailyVolumeUSD_gte?: InputMaybe + dailyVolumeUSD_in?: InputMaybe> + dailyVolumeUSD_lt?: InputMaybe + dailyVolumeUSD_lte?: InputMaybe + dailyVolumeUSD_not?: InputMaybe + dailyVolumeUSD_not_in?: InputMaybe> + date?: InputMaybe + date_gt?: InputMaybe + date_gte?: InputMaybe + date_in?: InputMaybe> + date_lt?: InputMaybe + date_lte?: InputMaybe + date_not?: InputMaybe + date_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + pairAddress?: InputMaybe + pairAddress_contains?: InputMaybe + pairAddress_gt?: InputMaybe + pairAddress_gte?: InputMaybe + pairAddress_in?: InputMaybe> + pairAddress_lt?: InputMaybe + pairAddress_lte?: InputMaybe + pairAddress_not?: InputMaybe + pairAddress_not_contains?: InputMaybe + pairAddress_not_in?: InputMaybe> + reserve0?: InputMaybe + reserve0_gt?: InputMaybe + reserve0_gte?: InputMaybe + reserve0_in?: InputMaybe> + reserve0_lt?: InputMaybe + reserve0_lte?: InputMaybe + reserve0_not?: InputMaybe + reserve0_not_in?: InputMaybe> + reserve1?: InputMaybe + reserve1_gt?: InputMaybe + reserve1_gte?: InputMaybe + reserve1_in?: InputMaybe> + reserve1_lt?: InputMaybe + reserve1_lte?: InputMaybe + reserve1_not?: InputMaybe + reserve1_not_in?: InputMaybe> + reserveUSD?: InputMaybe + reserveUSD_gt?: InputMaybe + reserveUSD_gte?: InputMaybe + reserveUSD_in?: InputMaybe> + reserveUSD_lt?: InputMaybe + reserveUSD_lte?: InputMaybe + reserveUSD_not?: InputMaybe + reserveUSD_not_in?: InputMaybe> + token0?: InputMaybe + token0_?: InputMaybe + token0_contains?: InputMaybe + token0_contains_nocase?: InputMaybe + token0_ends_with?: InputMaybe + token0_ends_with_nocase?: InputMaybe + token0_gt?: InputMaybe + token0_gte?: InputMaybe + token0_in?: InputMaybe> + token0_lt?: InputMaybe + token0_lte?: InputMaybe + token0_not?: InputMaybe + token0_not_contains?: InputMaybe + token0_not_contains_nocase?: InputMaybe + token0_not_ends_with?: InputMaybe + token0_not_ends_with_nocase?: InputMaybe + token0_not_in?: InputMaybe> + token0_not_starts_with?: InputMaybe + token0_not_starts_with_nocase?: InputMaybe + token0_starts_with?: InputMaybe + token0_starts_with_nocase?: InputMaybe + token1?: InputMaybe + token1_?: InputMaybe + token1_contains?: InputMaybe + token1_contains_nocase?: InputMaybe + token1_ends_with?: InputMaybe + token1_ends_with_nocase?: InputMaybe + token1_gt?: InputMaybe + token1_gte?: InputMaybe + token1_in?: InputMaybe> + token1_lt?: InputMaybe + token1_lte?: InputMaybe + token1_not?: InputMaybe + token1_not_contains?: InputMaybe + token1_not_contains_nocase?: InputMaybe + token1_not_ends_with?: InputMaybe + token1_not_ends_with_nocase?: InputMaybe + token1_not_in?: InputMaybe> + token1_not_starts_with?: InputMaybe + token1_not_starts_with_nocase?: InputMaybe + token1_starts_with?: InputMaybe + token1_starts_with_nocase?: InputMaybe + totalSupply?: InputMaybe + totalSupply_gt?: InputMaybe + totalSupply_gte?: InputMaybe + totalSupply_in?: InputMaybe> + totalSupply_lt?: InputMaybe + totalSupply_lte?: InputMaybe + totalSupply_not?: InputMaybe + totalSupply_not_in?: InputMaybe> +} + +export enum PairDayData_OrderBy { + DailyTxns = 'dailyTxns', + DailyVolumeToken0 = 'dailyVolumeToken0', + DailyVolumeToken1 = 'dailyVolumeToken1', + DailyVolumeUsd = 'dailyVolumeUSD', + Date = 'date', + Id = 'id', + PairAddress = 'pairAddress', + Reserve0 = 'reserve0', + Reserve1 = 'reserve1', + ReserveUsd = 'reserveUSD', + Token0 = 'token0', + Token0Decimals = 'token0__decimals', + Token0DerivedNativeCurrency = 'token0__derivedNativeCurrency', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0Symbol = 'token0__symbol', + Token0TotalLiquidity = 'token0__totalLiquidity', + Token0TotalSupply = 'token0__totalSupply', + Token0TradeVolume = 'token0__tradeVolume', + Token0TradeVolumeUsd = 'token0__tradeVolumeUSD', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token1 = 'token1', + Token1Decimals = 'token1__decimals', + Token1DerivedNativeCurrency = 'token1__derivedNativeCurrency', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1Symbol = 'token1__symbol', + Token1TotalLiquidity = 'token1__totalLiquidity', + Token1TotalSupply = 'token1__totalSupply', + Token1TradeVolume = 'token1__tradeVolume', + Token1TradeVolumeUsd = 'token1__tradeVolumeUSD', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + TotalSupply = 'totalSupply', +} + +export type PairHourData = { + __typename?: 'PairHourData' + hourStartUnix: Scalars['Int'] + hourlyTxns: Scalars['BigInt'] + hourlyVolumeToken0: Scalars['BigDecimal'] + hourlyVolumeToken1: Scalars['BigDecimal'] + hourlyVolumeUSD: Scalars['BigDecimal'] + id: Scalars['ID'] + pair: Pair + reserve0: Scalars['BigDecimal'] + reserve1: Scalars['BigDecimal'] + reserveUSD: Scalars['BigDecimal'] +} + +export type PairHourData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + hourStartUnix?: InputMaybe + hourStartUnix_gt?: InputMaybe + hourStartUnix_gte?: InputMaybe + hourStartUnix_in?: InputMaybe> + hourStartUnix_lt?: InputMaybe + hourStartUnix_lte?: InputMaybe + hourStartUnix_not?: InputMaybe + hourStartUnix_not_in?: InputMaybe> + hourlyTxns?: InputMaybe + hourlyTxns_gt?: InputMaybe + hourlyTxns_gte?: InputMaybe + hourlyTxns_in?: InputMaybe> + hourlyTxns_lt?: InputMaybe + hourlyTxns_lte?: InputMaybe + hourlyTxns_not?: InputMaybe + hourlyTxns_not_in?: InputMaybe> + hourlyVolumeToken0?: InputMaybe + hourlyVolumeToken0_gt?: InputMaybe + hourlyVolumeToken0_gte?: InputMaybe + hourlyVolumeToken0_in?: InputMaybe> + hourlyVolumeToken0_lt?: InputMaybe + hourlyVolumeToken0_lte?: InputMaybe + hourlyVolumeToken0_not?: InputMaybe + hourlyVolumeToken0_not_in?: InputMaybe> + hourlyVolumeToken1?: InputMaybe + hourlyVolumeToken1_gt?: InputMaybe + hourlyVolumeToken1_gte?: InputMaybe + hourlyVolumeToken1_in?: InputMaybe> + hourlyVolumeToken1_lt?: InputMaybe + hourlyVolumeToken1_lte?: InputMaybe + hourlyVolumeToken1_not?: InputMaybe + hourlyVolumeToken1_not_in?: InputMaybe> + hourlyVolumeUSD?: InputMaybe + hourlyVolumeUSD_gt?: InputMaybe + hourlyVolumeUSD_gte?: InputMaybe + hourlyVolumeUSD_in?: InputMaybe> + hourlyVolumeUSD_lt?: InputMaybe + hourlyVolumeUSD_lte?: InputMaybe + hourlyVolumeUSD_not?: InputMaybe + hourlyVolumeUSD_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + reserve0?: InputMaybe + reserve0_gt?: InputMaybe + reserve0_gte?: InputMaybe + reserve0_in?: InputMaybe> + reserve0_lt?: InputMaybe + reserve0_lte?: InputMaybe + reserve0_not?: InputMaybe + reserve0_not_in?: InputMaybe> + reserve1?: InputMaybe + reserve1_gt?: InputMaybe + reserve1_gte?: InputMaybe + reserve1_in?: InputMaybe> + reserve1_lt?: InputMaybe + reserve1_lte?: InputMaybe + reserve1_not?: InputMaybe + reserve1_not_in?: InputMaybe> + reserveUSD?: InputMaybe + reserveUSD_gt?: InputMaybe + reserveUSD_gte?: InputMaybe + reserveUSD_in?: InputMaybe> + reserveUSD_lt?: InputMaybe + reserveUSD_lte?: InputMaybe + reserveUSD_not?: InputMaybe + reserveUSD_not_in?: InputMaybe> +} + +export enum PairHourData_OrderBy { + HourStartUnix = 'hourStartUnix', + HourlyTxns = 'hourlyTxns', + HourlyVolumeToken0 = 'hourlyVolumeToken0', + HourlyVolumeToken1 = 'hourlyVolumeToken1', + HourlyVolumeUsd = 'hourlyVolumeUSD', + Id = 'id', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Reserve0 = 'reserve0', + Reserve1 = 'reserve1', + ReserveUsd = 'reserveUSD', +} + +export type Pair_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + burns_?: InputMaybe + createdAtBlockNumber?: InputMaybe + createdAtBlockNumber_gt?: InputMaybe + createdAtBlockNumber_gte?: InputMaybe + createdAtBlockNumber_in?: InputMaybe> + createdAtBlockNumber_lt?: InputMaybe + createdAtBlockNumber_lte?: InputMaybe + createdAtBlockNumber_not?: InputMaybe + createdAtBlockNumber_not_in?: InputMaybe> + createdAtTimestamp?: InputMaybe + createdAtTimestamp_gt?: InputMaybe + createdAtTimestamp_gte?: InputMaybe + createdAtTimestamp_in?: InputMaybe> + createdAtTimestamp_lt?: InputMaybe + createdAtTimestamp_lte?: InputMaybe + createdAtTimestamp_not?: InputMaybe + createdAtTimestamp_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaigns_?: InputMaybe + liquidityPositionSnapshots_?: InputMaybe + liquidityPositions_?: InputMaybe + liquidityProviderCount?: InputMaybe + liquidityProviderCount_gt?: InputMaybe + liquidityProviderCount_gte?: InputMaybe + liquidityProviderCount_in?: InputMaybe> + liquidityProviderCount_lt?: InputMaybe + liquidityProviderCount_lte?: InputMaybe + liquidityProviderCount_not?: InputMaybe + liquidityProviderCount_not_in?: InputMaybe> + mints_?: InputMaybe + or?: InputMaybe>> + pairHourData_?: InputMaybe + reserve0?: InputMaybe + reserve0_gt?: InputMaybe + reserve0_gte?: InputMaybe + reserve0_in?: InputMaybe> + reserve0_lt?: InputMaybe + reserve0_lte?: InputMaybe + reserve0_not?: InputMaybe + reserve0_not_in?: InputMaybe> + reserve1?: InputMaybe + reserve1_gt?: InputMaybe + reserve1_gte?: InputMaybe + reserve1_in?: InputMaybe> + reserve1_lt?: InputMaybe + reserve1_lte?: InputMaybe + reserve1_not?: InputMaybe + reserve1_not_in?: InputMaybe> + reserveNativeCurrency?: InputMaybe + reserveNativeCurrency_gt?: InputMaybe + reserveNativeCurrency_gte?: InputMaybe + reserveNativeCurrency_in?: InputMaybe> + reserveNativeCurrency_lt?: InputMaybe + reserveNativeCurrency_lte?: InputMaybe + reserveNativeCurrency_not?: InputMaybe + reserveNativeCurrency_not_in?: InputMaybe> + reserveUSD?: InputMaybe + reserveUSD_gt?: InputMaybe + reserveUSD_gte?: InputMaybe + reserveUSD_in?: InputMaybe> + reserveUSD_lt?: InputMaybe + reserveUSD_lte?: InputMaybe + reserveUSD_not?: InputMaybe + reserveUSD_not_in?: InputMaybe> + swapFee?: InputMaybe + swapFee_gt?: InputMaybe + swapFee_gte?: InputMaybe + swapFee_in?: InputMaybe> + swapFee_lt?: InputMaybe + swapFee_lte?: InputMaybe + swapFee_not?: InputMaybe + swapFee_not_in?: InputMaybe> + swaps_?: InputMaybe + token0?: InputMaybe + token0Price?: InputMaybe + token0Price_gt?: InputMaybe + token0Price_gte?: InputMaybe + token0Price_in?: InputMaybe> + token0Price_lt?: InputMaybe + token0Price_lte?: InputMaybe + token0Price_not?: InputMaybe + token0Price_not_in?: InputMaybe> + token0_?: InputMaybe + token0_contains?: InputMaybe + token0_contains_nocase?: InputMaybe + token0_ends_with?: InputMaybe + token0_ends_with_nocase?: InputMaybe + token0_gt?: InputMaybe + token0_gte?: InputMaybe + token0_in?: InputMaybe> + token0_lt?: InputMaybe + token0_lte?: InputMaybe + token0_not?: InputMaybe + token0_not_contains?: InputMaybe + token0_not_contains_nocase?: InputMaybe + token0_not_ends_with?: InputMaybe + token0_not_ends_with_nocase?: InputMaybe + token0_not_in?: InputMaybe> + token0_not_starts_with?: InputMaybe + token0_not_starts_with_nocase?: InputMaybe + token0_starts_with?: InputMaybe + token0_starts_with_nocase?: InputMaybe + token1?: InputMaybe + token1Price?: InputMaybe + token1Price_gt?: InputMaybe + token1Price_gte?: InputMaybe + token1Price_in?: InputMaybe> + token1Price_lt?: InputMaybe + token1Price_lte?: InputMaybe + token1Price_not?: InputMaybe + token1Price_not_in?: InputMaybe> + token1_?: InputMaybe + token1_contains?: InputMaybe + token1_contains_nocase?: InputMaybe + token1_ends_with?: InputMaybe + token1_ends_with_nocase?: InputMaybe + token1_gt?: InputMaybe + token1_gte?: InputMaybe + token1_in?: InputMaybe> + token1_lt?: InputMaybe + token1_lte?: InputMaybe + token1_not?: InputMaybe + token1_not_contains?: InputMaybe + token1_not_contains_nocase?: InputMaybe + token1_not_ends_with?: InputMaybe + token1_not_ends_with_nocase?: InputMaybe + token1_not_in?: InputMaybe> + token1_not_starts_with?: InputMaybe + token1_not_starts_with_nocase?: InputMaybe + token1_starts_with?: InputMaybe + token1_starts_with_nocase?: InputMaybe + totalSupply?: InputMaybe + totalSupply_gt?: InputMaybe + totalSupply_gte?: InputMaybe + totalSupply_in?: InputMaybe> + totalSupply_lt?: InputMaybe + totalSupply_lte?: InputMaybe + totalSupply_not?: InputMaybe + totalSupply_not_in?: InputMaybe> + trackedReserveNativeCurrency?: InputMaybe + trackedReserveNativeCurrency_gt?: InputMaybe + trackedReserveNativeCurrency_gte?: InputMaybe + trackedReserveNativeCurrency_in?: InputMaybe> + trackedReserveNativeCurrency_lt?: InputMaybe + trackedReserveNativeCurrency_lte?: InputMaybe + trackedReserveNativeCurrency_not?: InputMaybe + trackedReserveNativeCurrency_not_in?: InputMaybe> + txCount?: InputMaybe + txCount_gt?: InputMaybe + txCount_gte?: InputMaybe + txCount_in?: InputMaybe> + txCount_lt?: InputMaybe + txCount_lte?: InputMaybe + txCount_not?: InputMaybe + txCount_not_in?: InputMaybe> + untrackedVolumeUSD?: InputMaybe + untrackedVolumeUSD_gt?: InputMaybe + untrackedVolumeUSD_gte?: InputMaybe + untrackedVolumeUSD_in?: InputMaybe> + untrackedVolumeUSD_lt?: InputMaybe + untrackedVolumeUSD_lte?: InputMaybe + untrackedVolumeUSD_not?: InputMaybe + untrackedVolumeUSD_not_in?: InputMaybe> + volumeToken0?: InputMaybe + volumeToken0_gt?: InputMaybe + volumeToken0_gte?: InputMaybe + volumeToken0_in?: InputMaybe> + volumeToken0_lt?: InputMaybe + volumeToken0_lte?: InputMaybe + volumeToken0_not?: InputMaybe + volumeToken0_not_in?: InputMaybe> + volumeToken1?: InputMaybe + volumeToken1_gt?: InputMaybe + volumeToken1_gte?: InputMaybe + volumeToken1_in?: InputMaybe> + volumeToken1_lt?: InputMaybe + volumeToken1_lte?: InputMaybe + volumeToken1_not?: InputMaybe + volumeToken1_not_in?: InputMaybe> + volumeUSD?: InputMaybe + volumeUSD_gt?: InputMaybe + volumeUSD_gte?: InputMaybe + volumeUSD_in?: InputMaybe> + volumeUSD_lt?: InputMaybe + volumeUSD_lte?: InputMaybe + volumeUSD_not?: InputMaybe + volumeUSD_not_in?: InputMaybe> +} + +export enum Pair_OrderBy { + Burns = 'burns', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + Id = 'id', + LiquidityMiningCampaigns = 'liquidityMiningCampaigns', + LiquidityPositionSnapshots = 'liquidityPositionSnapshots', + LiquidityPositions = 'liquidityPositions', + LiquidityProviderCount = 'liquidityProviderCount', + Mints = 'mints', + PairHourData = 'pairHourData', + Reserve0 = 'reserve0', + Reserve1 = 'reserve1', + ReserveNativeCurrency = 'reserveNativeCurrency', + ReserveUsd = 'reserveUSD', + SwapFee = 'swapFee', + Swaps = 'swaps', + Token0 = 'token0', + Token0Price = 'token0Price', + Token0Decimals = 'token0__decimals', + Token0DerivedNativeCurrency = 'token0__derivedNativeCurrency', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0Symbol = 'token0__symbol', + Token0TotalLiquidity = 'token0__totalLiquidity', + Token0TotalSupply = 'token0__totalSupply', + Token0TradeVolume = 'token0__tradeVolume', + Token0TradeVolumeUsd = 'token0__tradeVolumeUSD', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token1 = 'token1', + Token1Price = 'token1Price', + Token1Decimals = 'token1__decimals', + Token1DerivedNativeCurrency = 'token1__derivedNativeCurrency', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1Symbol = 'token1__symbol', + Token1TotalLiquidity = 'token1__totalLiquidity', + Token1TotalSupply = 'token1__totalSupply', + Token1TradeVolume = 'token1__tradeVolume', + Token1TradeVolumeUsd = 'token1__tradeVolumeUSD', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + TotalSupply = 'totalSupply', + TrackedReserveNativeCurrency = 'trackedReserveNativeCurrency', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD', +} + +export type Query = { + __typename?: 'Query' + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_> + bundle?: Maybe + bundles: Array + burn?: Maybe + burns: Array + claim?: Maybe + claims: Array + dailyUniqueAddressInteraction?: Maybe + dailyUniqueAddressInteractions: Array + deposit?: Maybe + deposits: Array + liquidityMiningCampaign?: Maybe + liquidityMiningCampaignReward?: Maybe + liquidityMiningCampaignRewards: Array + liquidityMiningCampaigns: Array + liquidityMiningPosition?: Maybe + liquidityMiningPositionSnapshot?: Maybe + liquidityMiningPositionSnapshots: Array + liquidityMiningPositions: Array + liquidityPosition?: Maybe + liquidityPositionSnapshot?: Maybe + liquidityPositionSnapshots: Array + liquidityPositions: Array + mint?: Maybe + mints: Array + monthlyUniqueAddressInteraction?: Maybe + monthlyUniqueAddressInteractions: Array + pair?: Maybe + pairDayData?: Maybe + pairDayDatas: Array + pairHourData?: Maybe + pairHourDatas: Array + pairs: Array + recoveries: Array + recovery?: Maybe + singleSidedStakingCampaign?: Maybe + singleSidedStakingCampaignClaim?: Maybe + singleSidedStakingCampaignClaims: Array + singleSidedStakingCampaignDeposit?: Maybe + singleSidedStakingCampaignDeposits: Array + singleSidedStakingCampaignPosition?: Maybe + singleSidedStakingCampaignPositions: Array + singleSidedStakingCampaignRecoveries: Array + singleSidedStakingCampaignRecovery?: Maybe + singleSidedStakingCampaignReward?: Maybe + singleSidedStakingCampaignRewards: Array + singleSidedStakingCampaignWithdrawal?: Maybe + singleSidedStakingCampaignWithdrawals: Array + singleSidedStakingCampaigns: Array + swap?: Maybe + swaprDayData?: Maybe + swaprDayDatas: Array + swaprFactories: Array + swaprFactory?: Maybe + swaprStakingRewardsFactories: Array + swaprStakingRewardsFactory?: Maybe + swaps: Array + token?: Maybe + tokenDayData?: Maybe + tokenDayDatas: Array + tokens: Array + transaction?: Maybe + transactions: Array + user?: Maybe + users: Array + weeklyUniqueAddressInteraction?: Maybe + weeklyUniqueAddressInteractions: Array + withdrawal?: Maybe + withdrawals: Array +} + +export type Query_MetaArgs = { + block?: InputMaybe +} + +export type QueryBundleArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryBundlesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryBurnArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryBurnsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryClaimArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryClaimsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryDailyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryDailyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryDepositArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryDepositsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityMiningCampaignArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityMiningCampaignRewardArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityMiningCampaignRewardsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityMiningCampaignsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityMiningPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityMiningPositionSnapshotArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityMiningPositionSnapshotsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityMiningPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityPositionSnapshotArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryLiquidityPositionSnapshotsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryLiquidityPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryMintArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryMintsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryMonthlyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryMonthlyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryPairArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryPairDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryPairDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryPairHourDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryPairHourDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryPairsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryRecoveriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryRecoveryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignClaimArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignClaimsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignDepositArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignDepositsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignRecoveriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignRecoveryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignRewardArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignRewardsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignWithdrawalArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySingleSidedStakingCampaignWithdrawalsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySingleSidedStakingCampaignsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySwapArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySwaprDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySwaprDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySwaprFactoriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySwaprFactoryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySwaprStakingRewardsFactoriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QuerySwaprStakingRewardsFactoryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QuerySwapsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryTokenArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryTokenDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryTokenDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryTokensArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryTransactionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryTransactionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryUserArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryUsersArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryWeeklyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryWeeklyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type QueryWithdrawalArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type QueryWithdrawalsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type Recovery = { + __typename?: 'Recovery' + amounts: Array + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + timestamp: Scalars['BigInt'] +} + +export type Recovery_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amounts?: InputMaybe> + amounts_contains?: InputMaybe> + amounts_contains_nocase?: InputMaybe> + amounts_not?: InputMaybe> + amounts_not_contains?: InputMaybe> + amounts_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> +} + +export enum Recovery_OrderBy { + Amounts = 'amounts', + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + Timestamp = 'timestamp', +} + +export type SingleSidedStakingCampaign = { + __typename?: 'SingleSidedStakingCampaign' + claims: Array + deposits: Array + duration: Scalars['BigInt'] + endsAt: Scalars['BigInt'] + id: Scalars['ID'] + initialized: Scalars['Boolean'] + locked: Scalars['Boolean'] + owner: Scalars['Bytes'] + recoveries: Array + rewards: Array + singleSidedStakingPositions: Array + stakeToken: Token + stakedAmount: Scalars['BigDecimal'] + stakingCap: Scalars['BigDecimal'] + startsAt: Scalars['BigInt'] + withdrawals: Array +} + +export type SingleSidedStakingCampaignClaimsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignDepositsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignRecoveriesArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignRewardsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignSingleSidedStakingPositionsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignWithdrawalsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type SingleSidedStakingCampaignClaim = { + __typename?: 'SingleSidedStakingCampaignClaim' + amounts: Array + id: Scalars['ID'] + singleSidedStakingCampaign: SingleSidedStakingCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type SingleSidedStakingCampaignClaim_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amounts?: InputMaybe> + amounts_contains?: InputMaybe> + amounts_contains_nocase?: InputMaybe> + amounts_not?: InputMaybe> + amounts_not_contains?: InputMaybe> + amounts_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + singleSidedStakingCampaign?: InputMaybe + singleSidedStakingCampaign_?: InputMaybe + singleSidedStakingCampaign_contains?: InputMaybe + singleSidedStakingCampaign_contains_nocase?: InputMaybe + singleSidedStakingCampaign_ends_with?: InputMaybe + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_gt?: InputMaybe + singleSidedStakingCampaign_gte?: InputMaybe + singleSidedStakingCampaign_in?: InputMaybe> + singleSidedStakingCampaign_lt?: InputMaybe + singleSidedStakingCampaign_lte?: InputMaybe + singleSidedStakingCampaign_not?: InputMaybe + singleSidedStakingCampaign_not_contains?: InputMaybe + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe + singleSidedStakingCampaign_not_ends_with?: InputMaybe + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_not_in?: InputMaybe> + singleSidedStakingCampaign_not_starts_with?: InputMaybe + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe + singleSidedStakingCampaign_starts_with?: InputMaybe + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum SingleSidedStakingCampaignClaim_OrderBy { + Amounts = 'amounts', + Id = 'id', + SingleSidedStakingCampaign = 'singleSidedStakingCampaign', + SingleSidedStakingCampaignDuration = 'singleSidedStakingCampaign__duration', + SingleSidedStakingCampaignEndsAt = 'singleSidedStakingCampaign__endsAt', + SingleSidedStakingCampaignId = 'singleSidedStakingCampaign__id', + SingleSidedStakingCampaignInitialized = 'singleSidedStakingCampaign__initialized', + SingleSidedStakingCampaignLocked = 'singleSidedStakingCampaign__locked', + SingleSidedStakingCampaignOwner = 'singleSidedStakingCampaign__owner', + SingleSidedStakingCampaignStakedAmount = 'singleSidedStakingCampaign__stakedAmount', + SingleSidedStakingCampaignStakingCap = 'singleSidedStakingCampaign__stakingCap', + SingleSidedStakingCampaignStartsAt = 'singleSidedStakingCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type SingleSidedStakingCampaignDeposit = { + __typename?: 'SingleSidedStakingCampaignDeposit' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + singleSidedStakingCampaign: SingleSidedStakingCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type SingleSidedStakingCampaignDeposit_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + singleSidedStakingCampaign?: InputMaybe + singleSidedStakingCampaign_?: InputMaybe + singleSidedStakingCampaign_contains?: InputMaybe + singleSidedStakingCampaign_contains_nocase?: InputMaybe + singleSidedStakingCampaign_ends_with?: InputMaybe + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_gt?: InputMaybe + singleSidedStakingCampaign_gte?: InputMaybe + singleSidedStakingCampaign_in?: InputMaybe> + singleSidedStakingCampaign_lt?: InputMaybe + singleSidedStakingCampaign_lte?: InputMaybe + singleSidedStakingCampaign_not?: InputMaybe + singleSidedStakingCampaign_not_contains?: InputMaybe + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe + singleSidedStakingCampaign_not_ends_with?: InputMaybe + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_not_in?: InputMaybe> + singleSidedStakingCampaign_not_starts_with?: InputMaybe + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe + singleSidedStakingCampaign_starts_with?: InputMaybe + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum SingleSidedStakingCampaignDeposit_OrderBy { + Amount = 'amount', + Id = 'id', + SingleSidedStakingCampaign = 'singleSidedStakingCampaign', + SingleSidedStakingCampaignDuration = 'singleSidedStakingCampaign__duration', + SingleSidedStakingCampaignEndsAt = 'singleSidedStakingCampaign__endsAt', + SingleSidedStakingCampaignId = 'singleSidedStakingCampaign__id', + SingleSidedStakingCampaignInitialized = 'singleSidedStakingCampaign__initialized', + SingleSidedStakingCampaignLocked = 'singleSidedStakingCampaign__locked', + SingleSidedStakingCampaignOwner = 'singleSidedStakingCampaign__owner', + SingleSidedStakingCampaignStakedAmount = 'singleSidedStakingCampaign__stakedAmount', + SingleSidedStakingCampaignStakingCap = 'singleSidedStakingCampaign__stakingCap', + SingleSidedStakingCampaignStartsAt = 'singleSidedStakingCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type SingleSidedStakingCampaignPosition = { + __typename?: 'SingleSidedStakingCampaignPosition' + id: Scalars['ID'] + singleSidedStakingCampaign: SingleSidedStakingCampaign + stakedAmount: Scalars['BigDecimal'] + user: User +} + +export type SingleSidedStakingCampaignPosition_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + singleSidedStakingCampaign?: InputMaybe + singleSidedStakingCampaign_?: InputMaybe + singleSidedStakingCampaign_contains?: InputMaybe + singleSidedStakingCampaign_contains_nocase?: InputMaybe + singleSidedStakingCampaign_ends_with?: InputMaybe + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_gt?: InputMaybe + singleSidedStakingCampaign_gte?: InputMaybe + singleSidedStakingCampaign_in?: InputMaybe> + singleSidedStakingCampaign_lt?: InputMaybe + singleSidedStakingCampaign_lte?: InputMaybe + singleSidedStakingCampaign_not?: InputMaybe + singleSidedStakingCampaign_not_contains?: InputMaybe + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe + singleSidedStakingCampaign_not_ends_with?: InputMaybe + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_not_in?: InputMaybe> + singleSidedStakingCampaign_not_starts_with?: InputMaybe + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe + singleSidedStakingCampaign_starts_with?: InputMaybe + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe + stakedAmount?: InputMaybe + stakedAmount_gt?: InputMaybe + stakedAmount_gte?: InputMaybe + stakedAmount_in?: InputMaybe> + stakedAmount_lt?: InputMaybe + stakedAmount_lte?: InputMaybe + stakedAmount_not?: InputMaybe + stakedAmount_not_in?: InputMaybe> + user?: InputMaybe + user_?: InputMaybe + user_contains?: InputMaybe + user_contains_nocase?: InputMaybe + user_ends_with?: InputMaybe + user_ends_with_nocase?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_contains_nocase?: InputMaybe + user_not_ends_with?: InputMaybe + user_not_ends_with_nocase?: InputMaybe + user_not_in?: InputMaybe> + user_not_starts_with?: InputMaybe + user_not_starts_with_nocase?: InputMaybe + user_starts_with?: InputMaybe + user_starts_with_nocase?: InputMaybe +} + +export enum SingleSidedStakingCampaignPosition_OrderBy { + Id = 'id', + SingleSidedStakingCampaign = 'singleSidedStakingCampaign', + SingleSidedStakingCampaignDuration = 'singleSidedStakingCampaign__duration', + SingleSidedStakingCampaignEndsAt = 'singleSidedStakingCampaign__endsAt', + SingleSidedStakingCampaignId = 'singleSidedStakingCampaign__id', + SingleSidedStakingCampaignInitialized = 'singleSidedStakingCampaign__initialized', + SingleSidedStakingCampaignLocked = 'singleSidedStakingCampaign__locked', + SingleSidedStakingCampaignOwner = 'singleSidedStakingCampaign__owner', + SingleSidedStakingCampaignStakedAmount = 'singleSidedStakingCampaign__stakedAmount', + SingleSidedStakingCampaignStakingCap = 'singleSidedStakingCampaign__stakingCap', + SingleSidedStakingCampaignStartsAt = 'singleSidedStakingCampaign__startsAt', + StakedAmount = 'stakedAmount', + User = 'user', + UserId = 'user__id', + UserUsdSwapped = 'user__usdSwapped', +} + +export type SingleSidedStakingCampaignRecovery = { + __typename?: 'SingleSidedStakingCampaignRecovery' + amounts: Array + id: Scalars['ID'] + singleSidedStakingCampaign: SingleSidedStakingCampaign + timestamp: Scalars['BigInt'] +} + +export type SingleSidedStakingCampaignRecovery_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amounts?: InputMaybe> + amounts_contains?: InputMaybe> + amounts_contains_nocase?: InputMaybe> + amounts_not?: InputMaybe> + amounts_not_contains?: InputMaybe> + amounts_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + singleSidedStakingCampaign?: InputMaybe + singleSidedStakingCampaign_?: InputMaybe + singleSidedStakingCampaign_contains?: InputMaybe + singleSidedStakingCampaign_contains_nocase?: InputMaybe + singleSidedStakingCampaign_ends_with?: InputMaybe + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_gt?: InputMaybe + singleSidedStakingCampaign_gte?: InputMaybe + singleSidedStakingCampaign_in?: InputMaybe> + singleSidedStakingCampaign_lt?: InputMaybe + singleSidedStakingCampaign_lte?: InputMaybe + singleSidedStakingCampaign_not?: InputMaybe + singleSidedStakingCampaign_not_contains?: InputMaybe + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe + singleSidedStakingCampaign_not_ends_with?: InputMaybe + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_not_in?: InputMaybe> + singleSidedStakingCampaign_not_starts_with?: InputMaybe + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe + singleSidedStakingCampaign_starts_with?: InputMaybe + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> +} + +export enum SingleSidedStakingCampaignRecovery_OrderBy { + Amounts = 'amounts', + Id = 'id', + SingleSidedStakingCampaign = 'singleSidedStakingCampaign', + SingleSidedStakingCampaignDuration = 'singleSidedStakingCampaign__duration', + SingleSidedStakingCampaignEndsAt = 'singleSidedStakingCampaign__endsAt', + SingleSidedStakingCampaignId = 'singleSidedStakingCampaign__id', + SingleSidedStakingCampaignInitialized = 'singleSidedStakingCampaign__initialized', + SingleSidedStakingCampaignLocked = 'singleSidedStakingCampaign__locked', + SingleSidedStakingCampaignOwner = 'singleSidedStakingCampaign__owner', + SingleSidedStakingCampaignStakedAmount = 'singleSidedStakingCampaign__stakedAmount', + SingleSidedStakingCampaignStakingCap = 'singleSidedStakingCampaign__stakingCap', + SingleSidedStakingCampaignStartsAt = 'singleSidedStakingCampaign__startsAt', + Timestamp = 'timestamp', +} + +export type SingleSidedStakingCampaignReward = { + __typename?: 'SingleSidedStakingCampaignReward' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + token: Token +} + +export type SingleSidedStakingCampaignReward_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + token?: InputMaybe + token_?: InputMaybe + token_contains?: InputMaybe + token_contains_nocase?: InputMaybe + token_ends_with?: InputMaybe + token_ends_with_nocase?: InputMaybe + token_gt?: InputMaybe + token_gte?: InputMaybe + token_in?: InputMaybe> + token_lt?: InputMaybe + token_lte?: InputMaybe + token_not?: InputMaybe + token_not_contains?: InputMaybe + token_not_contains_nocase?: InputMaybe + token_not_ends_with?: InputMaybe + token_not_ends_with_nocase?: InputMaybe + token_not_in?: InputMaybe> + token_not_starts_with?: InputMaybe + token_not_starts_with_nocase?: InputMaybe + token_starts_with?: InputMaybe + token_starts_with_nocase?: InputMaybe +} + +export enum SingleSidedStakingCampaignReward_OrderBy { + Amount = 'amount', + Id = 'id', + Token = 'token', + TokenDecimals = 'token__decimals', + TokenDerivedNativeCurrency = 'token__derivedNativeCurrency', + TokenId = 'token__id', + TokenName = 'token__name', + TokenSymbol = 'token__symbol', + TokenTotalLiquidity = 'token__totalLiquidity', + TokenTotalSupply = 'token__totalSupply', + TokenTradeVolume = 'token__tradeVolume', + TokenTradeVolumeUsd = 'token__tradeVolumeUSD', + TokenTxCount = 'token__txCount', + TokenUntrackedVolumeUsd = 'token__untrackedVolumeUSD', +} + +export type SingleSidedStakingCampaignWithdrawal = { + __typename?: 'SingleSidedStakingCampaignWithdrawal' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + singleSidedStakingCampaign: SingleSidedStakingCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type SingleSidedStakingCampaignWithdrawal_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + singleSidedStakingCampaign?: InputMaybe + singleSidedStakingCampaign_?: InputMaybe + singleSidedStakingCampaign_contains?: InputMaybe + singleSidedStakingCampaign_contains_nocase?: InputMaybe + singleSidedStakingCampaign_ends_with?: InputMaybe + singleSidedStakingCampaign_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_gt?: InputMaybe + singleSidedStakingCampaign_gte?: InputMaybe + singleSidedStakingCampaign_in?: InputMaybe> + singleSidedStakingCampaign_lt?: InputMaybe + singleSidedStakingCampaign_lte?: InputMaybe + singleSidedStakingCampaign_not?: InputMaybe + singleSidedStakingCampaign_not_contains?: InputMaybe + singleSidedStakingCampaign_not_contains_nocase?: InputMaybe + singleSidedStakingCampaign_not_ends_with?: InputMaybe + singleSidedStakingCampaign_not_ends_with_nocase?: InputMaybe + singleSidedStakingCampaign_not_in?: InputMaybe> + singleSidedStakingCampaign_not_starts_with?: InputMaybe + singleSidedStakingCampaign_not_starts_with_nocase?: InputMaybe + singleSidedStakingCampaign_starts_with?: InputMaybe + singleSidedStakingCampaign_starts_with_nocase?: InputMaybe + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum SingleSidedStakingCampaignWithdrawal_OrderBy { + Amount = 'amount', + Id = 'id', + SingleSidedStakingCampaign = 'singleSidedStakingCampaign', + SingleSidedStakingCampaignDuration = 'singleSidedStakingCampaign__duration', + SingleSidedStakingCampaignEndsAt = 'singleSidedStakingCampaign__endsAt', + SingleSidedStakingCampaignId = 'singleSidedStakingCampaign__id', + SingleSidedStakingCampaignInitialized = 'singleSidedStakingCampaign__initialized', + SingleSidedStakingCampaignLocked = 'singleSidedStakingCampaign__locked', + SingleSidedStakingCampaignOwner = 'singleSidedStakingCampaign__owner', + SingleSidedStakingCampaignStakedAmount = 'singleSidedStakingCampaign__stakedAmount', + SingleSidedStakingCampaignStakingCap = 'singleSidedStakingCampaign__stakingCap', + SingleSidedStakingCampaignStartsAt = 'singleSidedStakingCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type SingleSidedStakingCampaign_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + claims_?: InputMaybe + deposits_?: InputMaybe + duration?: InputMaybe + duration_gt?: InputMaybe + duration_gte?: InputMaybe + duration_in?: InputMaybe> + duration_lt?: InputMaybe + duration_lte?: InputMaybe + duration_not?: InputMaybe + duration_not_in?: InputMaybe> + endsAt?: InputMaybe + endsAt_gt?: InputMaybe + endsAt_gte?: InputMaybe + endsAt_in?: InputMaybe> + endsAt_lt?: InputMaybe + endsAt_lte?: InputMaybe + endsAt_not?: InputMaybe + endsAt_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + initialized?: InputMaybe + initialized_in?: InputMaybe> + initialized_not?: InputMaybe + initialized_not_in?: InputMaybe> + locked?: InputMaybe + locked_in?: InputMaybe> + locked_not?: InputMaybe + locked_not_in?: InputMaybe> + or?: InputMaybe>> + owner?: InputMaybe + owner_contains?: InputMaybe + owner_gt?: InputMaybe + owner_gte?: InputMaybe + owner_in?: InputMaybe> + owner_lt?: InputMaybe + owner_lte?: InputMaybe + owner_not?: InputMaybe + owner_not_contains?: InputMaybe + owner_not_in?: InputMaybe> + recoveries_?: InputMaybe + rewards?: InputMaybe> + rewards_?: InputMaybe + rewards_contains?: InputMaybe> + rewards_contains_nocase?: InputMaybe> + rewards_not?: InputMaybe> + rewards_not_contains?: InputMaybe> + rewards_not_contains_nocase?: InputMaybe> + singleSidedStakingPositions_?: InputMaybe + stakeToken?: InputMaybe + stakeToken_?: InputMaybe + stakeToken_contains?: InputMaybe + stakeToken_contains_nocase?: InputMaybe + stakeToken_ends_with?: InputMaybe + stakeToken_ends_with_nocase?: InputMaybe + stakeToken_gt?: InputMaybe + stakeToken_gte?: InputMaybe + stakeToken_in?: InputMaybe> + stakeToken_lt?: InputMaybe + stakeToken_lte?: InputMaybe + stakeToken_not?: InputMaybe + stakeToken_not_contains?: InputMaybe + stakeToken_not_contains_nocase?: InputMaybe + stakeToken_not_ends_with?: InputMaybe + stakeToken_not_ends_with_nocase?: InputMaybe + stakeToken_not_in?: InputMaybe> + stakeToken_not_starts_with?: InputMaybe + stakeToken_not_starts_with_nocase?: InputMaybe + stakeToken_starts_with?: InputMaybe + stakeToken_starts_with_nocase?: InputMaybe + stakedAmount?: InputMaybe + stakedAmount_gt?: InputMaybe + stakedAmount_gte?: InputMaybe + stakedAmount_in?: InputMaybe> + stakedAmount_lt?: InputMaybe + stakedAmount_lte?: InputMaybe + stakedAmount_not?: InputMaybe + stakedAmount_not_in?: InputMaybe> + stakingCap?: InputMaybe + stakingCap_gt?: InputMaybe + stakingCap_gte?: InputMaybe + stakingCap_in?: InputMaybe> + stakingCap_lt?: InputMaybe + stakingCap_lte?: InputMaybe + stakingCap_not?: InputMaybe + stakingCap_not_in?: InputMaybe> + startsAt?: InputMaybe + startsAt_gt?: InputMaybe + startsAt_gte?: InputMaybe + startsAt_in?: InputMaybe> + startsAt_lt?: InputMaybe + startsAt_lte?: InputMaybe + startsAt_not?: InputMaybe + startsAt_not_in?: InputMaybe> + withdrawals_?: InputMaybe +} + +export enum SingleSidedStakingCampaign_OrderBy { + Claims = 'claims', + Deposits = 'deposits', + Duration = 'duration', + EndsAt = 'endsAt', + Id = 'id', + Initialized = 'initialized', + Locked = 'locked', + Owner = 'owner', + Recoveries = 'recoveries', + Rewards = 'rewards', + SingleSidedStakingPositions = 'singleSidedStakingPositions', + StakeToken = 'stakeToken', + StakeTokenDecimals = 'stakeToken__decimals', + StakeTokenDerivedNativeCurrency = 'stakeToken__derivedNativeCurrency', + StakeTokenId = 'stakeToken__id', + StakeTokenName = 'stakeToken__name', + StakeTokenSymbol = 'stakeToken__symbol', + StakeTokenTotalLiquidity = 'stakeToken__totalLiquidity', + StakeTokenTotalSupply = 'stakeToken__totalSupply', + StakeTokenTradeVolume = 'stakeToken__tradeVolume', + StakeTokenTradeVolumeUsd = 'stakeToken__tradeVolumeUSD', + StakeTokenTxCount = 'stakeToken__txCount', + StakeTokenUntrackedVolumeUsd = 'stakeToken__untrackedVolumeUSD', + StakedAmount = 'stakedAmount', + StakingCap = 'stakingCap', + StartsAt = 'startsAt', + Withdrawals = 'withdrawals', +} + +export type Subscription = { + __typename?: 'Subscription' + /** Access to subgraph metadata */ + _meta?: Maybe<_Meta_> + bundle?: Maybe + bundles: Array + burn?: Maybe + burns: Array + claim?: Maybe + claims: Array + dailyUniqueAddressInteraction?: Maybe + dailyUniqueAddressInteractions: Array + deposit?: Maybe + deposits: Array + liquidityMiningCampaign?: Maybe + liquidityMiningCampaignReward?: Maybe + liquidityMiningCampaignRewards: Array + liquidityMiningCampaigns: Array + liquidityMiningPosition?: Maybe + liquidityMiningPositionSnapshot?: Maybe + liquidityMiningPositionSnapshots: Array + liquidityMiningPositions: Array + liquidityPosition?: Maybe + liquidityPositionSnapshot?: Maybe + liquidityPositionSnapshots: Array + liquidityPositions: Array + mint?: Maybe + mints: Array + monthlyUniqueAddressInteraction?: Maybe + monthlyUniqueAddressInteractions: Array + pair?: Maybe + pairDayData?: Maybe + pairDayDatas: Array + pairHourData?: Maybe + pairHourDatas: Array + pairs: Array + recoveries: Array + recovery?: Maybe + singleSidedStakingCampaign?: Maybe + singleSidedStakingCampaignClaim?: Maybe + singleSidedStakingCampaignClaims: Array + singleSidedStakingCampaignDeposit?: Maybe + singleSidedStakingCampaignDeposits: Array + singleSidedStakingCampaignPosition?: Maybe + singleSidedStakingCampaignPositions: Array + singleSidedStakingCampaignRecoveries: Array + singleSidedStakingCampaignRecovery?: Maybe + singleSidedStakingCampaignReward?: Maybe + singleSidedStakingCampaignRewards: Array + singleSidedStakingCampaignWithdrawal?: Maybe + singleSidedStakingCampaignWithdrawals: Array + singleSidedStakingCampaigns: Array + swap?: Maybe + swaprDayData?: Maybe + swaprDayDatas: Array + swaprFactories: Array + swaprFactory?: Maybe + swaprStakingRewardsFactories: Array + swaprStakingRewardsFactory?: Maybe + swaps: Array + token?: Maybe + tokenDayData?: Maybe + tokenDayDatas: Array + tokens: Array + transaction?: Maybe + transactions: Array + user?: Maybe + users: Array + weeklyUniqueAddressInteraction?: Maybe + weeklyUniqueAddressInteractions: Array + withdrawal?: Maybe + withdrawals: Array +} + +export type Subscription_MetaArgs = { + block?: InputMaybe +} + +export type SubscriptionBundleArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionBundlesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionBurnArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionBurnsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionClaimArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionClaimsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionDailyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionDailyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionDepositArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionDepositsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityMiningCampaignArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityMiningCampaignRewardArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityMiningCampaignRewardsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityMiningCampaignsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityMiningPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityMiningPositionSnapshotArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityMiningPositionSnapshotsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityMiningPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityPositionSnapshotArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionLiquidityPositionSnapshotsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionLiquidityPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionMintArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionMintsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionMonthlyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionMonthlyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionPairArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionPairDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionPairDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionPairHourDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionPairHourDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionPairsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionRecoveriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionRecoveryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignClaimArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignClaimsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignDepositArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignDepositsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignPositionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignPositionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignRecoveriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignRecoveryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignRewardArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignRewardsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignWithdrawalArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSingleSidedStakingCampaignWithdrawalsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSingleSidedStakingCampaignsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSwapArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSwaprDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSwaprDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSwaprFactoriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSwaprFactoryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSwaprStakingRewardsFactoriesArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionSwaprStakingRewardsFactoryArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionSwapsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionTokenArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionTokenDayDataArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionTokenDayDatasArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionTokensArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionTransactionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionTransactionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionUserArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionUsersArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionWeeklyUniqueAddressInteractionArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionWeeklyUniqueAddressInteractionsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type SubscriptionWithdrawalArgs = { + block?: InputMaybe + id: Scalars['ID'] + subgraphError?: _SubgraphErrorPolicy_ +} + +export type SubscriptionWithdrawalsArgs = { + block?: InputMaybe + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + subgraphError?: _SubgraphErrorPolicy_ + where?: InputMaybe +} + +export type Swap = { + __typename?: 'Swap' + amount0In: Scalars['BigDecimal'] + amount0Out: Scalars['BigDecimal'] + amount1In: Scalars['BigDecimal'] + amount1Out: Scalars['BigDecimal'] + amountUSD: Scalars['BigDecimal'] + from: Scalars['Bytes'] + id: Scalars['ID'] + logIndex?: Maybe + pair: Pair + sender: Scalars['Bytes'] + timestamp: Scalars['BigInt'] + to: Scalars['Bytes'] + transaction: Transaction +} + +export type Swap_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount0In?: InputMaybe + amount0In_gt?: InputMaybe + amount0In_gte?: InputMaybe + amount0In_in?: InputMaybe> + amount0In_lt?: InputMaybe + amount0In_lte?: InputMaybe + amount0In_not?: InputMaybe + amount0In_not_in?: InputMaybe> + amount0Out?: InputMaybe + amount0Out_gt?: InputMaybe + amount0Out_gte?: InputMaybe + amount0Out_in?: InputMaybe> + amount0Out_lt?: InputMaybe + amount0Out_lte?: InputMaybe + amount0Out_not?: InputMaybe + amount0Out_not_in?: InputMaybe> + amount1In?: InputMaybe + amount1In_gt?: InputMaybe + amount1In_gte?: InputMaybe + amount1In_in?: InputMaybe> + amount1In_lt?: InputMaybe + amount1In_lte?: InputMaybe + amount1In_not?: InputMaybe + amount1In_not_in?: InputMaybe> + amount1Out?: InputMaybe + amount1Out_gt?: InputMaybe + amount1Out_gte?: InputMaybe + amount1Out_in?: InputMaybe> + amount1Out_lt?: InputMaybe + amount1Out_lte?: InputMaybe + amount1Out_not?: InputMaybe + amount1Out_not_in?: InputMaybe> + amountUSD?: InputMaybe + amountUSD_gt?: InputMaybe + amountUSD_gte?: InputMaybe + amountUSD_in?: InputMaybe> + amountUSD_lt?: InputMaybe + amountUSD_lte?: InputMaybe + amountUSD_not?: InputMaybe + amountUSD_not_in?: InputMaybe> + and?: InputMaybe>> + from?: InputMaybe + from_contains?: InputMaybe + from_gt?: InputMaybe + from_gte?: InputMaybe + from_in?: InputMaybe> + from_lt?: InputMaybe + from_lte?: InputMaybe + from_not?: InputMaybe + from_not_contains?: InputMaybe + from_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + logIndex?: InputMaybe + logIndex_gt?: InputMaybe + logIndex_gte?: InputMaybe + logIndex_in?: InputMaybe> + logIndex_lt?: InputMaybe + logIndex_lte?: InputMaybe + logIndex_not?: InputMaybe + logIndex_not_in?: InputMaybe> + or?: InputMaybe>> + pair?: InputMaybe + pair_?: InputMaybe + pair_contains?: InputMaybe + pair_contains_nocase?: InputMaybe + pair_ends_with?: InputMaybe + pair_ends_with_nocase?: InputMaybe + pair_gt?: InputMaybe + pair_gte?: InputMaybe + pair_in?: InputMaybe> + pair_lt?: InputMaybe + pair_lte?: InputMaybe + pair_not?: InputMaybe + pair_not_contains?: InputMaybe + pair_not_contains_nocase?: InputMaybe + pair_not_ends_with?: InputMaybe + pair_not_ends_with_nocase?: InputMaybe + pair_not_in?: InputMaybe> + pair_not_starts_with?: InputMaybe + pair_not_starts_with_nocase?: InputMaybe + pair_starts_with?: InputMaybe + pair_starts_with_nocase?: InputMaybe + sender?: InputMaybe + sender_contains?: InputMaybe + sender_gt?: InputMaybe + sender_gte?: InputMaybe + sender_in?: InputMaybe> + sender_lt?: InputMaybe + sender_lte?: InputMaybe + sender_not?: InputMaybe + sender_not_contains?: InputMaybe + sender_not_in?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + to?: InputMaybe + to_contains?: InputMaybe + to_gt?: InputMaybe + to_gte?: InputMaybe + to_in?: InputMaybe> + to_lt?: InputMaybe + to_lte?: InputMaybe + to_not?: InputMaybe + to_not_contains?: InputMaybe + to_not_in?: InputMaybe> + transaction?: InputMaybe + transaction_?: InputMaybe + transaction_contains?: InputMaybe + transaction_contains_nocase?: InputMaybe + transaction_ends_with?: InputMaybe + transaction_ends_with_nocase?: InputMaybe + transaction_gt?: InputMaybe + transaction_gte?: InputMaybe + transaction_in?: InputMaybe> + transaction_lt?: InputMaybe + transaction_lte?: InputMaybe + transaction_not?: InputMaybe + transaction_not_contains?: InputMaybe + transaction_not_contains_nocase?: InputMaybe + transaction_not_ends_with?: InputMaybe + transaction_not_ends_with_nocase?: InputMaybe + transaction_not_in?: InputMaybe> + transaction_not_starts_with?: InputMaybe + transaction_not_starts_with_nocase?: InputMaybe + transaction_starts_with?: InputMaybe + transaction_starts_with_nocase?: InputMaybe +} + +export enum Swap_OrderBy { + Amount0In = 'amount0In', + Amount0Out = 'amount0Out', + Amount1In = 'amount1In', + Amount1Out = 'amount1Out', + AmountUsd = 'amountUSD', + From = 'from', + Id = 'id', + LogIndex = 'logIndex', + Pair = 'pair', + PairCreatedAtBlockNumber = 'pair__createdAtBlockNumber', + PairCreatedAtTimestamp = 'pair__createdAtTimestamp', + PairId = 'pair__id', + PairLiquidityProviderCount = 'pair__liquidityProviderCount', + PairReserve0 = 'pair__reserve0', + PairReserve1 = 'pair__reserve1', + PairReserveNativeCurrency = 'pair__reserveNativeCurrency', + PairReserveUsd = 'pair__reserveUSD', + PairSwapFee = 'pair__swapFee', + PairToken0Price = 'pair__token0Price', + PairToken1Price = 'pair__token1Price', + PairTotalSupply = 'pair__totalSupply', + PairTrackedReserveNativeCurrency = 'pair__trackedReserveNativeCurrency', + PairTxCount = 'pair__txCount', + PairUntrackedVolumeUsd = 'pair__untrackedVolumeUSD', + PairVolumeToken0 = 'pair__volumeToken0', + PairVolumeToken1 = 'pair__volumeToken1', + PairVolumeUsd = 'pair__volumeUSD', + Sender = 'sender', + Timestamp = 'timestamp', + To = 'to', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp', +} + +export type SwaprDayData = { + __typename?: 'SwaprDayData' + dailyBurns: Scalars['BigInt'] + dailyMints: Scalars['BigInt'] + dailySwaps: Scalars['BigInt'] + dailyVolumeNativeCurrency: Scalars['BigDecimal'] + dailyVolumeUSD: Scalars['BigDecimal'] + dailyVolumeUntracked: Scalars['BigDecimal'] + date: Scalars['Int'] + id: Scalars['ID'] + totalLiquidityNativeCurrency: Scalars['BigDecimal'] + totalLiquidityUSD: Scalars['BigDecimal'] + totalVolumeNativeCurrency: Scalars['BigDecimal'] + totalVolumeUSD: Scalars['BigDecimal'] + txCount: Scalars['BigInt'] +} + +export type SwaprDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + dailyBurns?: InputMaybe + dailyBurns_gt?: InputMaybe + dailyBurns_gte?: InputMaybe + dailyBurns_in?: InputMaybe> + dailyBurns_lt?: InputMaybe + dailyBurns_lte?: InputMaybe + dailyBurns_not?: InputMaybe + dailyBurns_not_in?: InputMaybe> + dailyMints?: InputMaybe + dailyMints_gt?: InputMaybe + dailyMints_gte?: InputMaybe + dailyMints_in?: InputMaybe> + dailyMints_lt?: InputMaybe + dailyMints_lte?: InputMaybe + dailyMints_not?: InputMaybe + dailyMints_not_in?: InputMaybe> + dailySwaps?: InputMaybe + dailySwaps_gt?: InputMaybe + dailySwaps_gte?: InputMaybe + dailySwaps_in?: InputMaybe> + dailySwaps_lt?: InputMaybe + dailySwaps_lte?: InputMaybe + dailySwaps_not?: InputMaybe + dailySwaps_not_in?: InputMaybe> + dailyVolumeNativeCurrency?: InputMaybe + dailyVolumeNativeCurrency_gt?: InputMaybe + dailyVolumeNativeCurrency_gte?: InputMaybe + dailyVolumeNativeCurrency_in?: InputMaybe> + dailyVolumeNativeCurrency_lt?: InputMaybe + dailyVolumeNativeCurrency_lte?: InputMaybe + dailyVolumeNativeCurrency_not?: InputMaybe + dailyVolumeNativeCurrency_not_in?: InputMaybe> + dailyVolumeUSD?: InputMaybe + dailyVolumeUSD_gt?: InputMaybe + dailyVolumeUSD_gte?: InputMaybe + dailyVolumeUSD_in?: InputMaybe> + dailyVolumeUSD_lt?: InputMaybe + dailyVolumeUSD_lte?: InputMaybe + dailyVolumeUSD_not?: InputMaybe + dailyVolumeUSD_not_in?: InputMaybe> + dailyVolumeUntracked?: InputMaybe + dailyVolumeUntracked_gt?: InputMaybe + dailyVolumeUntracked_gte?: InputMaybe + dailyVolumeUntracked_in?: InputMaybe> + dailyVolumeUntracked_lt?: InputMaybe + dailyVolumeUntracked_lte?: InputMaybe + dailyVolumeUntracked_not?: InputMaybe + dailyVolumeUntracked_not_in?: InputMaybe> + date?: InputMaybe + date_gt?: InputMaybe + date_gte?: InputMaybe + date_in?: InputMaybe> + date_lt?: InputMaybe + date_lte?: InputMaybe + date_not?: InputMaybe + date_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + totalLiquidityNativeCurrency?: InputMaybe + totalLiquidityNativeCurrency_gt?: InputMaybe + totalLiquidityNativeCurrency_gte?: InputMaybe + totalLiquidityNativeCurrency_in?: InputMaybe> + totalLiquidityNativeCurrency_lt?: InputMaybe + totalLiquidityNativeCurrency_lte?: InputMaybe + totalLiquidityNativeCurrency_not?: InputMaybe + totalLiquidityNativeCurrency_not_in?: InputMaybe> + totalLiquidityUSD?: InputMaybe + totalLiquidityUSD_gt?: InputMaybe + totalLiquidityUSD_gte?: InputMaybe + totalLiquidityUSD_in?: InputMaybe> + totalLiquidityUSD_lt?: InputMaybe + totalLiquidityUSD_lte?: InputMaybe + totalLiquidityUSD_not?: InputMaybe + totalLiquidityUSD_not_in?: InputMaybe> + totalVolumeNativeCurrency?: InputMaybe + totalVolumeNativeCurrency_gt?: InputMaybe + totalVolumeNativeCurrency_gte?: InputMaybe + totalVolumeNativeCurrency_in?: InputMaybe> + totalVolumeNativeCurrency_lt?: InputMaybe + totalVolumeNativeCurrency_lte?: InputMaybe + totalVolumeNativeCurrency_not?: InputMaybe + totalVolumeNativeCurrency_not_in?: InputMaybe> + totalVolumeUSD?: InputMaybe + totalVolumeUSD_gt?: InputMaybe + totalVolumeUSD_gte?: InputMaybe + totalVolumeUSD_in?: InputMaybe> + totalVolumeUSD_lt?: InputMaybe + totalVolumeUSD_lte?: InputMaybe + totalVolumeUSD_not?: InputMaybe + totalVolumeUSD_not_in?: InputMaybe> + txCount?: InputMaybe + txCount_gt?: InputMaybe + txCount_gte?: InputMaybe + txCount_in?: InputMaybe> + txCount_lt?: InputMaybe + txCount_lte?: InputMaybe + txCount_not?: InputMaybe + txCount_not_in?: InputMaybe> +} + +export enum SwaprDayData_OrderBy { + DailyBurns = 'dailyBurns', + DailyMints = 'dailyMints', + DailySwaps = 'dailySwaps', + DailyVolumeNativeCurrency = 'dailyVolumeNativeCurrency', + DailyVolumeUsd = 'dailyVolumeUSD', + DailyVolumeUntracked = 'dailyVolumeUntracked', + Date = 'date', + Id = 'id', + TotalLiquidityNativeCurrency = 'totalLiquidityNativeCurrency', + TotalLiquidityUsd = 'totalLiquidityUSD', + TotalVolumeNativeCurrency = 'totalVolumeNativeCurrency', + TotalVolumeUsd = 'totalVolumeUSD', + TxCount = 'txCount', +} + +export type SwaprFactory = { + __typename?: 'SwaprFactory' + id: Scalars['ID'] + pairCount: Scalars['Int'] + totalLiquidityNativeCurrency: Scalars['BigDecimal'] + totalLiquidityUSD: Scalars['BigDecimal'] + totalVolumeNativeCurrency: Scalars['BigDecimal'] + totalVolumeUSD: Scalars['BigDecimal'] + txCount: Scalars['BigInt'] + untrackedVolumeUSD: Scalars['BigDecimal'] +} + +export type SwaprFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + pairCount?: InputMaybe + pairCount_gt?: InputMaybe + pairCount_gte?: InputMaybe + pairCount_in?: InputMaybe> + pairCount_lt?: InputMaybe + pairCount_lte?: InputMaybe + pairCount_not?: InputMaybe + pairCount_not_in?: InputMaybe> + totalLiquidityNativeCurrency?: InputMaybe + totalLiquidityNativeCurrency_gt?: InputMaybe + totalLiquidityNativeCurrency_gte?: InputMaybe + totalLiquidityNativeCurrency_in?: InputMaybe> + totalLiquidityNativeCurrency_lt?: InputMaybe + totalLiquidityNativeCurrency_lte?: InputMaybe + totalLiquidityNativeCurrency_not?: InputMaybe + totalLiquidityNativeCurrency_not_in?: InputMaybe> + totalLiquidityUSD?: InputMaybe + totalLiquidityUSD_gt?: InputMaybe + totalLiquidityUSD_gte?: InputMaybe + totalLiquidityUSD_in?: InputMaybe> + totalLiquidityUSD_lt?: InputMaybe + totalLiquidityUSD_lte?: InputMaybe + totalLiquidityUSD_not?: InputMaybe + totalLiquidityUSD_not_in?: InputMaybe> + totalVolumeNativeCurrency?: InputMaybe + totalVolumeNativeCurrency_gt?: InputMaybe + totalVolumeNativeCurrency_gte?: InputMaybe + totalVolumeNativeCurrency_in?: InputMaybe> + totalVolumeNativeCurrency_lt?: InputMaybe + totalVolumeNativeCurrency_lte?: InputMaybe + totalVolumeNativeCurrency_not?: InputMaybe + totalVolumeNativeCurrency_not_in?: InputMaybe> + totalVolumeUSD?: InputMaybe + totalVolumeUSD_gt?: InputMaybe + totalVolumeUSD_gte?: InputMaybe + totalVolumeUSD_in?: InputMaybe> + totalVolumeUSD_lt?: InputMaybe + totalVolumeUSD_lte?: InputMaybe + totalVolumeUSD_not?: InputMaybe + totalVolumeUSD_not_in?: InputMaybe> + txCount?: InputMaybe + txCount_gt?: InputMaybe + txCount_gte?: InputMaybe + txCount_in?: InputMaybe> + txCount_lt?: InputMaybe + txCount_lte?: InputMaybe + txCount_not?: InputMaybe + txCount_not_in?: InputMaybe> + untrackedVolumeUSD?: InputMaybe + untrackedVolumeUSD_gt?: InputMaybe + untrackedVolumeUSD_gte?: InputMaybe + untrackedVolumeUSD_in?: InputMaybe> + untrackedVolumeUSD_lt?: InputMaybe + untrackedVolumeUSD_lte?: InputMaybe + untrackedVolumeUSD_not?: InputMaybe + untrackedVolumeUSD_not_in?: InputMaybe> +} + +export enum SwaprFactory_OrderBy { + Id = 'id', + PairCount = 'pairCount', + TotalLiquidityNativeCurrency = 'totalLiquidityNativeCurrency', + TotalLiquidityUsd = 'totalLiquidityUSD', + TotalVolumeNativeCurrency = 'totalVolumeNativeCurrency', + TotalVolumeUsd = 'totalVolumeUSD', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD', +} + +export type SwaprStakingRewardsFactory = { + __typename?: 'SwaprStakingRewardsFactory' + id: Scalars['ID'] + initializedCampaignsCount: Scalars['Int'] +} + +export type SwaprStakingRewardsFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + initializedCampaignsCount?: InputMaybe + initializedCampaignsCount_gt?: InputMaybe + initializedCampaignsCount_gte?: InputMaybe + initializedCampaignsCount_in?: InputMaybe> + initializedCampaignsCount_lt?: InputMaybe + initializedCampaignsCount_lte?: InputMaybe + initializedCampaignsCount_not?: InputMaybe + initializedCampaignsCount_not_in?: InputMaybe> + or?: InputMaybe>> +} + +export enum SwaprStakingRewardsFactory_OrderBy { + Id = 'id', + InitializedCampaignsCount = 'initializedCampaignsCount', +} + +export type Token = { + __typename?: 'Token' + decimals: Scalars['BigInt'] + derivedNativeCurrency: Scalars['BigDecimal'] + id: Scalars['ID'] + name: Scalars['String'] + pairBase: Array + pairDayDataBase: Array + pairDayDataQuote: Array + pairQuote: Array + symbol: Scalars['String'] + tokenDayData: Array + totalLiquidity: Scalars['BigDecimal'] + totalSupply: Scalars['BigInt'] + tradeVolume: Scalars['BigDecimal'] + tradeVolumeUSD: Scalars['BigDecimal'] + txCount: Scalars['BigInt'] + untrackedVolumeUSD: Scalars['BigDecimal'] + whitelistPairs: Array +} + +export type TokenPairBaseArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenPairDayDataBaseArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenPairDayDataQuoteArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenPairQuoteArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenTokenDayDataArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenWhitelistPairsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TokenDayData = { + __typename?: 'TokenDayData' + dailyTxns: Scalars['BigInt'] + dailyVolumeNativeCurrency: Scalars['BigDecimal'] + dailyVolumeToken: Scalars['BigDecimal'] + dailyVolumeUSD: Scalars['BigDecimal'] + date: Scalars['Int'] + id: Scalars['ID'] + priceUSD: Scalars['BigDecimal'] + token: Token + totalLiquidityNativeCurrency: Scalars['BigDecimal'] + totalLiquidityToken: Scalars['BigDecimal'] + totalLiquidityUSD: Scalars['BigDecimal'] +} + +export type TokenDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + dailyTxns?: InputMaybe + dailyTxns_gt?: InputMaybe + dailyTxns_gte?: InputMaybe + dailyTxns_in?: InputMaybe> + dailyTxns_lt?: InputMaybe + dailyTxns_lte?: InputMaybe + dailyTxns_not?: InputMaybe + dailyTxns_not_in?: InputMaybe> + dailyVolumeNativeCurrency?: InputMaybe + dailyVolumeNativeCurrency_gt?: InputMaybe + dailyVolumeNativeCurrency_gte?: InputMaybe + dailyVolumeNativeCurrency_in?: InputMaybe> + dailyVolumeNativeCurrency_lt?: InputMaybe + dailyVolumeNativeCurrency_lte?: InputMaybe + dailyVolumeNativeCurrency_not?: InputMaybe + dailyVolumeNativeCurrency_not_in?: InputMaybe> + dailyVolumeToken?: InputMaybe + dailyVolumeToken_gt?: InputMaybe + dailyVolumeToken_gte?: InputMaybe + dailyVolumeToken_in?: InputMaybe> + dailyVolumeToken_lt?: InputMaybe + dailyVolumeToken_lte?: InputMaybe + dailyVolumeToken_not?: InputMaybe + dailyVolumeToken_not_in?: InputMaybe> + dailyVolumeUSD?: InputMaybe + dailyVolumeUSD_gt?: InputMaybe + dailyVolumeUSD_gte?: InputMaybe + dailyVolumeUSD_in?: InputMaybe> + dailyVolumeUSD_lt?: InputMaybe + dailyVolumeUSD_lte?: InputMaybe + dailyVolumeUSD_not?: InputMaybe + dailyVolumeUSD_not_in?: InputMaybe> + date?: InputMaybe + date_gt?: InputMaybe + date_gte?: InputMaybe + date_in?: InputMaybe> + date_lt?: InputMaybe + date_lte?: InputMaybe + date_not?: InputMaybe + date_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + priceUSD?: InputMaybe + priceUSD_gt?: InputMaybe + priceUSD_gte?: InputMaybe + priceUSD_in?: InputMaybe> + priceUSD_lt?: InputMaybe + priceUSD_lte?: InputMaybe + priceUSD_not?: InputMaybe + priceUSD_not_in?: InputMaybe> + token?: InputMaybe + token_?: InputMaybe + token_contains?: InputMaybe + token_contains_nocase?: InputMaybe + token_ends_with?: InputMaybe + token_ends_with_nocase?: InputMaybe + token_gt?: InputMaybe + token_gte?: InputMaybe + token_in?: InputMaybe> + token_lt?: InputMaybe + token_lte?: InputMaybe + token_not?: InputMaybe + token_not_contains?: InputMaybe + token_not_contains_nocase?: InputMaybe + token_not_ends_with?: InputMaybe + token_not_ends_with_nocase?: InputMaybe + token_not_in?: InputMaybe> + token_not_starts_with?: InputMaybe + token_not_starts_with_nocase?: InputMaybe + token_starts_with?: InputMaybe + token_starts_with_nocase?: InputMaybe + totalLiquidityNativeCurrency?: InputMaybe + totalLiquidityNativeCurrency_gt?: InputMaybe + totalLiquidityNativeCurrency_gte?: InputMaybe + totalLiquidityNativeCurrency_in?: InputMaybe> + totalLiquidityNativeCurrency_lt?: InputMaybe + totalLiquidityNativeCurrency_lte?: InputMaybe + totalLiquidityNativeCurrency_not?: InputMaybe + totalLiquidityNativeCurrency_not_in?: InputMaybe> + totalLiquidityToken?: InputMaybe + totalLiquidityToken_gt?: InputMaybe + totalLiquidityToken_gte?: InputMaybe + totalLiquidityToken_in?: InputMaybe> + totalLiquidityToken_lt?: InputMaybe + totalLiquidityToken_lte?: InputMaybe + totalLiquidityToken_not?: InputMaybe + totalLiquidityToken_not_in?: InputMaybe> + totalLiquidityUSD?: InputMaybe + totalLiquidityUSD_gt?: InputMaybe + totalLiquidityUSD_gte?: InputMaybe + totalLiquidityUSD_in?: InputMaybe> + totalLiquidityUSD_lt?: InputMaybe + totalLiquidityUSD_lte?: InputMaybe + totalLiquidityUSD_not?: InputMaybe + totalLiquidityUSD_not_in?: InputMaybe> +} + +export enum TokenDayData_OrderBy { + DailyTxns = 'dailyTxns', + DailyVolumeNativeCurrency = 'dailyVolumeNativeCurrency', + DailyVolumeToken = 'dailyVolumeToken', + DailyVolumeUsd = 'dailyVolumeUSD', + Date = 'date', + Id = 'id', + PriceUsd = 'priceUSD', + Token = 'token', + TokenDecimals = 'token__decimals', + TokenDerivedNativeCurrency = 'token__derivedNativeCurrency', + TokenId = 'token__id', + TokenName = 'token__name', + TokenSymbol = 'token__symbol', + TokenTotalLiquidity = 'token__totalLiquidity', + TokenTotalSupply = 'token__totalSupply', + TokenTradeVolume = 'token__tradeVolume', + TokenTradeVolumeUsd = 'token__tradeVolumeUSD', + TokenTxCount = 'token__txCount', + TokenUntrackedVolumeUsd = 'token__untrackedVolumeUSD', + TotalLiquidityNativeCurrency = 'totalLiquidityNativeCurrency', + TotalLiquidityToken = 'totalLiquidityToken', + TotalLiquidityUsd = 'totalLiquidityUSD', +} + +export type Token_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + decimals?: InputMaybe + decimals_gt?: InputMaybe + decimals_gte?: InputMaybe + decimals_in?: InputMaybe> + decimals_lt?: InputMaybe + decimals_lte?: InputMaybe + decimals_not?: InputMaybe + decimals_not_in?: InputMaybe> + derivedNativeCurrency?: InputMaybe + derivedNativeCurrency_gt?: InputMaybe + derivedNativeCurrency_gte?: InputMaybe + derivedNativeCurrency_in?: InputMaybe> + derivedNativeCurrency_lt?: InputMaybe + derivedNativeCurrency_lte?: InputMaybe + derivedNativeCurrency_not?: InputMaybe + derivedNativeCurrency_not_in?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + name?: InputMaybe + name_contains?: InputMaybe + name_contains_nocase?: InputMaybe + name_ends_with?: InputMaybe + name_ends_with_nocase?: InputMaybe + name_gt?: InputMaybe + name_gte?: InputMaybe + name_in?: InputMaybe> + name_lt?: InputMaybe + name_lte?: InputMaybe + name_not?: InputMaybe + name_not_contains?: InputMaybe + name_not_contains_nocase?: InputMaybe + name_not_ends_with?: InputMaybe + name_not_ends_with_nocase?: InputMaybe + name_not_in?: InputMaybe> + name_not_starts_with?: InputMaybe + name_not_starts_with_nocase?: InputMaybe + name_starts_with?: InputMaybe + name_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + pairBase_?: InputMaybe + pairDayDataBase_?: InputMaybe + pairDayDataQuote_?: InputMaybe + pairQuote_?: InputMaybe + symbol?: InputMaybe + symbol_contains?: InputMaybe + symbol_contains_nocase?: InputMaybe + symbol_ends_with?: InputMaybe + symbol_ends_with_nocase?: InputMaybe + symbol_gt?: InputMaybe + symbol_gte?: InputMaybe + symbol_in?: InputMaybe> + symbol_lt?: InputMaybe + symbol_lte?: InputMaybe + symbol_not?: InputMaybe + symbol_not_contains?: InputMaybe + symbol_not_contains_nocase?: InputMaybe + symbol_not_ends_with?: InputMaybe + symbol_not_ends_with_nocase?: InputMaybe + symbol_not_in?: InputMaybe> + symbol_not_starts_with?: InputMaybe + symbol_not_starts_with_nocase?: InputMaybe + symbol_starts_with?: InputMaybe + symbol_starts_with_nocase?: InputMaybe + tokenDayData_?: InputMaybe + totalLiquidity?: InputMaybe + totalLiquidity_gt?: InputMaybe + totalLiquidity_gte?: InputMaybe + totalLiquidity_in?: InputMaybe> + totalLiquidity_lt?: InputMaybe + totalLiquidity_lte?: InputMaybe + totalLiquidity_not?: InputMaybe + totalLiquidity_not_in?: InputMaybe> + totalSupply?: InputMaybe + totalSupply_gt?: InputMaybe + totalSupply_gte?: InputMaybe + totalSupply_in?: InputMaybe> + totalSupply_lt?: InputMaybe + totalSupply_lte?: InputMaybe + totalSupply_not?: InputMaybe + totalSupply_not_in?: InputMaybe> + tradeVolume?: InputMaybe + tradeVolumeUSD?: InputMaybe + tradeVolumeUSD_gt?: InputMaybe + tradeVolumeUSD_gte?: InputMaybe + tradeVolumeUSD_in?: InputMaybe> + tradeVolumeUSD_lt?: InputMaybe + tradeVolumeUSD_lte?: InputMaybe + tradeVolumeUSD_not?: InputMaybe + tradeVolumeUSD_not_in?: InputMaybe> + tradeVolume_gt?: InputMaybe + tradeVolume_gte?: InputMaybe + tradeVolume_in?: InputMaybe> + tradeVolume_lt?: InputMaybe + tradeVolume_lte?: InputMaybe + tradeVolume_not?: InputMaybe + tradeVolume_not_in?: InputMaybe> + txCount?: InputMaybe + txCount_gt?: InputMaybe + txCount_gte?: InputMaybe + txCount_in?: InputMaybe> + txCount_lt?: InputMaybe + txCount_lte?: InputMaybe + txCount_not?: InputMaybe + txCount_not_in?: InputMaybe> + untrackedVolumeUSD?: InputMaybe + untrackedVolumeUSD_gt?: InputMaybe + untrackedVolumeUSD_gte?: InputMaybe + untrackedVolumeUSD_in?: InputMaybe> + untrackedVolumeUSD_lt?: InputMaybe + untrackedVolumeUSD_lte?: InputMaybe + untrackedVolumeUSD_not?: InputMaybe + untrackedVolumeUSD_not_in?: InputMaybe> + whitelistPairs?: InputMaybe> + whitelistPairs_?: InputMaybe + whitelistPairs_contains?: InputMaybe> + whitelistPairs_contains_nocase?: InputMaybe> + whitelistPairs_not?: InputMaybe> + whitelistPairs_not_contains?: InputMaybe> + whitelistPairs_not_contains_nocase?: InputMaybe> +} + +export enum Token_OrderBy { + Decimals = 'decimals', + DerivedNativeCurrency = 'derivedNativeCurrency', + Id = 'id', + Name = 'name', + PairBase = 'pairBase', + PairDayDataBase = 'pairDayDataBase', + PairDayDataQuote = 'pairDayDataQuote', + PairQuote = 'pairQuote', + Symbol = 'symbol', + TokenDayData = 'tokenDayData', + TotalLiquidity = 'totalLiquidity', + TotalSupply = 'totalSupply', + TradeVolume = 'tradeVolume', + TradeVolumeUsd = 'tradeVolumeUSD', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + WhitelistPairs = 'whitelistPairs', +} + +export type Transaction = { + __typename?: 'Transaction' + blockNumber: Scalars['BigInt'] + burns: Array + id: Scalars['ID'] + mints: Array + swaps: Array + timestamp: Scalars['BigInt'] +} + +export type TransactionBurnsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TransactionMintsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type TransactionSwapsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type Transaction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + blockNumber?: InputMaybe + blockNumber_gt?: InputMaybe + blockNumber_gte?: InputMaybe + blockNumber_in?: InputMaybe> + blockNumber_lt?: InputMaybe + blockNumber_lte?: InputMaybe + blockNumber_not?: InputMaybe + blockNumber_not_in?: InputMaybe> + burns?: InputMaybe> + burns_?: InputMaybe + burns_contains?: InputMaybe> + burns_contains_nocase?: InputMaybe> + burns_not?: InputMaybe> + burns_not_contains?: InputMaybe> + burns_not_contains_nocase?: InputMaybe> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + mints?: InputMaybe> + mints_?: InputMaybe + mints_contains?: InputMaybe> + mints_contains_nocase?: InputMaybe> + mints_not?: InputMaybe> + mints_not_contains?: InputMaybe> + mints_not_contains_nocase?: InputMaybe> + or?: InputMaybe>> + swaps?: InputMaybe> + swaps_?: InputMaybe + swaps_contains?: InputMaybe> + swaps_contains_nocase?: InputMaybe> + swaps_not?: InputMaybe> + swaps_not_contains?: InputMaybe> + swaps_not_contains_nocase?: InputMaybe> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> +} + +export enum Transaction_OrderBy { + BlockNumber = 'blockNumber', + Burns = 'burns', + Id = 'id', + Mints = 'mints', + Swaps = 'swaps', + Timestamp = 'timestamp', +} + +export type User = { + __typename?: 'User' + id: Scalars['ID'] + liquidityPositions?: Maybe> + usdSwapped: Scalars['BigDecimal'] +} + +export type UserLiquidityPositionsArgs = { + first?: InputMaybe + orderBy?: InputMaybe + orderDirection?: InputMaybe + skip?: InputMaybe + where?: InputMaybe +} + +export type User_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityPositions_?: InputMaybe + or?: InputMaybe>> + usdSwapped?: InputMaybe + usdSwapped_gt?: InputMaybe + usdSwapped_gte?: InputMaybe + usdSwapped_in?: InputMaybe> + usdSwapped_lt?: InputMaybe + usdSwapped_lte?: InputMaybe + usdSwapped_not?: InputMaybe + usdSwapped_not_in?: InputMaybe> +} + +export enum User_OrderBy { + Id = 'id', + LiquidityPositions = 'liquidityPositions', + UsdSwapped = 'usdSwapped', +} + +export type WeeklyUniqueAddressInteraction = { + __typename?: 'WeeklyUniqueAddressInteraction' + addresses: Array + id: Scalars['ID'] + timestampEnd: Scalars['Int'] + timestampStart: Scalars['Int'] +} + +export type WeeklyUniqueAddressInteraction_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + addresses?: InputMaybe> + addresses_contains?: InputMaybe> + addresses_contains_nocase?: InputMaybe> + addresses_not?: InputMaybe> + addresses_not_contains?: InputMaybe> + addresses_not_contains_nocase?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + or?: InputMaybe>> + timestampEnd?: InputMaybe + timestampEnd_gt?: InputMaybe + timestampEnd_gte?: InputMaybe + timestampEnd_in?: InputMaybe> + timestampEnd_lt?: InputMaybe + timestampEnd_lte?: InputMaybe + timestampEnd_not?: InputMaybe + timestampEnd_not_in?: InputMaybe> + timestampStart?: InputMaybe + timestampStart_gt?: InputMaybe + timestampStart_gte?: InputMaybe + timestampStart_in?: InputMaybe> + timestampStart_lt?: InputMaybe + timestampStart_lte?: InputMaybe + timestampStart_not?: InputMaybe + timestampStart_not_in?: InputMaybe> +} + +export enum WeeklyUniqueAddressInteraction_OrderBy { + Addresses = 'addresses', + Id = 'id', + TimestampEnd = 'timestampEnd', + TimestampStart = 'timestampStart', +} + +export type Withdrawal = { + __typename?: 'Withdrawal' + amount: Scalars['BigDecimal'] + id: Scalars['ID'] + liquidityMiningCampaign: LiquidityMiningCampaign + timestamp: Scalars['BigInt'] + user: Scalars['Bytes'] +} + +export type Withdrawal_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe + amount?: InputMaybe + amount_gt?: InputMaybe + amount_gte?: InputMaybe + amount_in?: InputMaybe> + amount_lt?: InputMaybe + amount_lte?: InputMaybe + amount_not?: InputMaybe + amount_not_in?: InputMaybe> + and?: InputMaybe>> + id?: InputMaybe + id_gt?: InputMaybe + id_gte?: InputMaybe + id_in?: InputMaybe> + id_lt?: InputMaybe + id_lte?: InputMaybe + id_not?: InputMaybe + id_not_in?: InputMaybe> + liquidityMiningCampaign?: InputMaybe + liquidityMiningCampaign_?: InputMaybe + liquidityMiningCampaign_contains?: InputMaybe + liquidityMiningCampaign_contains_nocase?: InputMaybe + liquidityMiningCampaign_ends_with?: InputMaybe + liquidityMiningCampaign_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_gt?: InputMaybe + liquidityMiningCampaign_gte?: InputMaybe + liquidityMiningCampaign_in?: InputMaybe> + liquidityMiningCampaign_lt?: InputMaybe + liquidityMiningCampaign_lte?: InputMaybe + liquidityMiningCampaign_not?: InputMaybe + liquidityMiningCampaign_not_contains?: InputMaybe + liquidityMiningCampaign_not_contains_nocase?: InputMaybe + liquidityMiningCampaign_not_ends_with?: InputMaybe + liquidityMiningCampaign_not_ends_with_nocase?: InputMaybe + liquidityMiningCampaign_not_in?: InputMaybe> + liquidityMiningCampaign_not_starts_with?: InputMaybe + liquidityMiningCampaign_not_starts_with_nocase?: InputMaybe + liquidityMiningCampaign_starts_with?: InputMaybe + liquidityMiningCampaign_starts_with_nocase?: InputMaybe + or?: InputMaybe>> + timestamp?: InputMaybe + timestamp_gt?: InputMaybe + timestamp_gte?: InputMaybe + timestamp_in?: InputMaybe> + timestamp_lt?: InputMaybe + timestamp_lte?: InputMaybe + timestamp_not?: InputMaybe + timestamp_not_in?: InputMaybe> + user?: InputMaybe + user_contains?: InputMaybe + user_gt?: InputMaybe + user_gte?: InputMaybe + user_in?: InputMaybe> + user_lt?: InputMaybe + user_lte?: InputMaybe + user_not?: InputMaybe + user_not_contains?: InputMaybe + user_not_in?: InputMaybe> +} + +export enum Withdrawal_OrderBy { + Amount = 'amount', + Id = 'id', + LiquidityMiningCampaign = 'liquidityMiningCampaign', + LiquidityMiningCampaignDuration = 'liquidityMiningCampaign__duration', + LiquidityMiningCampaignEndsAt = 'liquidityMiningCampaign__endsAt', + LiquidityMiningCampaignId = 'liquidityMiningCampaign__id', + LiquidityMiningCampaignInitialized = 'liquidityMiningCampaign__initialized', + LiquidityMiningCampaignLocked = 'liquidityMiningCampaign__locked', + LiquidityMiningCampaignOwner = 'liquidityMiningCampaign__owner', + LiquidityMiningCampaignStakedAmount = 'liquidityMiningCampaign__stakedAmount', + LiquidityMiningCampaignStakingCap = 'liquidityMiningCampaign__stakingCap', + LiquidityMiningCampaignStartsAt = 'liquidityMiningCampaign__startsAt', + Timestamp = 'timestamp', + User = 'user', +} + +export type _Block_ = { + __typename?: '_Block_' + /** The hash of the block */ + hash?: Maybe + /** The block number */ + number: Scalars['Int'] + /** The hash of the parent block */ + parentHash?: Maybe + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe +} + +/** The type for the top-level _meta field */ +export type _Meta_ = { + __typename?: '_Meta_' + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_ + /** The deployment ID */ + deployment: Scalars['String'] + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean'] +} + +export enum _SubgraphErrorPolicy_ { + /** Data will be returned even if the subgraph has indexing errors */ + Allow = 'allow', + /** If the subgraph has indexing errors, data will be omitted. The default. */ + Deny = 'deny', +} + +export type GetBundleQueryVariables = Exact<{ [key: string]: never }> + +export type GetBundleQuery = { + __typename?: 'Query' + bundle?: { __typename?: 'Bundle'; nativeCurrencyPrice: any } | null +} + +export type GetDerivedNativeCurrencyTokensQueryVariables = Exact<{ + tokenIds: Array | Scalars['ID'] +}> + +export type GetDerivedNativeCurrencyTokensQuery = { + __typename?: 'Query' + tokens: Array<{ __typename?: 'Token'; derivedNativeCurrency: any; address: string }> +} + +export type GetLiquidityMiningCampaignQueryVariables = Exact<{ + liquidityMiningCampaignId: Scalars['ID'] +}> + +export type GetLiquidityMiningCampaignQuery = { + __typename?: 'Query' + liquidityMiningCampaign?: { + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string + rewards: Array<{ + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + } | null +} + +export type GetLiquidityMiningCampaignsQueryVariables = Exact<{ + userId?: InputMaybe +}> + +export type GetLiquidityMiningCampaignsQuery = { + __typename?: 'Query' + liquidityMiningCampaigns: Array<{ + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string + rewards: Array<{ + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + stakablePair: { + __typename?: 'Pair' + id: string + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any + token0: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + token1: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + } + liquidityMiningPositions: Array<{ __typename?: 'LiquidityMiningPosition'; id: string }> + }> +} + +export type GetPairQueryVariables = Exact<{ + pairId: Scalars['ID'] +}> + +export type GetPairQuery = { + __typename?: 'Query' + pair?: { + __typename?: 'Pair' + id: string + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any + token0: { __typename?: 'Token'; derivedNativeCurrency: any } + token1: { __typename?: 'Token'; derivedNativeCurrency: any } + } | null +} + +export type GetPairLiquidityMiningCampaingsQueryVariables = Exact<{ + endsAtLowerLimit: Scalars['BigInt'] + pairId: Scalars['ID'] +}> + +export type GetPairLiquidityMiningCampaingsQuery = { + __typename?: 'Query' + pair?: { + __typename?: 'Pair' + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any + address: string + token0: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + token1: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + liquidityMiningCampaigns: Array<{ + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string + rewards: Array<{ + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + }> + } | null +} + +export type GetPairsQueryVariables = Exact<{ [key: string]: never }> + +export type GetPairsQuery = { + __typename?: 'Query' + pairs: Array<{ + __typename?: 'Pair' + reserve0: any + reserve1: any + token0: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + token1: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> +} + +export type GetSingleSidedStakingCampaignQueryVariables = Exact<{ + campaignId: Scalars['ID'] +}> + +export type GetSingleSidedStakingCampaignQuery = { + __typename?: 'Query' + singleSidedStakingCampaign?: { + __typename?: 'SingleSidedStakingCampaign' + id: string + owner: any + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + stakeToken: { + __typename?: 'Token' + id: string + symbol: string + name: string + decimals: any + totalSupply: any + derivedNativeCurrency: any + } + rewards: Array<{ + __typename?: 'SingleSidedStakingCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + } | null +} + +export type GetSingleSidedStakingCampaignsQueryVariables = Exact<{ + stakeTokenId?: InputMaybe + userId?: InputMaybe +}> + +export type GetSingleSidedStakingCampaignsQuery = { + __typename?: 'Query' + singleSidedStakingCampaigns: Array<{ + __typename?: 'SingleSidedStakingCampaign' + id: string + owner: any + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + stakeToken: { + __typename?: 'Token' + id: string + symbol: string + name: string + decimals: any + totalSupply: any + derivedNativeCurrency: any + } + rewards: Array<{ + __typename?: 'SingleSidedStakingCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + singleSidedStakingPositions: Array<{ + __typename?: 'SingleSidedStakingCampaignPosition' + id: string + stakedAmount: any + }> + }> +} + +export type GetStakingCampaignsQueryVariables = Exact<{ + userId?: InputMaybe +}> + +export type GetStakingCampaignsQuery = { + __typename?: 'Query' + singleSidedStakingCampaigns: Array<{ + __typename?: 'SingleSidedStakingCampaign' + id: string + owner: any + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + stakeToken: { + __typename?: 'Token' + id: string + symbol: string + name: string + decimals: any + totalSupply: any + derivedNativeCurrency: any + } + rewards: Array<{ + __typename?: 'SingleSidedStakingCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + singleSidedStakingPositions: Array<{ __typename?: 'SingleSidedStakingCampaignPosition'; id: string }> + }> +} + +export type GetTokenQueryVariables = Exact<{ + tokenId: Scalars['ID'] +}> + +export type GetTokenQuery = { + __typename?: 'Query' + token?: { __typename?: 'Token'; derivedNativeCurrency: any } | null +} + +export type GetUserLiquidityPositionsQueryVariables = Exact<{ + userId?: InputMaybe + endsAtLowerLimit: Scalars['BigInt'] +}> + +export type GetUserLiquidityPositionsQuery = { + __typename?: 'Query' + liquidityPositions: Array<{ + __typename?: 'LiquidityPosition' + pair: { + __typename?: 'Pair' + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any + address: string + token0: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + token1: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + liquidityMiningCampaigns: Array<{ + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string + rewards: Array<{ + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + liquidityMiningPositions: Array<{ __typename?: 'LiquidityMiningPosition'; id: string }> + }> + } + }> + liquidityMiningPositions: Array<{ + __typename?: 'LiquidityMiningPosition' + pair: { + __typename?: 'Pair' + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any + address: string + token0: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + token1: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + liquidityMiningCampaigns: Array<{ + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string + rewards: Array<{ + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } + }> + liquidityMiningPositions: Array<{ __typename?: 'LiquidityMiningPosition'; id: string }> + }> + } + }> +} + +export type LiquidityMiningCampaignFragmentFragment = { + __typename?: 'LiquidityMiningCampaign' + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any + address: string +} + +export type LiquidityMiningCampaignRewardFragmentFragment = { + __typename?: 'LiquidityMiningCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } +} + +export type PairFragmentFragment = { + __typename?: 'Pair' + reserveNativeCurrency: any + reserveUSD: any + totalSupply: any + reserve0: any + reserve1: any +} + +export type ReservePartFragment = { __typename?: 'Pair'; reserve0: any; reserve1: any } + +export type SingleSidedStakingCampaignFragmentFragment = { + __typename?: 'SingleSidedStakingCampaign' + id: string + owner: any + duration: any + startsAt: any + endsAt: any + locked: boolean + stakingCap: any + stakedAmount: any +} + +export type SingleSidedStakingCampaignRewardFragmentFragment = { + __typename?: 'SingleSidedStakingCampaignReward' + amount: any + token: { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string + } +} + +export type StakeTokenFragmentFragment = { + __typename?: 'Token' + id: string + symbol: string + name: string + decimals: any + totalSupply: any + derivedNativeCurrency: any +} + +export type TokenFragmentFragment = { + __typename?: 'Token' + name: string + symbol: string + decimals: any + derivedNativeCurrency: any + address: string +} + +export const LiquidityMiningCampaignFragmentFragmentDoc = gql` + fragment LiquidityMiningCampaignFragment on LiquidityMiningCampaign { + address: id + duration + startsAt + endsAt + locked + stakingCap + stakedAmount + } +` +export const LiquidityMiningCampaignRewardFragmentFragmentDoc = gql` + fragment LiquidityMiningCampaignRewardFragment on LiquidityMiningCampaignReward { + token { + address: id + name + symbol + decimals + derivedNativeCurrency + } + amount + } +` +export const ReservePartFragmentDoc = gql` + fragment ReservePart on Pair { + reserve0 + reserve1 + } +` +export const PairFragmentFragmentDoc = gql` + fragment PairFragment on Pair { + ...ReservePart + reserveNativeCurrency + reserveUSD + totalSupply + } + ${ReservePartFragmentDoc} +` +export const SingleSidedStakingCampaignFragmentFragmentDoc = gql` + fragment SingleSidedStakingCampaignFragment on SingleSidedStakingCampaign { + id + owner + duration + startsAt + endsAt + locked + stakingCap + stakedAmount + } +` +export const SingleSidedStakingCampaignRewardFragmentFragmentDoc = gql` + fragment SingleSidedStakingCampaignRewardFragment on SingleSidedStakingCampaignReward { + token { + address: id + name + symbol + decimals + derivedNativeCurrency + } + amount + } +` +export const StakeTokenFragmentFragmentDoc = gql` + fragment StakeTokenFragment on Token { + id + symbol + name + decimals + totalSupply + derivedNativeCurrency + } +` +export const TokenFragmentFragmentDoc = gql` + fragment TokenFragment on Token { + address: id + name + symbol + decimals + derivedNativeCurrency + } +` +export const GetBundleDocument = gql` + query getBundle { + bundle(id: "1") { + nativeCurrencyPrice + } + } +` + +/** + * __useGetBundleQuery__ + * + * To run a query within a React component, call `useGetBundleQuery` and pass it any options that fit your needs. + * When your component renders, `useGetBundleQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetBundleQuery({ + * variables: { + * }, + * }); + */ +export function useGetBundleQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery(GetBundleDocument, options) +} +export function useGetBundleLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery(GetBundleDocument, options) +} +export type GetBundleQueryHookResult = ReturnType +export type GetBundleLazyQueryHookResult = ReturnType +export type GetBundleQueryResult = Apollo.QueryResult +export const GetDerivedNativeCurrencyTokensDocument = gql` + query getDerivedNativeCurrencyTokens($tokenIds: [ID!]!) { + tokens(where: { id_in: $tokenIds }) { + address: id + derivedNativeCurrency + } + } +` + +/** + * __useGetDerivedNativeCurrencyTokensQuery__ + * + * To run a query within a React component, call `useGetDerivedNativeCurrencyTokensQuery` and pass it any options that fit your needs. + * When your component renders, `useGetDerivedNativeCurrencyTokensQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetDerivedNativeCurrencyTokensQuery({ + * variables: { + * tokenIds: // value for 'tokenIds' + * }, + * }); + */ +export function useGetDerivedNativeCurrencyTokensQuery( + baseOptions: Apollo.QueryHookOptions< + GetDerivedNativeCurrencyTokensQuery, + GetDerivedNativeCurrencyTokensQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetDerivedNativeCurrencyTokensDocument, + options + ) +} +export function useGetDerivedNativeCurrencyTokensLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDerivedNativeCurrencyTokensQuery, + GetDerivedNativeCurrencyTokensQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetDerivedNativeCurrencyTokensDocument, + options + ) +} +export type GetDerivedNativeCurrencyTokensQueryHookResult = ReturnType +export type GetDerivedNativeCurrencyTokensLazyQueryHookResult = ReturnType< + typeof useGetDerivedNativeCurrencyTokensLazyQuery +> +export type GetDerivedNativeCurrencyTokensQueryResult = Apollo.QueryResult< + GetDerivedNativeCurrencyTokensQuery, + GetDerivedNativeCurrencyTokensQueryVariables +> +export const GetLiquidityMiningCampaignDocument = gql` + query getLiquidityMiningCampaign($liquidityMiningCampaignId: ID!) { + liquidityMiningCampaign(id: $liquidityMiningCampaignId) { + ...LiquidityMiningCampaignFragment + rewards { + ...LiquidityMiningCampaignRewardFragment + } + } + } + ${LiquidityMiningCampaignFragmentFragmentDoc} + ${LiquidityMiningCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetLiquidityMiningCampaignQuery__ + * + * To run a query within a React component, call `useGetLiquidityMiningCampaignQuery` and pass it any options that fit your needs. + * When your component renders, `useGetLiquidityMiningCampaignQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetLiquidityMiningCampaignQuery({ + * variables: { + * liquidityMiningCampaignId: // value for 'liquidityMiningCampaignId' + * }, + * }); + */ +export function useGetLiquidityMiningCampaignQuery( + baseOptions: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetLiquidityMiningCampaignDocument, + options + ) +} +export function useGetLiquidityMiningCampaignLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetLiquidityMiningCampaignDocument, + options + ) +} +export type GetLiquidityMiningCampaignQueryHookResult = ReturnType +export type GetLiquidityMiningCampaignLazyQueryHookResult = ReturnType +export type GetLiquidityMiningCampaignQueryResult = Apollo.QueryResult< + GetLiquidityMiningCampaignQuery, + GetLiquidityMiningCampaignQueryVariables +> +export const GetLiquidityMiningCampaignsDocument = gql` + query getLiquidityMiningCampaigns($userId: String) { + liquidityMiningCampaigns(first: 999) { + ...LiquidityMiningCampaignFragment + rewards { + ...LiquidityMiningCampaignRewardFragment + } + stakablePair { + id + ...PairFragment + token0 { + ...TokenFragment + } + token1 { + ...TokenFragment + } + } + liquidityMiningPositions(where: { stakedAmount_gt: 0, user: $userId }) { + id + } + } + } + ${LiquidityMiningCampaignFragmentFragmentDoc} + ${LiquidityMiningCampaignRewardFragmentFragmentDoc} + ${PairFragmentFragmentDoc} + ${TokenFragmentFragmentDoc} +` + +/** + * __useGetLiquidityMiningCampaignsQuery__ + * + * To run a query within a React component, call `useGetLiquidityMiningCampaignsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetLiquidityMiningCampaignsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetLiquidityMiningCampaignsQuery({ + * variables: { + * userId: // value for 'userId' + * }, + * }); + */ +export function useGetLiquidityMiningCampaignsQuery( + baseOptions?: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetLiquidityMiningCampaignsDocument, + options + ) +} +export function useGetLiquidityMiningCampaignsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetLiquidityMiningCampaignsDocument, + options + ) +} +export type GetLiquidityMiningCampaignsQueryHookResult = ReturnType +export type GetLiquidityMiningCampaignsLazyQueryHookResult = ReturnType +export type GetLiquidityMiningCampaignsQueryResult = Apollo.QueryResult< + GetLiquidityMiningCampaignsQuery, + GetLiquidityMiningCampaignsQueryVariables +> +export const GetPairDocument = gql` + query getPair($pairId: ID!) { + pair(id: $pairId) { + id + ...PairFragment + token0 { + derivedNativeCurrency + } + token1 { + derivedNativeCurrency + } + } + } + ${PairFragmentFragmentDoc} +` + +/** + * __useGetPairQuery__ + * + * To run a query within a React component, call `useGetPairQuery` and pass it any options that fit your needs. + * When your component renders, `useGetPairQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetPairQuery({ + * variables: { + * pairId: // value for 'pairId' + * }, + * }); + */ +export function useGetPairQuery(baseOptions: Apollo.QueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery(GetPairDocument, options) +} +export function useGetPairLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery(GetPairDocument, options) +} +export type GetPairQueryHookResult = ReturnType +export type GetPairLazyQueryHookResult = ReturnType +export type GetPairQueryResult = Apollo.QueryResult +export const GetPairLiquidityMiningCampaingsDocument = gql` + query getPairLiquidityMiningCampaings($endsAtLowerLimit: BigInt!, $pairId: ID!) { + pair(id: $pairId) { + address: id + ...PairFragment + token0 { + ...TokenFragment + } + token1 { + ...TokenFragment + } + liquidityMiningCampaigns(where: { endsAt_gt: $endsAtLowerLimit }) { + ...LiquidityMiningCampaignFragment + rewards { + ...LiquidityMiningCampaignRewardFragment + } + } + } + } + ${PairFragmentFragmentDoc} + ${TokenFragmentFragmentDoc} + ${LiquidityMiningCampaignFragmentFragmentDoc} + ${LiquidityMiningCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetPairLiquidityMiningCampaingsQuery__ + * + * To run a query within a React component, call `useGetPairLiquidityMiningCampaingsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetPairLiquidityMiningCampaingsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetPairLiquidityMiningCampaingsQuery({ + * variables: { + * endsAtLowerLimit: // value for 'endsAtLowerLimit' + * pairId: // value for 'pairId' + * }, + * }); + */ +export function useGetPairLiquidityMiningCampaingsQuery( + baseOptions: Apollo.QueryHookOptions< + GetPairLiquidityMiningCampaingsQuery, + GetPairLiquidityMiningCampaingsQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetPairLiquidityMiningCampaingsDocument, + options + ) +} +export function useGetPairLiquidityMiningCampaingsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetPairLiquidityMiningCampaingsQuery, + GetPairLiquidityMiningCampaingsQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetPairLiquidityMiningCampaingsDocument, + options + ) +} +export type GetPairLiquidityMiningCampaingsQueryHookResult = ReturnType +export type GetPairLiquidityMiningCampaingsLazyQueryHookResult = ReturnType< + typeof useGetPairLiquidityMiningCampaingsLazyQuery +> +export type GetPairLiquidityMiningCampaingsQueryResult = Apollo.QueryResult< + GetPairLiquidityMiningCampaingsQuery, + GetPairLiquidityMiningCampaingsQueryVariables +> +export const GetPairsDocument = gql` + query getPairs { + pairs(first: 1000) { + ...ReservePart + token0 { + ...TokenFragment + } + token1 { + ...TokenFragment + } + } + } + ${ReservePartFragmentDoc} + ${TokenFragmentFragmentDoc} +` + +/** + * __useGetPairsQuery__ + * + * To run a query within a React component, call `useGetPairsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetPairsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetPairsQuery({ + * variables: { + * }, + * }); + */ +export function useGetPairsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery(GetPairsDocument, options) +} +export function useGetPairsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery(GetPairsDocument, options) +} +export type GetPairsQueryHookResult = ReturnType +export type GetPairsLazyQueryHookResult = ReturnType +export type GetPairsQueryResult = Apollo.QueryResult +export const GetSingleSidedStakingCampaignDocument = gql` + query getSingleSidedStakingCampaign($campaignId: ID!) { + singleSidedStakingCampaign(id: $campaignId) { + ...SingleSidedStakingCampaignFragment + stakeToken { + ...StakeTokenFragment + } + rewards { + ...SingleSidedStakingCampaignRewardFragment + } + } + } + ${SingleSidedStakingCampaignFragmentFragmentDoc} + ${StakeTokenFragmentFragmentDoc} + ${SingleSidedStakingCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetSingleSidedStakingCampaignQuery__ + * + * To run a query within a React component, call `useGetSingleSidedStakingCampaignQuery` and pass it any options that fit your needs. + * When your component renders, `useGetSingleSidedStakingCampaignQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetSingleSidedStakingCampaignQuery({ + * variables: { + * campaignId: // value for 'campaignId' + * }, + * }); + */ +export function useGetSingleSidedStakingCampaignQuery( + baseOptions: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetSingleSidedStakingCampaignDocument, + options + ) +} +export function useGetSingleSidedStakingCampaignLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetSingleSidedStakingCampaignQuery, + GetSingleSidedStakingCampaignQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetSingleSidedStakingCampaignDocument, + options + ) +} +export type GetSingleSidedStakingCampaignQueryHookResult = ReturnType +export type GetSingleSidedStakingCampaignLazyQueryHookResult = ReturnType< + typeof useGetSingleSidedStakingCampaignLazyQuery +> +export type GetSingleSidedStakingCampaignQueryResult = Apollo.QueryResult< + GetSingleSidedStakingCampaignQuery, + GetSingleSidedStakingCampaignQueryVariables +> +export const GetSingleSidedStakingCampaignsDocument = gql` + query getSingleSidedStakingCampaigns($stakeTokenId: String, $userId: String) { + singleSidedStakingCampaigns(first: 100, orderBy: endsAt, where: { stakeToken: $stakeTokenId }) { + ...SingleSidedStakingCampaignFragment + stakeToken { + ...StakeTokenFragment + } + rewards { + ...SingleSidedStakingCampaignRewardFragment + } + singleSidedStakingPositions(where: { stakedAmount_gt: 0, user: $userId }) { + id + stakedAmount + } + } + } + ${SingleSidedStakingCampaignFragmentFragmentDoc} + ${StakeTokenFragmentFragmentDoc} + ${SingleSidedStakingCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetSingleSidedStakingCampaignsQuery__ + * + * To run a query within a React component, call `useGetSingleSidedStakingCampaignsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetSingleSidedStakingCampaignsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetSingleSidedStakingCampaignsQuery({ + * variables: { + * stakeTokenId: // value for 'stakeTokenId' + * userId: // value for 'userId' + * }, + * }); + */ +export function useGetSingleSidedStakingCampaignsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetSingleSidedStakingCampaignsQuery, + GetSingleSidedStakingCampaignsQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetSingleSidedStakingCampaignsDocument, + options + ) +} +export function useGetSingleSidedStakingCampaignsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetSingleSidedStakingCampaignsQuery, + GetSingleSidedStakingCampaignsQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetSingleSidedStakingCampaignsDocument, + options + ) +} +export type GetSingleSidedStakingCampaignsQueryHookResult = ReturnType +export type GetSingleSidedStakingCampaignsLazyQueryHookResult = ReturnType< + typeof useGetSingleSidedStakingCampaignsLazyQuery +> +export type GetSingleSidedStakingCampaignsQueryResult = Apollo.QueryResult< + GetSingleSidedStakingCampaignsQuery, + GetSingleSidedStakingCampaignsQueryVariables +> +export const GetStakingCampaignsDocument = gql` + query getStakingCampaigns($userId: String) { + singleSidedStakingCampaigns(first: 999) { + ...SingleSidedStakingCampaignFragment + stakeToken { + ...StakeTokenFragment + } + rewards { + ...SingleSidedStakingCampaignRewardFragment + } + singleSidedStakingPositions(where: { stakedAmount_gt: 0, user: $userId }) { + id + } + } + } + ${SingleSidedStakingCampaignFragmentFragmentDoc} + ${StakeTokenFragmentFragmentDoc} + ${SingleSidedStakingCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetStakingCampaignsQuery__ + * + * To run a query within a React component, call `useGetStakingCampaignsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetStakingCampaignsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetStakingCampaignsQuery({ + * variables: { + * userId: // value for 'userId' + * }, + * }); + */ +export function useGetStakingCampaignsQuery( + baseOptions?: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetStakingCampaignsDocument, + options + ) +} +export function useGetStakingCampaignsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetStakingCampaignsDocument, + options + ) +} +export type GetStakingCampaignsQueryHookResult = ReturnType +export type GetStakingCampaignsLazyQueryHookResult = ReturnType +export type GetStakingCampaignsQueryResult = Apollo.QueryResult< + GetStakingCampaignsQuery, + GetStakingCampaignsQueryVariables +> +export const GetTokenDocument = gql` + query getToken($tokenId: ID!) { + token(id: $tokenId) { + derivedNativeCurrency + } + } +` + +/** + * __useGetTokenQuery__ + * + * To run a query within a React component, call `useGetTokenQuery` and pass it any options that fit your needs. + * When your component renders, `useGetTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetTokenQuery({ + * variables: { + * tokenId: // value for 'tokenId' + * }, + * }); + */ +export function useGetTokenQuery(baseOptions: Apollo.QueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery(GetTokenDocument, options) +} +export function useGetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery(GetTokenDocument, options) +} +export type GetTokenQueryHookResult = ReturnType +export type GetTokenLazyQueryHookResult = ReturnType +export type GetTokenQueryResult = Apollo.QueryResult +export const GetUserLiquidityPositionsDocument = gql` + query getUserLiquidityPositions($userId: String, $endsAtLowerLimit: BigInt!) { + liquidityPositions(where: { user: $userId, liquidityTokenBalance_gt: 0 }) { + pair { + address: id + ...PairFragment + token0 { + ...TokenFragment + } + token1 { + ...TokenFragment + } + liquidityMiningCampaigns(where: { endsAt_gt: $endsAtLowerLimit }) { + ...LiquidityMiningCampaignFragment + rewards { + ...LiquidityMiningCampaignRewardFragment + } + liquidityMiningPositions(where: { stakedAmount_gt: 0, user: $userId }) { + id + } + } + } + } + liquidityMiningPositions(where: { user: $userId, stakedAmount_gt: 0 }) { + pair: targetedPair { + address: id + ...PairFragment + token0 { + ...TokenFragment + } + token1 { + ...TokenFragment + } + liquidityMiningCampaigns(where: { endsAt_gt: $endsAtLowerLimit }) { + ...LiquidityMiningCampaignFragment + rewards { + ...LiquidityMiningCampaignRewardFragment + } + liquidityMiningPositions(where: { stakedAmount_gt: 0, user: $userId }) { + id + } + } + } + } + } + ${PairFragmentFragmentDoc} + ${TokenFragmentFragmentDoc} + ${LiquidityMiningCampaignFragmentFragmentDoc} + ${LiquidityMiningCampaignRewardFragmentFragmentDoc} +` + +/** + * __useGetUserLiquidityPositionsQuery__ + * + * To run a query within a React component, call `useGetUserLiquidityPositionsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetUserLiquidityPositionsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetUserLiquidityPositionsQuery({ + * variables: { + * userId: // value for 'userId' + * endsAtLowerLimit: // value for 'endsAtLowerLimit' + * }, + * }); + */ +export function useGetUserLiquidityPositionsQuery( + baseOptions: Apollo.QueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useQuery( + GetUserLiquidityPositionsDocument, + options + ) +} +export function useGetUserLiquidityPositionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions +) { + const options = { ...defaultOptions, ...baseOptions } + return Apollo.useLazyQuery( + GetUserLiquidityPositionsDocument, + options + ) +} +export type GetUserLiquidityPositionsQueryHookResult = ReturnType +export type GetUserLiquidityPositionsLazyQueryHookResult = ReturnType +export type GetUserLiquidityPositionsQueryResult = Apollo.QueryResult< + GetUserLiquidityPositionsQuery, + GetUserLiquidityPositionsQueryVariables +> diff --git a/src/services/EcoBridge/Socket/api/generated/.openapi-generator-ignore b/src/services/EcoBridge/Socket/api/generated/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/src/services/EcoBridge/Socket/api/generated/.openapi-generator/FILES b/src/services/EcoBridge/Socket/api/generated/.openapi-generator/FILES new file mode 100644 index 000000000..01c36f3d8 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/.openapi-generator/FILES @@ -0,0 +1,51 @@ +apis/ApprovalsApi.ts +apis/BalancesApi.ts +apis/QuoteApi.ts +apis/RoutesApi.ts +apis/ServerApi.ts +apis/SupportedApi.ts +apis/TokenListsApi.ts +apis/index.ts +index.ts +models/ActiveRouteResponse.ts +models/ActiveRoutesOutputDTO.ts +models/ApprovalData.ts +models/ApprovalOutputDTO.ts +models/ApprovalOutputDTOResult.ts +models/ApprovalTxOutputDTO.ts +models/ApprovalTxOutputDTOResult.ts +models/Balance.ts +models/BalanceResult.ts +models/BridgeDetails.ts +models/BridgeStatusResponse.ts +models/BridgeStatusResponseDTO.ts +models/BridgeSwapInputDTO.ts +models/ChainDetails.ts +models/DexSwapInputDTO.ts +models/GasPriceResponseDTO.ts +models/GasPriceResponseDTOResult.ts +models/GasPriceResponseDTOResultFast.ts +models/GasTokenDetails.ts +models/HealthResponseDTO.ts +models/NextTxOutputDTO.ts +models/NextTxResponse.ts +models/QuoteOutputDTO.ts +models/QuoteOutputDTOResult.ts +models/Route.ts +models/RouteStatusOutputDTO.ts +models/SingleTxDTO.ts +models/SingleTxOutputDTO.ts +models/SingleTxResponse.ts +models/StartActiveRouteInputDTO.ts +models/StartActiveRouteResponseDTO.ts +models/SupportedBridgesOutputDTO.ts +models/SupportedChainsOutputDTO.ts +models/TokenAsset.ts +models/TokenBalanceReponseDTO.ts +models/TokenBalanceReponseDTOResult.ts +models/TokenListOutputDTO.ts +models/TokenPriceResponseDTO.ts +models/TokenPriceResponseDTOResult.ts +models/TransactionReceiptResponseDTO.ts +models/index.ts +runtime.ts diff --git a/src/services/EcoBridge/Socket/api/generated/.openapi-generator/VERSION b/src/services/EcoBridge/Socket/api/generated/.openapi-generator/VERSION new file mode 100644 index 000000000..1e20ec35c --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.4.0 \ No newline at end of file diff --git a/src/services/EcoBridge/Socket/api/generated/apis/ApprovalsApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/ApprovalsApi.ts new file mode 100644 index 000000000..90d17aaa8 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/ApprovalsApi.ts @@ -0,0 +1,218 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { + ApprovalOutputDTO, + ApprovalOutputDTOFromJSON, + ApprovalOutputDTOToJSON, + ApprovalTxOutputDTO, + ApprovalTxOutputDTOFromJSON, + ApprovalTxOutputDTOToJSON, +} from '../models' + +export interface ApproveControllerFetchApprovalsRequest { + chainID: string + owner: string + allowanceTarget: string + tokenAddress: string + aPIKEY?: string +} + +export interface ApproveControllerFetchApprovalsCalldataRequest { + chainID: string + owner: string + allowanceTarget: string + tokenAddress: string + amount: string + aPIKEY?: string +} + +/** + * + */ +export class ApprovalsApi extends runtime.BaseAPI { + /** + */ + async approveControllerFetchApprovalsRaw( + requestParameters: ApproveControllerFetchApprovalsRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.chainID === null || requestParameters.chainID === undefined) { + throw new runtime.RequiredError( + 'chainID', + 'Required parameter requestParameters.chainID was null or undefined when calling approveControllerFetchApprovals.' + ) + } + + if (requestParameters.owner === null || requestParameters.owner === undefined) { + throw new runtime.RequiredError( + 'owner', + 'Required parameter requestParameters.owner was null or undefined when calling approveControllerFetchApprovals.' + ) + } + + if (requestParameters.allowanceTarget === null || requestParameters.allowanceTarget === undefined) { + throw new runtime.RequiredError( + 'allowanceTarget', + 'Required parameter requestParameters.allowanceTarget was null or undefined when calling approveControllerFetchApprovals.' + ) + } + + if (requestParameters.tokenAddress === null || requestParameters.tokenAddress === undefined) { + throw new runtime.RequiredError( + 'tokenAddress', + 'Required parameter requestParameters.tokenAddress was null or undefined when calling approveControllerFetchApprovals.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.chainID !== undefined) { + queryParameters['chainID'] = requestParameters.chainID + } + + if (requestParameters.owner !== undefined) { + queryParameters['owner'] = requestParameters.owner + } + + if (requestParameters.allowanceTarget !== undefined) { + queryParameters['allowanceTarget'] = requestParameters.allowanceTarget + } + + if (requestParameters.tokenAddress !== undefined) { + queryParameters['tokenAddress'] = requestParameters.tokenAddress + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/approval/check-allowance`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => ApprovalOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async approveControllerFetchApprovals( + requestParameters: ApproveControllerFetchApprovalsRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.approveControllerFetchApprovalsRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async approveControllerFetchApprovalsCalldataRaw( + requestParameters: ApproveControllerFetchApprovalsCalldataRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.chainID === null || requestParameters.chainID === undefined) { + throw new runtime.RequiredError( + 'chainID', + 'Required parameter requestParameters.chainID was null or undefined when calling approveControllerFetchApprovalsCalldata.' + ) + } + + if (requestParameters.owner === null || requestParameters.owner === undefined) { + throw new runtime.RequiredError( + 'owner', + 'Required parameter requestParameters.owner was null or undefined when calling approveControllerFetchApprovalsCalldata.' + ) + } + + if (requestParameters.allowanceTarget === null || requestParameters.allowanceTarget === undefined) { + throw new runtime.RequiredError( + 'allowanceTarget', + 'Required parameter requestParameters.allowanceTarget was null or undefined when calling approveControllerFetchApprovalsCalldata.' + ) + } + + if (requestParameters.tokenAddress === null || requestParameters.tokenAddress === undefined) { + throw new runtime.RequiredError( + 'tokenAddress', + 'Required parameter requestParameters.tokenAddress was null or undefined when calling approveControllerFetchApprovalsCalldata.' + ) + } + + if (requestParameters.amount === null || requestParameters.amount === undefined) { + throw new runtime.RequiredError( + 'amount', + 'Required parameter requestParameters.amount was null or undefined when calling approveControllerFetchApprovalsCalldata.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.chainID !== undefined) { + queryParameters['chainID'] = requestParameters.chainID + } + + if (requestParameters.owner !== undefined) { + queryParameters['owner'] = requestParameters.owner + } + + if (requestParameters.allowanceTarget !== undefined) { + queryParameters['allowanceTarget'] = requestParameters.allowanceTarget + } + + if (requestParameters.tokenAddress !== undefined) { + queryParameters['tokenAddress'] = requestParameters.tokenAddress + } + + if (requestParameters.amount !== undefined) { + queryParameters['amount'] = requestParameters.amount + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/approval/build-tx`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => ApprovalTxOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async approveControllerFetchApprovalsCalldata( + requestParameters: ApproveControllerFetchApprovalsCalldataRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.approveControllerFetchApprovalsCalldataRaw(requestParameters, initOverrides) + return await response.value() + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/BalancesApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/BalancesApi.ts new file mode 100644 index 000000000..c311644ce --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/BalancesApi.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { + Balance, + BalanceFromJSON, + BalanceToJSON, + TokenBalanceReponseDTO, + TokenBalanceReponseDTOFromJSON, + TokenBalanceReponseDTOToJSON, +} from '../models' + +export interface BalancesControllerGetBalanceRequest { + tokenAddress: string + chainId: string + userAddress: string +} + +export interface BalancesControllerGetBalancesRequest { + userAddress: string + aPIKEY?: string +} + +/** + * + */ +export class BalancesApi extends runtime.BaseAPI { + /** + */ + async balancesControllerGetBalanceRaw( + requestParameters: BalancesControllerGetBalanceRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.tokenAddress === null || requestParameters.tokenAddress === undefined) { + throw new runtime.RequiredError( + 'tokenAddress', + 'Required parameter requestParameters.tokenAddress was null or undefined when calling balancesControllerGetBalance.' + ) + } + + if (requestParameters.chainId === null || requestParameters.chainId === undefined) { + throw new runtime.RequiredError( + 'chainId', + 'Required parameter requestParameters.chainId was null or undefined when calling balancesControllerGetBalance.' + ) + } + + if (requestParameters.userAddress === null || requestParameters.userAddress === undefined) { + throw new runtime.RequiredError( + 'userAddress', + 'Required parameter requestParameters.userAddress was null or undefined when calling balancesControllerGetBalance.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.tokenAddress !== undefined) { + queryParameters['tokenAddress'] = requestParameters.tokenAddress + } + + if (requestParameters.chainId !== undefined) { + queryParameters['chainId'] = requestParameters.chainId + } + + if (requestParameters.userAddress !== undefined) { + queryParameters['userAddress'] = requestParameters.userAddress + } + + const headerParameters: runtime.HTTPHeaders = {} + + const response = await this.request( + { + path: `/v2/balances/token-balance`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => TokenBalanceReponseDTOFromJSON(jsonValue)) + } + + /** + */ + async balancesControllerGetBalance( + requestParameters: BalancesControllerGetBalanceRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.balancesControllerGetBalanceRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async balancesControllerGetBalancesRaw( + requestParameters: BalancesControllerGetBalancesRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.userAddress === null || requestParameters.userAddress === undefined) { + throw new runtime.RequiredError( + 'userAddress', + 'Required parameter requestParameters.userAddress was null or undefined when calling balancesControllerGetBalances.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.userAddress !== undefined) { + queryParameters['userAddress'] = requestParameters.userAddress + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/balances`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => BalanceFromJSON(jsonValue)) + } + + /** + */ + async balancesControllerGetBalances( + requestParameters: BalancesControllerGetBalancesRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.balancesControllerGetBalancesRaw(requestParameters, initOverrides) + return await response.value() + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/QuoteApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/QuoteApi.ts new file mode 100644 index 000000000..68b945870 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/QuoteApi.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { QuoteOutputDTO, QuoteOutputDTOFromJSON, QuoteOutputDTOToJSON } from '../models' + +export interface QuoteControllerGetQuoteRequest { + fromChainId: string + fromTokenAddress: string + toChainId: string + toTokenAddress: string + fromAmount: string + userAddress: string + uniqueRoutesPerBridge: boolean + sort: QuoteControllerGetQuoteSortEnum + disableSwapping?: boolean + includeDexes?: QuoteControllerGetQuoteIncludeDexesEnum + excludeDexes?: QuoteControllerGetQuoteExcludeDexesEnum + includeBridges?: Array + excludeBridges?: Array + maxUserTxs?: string + singleTxOnly?: boolean + aPIKEY?: string +} + +/** + * + */ +export class QuoteApi extends runtime.BaseAPI { + /** + */ + async quoteControllerGetQuoteRaw( + requestParameters: QuoteControllerGetQuoteRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.fromChainId === null || requestParameters.fromChainId === undefined) { + throw new runtime.RequiredError( + 'fromChainId', + 'Required parameter requestParameters.fromChainId was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.fromTokenAddress === null || requestParameters.fromTokenAddress === undefined) { + throw new runtime.RequiredError( + 'fromTokenAddress', + 'Required parameter requestParameters.fromTokenAddress was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.toChainId === null || requestParameters.toChainId === undefined) { + throw new runtime.RequiredError( + 'toChainId', + 'Required parameter requestParameters.toChainId was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.toTokenAddress === null || requestParameters.toTokenAddress === undefined) { + throw new runtime.RequiredError( + 'toTokenAddress', + 'Required parameter requestParameters.toTokenAddress was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.fromAmount === null || requestParameters.fromAmount === undefined) { + throw new runtime.RequiredError( + 'fromAmount', + 'Required parameter requestParameters.fromAmount was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.userAddress === null || requestParameters.userAddress === undefined) { + throw new runtime.RequiredError( + 'userAddress', + 'Required parameter requestParameters.userAddress was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.uniqueRoutesPerBridge === null || requestParameters.uniqueRoutesPerBridge === undefined) { + throw new runtime.RequiredError( + 'uniqueRoutesPerBridge', + 'Required parameter requestParameters.uniqueRoutesPerBridge was null or undefined when calling quoteControllerGetQuote.' + ) + } + + if (requestParameters.sort === null || requestParameters.sort === undefined) { + throw new runtime.RequiredError( + 'sort', + 'Required parameter requestParameters.sort was null or undefined when calling quoteControllerGetQuote.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.fromChainId !== undefined) { + queryParameters['fromChainId'] = requestParameters.fromChainId + } + + if (requestParameters.fromTokenAddress !== undefined) { + queryParameters['fromTokenAddress'] = requestParameters.fromTokenAddress + } + + if (requestParameters.toChainId !== undefined) { + queryParameters['toChainId'] = requestParameters.toChainId + } + + if (requestParameters.toTokenAddress !== undefined) { + queryParameters['toTokenAddress'] = requestParameters.toTokenAddress + } + + if (requestParameters.fromAmount !== undefined) { + queryParameters['fromAmount'] = requestParameters.fromAmount + } + + if (requestParameters.userAddress !== undefined) { + queryParameters['userAddress'] = requestParameters.userAddress + } + + if (requestParameters.uniqueRoutesPerBridge !== undefined) { + queryParameters['uniqueRoutesPerBridge'] = requestParameters.uniqueRoutesPerBridge + } + + if (requestParameters.disableSwapping !== undefined) { + queryParameters['disableSwapping'] = requestParameters.disableSwapping + } + + if (requestParameters.includeDexes !== undefined) { + queryParameters['includeDexes'] = requestParameters.includeDexes + } + + if (requestParameters.excludeDexes !== undefined) { + queryParameters['excludeDexes'] = requestParameters.excludeDexes + } + + if (requestParameters.includeBridges) { + queryParameters['includeBridges'] = requestParameters.includeBridges + } + + if (requestParameters.excludeBridges) { + queryParameters['excludeBridges'] = requestParameters.excludeBridges + } + + if (requestParameters.sort !== undefined) { + queryParameters['sort'] = requestParameters.sort + } + + if (requestParameters.maxUserTxs !== undefined) { + queryParameters['maxUserTxs'] = requestParameters.maxUserTxs + } + + if (requestParameters.singleTxOnly !== undefined) { + queryParameters['singleTxOnly'] = requestParameters.singleTxOnly + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/quote`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => QuoteOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async quoteControllerGetQuote( + requestParameters: QuoteControllerGetQuoteRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.quoteControllerGetQuoteRaw(requestParameters, initOverrides) + return await response.value() + } +} + +/** + * @export + * @enum {string} + */ +export enum QuoteControllerGetQuoteSortEnum { + Output = 'output', + Gas = 'gas', + Time = 'time', +} +/** + * @export + * @enum {string} + */ +export enum QuoteControllerGetQuoteIncludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum QuoteControllerGetQuoteExcludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum QuoteControllerGetQuoteIncludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} +/** + * @export + * @enum {string} + */ +export enum QuoteControllerGetQuoteExcludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/RoutesApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/RoutesApi.ts new file mode 100644 index 000000000..45040e720 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/RoutesApi.ts @@ -0,0 +1,385 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { + ActiveRoutesOutputDTO, + ActiveRoutesOutputDTOFromJSON, + ActiveRoutesOutputDTOToJSON, + NextTxOutputDTO, + NextTxOutputDTOFromJSON, + NextTxOutputDTOToJSON, + RouteStatusOutputDTO, + RouteStatusOutputDTOFromJSON, + RouteStatusOutputDTOToJSON, + StartActiveRouteInputDTO, + StartActiveRouteInputDTOFromJSON, + StartActiveRouteInputDTOToJSON, + StartActiveRouteResponseDTO, + StartActiveRouteResponseDTOFromJSON, + StartActiveRouteResponseDTOToJSON, +} from '../models' + +export interface ActiveRoutesControllerGetActiveRouteStatusRequest { + activeRouteId: string + userTxIndex: string + txHash?: string + signature?: string + aPIKEY?: string +} + +export interface ActiveRoutesControllerGetActiveRoutesRequest { + activeRouteId: string + aPIKEY?: string +} + +export interface ActiveRoutesControllerGetActiveRoutesForUserRequest { + userAddress: string + sort?: ActiveRoutesControllerGetActiveRoutesForUserSortEnum + offset?: string + limit?: string + routeStatus?: ActiveRoutesControllerGetActiveRoutesForUserRouteStatusEnum + fromChainId?: string + toChainId?: string + fromTokenAddress?: string + toTokenAddress?: string + aPIKEY?: string +} + +export interface ActiveRoutesControllerNextTxRequest { + activeRouteId: string + aPIKEY?: string +} + +export interface ActiveRoutesControllerStartActiveRouteRequest { + startActiveRouteInputDTO: StartActiveRouteInputDTO + aPIKEY?: string +} + +/** + * + */ +export class RoutesApi extends runtime.BaseAPI { + /** + */ + async activeRoutesControllerGetActiveRouteStatusRaw( + requestParameters: ActiveRoutesControllerGetActiveRouteStatusRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.activeRouteId === null || requestParameters.activeRouteId === undefined) { + throw new runtime.RequiredError( + 'activeRouteId', + 'Required parameter requestParameters.activeRouteId was null or undefined when calling activeRoutesControllerGetActiveRouteStatus.' + ) + } + + if (requestParameters.userTxIndex === null || requestParameters.userTxIndex === undefined) { + throw new runtime.RequiredError( + 'userTxIndex', + 'Required parameter requestParameters.userTxIndex was null or undefined when calling activeRoutesControllerGetActiveRouteStatus.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.activeRouteId !== undefined) { + queryParameters['activeRouteId'] = requestParameters.activeRouteId + } + + if (requestParameters.userTxIndex !== undefined) { + queryParameters['userTxIndex'] = requestParameters.userTxIndex + } + + if (requestParameters.txHash !== undefined) { + queryParameters['txHash'] = requestParameters.txHash + } + + if (requestParameters.signature !== undefined) { + queryParameters['signature'] = requestParameters.signature + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/route/prepare`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => RouteStatusOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async activeRoutesControllerGetActiveRouteStatus( + requestParameters: ActiveRoutesControllerGetActiveRouteStatusRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.activeRoutesControllerGetActiveRouteStatusRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async activeRoutesControllerGetActiveRoutesRaw( + requestParameters: ActiveRoutesControllerGetActiveRoutesRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.activeRouteId === null || requestParameters.activeRouteId === undefined) { + throw new runtime.RequiredError( + 'activeRouteId', + 'Required parameter requestParameters.activeRouteId was null or undefined when calling activeRoutesControllerGetActiveRoutes.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.activeRouteId !== undefined) { + queryParameters['activeRouteId'] = requestParameters.activeRouteId + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/route/active-routes`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => ActiveRoutesOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async activeRoutesControllerGetActiveRoutes( + requestParameters: ActiveRoutesControllerGetActiveRoutesRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.activeRoutesControllerGetActiveRoutesRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async activeRoutesControllerGetActiveRoutesForUserRaw( + requestParameters: ActiveRoutesControllerGetActiveRoutesForUserRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.userAddress === null || requestParameters.userAddress === undefined) { + throw new runtime.RequiredError( + 'userAddress', + 'Required parameter requestParameters.userAddress was null or undefined when calling activeRoutesControllerGetActiveRoutesForUser.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.userAddress !== undefined) { + queryParameters['userAddress'] = requestParameters.userAddress + } + + if (requestParameters.sort !== undefined) { + queryParameters['sort'] = requestParameters.sort + } + + if (requestParameters.offset !== undefined) { + queryParameters['offset'] = requestParameters.offset + } + + if (requestParameters.limit !== undefined) { + queryParameters['limit'] = requestParameters.limit + } + + if (requestParameters.routeStatus !== undefined) { + queryParameters['routeStatus'] = requestParameters.routeStatus + } + + if (requestParameters.fromChainId !== undefined) { + queryParameters['fromChainId'] = requestParameters.fromChainId + } + + if (requestParameters.toChainId !== undefined) { + queryParameters['toChainId'] = requestParameters.toChainId + } + + if (requestParameters.fromTokenAddress !== undefined) { + queryParameters['fromTokenAddress'] = requestParameters.fromTokenAddress + } + + if (requestParameters.toTokenAddress !== undefined) { + queryParameters['toTokenAddress'] = requestParameters.toTokenAddress + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/route/active-routes/users`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => ActiveRoutesOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async activeRoutesControllerGetActiveRoutesForUser( + requestParameters: ActiveRoutesControllerGetActiveRoutesForUserRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.activeRoutesControllerGetActiveRoutesForUserRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async activeRoutesControllerNextTxRaw( + requestParameters: ActiveRoutesControllerNextTxRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.activeRouteId === null || requestParameters.activeRouteId === undefined) { + throw new runtime.RequiredError( + 'activeRouteId', + 'Required parameter requestParameters.activeRouteId was null or undefined when calling activeRoutesControllerNextTx.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.activeRouteId !== undefined) { + queryParameters['activeRouteId'] = requestParameters.activeRouteId + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/route/build-next-tx`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => NextTxOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async activeRoutesControllerNextTx( + requestParameters: ActiveRoutesControllerNextTxRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.activeRoutesControllerNextTxRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + * Function that takes in a route and starts the selected route. Function is responsible for - Saving the selected route to bridge tokens from one chain to another. - Saving the fromChain, toChain, and fromAsssetAddress and toAssetAddress - Returns the Active Route Id, Current Tx, Total number of txs, txType + */ + async activeRoutesControllerStartActiveRouteRaw( + requestParameters: ActiveRoutesControllerStartActiveRouteRequest, + initOverrides?: RequestInit + ): Promise> { + if ( + requestParameters.startActiveRouteInputDTO === null || + requestParameters.startActiveRouteInputDTO === undefined + ) { + throw new runtime.RequiredError( + 'startActiveRouteInputDTO', + 'Required parameter requestParameters.startActiveRouteInputDTO was null or undefined when calling activeRoutesControllerStartActiveRoute.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/route/start`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: StartActiveRouteInputDTOToJSON(requestParameters.startActiveRouteInputDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => StartActiveRouteResponseDTOFromJSON(jsonValue)) + } + + /** + * Function that takes in a route and starts the selected route. Function is responsible for - Saving the selected route to bridge tokens from one chain to another. - Saving the fromChain, toChain, and fromAsssetAddress and toAssetAddress - Returns the Active Route Id, Current Tx, Total number of txs, txType + */ + async activeRoutesControllerStartActiveRoute( + requestParameters: ActiveRoutesControllerStartActiveRouteRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.activeRoutesControllerStartActiveRouteRaw(requestParameters, initOverrides) + return await response.value() + } +} + +/** + * @export + * @enum {string} + */ +export enum ActiveRoutesControllerGetActiveRoutesForUserSortEnum { + UpdatedAt = 'updatedAt', + CreatedAt = 'createdAt', +} +/** + * @export + * @enum {string} + */ +export enum ActiveRoutesControllerGetActiveRoutesForUserRouteStatusEnum { + Pending = 'PENDING', + Completed = 'COMPLETED', +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/ServerApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/ServerApi.ts new file mode 100644 index 000000000..f0568ac86 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/ServerApi.ts @@ -0,0 +1,571 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { + BridgeStatusResponseDTO, + BridgeStatusResponseDTOFromJSON, + BridgeStatusResponseDTOToJSON, + BridgeSwapInputDTO, + BridgeSwapInputDTOFromJSON, + BridgeSwapInputDTOToJSON, + DexSwapInputDTO, + DexSwapInputDTOFromJSON, + DexSwapInputDTOToJSON, + GasPriceResponseDTO, + GasPriceResponseDTOFromJSON, + GasPriceResponseDTOToJSON, + HealthResponseDTO, + HealthResponseDTOFromJSON, + HealthResponseDTOToJSON, + SingleTxDTO, + SingleTxDTOFromJSON, + SingleTxDTOToJSON, + SingleTxOutputDTO, + SingleTxOutputDTOFromJSON, + SingleTxOutputDTOToJSON, + TokenPriceResponseDTO, + TokenPriceResponseDTOFromJSON, + TokenPriceResponseDTOToJSON, + TransactionReceiptResponseDTO, + TransactionReceiptResponseDTOFromJSON, + TransactionReceiptResponseDTOToJSON, +} from '../models' + +export interface AppControllerDisableBridgeSwapRequest { + bridgeSwapInputDTO: BridgeSwapInputDTO +} + +export interface AppControllerDisableDexSwapRequest { + dexSwapInputDTO: DexSwapInputDTO +} + +export interface AppControllerEnableBridgeSwapRequest { + bridgeSwapInputDTO: BridgeSwapInputDTO +} + +export interface AppControllerEnableDexSwapRequest { + dexSwapInputDTO: DexSwapInputDTO +} + +export interface AppControllerGetBridgingStatusRequest { + transactionHash: string + fromChainId: string + toChainId: string + bridgeName?: string + aPIKEY?: string +} + +export interface AppControllerGetGasPriceRequest { + chainId: string +} + +export interface AppControllerGetSingleTxRequest { + singleTxDTO: SingleTxDTO + aPIKEY?: string +} + +export interface AppControllerGetTokenPriceRequest { + tokenAddress: string + chainId: string +} + +export interface AppControllerGetTransactionReceiptRequest { + transactionHash: string + chainId: string + aPIKEY?: string +} + +/** + * + */ +export class ServerApi extends runtime.BaseAPI { + /** + */ + async appControllerDisableBridgeSwapRaw( + requestParameters: AppControllerDisableBridgeSwapRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.bridgeSwapInputDTO === null || requestParameters.bridgeSwapInputDTO === undefined) { + throw new runtime.RequiredError( + 'bridgeSwapInputDTO', + 'Required parameter requestParameters.bridgeSwapInputDTO was null or undefined when calling appControllerDisableBridgeSwap.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + const response = await this.request( + { + path: `/v2/disable-bridge-swap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BridgeSwapInputDTOToJSON(requestParameters.bridgeSwapInputDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response) + } + + /** + */ + async appControllerDisableBridgeSwap( + requestParameters: AppControllerDisableBridgeSwapRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerDisableBridgeSwapRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerDisableDexSwapRaw( + requestParameters: AppControllerDisableDexSwapRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.dexSwapInputDTO === null || requestParameters.dexSwapInputDTO === undefined) { + throw new runtime.RequiredError( + 'dexSwapInputDTO', + 'Required parameter requestParameters.dexSwapInputDTO was null or undefined when calling appControllerDisableDexSwap.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + const response = await this.request( + { + path: `/v2/disable-dex-swap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DexSwapInputDTOToJSON(requestParameters.dexSwapInputDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response) + } + + /** + */ + async appControllerDisableDexSwap( + requestParameters: AppControllerDisableDexSwapRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerDisableDexSwapRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerEnableBridgeSwapRaw( + requestParameters: AppControllerEnableBridgeSwapRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.bridgeSwapInputDTO === null || requestParameters.bridgeSwapInputDTO === undefined) { + throw new runtime.RequiredError( + 'bridgeSwapInputDTO', + 'Required parameter requestParameters.bridgeSwapInputDTO was null or undefined when calling appControllerEnableBridgeSwap.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + const response = await this.request( + { + path: `/v2/enable-bridge-swap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BridgeSwapInputDTOToJSON(requestParameters.bridgeSwapInputDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response) + } + + /** + */ + async appControllerEnableBridgeSwap( + requestParameters: AppControllerEnableBridgeSwapRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerEnableBridgeSwapRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerEnableDexSwapRaw( + requestParameters: AppControllerEnableDexSwapRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.dexSwapInputDTO === null || requestParameters.dexSwapInputDTO === undefined) { + throw new runtime.RequiredError( + 'dexSwapInputDTO', + 'Required parameter requestParameters.dexSwapInputDTO was null or undefined when calling appControllerEnableDexSwap.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + const response = await this.request( + { + path: `/v2/enable-dex-swap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DexSwapInputDTOToJSON(requestParameters.dexSwapInputDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response) + } + + /** + */ + async appControllerEnableDexSwap( + requestParameters: AppControllerEnableDexSwapRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerEnableDexSwapRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetBridgingStatusRaw( + requestParameters: AppControllerGetBridgingStatusRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.transactionHash === null || requestParameters.transactionHash === undefined) { + throw new runtime.RequiredError( + 'transactionHash', + 'Required parameter requestParameters.transactionHash was null or undefined when calling appControllerGetBridgingStatus.' + ) + } + + if (requestParameters.fromChainId === null || requestParameters.fromChainId === undefined) { + throw new runtime.RequiredError( + 'fromChainId', + 'Required parameter requestParameters.fromChainId was null or undefined when calling appControllerGetBridgingStatus.' + ) + } + + if (requestParameters.toChainId === null || requestParameters.toChainId === undefined) { + throw new runtime.RequiredError( + 'toChainId', + 'Required parameter requestParameters.toChainId was null or undefined when calling appControllerGetBridgingStatus.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.transactionHash !== undefined) { + queryParameters['transactionHash'] = requestParameters.transactionHash + } + + if (requestParameters.fromChainId !== undefined) { + queryParameters['fromChainId'] = requestParameters.fromChainId + } + + if (requestParameters.toChainId !== undefined) { + queryParameters['toChainId'] = requestParameters.toChainId + } + + if (requestParameters.bridgeName !== undefined) { + queryParameters['bridgeName'] = requestParameters.bridgeName + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/bridge-status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => BridgeStatusResponseDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetBridgingStatus( + requestParameters: AppControllerGetBridgingStatusRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerGetBridgingStatusRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetGasPriceRaw( + requestParameters: AppControllerGetGasPriceRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.chainId === null || requestParameters.chainId === undefined) { + throw new runtime.RequiredError( + 'chainId', + 'Required parameter requestParameters.chainId was null or undefined when calling appControllerGetGasPrice.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.chainId !== undefined) { + queryParameters['chainId'] = requestParameters.chainId + } + + const headerParameters: runtime.HTTPHeaders = {} + + const response = await this.request( + { + path: `/v2/gas-price`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => GasPriceResponseDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetGasPrice( + requestParameters: AppControllerGetGasPriceRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerGetGasPriceRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetHealthRaw(initOverrides?: RequestInit): Promise> { + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + const response = await this.request( + { + path: `/v2/health`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => HealthResponseDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetHealth(initOverrides?: RequestInit): Promise { + const response = await this.appControllerGetHealthRaw(initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetSingleTxRaw( + requestParameters: AppControllerGetSingleTxRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.singleTxDTO === null || requestParameters.singleTxDTO === undefined) { + throw new runtime.RequiredError( + 'singleTxDTO', + 'Required parameter requestParameters.singleTxDTO was null or undefined when calling appControllerGetSingleTx.' + ) + } + + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + headerParameters['Content-Type'] = 'application/json' + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/build-tx`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SingleTxDTOToJSON(requestParameters.singleTxDTO), + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => SingleTxOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetSingleTx( + requestParameters: AppControllerGetSingleTxRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerGetSingleTxRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetTokenPriceRaw( + requestParameters: AppControllerGetTokenPriceRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.tokenAddress === null || requestParameters.tokenAddress === undefined) { + throw new runtime.RequiredError( + 'tokenAddress', + 'Required parameter requestParameters.tokenAddress was null or undefined when calling appControllerGetTokenPrice.' + ) + } + + if (requestParameters.chainId === null || requestParameters.chainId === undefined) { + throw new runtime.RequiredError( + 'chainId', + 'Required parameter requestParameters.chainId was null or undefined when calling appControllerGetTokenPrice.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.tokenAddress !== undefined) { + queryParameters['tokenAddress'] = requestParameters.tokenAddress + } + + if (requestParameters.chainId !== undefined) { + queryParameters['chainId'] = requestParameters.chainId + } + + const headerParameters: runtime.HTTPHeaders = {} + + const response = await this.request( + { + path: `/v2/token-price`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => TokenPriceResponseDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetTokenPrice( + requestParameters: AppControllerGetTokenPriceRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerGetTokenPriceRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async appControllerGetTransactionReceiptRaw( + requestParameters: AppControllerGetTransactionReceiptRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.transactionHash === null || requestParameters.transactionHash === undefined) { + throw new runtime.RequiredError( + 'transactionHash', + 'Required parameter requestParameters.transactionHash was null or undefined when calling appControllerGetTransactionReceipt.' + ) + } + + if (requestParameters.chainId === null || requestParameters.chainId === undefined) { + throw new runtime.RequiredError( + 'chainId', + 'Required parameter requestParameters.chainId was null or undefined when calling appControllerGetTransactionReceipt.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.transactionHash !== undefined) { + queryParameters['transactionHash'] = requestParameters.transactionHash + } + + if (requestParameters.chainId !== undefined) { + queryParameters['chainId'] = requestParameters.chainId + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/tx-receipt`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => TransactionReceiptResponseDTOFromJSON(jsonValue)) + } + + /** + */ + async appControllerGetTransactionReceipt( + requestParameters: AppControllerGetTransactionReceiptRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.appControllerGetTransactionReceiptRaw(requestParameters, initOverrides) + return await response.value() + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/SupportedApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/SupportedApi.ts new file mode 100644 index 000000000..0cbbc9d98 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/SupportedApi.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { + SupportedBridgesOutputDTO, + SupportedBridgesOutputDTOFromJSON, + SupportedBridgesOutputDTOToJSON, + SupportedChainsOutputDTO, + SupportedChainsOutputDTOFromJSON, + SupportedChainsOutputDTOToJSON, +} from '../models' + +export interface SupportedControllerGetAllSupportedRoutesRequest { + aPIKEY?: string +} + +/** + * + */ +export class SupportedApi extends runtime.BaseAPI { + /** + */ + async supportedControllerGetAllBridgesRaw( + initOverrides?: RequestInit + ): Promise> { + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + const response = await this.request( + { + path: `/v2/supported/bridges`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => SupportedBridgesOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async supportedControllerGetAllBridges(initOverrides?: RequestInit): Promise { + const response = await this.supportedControllerGetAllBridgesRaw(initOverrides) + return await response.value() + } + + /** + */ + async supportedControllerGetAllSupportedRoutesRaw( + requestParameters: SupportedControllerGetAllSupportedRoutesRequest, + initOverrides?: RequestInit + ): Promise> { + const queryParameters: any = {} + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/supported/chains`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => SupportedChainsOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async supportedControllerGetAllSupportedRoutes( + requestParameters: SupportedControllerGetAllSupportedRoutesRequest = {}, + initOverrides?: RequestInit + ): Promise { + const response = await this.supportedControllerGetAllSupportedRoutesRaw(requestParameters, initOverrides) + return await response.value() + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/TokenListsApi.ts b/src/services/EcoBridge/Socket/api/generated/apis/TokenListsApi.ts new file mode 100644 index 000000000..62c25610f --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/TokenListsApi.ts @@ -0,0 +1,298 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime' +import { TokenListOutputDTO, TokenListOutputDTOFromJSON, TokenListOutputDTOToJSON } from '../models' + +export interface TokenListControllerGetToTokenListRequest { + fromChainId: string + toChainId: string + disableSwapping?: boolean + includeDexes?: TokenListControllerGetToTokenListIncludeDexesEnum + excludeDexes?: TokenListControllerGetToTokenListExcludeDexesEnum + includeBridges?: Array + excludeBridges?: Array + singleTxOnly?: boolean + isShortList?: boolean + aPIKEY?: string +} + +export interface TokenListControllerGetfromTokenListRequest { + fromChainId: string + toChainId: string + disableSwapping?: boolean + includeDexes?: TokenListControllerGetfromTokenListIncludeDexesEnum + excludeDexes?: TokenListControllerGetfromTokenListExcludeDexesEnum + includeBridges?: Array + excludeBridges?: Array + singleTxOnly?: boolean + isShortList?: boolean + aPIKEY?: string +} + +/** + * + */ +export class TokenListsApi extends runtime.BaseAPI { + /** + */ + async tokenListControllerGetToTokenListRaw( + requestParameters: TokenListControllerGetToTokenListRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.fromChainId === null || requestParameters.fromChainId === undefined) { + throw new runtime.RequiredError( + 'fromChainId', + 'Required parameter requestParameters.fromChainId was null or undefined when calling tokenListControllerGetToTokenList.' + ) + } + + if (requestParameters.toChainId === null || requestParameters.toChainId === undefined) { + throw new runtime.RequiredError( + 'toChainId', + 'Required parameter requestParameters.toChainId was null or undefined when calling tokenListControllerGetToTokenList.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.fromChainId !== undefined) { + queryParameters['fromChainId'] = requestParameters.fromChainId + } + + if (requestParameters.toChainId !== undefined) { + queryParameters['toChainId'] = requestParameters.toChainId + } + + if (requestParameters.disableSwapping !== undefined) { + queryParameters['disableSwapping'] = requestParameters.disableSwapping + } + + if (requestParameters.includeDexes !== undefined) { + queryParameters['includeDexes'] = requestParameters.includeDexes + } + + if (requestParameters.excludeDexes !== undefined) { + queryParameters['excludeDexes'] = requestParameters.excludeDexes + } + + if (requestParameters.includeBridges) { + queryParameters['includeBridges'] = requestParameters.includeBridges + } + + if (requestParameters.excludeBridges) { + queryParameters['excludeBridges'] = requestParameters.excludeBridges + } + + if (requestParameters.singleTxOnly !== undefined) { + queryParameters['singleTxOnly'] = requestParameters.singleTxOnly + } + + if (requestParameters.isShortList !== undefined) { + queryParameters['isShortList'] = requestParameters.isShortList + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/token-lists/to-token-list`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => TokenListOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async tokenListControllerGetToTokenList( + requestParameters: TokenListControllerGetToTokenListRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.tokenListControllerGetToTokenListRaw(requestParameters, initOverrides) + return await response.value() + } + + /** + */ + async tokenListControllerGetfromTokenListRaw( + requestParameters: TokenListControllerGetfromTokenListRequest, + initOverrides?: RequestInit + ): Promise> { + if (requestParameters.fromChainId === null || requestParameters.fromChainId === undefined) { + throw new runtime.RequiredError( + 'fromChainId', + 'Required parameter requestParameters.fromChainId was null or undefined when calling tokenListControllerGetfromTokenList.' + ) + } + + if (requestParameters.toChainId === null || requestParameters.toChainId === undefined) { + throw new runtime.RequiredError( + 'toChainId', + 'Required parameter requestParameters.toChainId was null or undefined when calling tokenListControllerGetfromTokenList.' + ) + } + + const queryParameters: any = {} + + if (requestParameters.fromChainId !== undefined) { + queryParameters['fromChainId'] = requestParameters.fromChainId + } + + if (requestParameters.toChainId !== undefined) { + queryParameters['toChainId'] = requestParameters.toChainId + } + + if (requestParameters.disableSwapping !== undefined) { + queryParameters['disableSwapping'] = requestParameters.disableSwapping + } + + if (requestParameters.includeDexes !== undefined) { + queryParameters['includeDexes'] = requestParameters.includeDexes + } + + if (requestParameters.excludeDexes !== undefined) { + queryParameters['excludeDexes'] = requestParameters.excludeDexes + } + + if (requestParameters.includeBridges) { + queryParameters['includeBridges'] = requestParameters.includeBridges + } + + if (requestParameters.excludeBridges) { + queryParameters['excludeBridges'] = requestParameters.excludeBridges + } + + if (requestParameters.singleTxOnly !== undefined) { + queryParameters['singleTxOnly'] = requestParameters.singleTxOnly + } + + if (requestParameters.isShortList !== undefined) { + queryParameters['isShortList'] = requestParameters.isShortList + } + + const headerParameters: runtime.HTTPHeaders = {} + + if (requestParameters.aPIKEY !== undefined && requestParameters.aPIKEY !== null) { + headerParameters['API-KEY'] = String(requestParameters.aPIKEY) + } + + const response = await this.request( + { + path: `/v2/token-lists/from-token-list`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ) + + return new runtime.JSONApiResponse(response, jsonValue => TokenListOutputDTOFromJSON(jsonValue)) + } + + /** + */ + async tokenListControllerGetfromTokenList( + requestParameters: TokenListControllerGetfromTokenListRequest, + initOverrides?: RequestInit + ): Promise { + const response = await this.tokenListControllerGetfromTokenListRaw(requestParameters, initOverrides) + return await response.value() + } +} + +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetToTokenListIncludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetToTokenListExcludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetToTokenListIncludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetToTokenListExcludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetfromTokenListIncludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetfromTokenListExcludeDexesEnum { + Oneinch = 'oneinch', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetfromTokenListIncludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} +/** + * @export + * @enum {string} + */ +export enum TokenListControllerGetfromTokenListExcludeBridgesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} diff --git a/src/services/EcoBridge/Socket/api/generated/apis/index.ts b/src/services/EcoBridge/Socket/api/generated/apis/index.ts new file mode 100644 index 000000000..5d2c1a335 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/apis/index.ts @@ -0,0 +1,9 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './ApprovalsApi' +export * from './BalancesApi' +export * from './QuoteApi' +export * from './RoutesApi' +export * from './ServerApi' +export * from './SupportedApi' +export * from './TokenListsApi' diff --git a/src/services/EcoBridge/Socket/api/generated/index.ts b/src/services/EcoBridge/Socket/api/generated/index.ts new file mode 100644 index 000000000..0f29085ce --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime' +export * from './apis' +export * from './models' diff --git a/src/services/EcoBridge/Socket/api/generated/models/ActiveRouteResponse.ts b/src/services/EcoBridge/Socket/api/generated/models/ActiveRouteResponse.ts new file mode 100644 index 000000000..9e35d13b7 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ActiveRouteResponse.ts @@ -0,0 +1,175 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { TokenAsset, TokenAssetFromJSON, TokenAssetFromJSONTyped, TokenAssetToJSON } from './TokenAsset' + +/** + * + * @export + * @interface ActiveRouteResponse + */ +export interface ActiveRouteResponse { + /** + * Id of the Active Route. + * @type {number} + * @memberof ActiveRouteResponse + */ + activeRouteId: number + /** + * Address of user doing the Active Route. + * @type {string} + * @memberof ActiveRouteResponse + */ + userAddress: string + /** + * Total number of txs required in Active Route. + * @type {number} + * @memberof ActiveRouteResponse + */ + totalUserTx: number + /** + * Array of user txs. + * @type {Array} + * @memberof ActiveRouteResponse + */ + userTxs: Array + /** + * Id of source chain. + * @type {number} + * @memberof ActiveRouteResponse + */ + fromChainId: number + /** + * Id of destination chain. + * @type {number} + * @memberof ActiveRouteResponse + */ + toChainId: number + /** + * Address of token on source chain. + * @type {string} + * @memberof ActiveRouteResponse + */ + fromAssetAddress: string + /** + * Address of token on destination chain. + * @type {string} + * @memberof ActiveRouteResponse + */ + toAssetAddress: string + /** + * Amount of sending tokens. + * @type {string} + * @memberof ActiveRouteResponse + */ + fromAmount: string + /** + * Approximate amount of receiving tokens. + * @type {string} + * @memberof ActiveRouteResponse + */ + toAmount: string + /** + * Status of the Active Route. + * @type {string} + * @memberof ActiveRouteResponse + */ + routeStatus: string + /** + * Timestamp of Route start. + * @type {Date} + * @memberof ActiveRouteResponse + */ + createdAt: Date + /** + * Timestamp of last route update. + * @type {Date} + * @memberof ActiveRouteResponse + */ + updatedAt: Date + /** + * Index of current tx in userTxs array. + * @type {number} + * @memberof ActiveRouteResponse + */ + currentUserTxIndex: number + /** + * + * @type {TokenAsset} + * @memberof ActiveRouteResponse + */ + fromAsset: TokenAsset + /** + * + * @type {TokenAsset} + * @memberof ActiveRouteResponse + */ + toAsset: TokenAsset +} + +export function ActiveRouteResponseFromJSON(json: any): ActiveRouteResponse { + return ActiveRouteResponseFromJSONTyped(json, false) +} + +export function ActiveRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveRouteResponse { + if (json === undefined || json === null) { + return json + } + return { + activeRouteId: json['activeRouteId'], + userAddress: json['userAddress'], + totalUserTx: json['totalUserTx'], + userTxs: json['userTxs'], + fromChainId: json['fromChainId'], + toChainId: json['toChainId'], + fromAssetAddress: json['fromAssetAddress'], + toAssetAddress: json['toAssetAddress'], + fromAmount: json['fromAmount'], + toAmount: json['toAmount'], + routeStatus: json['routeStatus'], + createdAt: new Date(json['createdAt']), + updatedAt: new Date(json['updatedAt']), + currentUserTxIndex: json['currentUserTxIndex'], + fromAsset: TokenAssetFromJSON(json['fromAsset']), + toAsset: TokenAssetFromJSON(json['toAsset']), + } +} + +export function ActiveRouteResponseToJSON(value?: ActiveRouteResponse | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + activeRouteId: value.activeRouteId, + userAddress: value.userAddress, + totalUserTx: value.totalUserTx, + userTxs: value.userTxs, + fromChainId: value.fromChainId, + toChainId: value.toChainId, + fromAssetAddress: value.fromAssetAddress, + toAssetAddress: value.toAssetAddress, + fromAmount: value.fromAmount, + toAmount: value.toAmount, + routeStatus: value.routeStatus, + createdAt: value.createdAt.toISOString(), + updatedAt: value.updatedAt.toISOString(), + currentUserTxIndex: value.currentUserTxIndex, + fromAsset: TokenAssetToJSON(value.fromAsset), + toAsset: TokenAssetToJSON(value.toAsset), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ActiveRoutesOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/ActiveRoutesOutputDTO.ts new file mode 100644 index 000000000..d7397bde1 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ActiveRoutesOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + ActiveRouteResponse, + ActiveRouteResponseFromJSON, + ActiveRouteResponseFromJSONTyped, + ActiveRouteResponseToJSON, +} from './ActiveRouteResponse' + +/** + * + * @export + * @interface ActiveRoutesOutputDTO + */ +export interface ActiveRoutesOutputDTO { + /** + * Status of API response. + * @type {boolean} + * @memberof ActiveRoutesOutputDTO + */ + success: boolean + /** + * + * @type {ActiveRouteResponse} + * @memberof ActiveRoutesOutputDTO + */ + result: ActiveRouteResponse +} + +export function ActiveRoutesOutputDTOFromJSON(json: any): ActiveRoutesOutputDTO { + return ActiveRoutesOutputDTOFromJSONTyped(json, false) +} + +export function ActiveRoutesOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveRoutesOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: ActiveRouteResponseFromJSON(json['result']), + } +} + +export function ActiveRoutesOutputDTOToJSON(value?: ActiveRoutesOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: ActiveRouteResponseToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ApprovalData.ts b/src/services/EcoBridge/Socket/api/generated/models/ApprovalData.ts new file mode 100644 index 000000000..0c9f9669c --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ApprovalData.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface ApprovalData + */ +export interface ApprovalData { + /** + * Minimum amount of approval needed. + * @type {string} + * @memberof ApprovalData + */ + minimumApprovalAmount: string + /** + * Address of token for which approval is required. + * @type {string} + * @memberof ApprovalData + */ + approvalTokenAddress: string + /** + * Contract address that needs approval. + * @type {string} + * @memberof ApprovalData + */ + allowanceTarget: string + /** + * Address of owner. + * @type {string} + * @memberof ApprovalData + */ + owner: string +} + +export function ApprovalDataFromJSON(json: any): ApprovalData { + return ApprovalDataFromJSONTyped(json, false) +} + +export function ApprovalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApprovalData { + if (json === undefined || json === null) { + return json + } + return { + minimumApprovalAmount: json['minimumApprovalAmount'], + approvalTokenAddress: json['approvalTokenAddress'], + allowanceTarget: json['allowanceTarget'], + owner: json['owner'], + } +} + +export function ApprovalDataToJSON(value?: ApprovalData | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + minimumApprovalAmount: value.minimumApprovalAmount, + approvalTokenAddress: value.approvalTokenAddress, + allowanceTarget: value.allowanceTarget, + owner: value.owner, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTO.ts new file mode 100644 index 000000000..707c22fbe --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + ApprovalOutputDTOResult, + ApprovalOutputDTOResultFromJSON, + ApprovalOutputDTOResultFromJSONTyped, + ApprovalOutputDTOResultToJSON, +} from './ApprovalOutputDTOResult' + +/** + * + * @export + * @interface ApprovalOutputDTO + */ +export interface ApprovalOutputDTO { + /** + * + * @type {boolean} + * @memberof ApprovalOutputDTO + */ + success: boolean + /** + * + * @type {ApprovalOutputDTOResult} + * @memberof ApprovalOutputDTO + */ + result: ApprovalOutputDTOResult +} + +export function ApprovalOutputDTOFromJSON(json: any): ApprovalOutputDTO { + return ApprovalOutputDTOFromJSONTyped(json, false) +} + +export function ApprovalOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApprovalOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: ApprovalOutputDTOResultFromJSON(json['result']), + } +} + +export function ApprovalOutputDTOToJSON(value?: ApprovalOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: ApprovalOutputDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTOResult.ts new file mode 100644 index 000000000..6c6d02d68 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ApprovalOutputDTOResult.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface ApprovalOutputDTOResult + */ +export interface ApprovalOutputDTOResult { + /** + * + * @type {string} + * @memberof ApprovalOutputDTOResult + */ + value: string + /** + * + * @type {string} + * @memberof ApprovalOutputDTOResult + */ + tokenAddress: string +} + +export function ApprovalOutputDTOResultFromJSON(json: any): ApprovalOutputDTOResult { + return ApprovalOutputDTOResultFromJSONTyped(json, false) +} + +export function ApprovalOutputDTOResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApprovalOutputDTOResult { + if (json === undefined || json === null) { + return json + } + return { + value: json['value'], + tokenAddress: json['tokenAddress'], + } +} + +export function ApprovalOutputDTOResultToJSON(value?: ApprovalOutputDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + value: value.value, + tokenAddress: value.tokenAddress, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTO.ts new file mode 100644 index 000000000..0b234ba79 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + ApprovalTxOutputDTOResult, + ApprovalTxOutputDTOResultFromJSON, + ApprovalTxOutputDTOResultFromJSONTyped, + ApprovalTxOutputDTOResultToJSON, +} from './ApprovalTxOutputDTOResult' + +/** + * + * @export + * @interface ApprovalTxOutputDTO + */ +export interface ApprovalTxOutputDTO { + /** + * + * @type {boolean} + * @memberof ApprovalTxOutputDTO + */ + success: boolean + /** + * + * @type {ApprovalTxOutputDTOResult} + * @memberof ApprovalTxOutputDTO + */ + result: ApprovalTxOutputDTOResult +} + +export function ApprovalTxOutputDTOFromJSON(json: any): ApprovalTxOutputDTO { + return ApprovalTxOutputDTOFromJSONTyped(json, false) +} + +export function ApprovalTxOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApprovalTxOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: ApprovalTxOutputDTOResultFromJSON(json['result']), + } +} + +export function ApprovalTxOutputDTOToJSON(value?: ApprovalTxOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: ApprovalTxOutputDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTOResult.ts new file mode 100644 index 000000000..081f809af --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ApprovalTxOutputDTOResult.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface ApprovalTxOutputDTOResult + */ +export interface ApprovalTxOutputDTOResult { + /** + * + * @type {string} + * @memberof ApprovalTxOutputDTOResult + */ + data: string + /** + * + * @type {string} + * @memberof ApprovalTxOutputDTOResult + */ + to: string + /** + * + * @type {string} + * @memberof ApprovalTxOutputDTOResult + */ + from: string +} + +export function ApprovalTxOutputDTOResultFromJSON(json: any): ApprovalTxOutputDTOResult { + return ApprovalTxOutputDTOResultFromJSONTyped(json, false) +} + +export function ApprovalTxOutputDTOResultFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ApprovalTxOutputDTOResult { + if (json === undefined || json === null) { + return json + } + return { + data: json['data'], + to: json['to'], + from: json['from'], + } +} + +export function ApprovalTxOutputDTOResultToJSON(value?: ApprovalTxOutputDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + data: value.data, + to: value.to, + from: value.from, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/Balance.ts b/src/services/EcoBridge/Socket/api/generated/models/Balance.ts new file mode 100644 index 000000000..22043f2ff --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/Balance.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { BalanceResult, BalanceResultFromJSON, BalanceResultFromJSONTyped, BalanceResultToJSON } from './BalanceResult' + +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {boolean} + * @memberof Balance + */ + success: boolean + /** + * + * @type {Array} + * @memberof Balance + */ + result: Array +} + +export function BalanceFromJSON(json: any): Balance { + return BalanceFromJSONTyped(json, false) +} + +export function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: (json['result'] as Array).map(BalanceResultFromJSON), + } +} + +export function BalanceToJSON(value?: Balance | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: (value.result as Array).map(BalanceResultToJSON), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/BalanceResult.ts b/src/services/EcoBridge/Socket/api/generated/models/BalanceResult.ts new file mode 100644 index 000000000..bcd4369c3 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/BalanceResult.ts @@ -0,0 +1,109 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface BalanceResult + */ +export interface BalanceResult { + /** + * + * @type {number} + * @memberof BalanceResult + */ + chainId: number + /** + * + * @type {string} + * @memberof BalanceResult + */ + address: string + /** + * + * @type {string} + * @memberof BalanceResult + */ + name: string + /** + * + * @type {string} + * @memberof BalanceResult + */ + symbol: string + /** + * + * @type {number} + * @memberof BalanceResult + */ + decimals: number + /** + * + * @type {number} + * @memberof BalanceResult + */ + price: number + /** + * + * @type {number} + * @memberof BalanceResult + */ + amount: number + /** + * + * @type {string} + * @memberof BalanceResult + */ + currency: string +} + +export function BalanceResultFromJSON(json: any): BalanceResult { + return BalanceResultFromJSONTyped(json, false) +} + +export function BalanceResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BalanceResult { + if (json === undefined || json === null) { + return json + } + return { + chainId: json['chainId'], + address: json['address'], + name: json['name'], + symbol: json['symbol'], + decimals: json['decimals'], + price: json['price'], + amount: json['amount'], + currency: json['currency'], + } +} + +export function BalanceResultToJSON(value?: BalanceResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + chainId: value.chainId, + address: value.address, + name: value.name, + symbol: value.symbol, + decimals: value.decimals, + price: value.price, + amount: value.amount, + currency: value.currency, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/BridgeDetails.ts b/src/services/EcoBridge/Socket/api/generated/models/BridgeDetails.ts new file mode 100644 index 000000000..f0a7fece6 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/BridgeDetails.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface BridgeDetails + */ +export interface BridgeDetails { + /** + * Name of bridge. + * @type {string} + * @memberof BridgeDetails + */ + bridgeName: BridgeDetailsBridgeNameEnum + /** + * URL for icon of bridge. + * @type {string} + * @memberof BridgeDetails + */ + icon?: string + /** + * Approx time for bridging in seconds. + * @type {number} + * @memberof BridgeDetails + */ + serviceTime: number + /** + * Display name of bridge. + * @type {string} + * @memberof BridgeDetails + */ + displayName: string +} + +/** + * @export + * @enum {string} + */ +export enum BridgeDetailsBridgeNameEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} + +export function BridgeDetailsFromJSON(json: any): BridgeDetails { + return BridgeDetailsFromJSONTyped(json, false) +} + +export function BridgeDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeDetails { + if (json === undefined || json === null) { + return json + } + return { + bridgeName: json['bridgeName'], + icon: !exists(json, 'icon') ? undefined : json['icon'], + serviceTime: json['serviceTime'], + displayName: json['displayName'], + } +} + +export function BridgeDetailsToJSON(value?: BridgeDetails | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + bridgeName: value.bridgeName, + icon: value.icon, + serviceTime: value.serviceTime, + displayName: value.displayName, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponse.ts b/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponse.ts new file mode 100644 index 000000000..aa9463c2d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponse.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface BridgeStatusResponse + */ +export interface BridgeStatusResponse { + /** + * Source Transaction. + * @type {string} + * @memberof BridgeStatusResponse + */ + sourceTx: string + /** + * Status of source transaction while bridging. + * @type {string} + * @memberof BridgeStatusResponse + */ + sourceTxStatus: BridgeStatusResponseSourceTxStatusEnum + /** + * Destination Transaction hash. + * @type {string} + * @memberof BridgeStatusResponse + */ + destinationTransactionHash: string + /** + * Status of destination transaction while bridging. + * @type {string} + * @memberof BridgeStatusResponse + */ + destinationTxStatus: BridgeStatusResponseDestinationTxStatusEnum + /** + * Source Chain Id + * @type {number} + * @memberof BridgeStatusResponse + */ + fromChainId: number + /** + * Destination Chain Id. + * @type {number} + * @memberof BridgeStatusResponse + */ + toChainId: number +} + +/** + * @export + * @enum {string} + */ +export enum BridgeStatusResponseSourceTxStatusEnum { + Pending = 'PENDING', + Completed = 'COMPLETED', +} +/** + * @export + * @enum {string} + */ +export enum BridgeStatusResponseDestinationTxStatusEnum { + Pending = 'PENDING', + Completed = 'COMPLETED', +} + +export function BridgeStatusResponseFromJSON(json: any): BridgeStatusResponse { + return BridgeStatusResponseFromJSONTyped(json, false) +} + +export function BridgeStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeStatusResponse { + if (json === undefined || json === null) { + return json + } + return { + sourceTx: json['sourceTx'], + sourceTxStatus: json['sourceTxStatus'], + destinationTransactionHash: json['destinationTransactionHash'], + destinationTxStatus: json['destinationTxStatus'], + fromChainId: json['fromChainId'], + toChainId: json['toChainId'], + } +} + +export function BridgeStatusResponseToJSON(value?: BridgeStatusResponse | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + sourceTx: value.sourceTx, + sourceTxStatus: value.sourceTxStatus, + destinationTransactionHash: value.destinationTransactionHash, + destinationTxStatus: value.destinationTxStatus, + fromChainId: value.fromChainId, + toChainId: value.toChainId, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponseDTO.ts new file mode 100644 index 000000000..51592af6c --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/BridgeStatusResponseDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + BridgeStatusResponse, + BridgeStatusResponseFromJSON, + BridgeStatusResponseFromJSONTyped, + BridgeStatusResponseToJSON, +} from './BridgeStatusResponse' + +/** + * + * @export + * @interface BridgeStatusResponseDTO + */ +export interface BridgeStatusResponseDTO { + /** + * Status of API. + * @type {boolean} + * @memberof BridgeStatusResponseDTO + */ + success: boolean + /** + * + * @type {BridgeStatusResponse} + * @memberof BridgeStatusResponseDTO + */ + result: BridgeStatusResponse +} + +export function BridgeStatusResponseDTOFromJSON(json: any): BridgeStatusResponseDTO { + return BridgeStatusResponseDTOFromJSONTyped(json, false) +} + +export function BridgeStatusResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeStatusResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: BridgeStatusResponseFromJSON(json['result']), + } +} + +export function BridgeStatusResponseDTOToJSON(value?: BridgeStatusResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: BridgeStatusResponseToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/BridgeSwapInputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/BridgeSwapInputDTO.ts new file mode 100644 index 000000000..9af0c1d2d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/BridgeSwapInputDTO.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface BridgeSwapInputDTO + */ +export interface BridgeSwapInputDTO { + /** + * + * @type {string} + * @memberof BridgeSwapInputDTO + */ + bridgeName?: string + /** + * + * @type {number} + * @memberof BridgeSwapInputDTO + */ + fromChainId?: number + /** + * + * @type {number} + * @memberof BridgeSwapInputDTO + */ + toChainId?: number + /** + * + * @type {string} + * @memberof BridgeSwapInputDTO + */ + fromTokenAddress?: string + /** + * + * @type {string} + * @memberof BridgeSwapInputDTO + */ + toTokenAddress?: string + /** + * + * @type {string} + * @memberof BridgeSwapInputDTO + */ + adminKey: string +} + +export function BridgeSwapInputDTOFromJSON(json: any): BridgeSwapInputDTO { + return BridgeSwapInputDTOFromJSONTyped(json, false) +} + +export function BridgeSwapInputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeSwapInputDTO { + if (json === undefined || json === null) { + return json + } + return { + bridgeName: !exists(json, 'bridgeName') ? undefined : json['bridgeName'], + fromChainId: !exists(json, 'fromChainId') ? undefined : json['fromChainId'], + toChainId: !exists(json, 'toChainId') ? undefined : json['toChainId'], + fromTokenAddress: !exists(json, 'fromTokenAddress') ? undefined : json['fromTokenAddress'], + toTokenAddress: !exists(json, 'toTokenAddress') ? undefined : json['toTokenAddress'], + adminKey: json['adminKey'], + } +} + +export function BridgeSwapInputDTOToJSON(value?: BridgeSwapInputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + bridgeName: value.bridgeName, + fromChainId: value.fromChainId, + toChainId: value.toChainId, + fromTokenAddress: value.fromTokenAddress, + toTokenAddress: value.toTokenAddress, + adminKey: value.adminKey, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/ChainDetails.ts b/src/services/EcoBridge/Socket/api/generated/models/ChainDetails.ts new file mode 100644 index 000000000..78ede31da --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/ChainDetails.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + GasTokenDetails, + GasTokenDetailsFromJSON, + GasTokenDetailsFromJSONTyped, + GasTokenDetailsToJSON, +} from './GasTokenDetails' + +/** + * + * @export + * @interface ChainDetails + */ +export interface ChainDetails { + /** + * Id of chain. + * @type {number} + * @memberof ChainDetails + */ + chainId: number + /** + * Name of chain. + * @type {string} + * @memberof ChainDetails + */ + name: string + /** + * URL for icon of chain. + * @type {string} + * @memberof ChainDetails + */ + icon: string + /** + * Flag indicating whether the chain is L1. + * @type {boolean} + * @memberof ChainDetails + */ + isL1: boolean + /** + * Flag indicating whether sending of tokens is supported from chain. + * @type {boolean} + * @memberof ChainDetails + */ + sendingEnabled: boolean + /** + * Flag indicating whether receiving of tokens is supported to chain. + * @type {boolean} + * @memberof ChainDetails + */ + receivingEnabled: boolean + /** + * + * @type {GasTokenDetails} + * @memberof ChainDetails + */ + currency: GasTokenDetails + /** + * + * @type {Array} + * @memberof ChainDetails + */ + rpcs: Array + /** + * + * @type {Array} + * @memberof ChainDetails + */ + explorers: Array +} + +export function ChainDetailsFromJSON(json: any): ChainDetails { + return ChainDetailsFromJSONTyped(json, false) +} + +export function ChainDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainDetails { + if (json === undefined || json === null) { + return json + } + return { + chainId: json['chainId'], + name: json['name'], + icon: json['icon'], + isL1: json['isL1'], + sendingEnabled: json['sendingEnabled'], + receivingEnabled: json['receivingEnabled'], + currency: GasTokenDetailsFromJSON(json['currency']), + rpcs: json['rpcs'], + explorers: json['explorers'], + } +} + +export function ChainDetailsToJSON(value?: ChainDetails | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + chainId: value.chainId, + name: value.name, + icon: value.icon, + isL1: value.isL1, + sendingEnabled: value.sendingEnabled, + receivingEnabled: value.receivingEnabled, + currency: GasTokenDetailsToJSON(value.currency), + rpcs: value.rpcs, + explorers: value.explorers, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/DexSwapInputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/DexSwapInputDTO.ts new file mode 100644 index 000000000..37d8681f7 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/DexSwapInputDTO.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface DexSwapInputDTO + */ +export interface DexSwapInputDTO { + /** + * + * @type {string} + * @memberof DexSwapInputDTO + */ + dexId?: string + /** + * + * @type {number} + * @memberof DexSwapInputDTO + */ + chainId?: number + /** + * + * @type {string} + * @memberof DexSwapInputDTO + */ + fromTokenAddress?: string + /** + * + * @type {string} + * @memberof DexSwapInputDTO + */ + toTokenAddress?: string + /** + * + * @type {string} + * @memberof DexSwapInputDTO + */ + adminKey: string +} + +export function DexSwapInputDTOFromJSON(json: any): DexSwapInputDTO { + return DexSwapInputDTOFromJSONTyped(json, false) +} + +export function DexSwapInputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): DexSwapInputDTO { + if (json === undefined || json === null) { + return json + } + return { + dexId: !exists(json, 'dexId') ? undefined : json['dexId'], + chainId: !exists(json, 'chainId') ? undefined : json['chainId'], + fromTokenAddress: !exists(json, 'fromTokenAddress') ? undefined : json['fromTokenAddress'], + toTokenAddress: !exists(json, 'toTokenAddress') ? undefined : json['toTokenAddress'], + adminKey: json['adminKey'], + } +} + +export function DexSwapInputDTOToJSON(value?: DexSwapInputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + dexId: value.dexId, + chainId: value.chainId, + fromTokenAddress: value.fromTokenAddress, + toTokenAddress: value.toTokenAddress, + adminKey: value.adminKey, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTO.ts new file mode 100644 index 000000000..eb44863be --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + GasPriceResponseDTOResult, + GasPriceResponseDTOResultFromJSON, + GasPriceResponseDTOResultFromJSONTyped, + GasPriceResponseDTOResultToJSON, +} from './GasPriceResponseDTOResult' + +/** + * + * @export + * @interface GasPriceResponseDTO + */ +export interface GasPriceResponseDTO { + /** + * + * @type {boolean} + * @memberof GasPriceResponseDTO + */ + success: boolean + /** + * + * @type {GasPriceResponseDTOResult} + * @memberof GasPriceResponseDTO + */ + result: GasPriceResponseDTOResult +} + +export function GasPriceResponseDTOFromJSON(json: any): GasPriceResponseDTO { + return GasPriceResponseDTOFromJSONTyped(json, false) +} + +export function GasPriceResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GasPriceResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: GasPriceResponseDTOResultFromJSON(json['result']), + } +} + +export function GasPriceResponseDTOToJSON(value?: GasPriceResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: GasPriceResponseDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResult.ts new file mode 100644 index 000000000..93641d40e --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResult.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + GasPriceResponseDTOResultFast, + GasPriceResponseDTOResultFastFromJSON, + GasPriceResponseDTOResultFastFromJSONTyped, + GasPriceResponseDTOResultFastToJSON, +} from './GasPriceResponseDTOResultFast' + +/** + * + * @export + * @interface GasPriceResponseDTOResult + */ +export interface GasPriceResponseDTOResult { + /** + * + * @type {number} + * @memberof GasPriceResponseDTOResult + */ + chainId: number + /** + * + * @type {number} + * @memberof GasPriceResponseDTOResult + */ + txType: number + /** + * + * @type {GasPriceResponseDTOResultFast} + * @memberof GasPriceResponseDTOResult + */ + fast?: GasPriceResponseDTOResultFast + /** + * + * @type {GasPriceResponseDTOResultFast} + * @memberof GasPriceResponseDTOResult + */ + normal?: GasPriceResponseDTOResultFast + /** + * + * @type {GasPriceResponseDTOResultFast} + * @memberof GasPriceResponseDTOResult + */ + slow?: GasPriceResponseDTOResultFast +} + +export function GasPriceResponseDTOResultFromJSON(json: any): GasPriceResponseDTOResult { + return GasPriceResponseDTOResultFromJSONTyped(json, false) +} + +export function GasPriceResponseDTOResultFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GasPriceResponseDTOResult { + if (json === undefined || json === null) { + return json + } + return { + chainId: json['chainId'], + txType: json['txType'], + fast: !exists(json, 'fast') ? undefined : GasPriceResponseDTOResultFastFromJSON(json['fast']), + normal: !exists(json, 'normal') ? undefined : GasPriceResponseDTOResultFastFromJSON(json['normal']), + slow: !exists(json, 'slow') ? undefined : GasPriceResponseDTOResultFastFromJSON(json['slow']), + } +} + +export function GasPriceResponseDTOResultToJSON(value?: GasPriceResponseDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + chainId: value.chainId, + txType: value.txType, + fast: GasPriceResponseDTOResultFastToJSON(value.fast), + normal: GasPriceResponseDTOResultFastToJSON(value.normal), + slow: GasPriceResponseDTOResultFastToJSON(value.slow), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResultFast.ts b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResultFast.ts new file mode 100644 index 000000000..f00ba9d64 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/GasPriceResponseDTOResultFast.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface GasPriceResponseDTOResultFast + */ +export interface GasPriceResponseDTOResultFast { + /** + * + * @type {number} + * @memberof GasPriceResponseDTOResultFast + */ + gasPrice: number + /** + * + * @type {number} + * @memberof GasPriceResponseDTOResultFast + */ + estimatedSeconds: number +} + +export function GasPriceResponseDTOResultFastFromJSON(json: any): GasPriceResponseDTOResultFast { + return GasPriceResponseDTOResultFastFromJSONTyped(json, false) +} + +export function GasPriceResponseDTOResultFastFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GasPriceResponseDTOResultFast { + if (json === undefined || json === null) { + return json + } + return { + gasPrice: json['gasPrice'], + estimatedSeconds: json['estimatedSeconds'], + } +} + +export function GasPriceResponseDTOResultFastToJSON(value?: GasPriceResponseDTOResultFast | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + gasPrice: value.gasPrice, + estimatedSeconds: value.estimatedSeconds, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/GasTokenDetails.ts b/src/services/EcoBridge/Socket/api/generated/models/GasTokenDetails.ts new file mode 100644 index 000000000..8dc2c0c3a --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/GasTokenDetails.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface GasTokenDetails + */ +export interface GasTokenDetails { + /** + * Address of gas token. + * @type {string} + * @memberof GasTokenDetails + */ + address: string + /** + * URL for icon of gas token. + * @type {string} + * @memberof GasTokenDetails + */ + icon: string + /** + * Name of gas token. + * @type {string} + * @memberof GasTokenDetails + */ + name: string + /** + * Symbol of gas token. + * @type {string} + * @memberof GasTokenDetails + */ + symbol: string + /** + * Decimals of gas token. + * @type {number} + * @memberof GasTokenDetails + */ + decimals: number + /** + * Minimum amount to be left for gas while using max amount. + * @type {string} + * @memberof GasTokenDetails + */ + minNativeCurrencyForGas: string +} + +export function GasTokenDetailsFromJSON(json: any): GasTokenDetails { + return GasTokenDetailsFromJSONTyped(json, false) +} + +export function GasTokenDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GasTokenDetails { + if (json === undefined || json === null) { + return json + } + return { + address: json['address'], + icon: json['icon'], + name: json['name'], + symbol: json['symbol'], + decimals: json['decimals'], + minNativeCurrencyForGas: json['minNativeCurrencyForGas'], + } +} + +export function GasTokenDetailsToJSON(value?: GasTokenDetails | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + address: value.address, + icon: value.icon, + name: value.name, + symbol: value.symbol, + decimals: value.decimals, + minNativeCurrencyForGas: value.minNativeCurrencyForGas, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/HealthResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/HealthResponseDTO.ts new file mode 100644 index 000000000..c48076b00 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/HealthResponseDTO.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface HealthResponseDTO + */ +export interface HealthResponseDTO { + /** + * + * @type {boolean} + * @memberof HealthResponseDTO + */ + readonly ok: boolean +} + +export function HealthResponseDTOFromJSON(json: any): HealthResponseDTO { + return HealthResponseDTOFromJSONTyped(json, false) +} + +export function HealthResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + ok: json['ok'], + } +} + +export function HealthResponseDTOToJSON(value?: HealthResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return {} +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/NextTxOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/NextTxOutputDTO.ts new file mode 100644 index 000000000..c3979865d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/NextTxOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + NextTxResponse, + NextTxResponseFromJSON, + NextTxResponseFromJSONTyped, + NextTxResponseToJSON, +} from './NextTxResponse' + +/** + * + * @export + * @interface NextTxOutputDTO + */ +export interface NextTxOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof NextTxOutputDTO + */ + status: boolean + /** + * + * @type {NextTxResponse} + * @memberof NextTxOutputDTO + */ + result: NextTxResponse +} + +export function NextTxOutputDTOFromJSON(json: any): NextTxOutputDTO { + return NextTxOutputDTOFromJSONTyped(json, false) +} + +export function NextTxOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): NextTxOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + status: json['status'], + result: NextTxResponseFromJSON(json['result']), + } +} + +export function NextTxOutputDTOToJSON(value?: NextTxOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + status: value.status, + result: NextTxResponseToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/NextTxResponse.ts b/src/services/EcoBridge/Socket/api/generated/models/NextTxResponse.ts new file mode 100644 index 000000000..43514a848 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/NextTxResponse.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { ApprovalData, ApprovalDataFromJSON, ApprovalDataFromJSONTyped, ApprovalDataToJSON } from './ApprovalData' + +/** + * + * @export + * @interface NextTxResponse + */ +export interface NextTxResponse { + /** + * Type of user transaction. + * @type {string} + * @memberof NextTxResponse + */ + userTxType: NextTxResponseUserTxTypeEnum + /** + * Address to which transaction has to be sent. + * @type {string} + * @memberof NextTxResponse + */ + txTarget: string + /** + * Id of chain where transaction has to be sent. + * @type {string} + * @memberof NextTxResponse + */ + chainId: NextTxResponseChainIdEnum + /** + * Calldata for transaction. + * @type {string} + * @memberof NextTxResponse + */ + txData: string + /** + * Type of transaction. + * @type {string} + * @memberof NextTxResponse + */ + txType: NextTxResponseTxTypeEnum + /** + * Id of Active Route. + * @type {number} + * @memberof NextTxResponse + */ + activeRouteId: number + /** + * Native token amount to be sent with transaction. + * @type {string} + * @memberof NextTxResponse + */ + value: string + /** + * Index of transaction in Active Route. Index of the object in the userTxs array. + * @type {number} + * @memberof NextTxResponse + */ + userTxIndex: number + /** + * Total number of transactions in Active Route. + * @type {number} + * @memberof NextTxResponse + */ + totalUserTx: number + /** + * + * @type {ApprovalData} + * @memberof NextTxResponse + */ + approvalData: ApprovalData +} + +/** + * @export + * @enum {string} + */ +export enum NextTxResponseUserTxTypeEnum { + Approve = 'approve', + FundMovr = 'fund-movr', + Claim = 'claim', + DexSwap = 'dex-swap', + Sign = 'sign', +} +/** + * @export + * @enum {string} + */ +export enum NextTxResponseChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} +/** + * @export + * @enum {string} + */ +export enum NextTxResponseTxTypeEnum { + SendTransaction = 'eth_sendTransaction', + SignMessage = 'eth_signMessage', +} + +export function NextTxResponseFromJSON(json: any): NextTxResponse { + return NextTxResponseFromJSONTyped(json, false) +} + +export function NextTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NextTxResponse { + if (json === undefined || json === null) { + return json + } + return { + userTxType: json['userTxType'], + txTarget: json['txTarget'], + chainId: json['chainId'], + txData: json['txData'], + txType: json['txType'], + activeRouteId: json['activeRouteId'], + value: json['value'], + userTxIndex: json['userTxIndex'], + totalUserTx: json['totalUserTx'], + approvalData: ApprovalDataFromJSON(json['approvalData']), + } +} + +export function NextTxResponseToJSON(value?: NextTxResponse | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + userTxType: value.userTxType, + txTarget: value.txTarget, + chainId: value.chainId, + txData: value.txData, + txType: value.txType, + activeRouteId: value.activeRouteId, + value: value.value, + userTxIndex: value.userTxIndex, + totalUserTx: value.totalUserTx, + approvalData: ApprovalDataToJSON(value.approvalData), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTO.ts new file mode 100644 index 000000000..1f528e275 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + QuoteOutputDTOResult, + QuoteOutputDTOResultFromJSON, + QuoteOutputDTOResultFromJSONTyped, + QuoteOutputDTOResultToJSON, +} from './QuoteOutputDTOResult' + +/** + * + * @export + * @interface QuoteOutputDTO + */ +export interface QuoteOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof QuoteOutputDTO + */ + success: boolean + /** + * + * @type {QuoteOutputDTOResult} + * @memberof QuoteOutputDTO + */ + result: QuoteOutputDTOResult +} + +export function QuoteOutputDTOFromJSON(json: any): QuoteOutputDTO { + return QuoteOutputDTOFromJSONTyped(json, false) +} + +export function QuoteOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: QuoteOutputDTOResultFromJSON(json['result']), + } +} + +export function QuoteOutputDTOToJSON(value?: QuoteOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: QuoteOutputDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTOResult.ts new file mode 100644 index 000000000..079ea61fa --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/QuoteOutputDTOResult.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { Route, RouteFromJSON, RouteFromJSONTyped, RouteToJSON } from './Route' +import { TokenAsset, TokenAssetFromJSON, TokenAssetFromJSONTyped, TokenAssetToJSON } from './TokenAsset' + +/** + * + * @export + * @interface QuoteOutputDTOResult + */ +export interface QuoteOutputDTOResult { + /** + * + * @type {Array} + * @memberof QuoteOutputDTOResult + */ + routes: Array + /** + * + * @type {number} + * @memberof QuoteOutputDTOResult + */ + fromChainId: number + /** + * + * @type {TokenAsset} + * @memberof QuoteOutputDTOResult + */ + fromAsset: TokenAsset + /** + * + * @type {number} + * @memberof QuoteOutputDTOResult + */ + toChainId: number + /** + * + * @type {TokenAsset} + * @memberof QuoteOutputDTOResult + */ + toAsset: TokenAsset +} + +export function QuoteOutputDTOResultFromJSON(json: any): QuoteOutputDTOResult { + return QuoteOutputDTOResultFromJSONTyped(json, false) +} + +export function QuoteOutputDTOResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteOutputDTOResult { + if (json === undefined || json === null) { + return json + } + return { + routes: (json['routes'] as Array).map(RouteFromJSON), + fromChainId: json['fromChainId'], + fromAsset: TokenAssetFromJSON(json['fromAsset']), + toChainId: json['toChainId'], + toAsset: TokenAssetFromJSON(json['toAsset']), + } +} + +export function QuoteOutputDTOResultToJSON(value?: QuoteOutputDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + routes: (value.routes as Array).map(RouteToJSON), + fromChainId: value.fromChainId, + fromAsset: TokenAssetToJSON(value.fromAsset), + toChainId: value.toChainId, + toAsset: TokenAssetToJSON(value.toAsset), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/Route.ts b/src/services/EcoBridge/Socket/api/generated/models/Route.ts new file mode 100644 index 000000000..6f03aadcb --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/Route.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface Route + */ +export interface Route { + /** + * Unique id for each route. + * @type {string} + * @memberof Route + */ + routeId: string + /** + * Sending token amount. + * @type {string} + * @memberof Route + */ + fromAmount: string + /** + * + * @type {object} + * @memberof Route + */ + chainGasBalances: object + /** + * Approximate receiving token amount. + * @type {string} + * @memberof Route + */ + toAmount: string + /** + * Array of bridges used in the route + * @type {Array} + * @memberof Route + */ + usedBridgeNames: Array + /** + * Total number of transactions for the route. + * @type {number} + * @memberof Route + */ + totalUserTx: number + /** + * Combined USD gas fees for all transactions in the route. + * @type {number} + * @memberof Route + */ + totalGasFeesInUsd: number + /** + * Address of user making the transactions. + * @type {string} + * @memberof Route + */ + sender: string + /** + * Array of user transactions. + * @type {Array} + * @memberof Route + */ + userTxs: Array + /** + * Estimate of total time in seconds, excluding the transaction time. + * @type {number} + * @memberof Route + */ + serviceTime: number +} + +/** + * @export + * @enum {string} + */ +export enum RouteUsedBridgeNamesEnum { + PolygonBridge = 'polygon-bridge', + Hop = 'hop', + AnyswapRouterV4 = 'anyswap-router-v4', + Hyphen = 'hyphen', + ArbitrumBridge = 'arbitrum-bridge', + Connext = 'connext', +} + +export function RouteFromJSON(json: any): Route { + return RouteFromJSONTyped(json, false) +} + +export function RouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Route { + if (json === undefined || json === null) { + return json + } + return { + routeId: json['routeId'], + fromAmount: json['fromAmount'], + chainGasBalances: json['chainGasBalances'], + toAmount: json['toAmount'], + usedBridgeNames: json['usedBridgeNames'], + totalUserTx: json['totalUserTx'], + totalGasFeesInUsd: json['totalGasFeesInUsd'], + sender: json['sender'], + userTxs: json['userTxs'], + serviceTime: json['serviceTime'], + } +} + +export function RouteToJSON(value?: Route | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + routeId: value.routeId, + fromAmount: value.fromAmount, + chainGasBalances: value.chainGasBalances, + toAmount: value.toAmount, + usedBridgeNames: value.usedBridgeNames, + totalUserTx: value.totalUserTx, + totalGasFeesInUsd: value.totalGasFeesInUsd, + sender: value.sender, + userTxs: value.userTxs, + serviceTime: value.serviceTime, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/RouteStatusOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/RouteStatusOutputDTO.ts new file mode 100644 index 000000000..d20ba4f6a --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/RouteStatusOutputDTO.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface RouteStatusOutputDTO + */ +export interface RouteStatusOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof RouteStatusOutputDTO + */ + status: boolean + /** + * + * @type {string} + * @memberof RouteStatusOutputDTO + */ + result: RouteStatusOutputDTOResultEnum +} + +/** + * @export + * @enum {string} + */ +export enum RouteStatusOutputDTOResultEnum { + Pending = 'PENDING', + Completed = 'COMPLETED', +} + +export function RouteStatusOutputDTOFromJSON(json: any): RouteStatusOutputDTO { + return RouteStatusOutputDTOFromJSONTyped(json, false) +} + +export function RouteStatusOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteStatusOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + status: json['status'], + result: json['result'], + } +} + +export function RouteStatusOutputDTOToJSON(value?: RouteStatusOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + status: value.status, + result: value.result, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/SingleTxDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/SingleTxDTO.ts new file mode 100644 index 000000000..b272b636d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/SingleTxDTO.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { Route, RouteFromJSON, RouteFromJSONTyped, RouteToJSON } from './Route' + +/** + * + * @export + * @interface SingleTxDTO + */ +export interface SingleTxDTO { + /** + * + * @type {Route} + * @memberof SingleTxDTO + */ + route: Route +} + +export function SingleTxDTOFromJSON(json: any): SingleTxDTO { + return SingleTxDTOFromJSONTyped(json, false) +} + +export function SingleTxDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleTxDTO { + if (json === undefined || json === null) { + return json + } + return { + route: RouteFromJSON(json['route']), + } +} + +export function SingleTxDTOToJSON(value?: SingleTxDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + route: RouteToJSON(value.route), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/SingleTxOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/SingleTxOutputDTO.ts new file mode 100644 index 000000000..0b5957b46 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/SingleTxOutputDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + SingleTxResponse, + SingleTxResponseFromJSON, + SingleTxResponseFromJSONTyped, + SingleTxResponseToJSON, +} from './SingleTxResponse' + +/** + * + * @export + * @interface SingleTxOutputDTO + */ +export interface SingleTxOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof SingleTxOutputDTO + */ + success: boolean + /** + * + * @type {SingleTxResponse} + * @memberof SingleTxOutputDTO + */ + result: SingleTxResponse +} + +export function SingleTxOutputDTOFromJSON(json: any): SingleTxOutputDTO { + return SingleTxOutputDTOFromJSONTyped(json, false) +} + +export function SingleTxOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleTxOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: SingleTxResponseFromJSON(json['result']), + } +} + +export function SingleTxOutputDTOToJSON(value?: SingleTxOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: SingleTxResponseToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/SingleTxResponse.ts b/src/services/EcoBridge/Socket/api/generated/models/SingleTxResponse.ts new file mode 100644 index 000000000..103b8f346 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/SingleTxResponse.ts @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { ApprovalData, ApprovalDataFromJSON, ApprovalDataFromJSONTyped, ApprovalDataToJSON } from './ApprovalData' + +/** + * + * @export + * @interface SingleTxResponse + */ +export interface SingleTxResponse { + /** + * Type of user transaction. + * @type {string} + * @memberof SingleTxResponse + */ + userTxType: SingleTxResponseUserTxTypeEnum + /** + * Address to which transaction has to be sent. + * @type {string} + * @memberof SingleTxResponse + */ + txTarget: string + /** + * Id of chain where transaction has to be sent. + * @type {string} + * @memberof SingleTxResponse + */ + chainId: SingleTxResponseChainIdEnum + /** + * Calldata for transaction. + * @type {string} + * @memberof SingleTxResponse + */ + txData: string + /** + * Type of transaction. + * @type {string} + * @memberof SingleTxResponse + */ + txType: SingleTxResponseTxTypeEnum + /** + * Native token amount to be sent with transaction. + * @type {string} + * @memberof SingleTxResponse + */ + value: string + /** + * Total number of transactions in Active Route. + * @type {number} + * @memberof SingleTxResponse + */ + totalUserTx: number + /** + * + * @type {ApprovalData} + * @memberof SingleTxResponse + */ + approvalData: ApprovalData +} + +/** + * @export + * @enum {string} + */ +export enum SingleTxResponseUserTxTypeEnum { + Approve = 'approve', + FundMovr = 'fund-movr', + Claim = 'claim', + DexSwap = 'dex-swap', + Sign = 'sign', +} +/** + * @export + * @enum {string} + */ +export enum SingleTxResponseChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} +/** + * @export + * @enum {string} + */ +export enum SingleTxResponseTxTypeEnum { + SendTransaction = 'eth_sendTransaction', + SignMessage = 'eth_signMessage', +} + +export function SingleTxResponseFromJSON(json: any): SingleTxResponse { + return SingleTxResponseFromJSONTyped(json, false) +} + +export function SingleTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleTxResponse { + if (json === undefined || json === null) { + return json + } + return { + userTxType: json['userTxType'], + txTarget: json['txTarget'], + chainId: json['chainId'], + txData: json['txData'], + txType: json['txType'], + value: json['value'], + totalUserTx: json['totalUserTx'], + approvalData: ApprovalDataFromJSON(json['approvalData']), + } +} + +export function SingleTxResponseToJSON(value?: SingleTxResponse | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + userTxType: value.userTxType, + txTarget: value.txTarget, + chainId: value.chainId, + txData: value.txData, + txType: value.txType, + value: value.value, + totalUserTx: value.totalUserTx, + approvalData: ApprovalDataToJSON(value.approvalData), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteInputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteInputDTO.ts new file mode 100644 index 000000000..7d1c7ffb8 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteInputDTO.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { Route, RouteFromJSON, RouteFromJSONTyped, RouteToJSON } from './Route' + +/** + * + * @export + * @interface StartActiveRouteInputDTO + */ +export interface StartActiveRouteInputDTO { + /** + * Chain id of source chain. + * @type {string} + * @memberof StartActiveRouteInputDTO + */ + fromChainId: StartActiveRouteInputDTOFromChainIdEnum + /** + * Chain id of destination chain. + * @type {string} + * @memberof StartActiveRouteInputDTO + */ + toChainId: StartActiveRouteInputDTOToChainIdEnum + /** + * Token address on source chain. + * @type {string} + * @memberof StartActiveRouteInputDTO + */ + fromAssetAddress: string + /** + * Token address on destination chain. + * @type {string} + * @memberof StartActiveRouteInputDTO + */ + toAssetAddress: string + /** + * Include the tx details for the first user transaction. If true it will return the txData txType etc. + * If false, it will only return the active route Id of the selected route. + * @type {boolean} + * @memberof StartActiveRouteInputDTO + */ + includeFirstTxDetails?: boolean + /** + * Selected route by the user to bridge tokens from one chain to another. + * @type {Route} + * @memberof StartActiveRouteInputDTO + */ + route: Route | null +} + +/** + * @export + * @enum {string} + */ +export enum StartActiveRouteInputDTOFromChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} +/** + * @export + * @enum {string} + */ +export enum StartActiveRouteInputDTOToChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} + +export function StartActiveRouteInputDTOFromJSON(json: any): StartActiveRouteInputDTO { + return StartActiveRouteInputDTOFromJSONTyped(json, false) +} + +export function StartActiveRouteInputDTOFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): StartActiveRouteInputDTO { + if (json === undefined || json === null) { + return json + } + return { + fromChainId: json['fromChainId'], + toChainId: json['toChainId'], + fromAssetAddress: json['fromAssetAddress'], + toAssetAddress: json['toAssetAddress'], + includeFirstTxDetails: !exists(json, 'includeFirstTxDetails') ? undefined : json['includeFirstTxDetails'], + route: RouteFromJSON(json['route']), + } +} + +export function StartActiveRouteInputDTOToJSON(value?: StartActiveRouteInputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + fromChainId: value.fromChainId, + toChainId: value.toChainId, + fromAssetAddress: value.fromAssetAddress, + toAssetAddress: value.toAssetAddress, + includeFirstTxDetails: value.includeFirstTxDetails, + route: RouteToJSON(value.route), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteResponseDTO.ts new file mode 100644 index 000000000..04c561984 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/StartActiveRouteResponseDTO.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { ApprovalData, ApprovalDataFromJSON, ApprovalDataFromJSONTyped, ApprovalDataToJSON } from './ApprovalData' + +/** + * + * @export + * @interface StartActiveRouteResponseDTO + */ +export interface StartActiveRouteResponseDTO { + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + userTxType?: StartActiveRouteResponseDTOUserTxTypeEnum + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + txTarget?: string + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + chainId?: StartActiveRouteResponseDTOChainIdEnum + /** + * + * @type {number} + * @memberof StartActiveRouteResponseDTO + */ + activeRouteId: number + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + txData?: string + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + txType?: StartActiveRouteResponseDTOTxTypeEnum + /** + * + * @type {string} + * @memberof StartActiveRouteResponseDTO + */ + value?: string + /** + * + * @type {number} + * @memberof StartActiveRouteResponseDTO + */ + userTxIndex?: number + /** + * + * @type {number} + * @memberof StartActiveRouteResponseDTO + */ + totalUserTx: number + /** + * + * @type {ApprovalData} + * @memberof StartActiveRouteResponseDTO + */ + approvalData?: ApprovalData +} + +/** + * @export + * @enum {string} + */ +export enum StartActiveRouteResponseDTOUserTxTypeEnum { + Approve = 'approve', + FundMovr = 'fund-movr', + Claim = 'claim', + DexSwap = 'dex-swap', + Sign = 'sign', +} +/** + * @export + * @enum {string} + */ +export enum StartActiveRouteResponseDTOChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} +/** + * @export + * @enum {string} + */ +export enum StartActiveRouteResponseDTOTxTypeEnum { + SendTransaction = 'eth_sendTransaction', + SignMessage = 'eth_signMessage', +} + +export function StartActiveRouteResponseDTOFromJSON(json: any): StartActiveRouteResponseDTO { + return StartActiveRouteResponseDTOFromJSONTyped(json, false) +} + +export function StartActiveRouteResponseDTOFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): StartActiveRouteResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + userTxType: !exists(json, 'userTxType') ? undefined : json['userTxType'], + txTarget: !exists(json, 'txTarget') ? undefined : json['txTarget'], + chainId: !exists(json, 'chainId') ? undefined : json['chainId'], + activeRouteId: json['activeRouteId'], + txData: !exists(json, 'txData') ? undefined : json['txData'], + txType: !exists(json, 'txType') ? undefined : json['txType'], + value: !exists(json, 'value') ? undefined : json['value'], + userTxIndex: !exists(json, 'userTxIndex') ? undefined : json['userTxIndex'], + totalUserTx: json['totalUserTx'], + approvalData: !exists(json, 'approvalData') ? undefined : ApprovalDataFromJSON(json['approvalData']), + } +} + +export function StartActiveRouteResponseDTOToJSON(value?: StartActiveRouteResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + userTxType: value.userTxType, + txTarget: value.txTarget, + chainId: value.chainId, + activeRouteId: value.activeRouteId, + txData: value.txData, + txType: value.txType, + value: value.value, + userTxIndex: value.userTxIndex, + totalUserTx: value.totalUserTx, + approvalData: ApprovalDataToJSON(value.approvalData), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/SupportedBridgesOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/SupportedBridgesOutputDTO.ts new file mode 100644 index 000000000..100db5bef --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/SupportedBridgesOutputDTO.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { BridgeDetails, BridgeDetailsFromJSON, BridgeDetailsFromJSONTyped, BridgeDetailsToJSON } from './BridgeDetails' + +/** + * + * @export + * @interface SupportedBridgesOutputDTO + */ +export interface SupportedBridgesOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof SupportedBridgesOutputDTO + */ + success: boolean + /** + * + * @type {Array} + * @memberof SupportedBridgesOutputDTO + */ + result: Array +} + +export function SupportedBridgesOutputDTOFromJSON(json: any): SupportedBridgesOutputDTO { + return SupportedBridgesOutputDTOFromJSONTyped(json, false) +} + +export function SupportedBridgesOutputDTOFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SupportedBridgesOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: (json['result'] as Array).map(BridgeDetailsFromJSON), + } +} + +export function SupportedBridgesOutputDTOToJSON(value?: SupportedBridgesOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: (value.result as Array).map(BridgeDetailsToJSON), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/SupportedChainsOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/SupportedChainsOutputDTO.ts new file mode 100644 index 000000000..e1923db76 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/SupportedChainsOutputDTO.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { ChainDetails, ChainDetailsFromJSON, ChainDetailsFromJSONTyped, ChainDetailsToJSON } from './ChainDetails' + +/** + * + * @export + * @interface SupportedChainsOutputDTO + */ +export interface SupportedChainsOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof SupportedChainsOutputDTO + */ + success: boolean + /** + * + * @type {Array} + * @memberof SupportedChainsOutputDTO + */ + result: Array +} + +export function SupportedChainsOutputDTOFromJSON(json: any): SupportedChainsOutputDTO { + return SupportedChainsOutputDTOFromJSONTyped(json, false) +} + +export function SupportedChainsOutputDTOFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SupportedChainsOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: (json['result'] as Array).map(ChainDetailsFromJSON), + } +} + +export function SupportedChainsOutputDTOToJSON(value?: SupportedChainsOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: (value.result as Array).map(ChainDetailsToJSON), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenAsset.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenAsset.ts new file mode 100644 index 000000000..e3c21422d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenAsset.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface TokenAsset + */ +export interface TokenAsset { + /** + * Name of token. + * @type {string} + * @memberof TokenAsset + */ + name?: string + /** + * Address of token. + * @type {string} + * @memberof TokenAsset + */ + address: string + /** + * URL for icon of token. + * @type {string} + * @memberof TokenAsset + */ + icon?: string + /** + * Decimal used for token. + * @type {number} + * @memberof TokenAsset + */ + decimals?: number + /** + * Symbol of token. + * @type {string} + * @memberof TokenAsset + */ + symbol: string + /** + * Chain id of the token + * @type {string} + * @memberof TokenAsset + */ + chainId: TokenAssetChainIdEnum +} + +/** + * @export + * @enum {string} + */ +export enum TokenAssetChainIdEnum { + Ethereum = 'ETHEREUM', + Optimism = 'OPTIMISM', + Bsc = 'BSC', + Xdai = 'XDAI', + Polygon = 'POLYGON', + Fantom = 'FANTOM', + Arbitrum = 'ARBITRUM', + Avalanche = 'AVALANCHE', +} + +export function TokenAssetFromJSON(json: any): TokenAsset { + return TokenAssetFromJSONTyped(json, false) +} + +export function TokenAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenAsset { + if (json === undefined || json === null) { + return json + } + return { + name: !exists(json, 'name') ? undefined : json['name'], + address: json['address'], + icon: !exists(json, 'icon') ? undefined : json['icon'], + decimals: !exists(json, 'decimals') ? undefined : json['decimals'], + symbol: json['symbol'], + chainId: json['chainId'], + } +} + +export function TokenAssetToJSON(value?: TokenAsset | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + name: value.name, + address: value.address, + icon: value.icon, + decimals: value.decimals, + symbol: value.symbol, + chainId: value.chainId, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTO.ts new file mode 100644 index 000000000..9dd176a89 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + TokenBalanceReponseDTOResult, + TokenBalanceReponseDTOResultFromJSON, + TokenBalanceReponseDTOResultFromJSONTyped, + TokenBalanceReponseDTOResultToJSON, +} from './TokenBalanceReponseDTOResult' + +/** + * + * @export + * @interface TokenBalanceReponseDTO + */ +export interface TokenBalanceReponseDTO { + /** + * + * @type {boolean} + * @memberof TokenBalanceReponseDTO + */ + success: boolean + /** + * + * @type {TokenBalanceReponseDTOResult} + * @memberof TokenBalanceReponseDTO + */ + result: TokenBalanceReponseDTOResult +} + +export function TokenBalanceReponseDTOFromJSON(json: any): TokenBalanceReponseDTO { + return TokenBalanceReponseDTOFromJSONTyped(json, false) +} + +export function TokenBalanceReponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenBalanceReponseDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: TokenBalanceReponseDTOResultFromJSON(json['result']), + } +} + +export function TokenBalanceReponseDTOToJSON(value?: TokenBalanceReponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: TokenBalanceReponseDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTOResult.ts new file mode 100644 index 000000000..3c58dde0e --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenBalanceReponseDTOResult.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface TokenBalanceReponseDTOResult + */ +export interface TokenBalanceReponseDTOResult { + /** + * + * @type {number} + * @memberof TokenBalanceReponseDTOResult + */ + chainId: number + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + tokenAddress: string + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + userAddress: string + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + balance: string + /** + * + * @type {number} + * @memberof TokenBalanceReponseDTOResult + */ + decimals: number + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + icon: string + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + symbol: string + /** + * + * @type {string} + * @memberof TokenBalanceReponseDTOResult + */ + name: string +} + +export function TokenBalanceReponseDTOResultFromJSON(json: any): TokenBalanceReponseDTOResult { + return TokenBalanceReponseDTOResultFromJSONTyped(json, false) +} + +export function TokenBalanceReponseDTOResultFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenBalanceReponseDTOResult { + if (json === undefined || json === null) { + return json + } + return { + chainId: json['chainId'], + tokenAddress: json['tokenAddress'], + userAddress: json['userAddress'], + balance: json['balance'], + decimals: json['decimals'], + icon: json['icon'], + symbol: json['symbol'], + name: json['name'], + } +} + +export function TokenBalanceReponseDTOResultToJSON(value?: TokenBalanceReponseDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + chainId: value.chainId, + tokenAddress: value.tokenAddress, + userAddress: value.userAddress, + balance: value.balance, + decimals: value.decimals, + icon: value.icon, + symbol: value.symbol, + name: value.name, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenListOutputDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenListOutputDTO.ts new file mode 100644 index 000000000..a034ad6ae --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenListOutputDTO.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { TokenAsset, TokenAssetFromJSON, TokenAssetFromJSONTyped, TokenAssetToJSON } from './TokenAsset' + +/** + * + * @export + * @interface TokenListOutputDTO + */ +export interface TokenListOutputDTO { + /** + * Status of API. + * @type {boolean} + * @memberof TokenListOutputDTO + */ + success: boolean + /** + * + * @type {Array} + * @memberof TokenListOutputDTO + */ + result: Array +} + +export function TokenListOutputDTOFromJSON(json: any): TokenListOutputDTO { + return TokenListOutputDTOFromJSONTyped(json, false) +} + +export function TokenListOutputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenListOutputDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: (json['result'] as Array).map(TokenAssetFromJSON), + } +} + +export function TokenListOutputDTOToJSON(value?: TokenListOutputDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: (value.result as Array).map(TokenAssetToJSON), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTO.ts new file mode 100644 index 000000000..ed0e4717d --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTO.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +import { + TokenPriceResponseDTOResult, + TokenPriceResponseDTOResultFromJSON, + TokenPriceResponseDTOResultFromJSONTyped, + TokenPriceResponseDTOResultToJSON, +} from './TokenPriceResponseDTOResult' + +/** + * + * @export + * @interface TokenPriceResponseDTO + */ +export interface TokenPriceResponseDTO { + /** + * + * @type {boolean} + * @memberof TokenPriceResponseDTO + */ + success: boolean + /** + * + * @type {TokenPriceResponseDTOResult} + * @memberof TokenPriceResponseDTO + */ + result: TokenPriceResponseDTOResult +} + +export function TokenPriceResponseDTOFromJSON(json: any): TokenPriceResponseDTO { + return TokenPriceResponseDTOFromJSONTyped(json, false) +} + +export function TokenPriceResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPriceResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: TokenPriceResponseDTOResultFromJSON(json['result']), + } +} + +export function TokenPriceResponseDTOToJSON(value?: TokenPriceResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: TokenPriceResponseDTOResultToJSON(value.result), + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTOResult.ts b/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTOResult.ts new file mode 100644 index 000000000..8e425f561 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TokenPriceResponseDTOResult.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface TokenPriceResponseDTOResult + */ +export interface TokenPriceResponseDTOResult { + /** + * + * @type {number} + * @memberof TokenPriceResponseDTOResult + */ + chainId: number + /** + * + * @type {string} + * @memberof TokenPriceResponseDTOResult + */ + tokenAddress: string + /** + * + * @type {number} + * @memberof TokenPriceResponseDTOResult + */ + tokenPrice: number + /** + * + * @type {string} + * @memberof TokenPriceResponseDTOResult + */ + currency: string +} + +export function TokenPriceResponseDTOResultFromJSON(json: any): TokenPriceResponseDTOResult { + return TokenPriceResponseDTOResultFromJSONTyped(json, false) +} + +export function TokenPriceResponseDTOResultFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenPriceResponseDTOResult { + if (json === undefined || json === null) { + return json + } + return { + chainId: json['chainId'], + tokenAddress: json['tokenAddress'], + tokenPrice: json['tokenPrice'], + currency: json['currency'], + } +} + +export function TokenPriceResponseDTOResultToJSON(value?: TokenPriceResponseDTOResult | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + chainId: value.chainId, + tokenAddress: value.tokenAddress, + tokenPrice: value.tokenPrice, + currency: value.currency, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/TransactionReceiptResponseDTO.ts b/src/services/EcoBridge/Socket/api/generated/models/TransactionReceiptResponseDTO.ts new file mode 100644 index 000000000..1ac15d724 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/TransactionReceiptResponseDTO.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime' +/** + * + * @export + * @interface TransactionReceiptResponseDTO + */ +export interface TransactionReceiptResponseDTO { + /** + * Status of API. + * @type {boolean} + * @memberof TransactionReceiptResponseDTO + */ + success: boolean + /** + * + * @type {object} + * @memberof TransactionReceiptResponseDTO + */ + result: object +} + +export function TransactionReceiptResponseDTOFromJSON(json: any): TransactionReceiptResponseDTO { + return TransactionReceiptResponseDTOFromJSONTyped(json, false) +} + +export function TransactionReceiptResponseDTOFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransactionReceiptResponseDTO { + if (json === undefined || json === null) { + return json + } + return { + success: json['success'], + result: json['result'], + } +} + +export function TransactionReceiptResponseDTOToJSON(value?: TransactionReceiptResponseDTO | null): any { + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + success: value.success, + result: value.result, + } +} diff --git a/src/services/EcoBridge/Socket/api/generated/models/index.ts b/src/services/EcoBridge/Socket/api/generated/models/index.ts new file mode 100644 index 000000000..62a3848f7 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/models/index.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './ActiveRouteResponse' +export * from './ActiveRoutesOutputDTO' +export * from './ApprovalData' +export * from './ApprovalOutputDTO' +export * from './ApprovalOutputDTOResult' +export * from './ApprovalTxOutputDTO' +export * from './ApprovalTxOutputDTOResult' +export * from './Balance' +export * from './BalanceResult' +export * from './BridgeDetails' +export * from './BridgeStatusResponse' +export * from './BridgeStatusResponseDTO' +export * from './BridgeSwapInputDTO' +export * from './ChainDetails' +export * from './DexSwapInputDTO' +export * from './GasPriceResponseDTO' +export * from './GasPriceResponseDTOResult' +export * from './GasPriceResponseDTOResultFast' +export * from './GasTokenDetails' +export * from './HealthResponseDTO' +export * from './NextTxOutputDTO' +export * from './NextTxResponse' +export * from './QuoteOutputDTO' +export * from './QuoteOutputDTOResult' +export * from './Route' +export * from './RouteStatusOutputDTO' +export * from './SingleTxDTO' +export * from './SingleTxOutputDTO' +export * from './SingleTxResponse' +export * from './StartActiveRouteInputDTO' +export * from './StartActiveRouteResponseDTO' +export * from './SupportedBridgesOutputDTO' +export * from './SupportedChainsOutputDTO' +export * from './TokenAsset' +export * from './TokenBalanceReponseDTO' +export * from './TokenBalanceReponseDTOResult' +export * from './TokenListOutputDTO' +export * from './TokenPriceResponseDTO' +export * from './TokenPriceResponseDTOResult' +export * from './TransactionReceiptResponseDTO' diff --git a/src/services/EcoBridge/Socket/api/generated/runtime.ts b/src/services/EcoBridge/Socket/api/generated/runtime.ts new file mode 100644 index 000000000..04ca33586 --- /dev/null +++ b/src/services/EcoBridge/Socket/api/generated/runtime.ts @@ -0,0 +1,323 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Movr Aggregator API + * The Movr Aggregator API description + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export const BASE_PATH = 'http://localhost'.replace(/\/+$/, '') + +const isBlob = (value: any) => typeof Blob !== 'undefined' && value instanceof Blob + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + private middleware: Middleware[] + + constructor(protected configuration = new Configuration()) { + this.middleware = configuration.middleware + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone() + next.middleware = next.middleware.concat(...middlewares) + return next + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map(pre => ({ pre })) + return this.withMiddleware(...middlewares) + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map(post => ({ post })) + return this.withMiddleware(...middlewares) + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit): Promise { + const { url, init } = this.createFetchParams(context, initOverrides) + const response = await this.fetchApi(url, init) + if (response.status >= 200 && response.status < 300) { + return response + } + throw response + } + + private createFetchParams(context: RequestOpts, initOverrides?: RequestInit) { + let url = this.configuration.basePath + context.path + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query) + } + const body = + (typeof FormData !== 'undefined' && context.body instanceof FormData) || + context.body instanceof URLSearchParams || + isBlob(context.body) + ? context.body + : JSON.stringify(context.body) + + const headers = Object.assign({}, this.configuration.headers, context.headers) + const init = { + method: context.method, + headers: headers, + body, + credentials: this.configuration.credentials, + ...initOverrides, + } + return { url, init } + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init } + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = + (await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + })) || fetchParams + } + } + let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init) + for (const middleware of this.middleware) { + if (middleware.post) { + response = + (await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response + } + } + return response + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any + const next = new constructor(this.configuration) + next.middleware = this.middleware.slice() + return next + } +} + +export class RequiredError extends Error { + name: 'RequiredError' = 'RequiredError' + constructor(public field: string, msg?: string) { + super(msg) + } +} + +export const COLLECTION_FORMATS = { + csv: ',', + ssv: ' ', + tsv: '\t', + pipes: '|', +} + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch'] + +export interface ConfigurationParameters { + basePath?: string // override base path + fetchApi?: FetchAPI // override for fetch implementation + middleware?: Middleware[] // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string // stringify function for query strings + username?: string // parameter for basic security + password?: string // parameter for basic security + apiKey?: string | ((name: string) => string) // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise) // parameter for oauth2 security + headers?: HTTPHeaders //header params we want to use on every request + credentials?: RequestCredentials //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi + } + + get middleware(): Middleware[] { + return this.configuration.middleware || [] + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring + } + + get username(): string | undefined { + return this.configuration.username + } + + get password(): string | undefined { + return this.configuration.password + } + + get apiKey(): ((name: string) => string) | undefined { + const apiKey = this.configuration.apiKey + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey + } + return undefined + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken + } + return undefined + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials + } +} + +export type Json = any +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' +export type HTTPHeaders = { [key: string]: string } +export type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | HTTPQuery +} +export type HTTPBody = Json | FormData | URLSearchParams +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original' + +export interface FetchParams { + url: string + init: RequestInit +} + +export interface RequestOpts { + path: string + method: HTTPMethod + headers: HTTPHeaders + query?: HTTPQuery + body?: HTTPBody +} + +export function exists(json: any, key: string) { + const value = json[key] + return value !== null && value !== undefined +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => { + const fullKey = prefix + (prefix.length ? `[${key}]` : key) + const value = params[key] + if (value instanceof Array) { + const multiValue = value + .map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`) + return `${encodeURIComponent(fullKey)}=${multiValue}` + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}` + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey) + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}` + }) + .filter(part => part.length > 0) + .join('&') +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}) +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true + } + } + return false +} + +export interface Consume { + contentType: string +} + +export interface RequestContext { + fetch: FetchAPI + url: string + init: RequestInit +} + +export interface ResponseContext { + fetch: FetchAPI + url: string + init: RequestInit + response: Response +} + +export interface Middleware { + pre?(context: RequestContext): Promise + post?(context: ResponseContext): Promise +} + +export interface ApiResponse { + raw: Response + value(): Promise +} + +export interface ResponseTransformer { + (json: any): T +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()) + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob() + } +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text() + } +}