Skip to content

Commit

Permalink
refactor: grc20 - neo4j mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Dec 19, 2024
1 parent 7a2ee9b commit 8be26c2
Show file tree
Hide file tree
Showing 45 changed files with 2,429 additions and 2,670 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0.93"
chrono = "0.4.38"
const_format = "0.2.34"
md-5 = "0.10.6"
neo4rs = "0.8.0"
prost = "0.13.3"
Expand Down
13 changes: 10 additions & 3 deletions sdk/src/ids/system_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,13 @@ pub const VOTE_CAST: &str = "PfgzdxPYwDUTBCzkXCT9ga";

// Proposal
pub const PROPOSAL_TYPE: &str = "9No6qfEutiKg1WLeXDv73x";
pub const MEMBERSHIP_PROPOSAL_TYPE: &str = "6dJ23LRTHRdwqoWhtivRrM";
pub const EDITORSHIP_PROPOSAL_TYPE: &str = "7W7SE2UTj5YTsQvqSmCfLN";
pub const SUBSPACE_PROPOSAL_TYPE: &str = "DcEZrRpmAuwxfw7C5G7gjC";
pub const ADD_MEMBER_PROPOSAL: &str = "6dJ23LRTHRdwqoWhtivRrM";
pub const REMOVE_MEMBER_PROPOSAL: &str = "8dJ23LRTHRdwqoWhtivRrM";
pub const ADD_EDITOR_PROPOSAL: &str = "7W7SE2UTj5YTsQvqSmCfLN";
pub const REMOVE_EDITOR_PROPOSAL: &str = "9W7SE2UTj5YTsQvqSmCfLN";
pub const ADD_SUBSPACE_PROPOSAL: &str = "DcEZrRpmAuwxfw7C5G7gjC";
pub const REMOVE_SUBSPACE_PROPOSAL: &str = "FcEZrRpmAuwxfw7C5G7gjC";
pub const EDIT_PROPOSAL: &str = "GcEZrRpmAuwxfw7C5G7gjC";

/// MEMBERSHIP_PROPOSAL_TYPE > PROPOSED_ACCOUNT > GEO_ACCOUNT
/// EDITORSHIP_PROPOSAL_TYPE > PROPOSED_ACCOUNT > GEO_ACCOUNT
Expand All @@ -310,3 +314,6 @@ pub const PROPOSED_SUBSPACE: &str = "5ZVrZv7S3Mk2ATV9LAZAha";

/// INDEXED_SPACE > PROPOSALS > PROPOSAL
pub const PROPOSALS: &str = "3gmeTonVCB6B11p3YF8mj5";

Check warning on line 317 in sdk/src/ids/system_ids.rs

View workflow job for this annotation

GitHub Actions / stable / fmt

Diff in /home/runner/work/kg-node/kg-node/sdk/src/ids/system_ids.rs
/// PROPOSAL > CREATOR > ACCOUNT
pub const PROPOSAL_CREATOR: &str = "213";
1 change: 1 addition & 0 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod models;
pub mod pb;
pub mod mapping;
pub mod relation;
pub mod neo4j_utils;

pub use ids::network_ids;
pub use ids::system_ids;
Expand Down
Loading

0 comments on commit 8be26c2

Please sign in to comment.