-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding cache and sync functionality #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments are 🔥!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
test/e2e/data-receiver.spec.ts
Outdated
it('should all the observations when called without max', async () => { | ||
tx = await dataReceiver.syncObservations(salt, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'should add the observations...'
test/e2e/data-receiver.spec.ts
Outdated
it('should all observations limited by max argument', async () => { | ||
tx = await dataReceiver.syncObservations(salt, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'should add observations...'
test/unit/DataReceiver.spec.ts
Outdated
it('should all observations limited by max argument', async () => { | ||
tx = await dataReceiver.syncObservations(randomSalt, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'should add observations...'
test/unit/DataReceiver.spec.ts
Outdated
it('should all the observations when called without max', async () => { | ||
tx = await dataReceiver.syncObservations(randomSalt, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'should add the observations...'
it.skip('should delete added cache observations', async () => { | ||
// should sync nonce and nonce + 1 (nonce + 2 should remain in cache) | ||
await dataReceiver.syncObservations(randomSalt, 2); | ||
|
||
// NOTE: smock having issues with internal mapping structs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch. 🙃
|
||
/// @notice Allows any address to attemt to insert cached observations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows any address to attempt to...
No description provided.