Skip to content

Commit

Permalink
fix: StakePool.url is now type String
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhyslbw committed Mar 15, 2021
1 parent c56dc08 commit a661525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/api-cardano-db-hasura/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ scalar Percentage
scalar StakeAddress
scalar StakePoolID
scalar Timestamp
scalar URL
scalar VRFVerificationKey

type Mutation {
Expand Down Expand Up @@ -642,7 +641,7 @@ type StakePool {
where: Reward_bool_exp
): Reward_aggregate!
updatedIn: Transaction!
url: URL
url: String
}


Expand Down
4 changes: 1 addition & 3 deletions packages/api-cardano-db-hasura/src/executableSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
IPv6Resolver,
JSONResolver,
JSONObjectResolver,
TimestampResolver,
URLResolver
TimestampResolver
} from 'graphql-scalars'
import { CardanoNodeClient } from './CardanoNodeClient'
const GraphQLBigInt = require('graphql-bigint')
Expand All @@ -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

Expand Down

0 comments on commit a661525

Please sign in to comment.