tea-tapp-common 0.2.0-dev.1

The TEA SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct StartMiningEvent {
	pub tea_id: Vec<u8>,
	pub ip_address: String,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct StopMiningEvent {
	pub tea_id: Vec<u8>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct MigrateEvent {
	pub tea_id: Vec<u8>,
	pub ip_address: Option<String>,
}