Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop 1.0 #135

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 6 additions & 6 deletions src/kimap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/types/package_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self, Self::Err> {
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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/process_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self, ProcessIdParseError> {
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);
}
Expand Down
Loading