Skip to content

Commit 12de08c

Browse files
committed
chore: rename RAVStore and RAVRead to RavStore and RavRead
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 9d4b520 commit 12de08c

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

tap_core/src/manager/adapters/rav.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::signed_message::EIP712SignedMessage;
1313
/// For example code see [crate::manager::context::memory::RAVStorage]
1414
1515
#[async_trait]
16-
pub trait RAVStore<T: SolStruct> {
16+
pub trait RavStore<T: SolStruct> {
1717
/// Defines the user-specified error type.
1818
///
1919
/// This error type should implement the `Error` and `Debug` traits from
@@ -36,7 +36,7 @@ pub trait RAVStore<T: SolStruct> {
3636
/// For example code see [crate::manager::context::memory::RAVStorage]
3737
3838
#[async_trait]
39-
pub trait RAVRead<T: SolStruct> {
39+
pub trait RavRead<T: SolStruct> {
4040
/// Defines the user-specified error type.
4141
///
4242
/// This error type should implement the `Error` and `Debug` traits from

tap_core/src/manager/context/memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl InMemoryContext {
125125
}
126126

127127
#[async_trait]
128-
impl RAVStore<ReceiptAggregateVoucher> for InMemoryContext {
128+
impl RavStore<ReceiptAggregateVoucher> for InMemoryContext {
129129
type AdapterError = InMemoryError;
130130

131131
async fn update_last_rav(&self, rav: SignedRAV) -> Result<(), Self::AdapterError> {
@@ -138,7 +138,7 @@ impl RAVStore<ReceiptAggregateVoucher> for InMemoryContext {
138138
}
139139

140140
#[async_trait]
141-
impl RAVRead<ReceiptAggregateVoucher> for InMemoryContext {
141+
impl RavRead<ReceiptAggregateVoucher> for InMemoryContext {
142142
type AdapterError = InMemoryError;
143143

144144
async fn last_rav(&self) -> Result<Option<SignedRAV>, Self::AdapterError> {

tap_core/src/manager/tap_manager.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::marker::PhantomData;
66
use alloy::{dyn_abi::Eip712Domain, sol_types::SolStruct};
77

88
use super::adapters::{
9-
RAVRead, RAVStore, ReceiptDelete, ReceiptRead, ReceiptStore, SignatureChecker,
9+
RavRead, RavStore, ReceiptDelete, ReceiptRead, ReceiptStore, SignatureChecker,
1010
};
1111
use crate::{
1212
rav::{Aggregate, RavRequest},
@@ -54,7 +54,7 @@ impl<E, Rcpt, Rav> Manager<E, Rcpt, Rav> {
5454

5555
impl<E, Rcpt, Rav> Manager<E, Rcpt, Rav>
5656
where
57-
E: RAVStore<Rav> + SignatureChecker,
57+
E: RavStore<Rav> + SignatureChecker,
5858
Rav: SolStruct + PartialEq<Rav> + Sync + std::fmt::Debug,
5959
{
6060
/// Verify `signed_rav` matches all values on `expected_rav`, and that `signed_rav` has a valid signer.
@@ -92,7 +92,7 @@ where
9292

9393
impl<E, Rcpt, Rav> Manager<E, Rcpt, Rav>
9494
where
95-
E: RAVRead<Rav>,
95+
E: RavRead<Rav>,
9696
Rav: SolStruct,
9797
{
9898
async fn get_previous_rav(&self) -> Result<Option<EIP712SignedMessage<Rav>>, Error> {
@@ -171,7 +171,7 @@ where
171171

172172
impl<E, Rcpt, Rav> Manager<E, Rcpt, Rav>
173173
where
174-
E: ReceiptRead<Rcpt> + RAVRead<Rav> + SignatureChecker,
174+
E: ReceiptRead<Rcpt> + RavRead<Rav> + SignatureChecker,
175175
Rav: SolStruct + WithValueAndTimestamp + Clone + Aggregate<Rcpt>,
176176
Rcpt: WithUniqueId + WithValueAndTimestamp + Sync,
177177
{
@@ -219,7 +219,7 @@ where
219219

220220
impl<E, Rcpt, Rav> Manager<E, Rcpt, Rav>
221221
where
222-
E: ReceiptDelete + RAVRead<Rav>,
222+
E: ReceiptDelete + RavRead<Rav>,
223223
Rav: SolStruct + WithValueAndTimestamp,
224224
{
225225
/// Removes obsolete receipts from storage. Obsolete receipts are receipts

tap_core/tests/rav_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use alloy::{
1616
use rstest::*;
1717
use tap_core::{
1818
manager::{
19-
adapters::{RAVRead, RAVStore},
19+
adapters::{RavRead, RavStore},
2020
context::memory::InMemoryContext,
2121
},
2222
rav::ReceiptAggregateVoucher,

tap_integration_tests/tests/indexer_mock.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use jsonrpsee_core::client::ClientT;
1818
use tap_aggregator::jsonrpsee_helpers;
1919
use tap_core::{
2020
manager::{
21-
adapters::{RAVRead, RAVStore, ReceiptRead, ReceiptStore, SignatureChecker},
21+
adapters::{RavRead, RavStore, ReceiptRead, ReceiptStore, SignatureChecker},
2222
Manager,
2323
},
2424
rav::{ReceiptAggregateVoucher, SignedRAV},
@@ -86,8 +86,8 @@ impl<E> RpcServer for RpcManager<E>
8686
where
8787
E: ReceiptStore<SignedReceipt>
8888
+ ReceiptRead<SignedReceipt>
89-
+ RAVStore<ReceiptAggregateVoucher>
90-
+ RAVRead<ReceiptAggregateVoucher>
89+
+ RavStore<ReceiptAggregateVoucher>
90+
+ RavRead<ReceiptAggregateVoucher>
9191
+ SignatureChecker
9292
+ Send
9393
+ Sync
@@ -153,8 +153,8 @@ pub async fn run_server<E>(
153153
where
154154
E: ReceiptStore<SignedReceipt>
155155
+ ReceiptRead<SignedReceipt>
156-
+ RAVStore<ReceiptAggregateVoucher>
157-
+ RAVRead<ReceiptAggregateVoucher>
156+
+ RavStore<ReceiptAggregateVoucher>
157+
+ RavRead<ReceiptAggregateVoucher>
158158
+ SignatureChecker
159159
+ Clone
160160
+ Send
@@ -191,8 +191,8 @@ async fn request_rav<E>(
191191
) -> Result<()>
192192
where
193193
E: ReceiptRead<SignedReceipt>
194-
+ RAVRead<ReceiptAggregateVoucher>
195-
+ RAVStore<ReceiptAggregateVoucher>
194+
+ RavRead<ReceiptAggregateVoucher>
195+
+ RavStore<ReceiptAggregateVoucher>
196196
+ SignatureChecker,
197197
{
198198
// Create the aggregate_receipts request params

0 commit comments

Comments
 (0)