Skip to content

Commit

Permalink
Merge branch 'main' into CNS-delegators-slashing-hook-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shleikes authored Apr 15, 2024
2 parents e584d32 + 0c0e442 commit 9970a8a
Show file tree
Hide file tree
Showing 58 changed files with 1,201 additions and 490 deletions.
7 changes: 4 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,23 @@ archives:
builds:
- lavavisor
format: binary
# use zip for windows archives
name_template: '{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
- id: lavap
builds:
- lavap
format: binary
# use zip for windows archives
name_template: '{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
- id: lavad
builds:
- lavad
format: binary
# use zip for windows archives
name_template: '{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
Expand Down Expand Up @@ -185,3 +185,4 @@ release:
name_template: "Lava v{{.Version}} 🌋"
mode: replace
draft: true
prerelease: "true"
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ var Upgrades = []upgrades.Upgrade{
upgrades.Upgrade_1_0_0,
upgrades.Upgrade_1_0_1,
upgrades.Upgrade_1_1_0,
upgrades.Upgrade_1_2_0,
}

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/empty_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,9 @@ var Upgrade_1_1_0 = Upgrade{
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}

var Upgrade_1_2_0 = Upgrade{
UpgradeName: "v1.2.0",
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}
6 changes: 6 additions & 0 deletions cmd/lavap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/lavanet/lava/protocol/badgeserver"
"github.com/lavanet/lava/protocol/monitoring"
"github.com/lavanet/lava/protocol/performance/connection"
validators "github.com/lavanet/lava/protocol/performance/validators"
"github.com/lavanet/lava/protocol/rpcconsumer"
"github.com/lavanet/lava/protocol/rpcprovider"
"github.com/lavanet/lava/protocol/statetracker"
Expand All @@ -42,6 +43,8 @@ func main() {
// badge generator cobra command
badgeServer := badgeserver.CreateBadgeServerCobraCommand()

validatorsCmd := validators.CreateValidatorsPerformanceCommand()

// Add Version Command
rootCmd.AddCommand(cmdVersion)
// Add RPC Consumer Command
Expand All @@ -53,6 +56,9 @@ func main() {
// Add Badge Generator Command
rootCmd.AddCommand(badgeServer)

// add command to test validators
rootCmd.AddCommand(validatorsCmd)

testCmd := &cobra.Command{
Use: "test",
Short: "Test commands for protocol network",
Expand Down
7 changes: 5 additions & 2 deletions config/consumer_examples/full_consumer_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ endpoints:
- chain-id: ETH1
api-interface: jsonrpc
network-address: 127.0.0.1:3333
- chain-id: GTH1
- chain-id: SEP1
api-interface: jsonrpc
network-address: 127.0.0.1:3334
- chain-id: FTM250
Expand All @@ -29,7 +29,7 @@ endpoints:
- chain-id: OPTM
api-interface: jsonrpc
network-address: 127.0.0.1:3352
- chain-id: BASET
- chain-id: BASES
api-interface: jsonrpc
network-address: 127.0.0.1:3353
- chain-id: OSMOSIS
Expand Down Expand Up @@ -152,6 +152,9 @@ endpoints:
- chain-id: AVAXT
api-interface: jsonrpc
network-address: 127.0.0.1:3393
- chain-id: HOL1
api-interface: jsonrpc
network-address: 127.0.0.1:3394
metrics-listen-address: ":7779"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
4 changes: 2 additions & 2 deletions config/provider_examples/all_endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endpoints:
node-urls:
- url: <enter-here>
- api-interface: jsonrpc
chain-id: GTH1
chain-id: SEP1
network-address:
address: "127.0.0.1:2221"
node-urls:
Expand Down Expand Up @@ -60,7 +60,7 @@ endpoints:
node-urls:
- url: <enter-here>
- api-interface: jsonrpc
chain-id: BASET
chain-id: BASES
network-address:
address: "127.0.0.1:2221"
node-urls:
Expand Down
19 changes: 0 additions & 19 deletions cookbook/backups/spec_add_optimism_fast_lookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,6 @@
]
}
]
},
{
"index": "OPTMT",
"name": "optimism goerli testnet",
"enabled": true,
"imports": [
"OPTM"
],
"reliability_threshold": 268435455,
"data_reliability_enabled": true,
"block_distance_for_finalized_data": 1,
"blocks_in_finalization_proof": 1,
"average_block_time": 250,
"allowed_block_lag_for_qos_sync": 40,
"shares" : 1,
"min_stake_provider": {
"denom": "ulava",
"amount": "50000000000"
}
}
]
},
Expand Down
15 changes: 5 additions & 10 deletions cookbook/param_changes/param_change_epoch_params.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
"title": "Protocol Version Change",
"description": "Update version",
"changes": [
{
"subspace": "protocol",
"key": "Version",
"value": {
"provider_target": "1.18.2",
"consumer_target": "1.18.2",
"provider_min": "1.16.2",
"consumer_min": "1.16.2"
}
}
{
"subspace": "epochstorage",
"key": "EpochBlocks",
"value": "3600"
}
],
"deposit": "10000000ulava"
}
2 changes: 1 addition & 1 deletion cookbook/projects/policy_all_chains_with_addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Policy:
api_interface: "jsonrpc"
type: "POST"
add_on: "debug"
- chain_id: GTH1
- chain_id: SEP1
requirements:
- collection:
api_interface: "jsonrpc"
Expand Down
2 changes: 1 addition & 1 deletion cookbook/projects/policy_all_chains_with_extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Policy:
extensions:
- "archive"
mixed: true
- chain_id: GTH1
- chain_id: SEP1
requirements:
- collection:
api_interface: "jsonrpc"
Expand Down
44 changes: 0 additions & 44 deletions cookbook/specs/spec_add_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,50 +68,6 @@
}
]
},
{
"index": "BASET",
"name": "base goerli testnet",
"enabled": true,
"imports": [
"BASE"
],
"reliability_threshold": 268435455,
"data_reliability_enabled": true,
"block_distance_for_finalized_data": 1,
"blocks_in_finalization_proof": 1,
"average_block_time": 2000,
"allowed_block_lag_for_qos_sync": 5,
"shares": 1,
"min_stake_provider": {
"denom": "ulava",
"amount": "47500000000"
},
"api_collections": [
{
"enabled": true,
"collection_data": {
"api_interface": "jsonrpc",
"internal_path": "",
"type": "POST",
"add_on": ""
},
"apis": [],
"headers": [],
"inheritance_apis": [],
"parse_directives": [],
"verifications": [
{
"name": "chain-id",
"values": [
{
"expected_value": "0x14a33"
}
]
}
]
}
]
},
{
"index": "BASES",
"name": "base sepolia testnet",
Expand Down
13 changes: 6 additions & 7 deletions cookbook/specs/spec_add_ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@
]
},
{
"index": "GTH1",
"name": "ethereum testnet goerli",
"index": "SEP1",
"name": "ethereum testnet sepolia",
"enabled": true,
"imports": [
"ETH1"
Expand All @@ -1369,7 +1369,6 @@
"blocks_in_finalization_proof": 3,
"average_block_time": 13000,
"allowed_block_lag_for_qos_sync": 2,
"shares": 1,
"min_stake_provider": {
"denom": "ulava",
"amount": "47500000000"
Expand All @@ -1392,7 +1391,7 @@
"name": "chain-id",
"values": [
{
"expected_value": "0x5"
"expected_value": "0xaa36a7"
}
]
}
Expand All @@ -1401,8 +1400,8 @@
]
},
{
"index": "SEP1",
"name": "ethereum testnet sepolia",
"index": "HOL1",
"name": "ethereum testnet holesky",
"enabled": true,
"imports": [
"ETH1"
Expand Down Expand Up @@ -1435,7 +1434,7 @@
"name": "chain-id",
"values": [
{
"expected_value": "0xaa36a7"
"expected_value": "0x4268"
}
]
}
Expand Down
12 changes: 12 additions & 0 deletions cookbook/specs/spec_add_fvm.json
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,18 @@
"expected_value": "0x13a"
}
]
},
{
"name": "pruning",
"values": [
{
"expected_value": ""
},
{
"extension": "archive",
"expected_value": ""
}
]
}
]
}
Expand Down
Loading

0 comments on commit 9970a8a

Please sign in to comment.