File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 2
2
name = " solana-accountsdb-plugin-kafka"
3
3
description = " Solana AccountsDb plugin for Kafka"
4
4
authors = [" Blockdaemon" ]
5
- version = " 0.1.3+solana.1.9.12 "
5
+ version = " 0.1.3+solana.1.9.15 "
6
6
edition = " 2021"
7
7
repository = " https://github.com/Blockdaemon/solana-accountsdb-plugin-kafka"
8
8
license = " Apache-2.0"
@@ -13,9 +13,9 @@ crate-type = ["cdylib", "rlib"]
13
13
[dependencies ]
14
14
prost = " 0.10"
15
15
rdkafka = { version = " 0.28" , features = [" ssl-vendored" , " sasl" ] }
16
- solana-accountsdb -plugin-interface = { version = " =1.9.12 " }
17
- solana-logger = { version = " =1.9.12 " }
18
- solana-program = { version = " =1.9.12 " }
16
+ solana-geyser -plugin-interface = { version = " =1.9.15 " }
17
+ solana-logger = { version = " =1.9.15 " }
18
+ solana-program = { version = " =1.9.15 " }
19
19
log = " 0.4"
20
20
serde_json = " 1.0"
21
21
serde = { version = " 1.0" , features = [" derive" ] }
Original file line number Diff line number Diff line change 20
20
ClientConfig ,
21
21
} ,
22
22
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 ,
25
25
} ,
26
26
std:: { collections:: HashMap , fs:: File , path:: Path } ,
27
27
} ;
@@ -66,7 +66,7 @@ impl Config {
66
66
pub fn read_from < P : AsRef < Path > > ( config_path : P ) -> PluginResult < Self > {
67
67
let file = File :: open ( config_path) ?;
68
68
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 ( ) } ) ?;
70
70
this. fill_defaults ( ) ;
71
71
Ok ( this)
72
72
}
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- use solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: SlotStatus as PluginSlotStatus ;
15
+ use solana_geyser_plugin_interface :: geyser_plugin_interface :: SlotStatus as PluginSlotStatus ;
16
16
17
17
include ! ( concat!(
18
18
env!( "OUT_DIR" ) ,
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- use solana_accountsdb_plugin_interface :: accountsdb_plugin_interface :: AccountsDbPlugin ;
15
+ use solana_geyser_plugin_interface :: geyser_plugin_interface :: GeyserPlugin ;
16
16
17
17
mod config;
18
18
mod event;
@@ -32,12 +32,12 @@ pub use {
32
32
#[ allow( improper_ctypes_definitions) ]
33
33
/// # Safety
34
34
///
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 .
36
36
///
37
37
/// The Solana validator and this plugin must be compiled with the same Rust compiler version and Solana core version.
38
38
/// 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 {
40
40
let plugin = KafkaPlugin :: new ( ) ;
41
- let plugin: Box < dyn AccountsDbPlugin > = Box :: new ( plugin) ;
41
+ let plugin: Box < dyn GeyserPlugin > = Box :: new ( plugin) ;
42
42
Box :: into_raw ( plugin)
43
43
}
Original file line number Diff line number Diff line change 17
17
log:: info,
18
18
rdkafka:: util:: get_rdkafka_version,
19
19
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 ,
22
22
ReplicaAccountInfoVersions , Result as PluginResult , SlotStatus as PluginSlotStatus ,
23
23
} ,
24
24
std:: fmt:: { Debug , Formatter } ,
@@ -37,7 +37,7 @@ impl Debug for KafkaPlugin {
37
37
}
38
38
}
39
39
40
- impl AccountsDbPlugin for KafkaPlugin {
40
+ impl GeyserPlugin for KafkaPlugin {
41
41
fn name ( & self ) -> & ' static str {
42
42
"KafkaPlugin"
43
43
}
You can’t perform that action at this time.
0 commit comments