Commit Graph

130 Commits

Author SHA1 Message Date
Felipe Mendes 2b030f60b0
feat: svg preview test screen (#88)
* feat: add svg test screen

* chore: add svg test comments
2023-01-27 07:50:43 -03:00
Camila Sosa Morales 0553bef914
chore: remove chakra (#86)
* refactor: remove chakra

* refactor: remove stitches folder
2023-01-26 16:02:08 -05:00
Camila Sosa Morales 75a6de5ac7
chore: button component (#81)
* chore: add button component with storybook

* chore: add stories button

* refactor: remove github custom logo

* fix: fix build

* chore: changes based on PR review
2023-01-23 15:01:02 -05:00
Camila Sosa Morales 1dd06c6baf
chore: stitches config for drip (#80)
* style: add config stithces for drip and storybook

* reafctor: remove commented lines

* chore: remove unused library

* refactor: merge with develop and fix conflicts

* fix: fix storybook

* style: add black bg color for dark mode on storybook
2023-01-20 10:08:37 -05:00
Shredder f74c2f7e2e
docs: fix mistakes in CONTRIBUTING.md (#64)
* Update CONTRIBUTING.md

* Apply requested changes.
2023-01-19 21:05:07 +03:30
Camila Sosa Morales 95d15582b2
chore: add tailwind and stitches (#75)
* styles: add stitches

* style: add tailwaind

* style: remove sizes

* chore: add storybook with sample story

* refactor: remove storybook eslint

* refactor: add tailwind with vite

* fix: fix storybook script

* style: dark mode

* style: add google fonts

* style: add radix colors

* style: add radix library

* refactor: remove light colors, not used for now

* chore: add comment to remove story example
2023-01-18 11:41:08 -05:00
Felipe Mendes fc20f02b7f
feat: add app access points and libraries clean up (#69)
* feat: add mirror mapping and management

* test: add mirrors tests

* chore: add new functions header comments

* feat: add isMirrorVerified function

* feat: add list of mirrors to token

* feat: add require minted to appMirrors function

* chore: update solidity compiler on hardhat config

* refactor: add token id to other mirror events

* refactor: change from mirror to access point and update its metadata

* test: updates tests due to contract changes

* refactor: clean up string parser from main contract

* refactor: remove wronge requirement comments

* refactor: strings library (#71)

* refactor: move string parse functions to a library

* refactor: remove not used modifier

* refactor: move svg generation to library

* refactor: remove source from aps

* refactor: rename accessPoint function
2023-01-18 11:39:44 -03:00
Camila Sosa Morales 66e041f63f
refactor: UI improvements (#67)
* feat: add pointer on SiteCard

* fix: don`t show ens when it`s empty

* style: add icons on wallet button

* styles: align home button on same splace in all views

* style: add tooltip on attributes card

* chore: install react-icons

* feat: add paste feature on owner address field

* style: add icon of connected wallet

* style: add icon metamask

* fix: fix error message on owner address field

* chore: remove console.log

* style: add colors theme

* refactor: refactor icons. Create icon component

* refactor: remove function from component

* fix: fix husky precommit to add jsx and tsx files

* refactor: add metamask icon

* fix: fix import

* chore: remove metamask svg from assets
2023-01-11 16:34:05 -05:00
Shredder 482203529c
Initialize contract SVG code with placeholder base 2023-01-11 20:10:44 +03:30
EmperorOrokuSaki 69de99467f Fix the HardHat decoding bug by adding base URI to _generateSVG() and updating foundry tests 2023-01-11 18:55:51 +03:30
EmperorOrokuSaki 94caa633ff Remove foundry test cases that call setTokenImage() since that function is removed from the code base 2023-01-11 17:51:35 +03:30
EmperorOrokuSaki 9013bd9faf Change _generateSVG() mutability to pure from view 2023-01-11 17:46:33 +03:30
EmperorOrokuSaki 75ae5fa440 Move calling _genenrateSVG() to tokenURI() from mint() 2023-01-11 17:36:50 +03:30
Camila Sosa Morales 99155edf2f
fix: broken json (#66)
* fix: fix broken json error. saving the description correctly

* fix: fix pr review comments

* fix: fix text display when theres no breakline

* fix: fix break lines text on details view. Move the \n replacing to the lib
2023-01-09 17:01:38 -05:00
Camila Sosa Morales 23dc080c7a
fix: refetching queries (#65)
* fix: fix refetcing data on focused

* fix: add key to SiteCard items
2023-01-09 13:03:39 -05:00
EmperorOrokuSaki 810739c740 Add optimization to hardhat config & comment the tokenURI hardhat test 2023-01-09 19:48:17 +03:30
EmperorOrokuSaki 090c1e1477 Add SVG generation test and function. 2023-01-09 18:52:04 +03:30
Janison Sivarajah 04991eaeff
Apply suggestions from code review
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
2022-12-22 12:44:39 -05:00
Felipe Mendes d80a07a3af
fix: ui readme broken wiki link (#63) 2022-12-22 14:43:03 -03:00
Felipe Mendes 4004d650bd
fix: readme and contributing file wiki broken links (#62) 2022-12-22 14:34:03 -03:00
Felipe Mendes 6c901a6001
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>
2022-12-22 14:21:00 -03:00
Shredder f2db3ff0c6
Merge pull request #59 from fleekxyz/docs/modifier-headers
Add header docs for modifiers and constructors.
2022-12-22 17:52:23 +03:30
Felipe Mendes 2533f162cb
chore: add readme base (#12)
* chore: add readme base

* chore: add proof of concept section on readme

* chore: add contributing file

* chore: update contributing opening line

* chore: add nft presentable info for contract roadmap

* chore: add developing and testing sections on readme

* chore: remove deploy section on contributing

* chore: add code styling section in readme

* chore: add project structure section in readme

* Add readme with initialization text.

* chore: add user interface section in readme

* update the interactions guide

* Moved test and deployment guides to the main readme and implemented the requested changes.

* Change NPM commands to Yarn commands

* Add a note for forge-std

* docs: fix repo links

* style: add style on readme and remove comments from merge

* docs: add interaction script examples on readme

* docs: remove extra separator

* docs: remove extra separator

* docs: comment mainnet section on readme

* chore: fix repo links on package.json

* docs: update project sctructure

* chore: UI readme (#55)

* docs: update test output examples

* docs: add submodule fetch command

* docs: add new texts mentioned in pr

* docs: add new texts mentioned in pr

* docs: fix hardhat node command

* chore: move POC info to wiki

* docs: remove extra separator

* fix: deployment scripts (#56)

* chore: add comments in .env.example

* chore: update interaction scripts readme section position and link to a deployment guide

* docs: fix hint message position

* doc: add external lobraries section

* chore: update repo name and its bindings (#57)

* docs: update readme libraries section

Co-authored-by: EmperorOrokuSaki <artie.eth@gmail.com>
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
Co-authored-by: Camila Sosa Morales <camisosa@fleek.co>
Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com>
2022-12-22 11:13:45 -03:00
EmperorOrokuSaki 90dc8c3bfc add header docs for modifiers and constructors. 2022-12-22 17:38:24 +03:30
Felipe Mendes 8b88cf2881
feat: UI metamask integration (#41)
* feat: add redux and metamask slice

* refactor: move from metamask to generic wallet using ethers

* feat: add wallet button base

* feat: add getContract function and mint functionality

* refactor: move functions to ethereum file

* feat: wallet menus and disconnect function

* refactor: Ethereum object typings

* feat: add FleekERC721 contract interaction abstraction

* refactor: remove token detail fetch mock using

* refactor: add ethereum mint function to mint site component

* feat: add wallet initialize

* wip: add signature for lastTokenId function

* feat: integrate list of tokens

* refactor: mint params construct

* fix: global window.ethereum type definition

* fix: remove console log

* fix: remove todo comment

* fix: list view items displaying
2022-12-20 14:24:41 -03:00
Shredder 0e67867560
Merge pull request #26 from fleekxyz/test/foundry
Solidity tests by foundry
2022-12-20 18:34:17 +03:30
Shredder 60850976a7
Merge pull request #54 from fleekxyz/docs/headers
Documentation headers for FleekAccessControl.sol
2022-12-20 18:24:08 +03:30
EmperorOrokuSaki 3ec0827ac1 add function headers for accesscontrole.sol 2022-12-20 18:17:43 +03:30
zoruka 5956cb7be9 chore: merge develop 2022-12-20 08:34:40 -03:00
Felipe Mendes 22198e76e3
refactor: remove extension AccessControl from FleekAccessControl (#28)
* refactor: remove extension AccessControl from FleekAccessControl

* refactor: add version for roles

* test: add collection roles tests

* test: add more token role hardhat tests

* refactor: remove lib/forge-std

* feat: add role grant and revoke events

* test: add access control role event emit tests

* refactor: remove abstract keyword from FleekAccessControl

* Merge conflicts for #28 (#49)

* Add msg.sender to the triggered_by field in events

* Document methods and make everything camelCase

* Make event params all camelCase

* fix: forge-std submodule

* make vars camelCase, remove baseURI header, remove addTokenController and removeTokenController, update tests

Co-authored-by: EmperorOrokuSaki <artie.eth@gmail.com>
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
Co-authored-by: zoruka <zo.fmendes@gmail.com>

Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com>
Co-authored-by: EmperorOrokuSaki <artie.eth@gmail.com>
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
2022-12-19 15:45:15 -03:00
Shredder cc3979f3a6
Merge pull request #34 from fleekxyz/feat/events
Update events & function header documentations
2022-12-19 01:46:01 +03:30
zoruka 52b124c829 fix: forge-std submodule 2022-12-17 09:06:29 -03:00
zoruka 4dd1442e9d chore: merge develop 2022-12-17 09:03:08 -03:00
Felipe Mendes dc2f8849c2
chore: add test workflow (#19)
* chore: add test workflow

* chore: upgrade package lock

* chore: add ui tests workflow job

* chore: add compile and build steps for test workflow

* chore: remove ui test command to run just build on workflow

* chore: fix missed conflict

* chore: add foundry installation on test workflow

* fix: wrong sintax breaking test

* chore: set foundry version in workflow

* fix: foundry lib version
2022-12-16 17:51:54 -03:00
Camila Sosa Morales 27359bd45f
feat: add toast hook (#44)
* feat: add toast hook

* refactor: changes on useToast based on PR comments

* reactor: refactor on useToast
2022-12-16 16:51:35 -03:00
Felipe Mendes 4836dd0436
chore: precommit hooks (#18)
* chore: add husky and lint-staged

* chore: add postinstall script

* chore: add prepush test hook

* chore: add skip tests flag

* chore: remove skip tests flag

* chore: fix format command to verify json files
2022-12-16 14:57:49 -03:00
Camila Sosa Morales d96175fa3f
feat: list minted sites (#42)
* feat: add mintes sites list view

* wip: add card but need styles

* style: add style to site card component

* style: add style to site card

* fix: fix onClick propagation

* chore: remove unused param

* Apply suggestions from code review

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

* Update list.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2022-12-16 11:27:39 -03:00
EmperorOrokuSaki d151b80319 fix tokenURI return json 2022-12-15 21:46:29 +03:30
EmperorOrokuSaki 3351812acc Fix hardhat tests by removing the author field. 2022-12-15 21:41:07 +03:30
EmperorOrokuSaki 54f665b572 fix 2022-12-15 21:40:57 +03:30
EmperorOrokuSaki 11bc4f9213 fix 2022-12-15 21:39:53 +03:30
zoruka 58242f6b51 chore: remove skip tests flag 2022-12-15 21:39:17 +03:30
zoruka 98385972ea chore: add skip tests flag 2022-12-15 21:39:17 +03:30
zoruka 13c5b44e85 chore: add prepush test hook 2022-12-15 21:39:17 +03:30
EmperorOrokuSaki 5f15530f33 fix merge 2022-12-15 21:39:10 +03:30
zoruka b4975926b5 chore: add husky and lint-staged 2022-12-15 21:37:28 +03:30
zoruka 5900488532 chore: add clear token function comment 2022-12-15 21:32:03 +03:30
zoruka f6510106cd test: add more token role hardhat tests 2022-12-15 21:32:03 +03:30
zoruka ea3a50f2a8 test: add collection roles tests 2022-12-15 21:32:03 +03:30
zoruka f6f48ba206 refactor: add version for roles 2022-12-15 21:32:03 +03:30