diff --git a/src/models/pools.rs b/src/models/pools.rs index 4e3d791..5a42f6a 100644 --- a/src/models/pools.rs +++ b/src/models/pools.rs @@ -33,7 +33,6 @@ pub struct PoolMintedBlocks { #[derive(Deserialize, Debug, Clone)] pub struct StakePoolDelegator { - pub active_epoch_no: i64, pub amount: String, pub latest_delegation_tx_hash: String, pub stake_address: String, @@ -79,7 +78,6 @@ pub struct Relay { #[derive(Deserialize, Debug, Clone)] pub struct StakePoolDetails { - pub active_epoch_no: i64, pub active_stake: i64, pub block_count: i64, pub fixed_cost: i64, diff --git a/src/models/scripts.rs b/src/models/scripts.rs index bb2520d..a7641e4 100644 --- a/src/models/scripts.rs +++ b/src/models/scripts.rs @@ -6,6 +6,7 @@ use serde::Serialize; pub enum ScriptVersion { PlutusV1, PlutusV2, + PlutusV3, } #[derive(Serialize, Deserialize, Debug, Clone)] diff --git a/src/models/transactions.rs b/src/models/transactions.rs index 92daae4..3a6ee67 100644 --- a/src/models/transactions.rs +++ b/src/models/transactions.rs @@ -5,12 +5,24 @@ use super::{addresses::Utxo, scripts::Script}; #[derive(Deserialize, Debug, Clone)] pub struct Certificates { + pub auth_committee_hot_certs: Vec, pub mir_transfers: Vec, pub pool_registrations: Vec, pub pool_retirements: Vec, + pub reg_certs: Vec, + pub reg_drep_certs: Vec, + pub resign_committee_cold_certs: Vec, pub stake_delegations: Vec, pub stake_deregistrations: Vec, - pub stake_registrations_reserves: Vec, + pub stake_reg_delegations: Vec, + pub stake_registrations: Vec, + pub stake_vote_delegations: Vec, + pub stake_vote_reg_delegations: Vec, + pub unreg_certs: Vec, + pub unreg_drep_certs: Vec, + pub update_drep_certs: Vec, + pub vote_delegations: Vec, + pub vote_reg_delegations: Vec, } #[derive(Deserialize, Debug, Clone)] @@ -19,6 +31,14 @@ pub struct Redeemers { pub mints: Vec, pub spends: Vec, pub withdrawals: Vec, + pub votes: Vec, + pub proposals: Vec, +} + +#[derive(Deserialize, Debug, Clone)] +pub struct MintAsset { + pub unit: String, + pub amount: serde_json::Value, } #[derive(Deserialize, Debug, Clone)] @@ -38,7 +58,7 @@ pub struct TransactionDetail { pub invalid_before: i64, pub invalid_hereafter: i64, pub metadata: serde_json::Value, - pub mint: Vec, + pub mint: Vec, pub outputs: Vec, pub redeemers: Vec, pub reference_inputs: Vec,