Skip to content

Commit f64c1c6

Browse files
committed
fix(gelato-bindings): add new API fields to web reqs
1 parent 9707a68 commit f64c1c6

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

chains/nomad-ethereum/src/gelato/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ where
7979
) -> Result<TxOutcome, ChainCommunicationError> {
8080
let RelayResponse { task_id } = self.dispatch_tx(domain, contract_address, tx).await?;
8181

82-
info!(task_id = ?&task_id, "Submitted tx to Gelato relay. Polling task for completion...");
82+
info!(task_id = ?&task_id, "Submitted tx to Gelato relay.");
83+
84+
info!(task_id = ?&task_id, "Polling Gelato task...");
8385
self.poll_task_id(task_id)
8486
.await
8587
.map_err(|e| ChainCommunicationError::TxSubmissionError(e.into()))?

chains/nomad-ethereum/src/gelato/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ impl UnfilledFowardRequest {
8787
fee_token: self.fee_token,
8888
payment_type: self.payment_type,
8989
max_fee: self.max_fee.to_string(),
90+
gas: self.gas.to_string(),
9091
sponsor: self.sponsor,
9192
sponsor_chain_id: self.sponsor_chain_id,
9293
nonce: self.nonce,
9394
enforce_sponsor_nonce: self.enforce_sponsor_nonce,
95+
enforce_sponsor_nonce_ordering: self.enforce_sponsor_nonce_ordering,
9496
sponsor_signature: hex_sig,
9597
}
9698
}

gelato-relay/bin/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async fn main() -> Result<(), reqwest::Error> {
88
println!("Relay chains: {:?}", chains);
99

1010
let task_status = gelato
11-
.get_task_status("0x1a976f2bed20b154cb02a8c039705e34d4f5971a0f7b82ae1cdfd80bc1636d8f")
11+
.get_task_status("0xce52ae7a6a3032848d76b161ac4c131fa995dcc67e3be5392dfb8466275d6679")
1212
.await?;
1313
println!("Task status: {:?}", task_status);
1414

gelato-relay/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ pub struct ForwardRequest {
2828
pub fee_token: String,
2929
pub payment_type: usize, // 1 = gas tank
3030
pub max_fee: String,
31+
pub gas: String,
3132
pub sponsor: String,
3233
pub sponsor_chain_id: usize, // same as chain_id
3334
pub nonce: usize, // can default 0 if next field false
3435
pub enforce_sponsor_nonce: bool, // default false given replay safe
36+
pub enforce_sponsor_nonce_ordering: bool,
3537
pub sponsor_signature: String,
3638
}
3739

0 commit comments

Comments
 (0)