Commit Graph

3 Commits

Author SHA1 Message Date
Shredder 70f2df4210
feat: verifications and mongo write operations (#253)
* 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.
2023-05-09 21:25:19 +03:30
Shredder d838f1a449
feat: MongoDB & Prisma [serverless] (#224)
* feat: init prisma.

* feat: update the prisma model.

* feat: write client tests.

* feat: Prisma integration and helper [serverless] (#229)

* refactor: rename the prisma folder to prisma-setup.

* feat: install prisma client.

* feat: add new build and invoke commands for prisma and the modules.

* feat: add prisma helper, update serverless config for testing purposes

* docs: update readme and include a .env.example file.

* feat: zoruka's suggestion on using finally instead of catch.

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

---------

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

* feat: prisma-setup restructure.

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-27 15:01:21 +03:30
Janison Sivarajah 9e202f0a1f
feat: sc 121 - serverless boilerplate (#140)
* chore: init for redoing aws stack base

* chore: fix tsc build errors

* chore: remove comment, remove schema verif that was causing error, add context

* chore: replace serverless.ts with serverless.yaml

* chore: rename serverless file correctly

* chore: fix deployment errors

* chore: add serverless-offline

* chore: fix bug executing function

* chore: readme for aws

* chore: rename to kebab-case and add eslint rule for it

* chore: add aws cred link to serverless readme
2023-04-04 14:42:51 -04:00