v0.1.0-pre.018
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/model/nomenclature.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Shared protocol, surface, and event nomenclature types.
|
||||
|
||||
@@ -31,12 +31,18 @@ pub struct MdSurfaceCode(pub std::string::String);
|
||||
|
||||
/// Event name without surface prefix.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/kb_lib/model/nomenclature/EventName.ts")]
|
||||
#[ts(
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_lib/model/nomenclature/EventName.ts"
|
||||
)]
|
||||
pub struct MdEventName(pub std::string::String);
|
||||
|
||||
/// Canonical event code in `<surface_code>.<event_name>` format.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/kb_lib/model/nomenclature/EventCode.ts")]
|
||||
#[ts(
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_lib/model/nomenclature/EventCode.ts"
|
||||
)]
|
||||
pub struct MdEventCode(pub std::string::String);
|
||||
|
||||
/// High-level event family.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: kb-lib/src/model/solana.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Shared Solana primitive wrapper types.
|
||||
|
||||
@@ -39,5 +39,8 @@ pub struct MdPubkey(pub std::string::String);
|
||||
|
||||
/// Stable top-level or inner instruction path.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/kb_lib/model/solana/InstructionPath.ts")]
|
||||
#[ts(
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_lib/model/solana/InstructionPath.ts"
|
||||
)]
|
||||
pub struct MdInstructionPath(pub std::string::String);
|
||||
|
||||
Reference in New Issue
Block a user