diff --git a/go/pkg/networks/features.gen.go b/go/pkg/networks/features.gen.go index 38e4b4e923..dc028972b1 100644 --- a/go/pkg/networks/features.gen.go +++ b/go/pkg/networks/features.gen.go @@ -2,7 +2,6 @@ package networks import ( "encoding/json" - "github.com/pkg/errors" ) diff --git a/networks.json b/networks.json index 94702a60ba..dbf3643c97 100644 --- a/networks.json +++ b/networks.json @@ -11636,14 +11636,6 @@ "type": "CosmWasmNFTsBurner", "burnerContractAddress": "tori1qyl0j7a24amk8k8gcmvv07y2zjx7nkcwpk73js24euh64hkja6esd2p2xp" }, - { - "type": "NFTLaunchpad", - "launchpadContractAddress": "tori1te7ku4de0k4rl8lhyuvpmhygaq7k7vy5zpsjq9y638efxsnx3aaqck2utf", - "launchpadEndpoint": "https://dapp-backend.testnet.teritori.com", - "nftTr721CodeId": 60, - "codeId": 71, - "defaultMintDenom": "utori" - }, { "type": "NFTMarketplace", "cwAddressListCodeId": 63, diff --git a/rust/apipb/src/launchpad.v1.rs b/rust/apipb/src/launchpad.v1.rs index f401063ff1..0cedabac04 100644 --- a/rust/apipb/src/launchpad.v1.rs +++ b/rust/apipb/src/launchpad.v1.rs @@ -4,185 +4,209 @@ #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectsByCreatorRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub creator_id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub network_id: ::prost::alloc::string::String, - #[prost(int32, tag = "3")] + #[prost(int32, tag="3")] pub limit: i32, - #[prost(int32, tag = "4")] + #[prost(int32, tag="4")] pub offset: i32, - #[prost(enumeration = "Sort", tag = "5")] + #[prost(enumeration="Sort", tag="5")] pub sort: i32, - #[prost(enumeration = "SortDirection", tag = "6")] + #[prost(enumeration="SortDirection", tag="6")] pub sort_direction: i32, - #[prost(enumeration = "Status", optional, tag = "7")] + #[prost(enumeration="Status", optional, tag="7")] pub status: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectsByCreatorResponse { - #[prost(message, repeated, tag = "1")] + #[prost(message, repeated, tag="1")] pub projects: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectsRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub network_id: ::prost::alloc::string::String, - #[prost(int32, tag = "2")] + #[prost(int32, tag="2")] pub limit: i32, - #[prost(int32, tag = "3")] + #[prost(int32, tag="3")] pub offset: i32, - #[prost(enumeration = "Sort", tag = "4")] + #[prost(enumeration="Sort", tag="4")] pub sort: i32, - #[prost(enumeration = "SortDirection", tag = "5")] + #[prost(enumeration="SortDirection", tag="5")] pub sort_direction: i32, - #[prost(enumeration = "Status", optional, tag = "6")] + #[prost(enumeration="Status", optional, tag="6")] pub status: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectsResponse { - #[prost(message, repeated, tag = "1")] + #[prost(message, repeated, tag="1")] pub projects: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectByIdRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub network_id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub project_id: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProjectByIdResponse { - #[prost(message, optional, tag = "1")] + #[prost(message, optional, tag="1")] pub project: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UploadMetadatasRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub sender: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub network_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub project_id: ::prost::alloc::string::String, - #[prost(message, repeated, tag = "4")] + #[prost(message, repeated, tag="4")] pub metadatas: ::prost::alloc::vec::Vec, - #[prost(string, optional, tag = "5")] + #[prost(string, optional, tag="5")] pub pinata_jwt: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UploadMetadatasResponse { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub merkle_root: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CalculateCollectionMerkleRootRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub sender: ::prost::alloc::string::String, - #[prost(message, repeated, tag = "2")] + #[prost(message, repeated, tag="2")] pub metadatas: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CalculateCollectionMerkleRootResponse { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub merkle_root: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TokenMetadataRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub sender: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub network_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub project_id: ::prost::alloc::string::String, - #[prost(uint32, tag = "4")] + #[prost(uint32, tag="4")] pub token_id: u32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TokenMetadataResponse { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub merkle_root: ::prost::alloc::string::String, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub metadata: ::core::option::Option, - #[prost(string, repeated, tag = "3")] + #[prost(string, repeated, tag="3")] pub merkle_proof: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchpadProjectsCountRequest { - #[prost(string, tag = "1")] +pub struct LaunchpadProjectsCountsRequest { + #[prost(string, tag="1")] pub network_id: ::prost::alloc::string::String, - #[prost(enumeration = "Status", optional, tag = "2")] - pub status: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchpadProjectsCountResponse { - #[prost(uint32, tag = "1")] - pub count: u32, +pub struct LaunchpadProjectsCountsResponse { + #[prost(message, repeated, tag="1")] + pub status_counts: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProposeApproveProjectRequest { + #[prost(string, tag="1")] + pub sender: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub network_id: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub project_id: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub proposal_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProposeApproveProjectResponse { + #[prost(bool, tag="1")] + pub approved: bool, } // ------------------------------- +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StatusCount { + #[prost(enumeration="Status", tag="1")] + pub status: i32, + #[prost(uint32, tag="2")] + pub count: u32, +} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LaunchpadProject { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub network_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub creator_id: ::prost::alloc::string::String, - #[prost(string, tag = "4")] + #[prost(string, tag="4")] pub collection_data: ::prost::alloc::string::String, - #[prost(string, optional, tag = "5")] - pub merkle_root: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "6")] - pub deployed_address: ::core::option::Option<::prost::alloc::string::String>, + #[prost(enumeration="Status", tag="5")] + pub status: i32, + #[prost(string, optional, tag="6")] + pub proposal_id: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { - #[prost(string, optional, tag = "1")] + #[prost(string, optional, tag="1")] pub image: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "2")] + #[prost(string, optional, tag="2")] pub image_data: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "3")] + #[prost(string, optional, tag="3")] pub external_url: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "4")] + #[prost(string, optional, tag="4")] pub description: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "5")] + #[prost(string, optional, tag="5")] pub name: ::core::option::Option<::prost::alloc::string::String>, - #[prost(message, repeated, tag = "6")] + #[prost(message, repeated, tag="6")] pub attributes: ::prost::alloc::vec::Vec, - #[prost(string, optional, tag = "7")] + #[prost(string, optional, tag="7")] pub background_color: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "8")] + #[prost(string, optional, tag="8")] pub animation_url: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "9")] + #[prost(string, optional, tag="9")] pub youtube_url: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint64, optional, tag = "10")] + #[prost(uint64, optional, tag="10")] pub royalty_percentage: ::core::option::Option, - #[prost(string, optional, tag = "11")] + #[prost(string, optional, tag="11")] pub royalty_payment_address: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Trait { - #[prost(string, optional, tag = "1")] + #[prost(string, optional, tag="1")] pub display_type: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub trait_type: ::prost::alloc::string::String, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub value: ::prost::alloc::string::String, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -246,8 +270,8 @@ pub enum Status { Unspecified = 0, Incomplete = 1, Complete = 2, - Confirmed = 3, - Deployed = 4, + Reviewing = 3, + Confirmed = 4, } impl Status { /// String value of the enum field names used in the ProtoBuf definition. @@ -259,8 +283,8 @@ impl Status { Status::Unspecified => "STATUS_UNSPECIFIED", Status::Incomplete => "STATUS_INCOMPLETE", Status::Complete => "STATUS_COMPLETE", + Status::Reviewing => "STATUS_REVIEWING", Status::Confirmed => "STATUS_CONFIRMED", - Status::Deployed => "STATUS_DEPLOYED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -269,8 +293,8 @@ impl Status { "STATUS_UNSPECIFIED" => Some(Self::Unspecified), "STATUS_INCOMPLETE" => Some(Self::Incomplete), "STATUS_COMPLETE" => Some(Self::Complete), + "STATUS_REVIEWING" => Some(Self::Reviewing), "STATUS_CONFIRMED" => Some(Self::Confirmed), - "STATUS_DEPLOYED" => Some(Self::Deployed), _ => None, } }