diff --git a/hasura/metadata/databases/callisto/tables/public_nft.yaml b/hasura/metadata/databases/callisto/tables/public_nft.yaml new file mode 100644 index 000000000..1126eb69d --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_nft.yaml @@ -0,0 +1,27 @@ +table: + name: nft + schema: public +object_relationships: + - name: nft_class + using: + manual_configuration: + column_mapping: + class_id: id + insertion_order: null + remote_table: + name: nft_class + schema: public +select_permissions: + - permission: + allow_aggregations: true + columns: + - id + - class_id + - uri + - uri_hash + - data + - owner + - metadata + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/public_nft_class.yaml b/hasura/metadata/databases/callisto/tables/public_nft_class.yaml new file mode 100644 index 000000000..99130a243 --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_nft_class.yaml @@ -0,0 +1,27 @@ +table: + name: nft_class + schema: public +array_relationships: + - name: nfts + using: + foreign_key_constraint_on: + column: class_id + table: + name: nft + schema: public +select_permissions: + - permission: + allow_aggregations: true + columns: + - id + - name + - symbol + - description + - uri + - uri_hash + - data + - owner + - metadata + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/public_wasm_code.yaml b/hasura/metadata/databases/callisto/tables/public_wasm_code.yaml new file mode 100644 index 000000000..234c5b646 --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_wasm_code.yaml @@ -0,0 +1,22 @@ +table: + name: wasm_code + schema: public +array_relationships: + - name: wasm_contracts + using: + foreign_key_constraint_on: + column: code_id + table: + name: wasm_contract + schema: public +select_permissions: + - permission: + allow_aggregations: true + columns: + - sender + - byte_code + - instantiate_permission + - code_id + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/public_wasm_contract.yaml b/hasura/metadata/databases/callisto/tables/public_wasm_contract.yaml new file mode 100644 index 000000000..77c9bfd88 --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_wasm_contract.yaml @@ -0,0 +1,34 @@ +table: + name: wasm_contract + schema: public +object_relationships: + - name: wasm_code + using: + foreign_key_constraint_on: code_id +array_relationships: + - name: wasm_execute_contracts + using: + foreign_key_constraint_on: + column: contract_address + table: + name: wasm_execute_contract + schema: public +select_permissions: + - permission: + allow_aggregations: true + columns: + - sender + - creator + - admin + - code_id + - label + - raw_contract_message + - funds + - contract_address + - data + - instantiated_at + - contract_info_extension + - contract_states + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/public_wasm_execute_contract.yaml b/hasura/metadata/databases/callisto/tables/public_wasm_execute_contract.yaml new file mode 100644 index 000000000..9f355b9d7 --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_wasm_execute_contract.yaml @@ -0,0 +1,20 @@ +table: + name: wasm_execute_contract + schema: public +object_relationships: + - name: wasm_contract + using: + foreign_key_constraint_on: contract_address +select_permissions: + - permission: + allow_aggregations: true + columns: + - sender + - contract_address + - raw_contract_message + - funds + - data + - executed_at + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/public_wasm_params.yaml b/hasura/metadata/databases/callisto/tables/public_wasm_params.yaml new file mode 100644 index 000000000..06030f4fc --- /dev/null +++ b/hasura/metadata/databases/callisto/tables/public_wasm_params.yaml @@ -0,0 +1,13 @@ +table: + name: wasm_params + schema: public +select_permissions: + - permission: + allow_aggregations: true + columns: + - one_row_id + - code_upload_access + - instantiate_default_permission + - height + filter: {} + role: anonymous \ No newline at end of file diff --git a/hasura/metadata/databases/callisto/tables/tables.yaml b/hasura/metadata/databases/callisto/tables/tables.yaml index 8d907ef3d..866ce954e 100644 --- a/hasura/metadata/databases/callisto/tables/tables.yaml +++ b/hasura/metadata/databases/callisto/tables/tables.yaml @@ -23,6 +23,8 @@ - "!include public_monthly_avg_block_time.yaml" - "!include public_monthly_request_counts.yaml" - "!include public_monthly_transaction_volume.yaml" +- "!include public_nft.yaml" +- "!include public_nft_class.yaml" - "!include public_oracle_params.yaml" - "!include public_pre_commit.yaml" - "!include public_proposal.yaml" @@ -60,3 +62,7 @@ - "!include public_average_block_fee.yaml" - "!include public_treasury_pool.yaml" - "!include public_request_data_source.yaml" +- "!include public_wasm_code.yaml" +- "!include public_wasm_contract.yaml" +- "!include public_wasm_execute_contract.yaml" +- "!include public_wasm_params.yaml"