diff --git a/hasura-api/metadata-json/unified.json b/hasura-api/metadata-json/unified.json index 40741fbc9..7a4906b33 100644 --- a/hasura-api/metadata-json/unified.json +++ b/hasura-api/metadata-json/unified.json @@ -1,5 +1,5 @@ { - "resource_version": 333, + "resource_version": 11, "metadata": { "version": 3, "sources": [ @@ -9,78 +9,15 @@ "tables": [ { "table": { - "name": "move_resources", + "name": "address_version_from_move_resources", "schema": "legacy_migration_v1" }, "configuration": { "column_config": {}, "custom_column_names": {}, - "custom_name": "move_resources", + "custom_name": "address_version_from_move_resources", "custom_root_fields": {} }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "address", - "transaction_version" - ], - "filter": {}, - "limit": 100, - "allow_aggregations": true - } - } - ] - }, - { - "table": { - "name": "parsed_asset_uris", - "schema": "nft_metadata_crawler" - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "animation_optimizer_retry_count", - "asset_uri", - "cdn_animation_uri", - "cdn_image_uri", - "cdn_json_uri", - "image_optimizer_retry_count", - "json_parser_retry_count", - "raw_animation_uri", - "raw_image_uri" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "account_transactions", - "schema": "public" - }, - "object_relationships": [ - { - "name": "user_transaction", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "version" - }, - "insertion_order": null, - "remote_table": { - "name": "user_transactions", - "schema": "public" - } - } - } - } - ], "array_relationships": [ { "name": "coin_activities", @@ -112,21 +49,6 @@ } } }, - { - "name": "fungible_asset_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "fungible_asset_activities", - "schema": "public" - } - } - } - }, { "name": "token_activities", "using": { @@ -163,7 +85,7 @@ "role": "anonymous", "permission": { "columns": [ - "account_address", + "address", "transaction_version" ], "filter": {}, @@ -175,102 +97,43 @@ }, { "table": { - "name": "address_events_summary", - "schema": "public" + "name": "coin_activities", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "coin_activities", + "custom_root_fields": {} }, "object_relationships": [ { - "name": "block_metadata", + "name": "coin_info", "using": { "manual_configuration": { "column_mapping": { - "min_block_height": "block_height" + "coin_type": "coin_type" }, "insertion_order": null, "remote_table": { - "name": "block_metadata_transactions", - "schema": "public" + "name": "coin_infos", + "schema": "legacy_migration_v1" } } } } ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "min_block_height", - "num_distinct_versions", - "account_address" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "address_version_from_events", - "schema": "public" - }, "array_relationships": [ { - "name": "coin_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "coin_activities", - "schema": "legacy_migration_v1" - } - } - } - }, - { - "name": "delegated_staking_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "delegated_staking_activities", - "schema": "public" - } - } - } - }, - { - "name": "token_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "token_activities", - "schema": "legacy_migration_v1" - } - } - } - }, - { - "name": "token_activities_v2", + "name": "aptos_names", "using": { "manual_configuration": { "column_mapping": { - "transaction_version": "transaction_version" + "owner_address": "registered_address" }, "insertion_order": null, "remote_table": { - "name": "token_activities_v2", + "name": "current_aptos_names", "schema": "public" } } @@ -282,7 +145,20 @@ "role": "anonymous", "permission": { "columns": [ - "account_address", + "activity_type", + "amount", + "block_height", + "coin_type", + "entry_function_id_str", + "event_account_address", + "event_creation_number", + "event_index", + "event_sequence_number", + "is_gas_fee", + "is_transaction_success", + "owner_address", + "storage_refund_amount", + "transaction_timestamp", "transaction_version" ], "filter": {}, @@ -294,200 +170,13 @@ }, { "table": { - "name": "address_version_from_move_resources", + "name": "coin_balances", "schema": "legacy_migration_v1" }, "configuration": { "column_config": {}, "custom_column_names": {}, - "custom_name": "address_version_from_move_resources", - "custom_root_fields": {} - }, - "array_relationships": [ - { - "name": "coin_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "coin_activities", - "schema": "legacy_migration_v1" - } - } - } - }, - { - "name": "delegated_staking_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "delegated_staking_activities", - "schema": "public" - } - } - } - }, - { - "name": "token_activities", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "token_activities", - "schema": "legacy_migration_v1" - } - } - } - }, - { - "name": "token_activities_v2", - "using": { - "manual_configuration": { - "column_mapping": { - "transaction_version": "transaction_version" - }, - "insertion_order": null, - "remote_table": { - "name": "token_activities_v2", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "address", - "transaction_version" - ], - "filter": {}, - "limit": 100, - "allow_aggregations": true - } - } - ] - }, - { - "table": { - "name": "block_metadata_transactions", - "schema": "public" - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "block_height", - "epoch", - "failed_proposer_indices", - "id", - "previous_block_votes_bitvec", - "proposer", - "round", - "timestamp", - "version" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "coin_activities", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "coin_activities", - "custom_root_fields": {} - }, - "object_relationships": [ - { - "name": "coin_info", - "using": { - "manual_configuration": { - "column_mapping": { - "coin_type": "coin_type" - }, - "insertion_order": null, - "remote_table": { - "name": "coin_infos", - "schema": "legacy_migration_v1" - } - } - } - } - ], - "array_relationships": [ - { - "name": "aptos_names", - "using": { - "manual_configuration": { - "column_mapping": { - "owner_address": "registered_address" - }, - "insertion_order": null, - "remote_table": { - "name": "current_aptos_names", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "activity_type", - "amount", - "block_height", - "coin_type", - "entry_function_id_str", - "event_account_address", - "event_creation_number", - "event_index", - "event_sequence_number", - "is_gas_fee", - "is_transaction_success", - "owner_address", - "storage_refund_amount", - "transaction_timestamp", - "transaction_version" - ], - "filter": {}, - "limit": 100, - "allow_aggregations": true - } - } - ] - }, - { - "table": { - "name": "coin_balances", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "coin_balances", + "custom_name": "coin_balances", "custom_root_fields": {} }, "select_permissions": [ @@ -541,29 +230,6 @@ } ] }, - { - "table": { - "name": "coin_supply", - "schema": "public" - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "coin_type", - "coin_type_hash", - "supply", - "transaction_epoch", - "transaction_timestamp", - "transaction_version" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, { "table": { "name": "collection_datas", @@ -649,103 +315,812 @@ }, { "table": { - "name": "current_ans_lookup_v2", - "schema": "public" + "name": "current_coin_balances", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "current_coin_balances", + "custom_root_fields": {} }, + "object_relationships": [ + { + "name": "coin_info", + "using": { + "manual_configuration": { + "column_mapping": { + "coin_type_hash": "coin_type_hash" + }, + "insertion_order": null, + "remote_table": { + "name": "coin_infos", + "schema": "legacy_migration_v1" + } + } + } + } + ], "select_permissions": [ { "role": "anonymous", "permission": { "columns": [ - "domain", - "expiration_timestamp", - "is_deleted", + "amount", + "coin_type", + "coin_type_hash", + "last_transaction_timestamp", "last_transaction_version", - "registered_address", - "subdomain", - "token_name", - "token_standard" + "owner_address" ], "filter": {}, "limit": 100 - }, - "comment": "" + } } ] }, { "table": { - "name": "current_aptos_names", - "schema": "public" + "name": "current_collection_datas", + "schema": "legacy_migration_v1" }, - "object_relationships": [ - { - "name": "is_domain_owner", - "using": { - "manual_configuration": { - "column_mapping": { - "domain_with_suffix": "token_name", - "owner_address": "owner_address" - }, - "insertion_order": null, - "remote_table": { - "name": "current_aptos_names", - "schema": "public" - } - } - } + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "current_collection_datas", + "custom_root_fields": { + "select": "current_collection_datas" } - ], + }, "select_permissions": [ { "role": "anonymous", "permission": { "columns": [ - "domain", - "domain_expiration_timestamp", - "domain_with_suffix", - "expiration_timestamp", - "is_active", - "is_primary", + "collection_data_id_hash", + "collection_name", + "creator_address", + "description", + "description_mutable", + "last_transaction_timestamp", "last_transaction_version", - "owner_address", - "registered_address", - "subdomain", - "subdomain_expiration_policy", - "token_name", - "token_standard" + "maximum", + "maximum_mutable", + "metadata_uri", + "supply", + "table_handle", + "uri_mutable" ], "filter": {}, - "limit": 100, - "allow_aggregations": true - }, - "comment": "" + "limit": 100 + } } ] }, { "table": { - "name": "current_coin_balances", + "name": "current_token_datas", "schema": "legacy_migration_v1" }, "configuration": { "column_config": {}, "custom_column_names": {}, - "custom_name": "current_coin_balances", + "custom_name": "current_token_datas", "custom_root_fields": {} }, "object_relationships": [ { - "name": "coin_info", + "name": "current_collection_data", + "using": { + "manual_configuration": { + "column_mapping": { + "collection_data_id_hash": "collection_data_id_hash" + }, + "insertion_order": null, + "remote_table": { + "name": "current_collection_datas", + "schema": "legacy_migration_v1" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "collection_data_id_hash", + "collection_name", + "creator_address", + "default_properties", + "description", + "description_mutable", + "largest_property_version", + "last_transaction_timestamp", + "last_transaction_version", + "maximum", + "maximum_mutable", + "metadata_uri", + "name", + "payee_address", + "properties_mutable", + "royalty_mutable", + "royalty_points_denominator", + "royalty_points_numerator", + "supply", + "token_data_id_hash", + "uri_mutable" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "current_token_ownerships", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "current_token_ownerships", + "custom_root_fields": {} + }, + "object_relationships": [ + { + "name": "aptos_name", + "using": { + "manual_configuration": { + "column_mapping": { + "name": "token_name" + }, + "insertion_order": null, + "remote_table": { + "name": "current_aptos_names", + "schema": "public" + } + } + } + }, + { + "name": "current_collection_data", + "using": { + "manual_configuration": { + "column_mapping": { + "collection_data_id_hash": "collection_data_id_hash" + }, + "insertion_order": null, + "remote_table": { + "name": "current_collection_datas", + "schema": "legacy_migration_v1" + } + } + } + }, + { + "name": "current_token_data", + "using": { + "manual_configuration": { + "column_mapping": { + "token_data_id_hash": "token_data_id_hash" + }, + "insertion_order": null, + "remote_table": { + "name": "current_token_datas", + "schema": "legacy_migration_v1" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "amount", + "collection_data_id_hash", + "collection_name", + "creator_address", + "last_transaction_timestamp", + "last_transaction_version", + "name", + "owner_address", + "property_version", + "table_type", + "token_data_id_hash", + "token_properties" + ], + "filter": {}, + "limit": 100, + "allow_aggregations": true + } + } + ] + }, + { + "table": { + "name": "move_resources", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "move_resources", + "custom_root_fields": {} + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "address", + "transaction_version" + ], + "filter": {}, + "limit": 100, + "allow_aggregations": true + } + } + ] + }, + { + "table": { + "name": "token_activities", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "token_activities", + "custom_root_fields": {} + }, + "object_relationships": [ + { + "name": "current_token_data", + "using": { + "manual_configuration": { + "column_mapping": { + "token_data_id_hash": "token_data_id_hash" + }, + "insertion_order": null, + "remote_table": { + "name": "current_token_datas", + "schema": "legacy_migration_v1" + } + } + } + } + ], + "array_relationships": [ + { + "name": "aptos_names_owner", + "using": { + "manual_configuration": { + "column_mapping": { + "event_account_address": "registered_address" + }, + "insertion_order": null, + "remote_table": { + "name": "current_aptos_names", + "schema": "public" + } + } + } + }, + { + "name": "aptos_names_to", + "using": { + "manual_configuration": { + "column_mapping": { + "to_address": "registered_address" + }, + "insertion_order": null, + "remote_table": { + "name": "current_aptos_names", + "schema": "public" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "coin_amount", + "coin_type", + "collection_data_id_hash", + "collection_name", + "creator_address", + "event_account_address", + "event_creation_number", + "event_index", + "event_sequence_number", + "from_address", + "name", + "property_version", + "to_address", + "token_amount", + "token_data_id_hash", + "transaction_timestamp", + "transaction_version", + "transfer_type" + ], + "filter": {}, + "limit": 100, + "allow_aggregations": true + } + } + ] + }, + { + "table": { + "name": "token_datas", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "token_datas", + "custom_root_fields": {} + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "collection_data_id_hash", + "collection_name", + "creator_address", + "default_properties", + "description", + "description_mutable", + "largest_property_version", + "maximum", + "maximum_mutable", + "metadata_uri", + "name", + "payee_address", + "properties_mutable", + "royalty_mutable", + "royalty_points_denominator", + "royalty_points_numerator", + "supply", + "token_data_id_hash", + "transaction_timestamp", + "transaction_version", + "uri_mutable" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "token_ownerships", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "token_ownerships", + "custom_root_fields": {} + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "amount", + "collection_data_id_hash", + "collection_name", + "creator_address", + "name", + "owner_address", + "property_version", + "table_handle", + "table_type", + "token_data_id_hash", + "transaction_timestamp", + "transaction_version" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "tokens", + "schema": "legacy_migration_v1" + }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "tokens", + "custom_root_fields": {} + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "collection_data_id_hash", + "collection_name", + "creator_address", + "name", + "property_version", + "token_data_id_hash", + "token_properties", + "transaction_timestamp", + "transaction_version" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "parsed_asset_uris", + "schema": "nft_metadata_crawler" + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "animation_optimizer_retry_count", + "asset_uri", + "cdn_animation_uri", + "cdn_image_uri", + "cdn_json_uri", + "image_optimizer_retry_count", + "json_parser_retry_count", + "raw_animation_uri", + "raw_image_uri" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "account_transactions", + "schema": "public" + }, + "object_relationships": [ + { + "name": "user_transaction", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "version" + }, + "insertion_order": null, + "remote_table": { + "name": "user_transactions", + "schema": "public" + } + } + } + } + ], + "array_relationships": [ + { + "name": "coin_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "coin_activities", + "schema": "legacy_migration_v1" + } + } + } + }, + { + "name": "delegated_staking_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "delegated_staking_activities", + "schema": "public" + } + } + } + }, + { + "name": "fungible_asset_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "fungible_asset_activities", + "schema": "public" + } + } + } + }, + { + "name": "token_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "token_activities", + "schema": "legacy_migration_v1" + } + } + } + }, + { + "name": "token_activities_v2", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "token_activities_v2", + "schema": "public" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "account_address", + "transaction_version" + ], + "filter": {}, + "limit": 100, + "allow_aggregations": true + } + } + ] + }, + { + "table": { + "name": "address_events_summary", + "schema": "public" + }, + "object_relationships": [ + { + "name": "block_metadata", + "using": { + "manual_configuration": { + "column_mapping": { + "min_block_height": "block_height" + }, + "insertion_order": null, + "remote_table": { + "name": "block_metadata_transactions", + "schema": "public" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "min_block_height", + "num_distinct_versions", + "account_address" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "address_version_from_events", + "schema": "public" + }, + "array_relationships": [ + { + "name": "coin_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "coin_activities", + "schema": "legacy_migration_v1" + } + } + } + }, + { + "name": "delegated_staking_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "delegated_staking_activities", + "schema": "public" + } + } + } + }, + { + "name": "token_activities", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "token_activities", + "schema": "legacy_migration_v1" + } + } + } + }, + { + "name": "token_activities_v2", + "using": { + "manual_configuration": { + "column_mapping": { + "transaction_version": "transaction_version" + }, + "insertion_order": null, + "remote_table": { + "name": "token_activities_v2", + "schema": "public" + } + } + } + } + ], + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "account_address", + "transaction_version" + ], + "filter": {}, + "limit": 100, + "allow_aggregations": true + } + } + ] + }, + { + "table": { + "name": "block_metadata_transactions", + "schema": "public" + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "block_height", + "epoch", + "failed_proposer_indices", + "id", + "previous_block_votes_bitvec", + "proposer", + "round", + "timestamp", + "version" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "coin_supply", + "schema": "public" + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "coin_type", + "coin_type_hash", + "supply", + "transaction_epoch", + "transaction_timestamp", + "transaction_version" + ], + "filter": {}, + "limit": 100 + } + } + ] + }, + { + "table": { + "name": "current_ans_lookup_v2", + "schema": "public" + }, + "select_permissions": [ + { + "role": "anonymous", + "permission": { + "columns": [ + "domain", + "expiration_timestamp", + "is_deleted", + "last_transaction_version", + "registered_address", + "subdomain", + "token_name", + "token_standard" + ], + "filter": {}, + "limit": 100 + }, + "comment": "" + } + ] + }, + { + "table": { + "name": "current_aptos_names", + "schema": "public" + }, + "object_relationships": [ + { + "name": "is_domain_owner", "using": { "manual_configuration": { "column_mapping": { - "coin_type_hash": "coin_type_hash" + "domain_with_suffix": "token_name", + "owner_address": "owner_address" }, "insertion_order": null, "remote_table": { - "name": "coin_infos", - "schema": "legacy_migration_v1" + "name": "current_aptos_names", + "schema": "public" } } } @@ -756,46 +1131,25 @@ "role": "anonymous", "permission": { "columns": [ - "amount", - "coin_type", - "coin_type_hash", - "last_transaction_timestamp", - "last_transaction_version", - "owner_address" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "current_collection_datas", - "schema": "public" - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "collection_data_id_hash", - "collection_name", - "creator_address", - "description", - "description_mutable", - "last_transaction_timestamp", + "domain", + "domain_expiration_timestamp", + "domain_with_suffix", + "expiration_timestamp", + "is_active", + "is_primary", "last_transaction_version", - "maximum", - "maximum_mutable", - "metadata_uri", - "supply", - "table_handle", - "uri_mutable" + "owner_address", + "registered_address", + "subdomain", + "subdomain_expiration_policy", + "token_name", + "token_standard" ], "filter": {}, - "limit": 100 - } + "limit": 100, + "allow_aggregations": true + }, + "comment": "" } ] }, @@ -995,50 +1349,6 @@ } ] }, - { - "table": { - "name": "current_fungible_asset_balances", - "schema": "public" - }, - "object_relationships": [ - { - "name": "metadata", - "using": { - "manual_configuration": { - "column_mapping": { - "asset_type": "asset_type" - }, - "insertion_order": null, - "remote_table": { - "name": "fungible_asset_metadata", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "amount", - "asset_type", - "is_frozen", - "is_primary", - "last_transaction_timestamp", - "last_transaction_version", - "owner_address", - "storage_id", - "token_standard" - ], - "filter": {}, - "limit": 100, - "allow_aggregations": true - } - } - ] - }, { "table": { "name": "current_objects", @@ -1125,67 +1435,6 @@ } ] }, - { - "table": { - "name": "current_token_datas", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "current_token_datas", - "custom_root_fields": {} - }, - "object_relationships": [ - { - "name": "current_collection_data", - "using": { - "manual_configuration": { - "column_mapping": { - "collection_data_id_hash": "collection_data_id_hash" - }, - "insertion_order": null, - "remote_table": { - "name": "current_collection_datas", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "collection_data_id_hash", - "collection_name", - "creator_address", - "default_properties", - "description", - "description_mutable", - "largest_property_version", - "last_transaction_timestamp", - "last_transaction_version", - "maximum", - "maximum_mutable", - "metadata_uri", - "name", - "payee_address", - "properties_mutable", - "royalty_mutable", - "royalty_points_denominator", - "royalty_points_numerator", - "supply", - "token_data_id_hash", - "uri_mutable" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, { "table": { "name": "current_token_datas_v2", @@ -1217,124 +1466,39 @@ "insertion_order": null, "remote_table": { "name": "parsed_asset_uris", - "schema": "nft_metadata_crawler" - } - } - } - }, - { - "name": "current_collection", - "using": { - "manual_configuration": { - "column_mapping": { - "collection_id": "collection_id" - }, - "insertion_order": null, - "remote_table": { - "name": "current_collections_v2", - "schema": "public" - } - } - } - } - ], - "array_relationships": [ - { - "name": "current_token_ownerships", - "using": { - "manual_configuration": { - "column_mapping": { - "token_data_id": "token_data_id" - }, - "insertion_order": null, - "remote_table": { - "name": "current_token_ownerships_v2", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "collection_id", - "decimals", - "description", - "is_deleted_v2", - "is_fungible_v2", - "largest_property_version_v1", - "last_transaction_timestamp", - "last_transaction_version", - "maximum", - "supply", - "token_data_id", - "token_name", - "token_properties", - "token_standard", - "token_uri" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "current_token_ownerships", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "current_token_ownerships", - "custom_root_fields": {} - }, - "object_relationships": [ - { - "name": "aptos_name", - "using": { - "manual_configuration": { - "column_mapping": { - "name": "token_name" - }, - "insertion_order": null, - "remote_table": { - "name": "current_aptos_names", - "schema": "public" + "schema": "nft_metadata_crawler" } } } }, { - "name": "current_collection_data", + "name": "current_collection", "using": { "manual_configuration": { "column_mapping": { - "collection_data_id_hash": "collection_data_id_hash" + "collection_id": "collection_id" }, "insertion_order": null, "remote_table": { - "name": "current_collection_datas", + "name": "current_collections_v2", "schema": "public" } } } - }, + } + ], + "array_relationships": [ { - "name": "current_token_data", + "name": "current_token_ownerships", "using": { "manual_configuration": { "column_mapping": { - "token_data_id_hash": "token_data_id_hash" + "token_data_id": "token_data_id" }, "insertion_order": null, "remote_table": { - "name": "current_token_datas", - "schema": "legacy_migration_v1" + "name": "current_token_ownerships_v2", + "schema": "public" } } } @@ -1345,22 +1509,24 @@ "role": "anonymous", "permission": { "columns": [ - "amount", - "collection_data_id_hash", - "collection_name", - "creator_address", + "collection_id", + "decimals", + "description", + "is_deleted_v2", + "is_fungible_v2", + "largest_property_version_v1", "last_transaction_timestamp", "last_transaction_version", - "name", - "owner_address", - "property_version", - "table_type", - "token_data_id_hash", - "token_properties" + "maximum", + "supply", + "token_data_id", + "token_name", + "token_properties", + "token_standard", + "token_uri" ], "filter": {}, - "limit": 100, - "allow_aggregations": true + "limit": 100 } } ] @@ -1446,7 +1612,7 @@ "insertion_order": null, "remote_table": { "name": "current_collection_datas", - "schema": "public" + "schema": "legacy_migration_v1" } } } @@ -1545,6 +1711,12 @@ "name": "current_unified_fungible_asset_balances_to_be_renamed", "schema": "public" }, + "configuration": { + "column_config": {}, + "custom_column_names": {}, + "custom_name": "current_fungible_asset_balances", + "custom_root_fields": {} + }, "object_relationships": [ { "name": "metadata", @@ -1574,7 +1746,8 @@ "last_transaction_timestamp", "last_transaction_version", "owner_address", - "storage_id" + "storage_id", + "token_standard" ], "filter": {}, "limit": 100, @@ -2018,97 +2191,6 @@ } ] }, - { - "table": { - "name": "token_activities", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "token_activities", - "custom_root_fields": {} - }, - "object_relationships": [ - { - "name": "current_token_data", - "using": { - "manual_configuration": { - "column_mapping": { - "token_data_id_hash": "token_data_id_hash" - }, - "insertion_order": null, - "remote_table": { - "name": "current_token_datas", - "schema": "legacy_migration_v1" - } - } - } - } - ], - "array_relationships": [ - { - "name": "aptos_names_owner", - "using": { - "manual_configuration": { - "column_mapping": { - "event_account_address": "registered_address" - }, - "insertion_order": null, - "remote_table": { - "name": "current_aptos_names", - "schema": "public" - } - } - } - }, - { - "name": "aptos_names_to", - "using": { - "manual_configuration": { - "column_mapping": { - "to_address": "registered_address" - }, - "insertion_order": null, - "remote_table": { - "name": "current_aptos_names", - "schema": "public" - } - } - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "coin_amount", - "coin_type", - "collection_data_id_hash", - "collection_name", - "creator_address", - "event_account_address", - "event_creation_number", - "event_index", - "event_sequence_number", - "from_address", - "name", - "property_version", - "to_address", - "token_amount", - "token_data_id_hash", - "transaction_timestamp", - "transaction_version", - "transfer_type" - ], - "filter": {}, - "limit": 100, - "allow_aggregations": true - } - } - ] - }, { "table": { "name": "token_activities_v2", @@ -2191,117 +2273,6 @@ } ] }, - { - "table": { - "name": "token_datas", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "token_datas", - "custom_root_fields": {} - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "collection_data_id_hash", - "collection_name", - "creator_address", - "default_properties", - "description", - "description_mutable", - "largest_property_version", - "maximum", - "maximum_mutable", - "metadata_uri", - "name", - "payee_address", - "properties_mutable", - "royalty_mutable", - "royalty_points_denominator", - "royalty_points_numerator", - "supply", - "token_data_id_hash", - "transaction_timestamp", - "transaction_version", - "uri_mutable" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "token_ownerships", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "token_ownerships", - "custom_root_fields": {} - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "amount", - "collection_data_id_hash", - "collection_name", - "creator_address", - "name", - "owner_address", - "property_version", - "table_handle", - "table_type", - "token_data_id_hash", - "transaction_timestamp", - "transaction_version" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, - { - "table": { - "name": "tokens", - "schema": "legacy_migration_v1" - }, - "configuration": { - "column_config": {}, - "custom_column_names": {}, - "custom_name": "tokens", - "custom_root_fields": {} - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "collection_data_id_hash", - "collection_name", - "creator_address", - "name", - "property_version", - "token_data_id_hash", - "token_properties", - "transaction_timestamp", - "transaction_version" - ], - "filter": {}, - "limit": 100 - } - } - ] - }, { "table": { "name": "user_transactions",