dchain-sdk-proto 0.11.0

Protobuf stuct defintions for Dchain
Documentation
// @generated
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
    #[prost(string, tag = "1")]
    pub platform_admin: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Depository {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub pauser: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub region: ::prost::alloc::string::String,
    #[prost(bool, tag = "5")]
    pub paused: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalNote {
    #[prost(message, optional, tag = "1")]
    pub payload: ::core::option::Option<Payload>,
    #[prost(message, optional, tag = "2")]
    pub metadata: ::core::option::Option<super::super::types::version::VersionMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Payload {
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub global_note_hash: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub total_supply: ::prost::alloc::string::String,
    /// Asset identification (used to compute PT denom via CompilePTDenom)
    #[prost(uint64, tag = "6")]
    pub asset_type_id: u64,
    #[prost(string, tag = "7")]
    pub notarised_asset_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PtTransferability {
    #[prost(bool, tag = "1")]
    pub paused: bool,
    #[prost(bool, tag = "2")]
    pub restrict_send: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PtHolder {
    #[prost(string, tag = "1")]
    pub holder: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub amount: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LatestPtHolders {
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub holders: ::prost::alloc::vec::Vec<PtHolder>,
}
/// Emitted when module parameters are updated
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventUpdateParams {
    /// The authority that updated the params
    #[prost(string, tag = "1")]
    pub authority: ::prost::alloc::string::String,
    /// The new platform admin address
    #[prost(string, tag = "2")]
    pub platform_admin: ::prost::alloc::string::String,
}
/// Emitted when a new depository is registered
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventRegisterDepository {
    /// The id of the newly created depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The admin who registered the depository
    #[prost(string, tag = "2")]
    pub admin: ::prost::alloc::string::String,
    /// The owner of the depository
    #[prost(string, tag = "3")]
    pub owner: ::prost::alloc::string::String,
    /// The pauser of the depository
    #[prost(string, tag = "4")]
    pub pauser: ::prost::alloc::string::String,
    /// The region of the depository
    #[prost(string, tag = "5")]
    pub region: ::prost::alloc::string::String,
}
/// Emitted when depository parameters are updated
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventUpdateDepositoryParams {
    /// The id of the depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The owner who updated the params
    #[prost(string, tag = "2")]
    pub owner: ::prost::alloc::string::String,
    /// The new owner address (if changed)
    #[prost(string, tag = "3")]
    pub new_owner: ::prost::alloc::string::String,
    /// The new pauser address (if changed)
    #[prost(string, tag = "4")]
    pub new_pauser: ::prost::alloc::string::String,
}
/// Emitted when a depository is paused
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventPauseDepository {
    /// The id of the depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The pauser who paused the depository
    #[prost(string, tag = "2")]
    pub pauser: ::prost::alloc::string::String,
}
/// Emitted when a depository is unpaused
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventUnpauseDepository {
    /// The id of the depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The pauser who unpaused the depository
    #[prost(string, tag = "2")]
    pub pauser: ::prost::alloc::string::String,
}
/// Emitted when an issuer is authorised for a depository
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventAddAuthorizedIssuer {
    /// The id of the depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The owner who added the authorisation
    #[prost(string, tag = "2")]
    pub owner: ::prost::alloc::string::String,
    /// The SPV issuer that was authorised
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
}
/// Emitted when an issuer is removed from a depository
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventRemoveAuthorizedIssuer {
    /// The id of the depository
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
    /// The owner who removed the authorisation
    #[prost(string, tag = "2")]
    pub owner: ::prost::alloc::string::String,
    /// The SPV issuer that was removed
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
}
/// Emitted when a PT is issued with a global note
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventIssuePtWithGlobalNote {
    /// The ISIN of the global note
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
    /// The id of the depository
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    /// The SPV issuer who issued the PT
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
    /// The hash of the global note
    #[prost(string, tag = "4")]
    pub global_note_hash: ::prost::alloc::string::String,
    /// The total supply of PTs issued
    #[prost(string, tag = "5")]
    pub total_supply: ::prost::alloc::string::String,
    /// The asset type id
    #[prost(uint64, tag = "6")]
    pub asset_type_id: u64,
    /// The notarised asset id
    #[prost(string, tag = "7")]
    pub notarised_asset_id: ::prost::alloc::string::String,
    /// The PT denom created
    #[prost(string, tag = "8")]
    pub pt_denom: ::prost::alloc::string::String,
}
/// Emitted when a global note is surrendered
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventSurrenderGlobalNote {
    /// The ISIN of the global note
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
    /// The SPV issuer who surrendered the global note
    #[prost(string, tag = "2")]
    pub spv_issuer: ::prost::alloc::string::String,
    /// The total amount of PT tokens burned
    #[prost(message, optional, tag = "3")]
    pub total_burnt: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
    /// The latest PT holders at the time of surrender
    #[prost(message, optional, tag = "4")]
    pub latest_pt_holders: ::core::option::Option<LatestPtHolders>,
}
/// GenesisState defines the depository's module's genesis state.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisState {
    #[prost(message, optional, tag = "1")]
    pub params: ::core::option::Option<Params>,
    #[prost(message, repeated, tag = "2")]
    pub depositories: ::prost::alloc::vec::Vec<Depository>,
    #[prost(message, repeated, tag = "3")]
    pub global_notes: ::prost::alloc::vec::Vec<GlobalNote>,
    #[prost(uint64, tag = "4")]
    pub depository_counter: u64,
    #[prost(map = "string, message", tag = "6")]
    pub pt_transfer_abilities:
        ::std::collections::HashMap<::prost::alloc::string::String, PtTransferability>,
    #[prost(map = "string, string", tag = "7")]
    pub authorized_issuers:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryGetParamsRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetParamsResponse {
    #[prost(message, optional, tag = "1")]
    pub params: ::core::option::Option<Params>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetDepositoryRequest {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetDepositoryResponse {
    #[prost(message, optional, tag = "1")]
    pub depository: ::core::option::Option<Depository>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNoteByIsinRequest {
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNoteByIsinResponse {
    #[prost(message, optional, tag = "1")]
    pub global_note: ::core::option::Option<GlobalNote>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNotesForSpvIssuerRequest {
    #[prost(string, tag = "1")]
    pub spv_issuer: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNotesForSpvIssuerResponse {
    #[prost(message, repeated, tag = "1")]
    pub global_notes: ::prost::alloc::vec::Vec<GlobalNote>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetDenomWithIsinRequest {
    #[prost(string, tag = "1")]
    pub isin: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetDenomWithIsinResponse {
    #[prost(string, tag = "1")]
    pub denom: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNoteByPtDenomRequest {
    #[prost(string, tag = "1")]
    pub pt_denom: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryGetGlobalNoteByPtDenomResponse {
    #[prost(message, optional, tag = "1")]
    pub global_note: ::core::option::Option<GlobalNote>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateParams {
    /// authority is the address that controls the module (defaults to x/gov unless
    /// overwritten).
    #[prost(string, tag = "1")]
    pub authority: ::prost::alloc::string::String,
    /// params defines the x/depository parameters to update.
    ///
    /// NOTE: All parameters must be supplied.
    #[prost(message, optional, tag = "2")]
    pub params: ::core::option::Option<Params>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgUpdateParamsResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgRegisterDepository {
    #[prost(string, tag = "1")]
    pub admin: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub pauser: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub region: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgRegisterDepositoryResponse {
    #[prost(string, tag = "1")]
    pub depository_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateDepositoryParams {
    #[prost(string, tag = "1")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub new_owner: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub new_pauser: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgUpdateDepositoryParamsResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgPauseDepository {
    #[prost(string, tag = "1")]
    pub pauser: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgPauseDepositoryResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUnpauseDepository {
    #[prost(string, tag = "1")]
    pub pauser: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgUnpauseDepositoryResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgAddAuthorizedIssuer {
    #[prost(string, tag = "1")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgAddAuthorizedIssuerResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgRemoveAuthorizedIssuer {
    #[prost(string, tag = "1")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub spv_issuer: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgRemoveAuthorizedIssuerResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgIssuePtWithGlobalNote {
    #[prost(string, tag = "1")]
    pub spv_issuer: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub depository_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub isin: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub global_note_hash: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub total_supply: ::prost::alloc::string::String,
    /// Asset identification
    #[prost(uint64, tag = "6")]
    pub asset_type_id: u64,
    #[prost(string, tag = "7")]
    pub notarised_asset_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgIssuePtWithGlobalNoteResponse {
    #[prost(message, optional, tag = "1")]
    pub global_note: ::core::option::Option<GlobalNote>,
    #[prost(string, tag = "2")]
    pub pt_denom: ::prost::alloc::string::String,
}
/// The sender must also send the PTs to be redeemed along with this message
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSurrenderGlobalNote {
    #[prost(string, tag = "1")]
    pub spv_issuer: ::prost::alloc::string::String,
    /// The ISIN of the global note to surrender
    #[prost(string, tag = "2")]
    pub isin: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSurrenderGlobalNoteResponse {
    #[prost(message, optional, tag = "1")]
    pub total_burnt: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
    #[prost(message, optional, tag = "2")]
    pub latest_pt_holders: ::core::option::Option<LatestPtHolders>,
}
include!("d.depository.v1.tonic.rs");
// @@protoc_insertion_point(module)