qorechain-sdk 0.7.0

QoreChain SDK for Rust: networks, denom/address utils, HD accounts (native/EVM/SVM), ML-DSA-87 PQC signing, typed messages for all custom modules, tx lifecycle (auto-gas, tracking, search), typed queries, WS subscriptions, and REST/JSON-RPC read clients.
Documentation
// @generated
// This file is @generated by prost-build.
/// LicenseView is the query-facing view of a license grant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseView {
    #[prost(string, tag="1")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub feature_id: ::prost::alloc::string::String,
    #[prost(int64, tag="3")]
    pub expires_at: i64,
    #[prost(int64, tag="4")]
    pub granted_at: i64,
    #[prost(string, tag="5")]
    pub granted_by: ::prost::alloc::string::String,
    #[prost(bool, tag="6")]
    pub suspended: bool,
    #[prost(string, tag="7")]
    pub metadata: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCheckRequest {
    #[prost(string, tag="1")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub feature_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCheckResponse {
    #[prost(message, optional, tag="1")]
    pub license: ::core::option::Option<LicenseView>,
    /// active is true when the grant exists and is not suspended.
    #[prost(bool, tag="2")]
    pub active: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryHoldersRequest {
    #[prost(string, tag="1")]
    pub feature_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryHoldersResponse {
    #[prost(message, repeated, tag="1")]
    pub licenses: ::prost::alloc::vec::Vec<LicenseView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryListRequest {
    #[prost(string, tag="1")]
    pub grantee: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryListResponse {
    #[prost(message, repeated, tag="1")]
    pub licenses: ::prost::alloc::vec::Vec<LicenseView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgGrantLicense {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub feature_id: ::prost::alloc::string::String,
    #[prost(int64, tag="4")]
    pub expires_at: i64,
    #[prost(string, tag="5")]
    pub metadata: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgGrantLicenseResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgRevokeLicense {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub feature_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgRevokeLicenseResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSuspendLicense {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub feature_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgSuspendLicenseResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgResumeLicense {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub grantee: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub feature_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgResumeLicenseResponse {
}
// @@protoc_insertion_point(module)