fadff7888b
* Save gateway owner for later use in erc20 bandwidth request * Pass owner in network monitor * Switch to variable length owner address * Add erc20 bridge contract in validator client * Check bandwidth credential refers to gateway * Check the owner of the gateway from the eth event * Fix wasm client * Hack to avoid unused warning on coconut path * Hacked, one-time payment * Remove print * Update arg format * Fix token check * Fix native template * Use utokens instead of full token ... when talking to eth * Fix parse event for new field * Fix socks5 template * Add estimation of gas call * Make fs backup more reliable * Fix clippy * Fix unused import * Update waiting time * Remove defaults from run, as it they should be set on init * Remove debugging prints * Replaced unwrap with error * Fix build * Make eth contract address dependent of network * Use tokio for sleep * Add approve before spending token on bandwidth * Put bandwidth claim only at the beginning of the process
25 lines
1.0 KiB
Rust
25 lines
1.0 KiB
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use crate::ValidatorDetails;
|
|
|
|
pub(crate) const BECH32_PREFIX: &str = "nymt";
|
|
pub const DENOM: &str = "unymt";
|
|
|
|
pub(crate) const MIXNET_CONTRACT_ADDRESS: &str = "nymt1ghd753shjuwexxywmgs4xz7x2q732vcnstz02j";
|
|
pub(crate) const VESTING_CONTRACT_ADDRESS: &str = "nymt14ejqjyq8um4p3xfqj74yld5waqljf88fn549lh";
|
|
pub(crate) const BANDWIDTH_CLAIM_CONTRACT_ADDRESS: &str =
|
|
"nymt17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9f8xzkv";
|
|
pub(crate) const _ETH_CONTRACT_ADDRESS: [u8; 20] =
|
|
hex_literal::hex!("8e0DcFF7F3085235C32E845f3667aEB3f1e83133");
|
|
pub(crate) const _ETH_ERC20_CONTRACT_ADDRESS: [u8; 20] =
|
|
hex_literal::hex!("E8883BAeF3869e14E4823F46662e81D4F7d2A81F");
|
|
pub(crate) const REWARDING_VALIDATOR_ADDRESS: &str = "nymt1jh0s6qu6tuw9ut438836mmn7f3f2wencrnmdj4";
|
|
|
|
pub(crate) fn validators() -> Vec<ValidatorDetails> {
|
|
vec![ValidatorDetails::new(
|
|
"https://sandbox-validator.nymtech.net",
|
|
Some("https://sandbox-validator.nymtech.net/api"),
|
|
)]
|
|
}
|