| | 1 | | using Cysharp.Threading.Tasks; |
| | 2 | | using DCL.Social.Passports; |
| | 3 | | using System; |
| | 4 | | using System.Collections.Generic; |
| | 5 | | using UnityEngine; |
| | 6 | |
|
| | 7 | | namespace DCl.Social.Passports |
| | 8 | | { |
| | 9 | |
|
| | 10 | | public class WebInterfacePassportApiBridge : IPassportApiBridge |
| | 11 | | { |
| | 12 | |
|
| 0 | 13 | | public WebInterfacePassportApiBridge() { } |
| | 14 | |
|
| | 15 | | public async UniTask<List<Nft>> QueryNftCollectionsEthereum(string userId) |
| | 16 | | { |
| 0 | 17 | | List<Nft> nftList = new List<Nft>(); |
| 0 | 18 | | await DCL.Environment.i.platform.serviceProviders.theGraph.QueryNftCollections(userId, NftCollectionsLayer.E |
| 0 | 19 | | .Then((nfts) => nftList = nfts); |
| | 20 | |
|
| 0 | 21 | | return nftList; |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | public async UniTask<List<Nft>> QueryNftCollectionsMatic(string userId) |
| | 25 | | { |
| 0 | 26 | | List<Nft> nftList = new List<Nft>(); |
| 0 | 27 | | await DCL.Environment.i.platform.serviceProviders.theGraph.QueryNftCollections(userId, NftCollectionsLayer.M |
| 0 | 28 | | .Then((nfts) => nftList = nfts); |
| | 29 | |
|
| 0 | 30 | | return nftList; |
| 0 | 31 | | } |
| | 32 | | } |
| | 33 | | } |