The Metaverse Engine 2.0

RealmLink
3 min readOct 15, 2022

--

The goal of this journey was to find a solution to interoperability. 1.0 worked in theory but it greatly took away from the user experience & would mainly be best for low effort gaming, not the vibe I was going for.

The 1000ft view

It’s hard to see Ik.

The DAO/Multi-Sig

User voting is off-chain & any actions taken upon the ecosystem has to be approved by two parties, a dev team & a community team. The dev team signs when technical specification have been met & the community team signs based on the off-chain user voting.

Management Information

To make sure we decouple as many of the required areas as possible & that we don’t hit that contract size limit all information regarding allowed minters & games should be stored on this contract.

The Ecosystem Token

Just an ERC20 token for accepting payments in.

The Stats Contract

This will be the shared database between different sources of character.

Minters

As I said earlier about the dev team this one place where the tech requirements need to be met.

For example the metadata would look something like this.

{
"name": "NFT #1",
"description": "This is the best you're getting",
"image":"ipfs://baeafnnqbiqeo4nuse72ejpxld3pncvbcdb7/1.png",
"spritesheet_1":"ipfs://baeafnnqbijujpxld3pnfdscvbcdb7/1.png",
"spritesheet_2":"ipfs://baeafnnqbiqujpxld3pnfdscvbcdb7/1.png",
"spritesheet_3":"ipfs://baeafnnqbo4ejujpxld3pnfdscvbcdb7/1.png",
"spritesheet_4":"ipfs://baeafnnqbi4ejujpxld3pnfdscvbcdb7/1.png",
"dna": "f585ddc968328d295b8092f12b2beb088990037f",
"edition": 1,
"date": 1641423728080,
"attributes": [
{
"trait_type": "Background",
"value": "Gradient Lime & Green"
},
...
]
}

The goal here is to build a Unity SDK to automate the process of retrieving a TokenURI, retrieving the metadata, downloading the images & slicing up the spritesheets(flattened 2D animation) to give the game being played on the character being requested to use. 3D is possible here just thought 2D would be quicker & easier.

The Game(Relay) Contract

Unlike my other examples in previous articles, the game logic is not on the chain this time as to enable PVP.

Okay we’ve got the boilerplate out the way but what about this pvp verification system?

By leveraging ECDSA we can allow these systems to process outcomes via authorised channels.

More info on the verification process here. https://medium.com/p/63a563c56b96

If you found this to be interesting check this out!
https://medium.com/p/9eda96d06973

Solidity Dev Study Group — https://discord.gg/KzbcGmrnfN

-Polygon Alliance — https://www.polygonalliance.com/

-Polygon Alliance Discord — https://discord.gg/kJKPCGQu66

Did you enjoy this article?
Feel like buying me a cup of coffee?
Polygon/Eth/Bsc — 0x4A581E0eaf6b71D05905e8E6014dc0277A1B10ad

New to trading? Try crypto trading bots or copy trading on best crypto exchanges

Join Coinmonks Telegram Channel and Youtube Channel get daily Crypto News

Also, Read

--

--