From 396974fa89b8291fe97c4a391c0a94aa8595bb6b Mon Sep 17 00:00:00 2001 From: Thomas Kammerlocher Date: Thu, 12 Dec 2024 10:40:18 +0100 Subject: [PATCH] Fixed Apollo API (#908) * fix: added delegation votes to schema * fix: upgraded docker version in docker-compose.yml * fix: correct casing of delegationvotes * fix: added missing types * fix: updated graphql schema * chore: cleaned up schema.graphql - Issue still not fixed yet * stashing * stashing * fix: updating tables and setting right permissions * fix: updating schema.graphql not done yet * fixed schema * fix: schema.graphql * chore: reverted dev changes --- .gitignore | 3 +- .../default/tables/public_DelegationVote.yaml | 7 +- .../tables/public_DrepRegistration.yaml | 13 +- .../default/tables/public_committee.yaml | 22 +- .../public_committeeDeRegistration.yaml | 38 + .../default/tables/public_committeeHash.yaml | 18 + ...ember.yaml => public_committeeMember.yaml} | 19 +- .../tables/public_committeeRegistration.yaml | 30 + .../public_committee_de_registration.yaml | 21 - .../default/tables/public_committee_hash.yaml | 3 - .../tables/public_committee_registration.yaml | 13 - .../default/tables/public_drepHash.yaml | 18 + .../default/tables/public_drep_hash.yaml | 3 - ...sal.yaml => public_govActionProposal.yaml} | 22 +- .../tables/public_offChainVoteAuthor.yaml | 31 + ...data.yaml => public_offChainVoteData.yaml} | 30 +- .../tables/public_offChainVoteDrepData.yaml | 33 + .../public_offChainVoteGovActionData.yaml | 30 + .../tables/public_offChainVoteReference.yaml | 30 + .../tables/public_off_chain_vote_author.yaml | 12 - .../public_off_chain_vote_drep_data.yaml | 12 - ...public_off_chain_vote_gov_action_data.yaml | 12 - .../public_off_chain_vote_reference.yaml | 12 - .../default/tables/public_votingAnchor.yaml | 30 + ...edure.yaml => public_votingProcedure.yaml} | 35 +- .../default/tables/public_voting_anchor.yaml | 13 - .../databases/default/tables/tables.yaml | 28 +- packages/api-cardano-db-hasura/schema.graphql | 3006 ++++++++++------- .../src/executableSchema.ts | 258 +- scripts/dev_env.sh | 33 + 30 files changed, 2364 insertions(+), 1471 deletions(-) create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeDeRegistration.yaml create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeHash.yaml rename packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/{public_committee_member.yaml => public_committeeMember.yaml} (52%) create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeRegistration.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_de_registration.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_hash.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_registration.yaml create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drepHash.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drep_hash.yaml rename packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/{public_gov_action_proposal.yaml => public_govActionProposal.yaml} (62%) create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteAuthor.yaml rename packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/{public_off_chain_vote_data.yaml => public_offChainVoteData.yaml} (57%) create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteDrepData.yaml create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteGovActionData.yaml create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteReference.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_author.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_drep_data.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_gov_action_data.yaml delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_reference.yaml create mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingAnchor.yaml rename packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/{public_voting_procedure.yaml => public_votingProcedure.yaml} (65%) delete mode 100644 packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_anchor.yaml create mode 100644 scripts/dev_env.sh diff --git a/.gitignore b/.gitignore index d976069d..09c19655 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ lerna-debug.log result* *yarn-error.log bin -state \ No newline at end of file +state +packages-cache/** diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DelegationVote.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DelegationVote.yaml index 5819effd..88797e0c 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DelegationVote.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DelegationVote.yaml @@ -5,8 +5,8 @@ configuration: column_config: {} custom_column_names: {} custom_root_fields: - select: delegationvotes - select_aggregate: delegationvotes_aggregate + select: delegationVotes + select_aggregate: delegationVotes_aggregate object_relationships: - name: redeemer using: @@ -40,6 +40,9 @@ select_permissions: permission: columns: - address + - drep_hash_id + - tx_id + - redeemerId filter: {} limit: 2500 allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DrepRegistration.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DrepRegistration.yaml index 760adc4d..3a03e18d 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DrepRegistration.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_DrepRegistration.yaml @@ -25,4 +25,15 @@ object_relationships: insertion_order: null remote_table: name: voting_anchor - schema: public \ No newline at end of file + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - DRepId + - deposit + - tx_id + - voting_anchor_id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee.yaml index fdcc6845..3ab5d810 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee.yaml @@ -10,4 +10,24 @@ object_relationships: insertion_order: null remote_table: name: committee_member - schema: public \ No newline at end of file + schema: public + - name: govActionProposal + using: + manual_configuration: + column_mapping: + gov_action_proposal_id: id + insertion_order: null + remote_table: + name: gov_action_proposal + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - gov_action_proposal_id + - quorum_denominator + - quorum_numerator + - id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeDeRegistration.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeDeRegistration.yaml new file mode 100644 index 00000000..60e19adf --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeDeRegistration.yaml @@ -0,0 +1,38 @@ +table: + name: committee_de_registration + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: committeeDeRegistration + select_aggregate: committeeDeRegistration_aggregate +object_relationships: + - name: transaction + using: + manual_configuration: + column_mapping: + tx_id: id + insertion_order: null + remote_table: + name: Transaction + schema: public + - name: votingAnchor + using: + manual_configuration: + column_mapping: + voting_anchor_id: id + remote_table: + name: voting_anchor + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - cert_index + - cold_key_id + - tx_id + - voting_anchor_id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeHash.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeHash.yaml new file mode 100644 index 00000000..2b21d4f7 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeHash.yaml @@ -0,0 +1,18 @@ +table: + name: committee_hash + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: committeeHash + select_aggregate: committeeHash_aggregate +select_permissions: + - role: cardano-graphql + permission: + columns: + - has_script + - raw + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_member.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeMember.yaml similarity index 52% rename from packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_member.yaml rename to packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeMember.yaml index 4d342a19..1d493dd5 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_member.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeMember.yaml @@ -1,6 +1,12 @@ table: name: committee_member schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: committeeMember + select_aggregate: committeeMember_aggregate object_relationships: - name: committee using: @@ -18,4 +24,15 @@ object_relationships: committee_hash_id: id remote_table: name: committee_hash - schema: public \ No newline at end of file + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - committee_hash_id + - committee_id + - expiration_epoch + - id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeRegistration.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeRegistration.yaml new file mode 100644 index 00000000..85f1f523 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committeeRegistration.yaml @@ -0,0 +1,30 @@ +table: + name: committee_registration + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: committeeRegistration + select_aggregate: committeeRegistration_aggregate +object_relationships: + - name: transaction + using: + manual_configuration: + column_mapping: + tx_id: id + insertion_order: null + remote_table: + name: Transaction + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - cert_index + - cold_key_id + - hot_key_id + - tx_id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_de_registration.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_de_registration.yaml deleted file mode 100644 index 97d75db6..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_de_registration.yaml +++ /dev/null @@ -1,21 +0,0 @@ -table: - name: committee_de_registration - schema: public -object_relationships: - - name: transaction - using: - manual_configuration: - column_mapping: - tx_id: id - insertion_order: null - remote_table: - name: Transaction - schema: public - - name: VotingAnchor - using: - manual_configuration: - column_mapping: - voting_anchor_id: id - remote_table: - name: voting_anchor - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_hash.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_hash.yaml deleted file mode 100644 index ea5ef408..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_hash.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: committee_hash - schema: public diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_registration.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_registration.yaml deleted file mode 100644 index 77c38bb9..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_registration.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: committee_registration - schema: public -object_relationships: - - name: transaction - using: - manual_configuration: - column_mapping: - tx_id: id - insertion_order: null - remote_table: - name: Transaction - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drepHash.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drepHash.yaml new file mode 100644 index 00000000..664cdf77 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drepHash.yaml @@ -0,0 +1,18 @@ +table: + name: drep_hash + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: drepHash + select_aggregate: drepHash_aggregate +select_permissions: + - role: cardano-graphql + permission: + columns: + - view + - has_script + - raw + filter: { } + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drep_hash.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drep_hash.yaml deleted file mode 100644 index 310706cb..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drep_hash.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: drep_hash - schema: public diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_gov_action_proposal.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_govActionProposal.yaml similarity index 62% rename from packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_gov_action_proposal.yaml rename to packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_govActionProposal.yaml index 5c81e194..f7a4d18f 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_gov_action_proposal.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_govActionProposal.yaml @@ -5,8 +5,8 @@ configuration: column_config: {} custom_column_names: {} custom_root_fields: - select: gov_action_proposal - select_aggregate: gov_action_proposal_aggregate + select: govActionProposal + select_aggregate: govActionProposal_aggregate object_relationships: - name: transaction using: @@ -32,4 +32,20 @@ object_relationships: voting_anchor_id: id remote_table: name: voting_anchor - schema: public \ No newline at end of file + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - tx_id + - index + - prev_gov_action_proposal + - deposit + - return_address + - expiration + - voting_anchor_id + - type + - description + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteAuthor.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteAuthor.yaml new file mode 100644 index 00000000..25a32c42 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteAuthor.yaml @@ -0,0 +1,31 @@ +table: + name: off_chain_vote_author + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: offChainVoteAuthor + select_aggregate: offChainVoteAuthor_aggregate +object_relationships: + - name: offChainVoteData + using: + manual_configuration: + column_mapping: + off_chain_vote_data_id: id + remote_table: + name: off_chain_vote_data + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - name + - off_chain_vote_data_id + - public_key + - signature + - warning + - witness_algorithm + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_data.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteData.yaml similarity index 57% rename from packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_data.yaml rename to packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteData.yaml index d9651b9f..157280a0 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_data.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteData.yaml @@ -1,8 +1,14 @@ table: name: off_chain_vote_data schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: offChainVoteData + select_aggregate: offChainVoteData_aggregate object_relationships: - - name: OffChainVoteGovActionData + - name: offChainVoteGovActionData using: manual_configuration: column_mapping: @@ -10,7 +16,7 @@ object_relationships: remote_table: name: off_chain_vote_gov_action_data schema: public - - name: OffChainDrepData + - name: offChainVoteDrepData using: manual_configuration: column_mapping: @@ -18,7 +24,7 @@ object_relationships: remote_table: name: off_chain_vote_drep_data schema: public - - name: OffChainVoteAuthor + - name: offChainVoteAuthor using: manual_configuration: column_mapping: @@ -26,11 +32,25 @@ object_relationships: remote_table: name: off_chain_vote_author schema: public - - name: OffChainVoteReference + - name: ofChainVoteReference using: manual_configuration: column_mapping: id: off_chain_vote_data_id remote_table: name: off_chain_vote_reference - schema: public \ No newline at end of file + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - bytes + - comment + - hash + - is_valid + - json + - voting_anchor_id + - warning + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteDrepData.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteDrepData.yaml new file mode 100644 index 00000000..0c705057 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteDrepData.yaml @@ -0,0 +1,33 @@ +table: + name: off_chain_vote_drep_data + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: offChainVoteDrepData + select_aggregate: offChainVoteDrepData_aggregate +object_relationships: + - name: offChainVoteData + using: + manual_configuration: + column_mapping: + off_chain_vote_data_id: id + remote_table: + name: off_chain_vote_data + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - given_name + - image_hash + - image_url + - motivations + - objectives + - off_chain_vote_data_id + - payment_address + - qualifications + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteGovActionData.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteGovActionData.yaml new file mode 100644 index 00000000..714745af --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteGovActionData.yaml @@ -0,0 +1,30 @@ +table: + name: off_chain_vote_gov_action_data + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: offChainVoteGovActionData + select_aggregate: offChainVoteGovActionData_aggregate +object_relationships: + - name: OffChainVoteData + using: + manual_configuration: + column_mapping: + off_chain_vote_data_id: id + remote_table: + name: off_chain_vote_data + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - abstract + - motivation + - off_chain_vote_data_id + - rationale + - title + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteReference.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteReference.yaml new file mode 100644 index 00000000..0b2158f5 --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_offChainVoteReference.yaml @@ -0,0 +1,30 @@ +table: + name: off_chain_vote_reference + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: offChainVoteReference + select_aggregate: offChainVoteReference_aggregate +object_relationships: + - name: OffChainVoteData + using: + manual_configuration: + column_mapping: + off_chain_vote_data_id: id + remote_table: + name: off_chain_vote_data + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - hash_algorithm + - hash_digest + - label + - off_chain_vote_data_id + - uri + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_author.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_author.yaml deleted file mode 100644 index d96c3259..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_author.yaml +++ /dev/null @@ -1,12 +0,0 @@ -table: - name: off_chain_vote_author - schema: public -object_relationships: - - name: OffChainVoteData - using: - manual_configuration: - column_mapping: - off_chain_vote_data_id: id - remote_table: - name: off_chain_vote_data - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_drep_data.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_drep_data.yaml deleted file mode 100644 index adc419ef..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_drep_data.yaml +++ /dev/null @@ -1,12 +0,0 @@ -table: - name: off_chain_vote_drep_data - schema: public -object_relationships: - - name: OffChainVoteData - using: - manual_configuration: - column_mapping: - off_chain_vote_data_id: id - remote_table: - name: off_chain_vote_data - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_gov_action_data.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_gov_action_data.yaml deleted file mode 100644 index 20137f4e..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_gov_action_data.yaml +++ /dev/null @@ -1,12 +0,0 @@ -table: - name: off_chain_vote_gov_action_data - schema: public -object_relationships: - - name: OffChainVoteData - using: - manual_configuration: - column_mapping: - off_chain_vote_data_id: id - remote_table: - name: off_chain_vote_data - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_reference.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_reference.yaml deleted file mode 100644 index 37778f2d..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_reference.yaml +++ /dev/null @@ -1,12 +0,0 @@ -table: - name: off_chain_vote_reference - schema: public -object_relationships: - - name: OffChainVoteData - using: - manual_configuration: - column_mapping: - off_chain_vote_data_id: id - remote_table: - name: off_chain_vote_data - schema: public \ No newline at end of file diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingAnchor.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingAnchor.yaml new file mode 100644 index 00000000..7eda9d2e --- /dev/null +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingAnchor.yaml @@ -0,0 +1,30 @@ +table: + name: voting_anchor + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_root_fields: + select: votingAnchor + select_aggregate: votingAnchor_aggregate +object_relationships: + - name: offChainData + using: + manual_configuration: + column_mapping: + id: voting_anchor_id + insertion_order: null + remote_table: + name: off_chain_vote_data + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - block_id + - data_hash + - type + - url + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_procedure.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingProcedure.yaml similarity index 65% rename from packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_procedure.yaml rename to packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingProcedure.yaml index be6da8a1..dfb5feb1 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_procedure.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_votingProcedure.yaml @@ -5,8 +5,8 @@ configuration: column_config: {} custom_column_names: {} custom_root_fields: - select: vote_procedure - select_aggregate: vote_procedure_aggregate + select: voteProcedure + select_aggregate: voteProcedure_aggregate object_relationships: - name: transaction using: @@ -15,9 +15,9 @@ object_relationships: tx_id: id insertion_order: null remote_table: - name: tx + name: Transaction schema: public - - name: GovActionProposal + - name: govActionProposal using: manual_configuration: column_mapping: @@ -25,7 +25,7 @@ object_relationships: remote_table: name: gov_action_proposal schema: public - - name: DrepVoter + - name: drepVoter using: manual_configuration: column_mapping: @@ -33,7 +33,7 @@ object_relationships: remote_table: name: drep_hash schema: public - - name: PoolVoter + - name: poolVoter using: manual_configuration: column_mapping: @@ -41,7 +41,7 @@ object_relationships: remote_table: name: pool_hash schema: public - - name: VotingAnchor + - name: votingAnchor using: manual_configuration: column_mapping: @@ -49,11 +49,28 @@ object_relationships: remote_table: name: voting_anchor schema: public - - name: CommitteeVoter + - name: committeeVoter using: manual_configuration: column_mapping: committee_voter: id remote_table: name: committee_hash - schema: public \ No newline at end of file + schema: public +select_permissions: + - role: cardano-graphql + permission: + columns: + - committee_voter + - drep_voter + - gov_action_proposal_id + - index + - invalid + - pool_voter + - tx_id + - vote + - voter_role + - voting_anchor_id + filter: {} + limit: 2500 + allow_aggregations: true diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_anchor.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_anchor.yaml deleted file mode 100644 index da2ac99c..00000000 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_anchor.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: voting_anchor - schema: public -object_relationships: - - name: OffChainData - using: - manual_configuration: - column_mapping: - id: voting_anchor_id - insertion_order: null - remote_table: - name: off_chain_vote_data - schema: public diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/tables.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/tables.yaml index 6f579107..5c9075cf 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/tables.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/tables.yaml @@ -35,21 +35,21 @@ - "!include public_pool_stat.yaml" - "!include public_DelegationVote.yaml" - "!include public_DrepRegistration.yaml" -- "!include public_drep_hash.yaml" -- "!include public_voting_anchor.yaml" -- "!include public_voting_procedure.yaml" -- "!include public_gov_action_proposal.yaml" -- "!include public_committee_hash.yaml" +- "!include public_drepHash.yaml" +- "!include public_votingAnchor.yaml" +- "!include public_votingProcedure.yaml" +- "!include public_govActionProposal.yaml" +- "!include public_committeeHash.yaml" - "!include public_pool_hash.yaml" -- "!include public_off_chain_vote_data.yaml" +- "!include public_offChainVoteData.yaml" - "!include public_committee.yaml" -- "!include public_committee_de_registration.yaml" -- "!include public_committee_member.yaml" -- "!include public_committee_registration.yaml" +- "!include public_committeeDeRegistration.yaml" +- "!include public_committeeMember.yaml" +- "!include public_committeeRegistration.yaml" - "!include public_drep_distr.yaml" -- "!include public_off_chain_vote_author.yaml" -- "!include public_off_chain_vote_drep_data.yaml" -- "!include public_off_chain_vote_gov_action_data.yaml" -- "!include public_off_chain_vote_reference.yaml" +- "!include public_offChainVoteAuthor.yaml" +- "!include public_offChainVoteDrepData.yaml" +- "!include public_offChainVoteGovActionData.yaml" +- "!include public_offChainVoteReference.yaml" - "!include public_stake_address.yaml" -- "!include public_treasury_withdrawal.yaml" \ No newline at end of file +- "!include public_treasury_withdrawal.yaml" diff --git a/packages/api-cardano-db-hasura/schema.graphql b/packages/api-cardano-db-hasura/schema.graphql index f2525613..4362978c 100644 --- a/packages/api-cardano-db-hasura/schema.graphql +++ b/packages/api-cardano-db-hasura/schema.graphql @@ -1,6 +1,6 @@ schema { - mutation: Mutation - query: Query + mutation: Mutation + query: Query } scalar AssetFingerprint @@ -21,1898 +21,2314 @@ scalar Timestamp scalar VRFVerificationKey type Mutation { - # Submit a signed transaction to the network - submitTransaction (transaction: String!): TransactionSubmitResponse! + # Submit a signed transaction to the network + submitTransaction (transaction: String!): TransactionSubmitResponse! } type Query { - activeStake ( - limit: Int - order_by: [ActiveStake_order_by!] - offset: Int - where: ActiveStake_bool_exp - ): [ActiveStake]! - activeStake_aggregate ( - limit: Int - order_by: [ActiveStake_order_by!] - offset: Int - where: ActiveStake_bool_exp - ): ActiveStake_aggregate! - ada: Ada! - assets ( - limit: Int - order_by: [Asset_order_by!] - offset: Int - where: Asset_bool_exp - ): [Asset]! - assets_aggregate ( - limit: Int - order_by: [Asset_order_by!] - offset: Int - where: Asset_bool_exp - ): Asset_aggregate! - blocks ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): [Block]! - blocks_aggregate ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): Block_aggregate! - cardano: Cardano! - cardanoDbMeta: CardanoDbMeta! - collateralInputs ( - limit: Int - order_by: [CollateralInput_order_by!] - offset: Int - where: CollateralInput_bool_exp - ): [CollateralInput]! - collateralInputs_aggregate ( - limit: Int - order_by: [CollateralInput_order_by!] - offset: Int - where: CollateralInput_bool_exp - ): CollateralInput_aggregate! - collateralOutputs ( - limit: Int - order_by: [CollateralOutput_order_by!] - offset: Int - where: CollateralOutput_bool_exp - ): [CollateralOutput]! - collateralOutputs_aggregate ( - limit: Int - order_by: [CollateralOutput_order_by!] - offset: Int - where: CollateralOutput_bool_exp - ): CollateralOutput_aggregate! - delegations ( - limit: Int - order_by: [Delegation_order_by!] - offset: Int - where: Delegation_bool_exp - ): [Delegation] - delegations_aggregate ( - limit: Int - order_by: [Delegation_order_by!] - offset: Int - where: Delegation_bool_exp - ): Delegation_aggregate - epochs ( - limit: Int - order_by: [Epoch_order_by!] - offset: Int - where: Epoch_bool_exp - ): [Epoch]! - epochs_aggregate ( - limit: Int - order_by: [Epoch_order_by!] - offset: Int - where: Epoch_bool_exp - ): Epoch_aggregate! - genesis: Genesis! - paymentAddresses ( - addresses: [String]! - ): [PaymentAddress] - redeemers ( - limit: Int - order_by: [Redeemer_order_by!] - offset: Int - where: Redeemer_bool_exp - ): [Redeemer]! - redeemers_aggregate ( - limit: Int - order_by: [Redeemer_order_by!] - offset: Int - where: Redeemer_bool_exp - ): Redeemer_aggregate! - rewards ( - limit: Int - order_by: [Reward_order_by!] - offset: Int - where: Reward_bool_exp - ): [Reward]! - rewards_aggregate ( - limit: Int - order_by: [Reward_order_by!] - offset: Int - where: Reward_bool_exp - ): Reward_aggregate! - scripts ( - limit: Int - order_by: [Script_order_by!] - offset: Int - where: Script_bool_exp - ): [Script]! - scripts_aggregate ( - limit: Int - order_by: [Script_order_by!] - offset: Int - where: Script_bool_exp - ): Script_aggregate! - stakeDeregistrations ( - limit: Int - order_by: [StakeDeregistration_order_by!] - offset: Int - where: StakeDeregistration_bool_exp - ): [StakeDeregistration] - stakeDeregistrations_aggregate ( - limit: Int - order_by: [StakeDeregistration_order_by!] - offset: Int - where: StakeDeregistration_bool_exp - ): StakeDeregistration_aggregate - stakePools ( - limit: Int - order_by: [StakePool_order_by!] - offset: Int - where: StakePool_bool_exp - ): [StakePool] - stakePools_aggregate ( - limit: Int - order_by: [StakePool_order_by!] - offset: Int - where: StakePool_bool_exp - ): StakePool_aggregate - stakeRegistrations ( - limit: Int - order_by: [StakeRegistration_order_by!] - offset: Int - where: StakeRegistration_bool_exp - ): [StakeRegistration] - stakeRegistrations_aggregate ( - limit: Int - order_by: [StakeRegistration_order_by!] - offset: Int - where: StakeRegistration_bool_exp - ): StakeRegistration_aggregate - tokenMints ( - distinct_on: [TokenMint_aggregate_distinct_on!] - limit: Int - order_by: [TokenMint_order_by!] - offset: Int - where: TokenMint_bool_exp - ): [TokenMint]! - tokenMints_aggregate ( - distinct_on: [TokenMint_aggregate_distinct_on!] - limit: Int - order_by: [TokenMint_order_by!] - offset: Int - where: TokenMint_bool_exp - ): TokenMint_aggregate! - transactions ( - limit: Int - order_by: [Transaction_order_by!] - offset: Int - where: Transaction_bool_exp - ): [Transaction]! - transactions_aggregate ( - limit: Int - order_by: [Transaction_order_by!] - offset: Int - where: Transaction_bool_exp - ): Transaction_aggregate! - utxos ( - distinct_on: [TransactionOutput_distinct_on!] - limit: Int - order_by: [TransactionOutput_order_by!] - offset: Int - where: TransactionOutput_bool_exp - ): [TransactionOutput]! - utxos_aggregate ( - distinct_on: [TransactionOutput_distinct_on!] - limit: Int - order_by: [TransactionOutput_order_by!] - offset: Int - where: TransactionOutput_bool_exp - ): TransactionOutput_aggregate! - withdrawals ( - limit: Int - order_by: [Withdrawal_order_by!] - offset: Int - where: Withdrawal_bool_exp - ): [Withdrawal]! - withdrawals_aggregate ( - limit: Int - order_by: [Withdrawal_order_by!] - offset: Int - where: Withdrawal_bool_exp - ): Withdrawal_aggregate + activeStake ( + limit: Int + order_by: [ActiveStake_order_by!] + offset: Int + where: ActiveStake_bool_exp + ): [ActiveStake]! + activeStake_aggregate ( + limit: Int + order_by: [ActiveStake_order_by!] + offset: Int + where: ActiveStake_bool_exp + ): ActiveStake_aggregate! + ada: Ada! + assets ( + limit: Int + order_by: [Asset_order_by!] + offset: Int + where: Asset_bool_exp + ): [Asset]! + assets_aggregate ( + limit: Int + order_by: [Asset_order_by!] + offset: Int + where: Asset_bool_exp + ): Asset_aggregate! + blocks ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): [Block]! + blocks_aggregate ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): Block_aggregate! + cardano: Cardano! + cardanoDbMeta: CardanoDbMeta! + collateralInputs ( + limit: Int + order_by: [CollateralInput_order_by!] + offset: Int + where: CollateralInput_bool_exp + ): [CollateralInput]! + collateralInputs_aggregate ( + limit: Int + order_by: [CollateralInput_order_by!] + offset: Int + where: CollateralInput_bool_exp + ): CollateralInput_aggregate! + collateralOutputs ( + limit: Int + order_by: [CollateralOutput_order_by!] + offset: Int + where: CollateralOutput_bool_exp + ): [CollateralOutput]! + collateralOutputs_aggregate ( + limit: Int + order_by: [CollateralOutput_order_by!] + offset: Int + where: CollateralOutput_bool_exp + ): CollateralOutput_aggregate! + committees ( + limit: Int + order_by: [Committee_order_by!] + offset: Int + where: Committee_bool_exp + ): [Committee]! + committeeHashes ( + limit: Int + order_by: [CommitteeHash_order_by!] + offset: Int + where: CommitteeHash_bool_exp + ): [CommitteeHash]! + committeeMembers ( + limit: Int + order_by: [CommitteeMember_order_by!] + offset: Int + where: CommitteeMember_bool_exp + ): [CommitteeMember]! + delegations ( + limit: Int + order_by: [Delegation_order_by!] + offset: Int + where: Delegation_bool_exp + ): [Delegation] + committeeRegistration ( + limit: Int + order_by: [CommitteeRegistration_order_by!] + offset: Int + where: CommitteeRegistration_bool_exp + ): [CommitteeRegistration]! + committeeDeRegistration ( + limit: Int + order_by: [CommitteeDeRegistration_order_by!] + offset: Int + where: CommitteeDeRegistration_bool_exp + ): [CommitteeDeRegistration]! + delegationVotes ( + limit: Int + order_by: [DelegationVote_order_by!] + offset: Int + where: DelegationVote_bool_exp + ): [DelegationVote]! + delegations_aggregate ( + limit: Int + order_by: [Delegation_order_by!] + offset: Int + where: Delegation_bool_exp + ): Delegation_aggregate + drepHashes ( + limit: Int + order_by: [DrepHash_order_by!] + offset: Int + where: DrepHash_bool_exp + ): [DrepHash]! + epochs ( + limit: Int + order_by: [Epoch_order_by!] + offset: Int + where: Epoch_bool_exp + ): [Epoch]! + epochs_aggregate ( + limit: Int + order_by: [Epoch_order_by!] + offset: Int + where: Epoch_bool_exp + ): Epoch_aggregate! + genesis: Genesis! + offChainVoteData ( + limit: Int + order_by: [OffChainVoteData_order_by!] + offset: Int + where: OffChainVoteData_bool_exp + ): [OffChainVoteData]! + offChainVoteAuthor ( + limit: Int + order_by: [OffChainVoteAuthor_order_by!] + offset: Int + where: OffChainVoteAuthor_bool_exp + ): [OffChainVoteAuthor]! + offChainVoteReference ( + limit: Int + order_by: [OffChainVoteReference_order_by!] + offset: Int + where: OffChainVoteReference_bool_exp + ): [OffChainVoteReference]! + offChainVoteGovActionData ( + limit: Int + order_by: [OffChainVoteGovActionData_order_by!] + offset: Int + where: OffChainVoteGovActionData_bool_exp + ): [OffChainVoteGovActionData]! + offChainVoteDrepData ( + limit: Int + order_by: [OffChainVoteDrepData_order_by!] + offset: Int + where: OffChainVoteDrepData_bool_exp + ): [OffChainVoteDrepData]! + paymentAddresses ( + addresses: [String]! + ): [PaymentAddress] + redeemers ( + limit: Int + order_by: [Redeemer_order_by!] + offset: Int + where: Redeemer_bool_exp + ): [Redeemer]! + redeemers_aggregate ( + limit: Int + order_by: [Redeemer_order_by!] + offset: Int + where: Redeemer_bool_exp + ): Redeemer_aggregate! + rewards ( + limit: Int + order_by: [Reward_order_by!] + offset: Int + where: Reward_bool_exp + ): [Reward]! + rewards_aggregate ( + limit: Int + order_by: [Reward_order_by!] + offset: Int + where: Reward_bool_exp + ): Reward_aggregate! + scripts ( + limit: Int + order_by: [Script_order_by!] + offset: Int + where: Script_bool_exp + ): [Script]! + scripts_aggregate ( + limit: Int + order_by: [Script_order_by!] + offset: Int + where: Script_bool_exp + ): Script_aggregate! + stakeDeregistrations ( + limit: Int + order_by: [StakeDeregistration_order_by!] + offset: Int + where: StakeDeregistration_bool_exp + ): [StakeDeregistration] + stakeDeregistrations_aggregate ( + limit: Int + order_by: [StakeDeregistration_order_by!] + offset: Int + where: StakeDeregistration_bool_exp + ): StakeDeregistration_aggregate + stakePools ( + limit: Int + order_by: [StakePool_order_by!] + offset: Int + where: StakePool_bool_exp + ): [StakePool] + stakePools_aggregate ( + limit: Int + order_by: [StakePool_order_by!] + offset: Int + where: StakePool_bool_exp + ): StakePool_aggregate + stakeRegistrations ( + limit: Int + order_by: [StakeRegistration_order_by!] + offset: Int + where: StakeRegistration_bool_exp + ): [StakeRegistration] + stakeRegistrations_aggregate ( + limit: Int + order_by: [StakeRegistration_order_by!] + offset: Int + where: StakeRegistration_bool_exp + ): StakeRegistration_aggregate + tokenMints ( + distinct_on: [TokenMint_aggregate_distinct_on!] + limit: Int + order_by: [TokenMint_order_by!] + offset: Int + where: TokenMint_bool_exp + ): [TokenMint]! + tokenMints_aggregate ( + distinct_on: [TokenMint_aggregate_distinct_on!] + limit: Int + order_by: [TokenMint_order_by!] + offset: Int + where: TokenMint_bool_exp + ): TokenMint_aggregate! + transactions ( + limit: Int + order_by: [Transaction_order_by!] + offset: Int + where: Transaction_bool_exp + ): [Transaction]! + transactions_aggregate ( + limit: Int + order_by: [Transaction_order_by!] + offset: Int + where: Transaction_bool_exp + ): Transaction_aggregate! + utxos ( + distinct_on: [TransactionOutput_distinct_on!] + limit: Int + order_by: [TransactionOutput_order_by!] + offset: Int + where: TransactionOutput_bool_exp + ): [TransactionOutput]! + utxos_aggregate ( + distinct_on: [TransactionOutput_distinct_on!] + limit: Int + order_by: [TransactionOutput_order_by!] + offset: Int + where: TransactionOutput_bool_exp + ): TransactionOutput_aggregate! + votingAnchor ( + limit: Int + order_by: [VotingAnchor_order_by!] + offset: Int + where: VotingAnchor_bool_exp + ): [VotingAnchor]! + withdrawals ( + limit: Int + order_by: [Withdrawal_order_by!] + offset: Int + where: Withdrawal_bool_exp + ): [Withdrawal]! + withdrawals_aggregate ( + limit: Int + order_by: [Withdrawal_order_by!] + offset: Int + where: Withdrawal_bool_exp + ): Withdrawal_aggregate } type ActiveStake { - address: StakeAddress! - amount: Lovelace! - epoch: Epoch - epochNo: Int! - stakePoolHash: Hash28Hex! - stakePoolId: StakePoolID! - registeredWith: StakePool! + address: StakeAddress! + amount: Lovelace! + epoch: Epoch + epochNo: Int! + stakePoolHash: Hash28Hex! + stakePoolId: StakePoolID! + registeredWith: StakePool! } input ActiveStake_bool_exp { - _and: [ActiveStake_bool_exp] - _not: ActiveStake_bool_exp - _or: [ActiveStake_bool_exp] - address: StakeAddress_comparison_exp - amount: text_comparison_exp - epoch: Epoch_bool_exp - epochNo: Int_comparison_exp - stakePoolHash: Hash28Hex_comparison_exp - stakePoolId: StakePoolID_comparison_exp - registeredWith: StakePool_bool_exp + _and: [ActiveStake_bool_exp] + _not: ActiveStake_bool_exp + _or: [ActiveStake_bool_exp] + address: StakeAddress_comparison_exp + amount: text_comparison_exp + epoch: Epoch_bool_exp + epochNo: Int_comparison_exp + stakePoolHash: Hash28Hex_comparison_exp + stakePoolId: StakePoolID_comparison_exp + registeredWith: StakePool_bool_exp } input ActiveStake_order_by { - address: order_by - amount: order_by - epoch: Epoch_order_by - epochNo: order_by - stakePoolHash: order_by - stakePoolId: order_by - registeredWith: StakePool_order_by + address: order_by + amount: order_by + epoch: Epoch_order_by + epochNo: order_by + stakePoolHash: order_by + stakePoolId: order_by + registeredWith: StakePool_order_by } type ActiveStake_aggregate { - aggregate: ActiveStake_aggregate_fields + aggregate: ActiveStake_aggregate_fields } type ActiveStake_aggregate_fields { - count: String! - max: ActiveStake_max_fields! - min: ActiveStake_min_fields! - sum: ActiveStake_sum_fields! + count: String! + max: ActiveStake_max_fields! + min: ActiveStake_min_fields! + sum: ActiveStake_sum_fields! } type ActiveStake_max_fields { - amount: Lovelace + amount: Lovelace } type ActiveStake_min_fields { - amount: Lovelace + amount: Lovelace } type ActiveStake_sum_fields { - amount: Lovelace + amount: Lovelace } type Ada { - supply: AssetSupply! + supply: AssetSupply! +} + +type DelegationVote { + address: String! + transaction: Transaction + drep: DrepHash + redeemer: Redeemer +} + +type DrepHash { + view: String + has_script: Boolean + raw: Hex } type AdaPots { - deposits_stake: Lovelace! - deposits_drep: Lovelace! - deposits_proposal: Lovelace! - fees: Lovelace! - reserves: Lovelace! - rewards: Lovelace! - slotNo: String! - treasury: Lovelace! - utxo: Lovelace! + deposits_stake: Lovelace! + deposits_drep: Lovelace! + deposits_proposal: Lovelace! + fees: Lovelace! + reserves: Lovelace! + rewards: Lovelace! + slotNo: String! + treasury: Lovelace! + utxo: Lovelace! } type AlonzoGenesis { - lovelacePerUTxOWord: Lovelace! - executionPrices: ExecutionPrices! - maxTxExUnits: ExecutionUnits! - maxBlockExUnits: ExecutionUnits! - maxValueSize: Lovelace! - collateralPercentage: Int! - maxCollateralInputs: Int! + lovelacePerUTxOWord: Lovelace! + executionPrices: ExecutionPrices! + maxTxExUnits: ExecutionUnits! + maxBlockExUnits: ExecutionUnits! + maxValueSize: Lovelace! + collateralPercentage: Int! + maxCollateralInputs: Int! } type ExecutionPrices { - prSteps: ExecutionPrice! - prMem: ExecutionPrice! + prSteps: ExecutionPrice! + prMem: ExecutionPrice! } type ExecutionPrice { - numerator: Int! - denominator: Int! + numerator: Int! + denominator: Int! } type ExecutionUnits { - exUnitsMem: String! - exUnitsSteps: String! + exUnitsMem: String! + exUnitsSteps: String! } type Asset { - assetId: Hex! - assetName: Hex - decimals: Int - description: String - fingerprint: AssetFingerprint - logo: String - metadataHash: String - tokenMints ( - limit: Int - order_by: [TokenMint_order_by!] - offset: Int - where: TokenMint_bool_exp - ): [TokenMint]! - tokenMints_aggregate ( - limit: Int - order_by: [TokenMint_order_by!] - offset: Int - where: TokenMint_bool_exp - ): TokenMint_aggregate! - name: String - policyId: Hash28Hex! - ticker: String - url: String + assetId: Hex! + assetName: Hex + decimals: Int + description: String + fingerprint: AssetFingerprint + logo: String + metadataHash: String + tokenMints ( + limit: Int + order_by: [TokenMint_order_by!] + offset: Int + where: TokenMint_bool_exp + ): [TokenMint]! + tokenMints_aggregate ( + limit: Int + order_by: [TokenMint_order_by!] + offset: Int + where: TokenMint_bool_exp + ): TokenMint_aggregate! + name: String + policyId: Hash28Hex! + ticker: String + url: String } input Asset_bool_exp { - _and: [Asset_bool_exp] - _not: Asset_bool_exp - _or: [Asset_bool_exp] - ticker: text_comparison_exp - assetId: Hex_comparison_exp - assetName: Hex_comparison_exp - decimals: Int_comparison_exp - description: text_comparison_exp - fingerprint: AssetFingerprint_comparison_exp - logo: text_comparison_exp - name: text_comparison_exp - policyId: Hash28Hex_comparison_exp - tokenMints: TokenMint_bool_exp - url: text_comparison_exp + _and: [Asset_bool_exp] + _not: Asset_bool_exp + _or: [Asset_bool_exp] + ticker: text_comparison_exp + assetId: Hex_comparison_exp + assetName: Hex_comparison_exp + decimals: Int_comparison_exp + description: text_comparison_exp + fingerprint: AssetFingerprint_comparison_exp + logo: text_comparison_exp + name: text_comparison_exp + policyId: Hash28Hex_comparison_exp + tokenMints: TokenMint_bool_exp + url: text_comparison_exp } input Asset_order_by { - assetId: order_by - decimals: order_by - fingerprint: order_by - name: order_by + assetId: order_by + decimals: order_by + fingerprint: order_by + name: order_by } type Asset_aggregate { - aggregate:Asset_aggregate_fields + aggregate:Asset_aggregate_fields } type Asset_aggregate_fields { - count: String! + count: String! } type AssetBalance { - asset: Asset! - quantity: String! + asset: Asset! + quantity: String! } type AssetSupply { - circulating: String! - max: String! - total: String + circulating: String! + max: String! + total: String } input AssetSupply_bool_exp { - _and: [AssetSupply_bool_exp] - _not: AssetSupply_bool_exp - _or: [AssetSupply_bool_exp] - circulating: text_comparison_exp - max: text_comparison_exp - total: text_comparison_exp + _and: [AssetSupply_bool_exp] + _not: AssetSupply_bool_exp + _or: [AssetSupply_bool_exp] + circulating: text_comparison_exp + max: text_comparison_exp + total: text_comparison_exp } input AssetSupply_order_by { - circulating: order_by - max: order_by - total: order_by + circulating: order_by + max: order_by + total: order_by } type ByronBlockVersionData { - scriptVersion: Int! - slotDuration: Int! - maxBlockSize: Int! - maxHeaderSize: Int! - maxTxSize: Int! - maxProposalSize: Int! - mpcThd: String! - heavyDelThd: String! - updateVoteThd: String! - updateProposalThd: String! - updateImplicit: String! - softforkRule: ByronSoftForkRule! - txFeePolicy: ByronTxFeePolicy! - unlockStakeEpoch: String! + scriptVersion: Int! + slotDuration: Int! + maxBlockSize: Int! + maxHeaderSize: Int! + maxTxSize: Int! + maxProposalSize: Int! + mpcThd: String! + heavyDelThd: String! + updateVoteThd: String! + updateProposalThd: String! + updateImplicit: String! + softforkRule: ByronSoftForkRule! + txFeePolicy: ByronTxFeePolicy! + unlockStakeEpoch: String! } type ByronGenesis { - bootStakeholders: JSONObject! - heavyDelegation: JSONObject! - startTime: Timestamp! - nonAvvmBalances: JSONObject! - blockVersionData: ByronBlockVersionData! - protocolConsts: ByronProtocolConsts! - avvmDistr: JSONObject! + bootStakeholders: JSONObject! + heavyDelegation: JSONObject! + startTime: Timestamp! + nonAvvmBalances: JSONObject! + blockVersionData: ByronBlockVersionData! + protocolConsts: ByronProtocolConsts! + avvmDistr: JSONObject! } type ByronProtocolConsts { - k: Int! - protocolMagic: Int + k: Int! + protocolMagic: Int } type ByronSoftForkRule { - initThd: String! - minThd: String! - thdDecrement: String! + initThd: String! + minThd: String! + thdDecrement: String! } type ByronTxFeePolicy { - summand: String! - multiplier: String! + summand: String! + multiplier: String! } type Cardano { - tip: Block! - currentEpoch: Epoch! + tip: Block! + currentEpoch: Epoch! } type CardanoDbMeta { - initialized: Boolean! - syncPercentage: Percentage! + initialized: Boolean! + syncPercentage: Percentage! } type CollateralInput { - address: String! - sourceTransaction: Transaction! - sourceTxHash: Hash32Hex! - sourceTxIndex: Int! - tokens: [Token]! - tokens_aggregate: Token_aggregate! - transaction: Transaction! - txHash: Hash32Hex! - value: Lovelace! + address: String! + sourceTransaction: Transaction! + sourceTxHash: Hash32Hex! + sourceTxIndex: Int! + tokens: [Token]! + tokens_aggregate: Token_aggregate! + transaction: Transaction! + txHash: Hash32Hex! + value: Lovelace! } input CollateralInput_order_by { - address: order_by - sourceTxHash: order_by - transaction: Transaction_order_by - txHash: order_by - value: order_by + address: order_by + sourceTxHash: order_by + transaction: Transaction_order_by + txHash: order_by + value: order_by } input CollateralInput_bool_exp { - _and: [CollateralInput_bool_exp] - _not: CollateralInput_bool_exp - _or: [CollateralInput_bool_exp] - address: text_comparison_exp - sourceTransaction: Transaction_bool_exp - tokens: Token_bool_exp - transaction: Transaction_bool_exp - value: text_comparison_exp + _and: [CollateralInput_bool_exp] + _not: CollateralInput_bool_exp + _or: [CollateralInput_bool_exp] + address: text_comparison_exp + sourceTransaction: Transaction_bool_exp + tokens: Token_bool_exp + transaction: Transaction_bool_exp + value: text_comparison_exp } type CollateralInput_aggregate { - aggregate: TransactionInput_aggregate_fields + aggregate: TransactionInput_aggregate_fields } type CollateralInput_aggregate_fields { - count: String! - max: CollateralInput_max_fields! - min: CollateralInput_min_fields! - sum: CollateralInput_sum_fields! + count: String! + max: CollateralInput_max_fields! + min: CollateralInput_min_fields! + sum: CollateralInput_sum_fields! } type CollateralInput_max_fields { - tokens: Token_max_fields - value: Lovelace + tokens: Token_max_fields + value: Lovelace } type CollateralInput_min_fields { - tokens: Token_min_fields - value: Lovelace + tokens: Token_min_fields + value: Lovelace } type CollateralInput_sum_fields { - tokens: Token_sum_fields - value: Lovelace + tokens: Token_sum_fields + value: Lovelace } type CollateralOutput { - address: String! - addressHasScript: Boolean! - datum: Datum - index: Int! - paymentCredential: Hash28Hex - script: Script - transaction: Transaction! - txHash: Hash32Hex! - value: Lovelace! + address: String! + addressHasScript: Boolean! + datum: Datum + index: Int! + paymentCredential: Hash28Hex + script: Script + transaction: Transaction! + txHash: Hash32Hex! + value: Lovelace! } enum CollateralOutput_distinct_on { - address + address } input CollateralOutput_order_by { - address: order_by - addressHasScript: order_by - datum: Transaction_order_by - index: order_by - txHash: order_by - value: order_by + address: order_by + addressHasScript: order_by + datum: Transaction_order_by + index: order_by + txHash: order_by + value: order_by } input CollateralOutput_bool_exp { - _and: [CollateralOutput_bool_exp] - _not: CollateralOutput_bool_exp - _or: [CollateralOutput_bool_exp] - address: text_comparison_exp - addressHasScript: Boolean_comparison_exp - datum: Datum_bool_exp - index: Int_comparison_exp - script: Script_bool_exp - transaction: Transaction_bool_exp - value: text_comparison_exp + _and: [CollateralOutput_bool_exp] + _not: CollateralOutput_bool_exp + _or: [CollateralOutput_bool_exp] + address: text_comparison_exp + addressHasScript: Boolean_comparison_exp + datum: Datum_bool_exp + index: Int_comparison_exp + script: Script_bool_exp + transaction: Transaction_bool_exp + value: text_comparison_exp } type CollateralOutput_aggregate { - aggregate: CollateralOutput_aggregate_fields + aggregate: CollateralOutput_aggregate_fields } type CollateralOutput_aggregate_fields { - count: String! - max: CollateralOutput_max_fields! - min: CollateralOutput_min_fields! - sum: CollateralOutput_sum_fields! + count: String! + max: CollateralOutput_max_fields! + min: CollateralOutput_min_fields! + sum: CollateralOutput_sum_fields! } type CollateralOutput_max_fields { - value: Lovelace + value: Lovelace } type CollateralOutput_min_fields { - value: Lovelace + value: Lovelace } type CollateralOutput_sum_fields { - value: Lovelace + value: Lovelace +} + +type CommitteeRegistration { + cert_index: Int + cold_key_id: String + hot_key_id: String + transaction: Transaction! +} + +input CommitteeRegistration_order_by { + cert_index: order_by + cold_key_id: order_by + hot_key_id: order_by + transaction: Transaction_order_by +} + +input CommitteeRegistration_bool_exp { + _and: [CommitteeRegistration_bool_exp] + _not: CommitteeRegistration_bool_exp + _or: [CommitteeRegistration_bool_exp] + cert_index: Int_comparison_exp + cold_key_id: text_comparison_exp + hot_key_id: text_comparison_exp + transaction: Transaction_bool_exp +} + +type CommitteeDeRegistration { + cert_index: Int + cold_key_id: String + transaction: Transaction! + votingAnchor: VotingAnchor +} + +input CommitteeDeRegistration_order_by { + cert_index: order_by + cold_key_id: order_by + transaction: Transaction_order_by + votingAnchor: VotingAnchor_order_by +} + +input CommitteeDeRegistration_bool_exp { + _and: [CommitteeDeRegistration_bool_exp] + _not: CommitteeDeRegistration_bool_exp + _or: [CommitteeDeRegistration_bool_exp] + cert_index: Int_comparison_exp + cold_key_id: text_comparison_exp + transaction: Transaction_bool_exp + votingAnchor: VotingAnchor_bool_exp +} + +type VotingAnchor { + data_hash: Hex + type: String + url: String + offChainData: OffChainVoteData +} + +input VotingAnchor_order_by { + data_hash: order_by + type: order_by + url: order_by + offChainData: OffChainVoteData_order_by +} + +input VotingAnchor_bool_exp { + _and: [VotingAnchor_bool_exp] + _not: VotingAnchor_bool_exp + _or: [VotingAnchor_bool_exp] + data_hash: Hex_comparison_exp + type: text_comparison_exp + url: text_comparison_exp + offChainData: OffChainVoteData_bool_exp +} + +type OffChainVoteData { + bytes: Hex + comment: String + hash: Hex + is_valid: Boolean + json: JSON + language: String + warning: String + offChainVoteReference: OffChainVoteReference + offChainVoteAuthor: OffChainVoteAuthor + offChainVoteDrepData: OffChainVoteDrepData + offChainVoteGovActionData: OffChainVoteGovActionData +} + +input OffChainVoteData_order_by { + bytes: order_by + comment: order_by + hash: order_by + is_valid: order_by + json: order_by + offChainVoteReference: OffChainVoteReference_order_by + offChainVoteAuthor: OffChainVoteAuthor_order_by + offChainVoteDrepData: OffChainVoteDrepData_order_by + offChainVoteGovActionData: OffChainVoteGovActionData_order_by +} + +input OffChainVoteData_bool_exp { + _and: [OffChainVoteData_bool_exp] + _not: OffChainVoteData_bool_exp + _or: [OffChainVoteData_bool_exp] + bytes: Hex_comparison_exp + comment: text_comparison_exp + hash: Hex_comparison_exp + is_valid: Boolean_comparison_exp + offChainVoteReference: OffChainVoteReference_bool_exp + offChainVoteAuthor: OffChainVoteAuthor_bool_exp + offChainVoteDrepData: OffChainVoteDrepData_bool_exp + offChainVoteGovActionData: OffChainVoteGovActionData_bool_exp +} + +type OffChainVoteGovActionData { + abstract: String + motivation: String + OffChainVoteData: OffChainVoteData + rationale: String + title: String +} + +input OffChainVoteGovActionData_order_by { + abstract: order_by + motivation: order_by + rationale: order_by + title: order_by + offChainVoteData: OffChainVoteData_order_by +} + +input OffChainVoteGovActionData_bool_exp { + _and: [OffChainVoteGovActionData_bool_exp] + _not: OffChainVoteGovActionData_bool_exp + _or: [OffChainVoteGovActionData_bool_exp] + abstract: text_comparison_exp + motivation: text_comparison_exp + rationale: text_comparison_exp + title: text_comparison_exp + offChainVoteData: OffChainVoteData_bool_exp +} + +type OffChainVoteDrepData { + given_name: String + image_hash: Hex + image_url: String + motivations: String + objectives: String + offChainVoteData: OffChainVoteData + payment_address: String + qualifications: String +} + +input OffChainVoteDrepData_order_by { + given_name: order_by + image_hash: order_by + image_url: order_by + motivations: order_by + objectives: order_by + payment_address: order_by + qualifications: order_by + offChainVoteData: OffChainVoteData_order_by +} + +input OffChainVoteDrepData_bool_exp { + _and: [OffChainVoteDrepData_bool_exp] + _not: OffChainVoteDrepData_bool_exp + _or: [OffChainVoteDrepData_bool_exp] + given_name: text_comparison_exp + image_hash: Hex_comparison_exp + image_url: text_comparison_exp + motivations: text_comparison_exp + objectives: text_comparison_exp + payment_address: text_comparison_exp + qualifications: text_comparison_exp + offChainVoteData: OffChainVoteData_bool_exp +} + +type OffChainVoteAuthor { + name: String + public_key: String + signature: String + warning: String + witness_algorithm: String + offChainVoteData: OffChainVoteData +} + +input OffChainVoteAuthor_order_by { + name: order_by + public_key: order_by + signature: order_by + warning: order_by + witness_algorithm: order_by + offChainVoteData: OffChainVoteData_order_by +} + +input OffChainVoteAuthor_bool_exp { + _and: [OffChainVoteAuthor_bool_exp] + _not: OffChainVoteAuthor_bool_exp + _or: [OffChainVoteAuthor_bool_exp] + name: text_comparison_exp + public_key: text_comparison_exp + signature: text_comparison_exp + warning: text_comparison_exp + witness_algorithm: text_comparison_exp + offChainVoteData: OffChainVoteData_bool_exp +} + +type OffChainVoteReference { + hash_algorithm: String + hash_digest: String + label: String + uri: String + offChainVoteData: OffChainVoteData +} + +input OffChainVoteReference_order_by { + hash_algorithm: order_by + hash_digest: order_by + label: order_by + uri: order_by + offChainVoteData: OffChainVoteData_order_by +} + +input OffChainVoteReference_bool_exp { + _and: [OffChainVoteReference_bool_exp] + _not: OffChainVoteReference_bool_exp + _or: [OffChainVoteReference_bool_exp] + hash_algorithm: text_comparison_exp + hash_digest: text_comparison_exp + label: text_comparison_exp + uri: text_comparison_exp + offChainVoteData: OffChainVoteData_bool_exp +} + +type CommitteeHash { + has_script: Boolean + raw: Hex +} + +input CommitteeHash_order_by { + view: order_by + hasScript: order_by + raw: order_by +} + +input CommitteeHash_bool_exp { + _and: [CommitteeHash_bool_exp] + _not: CommitteeHash_bool_exp + _or: [CommitteeHash_bool_exp] + view: text_comparison_exp + hasScript: Boolean_comparison_exp + raw: Hex_comparison_exp +} + +type CommitteeMember { + expiration_epoch: Int + committee: Committee + committeeHash: CommitteeHash +} + +input CommitteeMember_order_by { + expiration_epoch: order_by + commitee: Committee_order_by + commiteeHash: CommitteeHash_order_by +} + +input CommitteeMember_bool_exp { + _and: [CommitteeMember_bool_exp] + _not: CommitteeMember_bool_exp + _or: [CommitteeMember_bool_exp] + expiration_epoch: Int_comparison_exp + committee: Committee_bool_exp + committeeHash: CommitteeMember_bool_exp +} + +type Committee { + committeeMembers ( + limit: Int + order_by: [CommitteeMember_order_by!] + offset: Int + where: CommitteeMember_bool_exp + ): [CommitteeMember]! + quorum_denominator: String! + quorum_numerator: String! +} + +input Committee_order_by { + quorum_denominator: order_by + quorum_numerator: StakePool_order_by +} + +input Committee_bool_exp { + _and: [Committee_bool_exp] + _not: Committee_bool_exp + _or: [Committee_bool_exp] + quorum_denominator: text_comparison_exp + quorum_numerator: text_comparison_exp } type Datum { - bytes: Hex! - hash: Hash32Hex! - firstIncludedIn: Transaction! - value: JSONObject! + bytes: Hex! + hash: Hash32Hex! + firstIncludedIn: Transaction! + value: JSONObject! } input Datum_bool_exp { - firstIncludedIn: Transaction_bool_exp - hash: Hex_comparison_exp + firstIncludedIn: Transaction_bool_exp + hash: Hex_comparison_exp } type Delegation { - address: StakeAddress! - redeemer: Redeemer - stakePool: StakePool! - stakePoolHash: Hash28Hex! - stakePoolId: StakePoolID! - transaction: Transaction + address: StakeAddress! + redeemer: Redeemer + stakePool: StakePool! + stakePoolHash: Hash28Hex! + stakePoolId: StakePoolID! + transaction: Transaction } input Delegation_order_by { - address: order_by - stakePool: StakePool_order_by - stakePoolHash: order_by - stakePoolId: order_by - transaction: Transaction_order_by + address: order_by + stakePool: StakePool_order_by + stakePoolHash: order_by + stakePoolId: order_by + transaction: Transaction_order_by +} + +input DelegationVote_order_by { + address: order_by + transaction: Transaction_order_by +} + +input DrepHash_order_by { + view: order_by + hasScript: order_by + raw: order_by +} + +input DrepHash_bool_exp { + _and: [DrepHash_bool_exp] + _not: DrepHash_bool_exp + _or: [DrepHash_bool_exp] + view: text_comparison_exp + hasScript: Boolean_comparison_exp + raw: Hex_comparison_exp } input Delegation_bool_exp { - _and: [Delegation_bool_exp] - _not: Delegation_bool_exp - _or: [Delegation_bool_exp] - address: StakeAddress_comparison_exp - stakePool: StakePool_bool_exp - stakePoolHash: Hash28Hex_comparison_exp - stakePoolId: StakePoolID_comparison_exp - transaction: Transaction_bool_exp + _and: [Delegation_bool_exp] + _not: Delegation_bool_exp + _or: [Delegation_bool_exp] + address: StakeAddress_comparison_exp + stakePool: StakePool_bool_exp + stakePoolHash: Hash28Hex_comparison_exp + stakePoolId: StakePoolID_comparison_exp + transaction: Transaction_bool_exp +} + +input DelegationVote_bool_exp { + _and: [DelegationVote_bool_exp] + _not: DelegationVote_bool_exp + _or: [DelegationVote_bool_exp] + address: text_comparison_exp + transaction: Transaction_bool_exp } type Delegation_aggregate { - aggregate: Delegation_aggregate_fields + aggregate: Delegation_aggregate_fields } type Delegation_aggregate_fields { - count: String + count: String } type Genesis { - alonzo: AlonzoGenesis - byron: ByronGenesis - shelley: ShelleyGenesis + alonzo: AlonzoGenesis + byron: ByronGenesis + shelley: ShelleyGenesis } type PaymentAddress { - address: String! - summary( - atBlock: Int - ): PaymentAddressSummary + address: String! + summary( + atBlock: Int + ): PaymentAddressSummary } type PaymentAddressSummary { - assetBalances: [AssetBalance]! - utxosCount: Int! + assetBalances: [AssetBalance]! + utxosCount: Int! } type Redeemer { - datum: Datum - fee: Lovelace - index: Int! - purpose: String! # Todo: Make scalar - scriptHash: Hash28Hex! - transaction: Transaction! - unitMem: String! - unitSteps: String! + datum: Datum + fee: Lovelace + index: Int! + purpose: String! # Todo: Make scalar + scriptHash: Hash28Hex! + transaction: Transaction! + unitMem: String! + unitSteps: String! } type Redeemer_aggregate { - aggregate: Redeemer_aggregate_fields + aggregate: Redeemer_aggregate_fields } type Redeemer_aggregate_fields { - count: String! - max: Redeemer_max_fields! - min: Redeemer_min_fields! - sum: Redeemer_sum_fields! + count: String! + max: Redeemer_max_fields! + min: Redeemer_min_fields! + sum: Redeemer_sum_fields! } type Redeemer_max_fields { - fee: String - unitMem: String - unitSteps: String + fee: String + unitMem: String + unitSteps: String } type Redeemer_min_fields { - fee: String - unitMem: String - unitSteps: String + fee: String + unitMem: String + unitSteps: String } type Redeemer_sum_fields { - fee: String - unitMem: String - unitSteps: String + fee: String + unitMem: String + unitSteps: String } input Redeemer_bool_exp { - _and: [Redeemer_bool_exp] - _not: Redeemer_bool_exp - _or: [Redeemer_bool_exp] - datum: Datum_bool_exp - fee: text_comparison_exp - index: Int_comparison_exp - purpose: text_comparison_exp - scriptHash: text_comparison_exp - transaction: Transaction_bool_exp - unitMem: text_comparison_exp - unitSteps: text_comparison_exp + _and: [Redeemer_bool_exp] + _not: Redeemer_bool_exp + _or: [Redeemer_bool_exp] + datum: Datum_bool_exp + fee: text_comparison_exp + index: Int_comparison_exp + purpose: text_comparison_exp + scriptHash: text_comparison_exp + transaction: Transaction_bool_exp + unitMem: text_comparison_exp + unitSteps: text_comparison_exp } input Redeemer_order_by { - purpose: order_by - scriptHash: order_by - transaction: Transaction_order_by - unitMem: order_by - unitSteps: order_by + purpose: order_by + scriptHash: order_by + transaction: Transaction_order_by + unitMem: order_by + unitSteps: order_by } type Relay { - ipv4: IPv4 - ipv6: IPv6 - dnsName: String - dnsSrvName: String - port: Int + ipv4: IPv4 + ipv6: IPv6 + dnsName: String + dnsSrvName: String + port: Int } input Relay_bool_exp { - _and: [Relay_bool_exp] - _not: Relay_bool_exp - _or: [Relay_bool_exp] - ipv4: text_comparison_exp - ipv6: text_comparison_exp - dnsName: text_comparison_exp - dnsSrvName: text_comparison_exp - port: Int_comparison_exp + _and: [Relay_bool_exp] + _not: Relay_bool_exp + _or: [Relay_bool_exp] + ipv4: text_comparison_exp + ipv6: text_comparison_exp + dnsName: text_comparison_exp + dnsSrvName: text_comparison_exp + port: Int_comparison_exp } type Reward { - address: StakeAddress! - amount: Lovelace! - earnedIn: Epoch! - receivedIn: Epoch - stakePool: StakePool - type: String! + address: StakeAddress! + amount: Lovelace! + earnedIn: Epoch! + receivedIn: Epoch + stakePool: StakePool + type: String! } type Reward_aggregate { - aggregate: Reward_aggregate_fields + aggregate: Reward_aggregate_fields } type Reward_aggregate_fields { - count: String! - max: Reward_max_fields! - min: Reward_min_fields! - sum: Reward_sum_fields! + count: String! + max: Reward_max_fields! + min: Reward_min_fields! + sum: Reward_sum_fields! } type Reward_max_fields { - amount: Lovelace + amount: Lovelace } type Reward_min_fields { - amount: Lovelace + amount: Lovelace } type Reward_sum_fields { - amount: Lovelace + amount: Lovelace } input Reward_bool_exp { - _and: [Reward_bool_exp] - _not: Reward_bool_exp - _or: [Reward_bool_exp] - address: StakeAddress_comparison_exp - amount: text_comparison_exp - earnedIn: Epoch_bool_exp - receivedIn: Epoch_bool_exp - stakePool: StakePool_bool_exp - type: text_comparison_exp + _and: [Reward_bool_exp] + _not: Reward_bool_exp + _or: [Reward_bool_exp] + address: StakeAddress_comparison_exp + amount: text_comparison_exp + earnedIn: Epoch_bool_exp + receivedIn: Epoch_bool_exp + stakePool: StakePool_bool_exp + type: text_comparison_exp } input Reward_order_by { - address: order_by - amount: order_by - earnedIn: Epoch_order_by - receivedIn: Epoch_order_by - stakePool: StakePool_order_by - type: order_by + address: order_by + amount: order_by + earnedIn: Epoch_order_by + receivedIn: Epoch_order_by + stakePool: StakePool_order_by + type: order_by } type Script { - hash: Hash28Hex! - serialisedSize: Int - transaction: Transaction! - type: String! # Todo: Make scalar + hash: Hash28Hex! + serialisedSize: Int + transaction: Transaction! + type: String! # Todo: Make scalar } type Script_aggregate { - aggregate: Script_aggregate_fields + aggregate: Script_aggregate_fields } type Script_aggregate_fields { - count: String! - max: Script_max_fields! - min: Script_min_fields! - sum: Script_sum_fields! + count: String! + max: Script_max_fields! + min: Script_min_fields! + sum: Script_sum_fields! } type Script_max_fields { - serialisedSize: Int + serialisedSize: Int } type Script_min_fields { - serialisedSize: Int + serialisedSize: Int } type Script_sum_fields { - serialisedSize: BigInt + serialisedSize: BigInt } input Script_bool_exp { - _and: [Script_bool_exp] - _not: Script_bool_exp - _or: [Script_bool_exp] - serialisedSize: Int_comparison_exp - transaction: Transaction_bool_exp - type: text_comparison_exp + _and: [Script_bool_exp] + _not: Script_bool_exp + _or: [Script_bool_exp] + serialisedSize: Int_comparison_exp + transaction: Transaction_bool_exp + type: text_comparison_exp } input Script_order_by { - serialisedSize: order_by - transaction: Transaction_order_by - type: order_by + serialisedSize: order_by + transaction: Transaction_order_by + type: order_by } type ShelleyGenesis { - activeSlotsCoeff: Float! - epochLength: Int! - genDelegs: JSONObject - initialFunds: JSONObject! - maxKESEvolutions: Int! - maxLovelaceSupply: Lovelace! - networkId: String! - networkMagic: Int! - protocolParams: ShelleyProtocolParams! - securityParam: Int! - slotLength: Int! - slotsPerKESPeriod: Int! - staking: ShelleyGenesisStaking - systemStart: String! - updateQuorum: Int! + activeSlotsCoeff: Float! + epochLength: Int! + genDelegs: JSONObject + initialFunds: JSONObject! + maxKESEvolutions: Int! + maxLovelaceSupply: Lovelace! + networkId: String! + networkMagic: Int! + protocolParams: ShelleyProtocolParams! + securityParam: Int! + slotLength: Int! + slotsPerKESPeriod: Int! + staking: ShelleyGenesisStaking + systemStart: String! + updateQuorum: Int! } type ShelleyGenesisStaking { - pools: JSONObject! - stake: JSONObject! + pools: JSONObject! + stake: JSONObject! } type ProtocolParams { - a0: Float! - coinsPerUtxoByte: Lovelace - collateralPercent: Int - costModels: JSONObject - decentralisationParam: Float! - eMax: Int! - extraEntropy: JSONObject - keyDeposit: Lovelace! - maxBlockBodySize: Int! - maxBlockExMem: String - maxBlockExSteps: String - maxBlockHeaderSize: Int! - maxCollateralInputs: Int - maxTxExMem: String - maxTxExSteps: String - maxTxSize: Int! - maxValSize: String - minFeeA: Int! - minFeeB: Int! - minPoolCost: Lovelace! - minUTxOValue: Lovelace! - nOpt: Int! - poolDeposit: Lovelace! - priceMem: Float - priceStep: Float - protocolVersion: JSONObject! - rho: Float! - tau: Float! + a0: Float! + coinsPerUtxoByte: Lovelace + collateralPercent: Int + costModels: JSONObject + decentralisationParam: Float! + eMax: Int! + extraEntropy: JSONObject + keyDeposit: Lovelace! + maxBlockBodySize: Int! + maxBlockExMem: String + maxBlockExSteps: String + maxBlockHeaderSize: Int! + maxCollateralInputs: Int + maxTxExMem: String + maxTxExSteps: String + maxTxSize: Int! + maxValSize: String + minFeeA: Int! + minFeeB: Int! + minPoolCost: Lovelace! + minUTxOValue: Lovelace! + nOpt: Int! + poolDeposit: Lovelace! + priceMem: Float + priceStep: Float + protocolVersion: JSONObject! + rho: Float! + tau: Float! } type ShelleyProtocolParams { - a0: Float! - decentralisationParam: Float! - eMax: Int! - extraEntropy: JSONObject - keyDeposit: Lovelace! - maxBlockBodySize: Int! - maxBlockHeaderSize: Int! - maxTxSize: Int! - minFeeA: Int! - minFeeB: Int! - minPoolCost: Lovelace! - minUTxOValue: Lovelace! - nOpt: Int! - poolDeposit: Lovelace! - protocolVersion: JSONObject! - rho: Float! - tau: Float! + a0: Float! + decentralisationParam: Float! + eMax: Int! + extraEntropy: JSONObject + keyDeposit: Lovelace! + maxBlockBodySize: Int! + maxBlockHeaderSize: Int! + maxTxSize: Int! + minFeeA: Int! + minFeeB: Int! + minPoolCost: Lovelace! + minUTxOValue: Lovelace! + nOpt: Int! + poolDeposit: Lovelace! + protocolVersion: JSONObject! + rho: Float! + tau: Float! } input StakeAddress_comparison_exp { - _eq: StakeAddress - _in: [StakeAddress] - _neq: StakeAddress - _nin: [StakeAddress] + _eq: StakeAddress + _in: [StakeAddress] + _neq: StakeAddress + _nin: [StakeAddress] } type StakeDeregistration { - address: StakeAddress! - redeemer: Redeemer - transaction: Transaction! + address: StakeAddress! + redeemer: Redeemer + transaction: Transaction! } type StakeDeregistration_aggregate { - aggregate: StakeDeregistration_aggregate_fields + aggregate: StakeDeregistration_aggregate_fields } type StakeDeregistration_aggregate_fields { - count: String + count: String } input StakeDeregistration_order_by { - address: order_by - transaction: Transaction_order_by + address: order_by + transaction: Transaction_order_by } input StakeDeregistration_bool_exp { - _and: [StakeDeregistration_bool_exp] - _not: StakeDeregistration_bool_exp - _or: [StakeDeregistration_bool_exp] - address: StakeAddress_comparison_exp - transaction: Transaction_bool_exp + _and: [StakeDeregistration_bool_exp] + _not: StakeDeregistration_bool_exp + _or: [StakeDeregistration_bool_exp] + address: StakeAddress_comparison_exp + transaction: Transaction_bool_exp } type SlotLeader { - description: String! - hash: Hash28Hex! - stakePool: StakePool + description: String! + hash: Hash28Hex! + stakePool: StakePool } input SlotLeader_bool_exp { - _and: [SlotLeader_bool_exp] - _not: SlotLeader_bool_exp - _or: [SlotLeader_bool_exp] - description: text_comparison_exp - hash: Hash28Hex_comparison_exp - stakePool: StakePool_bool_exp + _and: [SlotLeader_bool_exp] + _not: SlotLeader_bool_exp + _or: [SlotLeader_bool_exp] + description: text_comparison_exp + hash: Hash28Hex_comparison_exp + stakePool: StakePool_bool_exp } input SlotLeader_order_by { - hash: order_by - stakePool: StakePool_order_by + hash: order_by + stakePool: StakePool_order_by } type StakePool { - activeStake ( - limit: Int - order_by: [ActiveStake_order_by!] - offset: Int - where: ActiveStake_bool_exp - ): [ActiveStake]! - activeStake_aggregate ( - limit: Int - order_by: [ActiveStake_order_by!] - offset: Int - where: ActiveStake_bool_exp - ): ActiveStake_aggregate! - blocks ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): [Block!]! - blocks_aggregate ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): Block_aggregate! - delegators ( - limit: Int - order_by: [Delegation_order_by!] - offset: Int - where: Delegation_bool_exp - ): [Delegation]! - delegators_aggregate ( - limit: Int - order_by: [Delegation_order_by!] - offset: Int - where: Delegation_bool_exp - ): Delegation_aggregate! - fixedCost: Lovelace! - hash: Hash28Hex! - id: StakePoolID! - margin: Float! - metadataHash: Hash32Hex - owners: [StakePoolOwner!]! - pledge: Lovelace! - relays: [Relay] - retirements: [StakePoolRetirement] - rewardAddress: StakeAddress! - rewards: [Reward]! - rewards_aggregate ( - limit: Int - order_by: [Reward_order_by!] - offset: Int - where: Reward_bool_exp - ): Reward_aggregate! - updatedIn: Transaction! - url: String + activeStake ( + limit: Int + order_by: [ActiveStake_order_by!] + offset: Int + where: ActiveStake_bool_exp + ): [ActiveStake]! + activeStake_aggregate ( + limit: Int + order_by: [ActiveStake_order_by!] + offset: Int + where: ActiveStake_bool_exp + ): ActiveStake_aggregate! + blocks ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): [Block!]! + blocks_aggregate ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): Block_aggregate! + delegators ( + limit: Int + order_by: [Delegation_order_by!] + offset: Int + where: Delegation_bool_exp + ): [Delegation]! + delegators_aggregate ( + limit: Int + order_by: [Delegation_order_by!] + offset: Int + where: Delegation_bool_exp + ): Delegation_aggregate! + fixedCost: Lovelace! + hash: Hash28Hex! + id: StakePoolID! + margin: Float! + metadataHash: Hash32Hex + owners: [StakePoolOwner!]! + pledge: Lovelace! + relays: [Relay] + retirements: [StakePoolRetirement] + rewardAddress: StakeAddress! + rewards: [Reward]! + rewards_aggregate ( + limit: Int + order_by: [Reward_order_by!] + offset: Int + where: Reward_bool_exp + ): Reward_aggregate! + updatedIn: Transaction! + url: String } input StakePool_order_by { - fixedCost: order_by - hash: order_by - id: order_by - margin: order_by - pledge: order_by - updatedIn: Transaction_order_by - url: order_by + fixedCost: order_by + hash: order_by + id: order_by + margin: order_by + pledge: order_by + updatedIn: Transaction_order_by + url: order_by } input StakePool_bool_exp { - _and: [StakePool_bool_exp] - _not: StakePool_bool_exp - _or: [StakePool_bool_exp] - hash: Hash28Hex_comparison_exp - id: StakePoolID_comparison_exp - margin: Float_comparison_exp - metadataHash: Hash32Hex_comparison_exp - owners: StakePoolOwner_bool_exp - pledge: text_comparison_exp - registrationTransaction: Transaction_bool_exp - relays: Relay_bool_exp - retirements: StakePoolRetirement_bool_exp - rewardAddress: text_comparison_exp - rewards: Reward_bool_exp - url: text_comparison_exp + _and: [StakePool_bool_exp] + _not: StakePool_bool_exp + _or: [StakePool_bool_exp] + hash: Hash28Hex_comparison_exp + id: StakePoolID_comparison_exp + margin: Float_comparison_exp + metadataHash: Hash32Hex_comparison_exp + owners: StakePoolOwner_bool_exp + pledge: text_comparison_exp + registrationTransaction: Transaction_bool_exp + relays: Relay_bool_exp + retirements: StakePoolRetirement_bool_exp + rewardAddress: text_comparison_exp + rewards: Reward_bool_exp + url: text_comparison_exp } type StakePool_aggregate { - aggregate: StakePool_aggregate_fields + aggregate: StakePool_aggregate_fields } type StakePool_aggregate_fields { - count: String! - max: StakePool_max_fields! - min: StakePool_min_fields! - sum: StakePool_sum_fields! + count: String! + max: StakePool_max_fields! + min: StakePool_min_fields! + sum: StakePool_sum_fields! } type StakePool_max_fields { - fixedCost: Lovelace - margin: Float - pledge: Lovelace + fixedCost: Lovelace + margin: Float + pledge: Lovelace } type StakePool_min_fields { - fixedCost: Lovelace - margin: Float - pledge: Lovelace + fixedCost: Lovelace + margin: Float + pledge: Lovelace } type StakePool_sum_fields { - fixedCost: Lovelace - margin: Float - pledge: Lovelace + fixedCost: Lovelace + margin: Float + pledge: Lovelace } input StakePoolID_comparison_exp { - _eq: StakePoolID - _in: [StakePoolID] - _neq: StakePoolID - _nin: [StakePoolID] + _eq: StakePoolID + _in: [StakePoolID] + _neq: StakePoolID + _nin: [StakePoolID] } input StakePoolOwner_bool_exp { - _and: [StakePoolOwner_bool_exp] - _not: StakePoolOwner_bool_exp - _or: [StakePoolOwner_bool_exp] - hash: Hash28Hex_comparison_exp + _and: [StakePoolOwner_bool_exp] + _not: StakePoolOwner_bool_exp + _or: [StakePoolOwner_bool_exp] + hash: Hash28Hex_comparison_exp } type StakePoolRetirement { - announcedIn: Transaction - inEffectFrom: Int! - retiredInEpoch: Epoch + announcedIn: Transaction + inEffectFrom: Int! + retiredInEpoch: Epoch } input StakePoolRetirement_bool_exp { - _and: [StakePoolRetirement_bool_exp] - _not: StakePoolRetirement_bool_exp - _or: [StakePoolRetirement_bool_exp] - announcedIn: Transaction_bool_exp - inEffectFrom: Int_comparison_exp + _and: [StakePoolRetirement_bool_exp] + _not: StakePoolRetirement_bool_exp + _or: [StakePoolRetirement_bool_exp] + announcedIn: Transaction_bool_exp + inEffectFrom: Int_comparison_exp } type StakePoolOwner { - hash: Hash28Hex! + hash: Hash28Hex! } type StakeRegistration { - address: StakeAddress! - transaction: Transaction! + address: StakeAddress! + transaction: Transaction! } input StakeRegistration_order_by { - address: order_by - transaction: Transaction_order_by + address: order_by + transaction: Transaction_order_by } input StakeRegistration_bool_exp { - _and: [StakeRegistration_bool_exp] - _not: StakeRegistration_bool_exp - _or: [StakeRegistration_bool_exp] - address: StakeAddress_comparison_exp - transaction: Transaction_bool_exp + _and: [StakeRegistration_bool_exp] + _not: StakeRegistration_bool_exp + _or: [StakeRegistration_bool_exp] + address: StakeAddress_comparison_exp + transaction: Transaction_bool_exp } type StakeRegistration_aggregate { - aggregate: StakeRegistration_aggregate_fields + aggregate: StakeRegistration_aggregate_fields } type StakeRegistration_aggregate_fields { - count: String + count: String } type Token { - asset: Asset! - quantity: String! - transactionOutput: TransactionOutput! + asset: Asset! + quantity: String! + transactionOutput: TransactionOutput! } input Token_order_by { - asset: Asset_order_by - quantity: order_by + asset: Asset_order_by + quantity: order_by } input Token_bool_exp { - _and: [Token_bool_exp] - _not: Token_bool_exp - _or: [Token_bool_exp] - asset: Asset_bool_exp - quantity: text_comparison_exp - transactionOutput: TransactionOutput_bool_exp + _and: [Token_bool_exp] + _not: Token_bool_exp + _or: [Token_bool_exp] + asset: Asset_bool_exp + quantity: text_comparison_exp + transactionOutput: TransactionOutput_bool_exp } type Token_aggregate { - aggregate: Token_aggregate_fields - nodes: [Token!]! + aggregate: Token_aggregate_fields + nodes: [Token!]! } type Token_aggregate_fields { - count: String! - max: Token_max_fields! - min: Token_min_fields! - sum: Token_sum_fields! + count: String! + max: Token_max_fields! + min: Token_min_fields! + sum: Token_sum_fields! } type Token_max_fields { - quantity: String + quantity: String } type Token_min_fields { - quantity: String + quantity: String } type Token_sum_fields { - quantity: String + quantity: String } type TokenMint { - asset: Asset! - quantity: String! - transaction: Transaction! + asset: Asset! + quantity: String! + transaction: Transaction! } input TokenMint_order_by { - asset: Asset_order_by - quantity: order_by - transaction: Transaction_order_by + asset: Asset_order_by + quantity: order_by + transaction: Transaction_order_by } input TokenMint_bool_exp { - _and: [TokenMint_bool_exp] - _not: TokenMint_bool_exp - _or: [TokenMint_bool_exp] - asset: Asset_bool_exp - quantity: text_comparison_exp - transaction: Transaction_bool_exp + _and: [TokenMint_bool_exp] + _not: TokenMint_bool_exp + _or: [TokenMint_bool_exp] + asset: Asset_bool_exp + quantity: text_comparison_exp + transaction: Transaction_bool_exp } type TokenMint_aggregate { - aggregate: TokenMint_aggregate_fields - nodes: [TokenMint!]! + aggregate: TokenMint_aggregate_fields + nodes: [TokenMint!]! } enum TokenMint_aggregate_distinct_on { - assetId - policyId + assetId + policyId } type TokenMint_aggregate_fields { - count: String! - max: TokenMint_max_fields! - min: TokenMint_min_fields! - sum: TokenMint_sum_fields! + count: String! + max: TokenMint_max_fields! + min: TokenMint_min_fields! + sum: TokenMint_sum_fields! } type TokenMint_max_fields { - quantity: String + quantity: String } type TokenMint_min_fields { - quantity: String + quantity: String } type TokenMint_sum_fields { - quantity: String + quantity: String } type Transaction { - block: Block - blockIndex: Int! - collateralInputs( - limit: Int - order_by: [CollateralInput_order_by] - offset: Int - where: CollateralInput_bool_exp - ): [CollateralInput] - collateralInputs_aggregate ( - limit: Int - order_by: [CollateralInput_order_by] - offset: Int - where: CollateralInput_bool_exp - ): CollateralInput_aggregate! - collateralOutputs( - limit: Int - order_by: [CollateralOutput_order_by] - offset: Int - where: CollateralOutput_bool_exp - ): [CollateralOutput] - collateralOutputs_aggregate ( - limit: Int - order_by: [CollateralOutput_order_by] - offset: Int - where: CollateralOutput_bool_exp - ): CollateralOutput_aggregate! - deposit: Lovelace! - fee: Lovelace! - hash: Hash32Hex! - inputs ( - limit: Int - order_by: [TransactionInput_order_by] - offset: Int - where: TransactionInput_bool_exp - ): [TransactionInput!]! - inputs_aggregate ( - limit: Int - order_by: [TransactionInput_order_by] - offset: Int - where: TransactionInput_bool_exp - ): TransactionInput_aggregate! - invalidBefore: String - invalidHereafter: String - metadata: [TransactionMetadata] - mint( - limit: Int - order_by: [Token_order_by] - offset: Int - where: Token_bool_exp - ): [Token!]! - mint_aggregate( - limit: Int - order_by: [Token_order_by] - offset: Int - where: Token_bool_exp - ): Token_aggregate! - outputs ( - limit: Int - order_by: [TransactionOutput_order_by] - offset: Int - where: TransactionOutput_bool_exp - ): [TransactionOutput]! - outputs_aggregate( - limit: Int - order_by: [TransactionOutput_order_by] - offset: Int - where: TransactionOutput_bool_exp - ): TransactionOutput_aggregate! - redeemers: [Redeemer] - referenceInputs ( - limit: Int - order_by: [TransactionInput_order_by] - offset: Int - where: TransactionInput_bool_exp - ): [TransactionInput!]! - referenceInputs_aggregate ( - limit: Int - order_by: [TransactionInput_order_by] - offset: Int - where: TransactionInput_bool_exp - ): TransactionInput_aggregate! - scripts: [Script] - scriptSize: Int! - size: Int! - totalOutput: Lovelace! - includedAt: DateTime! - # True unless a contract is invalid - validContract: Boolean! - withdrawals: [Withdrawal]! - withdrawals_aggregate( - limit: Int - order_by: [Withdrawal_order_by] - offset: Int - where: Withdrawal_bool_exp - ): Withdrawal_aggregate! + block: Block + blockIndex: Int! + collateralInputs( + limit: Int + order_by: [CollateralInput_order_by] + offset: Int + where: CollateralInput_bool_exp + ): [CollateralInput] + collateralInputs_aggregate ( + limit: Int + order_by: [CollateralInput_order_by] + offset: Int + where: CollateralInput_bool_exp + ): CollateralInput_aggregate! + collateralOutputs( + limit: Int + order_by: [CollateralOutput_order_by] + offset: Int + where: CollateralOutput_bool_exp + ): [CollateralOutput] + collateralOutputs_aggregate ( + limit: Int + order_by: [CollateralOutput_order_by] + offset: Int + where: CollateralOutput_bool_exp + ): CollateralOutput_aggregate! + deposit: Lovelace! + fee: Lovelace! + hash: Hash32Hex! + inputs ( + limit: Int + order_by: [TransactionInput_order_by] + offset: Int + where: TransactionInput_bool_exp + ): [TransactionInput!]! + inputs_aggregate ( + limit: Int + order_by: [TransactionInput_order_by] + offset: Int + where: TransactionInput_bool_exp + ): TransactionInput_aggregate! + invalidBefore: String + invalidHereafter: String + metadata: [TransactionMetadata] + mint( + limit: Int + order_by: [Token_order_by] + offset: Int + where: Token_bool_exp + ): [Token!]! + mint_aggregate( + limit: Int + order_by: [Token_order_by] + offset: Int + where: Token_bool_exp + ): Token_aggregate! + outputs ( + limit: Int + order_by: [TransactionOutput_order_by] + offset: Int + where: TransactionOutput_bool_exp + ): [TransactionOutput]! + outputs_aggregate( + limit: Int + order_by: [TransactionOutput_order_by] + offset: Int + where: TransactionOutput_bool_exp + ): TransactionOutput_aggregate! + redeemers: [Redeemer] + referenceInputs ( + limit: Int + order_by: [TransactionInput_order_by] + offset: Int + where: TransactionInput_bool_exp + ): [TransactionInput!]! + referenceInputs_aggregate ( + limit: Int + order_by: [TransactionInput_order_by] + offset: Int + where: TransactionInput_bool_exp + ): TransactionInput_aggregate! + scripts: [Script] + scriptSize: Int! + size: Int! + totalOutput: Lovelace! + includedAt: DateTime! + # True unless a contract is invalid + validContract: Boolean! + withdrawals: [Withdrawal]! + withdrawals_aggregate( + limit: Int + order_by: [Withdrawal_order_by] + offset: Int + where: Withdrawal_bool_exp + ): Withdrawal_aggregate! } input Transaction_order_by { - block: Block_order_by - blockIndex: order_by - deposit: order_by - fee: order_by - hash: order_by - includedAt: order_by - invalidBefore: order_by_with_nulls - invalidHereafter: order_by_with_nulls - scriptSize: order_by_with_nulls - size: order_by - totalOutput: order_by - validContract: order_by - withdrawals: order_by + block: Block_order_by + blockIndex: order_by + deposit: order_by + fee: order_by + hash: order_by + includedAt: order_by + invalidBefore: order_by_with_nulls + invalidHereafter: order_by_with_nulls + scriptSize: order_by_with_nulls + size: order_by + totalOutput: order_by + validContract: order_by + withdrawals: order_by } input Transaction_bool_exp { - _and: [Transaction_bool_exp] - _not: Transaction_bool_exp - _or: [Transaction_bool_exp] - block: Block_bool_exp - blockIndex: Int_comparison_exp - collateral: TransactionInput_bool_exp - deposit: text_comparison_exp - fee: text_comparison_exp - hash: Hash32Hex_comparison_exp - includedAt: Date_comparison_exp - inputs: TransactionInput_bool_exp - invalidBefore: text_comparison_exp - invalidHereafter: text_comparison_exp - metadata: TransactionMetadata_bool_exp - mint: Token_bool_exp - outputs: TransactionOutput_bool_exp - scriptSize: Int_comparison_exp - size: Int_comparison_exp - totalOutput: text_comparison_exp - validContract: Boolean_comparison_exp - withdrawals: Withdrawal_bool_exp + _and: [Transaction_bool_exp] + _not: Transaction_bool_exp + _or: [Transaction_bool_exp] + block: Block_bool_exp + blockIndex: Int_comparison_exp + collateral: TransactionInput_bool_exp + deposit: text_comparison_exp + fee: text_comparison_exp + hash: Hash32Hex_comparison_exp + includedAt: Date_comparison_exp + inputs: TransactionInput_bool_exp + invalidBefore: text_comparison_exp + invalidHereafter: text_comparison_exp + metadata: TransactionMetadata_bool_exp + mint: Token_bool_exp + outputs: TransactionOutput_bool_exp + scriptSize: Int_comparison_exp + size: Int_comparison_exp + totalOutput: text_comparison_exp + validContract: Boolean_comparison_exp + withdrawals: Withdrawal_bool_exp } type Transaction_aggregate { - aggregate: Transaction_aggregate_fields + aggregate: Transaction_aggregate_fields } type Transaction_aggregate_fields { - count: String! - max: Transaction_max_fields! - min: Transaction_min_fields! - sum: Transaction_sum_fields! + count: String! + max: Transaction_max_fields! + min: Transaction_min_fields! + sum: Transaction_sum_fields! } type Transaction_max_fields { - deposit: Lovelace - fee: Lovelace - invalidBefore: String - invalidHereafter: String - mint: Token_max_fields - scriptSize: Int - size: Int - totalOutput: Lovelace - withdrawals: Withdrawal_max_fields + deposit: Lovelace + fee: Lovelace + invalidBefore: String + invalidHereafter: String + mint: Token_max_fields + scriptSize: Int + size: Int + totalOutput: Lovelace + withdrawals: Withdrawal_max_fields } type Transaction_min_fields { - deposit: Lovelace - fee: Lovelace - invalidBefore: String - invalidHereafter: String - mint: Token_min_fields - scriptSize: Int - size: Int - totalOutput: Lovelace - withdrawals: Withdrawal_min_fields + deposit: Lovelace + fee: Lovelace + invalidBefore: String + invalidHereafter: String + mint: Token_min_fields + scriptSize: Int + size: Int + totalOutput: Lovelace + withdrawals: Withdrawal_min_fields } type Transaction_sum_fields { - deposit: Lovelace - fee: Lovelace - mint: Token_sum_fields - scriptSize: BigInt - size: BigInt - totalOutput: Lovelace - withdrawals: Withdrawal_sum_fields + deposit: Lovelace + fee: Lovelace + mint: Token_sum_fields + scriptSize: BigInt + size: BigInt + totalOutput: Lovelace + withdrawals: Withdrawal_sum_fields } type TransactionInput { - address: String! - redeemer: Redeemer - sourceTransaction: Transaction! - sourceTxHash: Hash32Hex! - sourceTxIndex: Int! - tokens: [Token]! - tokens_aggregate: Token_aggregate! - transaction: Transaction! - txHash: Hash32Hex! - value: Lovelace! + address: String! + redeemer: Redeemer + sourceTransaction: Transaction! + sourceTxHash: Hash32Hex! + sourceTxIndex: Int! + tokens: [Token]! + tokens_aggregate: Token_aggregate! + transaction: Transaction! + txHash: Hash32Hex! + value: Lovelace! } input TransactionInput_order_by { - address: order_by - sourceTxHash: order_by - transaction: Transaction_order_by - txHash: order_by - value: order_by + address: order_by + sourceTxHash: order_by + transaction: Transaction_order_by + txHash: order_by + value: order_by } input TransactionInput_bool_exp { - _and: [TransactionInput_bool_exp] - _not: TransactionInput_bool_exp - _or: [TransactionInput_bool_exp] - address: text_comparison_exp - sourceTransaction: Transaction_bool_exp - tokens: Token_bool_exp - transaction: Transaction_bool_exp - value: text_comparison_exp + _and: [TransactionInput_bool_exp] + _not: TransactionInput_bool_exp + _or: [TransactionInput_bool_exp] + address: text_comparison_exp + sourceTransaction: Transaction_bool_exp + tokens: Token_bool_exp + transaction: Transaction_bool_exp + value: text_comparison_exp } type TransactionInput_aggregate { - aggregate: TransactionInput_aggregate_fields + aggregate: TransactionInput_aggregate_fields } type TransactionInput_aggregate_fields { - count: String! - max: TransactionInput_max_fields! - min: TransactionInput_min_fields! - sum: TransactionInput_sum_fields! + count: String! + max: TransactionInput_max_fields! + min: TransactionInput_min_fields! + sum: TransactionInput_sum_fields! } type TransactionInput_max_fields { - tokens: Token_max_fields - value: Lovelace + tokens: Token_max_fields + value: Lovelace } type TransactionInput_min_fields { - tokens: Token_min_fields - value: Lovelace + tokens: Token_min_fields + value: Lovelace } type TransactionInput_sum_fields { - tokens: Token_sum_fields - value: Lovelace + tokens: Token_sum_fields + value: Lovelace } type TransactionMetadata { - key: String! - value: JSON! + key: String! + value: JSON! } input TransactionMetadata_bool_exp { - key: text_comparison_exp + key: text_comparison_exp } type TransactionOutput { - address: String! - addressHasScript: Boolean! - datum: Datum - index: Int! - paymentCredential: Hash28Hex - script: Script - transaction: Transaction! - txHash: Hash32Hex! - tokens: [Token!]! - tokens_aggregate: Token_aggregate! - value: Lovelace! + address: String! + addressHasScript: Boolean! + datum: Datum + index: Int! + paymentCredential: Hash28Hex + script: Script + transaction: Transaction! + txHash: Hash32Hex! + tokens: [Token!]! + tokens_aggregate: Token_aggregate! + value: Lovelace! } enum TransactionOutput_distinct_on { - address + address } input TransactionOutput_order_by { - address: order_by - addressHasScript: order_by - datum: Transaction_order_by - index: order_by - txHash: order_by - value: order_by + address: order_by + addressHasScript: order_by + datum: Transaction_order_by + index: order_by + txHash: order_by + value: order_by } input TransactionOutput_bool_exp { - _and: [TransactionOutput_bool_exp] - _not: TransactionOutput_bool_exp - _or: [TransactionOutput_bool_exp] - address: text_comparison_exp - addressHasScript: Boolean_comparison_exp - datum: Datum_bool_exp - index: Int_comparison_exp - script: Script_bool_exp - tokens: Token_bool_exp - transaction: Transaction_bool_exp - value: text_comparison_exp + _and: [TransactionOutput_bool_exp] + _not: TransactionOutput_bool_exp + _or: [TransactionOutput_bool_exp] + address: text_comparison_exp + addressHasScript: Boolean_comparison_exp + datum: Datum_bool_exp + index: Int_comparison_exp + script: Script_bool_exp + tokens: Token_bool_exp + transaction: Transaction_bool_exp + value: text_comparison_exp } type TransactionOutput_aggregate { - aggregate: TransactionOutput_aggregate_fields + aggregate: TransactionOutput_aggregate_fields } type TransactionOutput_aggregate_fields { - count: String! - max: TransactionOutput_max_fields! - min: TransactionOutput_min_fields! - sum: TransactionOutput_sum_fields! + count: String! + max: TransactionOutput_max_fields! + min: TransactionOutput_min_fields! + sum: TransactionOutput_sum_fields! } type TransactionOutput_max_fields { - tokens: Token_max_fields - value: Lovelace + tokens: Token_max_fields + value: Lovelace } type TransactionOutput_min_fields { - tokens: Token_min_fields - value: Lovelace + tokens: Token_min_fields + value: Lovelace } type TransactionOutput_sum_fields { - tokens: Token_sum_fields - value: Lovelace + tokens: Token_sum_fields + value: Lovelace } type TransactionSubmitResponse { - hash: String! + hash: String! } type Block { - # Genesis block does not belong to the 0th epoch, therefore it could be null - epoch: Epoch - epochNo: Int - fees: Lovelace! - forgedAt: DateTime! - slotLeader: SlotLeader! - hash: Hash32Hex! - number: Int - opCert: Hash32Hex - slotInEpoch: String - # Ouroboros Classic Epoch Boundary blocks (EBB) do not have a slot number - slotNo: String - # Ouroboros Classic Epoch Boundary blocks (EBB) do not have a slot number - previousBlock: Block - protocolVersion: JSONObject - nextBlock: Block - size: Int! - transactions( - limit: Int - order_by: [Transaction_order_by!] - offset: Int - where: Transaction_bool_exp - ): [Transaction]! - transactions_aggregate ( - limit: Int - order_by: [Transaction_order_by!] - offset: Int - where: Transaction_bool_exp - ): Transaction_aggregate! - transactionsCount: String! - vrfKey: VRFVerificationKey + # Genesis block does not belong to the 0th epoch, therefore it could be null + epoch: Epoch + epochNo: Int + fees: Lovelace! + forgedAt: DateTime! + slotLeader: SlotLeader! + hash: Hash32Hex! + number: Int + opCert: Hash32Hex + slotInEpoch: String + # Ouroboros Classic Epoch Boundary blocks (EBB) do not have a slot number + slotNo: String + # Ouroboros Classic Epoch Boundary blocks (EBB) do not have a slot number + previousBlock: Block + protocolVersion: JSONObject + nextBlock: Block + size: Int! + transactions( + limit: Int + order_by: [Transaction_order_by!] + offset: Int + where: Transaction_bool_exp + ): [Transaction]! + transactions_aggregate ( + limit: Int + order_by: [Transaction_order_by!] + offset: Int + where: Transaction_bool_exp + ): Transaction_aggregate! + transactionsCount: String! + vrfKey: VRFVerificationKey } input Block_bool_exp { - _and: [Block_bool_exp] - _not: Block_bool_exp - _or: [Block_bool_exp] - forgedAt: Date_comparison_exp - slotLeader: SlotLeader_bool_exp - epoch: Epoch_bool_exp - fees: text_comparison_exp - hash: Hash32Hex_comparison_exp - number: Int_comparison_exp - previousBlock: Block_bool_exp - nextBlock: Block_bool_exp - size: Int_comparison_exp - slotInEpoch: Int_comparison_exp - slotNo: text_comparison_exp - transactions: Transaction_bool_exp - transactionsCount: text_comparison_exp - vrfKey: VRFVerificationKey_comparison_exp + _and: [Block_bool_exp] + _not: Block_bool_exp + _or: [Block_bool_exp] + forgedAt: Date_comparison_exp + slotLeader: SlotLeader_bool_exp + epoch: Epoch_bool_exp + fees: text_comparison_exp + hash: Hash32Hex_comparison_exp + number: Int_comparison_exp + previousBlock: Block_bool_exp + nextBlock: Block_bool_exp + size: Int_comparison_exp + slotInEpoch: Int_comparison_exp + slotNo: text_comparison_exp + transactions: Transaction_bool_exp + transactionsCount: text_comparison_exp + vrfKey: VRFVerificationKey_comparison_exp } input Block_order_by { - forgedAt: order_by - slotLeader: SlotLeader_order_by - epoch: Epoch_order_by - fees: order_by - hash: order_by - number: order_by_with_nulls - size: order_by - slotNo: order_by_with_nulls - transactionsCount: order_by - vrfKey: order_by_with_nulls + forgedAt: order_by + slotLeader: SlotLeader_order_by + epoch: Epoch_order_by + fees: order_by + hash: order_by + number: order_by_with_nulls + size: order_by + slotNo: order_by_with_nulls + transactionsCount: order_by + vrfKey: order_by_with_nulls } type Block_aggregate { - aggregate: Block_aggregate_fields + aggregate: Block_aggregate_fields } type Block_aggregate_fields { - count: String! - max: Block_max_fields! - min: Block_min_fields! - sum: Block_sum_fields! + count: String! + max: Block_max_fields! + min: Block_min_fields! + sum: Block_sum_fields! } type Block_max_fields { - fees: Lovelace - size: Int + fees: Lovelace + size: Int } type Block_min_fields { - fees: Lovelace - size: Int + fees: Lovelace + size: Int } type Block_sum_fields { - fees: Lovelace - size: BigInt + fees: Lovelace + size: BigInt } type Epoch { - activeStake: [ActiveStake] - activeStake_aggregate: ActiveStake_aggregate - adaPots: AdaPots - blocks ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): [Block!]! - blocks_aggregate ( - limit: Int - order_by: [Block_order_by!] - offset: Int - where: Block_bool_exp - ): Block_aggregate! - blocksCount: String! - fees: Lovelace! - output: Lovelace! - nonce: Hash32Hex - number: Int! - protocolParams: ProtocolParams - transactionsCount: String! - startedAt: DateTime! - lastBlockTime: DateTime! + activeStake: [ActiveStake] + activeStake_aggregate: ActiveStake_aggregate + adaPots: AdaPots + blocks ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): [Block!]! + blocks_aggregate ( + limit: Int + order_by: [Block_order_by!] + offset: Int + where: Block_bool_exp + ): Block_aggregate! + blocksCount: String! + fees: Lovelace! + output: Lovelace! + nonce: Hash32Hex + number: Int! + protocolParams: ProtocolParams + transactionsCount: String! + startedAt: DateTime! + lastBlockTime: DateTime! } input Epoch_bool_exp { - _and: [Epoch_bool_exp] - _not: Epoch_bool_exp - _or: [Epoch_bool_exp] - blocks: Block_bool_exp - blocksCount: text_comparison_exp - fees: text_comparison_exp - number: Int_comparison_exp - output: text_comparison_exp - startedAt: Date_comparison_exp - transactionsCount: text_comparison_exp + _and: [Epoch_bool_exp] + _not: Epoch_bool_exp + _or: [Epoch_bool_exp] + blocks: Block_bool_exp + blocksCount: text_comparison_exp + fees: text_comparison_exp + number: Int_comparison_exp + output: text_comparison_exp + startedAt: Date_comparison_exp + transactionsCount: text_comparison_exp } input Epoch_order_by { - blocksCount: order_by - fees: order_by - number: order_by - output: order_by - transactionsCount: order_by + blocksCount: order_by + fees: order_by + number: order_by + output: order_by + transactionsCount: order_by } type Epoch_aggregate { - aggregate: Epoch_aggregate_fields! + aggregate: Epoch_aggregate_fields! } type Epoch_aggregate_fields { - count: String! - max: Epoch_max_fields! - min: Epoch_min_fields! - sum: Epoch_sum_fields! + count: String! + max: Epoch_max_fields! + min: Epoch_min_fields! + sum: Epoch_sum_fields! } type Epoch_max_fields { - blocksCount: Int! - fees: Lovelace! - number: Int! - output: Lovelace! - transactionsCount: String! + blocksCount: Int! + fees: Lovelace! + number: Int! + output: Lovelace! + transactionsCount: String! } type Epoch_min_fields { - blocksCount: String! - fees: Lovelace! - output: Lovelace! - transactionsCount: String! + blocksCount: String! + fees: Lovelace! + output: Lovelace! + transactionsCount: String! } type Epoch_sum_fields { - blocksCount: String! - fees: Lovelace! - output: Lovelace! - transactionsCount: String! + blocksCount: String! + fees: Lovelace! + output: Lovelace! + transactionsCount: String! } type Withdrawal { - address: StakeAddress! - amount: Lovelace! - redeemer: Redeemer - transaction: Transaction! + address: StakeAddress! + amount: Lovelace! + redeemer: Redeemer + transaction: Transaction! } input Withdrawal_bool_exp { - _and: [Withdrawal_bool_exp] - _not: Withdrawal_bool_exp - _or: [Withdrawal_bool_exp] - address: StakeAddress_comparison_exp - amount: text_comparison_exp - transaction: Transaction_bool_exp + _and: [Withdrawal_bool_exp] + _not: Withdrawal_bool_exp + _or: [Withdrawal_bool_exp] + address: StakeAddress_comparison_exp + amount: text_comparison_exp + transaction: Transaction_bool_exp } input Withdrawal_order_by { - address: order_by - amount: order_by - transaction: Transaction_order_by + address: order_by + amount: order_by + transaction: Transaction_order_by } type Withdrawal_aggregate { - aggregate: Withdrawal_aggregate_fields! + aggregate: Withdrawal_aggregate_fields! } type Withdrawal_aggregate_fields { - count: String! - max: Withdrawal_max_fields! - min: Withdrawal_min_fields! - sum: Withdrawal_sum_fields! + count: String! + max: Withdrawal_max_fields! + min: Withdrawal_min_fields! + sum: Withdrawal_sum_fields! } type Withdrawal_max_fields { - amount: Lovelace + amount: Lovelace } type Withdrawal_min_fields { - amount: Lovelace + amount: Lovelace } type Withdrawal_sum_fields { - amount: Lovelace + amount: Lovelace } input Boolean_comparison_exp { - _eq: Boolean - _gt: Boolean - _gte: Boolean - _in: [Boolean!] - _is_null: Boolean - _lt: Boolean - _lte: Boolean - _neq: Boolean - _nin: [Boolean!] + _eq: Boolean + _gt: Boolean + _gte: Boolean + _in: [Boolean!] + _is_null: Boolean + _lt: Boolean + _lte: Boolean + _neq: Boolean + _nin: [Boolean!] } # expression to compare data of type date. All fields are combined with logical 'AND'. input Date_comparison_exp { - _eq: DateTime - _gt: DateTime - _gte: DateTime - _in: [DateTime] - _lt: DateTime - _lte: DateTime - _neq: DateTime - _nin: [DateTime] + _eq: DateTime + _gt: DateTime + _gte: DateTime + _in: [DateTime] + _lt: DateTime + _lte: DateTime + _neq: DateTime + _nin: [DateTime] } # expression to compare data of type Float. All fields are combined with logical 'AND'. input Float_comparison_exp { - _eq: Float - _gt: Float - _gte: Float - _in: [Float!] - _is_null: Boolean - _lt: Float - _lte: Float - _neq: Float - _nin: [Float!] + _eq: Float + _gt: Float + _gte: Float + _in: [Float!] + _is_null: Boolean + _lt: Float + _lte: Float + _neq: Float + _nin: [Float!] } # expression to compare data of type Int. All fields are combined with logical 'AND'. input Int_comparison_exp { - _eq: Int - _gt: Int - _gte: Int - _in: [Int!] - _is_null: Boolean - _lt: Int - _lte: Int - _neq: Int - _nin: [Int!] + _eq: Int + _gt: Int + _gte: Int + _in: [Int!] + _is_null: Boolean + _lt: Int + _lte: Int + _neq: Int + _nin: [Int!] } # All fields are combined with logical 'AND'. input Hex_comparison_exp { - _eq: Hex - _in: [Hex] - _neq: Hex - _nin: [Hex] + _eq: Hex + _in: [Hex] + _neq: Hex + _nin: [Hex] } # expression to compare data of type Percentage. All fields are combined with logical 'AND'. input Percentage_comparison_exp { - _eq: Percentage - _gt: Percentage - _gte: Percentage - _lt: Percentage - _lte: Percentage - _neq: Percentage + _eq: Percentage + _gt: Percentage + _gte: Percentage + _lt: Percentage + _lte: Percentage + _neq: Percentage } # All fields are combined with logical 'AND'. input Hash28Hex_comparison_exp { - _eq: Hash28Hex - _in: [Hash28Hex] - _neq: Hash28Hex - _nin: [Hash28Hex] + _eq: Hash28Hex + _in: [Hash28Hex] + _neq: Hash28Hex + _nin: [Hash28Hex] } input Hash32Hex_comparison_exp { - _eq: Hash32Hex - _in: [Hash32Hex] - _neq: Hash32Hex - _nin: [Hash32Hex] + _eq: Hash32Hex + _in: [Hash32Hex] + _neq: Hash32Hex + _nin: [Hash32Hex] } input text_comparison_exp { - _eq: String - _gt: String - _gte: String - _ilike: String - _in: [String] - _is_null: Boolean - _like: String - _lt: String - _lte: String - _neq: String - _nilike: String - _nin: [String] - _nlike: String - _nsimilar: String - _similar: String + _eq: String + _gt: String + _gte: String + _ilike: String + _in: [String] + _is_null: Boolean + _like: String + _lt: String + _lte: String + _neq: String + _nilike: String + _nin: [String] + _nlike: String + _nsimilar: String + _similar: String } input AssetFingerprint_comparison_exp { - _eq: String - _in: [String] - _neq: String - _nin: [String] + _eq: String + _in: [String] + _neq: String + _nin: [String] } # ordering options enum order_by { - # in the ascending order, nulls last - asc - # in the ascending order, nulls first - desc + # in the ascending order, nulls last + asc + # in the ascending order, nulls first + desc } # ordering options enum order_by_with_nulls { - # in the ascending order, nulls last - asc - # in the ascending order, nulls first - asc_nulls_first - # in the ascending order, nulls last - asc_nulls_last - # in the descending order, nulls first - desc - # in the descending order, nulls first - desc_nulls_first - # in the descending order, nulls last - desc_nulls_last + # in the ascending order, nulls last + asc + # in the ascending order, nulls first + asc_nulls_first + # in the ascending order, nulls last + asc_nulls_last + # in the descending order, nulls first + desc + # in the descending order, nulls first + desc_nulls_first + # in the descending order, nulls last + desc_nulls_last } input VRFVerificationKey_comparison_exp { - _eq: VRFVerificationKey - _in: [VRFVerificationKey] - _is_null: Boolean - _neq: VRFVerificationKey - _nin: [VRFVerificationKey] + _eq: VRFVerificationKey + _in: [VRFVerificationKey] + _is_null: Boolean + _neq: VRFVerificationKey + _nin: [VRFVerificationKey] } diff --git a/packages/api-cardano-db-hasura/src/executableSchema.ts b/packages/api-cardano-db-hasura/src/executableSchema.ts index 1b60c9c0..0836ffce 100644 --- a/packages/api-cardano-db-hasura/src/executableSchema.ts +++ b/packages/api-cardano-db-hasura/src/executableSchema.ts @@ -75,7 +75,7 @@ export async function buildSchema ( resolvers: Object.assign({}, scalarResolvers, customFieldsComplexity, { Mutation: { submitTransaction: { - resolve: async (_root, args) => { + resolve: async (_root: any, args: { transaction: string }) => { try { const hash = await cardanoNodeClient.submitTransaction( args.transaction @@ -100,7 +100,7 @@ export async function buildSchema ( }, PaymentAddress: { summary: { - resolve: async (parent, args) => { + resolve: async (parent: { address: string }, args: { atBlock: number }) => { try { return await hasuraClient.getPaymentAddressSummary( parent.address, @@ -116,7 +116,7 @@ export async function buildSchema ( }, Query: { activeStake: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -130,7 +130,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'activeStake') }, activeStake_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -165,7 +165,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'ada') }, assets: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -179,7 +179,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'assets') }, assets_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -193,7 +193,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'assets_aggregate') }, blocks: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -207,7 +207,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'blocks') }, blocks_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -221,7 +221,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'blocks_aggregate') }, cardano: { - resolve: async (_root, _args, context, info) => { + resolve: async (_root: any, _args: any, context: any, info: any) => { try { const result = await delegateToSchema({ context, @@ -260,7 +260,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'cardanoDbMeta') }, collateralInputs: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -274,7 +274,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'collateralInputs') }, collateralInputs_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -288,7 +288,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'collateralInputs_aggregate') }, collateralOutputs: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -302,7 +302,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'collateralOutputs') }, collateralOutputs_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -315,8 +315,78 @@ export async function buildSchema ( selectionSet: null, extensions: getComplexityExtension('Query', 'collateralOutputs_aggregate') }, + committees: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'committee', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'committees') + }, + committeeMembers: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'committeeMember', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'committeeMembers') + }, + committeeHashes: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'committeeHash', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'committeeHashes') + }, + committeeRegistration: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'committeeRegistration', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'committeeRegistration') + }, + committeeDeRegistration: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'committeeDeRegistration', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'committeeDeRegistration') + }, delegations: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -329,8 +399,22 @@ export async function buildSchema ( selectionSet: null, extensions: getComplexityExtension('Query', 'delegations') }, + delegationVotes: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'delegationVotes', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'delegationVotes') + }, delegations_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -343,8 +427,22 @@ export async function buildSchema ( selectionSet: null, extensions: getComplexityExtension('Query', 'delegations_aggregate') }, + drepHashes: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'drepHash', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'drepHashes') + }, epochs: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -358,7 +456,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'epochs') }, epochs_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -376,8 +474,78 @@ export async function buildSchema ( selectionSet: null, extensions: getComplexityExtension('Query', 'genesis') }, + offChainVoteData: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'offChainVoteData', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'offChainVoteData') + }, + offChainVoteAuthor: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'offChainVoteAuthor', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'offChainVoteAuthor') + }, + offChainVoteReference: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'offChainVoteReference', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'offChainVoteReference') + }, + offChainVoteGovActionData: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'offChainVoteGovActionData', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'offChainVoteGovActionData') + }, + offChainVoteDrepData: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'offChainVoteDrepData', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'offChainVoteDrepData') + }, paymentAddresses: { - resolve: async (_root, args) => { + resolve: async (_root: any, args: { addresses: any[] }) => { return args.addresses.map(async (address) => { return { address } }) @@ -386,7 +554,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'paymentAddresses') }, redeemers: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -400,7 +568,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'redeemers') }, redeemers_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -414,7 +582,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'redeemers_aggregate') }, rewards: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -428,7 +596,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'rewards') }, rewards_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -442,7 +610,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'rewards_aggregate') }, scripts: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -456,7 +624,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'scripts') }, scripts_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -470,7 +638,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'scripts_aggregate') }, stakeDeregistrations: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -484,7 +652,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'stakeDeregistrations') }, stakeDeregistrations_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -501,7 +669,7 @@ export async function buildSchema ( ) }, stakePools: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -515,7 +683,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'stakePools') }, stakePools_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -529,7 +697,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'stakePools_aggregate') }, stakeRegistrations: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -543,7 +711,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'stakeRegistrations') }, stakeRegistrations_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -560,7 +728,7 @@ export async function buildSchema ( ) }, transactions: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -574,7 +742,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'transactions') }, transactions_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -588,7 +756,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'transactions_aggregate') }, tokenMints: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -602,7 +770,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'tokenMints') }, tokenMints_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -616,7 +784,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'tokenMints_aggregate') }, utxos: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -630,7 +798,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'utxos') }, utxos_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -643,8 +811,22 @@ export async function buildSchema ( selectionSet: null, extensions: getComplexityExtension('Query', 'utxos_aggregate') }, + votingAnchor: { + resolve: (_root: any, args: any, context: any, info: any) => { + return delegateToSchema({ + args, + context, + fieldName: 'votingAnchor', + info, + operation: 'query', + schema: hasuraClient.schema + }) + }, + selectionSet: null, + extensions: getComplexityExtension('Query', 'votingAnchor') + }, withdrawals: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, @@ -658,7 +840,7 @@ export async function buildSchema ( extensions: getComplexityExtension('Query', 'withdrawals') }, withdrawals_aggregate: { - resolve: (_root, args, context, info) => { + resolve: (_root: any, args: any, context: any, info: any) => { return delegateToSchema({ args, context, diff --git a/scripts/dev_env.sh b/scripts/dev_env.sh new file mode 100644 index 00000000..b923644f --- /dev/null +++ b/scripts/dev_env.sh @@ -0,0 +1,33 @@ +# Source this with the CONTEXT and NETWORK env set, containing the full path and +# supported network name. +# e.g. +# CONTEXT=$PWD NETWORK=mainnet . ./scripts/export_env.sh + +export BIN_DIR=${CONTEXT}/bin +export CONFIG_DIR=${CONTEXT}/config/network/${NETWORK} +export SECRETS_DIR=${CONTEXT}/placeholder-secrets +export STATE_DIR=${CONTEXT}/state/network/${NETWORK} + +export API_PORT=3100 +export HASURA_PORT=8091 +export METADATA_SERVER_URI="http://localhost:8080" +export OGMIOS_PORT=1337 +export PG_ADMIN_PORT=8444 +export POSTGRES_PORT=5433 +export TOKEN_REGISTRY_PORT=8080 + + +export ALLOW_INTROSPECTION=true +export CARDANO_NODE_CONFIG_PATH=${CONFIG_DIR}/cardano-node/config.json +export COMPOSE_DOCKER_CLI_BUILD=1 +export DOCKER_BUILDKIT=1 +export HASURA_CLI_PATH=/usr/local/bin/hasura +export HASURA_CLI_EXT_PATH=${HASURA_CLI_PATH} +export HASURA_URI=http://localhost:${HASURA_PORT} +export OGMIOS_HOST=localhost +export POSTGRES_DB=cexplorer +export POSTGRES_PASSWORD=doNoUseThisSecret! +export POSTGRES_USER=postgres +export POSTGRES_HOST=localhost +export TOKEN_REGISTRY_TAG=latest +echo "exported dev env vars for ${NETWORK}"