Skip to content

Commit 4226321

Browse files
authored
Merge pull request #135 from kinode-dao/develop-1.0
Develop 1.0
2 parents c4a5d72 + faddb99 commit 4226321

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "kinode_process_lib"
33
authors = ["Sybil Technologies AG"]
4-
version = "0.10.2"
4+
version = "1.0.0"
55
edition = "2021"
66
description = "A library for writing Kinode processes in Rust."
77
homepage = "https://kinode.org"

src/kimap.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ use std::error::Error;
1111
use std::fmt;
1212
use std::str::FromStr;
1313

14-
/// kimap deployment address on optimism
15-
pub const KIMAP_ADDRESS: &'static str = "0xcA92476B2483aBD5D82AEBF0b56701Bb2e9be658";
16-
/// optimism chain id
17-
pub const KIMAP_CHAIN_ID: u64 = 10;
18-
/// first block of kimap deployment on optimism
19-
pub const KIMAP_FIRST_BLOCK: u64 = 123_908_000;
14+
/// kimap deployment address on base
15+
pub const KIMAP_ADDRESS: &'static str = "0x000000000033e5CCbC52Ec7BDa87dB768f9aA93F";
16+
/// base chain id
17+
pub const KIMAP_CHAIN_ID: u64 = 8453;
18+
/// first block (minus one) of kimap deployment on base
19+
pub const KIMAP_FIRST_BLOCK: u64 = 25_346_377;
2020
/// the root hash of kimap, empty bytes32
2121
pub const KIMAP_ROOT_HASH: &'static str =
2222
"0x0000000000000000000000000000000000000000000000000000000000000000";

src/types/package_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl std::str::FromStr for PackageId {
132132
/// Attempts to parse a `PackageId` from a string. The string must match the pattern
133133
/// of two segments containing only lowercase letters, numbers and hyphens, separated by a colon.
134134
fn from_str(input: &str) -> Result<Self, Self::Err> {
135-
let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+$").unwrap();
135+
let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-.]+$").unwrap();
136136
if !re.is_match(input) {
137137
return Err(ProcessIdParseError::InvalidCharacter);
138138
}

src/types/process_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl std::str::FromStr for ProcessId {
3939
/// Attempts to parse a `ProcessId` from a string. The string must match the pattern
4040
/// of three segments containing only lowercase letters, numbers and hyphens, separated by colons.
4141
fn from_str(input: &str) -> Result<Self, ProcessIdParseError> {
42-
let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-]+$").unwrap();
42+
let re = regex::Regex::new(r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-.]+$").unwrap();
4343
if !re.is_match(input) {
4444
return Err(ProcessIdParseError::InvalidCharacter);
4545
}

0 commit comments

Comments
 (0)