Skip to content

MatrixLabsTech/matrix-world-assets-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix World Asset NFT

This repository contains the smart contracts for the Matrix World Asset. The Flow NFT was forked from Rarible flow contracts.

The smart contracts are written in Cadence.

Addresses

To view the contracts, visit flow-view-source or using flowscan-testnet

Contract Mainnet Testnet
MatrixWorldAssetsNFT 0x95702b3642af3d0c

Deploy

local emulator

cd packages/contracts && yarn emulator  # start a flow emulator
yarn run deploy:local # setup accounts and deploy contracts to emulator
yarn run redeploy:local # redeploy all contracts

testnet

yarn run deploy:testnet
yarn run redeploy:testnet # redeploy all contracts

Structure

.
├── LICENSE
├── package.json
├── packages
│   ├── contracts   # Cadence projects
│   └── sdk         # TS client
├── README.md

Smart contracts

Interface Contracts

NonFungibleToken : This follows Flow NFT standard which is equivalent to ERC-721 or ERC-1155 on Ethereum. This contract can be directly imported from 0x631e88ae7f1d7c20when deployed onto testnet or 0x1d7e57aa55817448 when deployed onto mainnet.

LicensedNFT: This is a contract interface to be further extended to create a solid NFT contract. It adds royalties to NFT. You can implement this LicensedNFT in your contract (along with NonFungibleToken) and your royalties will be taken when trading on Rarible.

Contracts Implementation

MatrixWorldAssetsNFT: The Matrix World Asset NFT contract that implements the flow NonFungibleToken and LicensedNFT contract.