Skip to content

Commit

Permalink
feat: create hasura directory for develop branch (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 authored Aug 28, 2023
1 parent 60dbf4e commit a10a8ee
Show file tree
Hide file tree
Showing 188 changed files with 5,766 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hasura/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 3
endpoint: http://localhost:8080
metadata_directory: metadata
actions:
kind: synchronous
handler_webhook_baseurl: http://localhost:3000
Empty file added hasura/metadata/actions.graphql
Empty file.
6 changes: 6 additions & 0 deletions hasura/metadata/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
actions: []
custom_types:
enums: []
input_objects: []
objects: []
scalars: []
3 changes: 3 additions & 0 deletions hasura/metadata/allow_list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- collection: allowed-queries
scope:
global: true
1 change: 1 addition & 0 deletions hasura/metadata/api_limits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions hasura/metadata/backend_configs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions hasura/metadata/cron_triggers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- "!include public_related_contract_address.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function:
name: related_contract_address
schema: public
28 changes: 28 additions & 0 deletions hasura/metadata/databases/auratestnet/tables/public_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
table:
name: account
schema: public
object_relationships:
- name: account_vesting
using:
foreign_key_constraint_on:
column: account_id
table:
name: account_vesting
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- address
- type
- account_number
- id
- sequence
- balances
- pubkey
- spendable_balances
- created_at
- updated_at
filter: {}
limit: 100
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
table:
name: account_statistics
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- id
- address
- amount_sent
- amount_received
- tx_sent
- gas_used
- date
filter: {}
limit: 100
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
table:
name: account_vesting
schema: public
object_relationships:
- name: account
using:
foreign_key_constraint_on: account_id
select_permissions:
- role: internal_service
permission:
columns:
- account_id
- end_time
- id
- start_time
- delegated_free
- delegated_vesting
- original_vesting
- created_at
- updated_at
filter: {}
limit: 100
allow_aggregations: true
63 changes: 63 additions & 0 deletions hasura/metadata/databases/auratestnet/tables/public_block.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
table:
name: block
schema: public
object_relationships:
- name: validator
using:
manual_configuration:
column_mapping:
proposer_address: consensus_hex_address
insertion_order: null
remote_table:
name: validator
schema: public
array_relationships:
- name: block_signatures
using:
foreign_key_constraint_on:
column: height
table:
name: block_signature
schema: public
- name: event_attributes
using:
foreign_key_constraint_on:
column: block_height
table:
name: event_attribute
schema: public
- name: events
using:
foreign_key_constraint_on:
column: block_height
table:
name: event
schema: public
- name: transactions
using:
foreign_key_constraint_on:
column: height
table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- height
- hash
- time
- proposer_address
- data
filter: {}
limit: 100
- role: public
permission:
columns:
- height
- hash
- time
- proposer_address
- data
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
table:
name: block_checkpoint
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- job_name
- height
- id
- created_at
- updated_at
filter: {}
limit: 100
- role: public
permission:
columns:
- job_name
- height
- id
- created_at
- updated_at
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
table:
name: block_signature
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: height
- name: validator
using:
manual_configuration:
column_mapping:
validator_address: consensus_hex_address
insertion_order: null
remote_table:
name: validator
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- validator_address
- block_id_flag
- height
- id
- signature
- timestamp
filter: {}
limit: 100
- role: public
permission:
columns:
- validator_address
- block_id_flag
- height
- id
- signature
- timestamp
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: checkpoint
schema: public
50 changes: 50 additions & 0 deletions hasura/metadata/databases/auratestnet/tables/public_code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
table:
name: code
schema: public
array_relationships:
- name: code_id_verifications
using:
foreign_key_constraint_on:
column: code_id
table:
name: code_id_verification
schema: public
- name: smart_contracts
using:
foreign_key_constraint_on:
column: code_id
table:
name: smart_contract
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- creator
- data_hash
- status
- store_hash
- type
- code_id
- store_height
- instantiate_permission
- created_at
- updated_at
filter: {}
limit: 100
allow_aggregations: true
- role: public
permission:
columns:
- creator
- data_hash
- status
- store_hash
- type
- code_id
- store_height
- instantiate_permission
- created_at
- updated_at
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
table:
name: code_id_verification
schema: public
object_relationships:
- name: code
using:
foreign_key_constraint_on: code_id
select_permissions:
- role: internal_service
permission:
columns:
- compiler_version
- data_hash
- github_url
- s3_location
- verification_status
- code_id
- id
- verify_step
- execute_msg_schema
- instantiate_msg_schema
- query_msg_schema
- created_at
- updated_at
- verified_at
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
table:
name: cw20_activity
schema: public
object_relationships:
- name: cw20_contract
using:
foreign_key_constraint_on: cw20_contract_id
- name: smart_contract_event
using:
foreign_key_constraint_on: smart_contract_event_id
select_permissions:
- role: internal_service
permission:
columns:
- action
- from
- sender
- to
- cw20_contract_id
- height
- id
- smart_contract_event_id
- amount
filter: {}
limit: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
table:
name: cw20_contract
schema: public
object_relationships:
- name: smart_contract
using:
foreign_key_constraint_on: smart_contract_id
array_relationships:
- name: cw20_activities
using:
foreign_key_constraint_on:
column: cw20_contract_id
table:
name: cw20_activity
schema: public
- name: cw20_holders
using:
foreign_key_constraint_on:
column: cw20_contract_id
table:
name: cw20_holder
schema: public
- name: cw20_total_holder_stats
using:
foreign_key_constraint_on:
column: cw20_contract_id
table:
name: cw20_total_holder_stats
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- track
- decimal
- minter
- name
- symbol
- id
- last_updated_height
- smart_contract_id
- marketing_info
- total_supply
filter: {}
limit: 100
allow_aggregations: true
Loading

0 comments on commit a10a8ee

Please sign in to comment.