chore: remove settlementDataDecimals field and regen graphql (#2442)

This commit is contained in:
Matthew Russell 2022-12-20 19:36:54 -06:00 committed by GitHub
parent 5730e39b32
commit df609d442c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 7 deletions

View File

@ -32,7 +32,6 @@ query Proposal($proposalId: ID!) {
quantum
}
quoteName
settlementDataDecimals
dataSourceSpecForSettlementData {
sourceType {
... on DataSourceDefinitionInternal {

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@ export type PreviousEpochQueryVariables = Types.Exact<{
}>;
export type PreviousEpochQuery = { __typename?: 'Query', epoch: { __typename?: 'Epoch', id: string, validatorsConnection?: { __typename?: 'NodesConnection', edges?: Array<{ __typename?: 'NodeEdge', node: { __typename?: 'Node', id: string, rewardScore?: { __typename?: 'RewardScore', rawValidatorScore: string } | null } } | null> | null } | null } };
export type PreviousEpochQuery = { __typename?: 'Query', epoch: { __typename?: 'Epoch', id: string, validatorsConnection?: { __typename?: 'NodesConnection', edges?: Array<{ __typename?: 'NodeEdge', node: { __typename?: 'Node', id: string, rewardScore?: { __typename?: 'RewardScore', rawValidatorScore: string } | null, rankingScore: { __typename?: 'RankingScore', performanceScore: string } } } | null> | null } | null } };
export const PreviousEpochDocument = gql`
@ -22,6 +22,9 @@ export const PreviousEpochDocument = gql`
rewardScore {
rawValidatorScore
}
rankingScore {
performanceScore
}
}
}
}

View File

@ -151,4 +151,4 @@ export function useOrdersUpdateSubscription(baseOptions: Apollo.SubscriptionHook
return Apollo.useSubscription<OrdersUpdateSubscription, OrdersUpdateSubscriptionVariables>(OrdersUpdateDocument, options);
}
export type OrdersUpdateSubscriptionHookResult = ReturnType<typeof useOrdersUpdateSubscription>;
export type OrdersUpdateSubscriptionResult = Apollo.SubscriptionResult<OrdersUpdateSubscription>;
export type OrdersUpdateSubscriptionResult = Apollo.SubscriptionResult<OrdersUpdateSubscription>;

View File

@ -473,6 +473,35 @@ export type ContinuousTrading = {
tickSize: Scalars['String'];
};
/** Connection type for retrieving cursor-based paginated core snapshot data */
export type CoreSnapshotConnection = {
__typename?: 'CoreSnapshotConnection';
/** The positions in this connection */
edges?: Maybe<Array<CoreSnapshotEdge>>;
/** The pagination information */
pageInfo?: Maybe<PageInfo>;
};
/** A snapshot taken by the core */
export type CoreSnapshotData = {
__typename?: 'CoreSnapshotData';
/** The block hash at the snapshot block height */
blockHash: Scalars['String'];
/** At which block the snapshot was taken */
blockHeight: Scalars['String'];
/** The current version of vega core */
vegaCoreVersion: Scalars['String'];
};
/** Edge type containing the core snapshot cursor information */
export type CoreSnapshotEdge = {
__typename?: 'CoreSnapshotEdge';
/** Cursor identifying the core snapashot data */
cursor: Scalars['String'];
/** The core snapshot data */
node: CoreSnapshotData;
};
/** A data source contains the data sent by a data source */
export type Data = {
__typename?: 'Data';
@ -861,6 +890,33 @@ export type EpochParticipation = {
totalRewards?: Maybe<Scalars['Float']>;
};
/** an aggregated reward summary for a combination of epoch/asset/market/reward type */
export type EpochRewardSummary = {
__typename?: 'EpochRewardSummary';
/** Total quantity of rewards awarded in this asset/market/reward type in this epoch */
amount: Scalars['String'];
/** ID of the Asset */
assetId: Scalars['ID'];
/** The epoch for which summary is generated */
epoch: Scalars['Int'];
/** ID of the market */
marketId?: Maybe<Scalars['ID']>;
/** Type of the reward */
rewardType: AccountType;
};
export type EpochRewardSummaryConnection = {
__typename?: 'EpochRewardSummaryConnection';
edges?: Maybe<Array<Maybe<EpochRewardSummaryEdge>>>;
pageInfo?: Maybe<PageInfo>;
};
export type EpochRewardSummaryEdge = {
__typename?: 'EpochRewardSummaryEdge';
cursor: Scalars['String'];
node: EpochRewardSummary;
};
/** Describes in both human readable and block time when an epoch spans. */
export type EpochTimestamps = {
__typename?: 'EpochTimestamps';
@ -1432,6 +1488,8 @@ export type Market = {
liquidityMonitoringParameters: LiquidityMonitoringParameters;
/** The list of the liquidity provision commitments for this market */
liquidityProvisionsConnection?: Maybe<LiquidityProvisionsConnection>;
/** Liquidity Provision order price range */
lpPriceRange: Scalars['String'];
/** Timestamps for state changes in the market */
marketTimestamps: MarketTimestamps;
/**
@ -1811,6 +1869,8 @@ export type NewMarket = {
decimalPlaces: Scalars['Int'];
/** New market instrument configuration */
instrument: InstrumentConfiguration;
/** Liquidity Provision order price range */
lpPriceRange: Scalars['String'];
/** Metadata for this instrument, tags */
metadata?: Maybe<Array<Scalars['String']>>;
/** New market risk configuration */
@ -3136,12 +3196,16 @@ export type Query = {
assetsConnection?: Maybe<AssetsConnection>;
/** Get historical balances for an account within the given date range */
balanceChanges: AggregatedBalanceConnection;
/** List core snapshots */
coreSnapshots?: Maybe<CoreSnapshotConnection>;
/** Find a deposit using its ID */
deposit?: Maybe<Deposit>;
/** Fetch all deposits */
deposits?: Maybe<DepositsConnection>;
/** Get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch */
epoch: Epoch;
/** List reward summary per epoch by asset, market, reward type */
epochRewardSummaries?: Maybe<EpochRewardSummaryConnection>;
/** Get the signatures bundle to allowlist an ERC20 token in the collateral bridge */
erc20ListAssetBundle?: Maybe<Erc20ListAssetBundle>;
/** Get the signature bundle to add a particular validator to the signer list of the multisig contract */
@ -3247,6 +3311,12 @@ export type QuerybalanceChangesArgs = {
};
/** Queries allow a caller to read data and filter data via GraphQL. */
export type QuerycoreSnapshotsArgs = {
pagination?: InputMaybe<Pagination>;
};
/** Queries allow a caller to read data and filter data via GraphQL. */
export type QuerydepositArgs = {
id: Scalars['ID'];
@ -3266,6 +3336,14 @@ export type QueryepochArgs = {
};
/** Queries allow a caller to read data and filter data via GraphQL. */
export type QueryepochRewardSummariesArgs = {
fromEpoch?: InputMaybe<Scalars['Int']>;
pagination?: InputMaybe<Pagination>;
toEpoch?: InputMaybe<Scalars['Int']>;
};
/** Queries allow a caller to read data and filter data via GraphQL. */
export type Queryerc20ListAssetBundleArgs = {
assetId: Scalars['ID'];
@ -4265,7 +4343,7 @@ export enum TransferType {
TRANSFER_TYPE_MTM_LOSS = 'TRANSFER_TYPE_MTM_LOSS',
/** Funds added to margin account after mark to market gain */
TRANSFER_TYPE_MTM_WIN = 'TRANSFER_TYPE_MTM_WIN',
/** Staking reward received */
/** Reward payout received */
TRANSFER_TYPE_REWARD_PAYOUT = 'TRANSFER_TYPE_REWARD_PAYOUT',
/** A network internal instruction for the collateral engine to move funds from the pending transfers pool account into the destination account */
TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE = 'TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE',