Skip to content

Commit 548bf0a

Browse files
committed
feat: update makefile target to send with cli
1 parent 8efd76f commit 548bf0a

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,10 @@ agg_mode_batcher_send_payment:
330330
--private-key 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
331331

332332
agg_mode_batcher_send_sp1_proof:
333-
@NONCE=$$(curl -s http://127.0.0.1:8089/nonce/0x70997970C51812dc3A010C7d01b50e0d17dc79C8 | jq -r '.data.nonce'); \
334-
curl -X POST \
335-
-H "Content-Type: multipart/form-data" \
336-
-F "nonce=$${NONCE}" \
337-
-F "proof=@scripts/test_files/sp1/sp1_fibonacci_5_0_0.proof" \
338-
-F "program_vk=@scripts/test_files/sp1/sp1_fibonacci_5_0_0_vk.bin" \
339-
-F "_signature_hex=0x0" \
340-
http://127.0.0.1:8089/proof/sp1
333+
@cargo run --manifest-path aggregation_mode/cli/Cargo.toml -- submit sp1 \
334+
--proof scripts/test_files/sp1/sp1_fibonacci_5_0_0.proof \
335+
--vk scripts/test_files/sp1/sp1_fibonacci_5_0_0_vk.bin \
336+
--private-key "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
341337

342338
__AGGREGATOR__: ## ____
343339

aggregation_mode/sdk/src/gateway/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use sp1_sdk::{SP1ProofWithPublicValues, SP1VerifyingKey};
55

66
use crate::{
77
gateway::types::{
8-
EmptyData, GatewayResponse, NonceResponse, Receipt, ReceiptsQueryParams,
8+
EmptyData, GatewayResponse, NonceResponse, ReceiptsQueryParams, ReceiptsResponse,
99
SubmitProofResponse, SubmitSP1ProofMessage,
1010
},
1111
types::Network,
@@ -68,7 +68,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
6868
&self,
6969
address: String,
7070
nonce: Option<u64>,
71-
) -> Result<GatewayResponse<Vec<Receipt>>, GatewayError> {
71+
) -> Result<GatewayResponse<ReceiptsResponse>, GatewayError> {
7272
let query = ReceiptsQueryParams {
7373
address: address,
7474
nonce,

aggregation_mode/sdk/src/gateway/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct Receipt {
3838
}
3939

4040
#[derive(Debug, Deserialize)]
41-
pub(super) struct ReceiptsResponse {
41+
pub struct ReceiptsResponse {
4242
pub receipts: Vec<Receipt>,
4343
}
4444

0 commit comments

Comments
 (0)