Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broadcasted transaction #104

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions crates/starknet-types-rpc/src/custom/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ pub enum BroadcastedDeclareTxn<F: Default> {
#[serde(rename = "0x3")]
V3(BroadcastedDeclareTxnV3<F>),
/// Query-only broadcasted declare transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000001")]
#[serde(rename = "0x100000000000000000000000000000001")]
QueryV1(BroadcastedDeclareTxnV1<F>),
/// Query-only broadcasted declare transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000002")]
#[serde(rename = "0x100000000000000000000000000000002")]
QueryV2(BroadcastedDeclareTxnV2<F>),
/// Query-only broadcasted declare transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000003")]
#[serde(rename = "0x100000000000000000000000000000003")]
QueryV3(BroadcastedDeclareTxnV3<F>),
}

Expand All @@ -33,11 +33,13 @@ pub enum BroadcastedDeclareTxn<F: Default> {
pub enum BroadcastedDeployAccountTxn<F> {
#[serde(rename = "0x1")]
V1(DeployAccountTxnV1<F>),
#[serde(rename = "0x3")]
V3(DeployAccountTxnV3<F>),
/// Query-only broadcasted deploy account transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000001")]
#[serde(rename = "0x100000000000000000000000000000001")]
QueryV1(DeployAccountTxnV1<F>),
/// Query-only broadcasted deploy account transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000003")]
#[serde(rename = "0x100000000000000000000000000000003")]
QueryV3(DeployAccountTxnV3<F>),
}

Expand All @@ -52,12 +54,12 @@ pub enum BroadcastedInvokeTxn<F> {
V3(InvokeTxnV3<F>),

/// Query-only broadcasted invoke transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000000")]
#[serde(rename = "0x100000000000000000000000000000000")]
QueryV0(InvokeTxnV0<F>),
/// Query-only broadcasted invoke transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000001")]
#[serde(rename = "0x100000000000000000000000000000001")]
QueryV1(InvokeTxnV1<F>),
/// Query-only broadcasted invoke transaction.
#[serde(rename = "0x0000000000000000000000000000000100000000000000000000000000000003")]
#[serde(rename = "0x100000000000000000000000000000003")]
QueryV3(InvokeTxnV3<F>),
}