Skip to content

Commit

Permalink
fix: get the default relayer version from remote
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Dec 12, 2024
1 parent d6fd715 commit e77d8a9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions utils/dependencies/relayer.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
package dependencies

import (
"github.com/pterm/pterm"

"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/utils/dependencies/types"
)

const (
DefaultRelayerVersion = "v0.4.4-v2.5.2-roller"
"github.com/dymensionxyz/roller/utils/firebase"
)

func DefaultRelayerPrebuiltDependencies() map[string]types.Dependency {
bvi, err := firebase.GetDependencyVersions()
if err != nil {
pterm.Error.Println("failed to fetch binary versions: ", err)
return nil
}

return map[string]types.Dependency{
"rly": {
DependencyName: "go-relayer",
RepositoryOwner: "dymensionxyz",
RepositoryName: "go-relayer",
RepositoryUrl: "https://github.com/dymensionxyz/go-relayer",
Release: DefaultRelayerVersion,
Release: bvi.Relayer,
Binaries: []types.BinaryPathPair{
{
Binary: "rly",
Expand Down

0 comments on commit e77d8a9

Please sign in to comment.