From a661525db77db020ea87132cbdfd4e658ebdc4db Mon Sep 17 00:00:00 2001 From: Rhys Bartels-Waller Date: Mon, 15 Mar 2021 21:23:51 +1100 Subject: [PATCH] fix: StakePool.url is now type String BREAKING CHANGE StakePool.url no longer URL type The ledger does not validate the url value provided by the owner, therefore trying to impose rules around the structure will fail. --- packages/api-cardano-db-hasura/schema.graphql | 3 +-- packages/api-cardano-db-hasura/src/executableSchema.ts | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/api-cardano-db-hasura/schema.graphql b/packages/api-cardano-db-hasura/schema.graphql index fbccc596..439cafce 100644 --- a/packages/api-cardano-db-hasura/schema.graphql +++ b/packages/api-cardano-db-hasura/schema.graphql @@ -16,7 +16,6 @@ scalar Percentage scalar StakeAddress scalar StakePoolID scalar Timestamp -scalar URL scalar VRFVerificationKey type Mutation { @@ -642,7 +641,7 @@ type StakePool { where: Reward_bool_exp ): Reward_aggregate! updatedIn: Transaction! - url: URL + url: String } diff --git a/packages/api-cardano-db-hasura/src/executableSchema.ts b/packages/api-cardano-db-hasura/src/executableSchema.ts index 82fb3d4f..e4fa7f9c 100644 --- a/packages/api-cardano-db-hasura/src/executableSchema.ts +++ b/packages/api-cardano-db-hasura/src/executableSchema.ts @@ -11,8 +11,7 @@ import { IPv6Resolver, JSONResolver, JSONObjectResolver, - TimestampResolver, - URLResolver + TimestampResolver } from 'graphql-scalars' import { CardanoNodeClient } from './CardanoNodeClient' const GraphQLBigInt = require('graphql-bigint') @@ -31,7 +30,6 @@ export const scalarResolvers = { StakeAddress: util.scalars.StakeAddress, StakePoolID: util.scalars.StakePoolID, Timestamp: TimestampResolver, - URL: URLResolver, VRFVerificationKey: util.scalars.VRFVerificationKey } as any