remove old env references
This commit is contained in:
@@ -5,7 +5,6 @@ on:
|
||||
paths:
|
||||
- 'clients/**'
|
||||
- 'common/**'
|
||||
- 'explorer-api/**'
|
||||
- 'gateway/**'
|
||||
- 'integrations/**'
|
||||
- 'nym-api/**'
|
||||
|
||||
@@ -40,7 +40,6 @@ validator-config
|
||||
validator-api-config.toml
|
||||
dist
|
||||
storybook-static
|
||||
envs/qwerty.env
|
||||
.parcel-cache
|
||||
**/.DS_Store
|
||||
cpu-cycles/libcpucycles/build
|
||||
|
||||
@@ -16,8 +16,8 @@ async fn main() {
|
||||
let prefix = "n";
|
||||
let denom: Denom = "unym".parse().unwrap();
|
||||
let signer_mnemonic: bip39::Mnemonic = "<MNEMONIC WITH FUNDS HERE>".parse().unwrap();
|
||||
let validator = "https://qwerty-validator.qa.nymte.ch";
|
||||
let to_address: AccountId = "n19kdst4srf76xgwe55jg32mpcpcyf6aqgp6qrdk".parse().unwrap();
|
||||
let validator = "https://rpc.sandbox.nymtech.net";
|
||||
let to_address: AccountId = "n1pefc2utwpy5w78p2kqdsfmpjxfwmn9d39k5mqa".parse().unwrap();
|
||||
|
||||
let signer = DirectSecp256k1HdWallet::from_mnemonic(prefix, signer_mnemonic);
|
||||
let signer_address = signer.try_derive_accounts().unwrap()[0].address().clone();
|
||||
|
||||
@@ -7,7 +7,6 @@ use serde::{Deserialize, Serialize};
|
||||
use std::{fmt, ops::Not, str::FromStr};
|
||||
use strum::EnumIter;
|
||||
|
||||
mod qa;
|
||||
mod sandbox;
|
||||
|
||||
#[allow(clippy::upper_case_acronyms)]
|
||||
@@ -18,7 +17,6 @@ mod sandbox;
|
||||
)]
|
||||
#[derive(Copy, Clone, Debug, Deserialize, EnumIter, Eq, Hash, PartialEq, Serialize)]
|
||||
pub enum Network {
|
||||
QA,
|
||||
SANDBOX,
|
||||
MAINNET,
|
||||
}
|
||||
@@ -30,7 +28,6 @@ impl Network {
|
||||
|
||||
pub fn mix_denom(&self) -> DenomDetails {
|
||||
match self {
|
||||
Network::QA => qa::MIX_DENOM,
|
||||
Network::SANDBOX => sandbox::MIX_DENOM,
|
||||
Network::MAINNET => mainnet::MIX_DENOM,
|
||||
}
|
||||
@@ -38,7 +35,6 @@ impl Network {
|
||||
|
||||
pub fn base_mix_denom(&self) -> &str {
|
||||
match self {
|
||||
Network::QA => qa::MIX_DENOM.base,
|
||||
Network::SANDBOX => sandbox::MIX_DENOM.base,
|
||||
Network::MAINNET => mainnet::MIX_DENOM.base,
|
||||
}
|
||||
@@ -46,7 +42,6 @@ impl Network {
|
||||
|
||||
pub fn display_mix_denom(&self) -> &str {
|
||||
match self {
|
||||
Network::QA => qa::MIX_DENOM.display,
|
||||
Network::SANDBOX => sandbox::MIX_DENOM.display,
|
||||
Network::MAINNET => mainnet::MIX_DENOM.display,
|
||||
}
|
||||
@@ -72,7 +67,6 @@ impl fmt::Display for Network {
|
||||
impl From<Network> for NymNetworkDetails {
|
||||
fn from(network: Network) -> Self {
|
||||
match network {
|
||||
Network::QA => qa::network_details(),
|
||||
Network::SANDBOX => sandbox::network_details(),
|
||||
Network::MAINNET => NymNetworkDetails::new_mainnet(),
|
||||
}
|
||||
@@ -84,7 +78,6 @@ impl FromStr for Network {
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s.to_lowercase().as_str() {
|
||||
"qa" => Ok(Network::QA),
|
||||
"sandbox" => Ok(Network::SANDBOX),
|
||||
"mainnet" => Ok(Network::MAINNET),
|
||||
_ => Err(TypesError::UnknownNetwork(s.to_string())),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
const QA_VALIDATOR_URL = 'https://qa-nym-api.qa.nymte.ch/api';
|
||||
const MAINNET_VALIDATOR_URL = 'https://validator.nymtech.net/api/';
|
||||
|
||||
export { QA_VALIDATOR_URL, MAINNET_VALIDATOR_URL };
|
||||
export { MAINNET_VALIDATOR_URL };
|
||||
|
||||
Reference in New Issue
Block a user