Commit Graph

297 Commits

Author SHA1 Message Date
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
EmperorOrokuSaki ee520dcc73 fix erc721 2022-12-15 21:31:59 +03:30
EmperorOrokuSaki bf545ecbbd package.json fix 2022-12-15 21:31:13 +03:30
EmperorOrokuSaki 7de7672c0a fix merge conflict in gitignore 2022-12-15 21:28:09 +03:30
EmperorOrokuSaki 9e2c1368ca fix merge 2022-12-15 21:26:54 +03:30
EmperorOrokuSaki 5411e03675 fixing merge conflicts from rebasing 2022-12-15 21:19:42 +03:30
EmperorOrokuSaki a4679036b2 fix rebase conflict 2022-12-15 21:12:25 +03:30
zoruka 6e036f3b9e chore: readd removed submodule 2022-12-15 14:36:13 -03:00
zoruka 0c96f1db9d Merge branch 'develop' of github.com:fleekxyz/contracts into test/foundry 2022-12-15 14:31:40 -03:00
Camila Sosa Morales 6451208871
feat: minted site detail (#36)
* feat: add detail view. add home button component. add loading component

* feat: add tile info component

* style: change bg color and front family

* refactor: remove old file

* style: new style for detail view

* chore: fix comments

* refactor: change SiteNFTDetail type

* refactor: PR comments changes

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2022-12-14 18:28:15 -03:00
Shredder 8b40a0a140
Make event params all camelCase 2022-12-14 20:39:58 +03:30
Camila Sosa Morales 09d24f9723
feat: mint site view (#15)
* wip: add routes

* refactor: add config for hot reload con vite.config.js

* wip: added chakra-ui. start with the form

* feat: add formik for form validation

* feat: added validation for addresses

* feat: add success/failure message. add onSubmit handler

* feat: add setSubmitting false

* feat: update metadata fields

* wip: add mocked function

* feat: mocked onSubmit funciton

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* refactor: PR review changes

* feat: add validation for image urls. remove controller address

* reafctor: refactor fields validation

* refactor: create input field component

* style: add responsive styles. change bg color and font. change back button

* refactor: apply PR comments

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2022-12-13 09:32:55 -03:00
EmperorOrokuSaki 1fd8ae7813 fix hardhat tests by removing the author arg 2022-12-13 00:03:48 +03:30
EmperorOrokuSaki e3ce81e385 remove lib/forge-std 2022-12-13 00:01:05 +03:30
EmperorOrokuSaki d7c31a0985 remove deployments/localhost 2022-12-12 23:59:47 +03:30
EmperorOrokuSaki d1621cea50 fix merge conflicts. 2022-12-12 23:56:10 +03:30
EmperorOrokuSaki 03615bf2b9 fix merge conflicts 2022-12-12 23:47:54 +03:30
EmperorOrokuSaki 7ac1502885 Document methods and make everything camelCase 2022-12-12 23:43:41 +03:30
Felipe Mendes 94c364836e
feat: fleek erc721 (#5)
* wip: refactor on current nft contract

* wip: FleekERC721 contract

* refactor: FleekERC721

* feat: add token controller control functions

* fix: sintax wise issues for compilation

* Fix errors and make the contract environment ready for compiling.

* Remove fleekbuilds.sol & update erc721 with a fix

* Update config files.

* fix: working deploy

* Make set methods public, add comments and notes to clarify issues.

* Update package.json to add the deploy script & remove package-lock.json from the repository

* Add two deploy scripts for local and mumbai deployments, update hardhat config to match two types and package.json

* Update TokenURI and the metadata struct

* Update deploy script and package.json to match the mumbai deploy script

* Add setTokenName, setTokenDescription, setTokenImage

* Add events to all set functions

* Foundry init configs

* Add foundry tests init (name, symbol, placeholder functions)

* test: hardhat (#21)

* chore: update hardhat config

* test: add FleekERC721 tests and remove not used SitesNFTs suit

* test: verify ERC721 compatibility

* Content type on second abi.encodePacked call in tokenURI

* Fix abi encoding on tokenURI

* chore: update hardhat config

* test: add FleekERC721 tests and remove not used SitesNFTs suit

* test: verify ERC721 compatibility

* Content type on second abi.encodePacked call in tokenURI

* test: improve assertion using deep equality

* chore: remove 0.4.24 version from hardhat compilers

* refactor: clear empty bytes from bytes32

* refactor: change properties from bytes32 to string

Co-authored-by: janison <jsonsivar@gmail.com>

* feat: add interaction scripts

* feat: add function signature to remove token controllers on transfer functions

* Update test commands & add forge-cache and out to .gitignore

* refactor: change token controller role validation to _beforeTokenTransfer function

* refactor: remove upgradeTokenBuild and fix burn requirement

* refactor: add isTokenController and move _clearTokenControllers to FleekAccessControl contract

* refactor: remove localhost and wrong mumbai deployments

* refactor: rename polygonMumbai to mumbai

* refactor: remove twiced name on gitignore

* chore: mumbai deployments

* refactor: util script to get contract using hardhat defined network

* chore: move forge-std as a submodule

* chore: move forge-std as a submodule

Co-authored-by: EmperorOrokuSaki <artie.eth@gmail.com>
Co-authored-by: daltoncoder <71679972+daltoncoder@users.noreply.github.com>
Co-authored-by: janison <jsonsivar@gmail.com>
2022-12-12 16:56:17 -03:00
EmperorOrokuSaki 3cf9be4528 Add msg.sender to the triggered_by field in events 2022-12-12 18:42:00 +03:30
zoruka ca177a0ffe refactor: util script to get contract using hardhat defined network 2022-12-08 16:28:03 -03:00
zoruka e63a9e765a chore: mumbai deployments 2022-12-08 10:57:05 -03:00
zoruka 51136a4ebe chore: fix local merge conflicts 2022-12-08 10:33:37 -03:00
zoruka 84d89141d6 refactor: remove twiced name on gitignore 2022-12-08 10:27:08 -03:00
zoruka d423caf741 refactor: rename polygonMumbai to mumbai 2022-12-08 10:26:06 -03:00
zoruka e01c3d7175 refactor: remove localhost and wrong mumbai deployments 2022-12-08 10:24:33 -03:00
zoruka 45118cb930 refactor: add isTokenController and move _clearTokenControllers to FleekAccessControl contract 2022-12-08 10:22:08 -03:00
zoruka 12a7a2cdf9 refactor: remove upgradeTokenBuild and fix burn requirement 2022-12-08 10:10:57 -03:00
zoruka 752bbb896a refactor: change token controller role validation to _beforeTokenTransfer function 2022-12-08 10:00:49 -03:00
EmperorOrokuSaki c74a270579 Update test commands & add forge-cache and out to .gitignore 2022-12-08 16:22:17 +03:30
EmperorOrokuSaki 8437fe4e6e Make Burn TokenOwnerOnly & Add test suites 2022-12-08 02:05:32 +03:30
Shredder 47c0b8d1bb
Merge branch 'feat/fleek-erc721' into test/foundry 2022-12-08 01:32:29 +03:30
EmperorOrokuSaki e828ae9f63 add more foundry tests for edge cases 2022-12-08 01:31:39 +03:30
EmperorOrokuSaki a0adff1702 Remove cache files, add/fix tests, update contract to remove/change methods 2022-12-08 00:59:51 +03:30