diff --git a/Cargo.lock b/Cargo.lock index a67aa16..a233a1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1802,7 +1802,7 @@ dependencies = [ [[package]] name = "kinode_process_lib" -version = "0.10.2" +version = "1.0.0" dependencies = [ "alloy", "alloy-primitives", diff --git a/Cargo.toml b/Cargo.toml index 8665c8e..797fabf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kinode_process_lib" authors = ["Sybil Technologies AG"] -version = "0.10.2" +version = "1.0.0" edition = "2021" description = "A library for writing Kinode processes in Rust." homepage = "https://kinode.org" diff --git a/src/kimap.rs b/src/kimap.rs index dfd0fb6..197472f 100644 --- a/src/kimap.rs +++ b/src/kimap.rs @@ -11,12 +11,12 @@ use std::error::Error; use std::fmt; use std::str::FromStr; -/// kimap deployment address on optimism -pub const KIMAP_ADDRESS: &'static str = "0xcA92476B2483aBD5D82AEBF0b56701Bb2e9be658"; -/// optimism chain id -pub const KIMAP_CHAIN_ID: u64 = 10; -/// first block of kimap deployment on optimism -pub const KIMAP_FIRST_BLOCK: u64 = 123_908_000; +/// kimap deployment address on base +pub const KIMAP_ADDRESS: &'static str = "0x000000000033e5CCbC52Ec7BDa87dB768f9aA93F"; +/// base chain id +pub const KIMAP_CHAIN_ID: u64 = 8453; +/// first block (minus one) of kimap deployment on base +pub const KIMAP_FIRST_BLOCK: u64 = 25_346_377; /// the root hash of kimap, empty bytes32 pub const KIMAP_ROOT_HASH: &'static str = "0x0000000000000000000000000000000000000000000000000000000000000000"; diff --git a/src/types/package_id.rs b/src/types/package_id.rs index 960e976..9278bef 100644 --- a/src/types/package_id.rs +++ b/src/types/package_id.rs @@ -132,7 +132,7 @@ impl std::str::FromStr for PackageId { /// Attempts to parse a `PackageId` from a string. The string must match the pattern /// of two segments containing only lowercase letters, numbers and hyphens, separated by a colon. fn from_str(input: &str) -> Result { - let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+$").unwrap(); + let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-.]+$").unwrap(); if !re.is_match(input) { return Err(ProcessIdParseError::InvalidCharacter); } diff --git a/src/types/process_id.rs b/src/types/process_id.rs index 2364712..f186372 100644 --- a/src/types/process_id.rs +++ b/src/types/process_id.rs @@ -39,7 +39,7 @@ impl std::str::FromStr for ProcessId { /// Attempts to parse a `ProcessId` from a string. The string must match the pattern /// of three segments containing only lowercase letters, numbers and hyphens, separated by colons. fn from_str(input: &str) -> Result { - let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-]+$").unwrap(); + let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-.]+$").unwrap(); if !re.is_match(input) { return Err(ProcessIdParseError::InvalidCharacter); }