Skip to content

Commit

Permalink
Merge pull request #87 from decentraland/support-tpw-urn
Browse files Browse the repository at this point in the history
Support tpw urn
  • Loading branch information
agusaldasoro authored Nov 12, 2021
2 parents 6305a56 + 851e23a commit 1cfb0dd
Show file tree
Hide file tree
Showing 7 changed files with 1,951 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const parsed = await parseUrn("urn:decentraland:ropsten:LAND:-10,-13?atBlock=151
- `decentraland:{protocol}:collections-v2:{contract(0x[a-fA-F0-9]+)}:{id}`: Resolve an ethereum wearables collection asset by contract address (v2)
- `decentraland:{protocol}:LAND:{x},{y}`: Resolves the ethereum asset of a LAND position.
- `decentraland:{protocol}:LAND:{tokenId}`: Resolves the ethereum asset of a LAND by tokenId.
- `decentraland:{protocol}:collections-thirdparty:{thirdPartyName}:{collectionId}:{itemId}`: Resolves the ethereum asset of an item of a third party collection, currently only supported on polygon

# DecentralandAssetIdentifier

Expand Down
14 changes: 11 additions & 3 deletions etc/urn-resolver.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ export type BlockchainAsset = BaseBlockchainAsset & {
id: string;
};

// @public (undocumented)
export type BlockchainCollectionThirdParty = BaseBlockchainAsset & {
namespace: 'decentraland';
type: "blockchain-collection-third-party";
thirdPartyName: string;
collectionId: string;
itemId: string;
};

// @public (undocumented)
export type BlockchainCollectionV1 = {
namespace: 'decentraland';
Expand Down Expand Up @@ -63,7 +72,7 @@ export type BlockchainLandAsset = BlockchainAsset & {
};

// @public (undocumented)
export type DecentralandAssetIdentifier = BlockchainAsset | OffChainAsset | BlockchainCollectionV1Asset | BlockchainCollectionV2Asset | BlockchainLandAsset | BlockchainCollectionV1 | BlockchainCollectionV2;
export type DecentralandAssetIdentifier = BlockchainAsset | OffChainAsset | BlockchainCollectionV1Asset | BlockchainCollectionV2Asset | BlockchainLandAsset | BlockchainCollectionV1 | BlockchainCollectionV2 | BlockchainCollectionThirdParty;

// @public (undocumented)
export namespace LandUtils {
Expand All @@ -82,7 +91,7 @@ export namespace LandUtils {
x: number;
y: number;
};
{};
{};
}

// @public (undocumented)
Expand All @@ -109,7 +118,6 @@ export type ResolversOptions = Partial<{
// @public
export function resolveUrlFromUrn(urn: string, options?: ResolversOptions): Promise<string | null>;


// (No @packageDocumentation comment for this package)

```
Loading

0 comments on commit 1cfb0dd

Please sign in to comment.