Skip to content

Commit

Permalink
fix: improve relayer flow stability (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Oct 28, 2024
1 parent 4bdc100 commit a9340a8
Show file tree
Hide file tree
Showing 22 changed files with 881 additions and 903 deletions.
7 changes: 4 additions & 3 deletions cmd/consts/da.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ const (
type DaNetwork string

const (
MockDA DaNetwork = "mock"
CelestiaTestnet DaNetwork = "mocha-4"
CelestiaMainnet DaNetwork = "celestia"
)

var DaNetworks = map[string]DaData{
"mock": {
string(MockDA): {
Backend: Local,
ApiUrl: "",
ID: "mock",
Expand All @@ -44,7 +45,7 @@ var DaNetworks = map[string]DaData{
},
GasPrice: "",
},
"mocha-4": {
string(CelestiaTestnet): {
Backend: Celestia,
ApiUrl: DefaultCelestiaRestApiEndpoint,
ID: CelestiaTestnet,
Expand All @@ -60,7 +61,7 @@ var DaNetworks = map[string]DaData{
},
GasPrice: "0.02",
},
"celestia": {
string(CelestiaMainnet): {
Backend: Celestia,
ApiUrl: "api-celestia.mzonder.com",
ID: CelestiaMainnet,
Expand Down
6 changes: 6 additions & 0 deletions cmd/consts/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var MainnetHubData = HubData{
RPC_URL: "https://dymension-mainnet-tendermint.public.blastapi.io",
ARCHIVE_RPC_URL: "https://dymension-mainnet-tendermint.public.blastapi.io",
GAS_PRICE: "20000000000",
DA_NETWORK: string(CelestiaMainnet),
}

var TestnetHubData = HubData{
Expand All @@ -14,6 +15,7 @@ var TestnetHubData = HubData{
RPC_URL: "https://rpc-blumbus.mzonder.com",
ARCHIVE_RPC_URL: "https://rpc-blumbus-archive.mzonder.com",
GAS_PRICE: "20000000000",
DA_NETWORK: string(CelestiaTestnet),
}

var DevnetHubData = HubData{
Expand All @@ -22,6 +24,7 @@ var DevnetHubData = HubData{
RPC_URL: "http://52.58.111.62:36657",
ARCHIVE_RPC_URL: "http://52.58.111.62:36657",
GAS_PRICE: "100000000",
DA_NETWORK: string(CelestiaTestnet),
}

var LocalHubData = HubData{
Expand All @@ -30,6 +33,7 @@ var LocalHubData = HubData{
RPC_URL: "http://localhost:36657",
ARCHIVE_RPC_URL: "http://localhost:36657",
GAS_PRICE: "100000000",
DA_NETWORK: string(MockDA),
}

var MockHubData = HubData{
Expand All @@ -38,6 +42,7 @@ var MockHubData = HubData{
RPC_URL: "",
ARCHIVE_RPC_URL: "",
GAS_PRICE: "",
DA_NETWORK: string(MockDA),
}

var PlaygroundHubData = HubData{
Expand All @@ -46,6 +51,7 @@ var PlaygroundHubData = HubData{
RPC_URL: "https://rpc-dymension-playground-2.mzonder.com:443",
ARCHIVE_RPC_URL: "https://rpc-dymension-playground-2.mzonder.com:443",
GAS_PRICE: "2000000000",
DA_NETWORK: string(CelestiaTestnet),
}

// TODO(#112): The available hub networks should be read from YAML file
Expand Down
1 change: 1 addition & 0 deletions cmd/consts/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type HubData = struct {
RPC_URL string `toml:"rpc_url"`
ARCHIVE_RPC_URL string `toml:"archive_rpc_url"`
GAS_PRICE string `toml:"gas_price"`
DA_NETWORK string `toml:"da_network"`
}

type RollappData = struct {
Expand Down
Loading

0 comments on commit a9340a8

Please sign in to comment.