Derrick Hammer
|
661e146636
|
feat: add getCurrentBlock and getLastBlock methods
|
2023-07-13 04:31:55 -04:00 |
Derrick Hammer
|
93ab07c5c3
|
refactor: make getLatestExecution public
|
2023-07-13 04:05:34 -04:00 |
Derrick Hammer
|
391a4f968a
|
refactor: if we have a _latestOptimisticUpdate, check the estimated current block against the block we have, and return it as cached data if we don't need to fetch again. Also use a mutex to prevent race conditions
|
2023-07-13 04:00:42 -04:00 |
Derrick Hammer
|
36f9f4c910
|
tidy: unneeded var
|
2023-07-13 03:47:44 -04:00 |
Derrick Hammer
|
11791ff08b
|
refactor: split subscribe into syncToLatestBlock
|
2023-07-13 03:18:05 -04:00 |
Derrick Hammer
|
4836ddb32e
|
style: reformat
|
2023-07-13 03:14:06 -04:00 |
Derrick Hammer
|
b3e5607132
|
refactor: store optimistic update back into _latestOptimisticUpdate with a getter.
|
2023-07-13 03:13:22 -04:00 |
Derrick Hammer
|
a7786fa21c
|
style: fix typos
|
2023-07-13 03:12:49 -04:00 |
Derrick Hammer
|
977d33b768
|
refactor: make optimisticUpdateCallback a dedicated type
|
2023-07-13 02:53:00 -04:00 |
Derrick Hammer
|
51d6d23942
|
refactor: getLatestExecution needs to actually call optimistic update, but add a callback in the client options to avoid creating a subclass
|
2023-07-13 02:25:05 -04:00 |
Derrick Hammer
|
5aa37d4a61
|
refactor: don't use un-needed for loop
|
2023-07-13 01:46:45 -04:00 |
Derrick Hammer
|
baa9562749
|
fix: fix import
|
2023-07-12 17:59:56 -04:00 |
Derrick Hammer
|
6408098050
|
refactor: heavily simplify and consolidate implementations to just use light sync updates and not the optimistic_update endpoint, and use a generic callback interface
|
2023-07-12 17:40:59 -04:00 |
Derrick Hammer
|
a6759ec243
|
refactor: temp use js only bls
|
2023-07-11 02:33:28 -04:00 |
Derrick Hammer
|
208ca03e80
|
refactor: expose subscribe on the base client, with optional callback and call on child clients
|
2023-07-11 02:21:30 -04:00 |
Derrick Hammer
|
3a48a52a53
|
fix: add getter for store in baseclient
|
2023-07-11 01:01:10 -04:00 |
Derrick Hammer
|
5843acb79b
|
feat: Initial version
|
2023-07-10 16:47:50 -04:00 |