On-chain asset store, which allows multiple smart contracts to share vector assets.
All assets registered to this store will be treated as cc0 (public domain), CC-BY(attribution), Apache 2.0 or MIT (should be specified in the "group"). In case of CC-BY, the creater's name should be in the "group", "category" or "name".
All registered assets will be available to other smart contracts for free, including commercial services. Therefore, it is not allowed to register assets that require any form of commercial licenses.
Once an asset is registered with group/category/name, it is NOT possible to update, which guarantees the availability in future.
Created by Satoshi Nakajima (@snakajima)
The corresponding WebUI repository assumes that it can access this repository via "../contract" to access some generated contents in the "cache" folder.
yarn install
Get Api key from Web3 Provider and set API KEY
INFURA_API_KEY = "xxxxx"
or
ALCHEMY_API_KEY = "xxxx"
Set your account
MNEMONIC = "hoge hoge hoge"
ACCOUNT_INITIAL_INDEX = 2
or
PRIVATE_KEY= "hogehoge"
npx hardhat --network rinkeby run scripts/deploy-rinkeby.ts
npx hardhat --network localhost run scripts/deploy.ts
npx hardhat verify --network mainnet --constructor-args arguments.js CONTRACT_ADDRESS
npx hardhat test --network hardhat