regenerate based on new API client (#86)

* regenerate based on new API client

* lint

* run projects on different ports
This commit is contained in:
Dexter Edwards 2022-03-17 09:09:48 +00:00 committed by GitHub
parent d9e57f6694
commit 7b4437f407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 158 additions and 198 deletions

View File

@ -1,5 +1,5 @@
{ {
"baseUrl": "http://localhost:4200", "baseUrl": "http://localhost:3000",
"projectId": "et4snf", "projectId": "et4snf",
"fileServerFolder": ".", "fileServerFolder": ".",
"fixturesFolder": false, "fixturesFolder": false,

View File

@ -40,6 +40,7 @@
"serve": { "serve": {
"executor": "@nrwl/web:dev-server", "executor": "@nrwl/web:dev-server",
"options": { "options": {
"port": 3000,
"buildTarget": "explorer:build", "buildTarget": "explorer:build",
"hmr": true "hmr": true
}, },

View File

@ -11,92 +11,92 @@
* The various account types we have (used by collateral) * The various account types we have (used by collateral)
*/ */
export enum AccountType { export enum AccountType {
Bond = 'Bond', Bond = "Bond",
FeeInfrastructure = 'FeeInfrastructure', FeeInfrastructure = "FeeInfrastructure",
FeeLiquidity = 'FeeLiquidity', FeeLiquidity = "FeeLiquidity",
General = 'General', General = "General",
GlobalInsurance = 'GlobalInsurance', GlobalInsurance = "GlobalInsurance",
Insurance = 'Insurance', Insurance = "Insurance",
LockWithdraw = 'LockWithdraw', LockWithdraw = "LockWithdraw",
Margin = 'Margin', Margin = "Margin",
Settlement = 'Settlement', Settlement = "Settlement",
} }
export enum AuctionTrigger { export enum AuctionTrigger {
Batch = 'Batch', Batch = "Batch",
Liquidity = 'Liquidity', Liquidity = "Liquidity",
Opening = 'Opening', Opening = "Opening",
Price = 'Price', Price = "Price",
Unspecified = 'Unspecified', Unspecified = "Unspecified",
} }
/** /**
* The current state of a market * The current state of a market
*/ */
export enum MarketState { export enum MarketState {
Active = 'Active', Active = "Active",
Cancelled = 'Cancelled', Cancelled = "Cancelled",
Closed = 'Closed', Closed = "Closed",
Pending = 'Pending', Pending = "Pending",
Proposed = 'Proposed', Proposed = "Proposed",
Rejected = 'Rejected', Rejected = "Rejected",
Settled = 'Settled', Settled = "Settled",
Suspended = 'Suspended', Suspended = "Suspended",
TradingTerminated = 'TradingTerminated', TradingTerminated = "TradingTerminated",
} }
/** /**
* What market trading mode are we in * What market trading mode are we in
*/ */
export enum MarketTradingMode { export enum MarketTradingMode {
BatchAuction = 'BatchAuction', BatchAuction = "BatchAuction",
Continuous = 'Continuous', Continuous = "Continuous",
MonitoringAuction = 'MonitoringAuction', MonitoringAuction = "MonitoringAuction",
OpeningAuction = 'OpeningAuction', OpeningAuction = "OpeningAuction",
} }
export enum NodeStatus { export enum NodeStatus {
NonValidator = 'NonValidator', NonValidator = "NonValidator",
Validator = 'Validator', Validator = "Validator",
} }
/** /**
* Reason for the proposal being rejected by the core node * Reason for the proposal being rejected by the core node
*/ */
export enum ProposalRejectionReason { export enum ProposalRejectionReason {
CloseTimeTooLate = 'CloseTimeTooLate', CloseTimeTooLate = "CloseTimeTooLate",
CloseTimeTooSoon = 'CloseTimeTooSoon', CloseTimeTooSoon = "CloseTimeTooSoon",
CouldNotInstantiateMarket = 'CouldNotInstantiateMarket', CouldNotInstantiateMarket = "CouldNotInstantiateMarket",
EnactTimeTooLate = 'EnactTimeTooLate', EnactTimeTooLate = "EnactTimeTooLate",
EnactTimeTooSoon = 'EnactTimeTooSoon', EnactTimeTooSoon = "EnactTimeTooSoon",
IncompatibleTimestamps = 'IncompatibleTimestamps', IncompatibleTimestamps = "IncompatibleTimestamps",
InsufficientTokens = 'InsufficientTokens', InsufficientTokens = "InsufficientTokens",
InvalidAsset = 'InvalidAsset', InvalidAsset = "InvalidAsset",
InvalidAssetDetails = 'InvalidAssetDetails', InvalidAssetDetails = "InvalidAssetDetails",
InvalidFeeAmount = 'InvalidFeeAmount', InvalidFeeAmount = "InvalidFeeAmount",
InvalidFutureMaturityTimestamp = 'InvalidFutureMaturityTimestamp', InvalidFutureMaturityTimestamp = "InvalidFutureMaturityTimestamp",
InvalidFutureProduct = 'InvalidFutureProduct', InvalidFutureProduct = "InvalidFutureProduct",
InvalidInstrumentSecurity = 'InvalidInstrumentSecurity', InvalidInstrumentSecurity = "InvalidInstrumentSecurity",
InvalidRiskParameter = 'InvalidRiskParameter', InvalidRiskParameter = "InvalidRiskParameter",
InvalidShape = 'InvalidShape', InvalidShape = "InvalidShape",
MajorityThresholdNotReached = 'MajorityThresholdNotReached', MajorityThresholdNotReached = "MajorityThresholdNotReached",
MarketMissingLiquidityCommitment = 'MarketMissingLiquidityCommitment', MarketMissingLiquidityCommitment = "MarketMissingLiquidityCommitment",
MissingBuiltinAssetField = 'MissingBuiltinAssetField', MissingBuiltinAssetField = "MissingBuiltinAssetField",
MissingCommitmentAmount = 'MissingCommitmentAmount', MissingCommitmentAmount = "MissingCommitmentAmount",
MissingERC20ContractAddress = 'MissingERC20ContractAddress', MissingERC20ContractAddress = "MissingERC20ContractAddress",
NetworkParameterInvalidKey = 'NetworkParameterInvalidKey', NetworkParameterInvalidKey = "NetworkParameterInvalidKey",
NetworkParameterInvalidValue = 'NetworkParameterInvalidValue', NetworkParameterInvalidValue = "NetworkParameterInvalidValue",
NetworkParameterValidationFailed = 'NetworkParameterValidationFailed', NetworkParameterValidationFailed = "NetworkParameterValidationFailed",
NoProduct = 'NoProduct', NoProduct = "NoProduct",
NoRiskParameters = 'NoRiskParameters', NoRiskParameters = "NoRiskParameters",
NoTradingMode = 'NoTradingMode', NoTradingMode = "NoTradingMode",
NodeValidationFailed = 'NodeValidationFailed', NodeValidationFailed = "NodeValidationFailed",
OpeningAuctionDurationTooLarge = 'OpeningAuctionDurationTooLarge', OpeningAuctionDurationTooLarge = "OpeningAuctionDurationTooLarge",
OpeningAuctionDurationTooSmall = 'OpeningAuctionDurationTooSmall', OpeningAuctionDurationTooSmall = "OpeningAuctionDurationTooSmall",
ParticipationThresholdNotReached = 'ParticipationThresholdNotReached', ParticipationThresholdNotReached = "ParticipationThresholdNotReached",
ProductMaturityIsPassed = 'ProductMaturityIsPassed', ProductMaturityIsPassed = "ProductMaturityIsPassed",
UnsupportedProduct = 'UnsupportedProduct', UnsupportedProduct = "UnsupportedProduct",
UnsupportedTradingMode = 'UnsupportedTradingMode', UnsupportedTradingMode = "UnsupportedTradingMode",
} }
/** /**
@ -107,18 +107,18 @@ export enum ProposalRejectionReason {
* Proposal can enter Failed state from any other state. * Proposal can enter Failed state from any other state.
*/ */
export enum ProposalState { export enum ProposalState {
Declined = 'Declined', Declined = "Declined",
Enacted = 'Enacted', Enacted = "Enacted",
Failed = 'Failed', Failed = "Failed",
Open = 'Open', Open = "Open",
Passed = 'Passed', Passed = "Passed",
Rejected = 'Rejected', Rejected = "Rejected",
WaitingForNodeVote = 'WaitingForNodeVote', WaitingForNodeVote = "WaitingForNodeVote",
} }
export enum VoteValue { export enum VoteValue {
No = 'No', No = "No",
Yes = 'Yes', Yes = "Yes",
} }
//============================================================== //==============================================================

View File

@ -8,7 +8,7 @@
// ==================================================== // ====================================================
export interface Guess_party { export interface Guess_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -16,7 +16,7 @@ export interface Guess_party {
} }
export interface Guess_market { export interface Guess_market {
__typename: 'Market'; __typename: "Market";
/** /**
* Market ID * Market ID
*/ */

View File

@ -3,14 +3,14 @@
// @generated // @generated
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
import { AccountType } from './../../../../__generated__/globalTypes'; import { AccountType } from "./../../../../__generated__/globalTypes";
// ==================================================== // ====================================================
// GraphQL query operation: AssetsQuery // GraphQL query operation: AssetsQuery
// ==================================================== // ====================================================
export interface AssetsQuery_assets_source_ERC20 { export interface AssetsQuery_assets_source_ERC20 {
__typename: 'ERC20'; __typename: "ERC20";
/** /**
* The address of the erc20 contract * The address of the erc20 contract
*/ */
@ -18,19 +18,17 @@ export interface AssetsQuery_assets_source_ERC20 {
} }
export interface AssetsQuery_assets_source_BuiltinAsset { export interface AssetsQuery_assets_source_BuiltinAsset {
__typename: 'BuiltinAsset'; __typename: "BuiltinAsset";
/** /**
* Maximum amount that can be requested by a party through the built-in asset faucet at a time * Maximum amount that can be requested by a party through the built-in asset faucet at a time
*/ */
maxFaucetAmountMint: string; maxFaucetAmountMint: string;
} }
export type AssetsQuery_assets_source = export type AssetsQuery_assets_source = AssetsQuery_assets_source_ERC20 | AssetsQuery_assets_source_BuiltinAsset;
| AssetsQuery_assets_source_ERC20
| AssetsQuery_assets_source_BuiltinAsset;
export interface AssetsQuery_assets_infrastructureFeeAccount_market { export interface AssetsQuery_assets_infrastructureFeeAccount_market {
__typename: 'Market'; __typename: "Market";
/** /**
* Market ID * Market ID
*/ */
@ -38,7 +36,7 @@ export interface AssetsQuery_assets_infrastructureFeeAccount_market {
} }
export interface AssetsQuery_assets_infrastructureFeeAccount { export interface AssetsQuery_assets_infrastructureFeeAccount {
__typename: 'Account'; __typename: "Account";
/** /**
* Account type (General, Margin, etc) * Account type (General, Margin, etc)
*/ */
@ -54,7 +52,7 @@ export interface AssetsQuery_assets_infrastructureFeeAccount {
} }
export interface AssetsQuery_assets { export interface AssetsQuery_assets {
__typename: 'Asset'; __typename: "Asset";
/** /**
* The id of the asset * The id of the asset
*/ */
@ -75,10 +73,6 @@ export interface AssetsQuery_assets {
* The precision of the asset * The precision of the asset
*/ */
decimals: number; decimals: number;
/**
* The min stake to become an lp for any market using this asset for settlement
*/
minLpStake: string;
/** /**
* The origin source of the asset (e.g: an erc20 asset) * The origin source of the asset (e.g: an erc20 asset)
*/ */

View File

@ -11,7 +11,6 @@ export const ASSETS_QUERY = gql`
symbol symbol
totalSupply totalSupply
decimals decimals
minLpStake
source { source {
... on ERC20 { ... on ERC20 {
contractAddress contractAddress

View File

@ -3,18 +3,14 @@
// @generated // @generated
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
import { import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../__generated__/globalTypes";
ProposalState,
ProposalRejectionReason,
VoteValue,
} from './../../../../__generated__/globalTypes';
// ==================================================== // ====================================================
// GraphQL query operation: ProposalsQuery // GraphQL query operation: ProposalsQuery
// ==================================================== // ====================================================
export interface ProposalsQuery_proposals_party { export interface ProposalsQuery_proposals_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -22,7 +18,7 @@ export interface ProposalsQuery_proposals_party {
} }
export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument { export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument {
__typename: 'InstrumentConfiguration'; __typename: "InstrumentConfiguration";
/** /**
* Full and fairly descriptive name for the instrument * Full and fairly descriptive name for the instrument
*/ */
@ -30,7 +26,7 @@ export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument {
} }
export interface ProposalsQuery_proposals_terms_change_NewMarket { export interface ProposalsQuery_proposals_terms_change_NewMarket {
__typename: 'NewMarket'; __typename: "NewMarket";
/** /**
* New market instrument configuration * New market instrument configuration
*/ */
@ -38,12 +34,12 @@ export interface ProposalsQuery_proposals_terms_change_NewMarket {
} }
export interface ProposalsQuery_proposals_terms_change_UpdateMarket { export interface ProposalsQuery_proposals_terms_change_UpdateMarket {
__typename: 'UpdateMarket'; __typename: "UpdateMarket";
marketId: string; marketId: string;
} }
export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset { export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset {
__typename: 'BuiltinAsset'; __typename: "BuiltinAsset";
/** /**
* Maximum amount that can be requested by a party through the built-in asset faucet at a time * Maximum amount that can be requested by a party through the built-in asset faucet at a time
*/ */
@ -51,19 +47,17 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAs
} }
export interface ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20 { export interface ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20 {
__typename: 'ERC20'; __typename: "ERC20";
/** /**
* The address of the erc20 contract * The address of the erc20 contract
*/ */
contractAddress: string; contractAddress: string;
} }
export type ProposalsQuery_proposals_terms_change_NewAsset_source = export type ProposalsQuery_proposals_terms_change_NewAsset_source = ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset | ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20;
| ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset
| ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20;
export interface ProposalsQuery_proposals_terms_change_NewAsset { export interface ProposalsQuery_proposals_terms_change_NewAsset {
__typename: 'NewAsset'; __typename: "NewAsset";
/** /**
* The symbol of the asset (e.g: GBP) * The symbol of the asset (e.g: GBP)
*/ */
@ -75,7 +69,7 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset {
} }
export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter { export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter {
__typename: 'NetworkParameter'; __typename: "NetworkParameter";
/** /**
* The name of the network parameter * The name of the network parameter
*/ */
@ -87,18 +81,14 @@ export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_ne
} }
export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter { export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter {
__typename: 'UpdateNetworkParameter'; __typename: "UpdateNetworkParameter";
networkParameter: ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter; networkParameter: ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter;
} }
export type ProposalsQuery_proposals_terms_change = export type ProposalsQuery_proposals_terms_change = ProposalsQuery_proposals_terms_change_NewMarket | ProposalsQuery_proposals_terms_change_UpdateMarket | ProposalsQuery_proposals_terms_change_NewAsset | ProposalsQuery_proposals_terms_change_UpdateNetworkParameter;
| ProposalsQuery_proposals_terms_change_NewMarket
| ProposalsQuery_proposals_terms_change_UpdateMarket
| ProposalsQuery_proposals_terms_change_NewAsset
| ProposalsQuery_proposals_terms_change_UpdateNetworkParameter;
export interface ProposalsQuery_proposals_terms { export interface ProposalsQuery_proposals_terms {
__typename: 'ProposalTerms'; __typename: "ProposalTerms";
/** /**
* RFC3339Nano time and date when voting closes for this proposal. * RFC3339Nano time and date when voting closes for this proposal.
* Constrained by "minClose" and "maxClose" network parameters. * Constrained by "minClose" and "maxClose" network parameters.
@ -116,7 +106,7 @@ export interface ProposalsQuery_proposals_terms {
} }
export interface ProposalsQuery_proposals_votes_yes_votes_party_stake { export interface ProposalsQuery_proposals_votes_yes_votes_party_stake {
__typename: 'PartyStake'; __typename: "PartyStake";
/** /**
* The stake currently available for the party * The stake currently available for the party
*/ */
@ -124,7 +114,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes_party_stake {
} }
export interface ProposalsQuery_proposals_votes_yes_votes_party { export interface ProposalsQuery_proposals_votes_yes_votes_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -136,7 +126,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes_party {
} }
export interface ProposalsQuery_proposals_votes_yes_votes { export interface ProposalsQuery_proposals_votes_yes_votes {
__typename: 'Vote'; __typename: "Vote";
/** /**
* The vote value cast * The vote value cast
*/ */
@ -152,7 +142,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes {
} }
export interface ProposalsQuery_proposals_votes_yes { export interface ProposalsQuery_proposals_votes_yes {
__typename: 'ProposalVoteSide'; __typename: "ProposalVoteSide";
/** /**
* Total tokens of governance token from the votes casted for this side * Total tokens of governance token from the votes casted for this side
*/ */
@ -168,7 +158,7 @@ export interface ProposalsQuery_proposals_votes_yes {
} }
export interface ProposalsQuery_proposals_votes_no_votes_party_stake { export interface ProposalsQuery_proposals_votes_no_votes_party_stake {
__typename: 'PartyStake'; __typename: "PartyStake";
/** /**
* The stake currently available for the party * The stake currently available for the party
*/ */
@ -176,7 +166,7 @@ export interface ProposalsQuery_proposals_votes_no_votes_party_stake {
} }
export interface ProposalsQuery_proposals_votes_no_votes_party { export interface ProposalsQuery_proposals_votes_no_votes_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -188,7 +178,7 @@ export interface ProposalsQuery_proposals_votes_no_votes_party {
} }
export interface ProposalsQuery_proposals_votes_no_votes { export interface ProposalsQuery_proposals_votes_no_votes {
__typename: 'Vote'; __typename: "Vote";
/** /**
* The vote value cast * The vote value cast
*/ */
@ -204,7 +194,7 @@ export interface ProposalsQuery_proposals_votes_no_votes {
} }
export interface ProposalsQuery_proposals_votes_no { export interface ProposalsQuery_proposals_votes_no {
__typename: 'ProposalVoteSide'; __typename: "ProposalVoteSide";
/** /**
* Total tokens of governance token from the votes casted for this side * Total tokens of governance token from the votes casted for this side
*/ */
@ -220,7 +210,7 @@ export interface ProposalsQuery_proposals_votes_no {
} }
export interface ProposalsQuery_proposals_votes { export interface ProposalsQuery_proposals_votes {
__typename: 'ProposalVotes'; __typename: "ProposalVotes";
/** /**
* Yes votes cast for this proposal * Yes votes cast for this proposal
*/ */
@ -232,7 +222,7 @@ export interface ProposalsQuery_proposals_votes {
} }
export interface ProposalsQuery_proposals { export interface ProposalsQuery_proposals {
__typename: 'Proposal'; __typename: "Proposal";
/** /**
* Proposal ID that is filled by VEGA once proposal reaches the network * Proposal ID that is filled by VEGA once proposal reaches the network
*/ */

View File

@ -3,19 +3,14 @@
// @generated // @generated
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
import { import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "./../../../../__generated__/globalTypes";
MarketTradingMode,
MarketState,
AccountType,
AuctionTrigger,
} from './../../../../__generated__/globalTypes';
// ==================================================== // ====================================================
// GraphQL query operation: MarketsQuery // GraphQL query operation: MarketsQuery
// ==================================================== // ====================================================
export interface MarketsQuery_markets_fees_factors { export interface MarketsQuery_markets_fees_factors {
__typename: 'FeeFactors'; __typename: "FeeFactors";
/** /**
* The factor applied to calculate MakerFees, a non-negative float * The factor applied to calculate MakerFees, a non-negative float
*/ */
@ -31,7 +26,7 @@ export interface MarketsQuery_markets_fees_factors {
} }
export interface MarketsQuery_markets_fees { export interface MarketsQuery_markets_fees {
__typename: 'Fees'; __typename: "Fees";
/** /**
* The factors used to calculate the different fees * The factors used to calculate the different fees
*/ */
@ -39,7 +34,7 @@ export interface MarketsQuery_markets_fees {
} }
export interface MarketsQuery_markets_tradableInstrument_instrument_metadata { export interface MarketsQuery_markets_tradableInstrument_instrument_metadata {
__typename: 'InstrumentMetadata'; __typename: "InstrumentMetadata";
/** /**
* An arbitrary list of tags to associated to associate to the Instrument (string list) * An arbitrary list of tags to associated to associate to the Instrument (string list)
*/ */
@ -47,7 +42,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_metadata {
} }
export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset_globalRewardPoolAccount { export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset_globalRewardPoolAccount {
__typename: 'Account'; __typename: "Account";
/** /**
* Balance as string - current account balance (approx. as balances can be updated several times per second) * Balance as string - current account balance (approx. as balances can be updated several times per second)
*/ */
@ -55,7 +50,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett
} }
export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset { export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset {
__typename: 'Asset'; __typename: "Asset";
/** /**
* The id of the asset * The id of the asset
*/ */
@ -79,11 +74,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett
} }
export interface MarketsQuery_markets_tradableInstrument_instrument_product { export interface MarketsQuery_markets_tradableInstrument_instrument_product {
__typename: 'Future'; __typename: "Future";
/**
* RFC3339Nano maturity date of the product
*/
maturity: string;
/** /**
* The name of the asset (string) * The name of the asset (string)
*/ */
@ -91,7 +82,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product {
} }
export interface MarketsQuery_markets_tradableInstrument_instrument { export interface MarketsQuery_markets_tradableInstrument_instrument {
__typename: 'Instrument'; __typename: "Instrument";
/** /**
* Full and fairly descriptive name for the instrument * Full and fairly descriptive name for the instrument
*/ */
@ -115,7 +106,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument {
} }
export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params { export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params {
__typename: 'LogNormalModelParams'; __typename: "LogNormalModelParams";
/** /**
* r parameter * r parameter
*/ */
@ -131,7 +122,7 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk
} }
export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel { export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel {
__typename: 'LogNormalRiskModel'; __typename: "LogNormalRiskModel";
/** /**
* Tau parameter of the risk model * Tau parameter of the risk model
*/ */
@ -147,7 +138,7 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk
} }
export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params { export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params {
__typename: 'SimpleRiskModelParams'; __typename: "SimpleRiskModelParams";
/** /**
* Risk factor for long * Risk factor for long
*/ */
@ -159,19 +150,17 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskMod
} }
export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel { export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel {
__typename: 'SimpleRiskModel'; __typename: "SimpleRiskModel";
/** /**
* Params for the simple risk model * Params for the simple risk model
*/ */
params: MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params; params: MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params;
} }
export type MarketsQuery_markets_tradableInstrument_riskModel = export type MarketsQuery_markets_tradableInstrument_riskModel = MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel | MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel;
| MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel
| MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel;
export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalingFactors { export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalingFactors {
__typename: 'ScalingFactors'; __typename: "ScalingFactors";
/** /**
* the scaling factor that determines the margin level at which Vega has to search for more money * the scaling factor that determines the margin level at which Vega has to search for more money
*/ */
@ -187,7 +176,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalin
} }
export interface MarketsQuery_markets_tradableInstrument_marginCalculator { export interface MarketsQuery_markets_tradableInstrument_marginCalculator {
__typename: 'MarginCalculator'; __typename: "MarginCalculator";
/** /**
* The scaling factors that will be used for margin calculation * The scaling factors that will be used for margin calculation
*/ */
@ -195,7 +184,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator {
} }
export interface MarketsQuery_markets_tradableInstrument { export interface MarketsQuery_markets_tradableInstrument {
__typename: 'TradableInstrument'; __typename: "TradableInstrument";
/** /**
* An instance of or reference to a fully specified instrument. * An instance of or reference to a fully specified instrument.
*/ */
@ -211,7 +200,7 @@ export interface MarketsQuery_markets_tradableInstrument {
} }
export interface MarketsQuery_markets_openingAuction { export interface MarketsQuery_markets_openingAuction {
__typename: 'AuctionDuration'; __typename: "AuctionDuration";
/** /**
* Duration of the auction in seconds * Duration of the auction in seconds
*/ */
@ -223,7 +212,7 @@ export interface MarketsQuery_markets_openingAuction {
} }
export interface MarketsQuery_markets_priceMonitoringSettings_parameters_triggers { export interface MarketsQuery_markets_priceMonitoringSettings_parameters_triggers {
__typename: 'PriceMonitoringTrigger'; __typename: "PriceMonitoringTrigger";
/** /**
* Price monitoring projection horizon τ in seconds (> 0). * Price monitoring projection horizon τ in seconds (> 0).
*/ */
@ -241,17 +230,15 @@ export interface MarketsQuery_markets_priceMonitoringSettings_parameters_trigger
} }
export interface MarketsQuery_markets_priceMonitoringSettings_parameters { export interface MarketsQuery_markets_priceMonitoringSettings_parameters {
__typename: 'PriceMonitoringParameters'; __typename: "PriceMonitoringParameters";
/** /**
* The list of triggers for this price monitoring * The list of triggers for this price monitoring
*/ */
triggers: triggers: MarketsQuery_markets_priceMonitoringSettings_parameters_triggers[] | null;
| MarketsQuery_markets_priceMonitoringSettings_parameters_triggers[]
| null;
} }
export interface MarketsQuery_markets_priceMonitoringSettings { export interface MarketsQuery_markets_priceMonitoringSettings {
__typename: 'PriceMonitoringSettings'; __typename: "PriceMonitoringSettings";
/** /**
* Specified a set of PriceMonitoringParameters to be use for price monitoring purposes * Specified a set of PriceMonitoringParameters to be use for price monitoring purposes
*/ */
@ -263,7 +250,7 @@ export interface MarketsQuery_markets_priceMonitoringSettings {
} }
export interface MarketsQuery_markets_liquidityMonitoringParameters_targetStakeParameters { export interface MarketsQuery_markets_liquidityMonitoringParameters_targetStakeParameters {
__typename: 'TargetStakeParameters'; __typename: "TargetStakeParameters";
/** /**
* Specifies length of time window expressed in seconds for target stake calculation * Specifies length of time window expressed in seconds for target stake calculation
*/ */
@ -275,7 +262,7 @@ export interface MarketsQuery_markets_liquidityMonitoringParameters_targetStakeP
} }
export interface MarketsQuery_markets_liquidityMonitoringParameters { export interface MarketsQuery_markets_liquidityMonitoringParameters {
__typename: 'LiquidityMonitoringParameters'; __typename: "LiquidityMonitoringParameters";
/** /**
* Specifies the triggering ratio for entering liquidity auction * Specifies the triggering ratio for entering liquidity auction
*/ */
@ -287,7 +274,7 @@ export interface MarketsQuery_markets_liquidityMonitoringParameters {
} }
export interface MarketsQuery_markets_proposal { export interface MarketsQuery_markets_proposal {
__typename: 'Proposal'; __typename: "Proposal";
/** /**
* Proposal ID that is filled by VEGA once proposal reaches the network * Proposal ID that is filled by VEGA once proposal reaches the network
*/ */
@ -295,7 +282,7 @@ export interface MarketsQuery_markets_proposal {
} }
export interface MarketsQuery_markets_accounts_asset { export interface MarketsQuery_markets_accounts_asset {
__typename: 'Asset'; __typename: "Asset";
/** /**
* The id of the asset * The id of the asset
*/ */
@ -307,7 +294,7 @@ export interface MarketsQuery_markets_accounts_asset {
} }
export interface MarketsQuery_markets_accounts { export interface MarketsQuery_markets_accounts {
__typename: 'Account'; __typename: "Account";
/** /**
* Asset, the 'currency' * Asset, the 'currency'
*/ */
@ -323,7 +310,7 @@ export interface MarketsQuery_markets_accounts {
} }
export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger { export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger {
__typename: 'PriceMonitoringTrigger'; __typename: "PriceMonitoringTrigger";
/** /**
* Price monitoring auction extension duration in seconds should the price * Price monitoring auction extension duration in seconds should the price
* breach it's theoretical level over the specified horizon at the specified * breach it's theoretical level over the specified horizon at the specified
@ -337,7 +324,7 @@ export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger {
} }
export interface MarketsQuery_markets_data_priceMonitoringBounds { export interface MarketsQuery_markets_data_priceMonitoringBounds {
__typename: 'PriceMonitoringBounds'; __typename: "PriceMonitoringBounds";
/** /**
* Minimum price that isn't currently breaching the specified price monitoring trigger * Minimum price that isn't currently breaching the specified price monitoring trigger
*/ */
@ -357,7 +344,7 @@ export interface MarketsQuery_markets_data_priceMonitoringBounds {
} }
export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party { export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -365,7 +352,7 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party {
} }
export interface MarketsQuery_markets_data_liquidityProviderFeeShare { export interface MarketsQuery_markets_data_liquidityProviderFeeShare {
__typename: 'LiquidityProviderFeeShare'; __typename: "LiquidityProviderFeeShare";
/** /**
* The liquidity provider party id * The liquidity provider party id
*/ */
@ -381,7 +368,7 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare {
} }
export interface MarketsQuery_markets_data { export interface MarketsQuery_markets_data {
__typename: 'MarketData'; __typename: "MarketData";
/** /**
* the mark price (actually an unsgined int) * the mark price (actually an unsgined int)
*/ */
@ -469,9 +456,7 @@ export interface MarketsQuery_markets_data {
/** /**
* A list of valid price ranges per associated trigger * A list of valid price ranges per associated trigger
*/ */
priceMonitoringBounds: priceMonitoringBounds: MarketsQuery_markets_data_priceMonitoringBounds[] | null;
| MarketsQuery_markets_data_priceMonitoringBounds[]
| null;
/** /**
* the market value proxy * the market value proxy
*/ */
@ -479,13 +464,11 @@ export interface MarketsQuery_markets_data {
/** /**
* the equity like share of liquidity fee for each liquidity provider * the equity like share of liquidity fee for each liquidity provider
*/ */
liquidityProviderFeeShare: liquidityProviderFeeShare: MarketsQuery_markets_data_liquidityProviderFeeShare[] | null;
| MarketsQuery_markets_data_liquidityProviderFeeShare[]
| null;
} }
export interface MarketsQuery_markets { export interface MarketsQuery_markets {
__typename: 'Market'; __typename: "Market";
/** /**
* Market ID * Market ID
*/ */

View File

@ -26,7 +26,6 @@ const MARKETS_QUERY = gql`
code code
product { product {
... on Future { ... on Future {
maturity
settlementAsset { settlementAsset {
id id
name name

View File

@ -3,14 +3,14 @@
// @generated // @generated
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
import { AccountType } from '../../../../../__generated__/globalTypes'; import { AccountType } from "./../../../../../__generated__/globalTypes";
// ==================================================== // ====================================================
// GraphQL query operation: PartyAssetsQuery // GraphQL query operation: PartyAssetsQuery
// ==================================================== // ====================================================
export interface PartyAssetsQuery_party_delegations_node { export interface PartyAssetsQuery_party_delegations_node {
__typename: 'Node'; __typename: "Node";
/** /**
* The node url eg n01.vega.xyz * The node url eg n01.vega.xyz
*/ */
@ -19,7 +19,7 @@ export interface PartyAssetsQuery_party_delegations_node {
} }
export interface PartyAssetsQuery_party_delegations { export interface PartyAssetsQuery_party_delegations {
__typename: 'Delegation'; __typename: "Delegation";
/** /**
* Amount delegated * Amount delegated
*/ */
@ -35,7 +35,7 @@ export interface PartyAssetsQuery_party_delegations {
} }
export interface PartyAssetsQuery_party_stake { export interface PartyAssetsQuery_party_stake {
__typename: 'PartyStake'; __typename: "PartyStake";
/** /**
* The stake currently available for the party * The stake currently available for the party
*/ */
@ -43,23 +43,21 @@ export interface PartyAssetsQuery_party_stake {
} }
export interface PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset { export interface PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset {
__typename: 'BuiltinAsset'; __typename: "BuiltinAsset";
} }
export interface PartyAssetsQuery_party_accounts_asset_source_ERC20 { export interface PartyAssetsQuery_party_accounts_asset_source_ERC20 {
__typename: 'ERC20'; __typename: "ERC20";
/** /**
* The address of the erc20 contract * The address of the erc20 contract
*/ */
contractAddress: string; contractAddress: string;
} }
export type PartyAssetsQuery_party_accounts_asset_source = export type PartyAssetsQuery_party_accounts_asset_source = PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset | PartyAssetsQuery_party_accounts_asset_source_ERC20;
| PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset
| PartyAssetsQuery_party_accounts_asset_source_ERC20;
export interface PartyAssetsQuery_party_accounts_asset { export interface PartyAssetsQuery_party_accounts_asset {
__typename: 'Asset'; __typename: "Asset";
/** /**
* The full name of the asset (e.g: Great British Pound) * The full name of the asset (e.g: Great British Pound)
*/ */
@ -83,7 +81,7 @@ export interface PartyAssetsQuery_party_accounts_asset {
} }
export interface PartyAssetsQuery_party_accounts { export interface PartyAssetsQuery_party_accounts {
__typename: 'Account'; __typename: "Account";
/** /**
* Asset, the 'currency' * Asset, the 'currency'
*/ */
@ -99,7 +97,7 @@ export interface PartyAssetsQuery_party_accounts {
} }
export interface PartyAssetsQuery_party { export interface PartyAssetsQuery_party {
__typename: 'Party'; __typename: "Party";
/** /**
* Party identifier * Party identifier
*/ */
@ -123,5 +121,5 @@ export interface PartyAssetsQuery {
} }
export interface PartyAssetsQueryVariables { export interface PartyAssetsQueryVariables {
partyId: string | undefined; partyId: string;
} }

View File

@ -58,7 +58,7 @@ const Party = () => {
{ {
// Don't cache data for this query, party information can move quite quickly // Don't cache data for this query, party information can move quite quickly
fetchPolicy: 'network-only', fetchPolicy: 'network-only',
variables: { partyId: party?.replace('0x', '') }, variables: { partyId: party?.replace('0x', '') || '' },
skip: !party, skip: !party,
} }
); );

View File

@ -3,14 +3,14 @@
// @generated // @generated
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
import { NodeStatus } from './../../../../__generated__/globalTypes'; import { NodeStatus } from "./../../../../__generated__/globalTypes";
// ==================================================== // ====================================================
// GraphQL query operation: NodesQuery // GraphQL query operation: NodesQuery
// ==================================================== // ====================================================
export interface NodesQuery_nodes_epochData { export interface NodesQuery_nodes_epochData {
__typename: 'EpochData'; __typename: "EpochData";
/** /**
* Total number of epochs since node was created * Total number of epochs since node was created
*/ */
@ -26,7 +26,7 @@ export interface NodesQuery_nodes_epochData {
} }
export interface NodesQuery_nodes { export interface NodesQuery_nodes {
__typename: 'Node'; __typename: "Node";
/** /**
* The node url eg n01.vega.xyz * The node url eg n01.vega.xyz
*/ */
@ -71,8 +71,6 @@ export interface NodesQuery_nodes {
pendingStake: string; pendingStake: string;
epochData: NodesQuery_nodes_epochData | null; epochData: NodesQuery_nodes_epochData | null;
status: NodeStatus; status: NodeStatus;
score: string;
normalisedScore: string;
} }
export interface NodesQuery { export interface NodesQuery {

View File

@ -26,8 +26,6 @@ const NODES_QUERY = gql`
online online
} }
status status
score
normalisedScore
name name
} }
} }

View File

@ -8,7 +8,7 @@
// ==================================================== // ====================================================
export interface Market_market_trades { export interface Market_market_trades {
__typename: 'Trade'; __typename: "Trade";
/** /**
* The hash of the trade data * The hash of the trade data
*/ */
@ -28,7 +28,7 @@ export interface Market_market_trades {
} }
export interface Market_market { export interface Market_market {
__typename: 'Market'; __typename: "Market";
/** /**
* Market ID * Market ID
*/ */