File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 22name = " solana-accountsdb-plugin-kafka"
33description = " Solana AccountsDb plugin for Kafka"
44authors = [" Blockdaemon" ]
5- version = " 0.1.3+solana.1.10.2 "
5+ version = " 0.1.3+solana.1.10.7 "
66edition = " 2021"
77repository = " https://github.com/Blockdaemon/solana-accountsdb-plugin-kafka"
88license = " Apache-2.0"
@@ -11,18 +11,18 @@ license = "Apache-2.0"
1111crate-type = [" cdylib" , " rlib" ]
1212
1313[dependencies ]
14- prost = " 0.9 "
14+ prost = " 0.10 "
1515rdkafka = { version = " 0.28" , features = [" ssl-vendored" , " sasl" ] }
16- solana-accountsdb -plugin-interface = { version = " =1.10.2 " }
17- solana-logger = { version = " =1.10.2 " }
18- solana-program = { version = " =1.10.2 " }
16+ solana-geyser -plugin-interface = { version = " =1.10.7 " }
17+ solana-logger = { version = " =1.10.7 " }
18+ solana-program = { version = " =1.10.7 " }
1919log = " 0.4"
2020serde_json = " 1.0"
2121serde = { version = " 1.0" , features = [" derive" ] }
2222simple-error = " 0.2.3"
2323
2424[build-dependencies ]
25- prost-build = " 0.9 "
25+ prost-build = " 0.10 "
2626
2727[package .metadata .docs .rs ]
2828targets = [" x86_64-unknown-linux-gnu" ]
Original file line number Diff line number Diff line change 2020 ClientConfig ,
2121 } ,
2222 serde:: Deserialize ,
23- solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: {
24- AccountsDbPluginError , Result as PluginResult ,
23+ solana_geyser_plugin_interface :: geyser_plugin_interface :: {
24+ GeyserPluginError , Result as PluginResult ,
2525 } ,
2626 std:: { collections:: HashMap , fs:: File , path:: Path } ,
2727} ;
@@ -66,7 +66,7 @@ impl Config {
6666 pub fn read_from < P : AsRef < Path > > ( config_path : P ) -> PluginResult < Self > {
6767 let file = File :: open ( config_path) ?;
6868 let mut this: Self = serde_json:: from_reader ( file)
69- . map_err ( |e| AccountsDbPluginError :: ConfigFileReadError { msg : e. to_string ( ) } ) ?;
69+ . map_err ( |e| GeyserPluginError :: ConfigFileReadError { msg : e. to_string ( ) } ) ?;
7070 this. fill_defaults ( ) ;
7171 Ok ( this)
7272 }
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- use solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: SlotStatus as PluginSlotStatus ;
15+ use solana_geyser_plugin_interface :: geyser_plugin_interface :: SlotStatus as PluginSlotStatus ;
1616
1717include ! ( concat!(
1818 env!( "OUT_DIR" ) ,
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- use solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: AccountsDbPlugin ;
15+ use solana_geyser_plugin_interface :: geyser_plugin_interface :: GeyserPlugin ;
1616
1717mod config;
1818mod event;
@@ -32,12 +32,12 @@ pub use {
3232#[ allow( improper_ctypes_definitions) ]
3333/// # Safety
3434///
35- /// This function returns a pointer to the Kafka Plugin box implementing trait AccountsDbPlugin .
35+ /// This function returns a pointer to the Kafka Plugin box implementing trait GeyserPlugin .
3636///
3737/// The Solana validator and this plugin must be compiled with the same Rust compiler version and Solana core version.
3838/// Loading this plugin with mismatching versions is undefined behavior and will likely cause memory corruption.
39- pub unsafe extern "C" fn _create_plugin ( ) -> * mut dyn AccountsDbPlugin {
39+ pub unsafe extern "C" fn _create_plugin ( ) -> * mut dyn GeyserPlugin {
4040 let plugin = KafkaPlugin :: new ( ) ;
41- let plugin: Box < dyn AccountsDbPlugin > = Box :: new ( plugin) ;
41+ let plugin: Box < dyn GeyserPlugin > = Box :: new ( plugin) ;
4242 Box :: into_raw ( plugin)
4343}
Original file line number Diff line number Diff line change 1717 log:: info,
1818 rdkafka:: util:: get_rdkafka_version,
1919 simple_error:: simple_error,
20- solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: {
21- AccountsDbPlugin , AccountsDbPluginError as PluginError , ReplicaAccountInfo ,
20+ solana_geyser_plugin_interface :: geyser_plugin_interface :: {
21+ GeyserPlugin , GeyserPluginError as PluginError , ReplicaAccountInfo ,
2222 ReplicaAccountInfoVersions , Result as PluginResult , SlotStatus as PluginSlotStatus ,
2323 } ,
2424 std:: fmt:: { Debug , Formatter } ,
@@ -37,7 +37,7 @@ impl Debug for KafkaPlugin {
3737 }
3838}
3939
40- impl AccountsDbPlugin for KafkaPlugin {
40+ impl GeyserPlugin for KafkaPlugin {
4141 fn name ( & self ) -> & ' static str {
4242 "KafkaPlugin"
4343 }
You can’t perform that action at this time.
0 commit comments