Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Update Service Binaries Config #165

Merged
merged 18 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: |
# run dev runner and test-integration
just run dev init
screen -d -m just run dev run
screen -d -m just run dev run --network local
sleep 5
just test-integration
# FIXME - sequencer client tests are empty
Expand Down
2 changes: 1 addition & 1 deletion modules/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ sequencer_chain_id = 'sequencer-only'
sequencer_grpc = 'http://127.0.0.1:8080'
sequencer_rpc = 'http://127.0.0.1:26657'
rollup_name = 'astria-test-chain'
default_denom = 'nria'
default_denom = 'ntia'

[networks.sequencer_only.services]
[networks.sequencer_only.services.cometbft]
Expand Down
5 changes: 3 additions & 2 deletions modules/cli/cmd/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

const (
DefaultDuskNum = "10"
DefaultDawnNum = "0"
DefaultDuskNum = "11"
DefaultDawnNum = "1"
DefaultTargetNetwork = "dawn"
)
2 changes: 1 addition & 1 deletion modules/cli/cmd/devrunner/config/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DefaultBaseConfig(instanceName string) BaseConfig {
"astria_composer_no_metrics": "true",
"astria_composer_metrics_http_listener_addr": "127.0.0.1:9000",
"astria_composer_grpc_addr": "0.0.0.0:0",
"astria_composer_fee_asset": "nria",
"astria_composer_fee_asset": "ntia",

// ANSI
"no_color": "",
Expand Down
36 changes: 36 additions & 0 deletions modules/cli/cmd/devrunner/config/binaries.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package config

// Url holds the parts of a URL that point to a release.
type Url struct {
Prefix string
Middle string
Suffix string
}

// AvailableServiceReleaseUrls holds the parts of the release URLs for known services.
type AvailableServiceReleaseUrls struct {
CometBFT Url
AstriaSequencer Url
AstriaComposer Url
AstriaConductor Url
}

// CometBftReleaseUrl returns the release URLs for the known CometBFT service.
func (asru *AvailableServiceReleaseUrls) CometBftReleaseUrl(version string) string {
return asru.CometBFT.Prefix + version + asru.CometBFT.Middle + version + asru.CometBFT.Suffix
}

// AstriaSequencerReleaseUrl returns the release URLs for the known Astria Sequencer service.
func (asru *AvailableServiceReleaseUrls) AstriaSequencerReleaseUrl(version string) string {
return asru.AstriaSequencer.Prefix + version + asru.AstriaSequencer.Suffix
}

// AstriaComposerReleaseUrl returns the release URLs for the known Astria Composer service.
func (asru *AvailableServiceReleaseUrls) AstriaComposerReleaseUrl(version string) string {
return asru.AstriaComposer.Prefix + version + asru.AstriaComposer.Suffix
}

// AstriaConductorReleaseUrl returns the release URLs for the known Astria Conductor service.
func (asru *AvailableServiceReleaseUrls) AstriaConductorReleaseUrl(version string) string {
return asru.AstriaConductor.Prefix + version + asru.AstriaConductor.Suffix
}
47 changes: 17 additions & 30 deletions modules/cli/cmd/devrunner/config/binaries_config_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,25 @@

package config

type Binary struct {
Name string
Version string
Url string
}

type Binaries struct {
CometBFT Binary
AstriaSequencer Binary
AstriaComposer Binary
AstriaConductor Binary
}

var KnownBinaries = Binaries{
CometBFT: Binary{
Name: "cometbft",
Version: "v" + CometbftVersion,
Url: "https://github.com/cometbft/cometbft/releases/download/v" + CometbftVersion + "/cometbft_" + CometbftVersion + "_darwin_amd64.tar.gz",
var ServiceUrls = AvailableServiceReleaseUrls{
CometBFT: Url{
Prefix: "https://github.com/cometbft/cometbft/releases/download/v",
Middle: "/cometbft_",
Suffix: "_darwin_amd64.tar.gz",
},
AstriaSequencer: Binary{
Name: "astria-sequencer",
Version: "v" + AstriaSequencerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/sequencer-v" + AstriaSequencerVersion + "/astria-sequencer-x86_64-apple-darwin.tar.gz",
AstriaSequencer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/sequencer-v",
Middle: "",
Suffix: "/astria-sequencer-x86_64-apple-darwin.tar.gz",
},
AstriaComposer: Binary{
Name: "astria-composer",
Version: "v" + AstriaComposerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/composer-v" + AstriaComposerVersion + "/astria-composer-x86_64-apple-darwin.tar.gz",
AstriaComposer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/composer-v",
Middle: "",
Suffix: "/astria-composer-x86_64-apple-darwin.tar.gz",
},
AstriaConductor: Binary{
Name: "astria-conductor",
Version: "v" + AstriaConductorVersion,
Url: "https://github.com/astriaorg/astria/releases/download/conductor-v" + AstriaConductorVersion + "/astria-conductor-x86_64-apple-darwin.tar.gz",
AstriaConductor: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/conductor-v",
Middle: "",
Suffix: "/astria-conductor-x86_64-apple-darwin.tar.gz",
},
}
47 changes: 17 additions & 30 deletions modules/cli/cmd/devrunner/config/binaries_config_darwin_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,25 @@

package config

type Binary struct {
Name string
Version string
Url string
}

type Binaries struct {
CometBFT Binary
AstriaSequencer Binary
AstriaComposer Binary
AstriaConductor Binary
}

var KnownBinaries = Binaries{
CometBFT: Binary{
Name: "cometbft",
Version: "v" + CometbftVersion,
Url: "https://github.com/cometbft/cometbft/releases/download/v" + CometbftVersion + "/cometbft_" + CometbftVersion + "_darwin_arm64.tar.gz",
var ServiceUrls = AvailableServiceReleaseUrls{
CometBFT: Url{
Prefix: "https://github.com/cometbft/cometbft/releases/download/v",
Middle: "/cometbft_",
Suffix: "_darwin_arm64.tar.gz",
},
AstriaSequencer: Binary{
Name: "astria-sequencer",
Version: "v" + AstriaSequencerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/sequencer-v" + AstriaSequencerVersion + "/astria-sequencer-aarch64-apple-darwin.tar.gz",
AstriaSequencer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/sequencer-v",
Middle: "",
Suffix: "/astria-sequencer-aarch64-apple-darwin.tar.gz",
},
AstriaComposer: Binary{
Name: "astria-composer",
Version: "v" + AstriaComposerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/composer-v" + AstriaComposerVersion + "/astria-composer-aarch64-apple-darwin.tar.gz",
AstriaComposer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/composer-v",
Middle: "",
Suffix: "/astria-composer-aarch64-apple-darwin.tar.gz",
},
AstriaConductor: Binary{
Name: "astria-conductor",
Version: "v" + AstriaConductorVersion,
Url: "https://github.com/astriaorg/astria/releases/download/conductor-v" + AstriaConductorVersion + "/astria-conductor-aarch64-apple-darwin.tar.gz",
AstriaConductor: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/conductor-v",
Middle: "",
Suffix: "/astria-conductor-aarch64-apple-darwin.tar.gz",
},
}
47 changes: 17 additions & 30 deletions modules/cli/cmd/devrunner/config/binaries_config_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,25 @@

package config

type Binary struct {
Name string
Version string
Url string
}

type Binaries struct {
CometBFT Binary
AstriaSequencer Binary
AstriaComposer Binary
AstriaConductor Binary
}

var KnownBinaries = Binaries{
CometBFT: Binary{
Name: "cometbft",
Version: "v" + CometbftVersion,
Url: "https://github.com/cometbft/cometbft/releases/download/v" + CometbftVersion + "/cometbft_" + CometbftVersion + "_linux_amd64.tar.gz",
var ServiceUrls = AvailableServiceReleaseUrls{
CometBFT: Url{
Prefix: "https://github.com/cometbft/cometbft/releases/download/v",
Middle: "/cometbft_",
Suffix: "_linux_amd64.tar.gz",
},
AstriaSequencer: Binary{
Name: "astria-sequencer",
Version: "v" + AstriaSequencerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/sequencer-v" + AstriaSequencerVersion + "/astria-sequencer-x86_64-unknown-linux-gnu.tar.gz",
AstriaSequencer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/sequencer-v",
Middle: "",
Suffix: "/astria-sequencer-x86_64-unknown-linux-gnu.tar.gz",
},
AstriaComposer: Binary{
Name: "astria-composer",
Version: "v" + AstriaComposerVersion,
Url: "https://github.com/astriaorg/astria/releases/download/composer-v" + AstriaComposerVersion + "/astria-composer-x86_64-unknown-linux-gnu.tar.gz",
AstriaComposer: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/composer-v",
Middle: "",
Suffix: "/astria-composer-x86_64-unknown-linux-gnu.tar.gz",
},
AstriaConductor: Binary{
Name: "astria-conductor",
Version: "v" + AstriaConductorVersion,
Url: "https://github.com/astriaorg/astria/releases/download/conductor-v" + AstriaConductorVersion + "/astria-conductor-x86_64-unknown-linux-gnu.tar.gz",
AstriaConductor: Url{
Prefix: "https://github.com/astriaorg/astria/releases/download/conductor-v",
Middle: "",
Suffix: "/astria-conductor-x86_64-unknown-linux-gnu.tar.gz",
},
}
22 changes: 17 additions & 5 deletions modules/cli/cmd/devrunner/config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,27 @@ const (
DefaultLocalNetworkName = "sequencer-test-chain-0"
DefaultNetworksConfigName = "networks-config.toml"
DefaultServiceLogLevel = "info"
DefaultTargetNetwork = "local"
DefaultLocalNativeDenom = "ntia"
DefaultTUIConfigName = "tui-config.toml"
DefaultHighlightColor = "blue"
DefaultBorderColor = "gray"

// NOTE - do not include the 'v' at the beginning of the version number
CometbftVersion = "0.38.8"
AstriaSequencerVersion = "1.0.0-rc.1"
AstriaComposerVersion = "1.0.0-rc.1"
AstriaConductorVersion = "1.0.0-rc.1"
// Service versions matched to live networks
MainnetCometbftVersion = "0.38.11"
MainnetAstriaSequencerVersion = "1.0.0"
MainnetAstriaComposerVersion = "1.0.0"
MainnetAstriaConductorVersion = "1.0.0"

// Testnet service versions
TestnetCometbftVersion = "0.38.11"
TestnetSequencerVersion = "1.0.0-rc.2"
TestnetComposerVersion = "1.0.0-rc.2"
TestnetConductorVersion = "1.0.0-rc.2"

// Devnet service versions
DevnetCometbftVersion = "0.38.11"
DevnetSequencerVersion = "1.0.0-rc.2"
DevnetComposerVersion = "1.0.0-rc.2"
DevnetConductorVersion = "1.0.0-rc.2"
)
4 changes: 2 additions & 2 deletions modules/cli/cmd/devrunner/config/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@
"multiplier": { "lo": 0 }
}
},
"native_asset_base_denomination": "nria",
"native_asset_base_denomination": "ntia",
"allowed_fee_assets": [
"nria"
"ntia"
]
}
}
Loading
Loading