-
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.
removed reading of the blockchain config from qserver
- Loading branch information
Showing
477 changed files
with
581 additions
and
49,697 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,34 +1 @@ | ||
use serde_derive::Deserialize; | ||
use serde_derive::Serialize; | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `accountAddress`\n\n```text\naccountAddress account_address:string = AccountAddress;\n```\n"] | ||
pub struct AccountAddress { | ||
pub account_address: crate::ton::string, | ||
} | ||
impl Eq for AccountAddress {} | ||
impl crate::BareSerialize for AccountAddress { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0x2d09bdab) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let AccountAddress { account_address } = self; | ||
_ser.write_bare::<crate::ton::string>(account_address)?; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for AccountAddress { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let account_address = _de.read_bare::<crate::ton::string>()?; | ||
Ok(Self { account_address }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for AccountAddress { | ||
type Boxed = crate::ton::AccountAddress; | ||
|
||
fn into_boxed(self) -> crate::ton::AccountAddress { | ||
crate::ton::AccountAddress::AccountAddress(self) | ||
} | ||
} | ||
use serde_derive :: { Serialize , Deserialize } ;# [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `accountAddress`\n\n```text\naccountAddress account_address:string = AccountAddress;\n```\n"] pub struct AccountAddress { pub account_address : crate :: ton :: string , } impl Eq for AccountAddress { } impl crate :: BareSerialize for AccountAddress { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0x2d09bdab) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let AccountAddress { account_address } = self ; _ser . write_bare :: < crate :: ton :: string > (account_address) ? ; Ok (()) } } impl crate :: BareDeserialize for AccountAddress { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let account_address = _de . read_bare :: < crate :: ton :: string > () ? ; Ok (Self { account_address , }) } } } impl crate :: IntoBoxed for AccountAddress { type Boxed = crate :: ton :: AccountAddress ; fn into_boxed (self) -> crate :: ton :: AccountAddress { crate :: ton :: AccountAddress :: AccountAddress (self) } } |
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 |
---|---|---|
@@ -1,38 +1 @@ | ||
use serde_derive::Deserialize; | ||
use serde_derive::Serialize; | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `accountList`\n\n```text\naccountList accounts:vector<fullAccountState> = AccountList;\n```\n"] | ||
pub struct AccountList { | ||
pub accounts: | ||
crate::ton::vector<crate::ton::Bare, crate::ton::fullaccountstate::FullAccountState>, | ||
} | ||
impl Eq for AccountList {} | ||
impl crate::BareSerialize for AccountList { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0x783eb255) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let AccountList { accounts } = self; | ||
_ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > (accounts) ? ; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for AccountList { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let accounts = _de.read_bare::<crate::ton::vector< | ||
crate::ton::Bare, | ||
crate::ton::fullaccountstate::FullAccountState, | ||
>>()?; | ||
Ok(Self { accounts }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for AccountList { | ||
type Boxed = crate::ton::AccountList; | ||
|
||
fn into_boxed(self) -> crate::ton::AccountList { | ||
crate::ton::AccountList::AccountList(self) | ||
} | ||
} | ||
use serde_derive :: { Serialize , Deserialize } ;# [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `accountList`\n\n```text\naccountList accounts:vector<fullAccountState> = AccountList;\n```\n"] pub struct AccountList { pub accounts : crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > , } impl Eq for AccountList { } impl crate :: BareSerialize for AccountList { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0x783eb255) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let AccountList { accounts } = self ; _ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > (accounts) ? ; Ok (()) } } impl crate :: BareDeserialize for AccountList { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let accounts = _de . read_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > () ? ; Ok (Self { accounts , }) } } } impl crate :: IntoBoxed for AccountList { type Boxed = crate :: ton :: AccountList ; fn into_boxed (self) -> crate :: ton :: AccountList { crate :: ton :: AccountList :: AccountList (self) } } |
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 |
---|---|---|
@@ -1,38 +1 @@ | ||
use serde_derive::Deserialize; | ||
use serde_derive::Serialize; | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `accountRevisionList`\n\n```text\naccountRevisionList revisions:vector<fullAccountState> = AccountRevisionList;\n```\n"] | ||
pub struct AccountRevisionList { | ||
pub revisions: | ||
crate::ton::vector<crate::ton::Bare, crate::ton::fullaccountstate::FullAccountState>, | ||
} | ||
impl Eq for AccountRevisionList {} | ||
impl crate::BareSerialize for AccountRevisionList { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0x1f6c64ca) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let AccountRevisionList { revisions } = self; | ||
_ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > (revisions) ? ; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for AccountRevisionList { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let revisions = _de.read_bare::<crate::ton::vector< | ||
crate::ton::Bare, | ||
crate::ton::fullaccountstate::FullAccountState, | ||
>>()?; | ||
Ok(Self { revisions }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for AccountRevisionList { | ||
type Boxed = crate::ton::AccountRevisionList; | ||
|
||
fn into_boxed(self) -> crate::ton::AccountRevisionList { | ||
crate::ton::AccountRevisionList::AccountRevisionList(self) | ||
} | ||
} | ||
use serde_derive :: { Serialize , Deserialize } ;# [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `accountRevisionList`\n\n```text\naccountRevisionList revisions:vector<fullAccountState> = AccountRevisionList;\n```\n"] pub struct AccountRevisionList { pub revisions : crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > , } impl Eq for AccountRevisionList { } impl crate :: BareSerialize for AccountRevisionList { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0x1f6c64ca) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let AccountRevisionList { revisions } = self ; _ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > (revisions) ? ; Ok (()) } } impl crate :: BareDeserialize for AccountRevisionList { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let revisions = _de . read_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: fullaccountstate :: FullAccountState > > () ? ; Ok (Self { revisions , }) } } } impl crate :: IntoBoxed for AccountRevisionList { type Boxed = crate :: ton :: AccountRevisionList ; fn into_boxed (self) -> crate :: ton :: AccountRevisionList { crate :: ton :: AccountRevisionList :: AccountRevisionList (self) } } |
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 |
---|---|---|
@@ -1,136 +1 @@ | ||
use serde_derive::Deserialize; | ||
use serde_derive::Serialize; | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `actionDns`\n\n```text\nactionDns actions:vector<dns.Action> = Action;\n```\n"] | ||
pub struct ActionDns { | ||
pub actions: crate::ton::vector<crate::ton::Boxed, crate::ton::dns::Action>, | ||
} | ||
impl Eq for ActionDns {} | ||
impl crate::BareSerialize for ActionDns { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0x47273021) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let ActionDns { actions } = self; | ||
_ser.write_bare::<crate::ton::vector<crate::ton::Boxed, crate::ton::dns::Action>>(actions)?; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for ActionDns { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let actions = | ||
_de.read_bare::<crate::ton::vector<crate::ton::Boxed, crate::ton::dns::Action>>()?; | ||
Ok(Self { actions }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for ActionDns { | ||
type Boxed = crate::ton::Action; | ||
|
||
fn into_boxed(self) -> crate::ton::Action { | ||
crate::ton::Action::ActionDns(self) | ||
} | ||
} | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `actionMsg`\n\n```text\nactionMsg messages:vector<msg.message> allow_send_to_uninited:Bool = Action;\n```\n"] | ||
pub struct ActionMsg { | ||
pub messages: crate::ton::vector<crate::ton::Bare, crate::ton::msg::message::Message>, | ||
pub allow_send_to_uninited: crate::ton::Bool, | ||
} | ||
impl Eq for ActionMsg {} | ||
impl crate::BareSerialize for ActionMsg { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0x0eb67750) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let ActionMsg { messages, allow_send_to_uninited } = self; | ||
_ser.write_bare::<crate::ton::vector<crate::ton::Bare, crate::ton::msg::message::Message>>( | ||
messages, | ||
)?; | ||
_ser.write_boxed::<crate::ton::Bool>(allow_send_to_uninited)?; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for ActionMsg { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let messages = _de . read_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: msg :: message :: Message > > () ? ; | ||
let allow_send_to_uninited = _de.read_boxed::<crate::ton::Bool>()?; | ||
Ok(Self { messages, allow_send_to_uninited }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for ActionMsg { | ||
type Boxed = crate::ton::Action; | ||
|
||
fn into_boxed(self) -> crate::ton::Action { | ||
crate::ton::Action::ActionMsg(self) | ||
} | ||
} | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `actionPchan`\n\n```text\nactionPchan action:pchan.Action = Action;\n```\n"] | ||
pub struct ActionPchan { | ||
pub action: crate::ton::pchan::Action, | ||
} | ||
impl Eq for ActionPchan {} | ||
impl crate::BareSerialize for ActionPchan { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0xa72dc5e1) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let ActionPchan { action } = self; | ||
_ser.write_boxed::<crate::ton::pchan::Action>(action)?; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for ActionPchan { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let action = _de.read_boxed::<crate::ton::pchan::Action>()?; | ||
Ok(Self { action }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for ActionPchan { | ||
type Boxed = crate::ton::Action; | ||
|
||
fn into_boxed(self) -> crate::ton::Action { | ||
crate::ton::Action::ActionPchan(self) | ||
} | ||
} | ||
#[derive(Debug, Default, Clone, PartialEq)] | ||
#[doc = "TL-derived from `actionRwallet`\n\n```text\nactionRwallet action:rwallet.actionInit = Action;\n```\n"] | ||
pub struct ActionRwallet { | ||
pub action: crate::ton::rwallet::actioninit::ActionInit, | ||
} | ||
impl Eq for ActionRwallet {} | ||
impl crate::BareSerialize for ActionRwallet { | ||
fn constructor(&self) -> crate::ConstructorNumber { | ||
crate::ConstructorNumber(0xf90237c5) | ||
} | ||
|
||
fn serialize_bare(&self, _ser: &mut crate::Serializer) -> crate::Result<()> { | ||
let ActionRwallet { action } = self; | ||
_ser.write_bare::<crate::ton::rwallet::actioninit::ActionInit>(action)?; | ||
Ok(()) | ||
} | ||
} | ||
impl crate::BareDeserialize for ActionRwallet { | ||
fn deserialize_bare(_de: &mut crate::Deserializer) -> crate::Result<Self> { | ||
{ | ||
let action = _de.read_bare::<crate::ton::rwallet::actioninit::ActionInit>()?; | ||
Ok(Self { action }) | ||
} | ||
} | ||
} | ||
impl crate::IntoBoxed for ActionRwallet { | ||
type Boxed = crate::ton::Action; | ||
|
||
fn into_boxed(self) -> crate::ton::Action { | ||
crate::ton::Action::ActionRwallet(self) | ||
} | ||
} | ||
use serde_derive :: { Serialize , Deserialize } ;# [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `actionDns`\n\n```text\nactionDns actions:vector<dns.Action> = Action;\n```\n"] pub struct ActionDns { pub actions : crate :: ton :: vector < crate :: ton :: Boxed , crate :: ton :: dns :: Action > , } impl Eq for ActionDns { } impl crate :: BareSerialize for ActionDns { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0x47273021) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let ActionDns { actions } = self ; _ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Boxed , crate :: ton :: dns :: Action > > (actions) ? ; Ok (()) } } impl crate :: BareDeserialize for ActionDns { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let actions = _de . read_bare :: < crate :: ton :: vector < crate :: ton :: Boxed , crate :: ton :: dns :: Action > > () ? ; Ok (Self { actions , }) } } } impl crate :: IntoBoxed for ActionDns { type Boxed = crate :: ton :: Action ; fn into_boxed (self) -> crate :: ton :: Action { crate :: ton :: Action :: ActionDns (self) } } # [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `actionMsg`\n\n```text\nactionMsg messages:vector<msg.message> allow_send_to_uninited:Bool = Action;\n```\n"] pub struct ActionMsg { pub messages : crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: msg :: message :: Message > , pub allow_send_to_uninited : crate :: ton :: Bool , } impl Eq for ActionMsg { } impl crate :: BareSerialize for ActionMsg { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0x0eb67750) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let ActionMsg { messages , allow_send_to_uninited } = self ; _ser . write_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: msg :: message :: Message > > (messages) ? ; _ser . write_boxed :: < crate :: ton :: Bool > (allow_send_to_uninited) ? ; Ok (()) } } impl crate :: BareDeserialize for ActionMsg { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let messages = _de . read_bare :: < crate :: ton :: vector < crate :: ton :: Bare , crate :: ton :: msg :: message :: Message > > () ? ; let allow_send_to_uninited = _de . read_boxed :: < crate :: ton :: Bool > () ? ; Ok (Self { messages , allow_send_to_uninited , }) } } } impl crate :: IntoBoxed for ActionMsg { type Boxed = crate :: ton :: Action ; fn into_boxed (self) -> crate :: ton :: Action { crate :: ton :: Action :: ActionMsg (self) } } # [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `actionPchan`\n\n```text\nactionPchan action:pchan.Action = Action;\n```\n"] pub struct ActionPchan { pub action : crate :: ton :: pchan :: Action , } impl Eq for ActionPchan { } impl crate :: BareSerialize for ActionPchan { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0xa72dc5e1) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let ActionPchan { action } = self ; _ser . write_boxed :: < crate :: ton :: pchan :: Action > (action) ? ; Ok (()) } } impl crate :: BareDeserialize for ActionPchan { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let action = _de . read_boxed :: < crate :: ton :: pchan :: Action > () ? ; Ok (Self { action , }) } } } impl crate :: IntoBoxed for ActionPchan { type Boxed = crate :: ton :: Action ; fn into_boxed (self) -> crate :: ton :: Action { crate :: ton :: Action :: ActionPchan (self) } } # [derive (Debug , Default , Clone , PartialEq)] # [doc = "TL-derived from `actionRwallet`\n\n```text\nactionRwallet action:rwallet.actionInit = Action;\n```\n"] pub struct ActionRwallet { pub action : crate :: ton :: rwallet :: actioninit :: ActionInit , } impl Eq for ActionRwallet { } impl crate :: BareSerialize for ActionRwallet { fn constructor (& self) -> crate :: ConstructorNumber { crate :: ConstructorNumber (0xf90237c5) } fn serialize_bare (& self , _ser : & mut crate :: Serializer) -> crate :: Result < () > { let ActionRwallet { action } = self ; _ser . write_bare :: < crate :: ton :: rwallet :: actioninit :: ActionInit > (action) ? ; Ok (()) } } impl crate :: BareDeserialize for ActionRwallet { fn deserialize_bare (_de : & mut crate :: Deserializer) -> crate :: Result < Self > { { let action = _de . read_bare :: < crate :: ton :: rwallet :: actioninit :: ActionInit > () ? ; Ok (Self { action , }) } } } impl crate :: IntoBoxed for ActionRwallet { type Boxed = crate :: ton :: Action ; fn into_boxed (self) -> crate :: ton :: Action { crate :: ton :: Action :: ActionRwallet (self) } } |
Oops, something went wrong.