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.
To view the contracts, visit flow-view-source or using flowscan-testnet
Contract | Mainnet | Testnet |
---|---|---|
MatrixWorldAssetsNFT | 0x95702b3642af3d0c |
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
yarn run deploy:testnet
yarn run redeploy:testnet # redeploy all contracts
.
├── LICENSE
├── package.json
├── packages
│ ├── contracts # Cadence projects
│ └── sdk # TS client
├── README.md
NonFungibleToken : This follows Flow NFT standard which is equivalent to ERC-721 or ERC-1155 on Ethereum. This contract can be directly imported from 0x631e88ae7f1d7c20
when 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.
MatrixWorldAssetsNFT
: The Matrix World Asset NFT contract that implements the flow NonFungibleToken
and LicensedNFT
contract.