From 34b5e4818fa10e00b6cdf8dec0714af8394628b9 Mon Sep 17 00:00:00 2001 From: Phan Anh Tuan Date: Wed, 22 Nov 2023 15:54:24 +0700 Subject: [PATCH] feat: remove serenity in hasura metadata --- hasura/metadata/databases/databases.yaml | 15 --- .../serenity/tables/public_account.yaml | 43 ------- .../tables/public_account_vesting.yaml | 23 ---- .../serenity/tables/public_block.yaml | 88 ------------- .../tables/public_block_checkpoint.yaml | 14 -- .../tables/public_block_signature.yaml | 16 --- .../serenity/tables/public_checkpoint.yaml | 3 - .../serenity/tables/public_code.yaml | 35 ----- .../tables/public_code_id_verification.yaml | 27 ---- .../serenity/tables/public_cw20_activity.yaml | 25 ---- .../serenity/tables/public_cw20_contract.yaml | 46 ------- .../serenity/tables/public_cw20_holder.yaml | 19 --- .../public_cw20_total_holder_stats.yaml | 18 --- .../tables/public_cw721_activity.yaml | 37 ------ .../tables/public_cw721_contract.yaml | 44 ------- .../tables/public_cw721_contract_stats.yaml | 19 --- .../serenity/tables/public_cw721_token.yaml | 22 ---- .../serenity/tables/public_delegator.yaml | 17 --- .../serenity/tables/public_event.yaml | 72 ----------- .../tables/public_event_attribute.yaml | 26 ---- .../tables/public_event_attribute_backup.yaml | 13 -- ...t_attribute_partition_2000000_3000000.yaml | 13 -- ...t_attribute_partition_3000000_4000000.yaml | 13 -- ...t_attribute_partition_4000000_5000000.yaml | 13 -- ...t_attribute_partition_5000000_6000000.yaml | 13 -- .../serenity/tables/public_feegrant.yaml | 41 ------ .../tables/public_feegrant_history.yaml | 25 ---- .../tables/public_knex_migrations.yaml | 3 - .../tables/public_knex_migrations_lock.yaml | 3 - .../serenity/tables/public_migrations.yaml | 3 - .../serenity/tables/public_power_event.yaml | 27 ---- .../serenity/tables/public_proposal.yaml | 38 ------ .../tables/public_smart_contract.yaml | 47 ------- .../tables/public_smart_contract_event.yaml | 45 ------- ...public_smart_contract_event_attribute.yaml | 19 --- .../serenity/tables/public_transaction.yaml | 120 ------------------ .../tables/public_transaction_message.yaml | 28 ---- .../public_transaction_message_receiver.yaml | 17 --- .../serenity/tables/public_validator.yaml | 101 --------------- .../public_view_count_holder_cw721.yaml | 13 -- ...blic_view_event_attribute_value_index.yaml | 16 --- .../serenity/tables/public_vote.yaml | 32 ----- .../databases/serenity/tables/tables.yaml | 41 ------ 43 files changed, 1293 deletions(-) delete mode 100644 hasura/metadata/databases/serenity/tables/public_account.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_account_vesting.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_block.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_block_checkpoint.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_block_signature.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_checkpoint.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_code.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_code_id_verification.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw20_activity.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw20_contract.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw20_holder.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw20_total_holder_stats.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw721_activity.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw721_contract.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw721_contract_stats.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_cw721_token.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_delegator.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute_backup.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute_partition_2000000_3000000.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute_partition_3000000_4000000.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute_partition_4000000_5000000.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_event_attribute_partition_5000000_6000000.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_feegrant.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_feegrant_history.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_knex_migrations.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_knex_migrations_lock.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_migrations.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_power_event.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_proposal.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_smart_contract.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_smart_contract_event.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_smart_contract_event_attribute.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_transaction.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_transaction_message.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_transaction_message_receiver.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_validator.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_view_count_holder_cw721.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_view_event_attribute_value_index.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/public_vote.yaml delete mode 100644 hasura/metadata/databases/serenity/tables/tables.yaml diff --git a/hasura/metadata/databases/databases.yaml b/hasura/metadata/databases/databases.yaml index a2165b2cf..10d1649c8 100644 --- a/hasura/metadata/databases/databases.yaml +++ b/hasura/metadata/databases/databases.yaml @@ -57,21 +57,6 @@ type_names: prefix: pion_ tables: '!include pion/tables/tables.yaml' -- name: serenity - kind: postgres - configuration: - connection_info: - database_url: - from_env: DATABASE_URL_SERENITY - isolation_level: read-committed - use_prepared_statements: false - customization: - naming_convention: hasura-default - root_fields: - namespace: serenity - type_names: - prefix: serenity_ - tables: '!include serenity/tables/tables.yaml' - name: xstaxy kind: postgres configuration: diff --git a/hasura/metadata/databases/serenity/tables/public_account.yaml b/hasura/metadata/databases/serenity/tables/public_account.yaml deleted file mode 100644 index 5603886ef..000000000 --- a/hasura/metadata/databases/serenity/tables/public_account.yaml +++ /dev/null @@ -1,43 +0,0 @@ -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 - - role: public - permission: - columns: - - address - - type - - account_number - - id - - sequence - - balances - - pubkey - - spendable_balances - - created_at - - updated_at - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_account_vesting.yaml b/hasura/metadata/databases/serenity/tables/public_account_vesting.yaml deleted file mode 100644 index d3c4d74e1..000000000 --- a/hasura/metadata/databases/serenity/tables/public_account_vesting.yaml +++ /dev/null @@ -1,23 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_block.yaml b/hasura/metadata/databases/serenity/tables/public_block.yaml deleted file mode 100644 index e93dc7516..000000000 --- a/hasura/metadata/databases/serenity/tables/public_block.yaml +++ /dev/null @@ -1,88 +0,0 @@ -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_attribute_backups - using: - foreign_key_constraint_on: - column: block_height - table: - name: event_attribute_backup - schema: public - - name: event_attribute_partition_2000000_3000000s - using: - foreign_key_constraint_on: - column: block_height - table: - name: event_attribute_partition_2000000_3000000 - schema: public - - name: event_attribute_partition_3000000_4000000s - using: - foreign_key_constraint_on: - column: block_height - table: - name: event_attribute_partition_3000000_4000000 - schema: public - - name: event_attribute_partition_4000000_5000000s - using: - foreign_key_constraint_on: - column: block_height - table: - name: event_attribute_partition_4000000_5000000 - schema: public - - name: event_attribute_partition_5000000_6000000s - using: - foreign_key_constraint_on: - column: block_height - table: - name: event_attribute_partition_5000000_6000000 - 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: - - hash - - proposer_address - - height - - data - - time - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_block_checkpoint.yaml b/hasura/metadata/databases/serenity/tables/public_block_checkpoint.yaml deleted file mode 100644 index 95b4455c1..000000000 --- a/hasura/metadata/databases/serenity/tables/public_block_checkpoint.yaml +++ /dev/null @@ -1,14 +0,0 @@ -table: - name: block_checkpoint - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - job_name - - height - - id - - created_at - - updated_at - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_block_signature.yaml b/hasura/metadata/databases/serenity/tables/public_block_signature.yaml deleted file mode 100644 index 3231edf69..000000000 --- a/hasura/metadata/databases/serenity/tables/public_block_signature.yaml +++ /dev/null @@ -1,16 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_checkpoint.yaml b/hasura/metadata/databases/serenity/tables/public_checkpoint.yaml deleted file mode 100644 index 539bf5329..000000000 --- a/hasura/metadata/databases/serenity/tables/public_checkpoint.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: checkpoint - schema: public diff --git a/hasura/metadata/databases/serenity/tables/public_code.yaml b/hasura/metadata/databases/serenity/tables/public_code.yaml deleted file mode 100644 index e4afe1ff3..000000000 --- a/hasura/metadata/databases/serenity/tables/public_code.yaml +++ /dev/null @@ -1,35 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_code_id_verification.yaml b/hasura/metadata/databases/serenity/tables/public_code_id_verification.yaml deleted file mode 100644 index c34a8381a..000000000 --- a/hasura/metadata/databases/serenity/tables/public_code_id_verification.yaml +++ /dev/null @@ -1,27 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_cw20_activity.yaml b/hasura/metadata/databases/serenity/tables/public_cw20_activity.yaml deleted file mode 100644 index d21d33d9a..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw20_activity.yaml +++ /dev/null @@ -1,25 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_cw20_contract.yaml b/hasura/metadata/databases/serenity/tables/public_cw20_contract.yaml deleted file mode 100644 index 83a146f1e..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw20_contract.yaml +++ /dev/null @@ -1,46 +0,0 @@ -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 diff --git a/hasura/metadata/databases/serenity/tables/public_cw20_holder.yaml b/hasura/metadata/databases/serenity/tables/public_cw20_holder.yaml deleted file mode 100644 index 78058cb33..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw20_holder.yaml +++ /dev/null @@ -1,19 +0,0 @@ -table: - name: cw20_holder - schema: public -object_relationships: - - name: cw20_contract - using: - foreign_key_constraint_on: cw20_contract_id -select_permissions: - - role: internal_service - permission: - columns: - - address - - cw20_contract_id - - id - - last_updated_height - - amount - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_cw20_total_holder_stats.yaml b/hasura/metadata/databases/serenity/tables/public_cw20_total_holder_stats.yaml deleted file mode 100644 index 01d2bc27e..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw20_total_holder_stats.yaml +++ /dev/null @@ -1,18 +0,0 @@ -table: - name: cw20_total_holder_stats - schema: public -object_relationships: - - name: cw20_contract - using: - foreign_key_constraint_on: cw20_contract_id -select_permissions: - - role: internal_service - permission: - columns: - - id - - cw20_contract_id - - total_holder - - date - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_cw721_activity.yaml b/hasura/metadata/databases/serenity/tables/public_cw721_activity.yaml deleted file mode 100644 index c3846a316..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw721_activity.yaml +++ /dev/null @@ -1,37 +0,0 @@ -table: - name: cw721_activity - schema: public -object_relationships: - - name: cw721_contract - using: - foreign_key_constraint_on: cw721_contract_id - - name: smart_contract_event - using: - foreign_key_constraint_on: smart_contract_event_id - - name: tx - using: - manual_configuration: - column_mapping: - tx_hash: hash - insertion_order: null - remote_table: - name: transaction - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - action - - from - - sender - - to - - tx_hash - - cw721_contract_id - - cw721_token_id - - height - - id - - smart_contract_event_id - - created_at - - updated_at - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_cw721_contract.yaml b/hasura/metadata/databases/serenity/tables/public_cw721_contract.yaml deleted file mode 100644 index 2c8cc19ad..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw721_contract.yaml +++ /dev/null @@ -1,44 +0,0 @@ -table: - name: cw721_contract - schema: public -object_relationships: - - name: cw721_contract_stat - using: - foreign_key_constraint_on: - column: cw721_contract_id - table: - name: cw721_contract_stats - schema: public - - name: smart_contract - using: - foreign_key_constraint_on: contract_id -array_relationships: - - name: cw721_activities - using: - foreign_key_constraint_on: - column: cw721_contract_id - table: - name: cw721_activity - schema: public - - name: cw721_tokens - using: - foreign_key_constraint_on: - column: cw721_contract_id - table: - name: cw721_token - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - track - - minter - - name - - symbol - - contract_id - - id - - created_at - - updated_at - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_cw721_contract_stats.yaml b/hasura/metadata/databases/serenity/tables/public_cw721_contract_stats.yaml deleted file mode 100644 index 99543502f..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw721_contract_stats.yaml +++ /dev/null @@ -1,19 +0,0 @@ -table: - name: cw721_contract_stats - schema: public -object_relationships: - - name: cw721_contract - using: - foreign_key_constraint_on: cw721_contract_id -select_permissions: - - role: internal_service - permission: - columns: - - cw721_contract_id - - id - - total_activity - - transfer_24h - - updated_at - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_cw721_token.yaml b/hasura/metadata/databases/serenity/tables/public_cw721_token.yaml deleted file mode 100644 index df7d1e20b..000000000 --- a/hasura/metadata/databases/serenity/tables/public_cw721_token.yaml +++ /dev/null @@ -1,22 +0,0 @@ -table: - name: cw721_token - schema: public -object_relationships: - - name: cw721_contract - using: - foreign_key_constraint_on: cw721_contract_id -select_permissions: - - role: internal_service - permission: - columns: - - burned - - owner - - token_id - - cw721_contract_id - - id - - last_updated_height - - media_info - - created_at - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_delegator.yaml b/hasura/metadata/databases/serenity/tables/public_delegator.yaml deleted file mode 100644 index 0f73e8f78..000000000 --- a/hasura/metadata/databases/serenity/tables/public_delegator.yaml +++ /dev/null @@ -1,17 +0,0 @@ -table: - name: delegator - schema: public -object_relationships: - - name: validator - using: - foreign_key_constraint_on: validator_id -select_permissions: - - role: internal_service - permission: - columns: - - delegator_address - - id - - validator_id - - amount - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_event.yaml b/hasura/metadata/databases/serenity/tables/public_event.yaml deleted file mode 100644 index 50efae1a0..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event.yaml +++ /dev/null @@ -1,72 +0,0 @@ -table: - name: event - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: transaction - using: - foreign_key_constraint_on: tx_id -array_relationships: - - name: event_attribute_backups - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute_backup - schema: public - - name: event_attribute_partition_2000000_3000000s - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute_partition_2000000_3000000 - schema: public - - name: event_attribute_partition_3000000_4000000s - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute_partition_3000000_4000000 - schema: public - - name: event_attribute_partition_4000000_5000000s - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute_partition_4000000_5000000 - schema: public - - name: event_attribute_partition_5000000_6000000s - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute_partition_5000000_6000000 - schema: public - - name: event_attributes - using: - foreign_key_constraint_on: - column: event_id - table: - name: event_attribute - schema: public - - name: smart_contract_events - using: - foreign_key_constraint_on: - column: event_id - table: - name: smart_contract_event - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - source - - type - - block_height - - id - - tx_id - - tx_msg_index - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute.yaml deleted file mode 100644 index 54abd4146..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute.yaml +++ /dev/null @@ -1,26 +0,0 @@ -table: - name: event_attribute - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id -select_permissions: - - role: internal_service - permission: - columns: - - composite_key - - key - - block_height - - event_id - - index - - tx_id - - value - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute_backup.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute_backup.yaml deleted file mode 100644 index ac2709741..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute_backup.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: event_attribute_backup - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_2000000_3000000.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_2000000_3000000.yaml deleted file mode 100644 index 7a66f5245..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_2000000_3000000.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: event_attribute_partition_2000000_3000000 - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_3000000_4000000.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_3000000_4000000.yaml deleted file mode 100644 index 3e95f3bf8..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_3000000_4000000.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: event_attribute_partition_3000000_4000000 - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_4000000_5000000.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_4000000_5000000.yaml deleted file mode 100644 index 43dfe380e..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_4000000_5000000.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: event_attribute_partition_4000000_5000000 - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id diff --git a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_5000000_6000000.yaml b/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_5000000_6000000.yaml deleted file mode 100644 index cdfa2e471..000000000 --- a/hasura/metadata/databases/serenity/tables/public_event_attribute_partition_5000000_6000000.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: event_attribute_partition_5000000_6000000 - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: block_height - - name: event - using: - foreign_key_constraint_on: event_id - - name: transaction - using: - foreign_key_constraint_on: tx_id diff --git a/hasura/metadata/databases/serenity/tables/public_feegrant.yaml b/hasura/metadata/databases/serenity/tables/public_feegrant.yaml deleted file mode 100644 index d63810d1c..000000000 --- a/hasura/metadata/databases/serenity/tables/public_feegrant.yaml +++ /dev/null @@ -1,41 +0,0 @@ -table: - name: feegrant - schema: public -object_relationships: - - name: revoke_tx - using: - manual_configuration: - column_mapping: - revoke_tx_id: id - insertion_order: null - remote_table: - name: transaction - schema: public - - name: transaction - using: - foreign_key_constraint_on: init_tx_id -array_relationships: - - name: feegrant_histories - using: - foreign_key_constraint_on: - column: feegrant_id - table: - name: feegrant_history - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - denom - - grantee - - granter - - status - - type - - id - - init_tx_id - - revoke_tx_id - - spend_limit - - expiration - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_feegrant_history.yaml b/hasura/metadata/databases/serenity/tables/public_feegrant_history.yaml deleted file mode 100644 index 957388cc1..000000000 --- a/hasura/metadata/databases/serenity/tables/public_feegrant_history.yaml +++ /dev/null @@ -1,25 +0,0 @@ -table: - name: feegrant_history - schema: public -object_relationships: - - name: feegrant - using: - foreign_key_constraint_on: feegrant_id - - name: transaction - using: - foreign_key_constraint_on: tx_id -select_permissions: - - role: internal_service - permission: - columns: - - processed - - action - - denom - - grantee - - granter - - feegrant_id - - id - - tx_id - - amount - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_knex_migrations.yaml b/hasura/metadata/databases/serenity/tables/public_knex_migrations.yaml deleted file mode 100644 index bc8ad63fe..000000000 --- a/hasura/metadata/databases/serenity/tables/public_knex_migrations.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: knex_migrations - schema: public diff --git a/hasura/metadata/databases/serenity/tables/public_knex_migrations_lock.yaml b/hasura/metadata/databases/serenity/tables/public_knex_migrations_lock.yaml deleted file mode 100644 index df1e82af9..000000000 --- a/hasura/metadata/databases/serenity/tables/public_knex_migrations_lock.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: knex_migrations_lock - schema: public diff --git a/hasura/metadata/databases/serenity/tables/public_migrations.yaml b/hasura/metadata/databases/serenity/tables/public_migrations.yaml deleted file mode 100644 index c1c1ca6c2..000000000 --- a/hasura/metadata/databases/serenity/tables/public_migrations.yaml +++ /dev/null @@ -1,3 +0,0 @@ -table: - name: migrations - schema: public diff --git a/hasura/metadata/databases/serenity/tables/public_power_event.yaml b/hasura/metadata/databases/serenity/tables/public_power_event.yaml deleted file mode 100644 index 7b2509950..000000000 --- a/hasura/metadata/databases/serenity/tables/public_power_event.yaml +++ /dev/null @@ -1,27 +0,0 @@ -table: - name: power_event - schema: public -object_relationships: - - name: transaction - using: - foreign_key_constraint_on: tx_id - - name: validatorDst - using: - foreign_key_constraint_on: validator_dst_id - - name: validatorSrc - using: - foreign_key_constraint_on: validator_src_id -select_permissions: - - role: internal_service - permission: - columns: - - height - - id - - tx_id - - validator_dst_id - - validator_src_id - - amount - - type - - time - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_proposal.yaml b/hasura/metadata/databases/serenity/tables/public_proposal.yaml deleted file mode 100644 index 181ca38b5..000000000 --- a/hasura/metadata/databases/serenity/tables/public_proposal.yaml +++ /dev/null @@ -1,38 +0,0 @@ -table: - name: proposal - schema: public -object_relationships: - - name: proposer - using: - manual_configuration: - column_mapping: - proposer_address: account_address - insertion_order: null - remote_table: - name: validator - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - proposer_address - - status - - title - - type - - proposal_id - - content - - count_vote - - initial_deposit - - tally - - total_deposit - - turnout - - description - - created_at - - deposit_end_time - - submit_time - - updated_at - - voting_end_time - - voting_start_time - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_smart_contract.yaml b/hasura/metadata/databases/serenity/tables/public_smart_contract.yaml deleted file mode 100644 index b824f1eb8..000000000 --- a/hasura/metadata/databases/serenity/tables/public_smart_contract.yaml +++ /dev/null @@ -1,47 +0,0 @@ -table: - name: smart_contract - schema: public -object_relationships: - - name: code - using: - foreign_key_constraint_on: code_id - - name: cw20_contract - using: - foreign_key_constraint_on: - column: smart_contract_id - table: - name: cw20_contract - schema: public - - name: cw721_contract - using: - foreign_key_constraint_on: - column: contract_id - table: - name: cw721_contract - schema: public -array_relationships: - - name: smart_contract_events - using: - foreign_key_constraint_on: - column: smart_contract_id - table: - name: smart_contract_event - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - address - - creator - - instantiate_hash - - name - - version - - code_id - - id - - instantiate_height - - label - - created_at - - updated_at - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_smart_contract_event.yaml b/hasura/metadata/databases/serenity/tables/public_smart_contract_event.yaml deleted file mode 100644 index 2cd9cf021..000000000 --- a/hasura/metadata/databases/serenity/tables/public_smart_contract_event.yaml +++ /dev/null @@ -1,45 +0,0 @@ -table: - name: smart_contract_event - schema: public -object_relationships: - - name: event - using: - foreign_key_constraint_on: event_id - - name: smart_contract - using: - foreign_key_constraint_on: smart_contract_id -array_relationships: - - name: cw20_activities - using: - foreign_key_constraint_on: - column: smart_contract_event_id - table: - name: cw20_activity - schema: public - - name: cw721_activities - using: - foreign_key_constraint_on: - column: smart_contract_event_id - table: - name: cw721_activity - schema: public - - name: smart_contract_event_attributes - using: - foreign_key_constraint_on: - column: smart_contract_event_id - table: - name: smart_contract_event_attribute - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - action - - event_id - - id - - index - - smart_contract_id - - created_at - - updated_at - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_smart_contract_event_attribute.yaml b/hasura/metadata/databases/serenity/tables/public_smart_contract_event_attribute.yaml deleted file mode 100644 index 8d7c44490..000000000 --- a/hasura/metadata/databases/serenity/tables/public_smart_contract_event_attribute.yaml +++ /dev/null @@ -1,19 +0,0 @@ -table: - name: smart_contract_event_attribute - schema: public -object_relationships: - - name: smart_contract_event - using: - foreign_key_constraint_on: smart_contract_event_id -select_permissions: - - role: internal_service - permission: - columns: - - key - - id - - smart_contract_event_id - - value - - created_at - - updated_at - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_transaction.yaml b/hasura/metadata/databases/serenity/tables/public_transaction.yaml deleted file mode 100644 index 3d80b3a09..000000000 --- a/hasura/metadata/databases/serenity/tables/public_transaction.yaml +++ /dev/null @@ -1,120 +0,0 @@ -table: - name: transaction - schema: public -object_relationships: - - name: block - using: - foreign_key_constraint_on: height -array_relationships: - - name: event_attribute_backups - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute_backup - schema: public - - name: event_attribute_index - using: - manual_configuration: - column_mapping: - id: tx_id - insertion_order: null - remote_table: - name: view_event_attribute_value_index - schema: public - - name: event_attribute_partition_2000000_3000000s - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute_partition_2000000_3000000 - schema: public - - name: event_attribute_partition_3000000_4000000s - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute_partition_3000000_4000000 - schema: public - - name: event_attribute_partition_4000000_5000000s - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute_partition_4000000_5000000 - schema: public - - name: event_attribute_partition_5000000_6000000s - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute_partition_5000000_6000000 - schema: public - - name: event_attributes - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event_attribute - schema: public - - name: events - using: - foreign_key_constraint_on: - column: tx_id - table: - name: event - schema: public - - name: feegrant_histories - using: - foreign_key_constraint_on: - column: tx_id - table: - name: feegrant_history - schema: public - - name: feegrants - using: - foreign_key_constraint_on: - column: init_tx_id - table: - name: feegrant - schema: public - - name: power_events - using: - foreign_key_constraint_on: - column: tx_id - table: - name: power_event - schema: public - - name: transaction_messages - using: - foreign_key_constraint_on: - column: tx_id - table: - name: transaction_message - schema: public - - name: votes - using: - foreign_key_constraint_on: - column: tx_id - table: - name: vote - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - gas_limit - - gas_used - - gas_wanted - - codespace - - hash - - code - - height - - id - - index - - data - - fee - - memo - - timestamp - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_transaction_message.yaml b/hasura/metadata/databases/serenity/tables/public_transaction_message.yaml deleted file mode 100644 index 4e98f41cd..000000000 --- a/hasura/metadata/databases/serenity/tables/public_transaction_message.yaml +++ /dev/null @@ -1,28 +0,0 @@ -table: - name: transaction_message - schema: public -object_relationships: - - name: transaction - using: - foreign_key_constraint_on: tx_id -array_relationships: - - name: transaction_message_receivers - using: - foreign_key_constraint_on: - column: tx_msg_id - table: - name: transaction_message_receiver - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - sender - - type - - id - - index - - parent_id - - tx_id - - content - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_transaction_message_receiver.yaml b/hasura/metadata/databases/serenity/tables/public_transaction_message_receiver.yaml deleted file mode 100644 index 39e13886d..000000000 --- a/hasura/metadata/databases/serenity/tables/public_transaction_message_receiver.yaml +++ /dev/null @@ -1,17 +0,0 @@ -table: - name: transaction_message_receiver - schema: public -object_relationships: - - name: transaction_message - using: - foreign_key_constraint_on: tx_msg_id -select_permissions: - - role: internal_service - permission: - columns: - - address - - reason - - id - - tx_msg_id - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_validator.yaml b/hasura/metadata/databases/serenity/tables/public_validator.yaml deleted file mode 100644 index a4c001876..000000000 --- a/hasura/metadata/databases/serenity/tables/public_validator.yaml +++ /dev/null @@ -1,101 +0,0 @@ -table: - name: validator - schema: public -array_relationships: - - name: delegators - using: - foreign_key_constraint_on: - column: validator_id - table: - name: delegator - schema: public - - name: powerEventsByValidatorSrcId - using: - foreign_key_constraint_on: - column: validator_src_id - table: - name: power_event - schema: public - - name: power_events - using: - foreign_key_constraint_on: - column: validator_dst_id - table: - name: power_event - schema: public - - name: vote - using: - manual_configuration: - column_mapping: - account_address: voter - insertion_order: null - remote_table: - name: vote - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - jailed - - tombstoned - - account_address - - consensus_address - - consensus_hex_address - - image_url - - operator_address - - status - - delegators_count - - delegators_last_height - - id - - index_offset - - missed_blocks_counter - - start_height - - unbonding_height - - commission - - consensus_pubkey - - description - - delegator_shares - - min_self_delegation - - self_delegation_balance - - tokens - - percent_voting_power - - uptime - - created_at - - jailed_until - - unbonding_time - - updated_at - filter: {} - limit: 200 - allow_aggregations: true - - role: public - permission: - columns: - - jailed - - tombstoned - - account_address - - consensus_address - - consensus_hex_address - - operator_address - - status - - delegators_count - - delegators_last_height - - id - - index_offset - - missed_blocks_counter - - start_height - - unbonding_height - - commission - - consensus_pubkey - - description - - delegator_shares - - min_self_delegation - - self_delegation_balance - - tokens - - percent_voting_power - - uptime - - created_at - - jailed_until - - unbonding_time - - updated_at - filter: {} - limit: 200 diff --git a/hasura/metadata/databases/serenity/tables/public_view_count_holder_cw721.yaml b/hasura/metadata/databases/serenity/tables/public_view_count_holder_cw721.yaml deleted file mode 100644 index 37ade19ba..000000000 --- a/hasura/metadata/databases/serenity/tables/public_view_count_holder_cw721.yaml +++ /dev/null @@ -1,13 +0,0 @@ -table: - name: view_count_holder_cw721 - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - count - - contract_address - - owner - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/public_view_event_attribute_value_index.yaml b/hasura/metadata/databases/serenity/tables/public_view_event_attribute_value_index.yaml deleted file mode 100644 index 64c21b658..000000000 --- a/hasura/metadata/databases/serenity/tables/public_view_event_attribute_value_index.yaml +++ /dev/null @@ -1,16 +0,0 @@ -table: - name: view_event_attribute_value_index - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - composite_key - - key - - block_height - - event_id - - index - - tx_id - - value - filter: {} - limit: 100 diff --git a/hasura/metadata/databases/serenity/tables/public_vote.yaml b/hasura/metadata/databases/serenity/tables/public_vote.yaml deleted file mode 100644 index ba4e7806f..000000000 --- a/hasura/metadata/databases/serenity/tables/public_vote.yaml +++ /dev/null @@ -1,32 +0,0 @@ -table: - name: vote - schema: public -object_relationships: - - name: transaction - using: - foreign_key_constraint_on: tx_id - - name: validator - using: - manual_configuration: - column_mapping: - voter: account_address - insertion_order: null - remote_table: - name: validator - schema: public -select_permissions: - - role: internal_service - permission: - columns: - - txhash - - vote_option - - voter - - height - - id - - proposal_id - - tx_id - - created_at - - updated_at - filter: {} - limit: 100 - allow_aggregations: true diff --git a/hasura/metadata/databases/serenity/tables/tables.yaml b/hasura/metadata/databases/serenity/tables/tables.yaml deleted file mode 100644 index 789234c77..000000000 --- a/hasura/metadata/databases/serenity/tables/tables.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- '!include public_account.yaml' -- '!include public_account_vesting.yaml' -- '!include public_block.yaml' -- '!include public_block_checkpoint.yaml' -- '!include public_block_signature.yaml' -- '!include public_checkpoint.yaml' -- '!include public_code.yaml' -- '!include public_code_id_verification.yaml' -- '!include public_cw20_activity.yaml' -- '!include public_cw20_contract.yaml' -- '!include public_cw20_holder.yaml' -- '!include public_cw20_total_holder_stats.yaml' -- '!include public_cw721_activity.yaml' -- '!include public_cw721_contract.yaml' -- '!include public_cw721_contract_stats.yaml' -- '!include public_cw721_token.yaml' -- '!include public_delegator.yaml' -- '!include public_event.yaml' -- '!include public_event_attribute.yaml' -- '!include public_event_attribute_backup.yaml' -- '!include public_event_attribute_partition_2000000_3000000.yaml' -- '!include public_event_attribute_partition_3000000_4000000.yaml' -- '!include public_event_attribute_partition_4000000_5000000.yaml' -- '!include public_event_attribute_partition_5000000_6000000.yaml' -- '!include public_feegrant.yaml' -- '!include public_feegrant_history.yaml' -- '!include public_knex_migrations.yaml' -- '!include public_knex_migrations_lock.yaml' -- '!include public_migrations.yaml' -- '!include public_power_event.yaml' -- '!include public_proposal.yaml' -- '!include public_smart_contract.yaml' -- '!include public_smart_contract_event.yaml' -- '!include public_smart_contract_event_attribute.yaml' -- '!include public_transaction.yaml' -- '!include public_transaction_message.yaml' -- '!include public_transaction_message_receiver.yaml' -- '!include public_validator.yaml' -- '!include public_view_count_holder_cw721.yaml' -- '!include public_view_event_attribute_value_index.yaml' -- '!include public_vote.yaml'