penumbra_sdk_funding/
params.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use penumbra_sdk_proto::core::component::funding::v1 as pb;
use penumbra_sdk_proto::DomainType;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(try_from = "pb::FundingParameters", into = "pb::FundingParameters")]
pub struct FundingParameters {}

impl DomainType for FundingParameters {
    type Proto = pb::FundingParameters;
}

impl TryFrom<pb::FundingParameters> for FundingParameters {
    type Error = anyhow::Error;

    fn try_from(_params: pb::FundingParameters) -> anyhow::Result<Self> {
        Ok(FundingParameters {})
    }
}

impl From<FundingParameters> for pb::FundingParameters {
    fn from(_params: FundingParameters) -> Self {
        pb::FundingParameters {}
    }
}

impl Default for FundingParameters {
    fn default() -> Self {
        Self {}
    }
}