Going somewhere.
This commit is contained in:
1 parent
0d0337a6aa
commit
f140b50be4
17 files changed
+211
-20
No files matched your search
+9
-1
@@ -1,5 +1,5 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::db::external_id::{SecurityId, UserId};
|
||||
use crate::db::external_id::{AccountId, SecurityId, UserId};
|
||||
|
||||
use crate::db::securities::{NewSecurity, SecurityType};
|
||||
|
||||
@@ -44,11 +44,19 @@ pub struct CreateNewAccount {
|
||||
pub userId: UserId,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct EmitSecurities {
|
||||
pub amount: i64,
|
||||
pub emitter_account: AccountId,
|
||||
pub payee_accounts: Vec<AccountId>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub enum Event {
|
||||
CreateNewSecurity(CreateNewSecurity),
|
||||
CreateNewUser(CreateNewUser),
|
||||
CreateNewAccount(CreateNewAccount),
|
||||
EmitSecurities(EmitSecurities),
|
||||
}
|
||||
|
||||
impl Event {
|
||||
|
||||
Reference in new issue
Block a user