diff --git a/hasura/metadata/databases/databases.yaml b/hasura/metadata/databases/databases.yaml index 25ba5ee5b..e99236bbc 100644 --- a/hasura/metadata/databases/databases.yaml +++ b/hasura/metadata/databases/databases.yaml @@ -11,7 +11,7 @@ max_connections: 50 retries: 1 use_prepared_statements: true - tables: "!include default/tables/tables.yaml" + tables: '!include default/tables/tables.yaml' - name: auratestnet kind: postgres configuration: @@ -26,8 +26,8 @@ namespace: auratestnet type_names: prefix: auratestnet_ - tables: "!include auratestnet/tables/tables.yaml" - functions: "!include auratestnet/functions/functions.yaml" + tables: '!include auratestnet/tables/tables.yaml' + functions: '!include auratestnet/functions/functions.yaml' - name: euphoria kind: postgres configuration: @@ -42,7 +42,7 @@ namespace: euphoria type_names: prefix: euphoria_ - tables: "!include euphoria/tables/tables.yaml" + tables: '!include euphoria/tables/tables.yaml' - name: serenity kind: postgres configuration: @@ -57,7 +57,7 @@ namespace: serenity type_names: prefix: serenity_ - tables: "!include serenity/tables/tables.yaml" + tables: '!include serenity/tables/tables.yaml' - name: xstaxy kind: postgres configuration: @@ -72,4 +72,34 @@ namespace: xstaxy type_names: prefix: xstaxy_ - tables: "!include xstaxy/tables/tables.yaml" + tables: '!include xstaxy/tables/tables.yaml' +- name: nois + kind: postgres + configuration: + connection_info: + database_url: + from_env: DATABASE_URL_NOIS + isolation_level: read-committed + use_prepared_statements: false + customization: + naming_convention: hasura-default + root_fields: + namespace: nois + type_names: + prefix: nois_ + tables: '!include nois/tables/tables.yaml' +- name: theta + kind: postgres + configuration: + connection_info: + database_url: + from_env: DATABASE_URL_THETA + isolation_level: read-committed + use_prepared_statements: false + customization: + naming_convention: hasura-default + root_fields: + namespace: theta + type_names: + prefix: theta_ + tables: '!include nois/tables/tables.yaml' diff --git a/hasura/metadata/databases/nois/tables/public_account.yaml b/hasura/metadata/databases/nois/tables/public_account.yaml new file mode 100644 index 000000000..dffac39d9 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_account.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_account_statistics.yaml b/hasura/metadata/databases/nois/tables/public_account_statistics.yaml new file mode 100644 index 000000000..0d44cca36 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_account_statistics.yaml @@ -0,0 +1,17 @@ +table: + name: account_statistics + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - amount_received + - amount_sent + - gas_used + - tx_sent + - address + - id + - date + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/nois/tables/public_account_vesting.yaml b/hasura/metadata/databases/nois/tables/public_account_vesting.yaml new file mode 100644 index 000000000..d3c4d74e1 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_account_vesting.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_block.yaml b/hasura/metadata/databases/nois/tables/public_block.yaml new file mode 100644 index 000000000..83a3ed533 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_block.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_block_checkpoint.yaml b/hasura/metadata/databases/nois/tables/public_block_checkpoint.yaml new file mode 100644 index 000000000..4ab15e6fe --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_block_checkpoint.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_block_signature.yaml b/hasura/metadata/databases/nois/tables/public_block_signature.yaml new file mode 100644 index 000000000..0abb92664 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_block_signature.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_checkpoint.yaml b/hasura/metadata/databases/nois/tables/public_checkpoint.yaml new file mode 100644 index 000000000..539bf5329 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_checkpoint.yaml @@ -0,0 +1,3 @@ +table: + name: checkpoint + schema: public diff --git a/hasura/metadata/databases/nois/tables/public_code.yaml b/hasura/metadata/databases/nois/tables/public_code.yaml new file mode 100644 index 000000000..a9141ddbb --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_code.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_code_id_verification.yaml b/hasura/metadata/databases/nois/tables/public_code_id_verification.yaml new file mode 100644 index 000000000..c34a8381a --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_code_id_verification.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_cw20_activity.yaml b/hasura/metadata/databases/nois/tables/public_cw20_activity.yaml new file mode 100644 index 000000000..d21d33d9a --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw20_activity.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_cw20_contract.yaml b/hasura/metadata/databases/nois/tables/public_cw20_contract.yaml new file mode 100644 index 000000000..83a146f1e --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw20_contract.yaml @@ -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 diff --git a/hasura/metadata/databases/nois/tables/public_cw20_holder.yaml b/hasura/metadata/databases/nois/tables/public_cw20_holder.yaml new file mode 100644 index 000000000..78058cb33 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw20_holder.yaml @@ -0,0 +1,19 @@ +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/nois/tables/public_cw20_total_holder_stats.yaml b/hasura/metadata/databases/nois/tables/public_cw20_total_holder_stats.yaml new file mode 100644 index 000000000..095c9963b --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw20_total_holder_stats.yaml @@ -0,0 +1,18 @@ +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: + - date + - cw20_contract_id + - id + - total_holder + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/nois/tables/public_cw721_activity.yaml b/hasura/metadata/databases/nois/tables/public_cw721_activity.yaml new file mode 100644 index 000000000..4f66efdf7 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw721_activity.yaml @@ -0,0 +1,46 @@ +table: + name: cw721_activity + schema: public +object_relationships: + - name: cw721_contract + using: + foreign_key_constraint_on: cw721_contract_id + - name: cw721_token + using: + manual_configuration: + column_mapping: + cw721_token_id: id + insertion_order: null + remote_table: + name: cw721_token + schema: public + - 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/nois/tables/public_cw721_contract.yaml b/hasura/metadata/databases/nois/tables/public_cw721_contract.yaml new file mode 100644 index 000000000..6927006f9 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw721_contract.yaml @@ -0,0 +1,57 @@ +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 + - role: public + permission: + columns: + - track + - minter + - name + - symbol + - contract_id + - id + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_cw721_contract_stats.yaml b/hasura/metadata/databases/nois/tables/public_cw721_contract_stats.yaml new file mode 100644 index 000000000..99543502f --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw721_contract_stats.yaml @@ -0,0 +1,19 @@ +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/nois/tables/public_cw721_token.yaml b/hasura/metadata/databases/nois/tables/public_cw721_token.yaml new file mode 100644 index 000000000..10c486bfd --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_cw721_token.yaml @@ -0,0 +1,35 @@ +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: + - id + - token_id + - owner + - cw721_contract_id + - last_updated_height + - created_at + - burned + - media_info + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - id + - token_id + - owner + - cw721_contract_id + - last_updated_height + - created_at + - burned + - media_info + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_daily_statistics.yaml b/hasura/metadata/databases/nois/tables/public_daily_statistics.yaml new file mode 100644 index 000000000..06bbae841 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_daily_statistics.yaml @@ -0,0 +1,15 @@ +table: + name: daily_statistics + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - daily_txs + - daily_active_addresses + - unique_addresses + - date + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/nois/tables/public_delegator.yaml b/hasura/metadata/databases/nois/tables/public_delegator.yaml new file mode 100644 index 000000000..0f73e8f78 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_delegator.yaml @@ -0,0 +1,17 @@ +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/nois/tables/public_event.yaml b/hasura/metadata/databases/nois/tables/public_event.yaml new file mode 100644 index 000000000..795292b16 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_event.yaml @@ -0,0 +1,56 @@ +table: + name: event + schema: public +object_relationships: + - name: block + using: + foreign_key_constraint_on: block_height + - name: message + using: + manual_configuration: + column_mapping: + tx_id: tx_id + tx_msg_index: index + insertion_order: null + remote_table: + name: transaction_message + schema: public + - name: transaction + using: + foreign_key_constraint_on: tx_id +array_relationships: + - name: event_attribute_index + using: + manual_configuration: + column_mapping: + id: event_id + insertion_order: null + remote_table: + name: view_event_attribute_value_index + 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/nois/tables/public_event_attribute.yaml b/hasura/metadata/databases/nois/tables/public_event_attribute.yaml new file mode 100644 index 000000000..54abd4146 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_event_attribute.yaml @@ -0,0 +1,26 @@ +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/nois/tables/public_feegrant.yaml b/hasura/metadata/databases/nois/tables/public_feegrant.yaml new file mode 100644 index 000000000..c819ee72f --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_feegrant.yaml @@ -0,0 +1,41 @@ +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: + - id + - init_tx_id + - revoke_tx_id + - granter + - grantee + - type + - expiration + - status + - spend_limit + - denom + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/nois/tables/public_feegrant_history.yaml b/hasura/metadata/databases/nois/tables/public_feegrant_history.yaml new file mode 100644 index 000000000..957388cc1 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_feegrant_history.yaml @@ -0,0 +1,25 @@ +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/nois/tables/public_ibc_channel.yaml b/hasura/metadata/databases/nois/tables/public_ibc_channel.yaml new file mode 100644 index 000000000..4f5cc2cc3 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_ibc_channel.yaml @@ -0,0 +1,20 @@ +table: + name: ibc_channel + schema: public +object_relationships: + - name: ibc_connection + using: + foreign_key_constraint_on: ibc_connection_id +select_permissions: + - role: internal_service + permission: + columns: + - id + - ibc_connection_id + - channel_id + - port_id + - counterparty_port_id + - counterparty_channel_id + - state + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_ibc_client.yaml b/hasura/metadata/databases/nois/tables/public_ibc_client.yaml new file mode 100644 index 000000000..c9f19de1d --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_ibc_client.yaml @@ -0,0 +1,23 @@ +table: + name: ibc_client + schema: public +array_relationships: + - name: ibc_connections + using: + foreign_key_constraint_on: + column: ibc_client_id + table: + name: ibc_connection + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - client_id + - counterparty_chain_id + - client_state + - consensus_state + - client_type + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_ibc_connection.yaml b/hasura/metadata/databases/nois/tables/public_ibc_connection.yaml new file mode 100644 index 000000000..24f574a73 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_ibc_connection.yaml @@ -0,0 +1,26 @@ +table: + name: ibc_connection + schema: public +object_relationships: + - name: ibc_client + using: + foreign_key_constraint_on: ibc_client_id +array_relationships: + - name: ibc_channels + using: + foreign_key_constraint_on: + column: ibc_connection_id + table: + name: ibc_channel + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - ibc_client_id + - connection_id + - counterparty_client_id + - counterparty_connection_id + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_ibc_ics20.yaml b/hasura/metadata/databases/nois/tables/public_ibc_ics20.yaml new file mode 100644 index 000000000..b2e828d64 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_ibc_ics20.yaml @@ -0,0 +1,26 @@ +table: + name: ibc_ics20 + schema: public +object_relationships: + - name: ibc_message + using: + foreign_key_constraint_on: ibc_message_id +select_permissions: + - role: internal_service + permission: + columns: + - channel_id + - denom + - memo + - receiver + - sender + - sequence_key + - status + - type + - ibc_message_id + - id + - amount + - finish_time + - start_time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_ibc_message.yaml b/hasura/metadata/databases/nois/tables/public_ibc_message.yaml new file mode 100644 index 000000000..a5d388ace --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_ibc_message.yaml @@ -0,0 +1,24 @@ +table: + name: ibc_message + schema: public +object_relationships: + - name: transaction_message + using: + foreign_key_constraint_on: transaction_message_id +select_permissions: + - role: internal_service + permission: + columns: + - dst_channel_id + - dst_port_id + - sequence_key + - src_channel_id + - src_port_id + - type + - id + - sequence + - transaction_message_id + - data + - tx_hash + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_knex_migrations.yaml b/hasura/metadata/databases/nois/tables/public_knex_migrations.yaml new file mode 100644 index 000000000..bc8ad63fe --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_knex_migrations.yaml @@ -0,0 +1,3 @@ +table: + name: knex_migrations + schema: public diff --git a/hasura/metadata/databases/nois/tables/public_knex_migrations_lock.yaml b/hasura/metadata/databases/nois/tables/public_knex_migrations_lock.yaml new file mode 100644 index 000000000..df1e82af9 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_knex_migrations_lock.yaml @@ -0,0 +1,3 @@ +table: + name: knex_migrations_lock + schema: public diff --git a/hasura/metadata/databases/nois/tables/public_power_event.yaml b/hasura/metadata/databases/nois/tables/public_power_event.yaml new file mode 100644 index 000000000..87f335cf4 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_power_event.yaml @@ -0,0 +1,40 @@ +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 + - role: public + permission: + columns: + - height + - id + - tx_id + - validator_dst_id + - validator_src_id + - amount + - type + - time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_proposal.yaml b/hasura/metadata/databases/nois/tables/public_proposal.yaml new file mode 100644 index 000000000..efa128d30 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_proposal.yaml @@ -0,0 +1,61 @@ +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: + - content + - count_vote + - created_at + - deposit_end_time + - description + - initial_deposit + - proposal_id + - proposer_address + - status + - submit_time + - tally + - title + - total_deposit + - turnout + - type + - updated_at + - voting_end_time + - voting_start_time + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - content + - count_vote + - created_at + - deposit_end_time + - description + - initial_deposit + - proposal_id + - proposer_address + - status + - submit_time + - tally + - title + - total_deposit + - turnout + - type + - updated_at + - voting_end_time + - voting_start_time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_smart_contract.yaml b/hasura/metadata/databases/nois/tables/public_smart_contract.yaml new file mode 100644 index 000000000..a35b948d7 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_smart_contract.yaml @@ -0,0 +1,63 @@ +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 + - code_id + - created_at + - creator + - id + - instantiate_hash + - instantiate_height + - label + - name + - status + - updated_at + - version + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - address + - creator + - instantiate_hash + - name + - version + - code_id + - id + - instantiate_height + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_smart_contract_event.yaml b/hasura/metadata/databases/nois/tables/public_smart_contract_event.yaml new file mode 100644 index 000000000..b0faceffd --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_smart_contract_event.yaml @@ -0,0 +1,45 @@ +table: + name: smart_contract_event + schema: public +object_relationships: + - name: cw721_activity + using: + foreign_key_constraint_on: + column: smart_contract_event_id + table: + name: cw721_activity + schema: public + - 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: 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/nois/tables/public_smart_contract_event_attribute.yaml b/hasura/metadata/databases/nois/tables/public_smart_contract_event_attribute.yaml new file mode 100644 index 000000000..a5a978e7a --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_smart_contract_event_attribute.yaml @@ -0,0 +1,19 @@ +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 + - value + - id + - smart_contract_event_id + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_transaction.yaml b/hasura/metadata/databases/nois/tables/public_transaction.yaml new file mode 100644 index 000000000..2036fff51 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_transaction.yaml @@ -0,0 +1,103 @@ +table: + name: transaction + schema: public +object_relationships: + - name: block + using: + foreign_key_constraint_on: height +array_relationships: + - 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_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: + - code + - codespace + - data + - fee + - gas_limit + - gas_used + - gas_wanted + - hash + - height + - id + - index + - memo + - timestamp + filter: {} + limit: 100 + - role: public + permission: + columns: + - code + - codespace + - data + - fee + - gas_limit + - gas_used + - gas_wanted + - hash + - height + - id + - index + - memo + - timestamp + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_transaction_message.yaml b/hasura/metadata/databases/nois/tables/public_transaction_message.yaml new file mode 100644 index 000000000..cd7b31bc7 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_transaction_message.yaml @@ -0,0 +1,57 @@ +table: + name: transaction_message + schema: public +object_relationships: + - name: events + using: + manual_configuration: + column_mapping: + index: tx_msg_index + tx_id: tx_id + insertion_order: null + remote_table: + name: event + schema: public + - name: transaction + using: + foreign_key_constraint_on: tx_id +array_relationships: + - name: ibc_messages + using: + foreign_key_constraint_on: + column: transaction_message_id + table: + name: ibc_message + schema: public + - 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 + - role: public + permission: + columns: + - sender + - type + - id + - index + - parent_id + - tx_id + - content + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/public_transaction_message_receiver.yaml b/hasura/metadata/databases/nois/tables/public_transaction_message_receiver.yaml new file mode 100644 index 000000000..39e13886d --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_transaction_message_receiver.yaml @@ -0,0 +1,17 @@ +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/nois/tables/public_validator.yaml b/hasura/metadata/databases/nois/tables/public_validator.yaml new file mode 100644 index 000000000..a4c001876 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_validator.yaml @@ -0,0 +1,101 @@ +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/nois/tables/public_view_count_holder_cw721.yaml b/hasura/metadata/databases/nois/tables/public_view_count_holder_cw721.yaml new file mode 100644 index 000000000..dd5efe877 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_view_count_holder_cw721.yaml @@ -0,0 +1,22 @@ +table: + name: view_count_holder_cw721 + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - owner + - contract_address + - count + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - owner + - contract_address + - count + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/nois/tables/public_view_event_attribute_value_index.yaml b/hasura/metadata/databases/nois/tables/public_view_event_attribute_value_index.yaml new file mode 100644 index 000000000..2e545ee11 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_view_event_attribute_value_index.yaml @@ -0,0 +1,26 @@ +table: + name: view_event_attribute_value_index + schema: public +object_relationships: + - name: event + using: + manual_configuration: + column_mapping: + event_id: id + insertion_order: null + remote_table: + name: event + 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/nois/tables/public_vote.yaml b/hasura/metadata/databases/nois/tables/public_vote.yaml new file mode 100644 index 000000000..1b1f40d79 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/public_vote.yaml @@ -0,0 +1,46 @@ +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: + - id + - created_at + - updated_at + - voter + - tx_id + - vote_option + - proposal_id + - txhash + - height + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - id + - created_at + - updated_at + - voter + - tx_id + - vote_option + - proposal_id + - txhash + - height + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/nois/tables/tables.yaml b/hasura/metadata/databases/nois/tables/tables.yaml new file mode 100644 index 000000000..7f7fd7c81 --- /dev/null +++ b/hasura/metadata/databases/nois/tables/tables.yaml @@ -0,0 +1,42 @@ +- '!include public_account.yaml' +- '!include public_account_statistics.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_daily_statistics.yaml' +- '!include public_delegator.yaml' +- '!include public_event.yaml' +- '!include public_event_attribute.yaml' +- '!include public_feegrant.yaml' +- '!include public_feegrant_history.yaml' +- '!include public_ibc_channel.yaml' +- '!include public_ibc_client.yaml' +- '!include public_ibc_connection.yaml' +- '!include public_ibc_ics20.yaml' +- '!include public_ibc_message.yaml' +- '!include public_knex_migrations.yaml' +- '!include public_knex_migrations_lock.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' diff --git a/hasura/metadata/databases/theta/tables/public_account.yaml b/hasura/metadata/databases/theta/tables/public_account.yaml new file mode 100644 index 000000000..dffac39d9 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_account.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_account_statistics.yaml b/hasura/metadata/databases/theta/tables/public_account_statistics.yaml new file mode 100644 index 000000000..0d44cca36 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_account_statistics.yaml @@ -0,0 +1,17 @@ +table: + name: account_statistics + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - amount_received + - amount_sent + - gas_used + - tx_sent + - address + - id + - date + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/theta/tables/public_account_vesting.yaml b/hasura/metadata/databases/theta/tables/public_account_vesting.yaml new file mode 100644 index 000000000..d3c4d74e1 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_account_vesting.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_block.yaml b/hasura/metadata/databases/theta/tables/public_block.yaml new file mode 100644 index 000000000..83a3ed533 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_block.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_block_checkpoint.yaml b/hasura/metadata/databases/theta/tables/public_block_checkpoint.yaml new file mode 100644 index 000000000..4ab15e6fe --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_block_checkpoint.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_block_signature.yaml b/hasura/metadata/databases/theta/tables/public_block_signature.yaml new file mode 100644 index 000000000..0abb92664 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_block_signature.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_checkpoint.yaml b/hasura/metadata/databases/theta/tables/public_checkpoint.yaml new file mode 100644 index 000000000..539bf5329 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_checkpoint.yaml @@ -0,0 +1,3 @@ +table: + name: checkpoint + schema: public diff --git a/hasura/metadata/databases/theta/tables/public_code.yaml b/hasura/metadata/databases/theta/tables/public_code.yaml new file mode 100644 index 000000000..a9141ddbb --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_code.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_code_id_verification.yaml b/hasura/metadata/databases/theta/tables/public_code_id_verification.yaml new file mode 100644 index 000000000..c34a8381a --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_code_id_verification.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_cw20_activity.yaml b/hasura/metadata/databases/theta/tables/public_cw20_activity.yaml new file mode 100644 index 000000000..d21d33d9a --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw20_activity.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_cw20_contract.yaml b/hasura/metadata/databases/theta/tables/public_cw20_contract.yaml new file mode 100644 index 000000000..83a146f1e --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw20_contract.yaml @@ -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 diff --git a/hasura/metadata/databases/theta/tables/public_cw20_holder.yaml b/hasura/metadata/databases/theta/tables/public_cw20_holder.yaml new file mode 100644 index 000000000..78058cb33 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw20_holder.yaml @@ -0,0 +1,19 @@ +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/theta/tables/public_cw20_total_holder_stats.yaml b/hasura/metadata/databases/theta/tables/public_cw20_total_holder_stats.yaml new file mode 100644 index 000000000..095c9963b --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw20_total_holder_stats.yaml @@ -0,0 +1,18 @@ +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: + - date + - cw20_contract_id + - id + - total_holder + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/theta/tables/public_cw721_activity.yaml b/hasura/metadata/databases/theta/tables/public_cw721_activity.yaml new file mode 100644 index 000000000..4f66efdf7 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw721_activity.yaml @@ -0,0 +1,46 @@ +table: + name: cw721_activity + schema: public +object_relationships: + - name: cw721_contract + using: + foreign_key_constraint_on: cw721_contract_id + - name: cw721_token + using: + manual_configuration: + column_mapping: + cw721_token_id: id + insertion_order: null + remote_table: + name: cw721_token + schema: public + - 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/theta/tables/public_cw721_contract.yaml b/hasura/metadata/databases/theta/tables/public_cw721_contract.yaml new file mode 100644 index 000000000..6927006f9 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw721_contract.yaml @@ -0,0 +1,57 @@ +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 + - role: public + permission: + columns: + - track + - minter + - name + - symbol + - contract_id + - id + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_cw721_contract_stats.yaml b/hasura/metadata/databases/theta/tables/public_cw721_contract_stats.yaml new file mode 100644 index 000000000..99543502f --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw721_contract_stats.yaml @@ -0,0 +1,19 @@ +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/theta/tables/public_cw721_token.yaml b/hasura/metadata/databases/theta/tables/public_cw721_token.yaml new file mode 100644 index 000000000..10c486bfd --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_cw721_token.yaml @@ -0,0 +1,35 @@ +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: + - id + - token_id + - owner + - cw721_contract_id + - last_updated_height + - created_at + - burned + - media_info + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - id + - token_id + - owner + - cw721_contract_id + - last_updated_height + - created_at + - burned + - media_info + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_daily_statistics.yaml b/hasura/metadata/databases/theta/tables/public_daily_statistics.yaml new file mode 100644 index 000000000..06bbae841 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_daily_statistics.yaml @@ -0,0 +1,15 @@ +table: + name: daily_statistics + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - daily_txs + - daily_active_addresses + - unique_addresses + - date + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/theta/tables/public_delegator.yaml b/hasura/metadata/databases/theta/tables/public_delegator.yaml new file mode 100644 index 000000000..0f73e8f78 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_delegator.yaml @@ -0,0 +1,17 @@ +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/theta/tables/public_event.yaml b/hasura/metadata/databases/theta/tables/public_event.yaml new file mode 100644 index 000000000..795292b16 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_event.yaml @@ -0,0 +1,56 @@ +table: + name: event + schema: public +object_relationships: + - name: block + using: + foreign_key_constraint_on: block_height + - name: message + using: + manual_configuration: + column_mapping: + tx_id: tx_id + tx_msg_index: index + insertion_order: null + remote_table: + name: transaction_message + schema: public + - name: transaction + using: + foreign_key_constraint_on: tx_id +array_relationships: + - name: event_attribute_index + using: + manual_configuration: + column_mapping: + id: event_id + insertion_order: null + remote_table: + name: view_event_attribute_value_index + 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/theta/tables/public_event_attribute.yaml b/hasura/metadata/databases/theta/tables/public_event_attribute.yaml new file mode 100644 index 000000000..54abd4146 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_event_attribute.yaml @@ -0,0 +1,26 @@ +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/theta/tables/public_feegrant.yaml b/hasura/metadata/databases/theta/tables/public_feegrant.yaml new file mode 100644 index 000000000..c819ee72f --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_feegrant.yaml @@ -0,0 +1,41 @@ +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: + - id + - init_tx_id + - revoke_tx_id + - granter + - grantee + - type + - expiration + - status + - spend_limit + - denom + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/theta/tables/public_feegrant_history.yaml b/hasura/metadata/databases/theta/tables/public_feegrant_history.yaml new file mode 100644 index 000000000..957388cc1 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_feegrant_history.yaml @@ -0,0 +1,25 @@ +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/theta/tables/public_ibc_channel.yaml b/hasura/metadata/databases/theta/tables/public_ibc_channel.yaml new file mode 100644 index 000000000..4f5cc2cc3 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_ibc_channel.yaml @@ -0,0 +1,20 @@ +table: + name: ibc_channel + schema: public +object_relationships: + - name: ibc_connection + using: + foreign_key_constraint_on: ibc_connection_id +select_permissions: + - role: internal_service + permission: + columns: + - id + - ibc_connection_id + - channel_id + - port_id + - counterparty_port_id + - counterparty_channel_id + - state + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_ibc_client.yaml b/hasura/metadata/databases/theta/tables/public_ibc_client.yaml new file mode 100644 index 000000000..c9f19de1d --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_ibc_client.yaml @@ -0,0 +1,23 @@ +table: + name: ibc_client + schema: public +array_relationships: + - name: ibc_connections + using: + foreign_key_constraint_on: + column: ibc_client_id + table: + name: ibc_connection + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - client_id + - counterparty_chain_id + - client_state + - consensus_state + - client_type + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_ibc_connection.yaml b/hasura/metadata/databases/theta/tables/public_ibc_connection.yaml new file mode 100644 index 000000000..24f574a73 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_ibc_connection.yaml @@ -0,0 +1,26 @@ +table: + name: ibc_connection + schema: public +object_relationships: + - name: ibc_client + using: + foreign_key_constraint_on: ibc_client_id +array_relationships: + - name: ibc_channels + using: + foreign_key_constraint_on: + column: ibc_connection_id + table: + name: ibc_channel + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - id + - ibc_client_id + - connection_id + - counterparty_client_id + - counterparty_connection_id + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_ibc_ics20.yaml b/hasura/metadata/databases/theta/tables/public_ibc_ics20.yaml new file mode 100644 index 000000000..b2e828d64 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_ibc_ics20.yaml @@ -0,0 +1,26 @@ +table: + name: ibc_ics20 + schema: public +object_relationships: + - name: ibc_message + using: + foreign_key_constraint_on: ibc_message_id +select_permissions: + - role: internal_service + permission: + columns: + - channel_id + - denom + - memo + - receiver + - sender + - sequence_key + - status + - type + - ibc_message_id + - id + - amount + - finish_time + - start_time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_ibc_message.yaml b/hasura/metadata/databases/theta/tables/public_ibc_message.yaml new file mode 100644 index 000000000..a5d388ace --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_ibc_message.yaml @@ -0,0 +1,24 @@ +table: + name: ibc_message + schema: public +object_relationships: + - name: transaction_message + using: + foreign_key_constraint_on: transaction_message_id +select_permissions: + - role: internal_service + permission: + columns: + - dst_channel_id + - dst_port_id + - sequence_key + - src_channel_id + - src_port_id + - type + - id + - sequence + - transaction_message_id + - data + - tx_hash + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_knex_migrations.yaml b/hasura/metadata/databases/theta/tables/public_knex_migrations.yaml new file mode 100644 index 000000000..bc8ad63fe --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_knex_migrations.yaml @@ -0,0 +1,3 @@ +table: + name: knex_migrations + schema: public diff --git a/hasura/metadata/databases/theta/tables/public_knex_migrations_lock.yaml b/hasura/metadata/databases/theta/tables/public_knex_migrations_lock.yaml new file mode 100644 index 000000000..df1e82af9 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_knex_migrations_lock.yaml @@ -0,0 +1,3 @@ +table: + name: knex_migrations_lock + schema: public diff --git a/hasura/metadata/databases/theta/tables/public_power_event.yaml b/hasura/metadata/databases/theta/tables/public_power_event.yaml new file mode 100644 index 000000000..87f335cf4 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_power_event.yaml @@ -0,0 +1,40 @@ +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 + - role: public + permission: + columns: + - height + - id + - tx_id + - validator_dst_id + - validator_src_id + - amount + - type + - time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_proposal.yaml b/hasura/metadata/databases/theta/tables/public_proposal.yaml new file mode 100644 index 000000000..efa128d30 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_proposal.yaml @@ -0,0 +1,61 @@ +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: + - content + - count_vote + - created_at + - deposit_end_time + - description + - initial_deposit + - proposal_id + - proposer_address + - status + - submit_time + - tally + - title + - total_deposit + - turnout + - type + - updated_at + - voting_end_time + - voting_start_time + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - content + - count_vote + - created_at + - deposit_end_time + - description + - initial_deposit + - proposal_id + - proposer_address + - status + - submit_time + - tally + - title + - total_deposit + - turnout + - type + - updated_at + - voting_end_time + - voting_start_time + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_smart_contract.yaml b/hasura/metadata/databases/theta/tables/public_smart_contract.yaml new file mode 100644 index 000000000..a35b948d7 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_smart_contract.yaml @@ -0,0 +1,63 @@ +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 + - code_id + - created_at + - creator + - id + - instantiate_hash + - instantiate_height + - label + - name + - status + - updated_at + - version + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - address + - creator + - instantiate_hash + - name + - version + - code_id + - id + - instantiate_height + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_smart_contract_event.yaml b/hasura/metadata/databases/theta/tables/public_smart_contract_event.yaml new file mode 100644 index 000000000..b0faceffd --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_smart_contract_event.yaml @@ -0,0 +1,45 @@ +table: + name: smart_contract_event + schema: public +object_relationships: + - name: cw721_activity + using: + foreign_key_constraint_on: + column: smart_contract_event_id + table: + name: cw721_activity + schema: public + - 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: 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/theta/tables/public_smart_contract_event_attribute.yaml b/hasura/metadata/databases/theta/tables/public_smart_contract_event_attribute.yaml new file mode 100644 index 000000000..a5a978e7a --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_smart_contract_event_attribute.yaml @@ -0,0 +1,19 @@ +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 + - value + - id + - smart_contract_event_id + - created_at + - updated_at + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_transaction.yaml b/hasura/metadata/databases/theta/tables/public_transaction.yaml new file mode 100644 index 000000000..2036fff51 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_transaction.yaml @@ -0,0 +1,103 @@ +table: + name: transaction + schema: public +object_relationships: + - name: block + using: + foreign_key_constraint_on: height +array_relationships: + - 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_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: + - code + - codespace + - data + - fee + - gas_limit + - gas_used + - gas_wanted + - hash + - height + - id + - index + - memo + - timestamp + filter: {} + limit: 100 + - role: public + permission: + columns: + - code + - codespace + - data + - fee + - gas_limit + - gas_used + - gas_wanted + - hash + - height + - id + - index + - memo + - timestamp + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_transaction_message.yaml b/hasura/metadata/databases/theta/tables/public_transaction_message.yaml new file mode 100644 index 000000000..cd7b31bc7 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_transaction_message.yaml @@ -0,0 +1,57 @@ +table: + name: transaction_message + schema: public +object_relationships: + - name: events + using: + manual_configuration: + column_mapping: + index: tx_msg_index + tx_id: tx_id + insertion_order: null + remote_table: + name: event + schema: public + - name: transaction + using: + foreign_key_constraint_on: tx_id +array_relationships: + - name: ibc_messages + using: + foreign_key_constraint_on: + column: transaction_message_id + table: + name: ibc_message + schema: public + - 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 + - role: public + permission: + columns: + - sender + - type + - id + - index + - parent_id + - tx_id + - content + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/public_transaction_message_receiver.yaml b/hasura/metadata/databases/theta/tables/public_transaction_message_receiver.yaml new file mode 100644 index 000000000..39e13886d --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_transaction_message_receiver.yaml @@ -0,0 +1,17 @@ +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/theta/tables/public_validator.yaml b/hasura/metadata/databases/theta/tables/public_validator.yaml new file mode 100644 index 000000000..a4c001876 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_validator.yaml @@ -0,0 +1,101 @@ +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/theta/tables/public_view_count_holder_cw721.yaml b/hasura/metadata/databases/theta/tables/public_view_count_holder_cw721.yaml new file mode 100644 index 000000000..dd5efe877 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_view_count_holder_cw721.yaml @@ -0,0 +1,22 @@ +table: + name: view_count_holder_cw721 + schema: public +select_permissions: + - role: internal_service + permission: + columns: + - owner + - contract_address + - count + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - owner + - contract_address + - count + filter: {} + limit: 100 + allow_aggregations: true diff --git a/hasura/metadata/databases/theta/tables/public_view_event_attribute_value_index.yaml b/hasura/metadata/databases/theta/tables/public_view_event_attribute_value_index.yaml new file mode 100644 index 000000000..2e545ee11 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_view_event_attribute_value_index.yaml @@ -0,0 +1,26 @@ +table: + name: view_event_attribute_value_index + schema: public +object_relationships: + - name: event + using: + manual_configuration: + column_mapping: + event_id: id + insertion_order: null + remote_table: + name: event + 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/theta/tables/public_vote.yaml b/hasura/metadata/databases/theta/tables/public_vote.yaml new file mode 100644 index 000000000..1b1f40d79 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/public_vote.yaml @@ -0,0 +1,46 @@ +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: + - id + - created_at + - updated_at + - voter + - tx_id + - vote_option + - proposal_id + - txhash + - height + filter: {} + limit: 100 + allow_aggregations: true + - role: public + permission: + columns: + - id + - created_at + - updated_at + - voter + - tx_id + - vote_option + - proposal_id + - txhash + - height + filter: {} + limit: 100 diff --git a/hasura/metadata/databases/theta/tables/tables.yaml b/hasura/metadata/databases/theta/tables/tables.yaml new file mode 100644 index 000000000..7f7fd7c81 --- /dev/null +++ b/hasura/metadata/databases/theta/tables/tables.yaml @@ -0,0 +1,42 @@ +- '!include public_account.yaml' +- '!include public_account_statistics.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_daily_statistics.yaml' +- '!include public_delegator.yaml' +- '!include public_event.yaml' +- '!include public_event_attribute.yaml' +- '!include public_feegrant.yaml' +- '!include public_feegrant_history.yaml' +- '!include public_ibc_channel.yaml' +- '!include public_ibc_client.yaml' +- '!include public_ibc_connection.yaml' +- '!include public_ibc_ics20.yaml' +- '!include public_ibc_message.yaml' +- '!include public_knex_migrations.yaml' +- '!include public_knex_migrations_lock.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'