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

Switch default network to Holesky #2984

Merged
merged 4 commits into from
Jan 12, 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 Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yagna"
version = "0.14.0"
version = "0.15.0"
description = "Open platform and marketplace for distributed computations"
readme = "README.md"
authors = ["Golem Factory <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions core/model/src/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ pub mod local {
#[structopt(long, possible_values = DriverName::VARIANTS, default_value = DriverName::Erc20Next.into())]
pub driver: DriverName,
/// Payment network
#[structopt(long, possible_values = NetworkName::VARIANTS, default_value = NetworkName::Goerli.into())]
#[structopt(long, possible_values = NetworkName::VARIANTS, default_value = NetworkName::Holesky.into())]
pub network: NetworkName,
}

Expand Down Expand Up @@ -569,7 +569,7 @@ pub mod local {
let a = AccountCli::from_iter(&[""]);
assert_eq!(None, a.address());
assert_eq!("erc20next", a.driver());
assert_eq!("goerli", a.network());
assert_eq!("holesky", a.network());
assert_eq!("tGLM", a.token());
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/payment-driver/base/src/db/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ pub struct PaymentEntity {
pub enum Network {
Mainnet = 1, //Main Ethereum chain
Rinkeby = 4, //Rinkeby is Ethereum testnet
Goerli = 5, //Goerli is another Ethereum testnet
#[default]
Goerli = 5, //Goerli is another Ethereum testnet
Holesky = 17000, //Holesky is testnet for Holesky network
Mumbai = 80001, //Mumbai is testnet for Polygon network
Polygon = 137, //Polygon is Polygon production network
Expand Down
6 changes: 3 additions & 3 deletions core/payment-driver/erc20next/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ use ya_payment_driver::{
use crate::erc20::utils;
use crate::erc20::utils::{big_dec_to_u256, u256_to_big_dec};
use crate::network::platform_to_currency;
use crate::{driver::PaymentDetails, network};
use crate::{network::SUPPORTED_NETWORKS, DRIVER_NAME, RINKEBY_NETWORK};
use crate::{driver::PaymentDetails, network, HOLESKY_NETWORK};
use crate::{network::SUPPORTED_NETWORKS, DRIVER_NAME};

mod cli;

Expand Down Expand Up @@ -427,7 +427,7 @@ impl PaymentDriver for Erc20NextDriver {
}

fn get_default_network(&self) -> String {
RINKEBY_NETWORK.to_string()
HOLESKY_NETWORK.to_string()
}

fn get_networks(&self) -> HashMap<String, NetworkConfig> {
Expand Down
2 changes: 0 additions & 2 deletions core/payment/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ Typically operation should take less than 1 minute.
"network".to_owned(),
"default?".to_owned(),
"token".to_owned(),
"default?".to_owned(),
"platform".to_owned(),
],
values: drivers
Expand All @@ -519,7 +518,6 @@ Typically operation should take less than 1 minute.
network,
if &dd.default_network == network { "X" } else { "" },
token,
if &n.default_token == token { "X" } else { "" },
platform,
]}
)
Expand Down
Loading