-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove redundant code from fascrypto-zk and add performane test
- Loading branch information
Трепачева Алина
committed
May 15, 2024
1 parent
2f1c7bd
commit 25dbad9
Showing
470 changed files
with
26,606 additions
and
17,536 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use serde_derive::{Deserialize, Serialize}; | ||
pub mod address; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
use serde_derive::{Deserialize, Serialize}; | ||
#[derive(Debug, Clone, PartialEq)] | ||
#[doc = "TL-derived from `adnl.config.Global`\n\n```text\nadnl.config.global static_nodes:adnl.nodes = adnl.config.Global;\n```\n"] | ||
pub enum Global { | ||
Adnl_Config_Global(crate::ton::adnl::config::global::Global), | ||
} | ||
impl Global { | ||
pub fn static_nodes(&self) -> &crate::ton::adnl::nodes::Nodes { | ||
match self { | ||
Global::Adnl_Config_Global(ref x) => &x.static_nodes, | ||
} | ||
} | ||
pub fn only(self) -> crate::ton::adnl::config::global::Global { | ||
match self { | ||
Global::Adnl_Config_Global(x) => x, | ||
} | ||
} | ||
} | ||
impl Eq for Global {} | ||
impl Default for Global { | ||
fn default() -> Self { | ||
Global::Adnl_Config_Global(crate::ton::adnl::config::global::Global::default()) | ||
} | ||
} | ||
impl crate::BoxedSerialize for Global { | ||
fn serialize_boxed(&self) -> (crate::ConstructorNumber, &dyn crate::BareSerialize) { | ||
match self { | ||
Global::Adnl_Config_Global(x) => (crate::ConstructorNumber(0xbe6f80d0), x), | ||
} | ||
} | ||
} | ||
impl crate::BoxedDeserialize for Global { | ||
fn possible_constructors() -> Vec<crate::ConstructorNumber> { | ||
vec![crate::ConstructorNumber(0xbe6f80d0)] | ||
} | ||
fn deserialize_boxed( | ||
_id: crate::ConstructorNumber, | ||
_de: &mut crate::Deserializer, | ||
) -> crate::Result<Self> { | ||
match _id { | ||
crate::ConstructorNumber(0xbe6f80d0) => Ok(Global::Adnl_Config_Global( | ||
_de.read_bare::<crate::ton::adnl::config::global::Global>()?, | ||
)), | ||
id => _invalid_id!(id), | ||
} | ||
} | ||
} | ||
pub mod global; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.