Skip to content

Commit f29b93c

Browse files
committed
cleanup
1 parent 4cbf98e commit f29b93c

File tree

3 files changed

+3
-44
lines changed

3 files changed

+3
-44
lines changed

catalyst-gateway/bin/src/service/api/cardano/cip36/response.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use poem_openapi::{
88
ApiResponse, NewType, Object,
99
};
1010

11-
use crate::service::{common, common::types::array_types::impl_array_types};
11+
use crate::service::common::{self, types::array_types::impl_array_types};
1212

1313
// ToDo: The examples of this response should be taken from representative data from a
1414
// response generated on pre-prod.
@@ -142,10 +142,10 @@ pub(crate) struct Cip36Details {
142142
pub payment_address: Option<common::types::cardano::cip19_shelley_address::Cip19ShelleyAddress>,
143143
/// If the payment address is a script, then it can not be payed rewards.
144144
#[oai(default)]
145-
pub is_payable: common::types::cardano::boolean::IsPayable,
145+
pub is_payable: common::types::generic::boolean::BooleanFlag,
146146
/// If this field is set, then the registration was in CIP15 format.
147147
#[oai(default)]
148-
pub cip15: common::types::cardano::boolean::IsCip15,
148+
pub cip15: common::types::generic::boolean::BooleanFlag,
149149
/// If there are errors with this registration, they are listed here.
150150
/// This field is *NEVER* returned for a valid registration.
151151
#[oai(skip_serializing_if_is_none)]

catalyst-gateway/bin/src/service/common/types/cardano/boolean.rs

-40
This file was deleted.

catalyst-gateway/bin/src/service/common/types/cardano/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
pub(crate) mod ada_value;
44
pub(crate) mod asset_name;
55
pub(crate) mod asset_value;
6-
pub(crate) mod boolean;
76
pub(crate) mod catalyst_id;
87
pub(crate) mod cip19_shelley_address;
98
pub(crate) mod cip19_stake_address;

0 commit comments

Comments
 (0)