Skip to content

Commit 6280cb5

Browse files
apollo_protobuf: add proof to invoke v3
1 parent e32acfd commit 6280cb5

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

crates/apollo_protobuf/src/converters/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ impl From<InvokeTransactionV3> for protobuf::InvokeV3 {
692692
.iter()
693693
.map(|proof_fact| (*proof_fact).into())
694694
.collect(),
695+
proof: vec![],
695696
}
696697
}
697698
}

crates/apollo_protobuf/src/proto/p2p/proto/transaction.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ message InvokeV3 {
6161
VolitionDomain fee_data_availability_mode = 9;
6262
Felt252 nonce = 10;
6363
repeated Felt252 proof_facts = 11;
64+
repeated uint32 proof = 12;
6465
}
6566

6667
// see https://external.integration.starknet.io/feeder_gateway/get_transaction?transactionHash=0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0

crates/apollo_protobuf/src/protobuf/protoc_output.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ pub struct InvokeV3 {
305305
pub nonce: ::core::option::Option<Felt252>,
306306
#[prost(message, repeated, tag = "11")]
307307
pub proof_facts: ::prost::alloc::vec::Vec<Felt252>,
308+
#[prost(uint32, repeated, tag = "12")]
309+
pub proof: ::prost::alloc::vec::Vec<u32>,
308310
}
309311
/// see <https://external.integration.starknet.io/feeder_gateway/get_transaction?transactionHash=0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0>
310312
#[allow(clippy::derive_partial_eq_without_eq)]

crates/apollo_rpc/src/v0_8/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ impl From<InvokeTransactionV3> for client_transaction::InvokeTransaction {
470470
account_deployment_data: tx.account_deployment_data,
471471
r#type: client_transaction::InvokeType::Invoke,
472472
proof_facts: tx.proof_facts,
473+
proof: tx.proof,
473474
})
474475
}
475476
}

crates/apollo_starknet_client/resources/writer/invoke_v3.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"fee_data_availability_mode": 0,
3535
"paymaster_data": [],
3636
"account_deployment_data": [],
37-
"proof_facts": []
37+
"proof_facts": [],
38+
"proof": []
3839
}

crates/apollo_starknet_client/src/writer/objects/transaction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use starknet_api::transaction::fields::{
3434
DeprecatedResourceBoundsMapping,
3535
Fee,
3636
PaymasterData,
37+
Proof,
3738
ProofFacts,
3839
Tip,
3940
TransactionSignature,
@@ -183,6 +184,7 @@ pub struct InvokeV3Transaction {
183184
pub proof_facts: ProofFacts,
184185
pub version: TransactionVersion,
185186
pub r#type: InvokeType,
187+
pub proof: Proof,
186188
}
187189

188190
/// An invoke transaction that can be added to Starknet through the Starknet gateway.

0 commit comments

Comments
 (0)