Release/0.0.1 fixes (#60)
* Update LICENSE * Update README.md * Update local_deploy.js * Update FleekERC721.sol * fix: mumbai deploy args * fix: fix comments release (#61) Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com> Co-authored-by: Camila Sosa Morales <camisosa@fleek.co>
This commit is contained in:
parent
f2db3ff0c6
commit
6c901a6001
2
LICENSE
2
LICENSE
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2022 FleekHQ
|
Copyright (c) 2022 Fleek
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@ The vision is to have this on a suitable L2 or L3 based on EVM so there is flexi
|
||||||
|
|
||||||
The goal is to be a more verifiable and crypto-friendly Serverless.yaml or Cloudformation manifests that will enable us to develop use cases on top like community hosting.
|
The goal is to be a more verifiable and crypto-friendly Serverless.yaml or Cloudformation manifests that will enable us to develop use cases on top like community hosting.
|
||||||
|
|
||||||
Get more information about the project on our [wiki](https://github.com/fleekxyz/non-fungible-apps/wiki).
|
We've developed a base set of contract code so now we want to harden it as well as add more metadata and features to support use cases with the first use case being community hosting. So be sure to check out the roadmap on the wiki.
|
||||||
|
|
||||||
|
You can find the wiki [here](https://github.com/fleekxyz/non-fungible-apps/wiki) for more information about the project.
|
||||||
|
|
||||||
## ⌨️ Developing
|
## ⌨️ Developing
|
||||||
|
|
||||||
|
|
@ -256,3 +258,7 @@ This is an open source initiative! Any new idea is welcome, if you want to help
|
||||||
## 📜 License
|
## 📜 License
|
||||||
|
|
||||||
Fleek Non Fungible Apps is released under the [MIT License](LICENSE).
|
Fleek Non Fungible Apps is released under the [MIT License](LICENSE).
|
||||||
|
|
||||||
|
## 🐛 Bug reporting
|
||||||
|
|
||||||
|
If you have found a bug to report, please create an [issue](https://github.com/fleekxyz/non-fungible-apps/issues). Thank you!
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,6 @@ contract FleekERC721 is ERC721, FleekAccessControl {
|
||||||
/**
|
/**
|
||||||
* @dev Override of _beforeTokenTransfer of ERC721.
|
* @dev Override of _beforeTokenTransfer of ERC721.
|
||||||
* Here it needs to update the token controller roles for mint, burn and transfer.
|
* Here it needs to update the token controller roles for mint, burn and transfer.
|
||||||
* IMPORTANT: The function for clearing token controllers is not implemented yet.
|
|
||||||
*/
|
*/
|
||||||
function _beforeTokenTransfer(
|
function _beforeTokenTransfer(
|
||||||
address from,
|
address from,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
const contractName = 'FleekERC721';
|
const contractName = 'FleekERC721';
|
||||||
|
|
||||||
const args = [
|
const args = [
|
||||||
'FleekSites', // Collection name
|
'FleekNFAs', // Collection name
|
||||||
'FLKSITE', // Collection symbol
|
'FLKNFA', // Collection symbol
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = async ({ getNamedAccounts, deployments }) => {
|
module.exports = async ({ getNamedAccounts, deployments }) => {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
const contractName = 'FleekERC721';
|
const contractName = 'FleekERC721';
|
||||||
|
|
||||||
const args = [
|
const args = [
|
||||||
'FleekSites', // Collection name
|
'FleekNFAs', // Collection name
|
||||||
'FLKSITE', // Collection symbol
|
'FLKNFA', // Collection symbol
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = async ({ getNamedAccounts, deployments }) => {
|
module.exports = async ({ getNamedAccounts, deployments }) => {
|
||||||
|
|
|
||||||
|
|
@ -1,49 +1,48 @@
|
||||||
{
|
{
|
||||||
"name": "sites-as-nfts",
|
"name": "@fleekxyz/nfa-ui",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Minimal UI for sites as NFTs",
|
"description": "Minimal UI for Fleek Non Fungible Apps",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"author": "Fleek",
|
"author": "Fleek",
|
||||||
"license": "ISC",
|
"dependencies": {
|
||||||
"dependencies": {
|
"@chakra-ui/icons": "^2.0.13",
|
||||||
"@chakra-ui/icons": "^2.0.13",
|
"@chakra-ui/react": "^2.4.2",
|
||||||
"@chakra-ui/react": "^2.4.2",
|
"@emotion/react": "^11.10.5",
|
||||||
"@emotion/react": "^11.10.5",
|
"@emotion/styled": "^11.10.5",
|
||||||
"@emotion/styled": "^11.10.5",
|
"@ethersproject/providers": "^5.7.2",
|
||||||
"@ethersproject/providers": "^5.7.2",
|
"@reduxjs/toolkit": "^1.9.1",
|
||||||
"@reduxjs/toolkit": "^1.9.1",
|
"formik": "^2.2.9",
|
||||||
"formik": "^2.2.9",
|
"framer-motion": "^7.6.17",
|
||||||
"framer-motion": "^7.6.17",
|
"path": "^0.12.7",
|
||||||
"path": "^0.12.7",
|
"react": "^18.2.0",
|
||||||
"react": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-redux": "^8.0.5",
|
||||||
"react-redux": "^8.0.5",
|
"react-router-dom": "^6.4.4"
|
||||||
"react-router-dom": "^6.4.4"
|
},
|
||||||
},
|
"devDependencies": {
|
||||||
"devDependencies": {
|
"@types/jest": "^29.2.3",
|
||||||
"@types/jest": "^29.2.3",
|
"@types/node": "^18.11.9",
|
||||||
"@types/node": "^18.11.9",
|
"@types/react": "^18.0.25",
|
||||||
"@types/react": "^18.0.25",
|
"@types/react-dom": "^18.0.9",
|
||||||
"@types/react-dom": "^18.0.9",
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
"@typescript-eslint/parser": "^5.45.0",
|
||||||
"@typescript-eslint/parser": "^5.45.0",
|
"@vitejs/plugin-react": "^2.2.0",
|
||||||
"@vitejs/plugin-react": "^2.2.0",
|
"eslint": "^8.28.0",
|
||||||
"eslint": "^8.28.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-plugin-jest": "^27.1.6",
|
||||||
"eslint-plugin-jest": "^27.1.6",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-react": "^7.31.11",
|
||||||
"eslint-plugin-react": "^7.31.11",
|
"ethers": "^5.7.2",
|
||||||
"ethers": "^5.7.2",
|
"prettier": "^2.8.0",
|
||||||
"prettier": "^2.8.0",
|
"react-query": "^3.39.2",
|
||||||
"react-query": "^3.39.2",
|
"ts-loader": "^9.4.1",
|
||||||
"ts-loader": "^9.4.1",
|
"typescript": "^4.9.3",
|
||||||
"typescript": "^4.9.3",
|
"vite": "^3.2.4",
|
||||||
"vite": "^3.2.4",
|
"vite-tsconfig-paths": "^3.6.0"
|
||||||
"vite-tsconfig-paths": "^3.6.0"
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ type TileInfoProps = HeadingProps & {
|
||||||
heading: string;
|
heading: string;
|
||||||
info: React.ReactNode;
|
info: React.ReactNode;
|
||||||
widthText?: number;
|
widthText?: number;
|
||||||
textAlignText?: 'center' | 'left';
|
textAlignText?: 'center' | 'left'; //TODO allow more text alignment types
|
||||||
direction?: 'column' | 'row';
|
direction?: 'column' | 'row';
|
||||||
alignItems?: string;
|
alignItems?: string;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -15,8 +15,7 @@ export const FleekERC721 = {
|
||||||
params.externalUrl,
|
params.externalUrl,
|
||||||
params.ens,
|
params.ens,
|
||||||
params.commitHash,
|
params.commitHash,
|
||||||
params.repo,
|
params.repo
|
||||||
'author' // TODO: remove author after contract update
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ const MINT_PARAMS = {
|
||||||
externalUrl: 'https://fleek.co',
|
externalUrl: 'https://fleek.co',
|
||||||
commitHash: 'b72e47171746b6a9e29b801af9cb655ecf4d665c',
|
commitHash: 'b72e47171746b6a9e29b801af9cb655ecf4d665c',
|
||||||
gitRepository: 'https://github.com/fleekxyz/non-fungible-apps',
|
gitRepository: 'https://github.com/fleekxyz/non-fungible-apps',
|
||||||
author: 'author',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const mockDetail = {
|
const mockDetail = {
|
||||||
|
|
@ -28,20 +27,14 @@ const mockDetail = {
|
||||||
trait_type: 'Repository',
|
trait_type: 'Repository',
|
||||||
value: MINT_PARAMS.gitRepository,
|
value: MINT_PARAMS.gitRepository,
|
||||||
},
|
},
|
||||||
//As we're not showing this on the UI, we can remove it
|
{
|
||||||
// {
|
trait_type: 'Version',
|
||||||
// trait_type: 'Author',
|
value: '0',
|
||||||
// value: MINT_PARAMS.author,
|
},
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// trait_type: 'Version',
|
|
||||||
// value: '0',
|
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fetchSiteDetail = async (tokenId: string) => {
|
export const fetchSiteDetail = async (tokenId: string) => {
|
||||||
//TODO get site detail from api
|
|
||||||
return new Promise((resolved, reject) => {
|
return new Promise((resolved, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolved({
|
resolved({
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ const listSites = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export const fetchMintedSites = async () => {
|
export const fetchMintedSites = async () => {
|
||||||
//TODO get minted sites from api
|
|
||||||
return new Promise((resolved) => {
|
return new Promise((resolved) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolved({
|
resolved({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue