From c8454208981af1f639070967dc37e9f693044868 Mon Sep 17 00:00:00 2001 From: WaDadidou Date: Wed, 18 Dec 2024 19:32:32 -0500 Subject: [PATCH] core(launchpad): Restore marketplace whitelist code and ipfs VerifyPinned code --- go/pkg/launchpad/service.go | 16 ++++++++-------- packages/networks/teritori-testnet/index.ts | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go/pkg/launchpad/service.go b/go/pkg/launchpad/service.go index 96b1ee1e73..992b197e80 100644 --- a/go/pkg/launchpad/service.go +++ b/go/pkg/launchpad/service.go @@ -73,14 +73,14 @@ func (s *Launchpad) UploadMetadatas(ctx context.Context, req *launchpadpb.Upload } // Check pinning - // pinningSrv, err := NewPinningService(Pinata, pinataJwt) - // if err != nil { - // return nil, errors.Wrap(err, "failed to get pinning service") - // } - - // if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil { - // return nil, errors.Wrap(err, "failed to verify pinned images") - // } + pinningSrv, err := NewPinningService(Pinata, pinataJwt) + if err != nil { + return nil, errors.Wrap(err, "failed to get pinning service") + } + + if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil { + return nil, errors.Wrap(err, "failed to verify pinned images") + } // Check if all files have been pinned correctly for _, metadataItem := range req.Metadatas { diff --git a/packages/networks/teritori-testnet/index.ts b/packages/networks/teritori-testnet/index.ts index 72d85c8a0c..6c2b9f93d7 100644 --- a/packages/networks/teritori-testnet/index.ts +++ b/packages/networks/teritori-testnet/index.ts @@ -35,7 +35,7 @@ const cosmwasmNftLaunchpadFeature: CosmWasmNFTLaunchpad = { type: NetworkFeature.CosmWasmNFTLaunchpad, launchpadContractAddress: "tori1te7ku4de0k4rl8lhyuvpmhygaq7k7vy5zpsjq9y638efxsnx3aaqck2utf", - launchpadEndpoint: "https://dapp-backend.testnet.teritori.com", + launchpadEndpoint: "http://192.168.10.121:9080", nftTr721CodeId: 60, codeId: 71, defaultMintDenom: "utori", @@ -88,7 +88,7 @@ export const teritoriTestnetNetwork: CosmosNetworkInfo = { "https://explorer.teritori.com/teritori-testnet/account/$address", idPrefix: "testori", testnet: true, - backendEndpoint: "https://dapp-backend.testnet.teritori.com", + backendEndpoint: "http://192.168.1.78:9090", addressPrefix: "tori", restEndpoint: "https://rest.testnet.teritori.com", rpcEndpoint: "https://rpc.testnet.teritori.com",