Skip to content

Commit 3a1e7cd

Browse files
apollo_protobuf: add proof to invoke v3
1 parent ddc8fe7 commit 3a1e7cd

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
@@ -684,6 +684,7 @@ impl From<InvokeTransactionV3> for protobuf::InvokeV3 {
684684
.iter()
685685
.map(|account_deployment_data| (*account_deployment_data).into())
686686
.collect(),
687+
proof: vec![],
687688
}
688689
}
689690
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ message InvokeV3 {
6060
VolitionDomain nonce_data_availability_mode = 8;
6161
VolitionDomain fee_data_availability_mode = 9;
6262
Felt252 nonce = 10;
63+
repeated uint32 proof = 11;
6364
}
6465

6566
// 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
@@ -303,6 +303,8 @@ pub struct InvokeV3 {
303303
pub fee_data_availability_mode: i32,
304304
#[prost(message, optional, tag = "10")]
305305
pub nonce: ::core::option::Option<Felt252>,
306+
#[prost(uint32, repeated, tag = "11")]
307+
pub proof: ::prost::alloc::vec::Vec<u32>,
306308
}
307309
/// see <https://external.integration.starknet.io/feeder_gateway/get_transaction?transactionHash=0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0>
308310
#[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
@@ -469,6 +469,7 @@ impl From<InvokeTransactionV3> for client_transaction::InvokeTransaction {
469469
paymaster_data: tx.paymaster_data,
470470
account_deployment_data: tx.account_deployment_data,
471471
r#type: client_transaction::InvokeType::Invoke,
472+
proof: tx.proof,
472473
})
473474
}
474475
}

crates/apollo_starknet_client/resources/writer/invoke_v3.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@
3333
"nonce_data_availability_mode": 0,
3434
"fee_data_availability_mode": 0,
3535
"paymaster_data": [],
36-
"account_deployment_data": []
36+
"account_deployment_data": [],
37+
"proof": []
3738
}

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
Tip,
3839
TransactionSignature,
3940
};
@@ -181,6 +182,7 @@ pub struct InvokeV3Transaction {
181182
pub account_deployment_data: AccountDeploymentData,
182183
pub version: TransactionVersion,
183184
pub r#type: InvokeType,
185+
pub proof: Proof,
184186
}
185187

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

0 commit comments

Comments
 (0)