v0.1.0-pre.011
This commit is contained in:
@@ -11,7 +11,7 @@ use ts_rs::TS; // rust-rules: derive-import
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_model/nomenclature/ProgramCode.ts"
|
||||
)]
|
||||
pub struct ProgramCode(pub std::string::String);
|
||||
pub struct MdProgramCode(pub std::string::String);
|
||||
|
||||
/// Protocol family code, for example `raydium` or `meteora`.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
@@ -19,7 +19,7 @@ pub struct ProgramCode(pub std::string::String);
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_model/nomenclature/ProtocolCode.ts"
|
||||
)]
|
||||
pub struct ProtocolCode(pub std::string::String);
|
||||
pub struct MdProtocolCode(pub std::string::String);
|
||||
|
||||
/// Concrete protocol surface code, for example `raydium_amm_v4`.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
@@ -27,17 +27,17 @@ pub struct ProtocolCode(pub std::string::String);
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_model/nomenclature/SurfaceCode.ts"
|
||||
)]
|
||||
pub struct SurfaceCode(pub std::string::String);
|
||||
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_model/nomenclature/EventName.ts")]
|
||||
pub struct EventName(pub std::string::String);
|
||||
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_model/nomenclature/EventCode.ts")]
|
||||
pub struct EventCode(pub std::string::String);
|
||||
pub struct MdEventCode(pub std::string::String);
|
||||
|
||||
/// High-level event family.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, serde::Deserialize, serde::Serialize, TS)]
|
||||
@@ -45,7 +45,7 @@ pub struct EventCode(pub std::string::String);
|
||||
export,
|
||||
export_to = "../frontend/ts/bindings/kb_model/nomenclature/EventFamily.ts"
|
||||
)]
|
||||
pub enum EventFamily {
|
||||
pub enum MdEventFamily {
|
||||
/// Swap or buy/sell event.
|
||||
Trade,
|
||||
/// Liquidity deposit/withdraw or equivalent.
|
||||
|
||||
Reference in New Issue
Block a user