Universal Location for Bridgeless Minting
The spec for constructing Universal Locations was drafted in this Github issue.
In this section we illustrate its usage for Bridgeless Minting, allowing any chain to point to a LAOS sibling collection. The second main usage serves DAME, allowing LAOS to point to any asset in any chain.
Universal Location to be used as BaseURI
The specification of the Universal Location, to be used as the returned string in tokenURI
queries to ERC721 contracts, beyond the Polkadot ecosystem, is drafted in this Github issue. The specific strings to be used for LAOS Mainnet and Testnet are detailed here.
As a summary, the following Universal Location string:
would refer to:
an asset with
tokenId = 666
,in the sibling collection at
contractAddress = 0xabc....def,
in the LAOS Sigma Testnet chain, which is always specified by providing the same triplet:
GlobalConsensus = 0:0x77a...64f
(Testnet Paseo Relay Chain),Parachain = 4006
,PalletInstance = 51
.
The template contract described above takes care to append the /GeneralKey(tokenId)
suffix to the current value of baseURI
.
The uloc://
prefix and public gateways
uloc://
prefix and public gatewaysThe uloc://
prefix tag serves the same purposes as, for example, the ipfs://
tag, indicating how the rest of the string is to be interpreted.
Services ready to interpret and operate with these standards, such as browsers (e.g. Brave), marketplaces (e.g. Opensea), or nodes (e.g. the Universal Node), are free to permissionlessly implement their own means to resolve and deal with these locations.
For example, in the IPFS case, some services resolve ipfs://
to popular public gateways, such as https://ipfs.io.
Likewise, the public https://uloc.io
gateway, maintained by the LAOS Foundation, can be used to resolve uloc://
prefixed locations. Check this example.
Until Bridgeless Minting and Evolution becomes more widely adopted by the ecosystem, it is advisable to use the public gateway instead of the prefix tag as baseURI
. The uERC721 template provides the option to migrate from the former to the latter in the future, and lock its value to the prefix tag.
Last updated