Commit Graph

52 Commits

Author SHA1 Message Date
Kirill Fomichev afd6569ddc
geyser: update block reconstruction code (#177) 2023-08-21 17:44:58 -04:00
Kirill Fomichev 1481ec9ac3
geyser: fix overflow for small slot number (#171) 2023-08-14 18:37:57 -04:00
Kirill Fomichev f2cfba9073
geyser: include entries to block message (#169) 2023-08-10 15:39:35 -04:00
Kirill Fomichev 1e2e3bbba0
geyser: fix config example (#168)
* add full block notification with no account defined.

Signed-off-by: Kirill Fomichev <fanatid@ya.ru>

* rename ConfigGrpcFiltersBlocks any field to account_include_any

Signed-off-by: Kirill Fomichev <fanatid@ya.ru>

* bump 1.6.1

Signed-off-by: Kirill Fomichev <fanatid@ya.ru>

---------

Signed-off-by: Kirill Fomichev <fanatid@ya.ru>
Co-authored-by: musitdev <philippe.delrieu@free.fr>
2023-07-26 22:22:01 -04:00
Kirill Fomichev 5ae7536f62
geyser: allow to disable unary methods (#166) 2023-07-22 15:37:13 -04:00
Kirill Fomichev b482e67db1
geyser: add Entry message (#163) 2023-07-20 17:34:11 -04:00
Kirill Fomichev 9e403806e7
geyser: reduce the amount of locks (#161) 2023-07-18 18:24:26 -04:00
Kirill Fomichev 6562dee357
geyser: add accounts to block message (#160) 2023-07-17 22:23:01 -04:00
Kirill Fomichev 0dff12d9fd
geyser: send block message with empty transactions (#156) 2023-07-07 12:16:56 -04:00
Kirill Fomichev 1486ebd8f5
geyser: add TokenAccountState to accounts filter (#154) 2023-06-29 19:29:55 -04:00
Kirill Fomichev ef9c079f07
geyser: support data_slice for accounts (#150) 2023-06-28 23:50:57 -04:00
Kirill Fomichev cdd6bcbef0
geyser: update solana =1.16.1 (#146) 2023-06-16 23:22:42 -04:00
Kirill Fomichev b7fa0cd9ff
geyser: send task per connection (#145) 2023-06-15 22:53:48 -04:00
Kirill Fomichev 092a94fccf
geyser: do not disconnect if subscribe stream is closed (#140) 2023-06-06 14:02:27 -04:00
Kirill Fomichev 9e0775068d
geyser: change default commitment to processed (#137) 2023-05-29 16:46:31 -04:00
Kirill Fomichev e03a47c0cf
version: bump (#133) 2023-05-26 21:00:50 -04:00
Kirill Fomichev 8942390e9c
rust client: add unary methods to example (#126) 2023-05-22 19:50:22 -04:00
Linus Kendall cdbb4697a4
Make clippy happy (#107) 2023-04-10 11:47:59 +02:00
Kirill Fomichev fc3f82ac04
geyser: impl default filters limit in config (#103) 2023-03-27 16:18:31 -03:00
Kirill Fomichev e342e0b4e5
add memcmp/datasize filter to accounts (#101) 2023-03-26 21:40:39 -03:00
Linus Kendall 8c4f71648c
Allow user defined TlsConfig (#98)
Co-authored-by: Kirill Fomichev <fanatid@ya.ru>
2023-03-21 19:28:46 -03:00
Kirill Fomichev bbb5a2d9cc
re-export prost and tonic in proto crate (#100) 2023-03-21 17:56:53 -03:00
Kirill Fomichev 5b0897a958
change crates prefix to yellowstone (#95)
Co-authored-by: shuimuliang <shuimuliang@gmail.com>
2023-03-20 20:40:32 -03:00
Kirill Fomichev 5f61fe3208
move examples, new proto crate (#92)
* move examples

* move proto to separate crate

* use proto crate

* move config-check

* small fixes
2023-03-20 03:27:26 +08:00
Kirill Fomichev 0ffb9c5a73
add rust client lib (#91)
Thanks for the pr.
The WebSocket proxy also needs it.
2023-03-17 11:59:54 +08:00
Kirill Fomichev 80005d93bf
remove outdated Cargo.lock files (#89) 2023-03-13 18:24:35 -03:00
Kirill Fomichev 9f36593e49
add resubscribe example to rust client (#83) 2023-03-08 17:40:21 -03:00
Kirill Fomichev 09db6c6bf9
Update solana =1.15.2 (#79)
Co-authored-by: linuskendall <git@linuskendall.com>
2023-03-08 11:50:03 -03:00
cairo c4487d891c
fix: allow optional x-token in rust client (#72)
* fix: allow optional x-token in rust client

---------

Co-authored-by: Kirill Fomichev <fanatid@ya.ru>
2023-03-03 16:16:13 -03:00
cairo 19073fa1dd
feat: #48 (#56)
* feat: #48

demo project (server + client Check, client Watch)
https://github.com/shuimuliang/codebase-rs/tree/main/grpc_health

* chore: resolve conflict with main branch Cargo.toml
2023-02-24 13:01:10 +05:30
Kirill Fomichev e65d02b1e1
Remove not required dependencies from Cargo.toml (#69) 2023-02-22 23:59:21 -03:00
cairo dfcf417f85
chore: mv client.rs into rust dir (#62)
* chore: mv client.rs into rust dir

i think the best practice is:
a Cargo.toml inlcude just [workspace]
libsolana_geyser_grpc in 'cargo new lib_geyser_grpc'
client in 'cargo new client'

finally the dir is
/Cargo.toml
/lib_geyser_grpc/Cargo.toml
/lib_geyser_grpc/src/
/client/Cargo.toml
/client/src/client.rs

* Moved rust code to subprojects/workspace (#63)

* Moved to submodules

* Moved config-check binary path

---------

Co-authored-by: Linus Kendall <git@linuskendall.com>
2023-02-22 17:28:41 +05:30
cairo ad73f64a8a
Tonic retry client (#53)
* Feat: client with default retry policy

Once the server connection is broken, client will reconnect to the server, then retry to send payload SubscribeRequest to server

* Refactor: backoff as default crates, simplify cargo.toml

---------

Co-authored-by: Nikita Baksalyar <nikita.baksalyar@gmail.com>
2023-02-17 12:06:50 +05:30
Kirill Fomichev 0581dc4227
Fix deps for v0.5.2+solana.1.14.15 (#49) 2023-02-09 22:59:13 -03:00
Kirill Fomichev e66473eea4
Respect transactions order in full block (#40) 2023-02-02 10:49:24 -03:00
Kirill Fomichev ea37a3f403
Fix full block reconstruction (#37) 2023-02-01 16:45:59 -03:00
Kirill Fomichev f370f0e23e
Add geyser blockV2 (#36) 2023-01-31 12:48:43 -03:00
Kirill Fomichev 0d635694f4
Update solana =1.14.13 (#35) 2023-01-30 14:35:54 -03:00
Kirill Fomichev ce18a1ac92
Ignore data before first processed block after startup message (#33) 2023-01-23 08:33:27 -03:00
Kirill Fomichev 3cb761c367
Add signature to transactions filter (#31) 2023-01-21 21:41:38 -03:00
Kirill Fomichev a749be4214
Add prom metric for invalid block transactions (#29) 2023-01-19 17:06:39 -03:00
Kirill Fomichev 1d0d4dcbf4
Add transactions to block message, new block meta message (#27) 2023-01-12 11:37:58 -03:00
Linus Kendall 45707a1d3e
Update solana =1.14.10 (#19)
* Upgrade rust version

* Compatibility fixes for v1.14

* Updated proto with new fields

* Failed attempt at adding new fields

* fix ReturnData

Co-authored-by: Kirill Fomichev <fanatid@ya.ru>
2022-12-16 10:37:32 -03:00
Kirill Fomichev bc237d8336
Update solana =1.13.5 (#9) 2022-11-21 13:02:50 -03:00
Kirill Fomichev 42dd0a9244
add tls support to client (#8) 2022-11-21 12:44:56 -03:00
Kirill Fomichev d7a306e26f
Update solana =1.13.4 2022-11-06 14:21:43 -03:00
Kirill Fomichev 01384cb45a
Use compiled protoc (#5) 2022-10-26 16:54:06 -03:00
Kirill Fomichev 28b1ce89eb
Bump version: v0.2.0 2022-10-25 15:09:00 -03:00
Linus Kendall 88babd3f41
Updated cargo version 2022-10-24 18:40:37 +01:00
Kirill Fomichev 8301bbe292
add transactions broadcasting 2022-10-20 20:43:19 -03:00