From 4969c10d04fc554e74091525a22392398b595d24 Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Mon, 25 Nov 2024 14:16:56 +0200 Subject: [PATCH 1/4] update polygon spec --- cookbook/specs/polygon.json | 122 +++++++++++++++++++++++++++++++-- scripts/init_chain_commands.sh | 2 +- 2 files changed, 116 insertions(+), 8 deletions(-) diff --git a/cookbook/specs/polygon.json b/cookbook/specs/polygon.json index 39cb041c91..d168bb09b5 100644 --- a/cookbook/specs/polygon.json +++ b/cookbook/specs/polygon.json @@ -4,7 +4,7 @@ "description": "Adding new specification support for relaying Polygon data on Lava", "specs": [ { - "index": "POLYGON1", + "index": "POLYGON", "name": "polygon mainnet", "enabled": true, "imports": [ @@ -19,7 +19,7 @@ "shares": 1, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { @@ -210,6 +210,114 @@ "stateful": 0 }, "extra_compute_units": 0 + }, + { + "name": "erigon_blockNumber", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "erigon_forks", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "erigon_getBlockByTimestamp", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "erigon_getBlockReceiptsByBlockHash", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "erigon_getHeaderByHash", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 + }, + { + "name": "erigon_getHeaderByNumber", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 0 + }, + "extra_compute_units": 0 } ], "headers": [], @@ -228,7 +336,7 @@ "name": "pruning", "values": [ { - "latest_distance": 34560 + "latest_distance": 43200 }, { "extension": "archive", @@ -242,7 +350,7 @@ "name": "archive", "cu_multiplier": 5, "rule": { - "block": 34080 + "block": 42600 } } ] @@ -250,11 +358,11 @@ ] }, { - "index": "POLYGON1A", + "index": "POLYGONA", "name": "polygon amoy testnet", "enabled": true, "imports": [ - "POLYGON1" + "POLYGON" ], "reliability_threshold": 268435455, "data_reliability_enabled": true, @@ -265,7 +373,7 @@ "shares": 1, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { diff --git a/scripts/init_chain_commands.sh b/scripts/init_chain_commands.sh index 295f201531..6c720f13a6 100755 --- a/scripts/init_chain_commands.sh +++ b/scripts/init_chain_commands.sh @@ -70,7 +70,7 @@ lavad tx subscription buy DefaultPlan $(lavad keys show user1 -a) --enable-auto- # lavad tx project set-policy $(lavad keys show user1 -a)-admin ./cookbook/projects/policy_all_chains_with_addon.yml -y --from user1 --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE # MANTLE -CHAINS="ETH1,SEP1,HOL1,OSMOSIS,FTM250,CELO,LAV1,OSMOSIST,ALFAJORES,ARB1,ARBN,APT1,STRK,JUN1,COSMOSHUB,POLYGON1,EVMOS,OPTM,BASES,CANTO,SUIT,SOLANA,BSC,AXELAR,AVAX,FVM,NEAR,SQDSUBGRAPH,AGR,AGRT,KOIIT,AVAXT,CELESTIATM" +CHAINS="POLYGON" BASE_CHAINS="ETH1,LAV1" # stake providers on all chains echo; echo "#### Staking provider 1 ####" From 7975560a1767f9dc3a5ebbd13fcaf0097274d547 Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Mon, 25 Nov 2024 15:52:14 +0200 Subject: [PATCH 2/4] fix optimism --- cookbook/specs/optimism.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cookbook/specs/optimism.json b/cookbook/specs/optimism.json index ae6b00c88e..02b90c9f3e 100644 --- a/cookbook/specs/optimism.json +++ b/cookbook/specs/optimism.json @@ -14,12 +14,12 @@ "data_reliability_enabled": true, "block_distance_for_finalized_data": 1, "blocks_in_finalization_proof": 1, - "average_block_time": 5000, - "allowed_block_lag_for_qos_sync": 200, + "average_block_time": 2000, + "allowed_block_lag_for_qos_sync": 8, "shares": 1, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { @@ -170,11 +170,11 @@ "data_reliability_enabled": true, "block_distance_for_finalized_data": 1, "blocks_in_finalization_proof": 1, - "average_block_time": 5000, - "allowed_block_lag_for_qos_sync": 200, + "average_block_time": 2000, + "allowed_block_lag_for_qos_sync": 8, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { From 0ae468bbc8258a7504a9b2162dab97a7f9056fc2 Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Mon, 25 Nov 2024 15:55:09 +0200 Subject: [PATCH 3/4] base spec update --- cookbook/specs/base.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/specs/base.json b/cookbook/specs/base.json index ffc8cdc980..75afc60acd 100644 --- a/cookbook/specs/base.json +++ b/cookbook/specs/base.json @@ -19,7 +19,7 @@ "shares": 1, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { @@ -84,7 +84,7 @@ "shares": 1, "min_stake_provider": { "denom": "ulava", - "amount": "47500000000" + "amount": "5000000000" }, "api_collections": [ { From e044f64282f38c2fad6a487dd1c4cc6b3e6cb2d6 Mon Sep 17 00:00:00 2001 From: Yarom Swisa Date: Sun, 1 Dec 2024 15:37:33 +0200 Subject: [PATCH 4/4] revert --- scripts/init_chain_commands.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init_chain_commands.sh b/scripts/init_chain_commands.sh index 6c720f13a6..295f201531 100755 --- a/scripts/init_chain_commands.sh +++ b/scripts/init_chain_commands.sh @@ -70,7 +70,7 @@ lavad tx subscription buy DefaultPlan $(lavad keys show user1 -a) --enable-auto- # lavad tx project set-policy $(lavad keys show user1 -a)-admin ./cookbook/projects/policy_all_chains_with_addon.yml -y --from user1 --gas-adjustment "1.5" --gas "auto" --gas-prices $GASPRICE # MANTLE -CHAINS="POLYGON" +CHAINS="ETH1,SEP1,HOL1,OSMOSIS,FTM250,CELO,LAV1,OSMOSIST,ALFAJORES,ARB1,ARBN,APT1,STRK,JUN1,COSMOSHUB,POLYGON1,EVMOS,OPTM,BASES,CANTO,SUIT,SOLANA,BSC,AXELAR,AVAX,FVM,NEAR,SQDSUBGRAPH,AGR,AGRT,KOIIT,AVAXT,CELESTIATM" BASE_CHAINS="ETH1,LAV1" # stake providers on all chains echo; echo "#### Staking provider 1 ####"