From dde48c688921b4136f270907d8118f00ecbeba0c Mon Sep 17 00:00:00 2001 From: "Daniel Porteous (dport)" Date: Fri, 31 May 2024 16:28:32 +0100 Subject: [PATCH] [CLI] Upgrade Hasura metadata to 5244b84fa5ed872e5280dc8df032d744d62ad29d (#13502) --- Cargo.lock | 10 ++-- crates/aptos/CHANGELOG.md | 3 + crates/aptos/Cargo.toml | 6 +- .../node/local_testnet/hasura_metadata.json | 55 +++++-------------- 4 files changed, 25 insertions(+), 49 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4ff316615a00d..284325cb22dcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,7 +240,7 @@ dependencies = [ [[package]] name = "aptos" -version = "3.4.0" +version = "3.4.1" dependencies = [ "anyhow", "aptos-api-types", @@ -2661,7 +2661,7 @@ dependencies = [ [[package]] name = "aptos-moving-average" version = "0.1.0" -source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=ca60e51b53c3be6f9517de7c73d4711e9c1f7236#ca60e51b53c3be6f9517de7c73d4711e9c1f7236" +source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=5244b84fa5ed872e5280dc8df032d744d62ad29d#5244b84fa5ed872e5280dc8df032d744d62ad29d" dependencies = [ "chrono", ] @@ -12707,11 +12707,11 @@ dependencies = [ [[package]] name = "processor" version = "1.0.0" -source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=ca60e51b53c3be6f9517de7c73d4711e9c1f7236#ca60e51b53c3be6f9517de7c73d4711e9c1f7236" +source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=5244b84fa5ed872e5280dc8df032d744d62ad29d#5244b84fa5ed872e5280dc8df032d744d62ad29d" dependencies = [ "ahash 0.8.11", "anyhow", - "aptos-moving-average 0.1.0 (git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=ca60e51b53c3be6f9517de7c73d4711e9c1f7236)", + "aptos-moving-average 0.1.0 (git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=5244b84fa5ed872e5280dc8df032d744d62ad29d)", "aptos-protos 1.3.0 (git+https://github.com/aptos-labs/aptos-core.git?tag=aptos-node-v1.12.1)", "async-trait", "base64 0.13.1", @@ -14306,7 +14306,7 @@ dependencies = [ [[package]] name = "server-framework" version = "1.0.0" -source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=ca60e51b53c3be6f9517de7c73d4711e9c1f7236#ca60e51b53c3be6f9517de7c73d4711e9c1f7236" +source = "git+https://github.com/aptos-labs/aptos-indexer-processors.git?rev=5244b84fa5ed872e5280dc8df032d744d62ad29d#5244b84fa5ed872e5280dc8df032d744d62ad29d" dependencies = [ "anyhow", "aptos-system-utils 0.1.0 (git+https://github.com/aptos-labs/aptos-core.git?rev=4541add3fd29826ec57f22658ca286d2d6134b93)", diff --git a/crates/aptos/CHANGELOG.md b/crates/aptos/CHANGELOG.md index d3d817a433808..226aae1886f86 100644 --- a/crates/aptos/CHANGELOG.md +++ b/crates/aptos/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to the Aptos CLI will be captured in this file. This project ## Unreleased +## [3.4.1] - 2024/05/31 +- Upgraded indexer processors for localnet from ca60e51b53c3be6f9517de7c73d4711e9c1f7236 to 5244b84fa5ed872e5280dc8df032d744d62ad29d. Upgraded Hasura metadata accordingly. + ## [3.4.0] - 2024/05/30 - Adds a check for safe usage of randomness features. Public functions are not allowed to call randomness features unless explicitly allowed via attribute `#[lint::allow_unsafe_randomness]`. - The Move syntax now supports structured attribute names, as in `#[attribute_area::attribute_name]`. diff --git a/crates/aptos/Cargo.toml b/crates/aptos/Cargo.toml index a98c0e6146a54..7c5d986e6710e 100644 --- a/crates/aptos/Cargo.toml +++ b/crates/aptos/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "aptos" description = "Aptos tool for management of nodes and interacting with the blockchain" -version = "3.4.0" +version = "3.4.1" # Workspace inherited keys authors = { workspace = true } @@ -83,14 +83,14 @@ pathsearch = { workspace = true } poem = { workspace = true } # We set default-features to false so we don't onboard the libpq dep. See more here: # https://github.com/aptos-labs/aptos-core/pull/12568 -processor = { git = "https://github.com/aptos-labs/aptos-indexer-processors.git", rev = "ca60e51b53c3be6f9517de7c73d4711e9c1f7236", default-features = false } +processor = { git = "https://github.com/aptos-labs/aptos-indexer-processors.git", rev = "5244b84fa5ed872e5280dc8df032d744d62ad29d", default-features = false } rand = { workspace = true } reqwest = { workspace = true } self_update = { git = "https://github.com/banool/self_update.git", rev = "8306158ad0fd5b9d4766a3c6bf967e7ef0ea5c4b", features = ["archive-zip", "compression-zip-deflate"] } serde = { workspace = true } serde_json = { workspace = true } serde_yaml = { workspace = true } -server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processors.git", rev = "ca60e51b53c3be6f9517de7c73d4711e9c1f7236" } +server-framework = { git = "https://github.com/aptos-labs/aptos-indexer-processors.git", rev = "5244b84fa5ed872e5280dc8df032d744d62ad29d" } tempfile = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } diff --git a/crates/aptos/src/node/local_testnet/hasura_metadata.json b/crates/aptos/src/node/local_testnet/hasura_metadata.json index c148c7535f3a3..84882e647e183 100644 --- a/crates/aptos/src/node/local_testnet/hasura_metadata.json +++ b/crates/aptos/src/node/local_testnet/hasura_metadata.json @@ -1,5 +1,5 @@ { - "resource_version": 399, + "resource_version": 319, "metadata": { "version": 3, "sources": [ @@ -136,10 +136,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "account_address", - "transaction_version" - ], + "columns": ["account_address", "transaction_version"], "filter": {}, "limit": 100, "allow_aggregations": true @@ -255,10 +252,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "account_address", - "transaction_version" - ], + "columns": ["account_address", "transaction_version"], "filter": {}, "limit": 100, "allow_aggregations": true @@ -337,10 +331,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "address", - "transaction_version" - ], + "columns": ["address", "transaction_version"], "filter": {}, "limit": 100, "allow_aggregations": true @@ -1586,10 +1577,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "delegator_address", - "pool_address" - ], + "columns": ["delegator_address", "pool_address"], "filter": {}, "limit": 100, "allow_aggregations": true @@ -1706,10 +1694,12 @@ "icon_uri", "last_transaction_timestamp", "last_transaction_version", + "maximum_v2", "name", "project_uri", "supply_aggregator_table_handle_v1", "supply_aggregator_table_key_v1", + "supply_v2", "symbol", "token_standard" ], @@ -1728,10 +1718,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "db", - "is_indexer_up" - ], + "columns": ["db", "is_indexer_up"], "filter": {}, "limit": 100 } @@ -1747,9 +1734,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "chain_id" - ], + "columns": ["chain_id"], "filter": {} } } @@ -1764,10 +1749,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "address", - "transaction_version" - ], + "columns": ["address", "transaction_version"], "filter": {}, "limit": 100, "allow_aggregations": true @@ -1784,10 +1766,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "num_active_delegator", - "pool_address" - ], + "columns": ["num_active_delegator", "pool_address"], "filter": {}, "limit": 100 } @@ -1901,11 +1880,7 @@ { "role": "anonymous", "permission": { - "columns": [ - "handle", - "key_type", - "value_type" - ], + "columns": ["handle", "key_type", "value_type"], "filter": {}, "limit": 100 } @@ -2242,9 +2217,7 @@ "query_name": "Latest Processor Status" } }, - "methods": [ - "GET" - ], + "methods": ["GET"], "name": "Latest Processor Status", "url": "get_latest_processor_status" } @@ -2265,4 +2238,4 @@ "analyze_response_body": true } } -} \ No newline at end of file +}