Cross chain smart contracts

I’m curious if anyone has cool smart contract ideas which would have some unique feature/behavior that benefits from cross chain interactions. Please share!

We all know the benefits of Quai’s sharded design (namely scalability), and its natural for us to think of ways to build our favorite dApps in a way that works how we are used to dApps working in a single chain. E.g. its fun to think about how a token contract similar to ERC20’s can be extended to work across chains… but these are “single chain” dApps that we can make “multi-chain”. What about the opposite? Can anyone think of a dApp which only works in a multi-chain construct and has no single-chain analog?

Curious to hear if anyone has thought about this or has any interesting ideas.

18 Likes

Really interested to see seamless multi-chain NFTs. Having cross-chain composability out of the box is quite a new dynamic for dApp developers. There may be a few hurdles to deploy simultaneously since the current smart contract infra does not support it although in time it will get easier.

13 Likes

One idea I’ve considered is that tokens can now have historical “location” attributes. For example, an NFT project can be mintable across all chains, but have a metadata attribute for “mint location,” as Prime, Cyprus, Paxos, Hydra, Cyprus 1, etc. etc.

You could further this by not only having an attribute for mint location, but also a “passport” attribute that records all chains that the token has ever rested on.

I haven’t thought of a meaningful use-case for this yet, but it is a feature that seems highly unique to Quai’s architecture.

12 Likes

While this may not be exactly answering the posed question, I think a latency based payment application could be very interesting. Quai’s network topology incentivizes miners to geographically organize themselves to reduce network latency. This could allow a multi-chain payment app to select a subset of a user’s funds in the optimal chain location to minimize payment latency/time based on a user’s geographical distance from a node/miner cluster.

Don’t think this could be done on a monolithic chain that currently exists. Feel to correct any mistaken assumptions I’ve made here.

13 Likes

Something more connected IRL could be a hospital/analyses center setup. In the scenario, there are three chains with separate functions. One is an oracle that pulls data from health monitors. The second one aggregates that data and stores it. The third separate chain is to process payments taken for adding new data in and interacting with it.
You could argue that you do not need a blockchain for this setup, but health data is often very change-sensitive, so it would be good to track it immutably.

8 Likes

Interesting idea to segregate different functions of a process into different chains… potentially lots to explore there.

7 Likes

Oh yes, very good idea. I can see a lot of people wanting something like this… you going to build it? :stuck_out_tongue:

3 Likes

I love this idea. I can’t wait to get a handful of NFTs and get their passports stamped on all the chains. I hope this idea comes to life

4 Likes

Cool idea. I want to try create my own NFT on Quai Network in Iron Age testnet. Hmm, im not a dev, that’s why I’m afraid to do it. As far as you think it is possible to do this without having fundamental knowledge, if you use different guides. I like your idea with NFT, but tell me, do you want to add some value to them? will they be involved in some way in real life? Maybe through them we would be able to attract people from life who, through beautiful pictures, could get better acquainted with the Quai Network and cryptocurrency in general, how much is it real?

3 Likes

Mmm not sure I’m ready for that just yet… Working on other lower level things before I get into the payments world

6 Likes

It’s probably superimposing the typical L1 L2 structure onto a modular network.
I wonder in what cases this single chain-single function structure would be preferable over the spread of a complex program load on multiple chains.

3 Likes

That’s a very interesting idea. I would like to try to build my NFT collection on QUAI. To be the first when QUAI comes out in mainnet. I think it could give a good boost to blockchain. But I’m wondering how to run it and work in general with multi-chain design. Since I’m not a developer, my skills are only enough to contact Sol and run the Candy machine.

This is a much more interesting system, with sharding and scalability. And it would be really interesting to see dApps that can only work in a multi-chain network. It would also be really interesting to create some sort of engine to support NFT collections on QUAI, something like Metaplex. So that absolutely everyone could create their own NFTs and this industry would be as popular in QUAI as DeFi.

I would like to hear your opinion on this, thank you for your attention!

6 Likes

wow that’s cool, indeed multi-chain is very interesting and very flexible, I hope quai can apply the best :+1::100:

2 Likes

Awesome to see you’re ready to build! Honestly, this is a new terrain for everyone so theres no ‘right’ path yet for proper smart contract deployment, but for now we’ve found the best route is to go multi-chain where you deploy your smart contracts across all chains.

Inherently, you would build your main contract, which allows minting, and select your origin chain for that contract. From there people will be able to mint their contracts but you’d also probably want other chains to allow for the transfer/existence of your NFT, so you develop your sister contracts which do NOT have minting (so no duplicates existence) and instead allow for reference of the main contract.

It might seem more complicated due to the nature of multiple contracts but there just might be the development of a multi-chain ERC721, or rather a QRC721, which allows for all of this in a single contract and you simply define which chain will allow for minting.

5 Likes