From 4572e7e89465952aeb0df1e8380491b8fc3477b0 Mon Sep 17 00:00:00 2001 From: VojtechVitek <139342+VojtechVitek@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:00:38 +0000 Subject: [PATCH] [AUTOMATED] Update: proto/clients/marketplace.gen.go --- marketplace/marketplace.gen.go | 435 ++++++++++++++++----------------- 1 file changed, 214 insertions(+), 221 deletions(-) diff --git a/marketplace/marketplace.gen.go b/marketplace/marketplace.gen.go index 7b3457be..169ea543 100644 --- a/marketplace/marketplace.gen.go +++ b/marketplace/marketplace.gen.go @@ -1,6 +1,6 @@ -// marketplace-api 272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d +// marketplace-api 2a741588caf5651757a007188327512a86858fd2 // -- -// Code generated by webrpc-gen@v0.21.1 with golang generator. DO NOT EDIT. +// Code generated by webrpc-gen@v0.21.2 with golang generator. DO NOT EDIT. // // webrpc-gen -schema=proto/marketplace.ridl -target=golang -pkg=marketplace -client -out=proto/clients/marketplace.gen.go package marketplace @@ -20,7 +20,7 @@ import ( const WebrpcHeader = "Webrpc" -const WebrpcHeaderValue = "webrpc@v0.21.1;gen-golang@v0.16.0;marketplace-api@v0.0.0-272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d" +const WebrpcHeaderValue = "webrpc@v0.21.2;gen-golang@v0.16.1;marketplace-api@v0.0.0-2a741588caf5651757a007188327512a86858fd2" // WebRPC description and code-gen version func WebRPCVersion() string { @@ -34,7 +34,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "272a2d3c9208fb21b84c88a2a8cbd9ab8e29964d" + return "2a741588caf5651757a007188327512a86858fd2" } type WebrpcGenVersions struct { @@ -1347,210 +1347,217 @@ type CheckoutOptions struct { OnRamp []TransactionOnRampProvider `json:"onRamp"` } -var ( - methods = map[string]method{ - "/rpc/Admin/CreateCollection": { - Name: "CreateCollection", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/GetCollection": { - Name: "GetCollection", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/ListCollections": { - Name: "ListCollections", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/DeleteCollection": { - Name: "DeleteCollection", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/SyncCollection": { - Name: "SyncCollection", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/CreateCurrency": { - Name: "CreateCurrency", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/CreateCurrencies": { - Name: "CreateCurrencies", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/UpdateCurrency": { - Name: "UpdateCurrency", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/ListCurrencies": { - Name: "ListCurrencies", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Admin/DeleteCurrency": { - Name: "DeleteCurrency", - Service: "Admin", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/ListCurrencies": { - Name: "ListCurrencies", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetCollectible": { - Name: "GetCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetLowestPriceOfferForCollectible": { - Name: "GetLowestPriceOfferForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetHighestPriceOfferForCollectible": { - Name: "GetHighestPriceOfferForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetLowestPriceListingForCollectible": { - Name: "GetLowestPriceListingForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetHighestPriceListingForCollectible": { - Name: "GetHighestPriceListingForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/ListListingsForCollectible": { - Name: "ListListingsForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/ListOffersForCollectible": { - Name: "ListOffersForCollectible", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetCollectibleLowestOffer": { - Name: "GetCollectibleLowestOffer", - Service: "Marketplace", - Annotations: map[string]string{"auth": "ApiKeyAuth", "deprecated": "GetLowestPriceOfferForCollectible"}, - }, - "/rpc/Marketplace/GetCollectibleHighestOffer": { - Name: "GetCollectibleHighestOffer", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "GetHighestPriceOfferForCollectible"}, - }, - "/rpc/Marketplace/GetCollectibleLowestListing": { - Name: "GetCollectibleLowestListing", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "GetLowestPriceListingForCollectible"}, - }, - "/rpc/Marketplace/GetCollectibleHighestListing": { - Name: "GetCollectibleHighestListing", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "GetHighestPriceListingForCollectible"}, - }, - "/rpc/Marketplace/ListCollectibleListings": { - Name: "ListCollectibleListings", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "ListListingsForCollectible"}, - }, - "/rpc/Marketplace/ListCollectibleOffers": { - Name: "ListCollectibleOffers", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "ListOffersForCollectible"}, - }, - "/rpc/Marketplace/GenerateBuyTransaction": { - Name: "GenerateBuyTransaction", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GenerateSellTransaction": { - Name: "GenerateSellTransaction", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GenerateListingTransaction": { - Name: "GenerateListingTransaction", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GenerateOfferTransaction": { - Name: "GenerateOfferTransaction", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/Execute": { - Name: "Execute", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/ListCollectibles": { - Name: "ListCollectibles", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetCountOfAllCollectibles": { - Name: "GetCountOfAllCollectibles", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetCountOfFilteredCollectibles": { - Name: "GetCountOfFilteredCollectibles", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/GetFloorOrder": { - Name: "GetFloorOrder", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/ListCollectiblesWithLowestListing": { - Name: "ListCollectiblesWithLowestListing", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "ListCollectibles"}, - }, - "/rpc/Marketplace/ListCollectiblesWithHighestOffer": { - Name: "ListCollectiblesWithHighestOffer", - Service: "Marketplace", - Annotations: map[string]string{"deprecated": "ListCollectibles"}, - }, - "/rpc/Marketplace/SyncOrder": { - Name: "SyncOrder", - Service: "Marketplace", - Annotations: map[string]string{"internal": ""}, - }, - "/rpc/Marketplace/SyncOrders": { - Name: "SyncOrders", - Service: "Marketplace", - Annotations: map[string]string{"internal": ""}, - }, - "/rpc/Marketplace/GetOrders": { - Name: "GetOrders", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/CheckoutOptionsMarketplace": { - Name: "CheckoutOptionsMarketplace", - Service: "Marketplace", - Annotations: map[string]string{}, - }, - "/rpc/Marketplace/CheckoutOptionsSalesContract": { - Name: "CheckoutOptionsSalesContract", - Service: "Marketplace", - Annotations: map[string]string{}, - }, +var methods = map[string]method{ + "/rpc/Admin/CreateCollection": { + Name: "CreateCollection", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/GetCollection": { + Name: "GetCollection", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/ListCollections": { + Name: "ListCollections", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/DeleteCollection": { + Name: "DeleteCollection", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/SyncCollection": { + Name: "SyncCollection", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/CreateCurrency": { + Name: "CreateCurrency", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300a"}, + }, + "/rpc/Admin/CreateCurrencies": { + Name: "CreateCurrencies", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/UpdateCurrency": { + Name: "UpdateCurrency", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/ListCurrencies": { + Name: "ListCurrencies", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Admin/DeleteCurrency": { + Name: "DeleteCurrency", + Service: "Admin", + Annotations: map[string]string{"auth": "User", "credits": "300"}, + }, + "/rpc/Marketplace/ListCurrencies": { + Name: "ListCurrencies", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetCollectible": { + Name: "GetCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetLowestPriceOfferForCollectible": { + Name: "GetLowestPriceOfferForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetHighestPriceOfferForCollectible": { + Name: "GetHighestPriceOfferForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetLowestPriceListingForCollectible": { + Name: "GetLowestPriceListingForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetHighestPriceListingForCollectible": { + Name: "GetHighestPriceListingForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/ListListingsForCollectible": { + Name: "ListListingsForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/ListOffersForCollectible": { + Name: "ListOffersForCollectible", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetCollectibleLowestOffer": { + Name: "GetCollectibleLowestOffer", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "GetLowestPriceOfferForCollectible"}, + }, + "/rpc/Marketplace/GetCollectibleHighestOffer": { + Name: "GetCollectibleHighestOffer", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "GetHighestPriceOfferForCollectible"}, + }, + "/rpc/Marketplace/GetCollectibleLowestListing": { + Name: "GetCollectibleLowestListing", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "GetLowestPriceListingForCollectible"}, + }, + "/rpc/Marketplace/GetCollectibleHighestListing": { + Name: "GetCollectibleHighestListing", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "GetHighestPriceListingForCollectible"}, + }, + "/rpc/Marketplace/ListCollectibleListings": { + Name: "ListCollectibleListings", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "ListListingsForCollectible"}, + }, + "/rpc/Marketplace/ListCollectibleOffers": { + Name: "ListCollectibleOffers", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "ListOffersForCollectible"}, + }, + "/rpc/Marketplace/GenerateBuyTransaction": { + Name: "GenerateBuyTransaction", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GenerateSellTransaction": { + Name: "GenerateSellTransaction", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GenerateListingTransaction": { + Name: "GenerateListingTransaction", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GenerateOfferTransaction": { + Name: "GenerateOfferTransaction", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/Execute": { + Name: "Execute", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/ListCollectibles": { + Name: "ListCollectibles", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetCountOfAllCollectibles": { + Name: "GetCountOfAllCollectibles", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetCountOfFilteredCollectibles": { + Name: "GetCountOfFilteredCollectibles", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/GetFloorOrder": { + Name: "GetFloorOrder", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/ListCollectiblesWithLowestListing": { + Name: "ListCollectiblesWithLowestListing", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "ListCollectibles"}, + }, + "/rpc/Marketplace/ListCollectiblesWithHighestOffer": { + Name: "ListCollectiblesWithHighestOffer", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "deprecated": "ListCollectibles"}, + }, + "/rpc/Marketplace/SyncOrder": { + Name: "SyncOrder", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "internal": ""}, + }, + "/rpc/Marketplace/SyncOrders": { + Name: "SyncOrders", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300", "internal": ""}, + }, + "/rpc/Marketplace/GetOrders": { + Name: "GetOrders", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/CheckoutOptionsMarketplace": { + Name: "CheckoutOptionsMarketplace", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, + "/rpc/Marketplace/CheckoutOptionsSalesContract": { + Name: "CheckoutOptionsSalesContract", + Service: "Marketplace", + Annotations: map[string]string{"auth": "Public", "credits": "300"}, + }, +} + +func WebrpcMethods() map[string]method { + res := make(map[string]method, len(methods)) + for k, v := range methods { + res[k] = v } -) + + return res +} var WebRPCServices = map[string][]string{ "Admin": { @@ -1628,19 +1635,14 @@ type Marketplace interface { ListOffersForCollectible(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) // Deprecated: GetCollectibleLowestOffer(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetHighestPriceOfferForCollectible() // Deprecated: GetCollectibleHighestOffer(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetLowestPriceListingForCollectible() // Deprecated: GetCollectibleLowestListing(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetHighestPriceListingForCollectible() // Deprecated: GetCollectibleHighestListing(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use ListListingsForCollectible() // Deprecated: ListCollectibleListings(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) - // This endpoint is deprecated. Please use ListOffersForCollectible() // Deprecated: ListCollectibleOffers(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) // checkout process @@ -1654,10 +1656,8 @@ type Marketplace interface { GetCountOfAllCollectibles(ctx context.Context, contractAddress string) (uint64, error) GetCountOfFilteredCollectibles(ctx context.Context, side OrderSide, contractAddress string, filter *CollectiblesFilter) (uint64, error) GetFloorOrder(ctx context.Context, contractAddress string, filter *CollectiblesFilter) (*CollectibleOrder, error) - // Deprecated use ListCollectibles() with OrderSide = Listing // Deprecated: ListCollectiblesWithLowestListing(ctx context.Context, contractAddress string, filter *CollectiblesFilter, page *Page) ([]*CollectibleOrder, *Page, error) - // Deprecated use ListCollectibles() with OrderSide = Offer // Deprecated: ListCollectiblesWithHighestOffer(ctx context.Context, contractAddress string, filter *CollectiblesFilter, page *Page) ([]*CollectibleOrder, *Page, error) SyncOrder(ctx context.Context, order *Order) error @@ -1696,19 +1696,14 @@ type MarketplaceClient interface { ListOffersForCollectible(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) // Deprecated: GetCollectibleLowestOffer(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetHighestPriceOfferForCollectible() // Deprecated: GetCollectibleHighestOffer(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetLowestPriceListingForCollectible() // Deprecated: GetCollectibleLowestListing(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use GetHighestPriceListingForCollectible() // Deprecated: GetCollectibleHighestListing(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter) (*Order, error) - // This endpoint is deprecated. Please use ListListingsForCollectible() // Deprecated: ListCollectibleListings(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) - // This endpoint is deprecated. Please use ListOffersForCollectible() // Deprecated: ListCollectibleOffers(ctx context.Context, contractAddress string, tokenId string, filter *OrderFilter, page *Page) ([]*Order, *Page, error) // checkout process @@ -1722,10 +1717,8 @@ type MarketplaceClient interface { GetCountOfAllCollectibles(ctx context.Context, contractAddress string) (uint64, error) GetCountOfFilteredCollectibles(ctx context.Context, side OrderSide, contractAddress string, filter *CollectiblesFilter) (uint64, error) GetFloorOrder(ctx context.Context, contractAddress string, filter *CollectiblesFilter) (*CollectibleOrder, error) - // Deprecated use ListCollectibles() with OrderSide = Listing // Deprecated: ListCollectiblesWithLowestListing(ctx context.Context, contractAddress string, filter *CollectiblesFilter, page *Page) ([]*CollectibleOrder, *Page, error) - // Deprecated use ListCollectibles() with OrderSide = Offer // Deprecated: ListCollectiblesWithHighestOffer(ctx context.Context, contractAddress string, filter *CollectiblesFilter, page *Page) ([]*CollectibleOrder, *Page, error) SyncOrder(ctx context.Context, order *Order) error