Skip to content

Commit 700180c

Browse files
committed
chore: upgrade anchor to 0.31.0
1 parent 954ff8a commit 700180c

File tree

8 files changed

+558
-190
lines changed

8 files changed

+558
-190
lines changed

apps/argus/src/keeper/state.rs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11

2-
3-
4-
5-
62
pub struct Block {
73
pub hash: [u8; 32],
84
pub parent: Option<[u8; 32]>,
@@ -56,9 +52,13 @@ impl BlockchainState {
5652
}
5753
}
5854

59-
// full set of currently pending on-chain requests
60-
pub struct PulseRequests {
6155

56+
pub struct PulseRequest {
57+
// Whatever parameters you need to invoke the callback
58+
}
59+
60+
pub struct PulseRequests {
61+
// Holds the full set of currently pending on-chain requests
6262
}
6363

6464
impl PulseRequests {
@@ -67,8 +67,14 @@ impl PulseRequests {
6767
}
6868
}
6969

70-
pub struct PulseRequest {
71-
// whatever parameters you need for the callback
70+
71+
72+
73+
pub struct CallbackStatus {
74+
// task needs the ability to update these values.
75+
num_retries: u64,
76+
last_retry_time: Instant,
77+
task: Option<JoinHandle<Result<()>>>,
7278
}
7379

7480

@@ -112,11 +118,3 @@ pub async fn fulfill_request(request: &PulseRequest, hermes: &str, gas_estimate
112118
// get price update by calling hermes
113119
// create contract call and submit it
114120
}
115-
116-
117-
pub struct CallbackStatus {
118-
// task needs the ability to update these values.
119-
num_retries: u64,
120-
last_retry_time: Instant,
121-
task: Option<JoinHandle<Result<()>>>,
122-
}

0 commit comments

Comments
 (0)