Skip to content

Commit

Permalink
Introduced getter interfaces for AutomationTaskMetaData properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Aregnaz Harutyunyan committed Jan 15, 2025
1 parent 9478470 commit 124923e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions types/src/transaction/automation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,33 @@ impl AutomationTaskMetaData {
pub fn gas_price_cap(&self) -> u64 {
self.gas_price_cap
}

pub fn payload_tx(&self) -> &[u8] {
&self.payload_tx
}
pub fn expiry_time(&self) -> u64 {
self.expiry_time
}
pub fn tx_hash(&self) -> &[u8] {
&self.tx_hash
}

pub fn max_gas_amount(&self) -> u64 {
self.max_gas_amount
}

pub fn registration_epoch(&self) -> u64 {
self.registration_epoch
}
pub fn registration_time(&self) -> u64 {
self.registration_time
}

pub fn owner(&self) -> AccountAddress {
self.owner
}

pub fn id(&self) -> u64 {
self.id
}
}

0 comments on commit 124923e

Please sign in to comment.