Skip to content

Commit

Permalink
update lava specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Oct 20, 2024
1 parent fd2dd41 commit 83946eb
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 1 deletion.
72 changes: 72 additions & 0 deletions cookbook/specs/lava.json
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,42 @@
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "/lavanet/lava/subscription/estimated_provider_rewards/{provider}/{amount_delegator}",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "/lavanet/lava/epochstorage/provider_metadata/{provider}",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
}
],
"headers": [],
Expand Down Expand Up @@ -2888,6 +2924,42 @@
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "lavanet.lava.epochstorage.Query/ProviderMetaData",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "lavanet.lava.subscription.Query/EstimatedProviderRewards",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
}
],
"headers": [],
Expand Down
72 changes: 72 additions & 0 deletions cookbook/specs/lava_mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,42 @@
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "/lavanet/lava/epochstorage/provider_metadata/{provider}",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "/lavanet/lava/subscription/estimated_provider_rewards/{provider}/{amount_delegator}",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
}
],
"headers": [],
Expand Down Expand Up @@ -2852,6 +2888,42 @@
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "lavanet.lava.subscription.Query/EstimatedProviderRewards",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
},
{
"name": "lavanet.lava.epochstorage.Query/ProviderMetaData",
"block_parsing": {
"parser_arg": [
"latest"
],
"parser_func": "DEFAULT"
},
"compute_units": 10,
"enabled": true,
"category": {
"deterministic": true,
"local": false,
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
}
],
"headers": [],
Expand Down
2 changes: 1 addition & 1 deletion scripts/automation_scripts/update_cosmos_spec_from_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def parse_endpoints_from_grpcurl(grpc_url: str) -> dict[str, list[str]]:
print("### Parsing endpoints from gRPC service")

endpoints: dict[str, list[str]] = {"grpc": [], "rest": []}
content = os.popen(f"grpcurl {grpc_url} describe").read()
content = os.popen(f"grpcurl --plaintext {grpc_url} describe").read()

# Regex pattern to find services starting with their corresponding rpc and rest paths
grpc_pattern = re.compile(
Expand Down

0 comments on commit 83946eb

Please sign in to comment.