@iota/graphql-transport 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +2 -2
- package/dist/cjs/generated/queries.d.ts +37 -71
- package/dist/cjs/generated/queries.d.ts.map +1 -0
- package/dist/cjs/generated/queries.js +12 -28
- package/dist/cjs/generated/queries.js.map +2 -2
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/mappers/bcs.d.ts +1 -0
- package/dist/cjs/mappers/bcs.d.ts.map +1 -0
- package/dist/cjs/mappers/checkpoint.d.ts +1 -0
- package/dist/cjs/mappers/checkpoint.d.ts.map +1 -0
- package/dist/cjs/mappers/display.d.ts +1 -0
- package/dist/cjs/mappers/display.d.ts.map +1 -0
- package/dist/cjs/mappers/move.d.ts +1 -0
- package/dist/cjs/mappers/move.d.ts.map +1 -0
- package/dist/cjs/mappers/object.d.ts +1 -0
- package/dist/cjs/mappers/object.d.ts.map +1 -0
- package/dist/cjs/mappers/owner.d.ts +1 -0
- package/dist/cjs/mappers/owner.d.ts.map +1 -0
- package/dist/cjs/mappers/stakes.d.ts +1 -0
- package/dist/cjs/mappers/stakes.d.ts.map +1 -0
- package/dist/cjs/mappers/transaction-block.d.ts +1 -0
- package/dist/cjs/mappers/transaction-block.d.ts.map +1 -0
- package/dist/cjs/mappers/transaction-block.js +16 -1
- package/dist/cjs/mappers/transaction-block.js.map +2 -2
- package/dist/cjs/mappers/util.d.ts +1 -0
- package/dist/cjs/mappers/util.d.ts.map +1 -0
- package/dist/cjs/mappers/validator.d.ts +1 -0
- package/dist/cjs/mappers/validator.d.ts.map +1 -0
- package/dist/cjs/mappers/validator.js +3 -2
- package/dist/cjs/mappers/validator.js.map +2 -2
- package/dist/cjs/methods.d.ts +1 -0
- package/dist/cjs/methods.d.ts.map +1 -0
- package/dist/cjs/methods.js +24 -15
- package/dist/cjs/methods.js.map +2 -2
- package/dist/cjs/transport.d.ts +4 -1
- package/dist/cjs/transport.d.ts.map +1 -0
- package/dist/cjs/transport.js +34 -30
- package/dist/cjs/transport.js.map +2 -2
- package/dist/esm/generated/queries.d.ts +37 -71
- package/dist/esm/generated/queries.d.ts.map +1 -0
- package/dist/esm/generated/queries.js +12 -28
- package/dist/esm/generated/queries.js.map +2 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/mappers/bcs.d.ts +1 -0
- package/dist/esm/mappers/bcs.d.ts.map +1 -0
- package/dist/esm/mappers/checkpoint.d.ts +1 -0
- package/dist/esm/mappers/checkpoint.d.ts.map +1 -0
- package/dist/esm/mappers/display.d.ts +1 -0
- package/dist/esm/mappers/display.d.ts.map +1 -0
- package/dist/esm/mappers/move.d.ts +1 -0
- package/dist/esm/mappers/move.d.ts.map +1 -0
- package/dist/esm/mappers/object.d.ts +1 -0
- package/dist/esm/mappers/object.d.ts.map +1 -0
- package/dist/esm/mappers/owner.d.ts +1 -0
- package/dist/esm/mappers/owner.d.ts.map +1 -0
- package/dist/esm/mappers/stakes.d.ts +1 -0
- package/dist/esm/mappers/stakes.d.ts.map +1 -0
- package/dist/esm/mappers/transaction-block.d.ts +1 -0
- package/dist/esm/mappers/transaction-block.d.ts.map +1 -0
- package/dist/esm/mappers/transaction-block.js +16 -1
- package/dist/esm/mappers/transaction-block.js.map +2 -2
- package/dist/esm/mappers/util.d.ts +1 -0
- package/dist/esm/mappers/util.d.ts.map +1 -0
- package/dist/esm/mappers/validator.d.ts +1 -0
- package/dist/esm/mappers/validator.d.ts.map +1 -0
- package/dist/esm/mappers/validator.js +3 -2
- package/dist/esm/mappers/validator.js.map +2 -2
- package/dist/esm/methods.d.ts +1 -0
- package/dist/esm/methods.d.ts.map +1 -0
- package/dist/esm/methods.js +30 -16
- package/dist/esm/methods.js.map +2 -2
- package/dist/esm/transport.d.ts +4 -1
- package/dist/esm/transport.d.ts.map +1 -0
- package/dist/esm/transport.js +34 -30
- package/dist/esm/transport.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/transport.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { TypedDocumentNode } from '@graphql-typed-document-node/core';\nimport type {\n IotaTransport,\n IotaTransportRequestOptions,\n IotaTransportSubscribeOptions,\n} from '@iota/iota-sdk/client';\nimport { IotaHTTPTransport } from '@iota/iota-sdk/client';\nimport type { DocumentNode } from 'graphql';\nimport { print } from 'graphql';\n\nimport { TypedDocumentString } from './generated/queries.js';\nimport { RPC_METHODS, UnsupportedMethodError, UnsupportedParamError } from './methods.js';\n\nexport interface IotaClientGraphQLTransportOptions {\n url: string;\n fallbackTransportUrl?: string;\n fallbackMethods?: (keyof typeof RPC_METHODS)[];\n unsupportedMethods?: (keyof typeof RPC_METHODS)[];\n}\n\nexport type GraphQLDocument<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n> =\n | string\n | DocumentNode\n | TypedDocumentNode<Result, Variables>\n | TypedDocumentString<Result, Variables>;\n\nexport type GraphQLQueryOptions<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n> = {\n query: GraphQLDocument<Result, Variables>;\n operationName?: string;\n extensions?: Record<string, unknown>;\n} & (Variables extends { [key: string]: never }\n ? { variables?: Variables }\n : {\n variables: Variables;\n });\n\nexport type GraphQLQueryResult<Result = Record<string, unknown>> = {\n data?: Result;\n errors?: GraphQLResponseErrors;\n extensions?: Record<string, unknown>;\n};\n\nexport type GraphQLResponseErrors = Array<{\n message: string;\n locations?: { line: number; column: number }[];\n path?: (string | number)[];\n}>;\n\nexport class IotaClientGraphQLTransport implements IotaTransport {\n #options: IotaClientGraphQLTransportOptions;\n #fallbackTransport?: IotaTransport;\n #fallbackMethods: (keyof typeof RPC_METHODS)[];\n #unsupportedMethods: (keyof typeof RPC_METHODS)[];\n\n constructor(options: IotaClientGraphQLTransportOptions) {\n this.#options = options;\n this.#fallbackMethods = options.fallbackMethods || [\n 'executeTransactionBlock',\n 'dryRunTransactionBlock',\n 'devInspectTransactionBlock',\n 'getTotalTransactions',\n 'getNetworkMetrics',\n 'getParticipationMetrics',\n 'getMoveCallMetrics',\n 'getAllEpochAddressMetrics',\n 'getEpochs',\n 'getDynamicFieldObjectV2',\n ];\n this.#unsupportedMethods = options.unsupportedMethods || ['getOwnedObjects'];\n\n if (options.fallbackTransportUrl) {\n this.#fallbackTransport = new IotaHTTPTransport({\n url: options.fallbackTransportUrl,\n });\n }\n }\n\n async graphqlQuery<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n Data = Result,\n >(\n options: GraphQLQueryOptions<Result, Variables>,\n getData?: (result: Result) => Data,\n ): Promise<NonNullable<Data>> {\n const res = await this.graphqlRequest(options);\n\n if (!res.ok) {\n throw new Error('Failed to fetch');\n }\n\n const { data, errors } = (await res.json()) as GraphQLQueryResult<Result>;\n\n handleGraphQLErrors(errors);\n\n const extractedData = data && (getData ? getData(data) : data);\n\n if (extractedData == null) {\n throw new Error('Missing response data');\n }\n\n return extractedData as NonNullable<Data>;\n }\n\n async graphqlRequest<Result = Record<string, unknown>, Variables = Record<string, unknown>>(\n options: GraphQLQueryOptions<Result, Variables>,\n ): Promise<Response> {\n return fetch(this.#options.url, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n query:\n typeof options.query === 'string' ||\n options.query instanceof TypedDocumentString\n ? options.query.toString()\n : print(options.query),\n variables: options.variables,\n extensions: options.extensions,\n operationName: options.operationName,\n }),\n });\n }\n\n async request<T = unknown>(input: IotaTransportRequestOptions): Promise<T> {\n let clientMethod: keyof typeof RPC_METHODS;\n\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { TypedDocumentNode } from '@graphql-typed-document-node/core';\nimport type {\n IotaTransport,\n IotaTransportRequestOptions,\n IotaTransportSubscribeOptions,\n RequestInspector,\n} from '@iota/iota-sdk/client';\nimport { IotaHTTPTransport } from '@iota/iota-sdk/client';\nimport type { DocumentNode } from 'graphql';\nimport { print } from 'graphql';\n\nimport { TypedDocumentString } from './generated/queries.js';\nimport { RPC_METHODS, UnsupportedMethodError, UnsupportedParamError } from './methods.js';\n\nexport interface IotaClientGraphQLTransportOptions {\n url: string;\n fallbackTransportUrl?: string;\n fallbackMethods?: (keyof typeof RPC_METHODS)[];\n unsupportedMethods?: (keyof typeof RPC_METHODS)[];\n /** Optional inspector function for monitoring and tracing requests */\n inspector?: RequestInspector;\n}\n\nexport type GraphQLDocument<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n> =\n | string\n | DocumentNode\n | TypedDocumentNode<Result, Variables>\n | TypedDocumentString<Result, Variables>;\n\nexport type GraphQLQueryOptions<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n> = {\n query: GraphQLDocument<Result, Variables>;\n operationName?: string;\n extensions?: Record<string, unknown>;\n} & (Variables extends { [key: string]: never }\n ? { variables?: Variables }\n : {\n variables: Variables;\n });\n\nexport type GraphQLQueryResult<Result = Record<string, unknown>> = {\n data?: Result;\n errors?: GraphQLResponseErrors;\n extensions?: Record<string, unknown>;\n};\n\nexport type GraphQLResponseErrors = Array<{\n message: string;\n locations?: { line: number; column: number }[];\n path?: (string | number)[];\n}>;\n\nexport class IotaClientGraphQLTransport implements IotaTransport {\n #options: IotaClientGraphQLTransportOptions;\n #fallbackTransport?: IotaTransport;\n #fallbackMethods: (keyof typeof RPC_METHODS)[];\n #unsupportedMethods: (keyof typeof RPC_METHODS)[];\n\n constructor(options: IotaClientGraphQLTransportOptions) {\n this.#options = options;\n this.#fallbackMethods = options.fallbackMethods || [\n 'executeTransactionBlock',\n 'dryRunTransactionBlock',\n 'devInspectTransactionBlock',\n 'getTotalTransactions',\n 'getNetworkMetrics',\n 'getParticipationMetrics',\n 'getMoveCallMetrics',\n 'getAllEpochAddressMetrics',\n 'getEpochs',\n 'getDynamicFieldObjectV2',\n ];\n this.#unsupportedMethods = options.unsupportedMethods || ['getOwnedObjects'];\n\n if (options.fallbackTransportUrl) {\n this.#fallbackTransport = new IotaHTTPTransport({\n url: options.fallbackTransportUrl,\n inspector: options.inspector,\n });\n }\n }\n\n async graphqlQuery<\n Result = Record<string, unknown>,\n Variables = Record<string, unknown>,\n Data = Result,\n >(\n options: GraphQLQueryOptions<Result, Variables>,\n getData?: (result: Result) => Data,\n ): Promise<NonNullable<Data>> {\n const res = await this.graphqlRequest(options);\n\n if (!res.ok) {\n throw new Error('Failed to fetch');\n }\n\n const { data, errors } = (await res.json()) as GraphQLQueryResult<Result>;\n\n handleGraphQLErrors(errors);\n\n const extractedData = data && (getData ? getData(data) : data);\n\n if (extractedData == null) {\n throw new Error('Missing response data');\n }\n\n return extractedData as NonNullable<Data>;\n }\n\n async graphqlRequest<Result = Record<string, unknown>, Variables = Record<string, unknown>>(\n options: GraphQLQueryOptions<Result, Variables>,\n ): Promise<Response> {\n return fetch(this.#options.url, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n query:\n typeof options.query === 'string' ||\n options.query instanceof TypedDocumentString\n ? options.query.toString()\n : print(options.query),\n variables: options.variables,\n extensions: options.extensions,\n operationName: options.operationName,\n }),\n });\n }\n\n async request<T = unknown>(input: IotaTransportRequestOptions): Promise<T> {\n const executeRequest = async () => {\n let clientMethod: keyof typeof RPC_METHODS;\n\n switch (input.method) {\n case 'rpc.discover':\n clientMethod = 'getRpcApiVersion';\n break;\n case 'iotax_getLatestAddressMetrics':\n clientMethod = 'getAddressMetrics';\n break;\n default:\n clientMethod = input.method.split('_')[1] as keyof typeof RPC_METHODS;\n }\n\n // Methods with allowed fallback will go through GraphQL first and only default to JSON-RPC if they fail\n const allowFallback = this.#fallbackMethods.includes(clientMethod);\n // Unsupported methods will go through JSON-RPC directly\n const isUnsupported = this.#unsupportedMethods.includes(clientMethod);\n\n const method = RPC_METHODS[clientMethod];\n\n if (isUnsupported) {\n // If Unsupported we force to try fallback\n return await this.#tryUseFallback(input);\n }\n\n // No method and no fallback allowed\n if (!method && !allowFallback) {\n throw new UnsupportedMethodError(input.method);\n }\n\n try {\n // Method doesnt have a graphql implementation\n if (!method) throw new Error('Missing method');\n\n return await method(this, input.params as never);\n } catch (error) {\n // Method has an allowed fallback or is partially unsupported\n if (allowFallback || error instanceof UnsupportedParamError) {\n return this.#tryUseFallback(input);\n } else {\n throw error;\n }\n }\n };\n\n return this.#options.inspector\n ? this.#options.inspector(input, executeRequest as () => Promise<T>)\n : (executeRequest() as Promise<T>);\n }\n\n async subscribe<T = unknown>(\n input: IotaTransportSubscribeOptions<T>,\n ): Promise<() => Promise<boolean>> {\n if (!this.#fallbackTransport) {\n throw new UnsupportedMethodError(input.method);\n }\n\n return this.#fallbackTransport.subscribe(input);\n }\n\n async #tryUseFallback<T = unknown>(input: IotaTransportRequestOptions): Promise<T> {\n if (!this.#fallbackTransport) {\n throw new UnsupportedMethodError(input.method);\n }\n\n return this.#fallbackTransport.request(input);\n }\n}\n\nfunction handleGraphQLErrors(errors: GraphQLResponseErrors | undefined): void {\n if (!errors || errors.length === 0) return;\n\n const errorInstances = errors.map((error) => new GraphQLResponseError(error));\n\n if (errorInstances.length === 1) {\n throw errorInstances[0];\n }\n\n throw new AggregateError(errorInstances);\n}\n\nclass GraphQLResponseError extends Error {\n locations?: Array<{ line: number; column: number }>;\n\n constructor(error: GraphQLResponseErrors[0]) {\n super(error.message);\n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ClD;AASJ;AAlJI;AACA;AACA;AACA;AAJG;AA4IG,oBAA4B,eAAC,OAAgD;AAC/E,MAAI,CAAC,mBAAK,qBAAoB;AAC1B,UAAM,IAAI,sCAAuB,MAAM,MAAM;AAAA,EACjD;AAEA,SAAO,mBAAK,oBAAmB,QAAQ,KAAK;AAChD;AAGJ,SAAS,oBAAoB,QAAiD;AAC1E,MAAI,CAAC,UAAU,OAAO,WAAW,EAAG;AAEpC,QAAM,iBAAiB,OAAO,IAAI,CAAC,UAAU,IAAI,qBAAqB,KAAK,CAAC;AAE5E,MAAI,eAAe,WAAW,GAAG;AAC7B,UAAM,eAAe,CAAC;AAAA,EAC1B;AAEA,QAAM,IAAI,eAAe,cAAc;AAC3C;AAEA,MAAM,6BAA6B,MAAM;AAAA,EAGrC,YAAY,OAAiC;AACzC,UAAM,MAAM,OAAO;AACnB,SAAK,YAAY,MAAM;AAAA,EAC3B;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5296,7 +5296,7 @@ export type Validator = {
|
|
|
5296
5296
|
* low stake threshold.
|
|
5297
5297
|
*/
|
|
5298
5298
|
atRisk?: Maybe<Scalars['UInt53']['output']>;
|
|
5299
|
-
/** The fee
|
|
5299
|
+
/** The fee set by the validator for providing staking services. */
|
|
5300
5300
|
commissionRate?: Maybe<Scalars['Int']['output']>;
|
|
5301
5301
|
/**
|
|
5302
5302
|
* Validator's set of credentials such as public keys, network addresses
|
|
@@ -5305,6 +5305,13 @@ export type Validator = {
|
|
|
5305
5305
|
credentials?: Maybe<ValidatorCredentials>;
|
|
5306
5306
|
/** Validator's description. */
|
|
5307
5307
|
description?: Maybe<Scalars['String']['output']>;
|
|
5308
|
+
/**
|
|
5309
|
+
* The effective fee charged by the validator for staking services.
|
|
5310
|
+
*
|
|
5311
|
+
* This is evaluated according to [IIP8](https://github.com/iotaledger/IIPs/blob/main/iips/IIP-0008/IIP-0008.md)
|
|
5312
|
+
* for epochs with protocol version >= 20.
|
|
5313
|
+
*/
|
|
5314
|
+
effectiveCommissionRate?: Maybe<Scalars['Int']['output']>;
|
|
5308
5315
|
/**
|
|
5309
5316
|
* The validator's current exchange object. The exchange rate is used to
|
|
5310
5317
|
* determine the amount of IOTA tokens that each past IOTA staker can
|
|
@@ -6485,6 +6492,7 @@ export type GetCurrentEpochQuery = {
|
|
|
6485
6492
|
__typename?: 'Validator';
|
|
6486
6493
|
atRisk?: any | null;
|
|
6487
6494
|
commissionRate?: number | null;
|
|
6495
|
+
effectiveCommissionRate?: number | null;
|
|
6488
6496
|
exchangeRatesSize?: any | null;
|
|
6489
6497
|
description?: string | null;
|
|
6490
6498
|
gasPrice?: any | null;
|
|
@@ -6499,16 +6507,13 @@ export type GetCurrentEpochQuery = {
|
|
|
6499
6507
|
poolTokenBalance?: any | null;
|
|
6500
6508
|
projectUrl?: string | null;
|
|
6501
6509
|
rewardsPool?: any | null;
|
|
6510
|
+
stakingPoolId: any;
|
|
6502
6511
|
stakingPoolActivationEpoch?: any | null;
|
|
6503
6512
|
stakingPoolIotaBalance?: any | null;
|
|
6504
6513
|
votingPower?: number | null;
|
|
6505
|
-
|
|
6506
|
-
__typename?: '
|
|
6514
|
+
exchangeRatesTable?: {
|
|
6515
|
+
__typename?: 'Owner';
|
|
6507
6516
|
address: any;
|
|
6508
|
-
contents?: {
|
|
6509
|
-
__typename?: 'MoveValue';
|
|
6510
|
-
json: any;
|
|
6511
|
-
} | null;
|
|
6512
6517
|
} | null;
|
|
6513
6518
|
credentials?: {
|
|
6514
6519
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6534,10 +6539,6 @@ export type GetCurrentEpochQuery = {
|
|
|
6534
6539
|
__typename?: 'MoveObject';
|
|
6535
6540
|
address: any;
|
|
6536
6541
|
} | null;
|
|
6537
|
-
stakingPool?: {
|
|
6538
|
-
__typename?: 'MoveObject';
|
|
6539
|
-
address: any;
|
|
6540
|
-
} | null;
|
|
6541
6542
|
address: {
|
|
6542
6543
|
__typename?: 'Address';
|
|
6543
6544
|
address: any;
|
|
@@ -6555,6 +6556,7 @@ export type GetCurrentEpochQuery = {
|
|
|
6555
6556
|
__typename?: 'Validator';
|
|
6556
6557
|
atRisk?: any | null;
|
|
6557
6558
|
commissionRate?: number | null;
|
|
6559
|
+
effectiveCommissionRate?: number | null;
|
|
6558
6560
|
exchangeRatesSize?: any | null;
|
|
6559
6561
|
description?: string | null;
|
|
6560
6562
|
gasPrice?: any | null;
|
|
@@ -6569,16 +6571,13 @@ export type GetCurrentEpochQuery = {
|
|
|
6569
6571
|
poolTokenBalance?: any | null;
|
|
6570
6572
|
projectUrl?: string | null;
|
|
6571
6573
|
rewardsPool?: any | null;
|
|
6574
|
+
stakingPoolId: any;
|
|
6572
6575
|
stakingPoolActivationEpoch?: any | null;
|
|
6573
6576
|
stakingPoolIotaBalance?: any | null;
|
|
6574
6577
|
votingPower?: number | null;
|
|
6575
|
-
|
|
6576
|
-
__typename?: '
|
|
6578
|
+
exchangeRatesTable?: {
|
|
6579
|
+
__typename?: 'Owner';
|
|
6577
6580
|
address: any;
|
|
6578
|
-
contents?: {
|
|
6579
|
-
__typename?: 'MoveValue';
|
|
6580
|
-
json: any;
|
|
6581
|
-
} | null;
|
|
6582
6581
|
} | null;
|
|
6583
6582
|
credentials?: {
|
|
6584
6583
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6604,10 +6603,6 @@ export type GetCurrentEpochQuery = {
|
|
|
6604
6603
|
__typename?: 'MoveObject';
|
|
6605
6604
|
address: any;
|
|
6606
6605
|
} | null;
|
|
6607
|
-
stakingPool?: {
|
|
6608
|
-
__typename?: 'MoveObject';
|
|
6609
|
-
address: any;
|
|
6610
|
-
} | null;
|
|
6611
6606
|
address: {
|
|
6612
6607
|
__typename?: 'Address';
|
|
6613
6608
|
address: any;
|
|
@@ -6645,6 +6640,7 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6645
6640
|
__typename?: 'Validator';
|
|
6646
6641
|
atRisk?: any | null;
|
|
6647
6642
|
commissionRate?: number | null;
|
|
6643
|
+
effectiveCommissionRate?: number | null;
|
|
6648
6644
|
exchangeRatesSize?: any | null;
|
|
6649
6645
|
description?: string | null;
|
|
6650
6646
|
gasPrice?: any | null;
|
|
@@ -6659,16 +6655,13 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6659
6655
|
poolTokenBalance?: any | null;
|
|
6660
6656
|
projectUrl?: string | null;
|
|
6661
6657
|
rewardsPool?: any | null;
|
|
6658
|
+
stakingPoolId: any;
|
|
6662
6659
|
stakingPoolActivationEpoch?: any | null;
|
|
6663
6660
|
stakingPoolIotaBalance?: any | null;
|
|
6664
6661
|
votingPower?: number | null;
|
|
6665
|
-
|
|
6666
|
-
__typename?: '
|
|
6662
|
+
exchangeRatesTable?: {
|
|
6663
|
+
__typename?: 'Owner';
|
|
6667
6664
|
address: any;
|
|
6668
|
-
contents?: {
|
|
6669
|
-
__typename?: 'MoveValue';
|
|
6670
|
-
json: any;
|
|
6671
|
-
} | null;
|
|
6672
6665
|
} | null;
|
|
6673
6666
|
credentials?: {
|
|
6674
6667
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6694,10 +6687,6 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6694
6687
|
__typename?: 'MoveObject';
|
|
6695
6688
|
address: any;
|
|
6696
6689
|
} | null;
|
|
6697
|
-
stakingPool?: {
|
|
6698
|
-
__typename?: 'MoveObject';
|
|
6699
|
-
address: any;
|
|
6700
|
-
} | null;
|
|
6701
6690
|
address: {
|
|
6702
6691
|
__typename?: 'Address';
|
|
6703
6692
|
address: any;
|
|
@@ -6715,6 +6704,7 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6715
6704
|
__typename?: 'Validator';
|
|
6716
6705
|
atRisk?: any | null;
|
|
6717
6706
|
commissionRate?: number | null;
|
|
6707
|
+
effectiveCommissionRate?: number | null;
|
|
6718
6708
|
exchangeRatesSize?: any | null;
|
|
6719
6709
|
description?: string | null;
|
|
6720
6710
|
gasPrice?: any | null;
|
|
@@ -6729,16 +6719,13 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6729
6719
|
poolTokenBalance?: any | null;
|
|
6730
6720
|
projectUrl?: string | null;
|
|
6731
6721
|
rewardsPool?: any | null;
|
|
6722
|
+
stakingPoolId: any;
|
|
6732
6723
|
stakingPoolActivationEpoch?: any | null;
|
|
6733
6724
|
stakingPoolIotaBalance?: any | null;
|
|
6734
6725
|
votingPower?: number | null;
|
|
6735
|
-
|
|
6736
|
-
__typename?: '
|
|
6726
|
+
exchangeRatesTable?: {
|
|
6727
|
+
__typename?: 'Owner';
|
|
6737
6728
|
address: any;
|
|
6738
|
-
contents?: {
|
|
6739
|
-
__typename?: 'MoveValue';
|
|
6740
|
-
json: any;
|
|
6741
|
-
} | null;
|
|
6742
6729
|
} | null;
|
|
6743
6730
|
credentials?: {
|
|
6744
6731
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6764,10 +6751,6 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6764
6751
|
__typename?: 'MoveObject';
|
|
6765
6752
|
address: any;
|
|
6766
6753
|
} | null;
|
|
6767
|
-
stakingPool?: {
|
|
6768
|
-
__typename?: 'MoveObject';
|
|
6769
|
-
address: any;
|
|
6770
|
-
} | null;
|
|
6771
6754
|
address: {
|
|
6772
6755
|
__typename?: 'Address';
|
|
6773
6756
|
address: any;
|
|
@@ -6781,6 +6764,7 @@ export type Rpc_Validator_FieldsFragment = {
|
|
|
6781
6764
|
__typename?: 'Validator';
|
|
6782
6765
|
atRisk?: any | null;
|
|
6783
6766
|
commissionRate?: number | null;
|
|
6767
|
+
effectiveCommissionRate?: number | null;
|
|
6784
6768
|
exchangeRatesSize?: any | null;
|
|
6785
6769
|
description?: string | null;
|
|
6786
6770
|
gasPrice?: any | null;
|
|
@@ -6795,16 +6779,13 @@ export type Rpc_Validator_FieldsFragment = {
|
|
|
6795
6779
|
poolTokenBalance?: any | null;
|
|
6796
6780
|
projectUrl?: string | null;
|
|
6797
6781
|
rewardsPool?: any | null;
|
|
6782
|
+
stakingPoolId: any;
|
|
6798
6783
|
stakingPoolActivationEpoch?: any | null;
|
|
6799
6784
|
stakingPoolIotaBalance?: any | null;
|
|
6800
6785
|
votingPower?: number | null;
|
|
6801
|
-
|
|
6802
|
-
__typename?: '
|
|
6786
|
+
exchangeRatesTable?: {
|
|
6787
|
+
__typename?: 'Owner';
|
|
6803
6788
|
address: any;
|
|
6804
|
-
contents?: {
|
|
6805
|
-
__typename?: 'MoveValue';
|
|
6806
|
-
json: any;
|
|
6807
|
-
} | null;
|
|
6808
6789
|
} | null;
|
|
6809
6790
|
credentials?: {
|
|
6810
6791
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6830,10 +6811,6 @@ export type Rpc_Validator_FieldsFragment = {
|
|
|
6830
6811
|
__typename?: 'MoveObject';
|
|
6831
6812
|
address: any;
|
|
6832
6813
|
} | null;
|
|
6833
|
-
stakingPool?: {
|
|
6834
|
-
__typename?: 'MoveObject';
|
|
6835
|
-
address: any;
|
|
6836
|
-
} | null;
|
|
6837
6814
|
address: {
|
|
6838
6815
|
__typename?: 'Address';
|
|
6839
6816
|
address: any;
|
|
@@ -7067,6 +7044,7 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7067
7044
|
__typename?: 'Validator';
|
|
7068
7045
|
atRisk?: any | null;
|
|
7069
7046
|
commissionRate?: number | null;
|
|
7047
|
+
effectiveCommissionRate?: number | null;
|
|
7070
7048
|
exchangeRatesSize?: any | null;
|
|
7071
7049
|
description?: string | null;
|
|
7072
7050
|
gasPrice?: any | null;
|
|
@@ -7081,16 +7059,13 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7081
7059
|
poolTokenBalance?: any | null;
|
|
7082
7060
|
projectUrl?: string | null;
|
|
7083
7061
|
rewardsPool?: any | null;
|
|
7062
|
+
stakingPoolId: any;
|
|
7084
7063
|
stakingPoolActivationEpoch?: any | null;
|
|
7085
7064
|
stakingPoolIotaBalance?: any | null;
|
|
7086
7065
|
votingPower?: number | null;
|
|
7087
|
-
|
|
7088
|
-
__typename?: '
|
|
7066
|
+
exchangeRatesTable?: {
|
|
7067
|
+
__typename?: 'Owner';
|
|
7089
7068
|
address: any;
|
|
7090
|
-
contents?: {
|
|
7091
|
-
__typename?: 'MoveValue';
|
|
7092
|
-
json: any;
|
|
7093
|
-
} | null;
|
|
7094
7069
|
} | null;
|
|
7095
7070
|
credentials?: {
|
|
7096
7071
|
__typename?: 'ValidatorCredentials';
|
|
@@ -7116,10 +7091,6 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7116
7091
|
__typename?: 'MoveObject';
|
|
7117
7092
|
address: any;
|
|
7118
7093
|
} | null;
|
|
7119
|
-
stakingPool?: {
|
|
7120
|
-
__typename?: 'MoveObject';
|
|
7121
|
-
address: any;
|
|
7122
|
-
} | null;
|
|
7123
7094
|
address: {
|
|
7124
7095
|
__typename?: 'Address';
|
|
7125
7096
|
address: any;
|
|
@@ -7137,6 +7108,7 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7137
7108
|
__typename?: 'Validator';
|
|
7138
7109
|
atRisk?: any | null;
|
|
7139
7110
|
commissionRate?: number | null;
|
|
7111
|
+
effectiveCommissionRate?: number | null;
|
|
7140
7112
|
exchangeRatesSize?: any | null;
|
|
7141
7113
|
description?: string | null;
|
|
7142
7114
|
gasPrice?: any | null;
|
|
@@ -7151,16 +7123,13 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7151
7123
|
poolTokenBalance?: any | null;
|
|
7152
7124
|
projectUrl?: string | null;
|
|
7153
7125
|
rewardsPool?: any | null;
|
|
7126
|
+
stakingPoolId: any;
|
|
7154
7127
|
stakingPoolActivationEpoch?: any | null;
|
|
7155
7128
|
stakingPoolIotaBalance?: any | null;
|
|
7156
7129
|
votingPower?: number | null;
|
|
7157
|
-
|
|
7158
|
-
__typename?: '
|
|
7130
|
+
exchangeRatesTable?: {
|
|
7131
|
+
__typename?: 'Owner';
|
|
7159
7132
|
address: any;
|
|
7160
|
-
contents?: {
|
|
7161
|
-
__typename?: 'MoveValue';
|
|
7162
|
-
json: any;
|
|
7163
|
-
} | null;
|
|
7164
7133
|
} | null;
|
|
7165
7134
|
credentials?: {
|
|
7166
7135
|
__typename?: 'ValidatorCredentials';
|
|
@@ -7186,10 +7155,6 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7186
7155
|
__typename?: 'MoveObject';
|
|
7187
7156
|
address: any;
|
|
7188
7157
|
} | null;
|
|
7189
|
-
stakingPool?: {
|
|
7190
|
-
__typename?: 'MoveObject';
|
|
7191
|
-
address: any;
|
|
7192
|
-
} | null;
|
|
7193
7158
|
address: {
|
|
7194
7159
|
__typename?: 'Address';
|
|
7195
7160
|
address: any;
|
|
@@ -9453,3 +9418,4 @@ export declare const MultiGetTransactionBlocksDocument: TypedDocumentString<Mult
|
|
|
9453
9418
|
export declare const PaginateTransactionBlockListsDocument: TypedDocumentString<PaginateTransactionBlockListsQuery, PaginateTransactionBlockListsQueryVariables>;
|
|
9454
9419
|
export declare const ViewDocument: TypedDocumentString<ViewQuery, ViewQueryVariables>;
|
|
9455
9420
|
export {};
|
|
9421
|
+
//# sourceMappingURL=queries.d.ts.map
|