* integration
* refactor: rename the mintId parameter, add serverless offline.
* docs: update documentation readme.
* feat: add the create call for handling new mint info.
* feat: add build record db, write the signed transaction call to the contract, query builds in the mint handler.
* feat: new prisma schema.
* feat: add logic to the build handler and update mint handler to pass the verified field.
* feat: update token record in the build handler, add start command to package.json
* feat: add dotenv to read the private key variable from the main .env file.
* feat: add domain and ipfs hash to mint and setTokenBuild functions. Alter the structs accordingly.
* test: update mint parameters with ipfsHash for foundry and hardhat tests.
* feat: add build record entity to subgraph.
* feat: add domain field, update schema, remove tokenId from build handler.
* test: fix missing parameters.
* fix: build info test parameters missing.
* test: final test fix for the foundry metadataupdate params.
* refactor: tsconfig changes and pr feedback.
* feat: add verifier when contract is initialized
* feat: initialize git repository on new mint
* feat: add created at in token entity
* feat: add created at in ap entity
* feat: handle verifier role grant and revoke
* feat: add verified field to token
* refactor: create constants file
* feat: add total tokens counter on collection entity
* refactor: verify verifier address for mint event
* refactor: remove collection id
* feat: update newMint and add verifier and apAutoApproval, update subgraph accordingly.
* remove: bugged tests.
* refactor: update metadataUpdate handlers to match the new interface.
* wip: compilant version of interface
* refactor: split out access point to single module
* test: fix mint call on hardhat tests
* fix: remove auto approval from NewMint event
* fix: errors from deprecated entities.
* fix: events from deprecated entities.
* test: add tests for NewAccessPoint.
* chore: remove yarn-error.log and add it to .gitignore.
* test: add changeAccessPointCreationStatus tests to subgraph matchstick.
* test: add tests for changeAccessPointNameVerify x matchstick
* feat: add utility functions for ACL events
* test: add tests for tokenRoleChanged event
* test: add tests for the CollectionRoleChanged event
* feat: add handleTokenRolesCleared handler function - slipped from the ACL refactor pr.
* refactor: rename the Token owner consts to user consts.
* chore: add .bin to gitignore.
* feat: define entities, add handlers for access points.
* feat: change ChangeAccessPointAutoApproval event to metadataUpdate with boolean value (new event), and also add NewMint handler again.
* test: rename ChangeAccessPointStatus to ChangeAccessPointCreationStatus in hardhat tests.
* refactor: deploy the new version of the contract and update the proxy address and block number in the subgraph config file.
* refactor: change name of status to creationStatus in schema.
Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com>
* refactor: remove commented handlers for ACL.
* feat: add the condition for deploying proxy again
* refactor: remove newAccessPoint from subgraph.yaml
---------
Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com>
* test: restructure the dir, add config file, divide transfer tests to a separate file.
* test: divide newTokenName tests.
* test: add tests for NewTokenENS, build, external urls, description.
* fix: update tests in newTokenENS.
* test: add owner tests.
* feat: add compile command to subgraph package.json
* test: remove deprecated events and their handlers and tests. add newmint mock handler.
* fix: error in the order of passed parameters in NewMint mock creator function.
* feat: define the GithubRepository entity and update the Token entity to include it.
* feat: add NewMint event to the contract and emit it in the mint function.
* feat: add newmint entity, update token and gitrepository entities. add handler for entities. update transfer entity handler. update subgraph.yaml config.
* chore: deployment update
* chore: fix proxy file with before deployments
* fix: remove constructor args in verify-polyscan.js file and update contract address at subgraph.yaml
* fix: remove develop from subgraph.yaml gh action.
* merge: develop with auto approval settings into reverse lookup branch
* fix: remove the word settings from acesspointautoapproval param.
* fix: error in hardhat last token id test
* fix: solidity tests.
* fix: proxy contract address in subgraph.yaml.
* chore: run subgraph tests only on main PRs
---------
Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
* feat: add Collection and CollectionOwner entities. Handle CollectionOwner on CollectionRoleGranted and CollectionRoleRevoked events.
* feat: collection entity and its handler.
* test: add unit tests for the subgraph for events transfer, NewTokenName, NewTokenDescription, NewTokenExternalURL, NewTokenENS, NewTokenBuild
* fix: import errors
* fix: remove keyword "indexed" for strings in events.
* fix: update subgraph.yaml, schema.graphql, and all generated files with the test files to match the new interface of the contract events.
* fix: expose a makeEventId function to avoid repeating code for id generation and also change logIndex before handling events. Update tests to match the new changes.
* chore: remove Holder.
* fix: wrong import for newLogoEvent
* folder restructure init - WIP
* Update husky for folder change
* Properly ignore local zeppelin file
* change folder strucutre: update readme and contribution files
* remove chakra from readme list of key dependencies
* run contract workflow steps in contract dir
* Cleanup readmes, split contract into it's own
* Apply some suggestions from code review
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
* Move .env.example to contracts folder, and use consistent format for directory references in docs
* More readme dir ref fixes
* Update poc note in readme, and removed deploy folder from readme
* Prettier refactor
* Revert "Prettier refactor"
This reverts commit 82249e32aaf6a6e9a4d432c4f89ca365c18972f8.
* Clean up package.json and add prettier ignore
---------
Co-authored-by: Shredder <110225819+EmperorOrokuSaki@users.noreply.github.com>
Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
* chore: add the verify command to the package.json file
* docs: add the re-deployment section to the README.md file
* feat: add support for token and holder entities based on transfer events that are emitted from the contract during the mint process.
---------
Co-authored-by: EmperorOrokuSaki <artie.eth@gmail.com>
* Add verify script and update hardhat config to automate all future code verifications on polygonscan
* Update deployments to match the new deployed instance of the contract on polygon mumbai testnet (verified)
* feat: Generate the base of the subgraph by graph-cli based on the verified deployed instance on mumbai
* bug: fixed type errors in the typescript specification file.
* chore: generate a new build of the subgraph
* feat: write a script to perform multiple types of queries on the subgraph
* docs: Write a README for the query-examples directory to guide users on how they can perform queries
* chore: remove the heavy subgraph generated WASM and add all .WASM files to .gitignore
* chore: apply the requested changes from Zoruka on the verify_polyscan.js file
* docs: write the readme doc for the subgraph
* chore: remove deploy from package.json and add build, abis, and generated to .gitignore
* chore: remove abis, build, and generated from the branch
* chore: move query-examples to examples/query/ and gitignore .graphclient
* docs: update readme (add a section for developing and describe build and generated directories better)
* chore: remove graphql from the root package.json file