...
This commit is contained in:
@@ -10,7 +10,7 @@ pub mut:
|
||||
address string // Blockchain address for this wallet @[index]
|
||||
balance f64 // Current balance in the wallet
|
||||
currency string // Currency type (e.g., "USD", "BTC", "ETH")
|
||||
assetid u32
|
||||
assetid u32 @[index]
|
||||
last_activity u64 // Unix timestamp of last transaction
|
||||
administrators []u32 // List of user IDs who are super admins, they have all rights, without any treashold
|
||||
accountpolicy u32 // Policy for signing transactions, 0 means none
|
||||
@@ -21,9 +21,9 @@ pub struct Asset {
|
||||
core.Base
|
||||
pub mut:
|
||||
address string // Blockchain address for this asset @[index]
|
||||
assetid u32 // Unique identifier for the asset (e.g., "USD", "BTC", "ETH")
|
||||
assetid u32 @[index] // Unique identifier for the asset (e.g., "USD", "BTC", "ETH")
|
||||
asset_type string // "fiat", "crypto", "stablecoin", etc.
|
||||
issuer u32 // Issuer account
|
||||
issuer u32 @[index] // Issuer account
|
||||
supply f64 // Total circulating supply
|
||||
decimals u8 // Decimal precision (e.g., 2 for cents)
|
||||
is_frozen bool // Whether the asset is frozen globally
|
||||
@@ -50,7 +50,7 @@ pub mut:
|
||||
min_signatures u32 // Minimum number of signatures required for a transaction
|
||||
enabled bool // Whether clawback is enabled for this account
|
||||
threshold f64 // Threshold amount for triggering clawback
|
||||
recipient u32 // Account ID of the recipient for clawback funds
|
||||
recipient u32 @[index] // Account ID of the recipient for clawback funds
|
||||
}
|
||||
|
||||
pub enum AccountStatus {
|
||||
@@ -65,10 +65,10 @@ pub enum AccountStatus {
|
||||
pub struct Transaction {
|
||||
core.Base
|
||||
pub mut:
|
||||
txid u32 // Unique identifier for the transaction
|
||||
source u32
|
||||
destination u32
|
||||
assetid u32
|
||||
txid u32 @[index] // Unique identifier for the transaction
|
||||
source u32 @[index]
|
||||
destination u32 @[index]
|
||||
assetid u32 @[index]
|
||||
amount f64
|
||||
timestamp u64
|
||||
status string // pending, confirmed, failed
|
||||
|
Reference in New Issue
Block a user