Skip to content

Commit

Permalink
fix: properly type ShelleyProtocolParams
Browse files Browse the repository at this point in the history
- decentralisationParam is a Float
- extraEntropy is best modelled as  JSON type
- remove stray console.log
  • Loading branch information
rhyslbw committed Nov 3, 2020
1 parent 0f927c4 commit a7a2c3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
8 changes: 2 additions & 6 deletions packages/api-cardano-db-hasura/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,6 @@ type Delegation_aggregate_fields {
count: String
}

type ExtraEntropy {
tag: String!
}

type Genesis {
byron: ByronGenesis
shelley: ShelleyGenesis
Expand Down Expand Up @@ -380,9 +376,9 @@ type ShelleyGenesisStaking {

type ShelleyProtocolParams {
a0: Float!
decentralisationParam: Int!
decentralisationParam: Float!
eMax: Int!
extraEntropy: ExtraEntropy!
extraEntropy: JSONObject
keyDeposit: Int!
maxBlockBodySize: Int!
maxBlockHeaderSize: Int!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ query keyNetworkInfo {
a0
decentralisationParam
eMax
extraEntropy {
tag
}
extraEntropy
keyDeposit
maxBlockBodySize
maxBlockHeaderSize
Expand Down
1 change: 0 additions & 1 deletion packages/api-cardano-db-hasura/test/genesis.query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('genesis', () => {

beforeAll(async () => {
client = await buildClient('http://localhost:3100', 'http://localhost:8090', 5442, genesis)
console.log(client)
})

it('Returns key information about the network genesis', async () => {
Expand Down

0 comments on commit a7a2c3a

Please sign in to comment.