From 3fff94c57e5921eee070345da723afefaac54ac1 Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Tue, 25 Jun 2024 17:25:58 +0200 Subject: [PATCH] simulation-mode compiling --- kinode/src/fakenet/mod.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kinode/src/fakenet/mod.rs b/kinode/src/fakenet/mod.rs index 10e22866..85277e49 100644 --- a/kinode/src/fakenet/mod.rs +++ b/kinode/src/fakenet/mod.rs @@ -1,3 +1,6 @@ +use crate::fakenet::helpers::RegisterHelpers::{ + ipCall, multicallCall, ownerOfCall, registerCall, setAllIpCall, setKeyCall, +}; use crate::{keygen, KNS_ADDRESS}; use alloy::network::{eip2718::Encodable2718, EthereumWallet, TransactionBuilder}; use alloy::providers::{Provider, ProviderBuilder, RootProvider}; @@ -10,7 +13,7 @@ use alloy_sol_types::{SolCall, SolValue}; use lib::core::{Identity, NodeRouting}; use std::str::FromStr; -mod helpers; +pub mod helpers; const FAKE_DOTDEV: &str = "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"; @@ -39,8 +42,8 @@ pub async fn register_local( let provider: RootProvider = ProviderBuilder::default().on_ws(ws).await?; - let fqdn = dns_encode_fqdn(name); - let namehash = encode_namehash(name); + let fqdn = helpers::dns_encode_fqdn(name); + let namehash = helpers::encode_namehash(name); // todo: find a better way? let namehash_bint: B256 = namehash.into(); let namehash_uint: U256 = namehash_bint.into();