Skip to content

Instantly share code, notes, and snippets.

@dlight
Created February 22, 2023 17:13
Show Gist options
  • Select an option

  • Save dlight/11e0a491813a2405b2919c01921cf4a2 to your computer and use it in GitHub Desktop.

Select an option

Save dlight/11e0a491813a2405b2919c01921cf4a2 to your computer and use it in GitHub Desktop.
# here are the commands I run to get this working
mkdir -p /tmp/something
cd /tmp/something
# file from here https://github.com/starkware-libs/starknet-specs/blob/master/api/starknet_api_openrpc.json
wget 'https://raw.githubusercontent.com/starkware-libs/starknet-specs/master/api/starknet_api_openrpc.json'
npm install @open-rpc/typings
./node_modules/.bin/open-rpc-typings --document starknet_api_openrpc.json --output-rs myrustcode
extern crate serde;
extern crate serde_json;
extern crate derive_builder;
use serde::{Serialize, Deserialize};
use derive_builder::Builder;
use std::collections::HashMap;
/// FieldElement
///
/// A field element. Represented as 4 leading zero bits followed by 63 hex digits
///
pub type FieldElement = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementYkZd5VZD {
pub block_hash: FieldElement,
}
/// IntegerBaK4QWsj
///
/// The block's number (its height)
///
pub type IntegerBaK4QWsj = i64;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfIntegerBaK4QWsjFzIMLfUm {
pub block_number: IntegerBaK4QWsj,
}
/// String0SecgXNU
///
/// A tag specifying a dynamic reference to a block
///
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum String0SecgXNU {
#[serde(rename = "latest")]
Latest,
#[serde(rename = "pending")]
Pending,
}
/// UnorderedSetOfFieldElementR98ExNPm
///
/// The parameters passed to the function
///
pub type UnorderedSetOfFieldElementR98ExNPm = Vec<FieldElement>;
/// AnIntegerNumberInHexFormat0X
///
/// The number (height) of the estimated highest block to be synchronized
///
pub type AnIntegerNumberInHexFormat0X = String;
pub type ATransactionSignature = Vec<FieldElement>;
/// ObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4
///
/// common properties of a transaction that is sent to the sequencer (but is not yet in a block)
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4 {
pub max_fee: FieldElement,
pub version: AnIntegerNumberInHexFormat0X,
pub signature: ATransactionSignature,
pub nonce: FieldElement,
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringUZiscuTN {
#[serde(rename = "INVOKE")]
Invoke,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringUZiscuTNGtyq6Qj6 {
#[serde(rename = "type")]
pub _type: StringUZiscuTN,
}
/// Version0InvokeTransaction
///
/// invokes a specific function in the desired contract (not necessarily an account)
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct Version0InvokeTransaction {
pub contract_address: FieldElement,
pub entry_point_selector: FieldElement,
pub calldata: UnorderedSetOfFieldElementR98ExNPm,
}
/// UnorderedSetOfFieldElementczs94JiO
///
/// The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)
///
pub type UnorderedSetOfFieldElementczs94JiO = Vec<FieldElement>;
/// Version1InvokeTransaction
///
/// initiates a transaction from a given account
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct Version1InvokeTransaction {
pub sender_address: FieldElement,
pub calldata: UnorderedSetOfFieldElementczs94JiO,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfVersion0InvokeTransactionVersion1InvokeTransactionBlYQAUnC {
Version0InvokeTransaction(Version0InvokeTransaction),
Version1InvokeTransaction(Version1InvokeTransaction),
}
/// AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringUZiscuTNGtyq6Qj6OneOfVersion0InvokeTransactionVersion1InvokeTransactionBlYQAUnCC3THQJQP
///
/// mempool representation of an invoke transaction
///
pub type AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringUZiscuTNGtyq6Qj6OneOfVersion0InvokeTransactionVersion1InvokeTransactionBlYQAUnCC3THQJQP = HashMap<String, serde_json::Value>;
/// String9KM3F3XP
///
/// A base64 representation of the compressed program code
///
pub type String9KM3F3XP = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZI {
#[serde(skip_serializing_if = "Option::is_none")]
pub offset: Option<AnIntegerNumberInHexFormat0X>,
#[serde(skip_serializing_if = "Option::is_none")]
pub selector: Option<FieldElement>,
}
pub type UnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkC = Vec<ObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZI>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCDVPpX4Xq {
#[serde(rename = "CONSTRUCTOR", skip_serializing_if = "Option::is_none")]
pub constructor: Option<UnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkC>,
#[serde(rename = "EXTERNAL", skip_serializing_if = "Option::is_none")]
pub external: Option<UnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkC>,
#[serde(rename = "L1_HANDLER", skip_serializing_if = "Option::is_none")]
pub l_1_handler: Option<UnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkC>,
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringWvkaFhbl {
#[serde(rename = "function")]
Function,
#[serde(rename = "l1_handler")]
LOneHandler,
#[serde(rename = "constructor")]
Constructor,
}
/// StringZOiGvsta
///
/// The function name
///
pub type StringZOiGvsta = String;
/// StringGPACtxPF
///
/// The parameter's name
///
pub type StringGPACtxPF = String;
/// StringFtehWDnv
///
/// The parameter's type
///
pub type StringFtehWDnv = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9 {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<StringGPACtxPF>,
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<StringFtehWDnv>,
}
pub type UnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKm = Vec<ObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0 {
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<StringWvkaFhbl>,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<StringZOiGvsta>,
#[serde(skip_serializing_if = "Option::is_none")]
pub inputs: Option<UnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKm>,
#[serde(skip_serializing_if = "Option::is_none")]
pub outputs: Option<UnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKm>,
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringJ5QYZ1CR {
#[serde(rename = "event")]
Event,
}
/// StringOf7WXydM
///
/// The event name
///
pub type StringOf7WXydM = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2 {
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<StringJ5QYZ1CR>,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<StringOf7WXydM>,
#[serde(skip_serializing_if = "Option::is_none")]
pub keys: Option<UnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKm>,
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<UnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKm>,
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum String4J8LsiNy {
#[serde(rename = "struct")]
Struct,
}
/// StringZflCQWcV
///
/// The struct name
///
pub type StringZflCQWcV = String;
pub type IntegerOmVsfaNv = i64;
/// IntegerYInYto9A
///
/// offset of this property within the struct
///
pub type IntegerYInYto9A = i64;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfIntegerYInYto9AJqUs1TiY {
#[serde(skip_serializing_if = "Option::is_none")]
pub offset: Option<IntegerYInYto9A>,
}
pub type AllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp4 = HashMap<String, serde_json::Value>;
pub type UnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbh = Vec<AllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp4>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPA {
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<String4J8LsiNy>,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<StringZflCQWcV>,
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<IntegerOmVsfaNv>,
#[serde(skip_serializing_if = "Option::is_none")]
pub members: Option<UnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbh>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPAObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0JeZ3FtSD {
ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0(ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0),
ObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2(ObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2),
ObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPA(ObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPA),
}
pub type UnorderedSetOfOneOfObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPAObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0JeZ3FtSDF9NJnqVl = Vec<OneOfObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPAObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0JeZ3FtSD>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct TheDefinitionOfAStarkNetContractClass {
pub program: String9KM3F3XP,
pub entry_points_by_type: ObjectOfUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCUnorderedSetOfObjectOfFieldElementAnIntegerNumberInHexFormat0XF38SG7ZIzj8QwIkCDVPpX4Xq,
#[serde(skip_serializing_if = "Option::is_none")]
pub abi: Option<UnorderedSetOfOneOfObjectOfString4J8LsiNyIntegerOmVsfaNvStringZflCQWcVUnorderedSetOfAllOfObjectOfIntegerYInYto9AJqUs1TiYObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9VJlNzsp47LFnRXbhCT4AJzPAObjectOfStringJ5QYZ1CRStringOf7WXydMUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmVBBbLcw2ObjectOfStringWvkaFhblUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmStringZOiGvstaUnorderedSetOfObjectOfStringFtehWDnvStringGPACtxPFMZxq1JJ9XGMY5EKmENX1QvC0JeZ3FtSDF9NJnqVl>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementTheDefinitionOfAStarkNetContractClassUBYF9BQX {
#[serde(skip_serializing_if = "Option::is_none")]
pub contract_class: Option<TheDefinitionOfAStarkNetContractClass>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sender_address: Option<FieldElement>,
}
pub type MempoolRepresentationOfADeclareTransaction = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringDs6A73Tv {
#[serde(rename = "DECLARE")]
Declare,
}
/// UnorderedSetOfFieldElementRv1PzBFz
///
/// The list of Sierra instructions of which the program consists
///
pub type UnorderedSetOfFieldElementRv1PzBFz = Vec<FieldElement>;
/// StringP8RxUgFP
///
/// the Sierra program version
///
pub type StringP8RxUgFP = String;
/// Integer65WXr8Qb
///
/// The index of the function in the program
///
pub type Integer65WXr8Qb = i64;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementInteger65WXr8Qb4I4BaUra {
#[serde(skip_serializing_if = "Option::is_none")]
pub selector: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub function_idx: Option<Integer65WXr8Qb>,
}
pub type UnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCa = Vec<ObjectOfFieldElementInteger65WXr8Qb4I4BaUra>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PF {
#[serde(rename = "CONSTRUCTOR", skip_serializing_if = "Option::is_none")]
pub constructor: Option<UnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCa>,
#[serde(rename = "EXTERNAL", skip_serializing_if = "Option::is_none")]
pub external: Option<UnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCa>,
#[serde(rename = "L1_HANDLER", skip_serializing_if = "Option::is_none")]
pub l_1_handler: Option<UnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCa>,
}
pub type StringUlggqyDB = String;
/// ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDBQKWv7Pnu
///
/// The class to be declared
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDBQKWv7Pnu {
#[serde(skip_serializing_if = "Option::is_none")]
pub sierra_program: Option<UnorderedSetOfFieldElementRv1PzBFz>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sierra_version: Option<StringP8RxUgFP>,
#[serde(skip_serializing_if = "Option::is_none")]
pub entry_points_by_type: Option<ObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PF>,
#[serde(skip_serializing_if = "Option::is_none")]
pub abi: Option<StringUlggqyDB>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringDs6A73TvFieldElementObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDBQKWv7PnuFieldElementCImSFtI7 {
#[serde(rename = "type")]
pub _type: StringDs6A73Tv,
pub contract_class: ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDBQKWv7Pnu,
pub sender_address: FieldElement,
#[serde(skip_serializing_if = "Option::is_none")]
pub compiled_class_hash: Option<FieldElement>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfMempoolRepresentationOfADeclareTransactionMempoolRepresentationOfADeclareTransactionDvn0QJXt {
MempoolRepresentationOfADeclareTransaction(MempoolRepresentationOfADeclareTransaction),
MempoolRepresentationOfADeclareTransaction(MempoolRepresentationOfADeclareTransaction),
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringY6LSXnVs {
#[serde(rename = "DEPLOY_ACCOUNT")]
DeployAccount,
}
/// UnorderedSetOfFieldElementKanRj6SO
///
/// The parameters passed to the constructor
///
pub type UnorderedSetOfFieldElementKanRj6SO = Vec<FieldElement>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringY6LSXnVsFieldElementUnorderedSetOfFieldElementKanRj6SOFieldElementNkLi5V3G {
#[serde(rename = "type")]
pub _type: StringY6LSXnVs,
pub contract_address_salt: FieldElement,
pub constructor_calldata: UnorderedSetOfFieldElementKanRj6SO,
pub class_hash: FieldElement,
}
/// AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringY6LSXnVsFieldElementUnorderedSetOfFieldElementKanRj6SOFieldElementNkLi5V3GJHlKDOXX
///
/// Mempool representation of a deploy account transaction
///
pub type AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringY6LSXnVsFieldElementUnorderedSetOfFieldElementKanRj6SOFieldElementNkLi5V3GJHlKDOXX = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum FromBlock {
ObjectOfFieldElementYkZd5VZD(ObjectOfFieldElementYkZd5VZD),
ObjectOfIntegerBaK4QWsjFzIMLfUm(ObjectOfIntegerBaK4QWsjFzIMLfUm),
String0SecgXNU(String0SecgXNU),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum ToBlock {
ObjectOfFieldElementYkZd5VZD(ObjectOfFieldElementYkZd5VZD),
ObjectOfIntegerBaK4QWsjFzIMLfUm(ObjectOfIntegerBaK4QWsjFzIMLfUm),
String0SecgXNU(String0SecgXNU),
}
/// FromContract
///
/// A field element. Represented as 4 leading zero bits followed by 63 hex digits
///
pub type FromContract = String;
/// PossibleValuesPerKey
///
/// Per key (by position), designate the possible values to be matched for events to be returned. Empty array designates 'any' value
///
pub type PossibleValuesPerKey = Vec<FieldElement>;
/// FilterKeyValues
///
/// The values used to filter the events
///
pub type FilterKeyValues = Vec<PossibleValuesPerKey>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct AnEventFilterQuery {
#[serde(skip_serializing_if = "Option::is_none")]
pub from_block: Option<FromBlock>,
#[serde(skip_serializing_if = "Option::is_none")]
pub to_block: Option<ToBlock>,
#[serde(skip_serializing_if = "Option::is_none")]
pub address: Option<FromContract>,
#[serde(skip_serializing_if = "Option::is_none")]
pub keys: Option<FilterKeyValues>,
}
/// StringYmS84RY6
///
/// The token returned from the previous query. If no token is provided the first page is returned.
///
pub type StringYmS84RY6 = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4K {
#[serde(skip_serializing_if = "Option::is_none")]
pub continuation_token: Option<StringYmS84RY6>,
pub chunk_size: IntegerOmVsfaNv,
}
/// StringLZSwYjUe
///
/// The status of the block
///
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringLZSwYjUe {
#[serde(rename = "PENDING")]
Pending,
#[serde(rename = "ACCEPTED_ON_L2")]
AcceptedOnLTwo,
#[serde(rename = "ACCEPTED_ON_L1")]
AcceptedOnLOne,
#[serde(rename = "REJECTED")]
Rejected,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringLZSwYjUeBEI24WUH {
pub status: StringLZSwYjUe,
}
/// IntegerS5PnmZNU
///
/// The block number (its height)
///
pub type IntegerS5PnmZNU = i64;
/// IntegerTn1KWXb3
///
/// The time in which the block was created, encoded in Unix time
///
pub type IntegerTn1KWXb3 = i64;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfIntegerTn1KWXb3FieldElementFieldElementFieldElementIntegerS5PnmZNUFieldElement2QV3XyId {
pub block_hash: FieldElement,
pub parent_hash: FieldElement,
pub block_number: IntegerS5PnmZNU,
pub new_root: FieldElement,
pub timestamp: IntegerTn1KWXb3,
pub sequencer_address: FieldElement,
}
/// ATransactionSHash
///
/// The transaction hash, as assigned in StarkNet
///
pub type ATransactionSHash = String;
/// UnorderedSetOfATransactionSHash6YKyMOup
///
/// The hashes of the transactions included in this block
///
pub type UnorderedSetOfATransactionSHash6YKyMOup = Vec<ATransactionSHash>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt {
pub transactions: UnorderedSetOfATransactionSHash6YKyMOup,
}
pub type TheBlockObject = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqa {
#[serde(skip_serializing_if = "Option::is_none")]
pub timestamp: Option<IntegerTn1KWXb3>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sequencer_address: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub parent_hash: Option<FieldElement>,
}
/// AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV
///
/// The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.
///
pub type AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfATransactionSHash8WRz7L6Q {
pub transaction_hash: ATransactionSHash,
}
pub type AllOfObjectOfATransactionSHash8WRz7L6QObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4OBYRH4O2 = HashMap<String, serde_json::Value>;
pub type InitiateATransactionFromAnAccount = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringMdoF8W40 {
#[serde(rename = "L1_HANDLER")]
LOneHandler,
}
/// L1L2MessageTransaction
///
/// a call to an l1_handler on an L2 contract induced by a message from L1
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct L1L2MessageTransaction {
pub transaction_hash: ATransactionSHash,
pub version: AnIntegerNumberInHexFormat0X,
#[serde(rename = "type")]
pub _type: StringMdoF8W40,
pub nonce: AnIntegerNumberInHexFormat0X,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct FunctionCallInformation {
pub contract_address: FieldElement,
pub entry_point_selector: FieldElement,
pub calldata: UnorderedSetOfFieldElementR98ExNPm,
}
pub type AllOfFunctionCallInformationL1L2MessageTransactionQ6NGDhWK = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringDs6A73TvFieldElementFieldElementWBGYEspx {
#[serde(rename = "type")]
pub _type: StringDs6A73Tv,
pub class_hash: FieldElement,
pub sender_address: FieldElement,
}
pub type DeclareContractTransaction = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementD9B309Jb {
#[serde(skip_serializing_if = "Option::is_none")]
pub compiled_class_hash: Option<FieldElement>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfDeclareContractTransactionDeclareContractTransactionPQyUxGzD {
DeclareContractTransaction(DeclareContractTransaction),
DeclareContractTransaction(DeclareContractTransaction),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfATransactionSHashFieldElement5WDCrjEH {
pub transaction_hash: ATransactionSHash,
pub class_hash: FieldElement,
}
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringW3MCrPVD {
#[serde(rename = "DEPLOY")]
Deploy,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfAnIntegerNumberInHexFormat0XStringW3MCrPVDFieldElementUnorderedSetOfFieldElementKanRj6SO8E5Oh3Dd {
pub version: AnIntegerNumberInHexFormat0X,
#[serde(rename = "type")]
pub _type: StringW3MCrPVD,
pub contract_address_salt: FieldElement,
pub constructor_calldata: UnorderedSetOfFieldElementKanRj6SO,
}
/// DeployContractTransaction
///
/// The structure of a deploy transaction. Note that this transaction type is deprecated and will no longer be supported in future versions
///
pub type DeployContractTransaction = HashMap<String, serde_json::Value>;
/// DeployAccountTransaction
///
/// Deploys an account contract, charges fee from the pre-funded account addresses
///
pub type DeployAccountTransaction = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum Transaction {
AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringUZiscuTNGtyq6Qj6OneOfVersion0InvokeTransactionVersion1InvokeTransactionBlYQAUnCC3THQJQP(AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringUZiscuTNGtyq6Qj6OneOfVersion0InvokeTransactionVersion1InvokeTransactionBlYQAUnCC3THQJQP),
OneOfMempoolRepresentationOfADeclareTransactionMempoolRepresentationOfADeclareTransactionDvn0QJXt(OneOfMempoolRepresentationOfADeclareTransactionMempoolRepresentationOfADeclareTransactionDvn0QJXt),
AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringY6LSXnVsFieldElementUnorderedSetOfFieldElementKanRj6SOFieldElementNkLi5V3GJHlKDOXX(AllOfObjectOfAnIntegerNumberInHexFormat0XATransactionSignatureFieldElementFieldElementCETFIhO4ObjectOfStringY6LSXnVsFieldElementUnorderedSetOfFieldElementKanRj6SOFieldElementNkLi5V3GJHlKDOXX),
}
/// UnorderedSetOfTransactioni7VJKx18
///
/// The transactions in this block
///
pub type UnorderedSetOfTransactioni7VJKx18 = Vec<Transaction>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJX {
pub transactions: UnorderedSetOfTransactioni7VJKx18,
}
/// AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1II
///
/// The dynamic block being constructed by the sequencer. Note that this object will be deprecated upon decentralization.
///
pub type AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1II = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementFieldElementBZumvx9Z {
pub block_hash: FieldElement,
pub new_root: FieldElement,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementFieldElementUcv3O2LT {
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<FieldElement>,
}
/// UnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1
///
/// The changes in the storage of the contract
///
pub type UnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1 = Vec<ObjectOfFieldElementFieldElementUcv3O2LT>;
/// ObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpD
///
/// The changes in the storage per contract address
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpD {
pub address: FieldElement,
pub storage_entries: UnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1,
}
pub type UnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzD = Vec<ObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpD>;
pub type UnorderedSetOfFieldElementBwpG2TjY = Vec<FieldElement>;
/// ObjectOfFieldElementFieldElementBoY7QHgq
///
/// The declared class hash and compiled class hash
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementFieldElementBoY7QHgq {
#[serde(skip_serializing_if = "Option::is_none")]
pub class_hash: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub compiled_class_hash: Option<FieldElement>,
}
pub type UnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotC = Vec<ObjectOfFieldElementFieldElementBoY7QHgq>;
/// ObjectOfFieldElementFieldElementTdLoiB6L
///
/// A new contract deployed as part of the new state
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementFieldElementTdLoiB6L {
pub address: FieldElement,
pub class_hash: FieldElement,
}
pub type UnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8Nxc = Vec<ObjectOfFieldElementFieldElementTdLoiB6L>;
/// ObjectOfFieldElementFieldElementC3AzFFKh
///
/// The updated nonce per contract address
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementFieldElementC3AzFFKh {
#[serde(skip_serializing_if = "Option::is_none")]
pub contract_address: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub nonce: Option<FieldElement>,
}
pub type UnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDF = Vec<ObjectOfFieldElementFieldElementC3AzFFKh>;
/// ObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMX
///
/// The change in state applied in this block, given as a mapping of addresses to the new values and/or new contracts
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMX {
pub storage_diffs: UnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzD,
#[serde(skip_serializing_if = "Option::is_none")]
pub deprecated_declared_contract_hashes: Option<UnorderedSetOfFieldElementBwpG2TjY>,
pub declared_contract_hashes: UnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotC,
pub deployed_contracts: UnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8Nxc,
pub nonces: UnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDF,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8Yq {
pub old_root: FieldElement,
pub state_diff: ObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMX,
}
pub type AllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85 = HashMap<String, serde_json::Value>;
/// StringI9MVFB8G
///
/// The status of the transaction
///
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringI9MVFB8G {
#[serde(rename = "PENDING")]
Pending,
#[serde(rename = "ACCEPTED_ON_L2")]
AcceptedOnLTwo,
#[serde(rename = "ACCEPTED_ON_L1")]
AcceptedOnLOne,
#[serde(rename = "REJECTED")]
Rejected,
}
/// UnorderedSetOfFieldElementxqa2L6GY
///
/// The payload of the message
///
pub type UnorderedSetOfFieldElementxqa2L6GY = Vec<FieldElement>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementUnorderedSetOfFieldElementxqa2L6GY1IQry1HB {
pub to_address: FieldElement,
pub payload: UnorderedSetOfFieldElementxqa2L6GY,
}
pub type UnorderedSetOfObjectOfFieldElementUnorderedSetOfFieldElementxqa2L6GY1IQry1HBDPlHlJh8 = Vec<ObjectOfFieldElementUnorderedSetOfFieldElementxqa2L6GY1IQry1HB>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElement7Wz7MpI5 {
pub from_address: FieldElement,
}
pub type UnorderedSetOfFieldElementw09NTITE = Vec<FieldElement>;
/// EventContent
///
/// The content of an event
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct EventContent {
pub keys: UnorderedSetOfFieldElementw09NTITE,
pub data: UnorderedSetOfFieldElementw09NTITE,
}
pub type AStarkNetEvent = HashMap<String, serde_json::Value>;
/// UnorderedSetOfAStarkNetEventyvvJNwUD
///
/// The events emitted as part of this transaction
///
pub type UnorderedSetOfAStarkNetEventyvvJNwUD = Vec<AStarkNetEvent>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct CommonPropertiesForATransactionReceipt {
pub transaction_hash: ATransactionSHash,
pub actual_fee: FieldElement,
pub status: StringI9MVFB8G,
pub block_hash: FieldElement,
pub block_number: IntegerBaK4QWsj,
pub messages_sent: UnorderedSetOfObjectOfFieldElementUnorderedSetOfFieldElementxqa2L6GY1IQry1HBDPlHlJh8,
pub events: UnorderedSetOfAStarkNetEventyvvJNwUD,
}
pub type InvokeTransactionReceipt = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringMdoF8W40AP5Rep7A {
#[serde(rename = "type")]
pub _type: StringMdoF8W40,
}
pub type ReceiptForL1HandlerTransaction = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringDs6A73Tv8F9YkqCf {
#[serde(rename = "type")]
pub _type: StringDs6A73Tv,
}
pub type DeclareTransactionReceipt = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringW3MCrPVDFieldElementU8VfCLro {
#[serde(rename = "type")]
pub _type: StringW3MCrPVD,
pub contract_address: FieldElement,
}
pub type DeployTransactionReceipt = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringY6LSXnVsFieldElementIAbUuJQT {
#[serde(rename = "type")]
pub _type: StringY6LSXnVs,
pub contract_address: FieldElement,
}
pub type DeployAccountTransactionReceipt = HashMap<String, serde_json::Value>;
/// StringMBNrAKSM
///
/// The type of the transaction
///
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum StringMBNrAKSM {
#[serde(rename = "DECLARE")]
Declare,
#[serde(rename = "DEPLOY")]
Deploy,
#[serde(rename = "DEPLOY_ACCOUNT")]
DeployAccount,
#[serde(rename = "INVOKE")]
Invoke,
#[serde(rename = "L1_HANDLER")]
LOneHandler,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct CommonPropertiesForAPendingTransactionReceipt {
pub transaction_hash: ATransactionSHash,
pub actual_fee: FieldElement,
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<StringMBNrAKSM>,
pub messages_sent: UnorderedSetOfObjectOfFieldElementUnorderedSetOfFieldElementxqa2L6GY1IQry1HBDPlHlJh8,
pub events: UnorderedSetOfAStarkNetEventyvvJNwUD,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfFieldElementNYAZo6UK {
#[serde(skip_serializing_if = "Option::is_none")]
pub contract_address: Option<FieldElement>,
}
pub type PendingDeployTransactionReceipt = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhE {
PendingDeployTransactionReceipt(PendingDeployTransactionReceipt),
CommonPropertiesForAPendingTransactionReceipt(CommonPropertiesForAPendingTransactionReceipt),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6 {
#[serde(skip_serializing_if = "Option::is_none")]
pub sierra_program: Option<UnorderedSetOfFieldElementRv1PzBFz>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sierra_version: Option<StringP8RxUgFP>,
#[serde(skip_serializing_if = "Option::is_none")]
pub entry_points_by_type: Option<ObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PF>,
#[serde(skip_serializing_if = "Option::is_none")]
pub abi: Option<StringUlggqyDB>,
}
/// BooleanGGV7QL9B
///
/// only legal value is FALSE here
///
pub type BooleanGGV7QL9B = bool;
/// ObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhM
///
/// An object describing the node synchronization status
///
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhM {
pub starting_block_hash: FieldElement,
pub starting_block_num: AnIntegerNumberInHexFormat0X,
pub current_block_hash: FieldElement,
pub current_block_num: AnIntegerNumberInHexFormat0X,
pub highest_block_hash: FieldElement,
pub highest_block_num: AnIntegerNumberInHexFormat0X,
}
pub type TheEventInformation = HashMap<String, serde_json::Value>;
/// TheHashOfTheBlockInWhichTheEventWasEmitted
///
/// A field element. Represented as 4 leading zero bits followed by 63 hex digits
///
pub type TheHashOfTheBlockInWhichTheEventWasEmitted = String;
/// TheNumberOfTheBlockInWhichTheEventWasEmitted
///
/// The block's number (its height)
///
pub type TheNumberOfTheBlockInWhichTheEventWasEmitted = i64;
/// TheTransactionThatEmittedTheEvent
///
/// The transaction hash, as assigned in StarkNet
///
pub type TheTransactionThatEmittedTheEvent = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct TheEventEmissionInformation {
pub block_hash: TheHashOfTheBlockInWhichTheEventWasEmitted,
pub block_number: TheNumberOfTheBlockInWhichTheEventWasEmitted,
pub transaction_hash: TheTransactionThatEmittedTheEvent,
}
/// AnEventEmittedAsAResultOfTransactionExecution
///
/// Event information decorated with metadata on where it was emitted
///
pub type AnEventEmittedAsAResultOfTransactionExecution = HashMap<String, serde_json::Value>;
pub type MatchingEvents = Vec<AnEventEmittedAsAResultOfTransactionExecution>;
/// String2C8R2Mdr
///
/// Use this token in a subsequent query to obtain the next page. Should not appear if there are no more pages.
///
pub type String2C8R2Mdr = String;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum BlockHashNumberOrTag {
ObjectOfFieldElementYkZd5VZD(ObjectOfFieldElementYkZd5VZD),
ObjectOfIntegerBaK4QWsjFzIMLfUm(ObjectOfIntegerBaK4QWsjFzIMLfUm),
String0SecgXNU(String0SecgXNU),
}
/// AStorageKey
///
/// A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.
///
pub type AStorageKey = String;
pub type Integer7Bd9WOt2 = i64;
pub type AllOfAnEventFilterQueryObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4KRYlKhUVf = HashMap<String, serde_json::Value>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV4FtM23AM {
TheBlockObject(TheBlockObject),
AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV(AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1IIXE6ZAXpx {
TheBlockObject(TheBlockObject),
AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1II(AllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1II),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfAllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqXKViFRXs {
AllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85(AllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85),
ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8Yq(ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8Yq),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfDeclareTransactionReceiptDeployAccountTransactionReceiptDeployTransactionReceiptInvokeTransactionReceiptOneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhEReceiptForL1HandlerTransaction5CSZ3Pk9 {
InvokeTransactionReceipt(InvokeTransactionReceipt),
ReceiptForL1HandlerTransaction(ReceiptForL1HandlerTransaction),
DeclareTransactionReceipt(DeclareTransactionReceipt),
DeployTransactionReceipt(DeployTransactionReceipt),
DeployAccountTransactionReceipt(DeployAccountTransactionReceipt),
OneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhE(OneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhE),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpn {
TheDefinitionOfAStarkNetContractClass(TheDefinitionOfAStarkNetContractClass),
ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6(ObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0X30UctCGb {
#[serde(skip_serializing_if = "Option::is_none")]
pub gas_consumed: Option<AnIntegerNumberInHexFormat0X>,
#[serde(skip_serializing_if = "Option::is_none")]
pub gas_price: Option<AnIntegerNumberInHexFormat0X>,
#[serde(skip_serializing_if = "Option::is_none")]
pub overall_fee: Option<AnIntegerNumberInHexFormat0X>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfIntegerBaK4QWsjFieldElement1NmLqHs9 {
#[serde(skip_serializing_if = "Option::is_none")]
pub block_hash: Option<FieldElement>,
#[serde(skip_serializing_if = "Option::is_none")]
pub block_number: Option<IntegerBaK4QWsj>,
}
/// ChainId
///
/// StarkNet chain id, given in hex representation.
///
pub type ChainId = String;
pub type PendingTransactions = Vec<Transaction>;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum OneOfBooleanGGV7QL9BObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhMCTt8NE1V {
BooleanGGV7QL9B(BooleanGGV7QL9B),
ObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhM(ObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhM),
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Builder, Default)]
#[builder(setter(strip_option), default)]
#[serde(default)]
pub struct ObjectOfMatchingEventsString2C8R2MdrIhHk6Su9 {
pub events: MatchingEvents,
#[serde(skip_serializing_if = "Option::is_none")]
pub continuation_token: Option<String2C8R2Mdr>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(untagged)]
pub enum AnyOfBlockHashNumberOrTagBlockHashNumberOrTagBlockHashNumberOrTagFieldElementAStorageKeyBlockHashNumberOrTagATransactionSHashBlockHashNumberOrTagInteger7Bd9WOt2ATransactionSHashBlockHashNumberOrTagFieldElementBlockHashNumberOrTagFieldElementBlockHashNumberOrTagFieldElementBlockHashNumberOrTagFunctionCallInformationBlockHashNumberOrTagTransactionBlockHashNumberOrTagAllOfAnEventFilterQueryObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4KRYlKhUVfBlockHashNumberOrTagFieldElementOneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV4FtM23AMOneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1IIXE6ZAXpxOneOfAllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqXKViFRXsFieldElementTransactionTransactionOneOfDeclareTransactionReceiptDeployAccountTransactionReceiptDeployTransactionReceiptInvokeTransactionReceiptOneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhEReceiptForL1HandlerTransaction5CSZ3Pk9OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpnFieldElementOneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpnInteger7Bd9WOt2UnorderedSetOfFieldElementw09NTITEObjectOfAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0X30UctCGbIntegerBaK4QWsjObjectOfIntegerBaK4QWsjFieldElement1NmLqHs9ChainIdPendingTransactionsOneOfBooleanGGV7QL9BObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhMCTt8NE1VObjectOfMatchingEventsString2C8R2MdrIhHk6Su9FieldElement {
BlockHashNumberOrTag(BlockHashNumberOrTag),
FieldElement(FieldElement),
AStorageKey(AStorageKey),
ATransactionSHash(ATransactionSHash),
Integer7Bd9WOt2(Integer7Bd9WOt2),
FunctionCallInformation(FunctionCallInformation),
Transaction(Transaction),
AllOfAnEventFilterQueryObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4KRYlKhUVf(AllOfAnEventFilterQueryObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4KRYlKhUVf),
OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV4FtM23AM(OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV4FtM23AM),
OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1IIXE6ZAXpx(OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1IIXE6ZAXpx),
OneOfAllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqXKViFRXs(OneOfAllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqXKViFRXs),
OneOfDeclareTransactionReceiptDeployAccountTransactionReceiptDeployTransactionReceiptInvokeTransactionReceiptOneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhEReceiptForL1HandlerTransaction5CSZ3Pk9(OneOfDeclareTransactionReceiptDeployAccountTransactionReceiptDeployTransactionReceiptInvokeTransactionReceiptOneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhEReceiptForL1HandlerTransaction5CSZ3Pk9),
OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpn(OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpn),
UnorderedSetOfFieldElementw09NTITE(UnorderedSetOfFieldElementw09NTITE),
ObjectOfAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0X30UctCGb(ObjectOfAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0X30UctCGb),
IntegerBaK4QWsj(IntegerBaK4QWsj),
ObjectOfIntegerBaK4QWsjFieldElement1NmLqHs9(ObjectOfIntegerBaK4QWsjFieldElement1NmLqHs9),
ChainId(ChainId),
PendingTransactions(PendingTransactions),
OneOfBooleanGGV7QL9BObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhMCTt8NE1V(OneOfBooleanGGV7QL9BObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhMCTt8NE1V),
ObjectOfMatchingEventsString2C8R2MdrIhHk6Su9(ObjectOfMatchingEventsString2C8R2MdrIhHk6Su9),
}
pub fn StarknetGetBlockWithTxHashes(&mut self, block_id: BlockHashNumberOrTag) -> RpcRequest<OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfATransactionSHash6YKyMOupAYSGsCvt7IKUWilV4FtM23AM>;
pub fn StarknetGetBlockWithTxs(&mut self, block_id: BlockHashNumberOrTag) -> RpcRequest<OneOfTheBlockObjectAllOfObjectOfIntegerTn1KWXb3FieldElementFieldElementBnfylnqaObjectOfUnorderedSetOfTransactioni7VJKx18B8452FJXK3MRS1IIXE6ZAXpx>;
pub fn StarknetGetStateUpdate(&mut self, block_id: BlockHashNumberOrTag) -> RpcRequest<OneOfAllOfObjectOfFieldElementFieldElementBZumvx9ZObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqFpVZNq85ObjectOfObjectOfUnorderedSetOfObjectOfUnorderedSetOfObjectOfFieldElementFieldElementUcv3O2LTZ6WwVgO1FieldElementJF8P5QpDF8OiGFzDUnorderedSetOfObjectOfFieldElementFieldElementC3AzFFKhUgZjxKDFUnorderedSetOfFieldElementBwpG2TjYUnorderedSetOfObjectOfFieldElementFieldElementTdLoiB6LVvHm8NxcUnorderedSetOfObjectOfFieldElementFieldElementBoY7QHgqnMc1EotCAuK0EOMXFieldElementO3MdD8YqXKViFRXs>;
pub fn StarknetGetStorageAt(&mut self, contract_address: FieldElement, key: AStorageKey, block_id: BlockHashNumberOrTag) -> RpcRequest<FieldElement>;
pub fn StarknetGetTransactionByHash(&mut self, transaction_hash: ATransactionSHash) -> RpcRequest<Transaction>;
pub fn StarknetGetTransactionByBlockIdAndIndex(&mut self, block_id: BlockHashNumberOrTag, index: Integer7Bd9WOt2) -> RpcRequest<Transaction>;
pub fn StarknetGetTransactionReceipt(&mut self, transaction_hash: ATransactionSHash) -> RpcRequest<OneOfDeclareTransactionReceiptDeployAccountTransactionReceiptDeployTransactionReceiptInvokeTransactionReceiptOneOfCommonPropertiesForAPendingTransactionReceiptPendingDeployTransactionReceiptS7ONfNhEReceiptForL1HandlerTransaction5CSZ3Pk9>;
pub fn StarknetGetClass(&mut self, block_id: BlockHashNumberOrTag, class_hash: FieldElement) -> RpcRequest<OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpn>;
pub fn StarknetGetClassHashAt(&mut self, block_id: BlockHashNumberOrTag, contract_address: FieldElement) -> RpcRequest<FieldElement>;
pub fn StarknetGetClassAt(&mut self, block_id: BlockHashNumberOrTag, contract_address: FieldElement) -> RpcRequest<OneOfTheDefinitionOfAStarkNetContractClassObjectOfStringP8RxUgFPUnorderedSetOfFieldElementRv1PzBFzObjectOfUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaUnorderedSetOfObjectOfFieldElementInteger65WXr8Qb4I4BaUraAk4K5UCaM8F4B1PFStringUlggqyDB8WwcZ2U6CePXCwpn>;
pub fn StarknetGetBlockTransactionCount(&mut self, block_id: BlockHashNumberOrTag) -> RpcRequest<Integer7Bd9WOt2>;
pub fn StarknetCall(&mut self, request: FunctionCallInformation, block_id: BlockHashNumberOrTag) -> RpcRequest<UnorderedSetOfFieldElementw09NTITE>;
pub fn StarknetEstimateFee(&mut self, request: Transaction, block_id: BlockHashNumberOrTag) -> RpcRequest<ObjectOfAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0XAnIntegerNumberInHexFormat0X30UctCGb>;
pub fn StarknetBlockNumber(&mut self) -> RpcRequest<IntegerBaK4QWsj>;
pub fn StarknetBlockHashAndNumber(&mut self) -> RpcRequest<ObjectOfIntegerBaK4QWsjFieldElement1NmLqHs9>;
pub fn StarknetChainId(&mut self) -> RpcRequest<ChainId>;
pub fn StarknetPendingTransactions(&mut self) -> RpcRequest<PendingTransactions>;
pub fn StarknetSyncing(&mut self) -> RpcRequest<OneOfBooleanGGV7QL9BObjectOfAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementAnIntegerNumberInHexFormat0XFieldElementSmAEYAhMCTt8NE1V>;
pub fn StarknetGetEvents(&mut self, filter: AllOfAnEventFilterQueryObjectOfStringYmS84RY6IntegerOmVsfaNvCBFxvt4KRYlKhUVf) -> RpcRequest<ObjectOfMatchingEventsString2C8R2MdrIhHk6Su9>;
pub fn StarknetGetNonce(&mut self, block_id: BlockHashNumberOrTag, contract_address: FieldElement) -> RpcRequest<FieldElement>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment