Commit Graph

9 Commits

Author SHA1 Message Date
Shredder 86907836ae
feat: dev environment backend setup (#278)
* feat: add anvil (qanet) to hardhat config networks.

* chore: deploy contract to anvil testnet.

* chore: sepolia deployment.

* merge: authentication sls.

* feat: separate the issignaturevalid function from handlers.

* feat: update subgraph config to match the qa network.

* feat: add app specific prisma schema to deploy script copy command.

* fix: merge conflict

* feat: remove unnecessary conditions.

---------

Co-authored-by: Nima Rasooli <nimarasooli1@gmail.com>
2023-06-26 18:13:08 +03:30
Shredder bbe73f4d73
feat: smart contract setTokenVerified calls through ethers (#272)
* feat: add scripts to create lambda layers

* chore: deploy the new version of the contract to mumbai.

* feat: update environment variables used in the serverless config.

* feat: add JSON_RPC env var.

* feat: add deploy:dev command.

* feat: functional deployment script, configuration changes.

* feat: update config and the deploy script.

* docs: add the serverless stack diagram

* feat: move the ABI to the lib dir, update the build handler + some minor changes on the config files.

* feat: add ethers to the library, send transactions through the contract instance.

* fix: make the ethers transaction signing work, update handlers accordingly, customize prisma logs, update the config files to match the changes.

* feat: remove logs, log specific errors for environment variables, update hardhat config.

* feat: add support for the --stage flag in the deploy script.

---------

Co-authored-by: root <root@LAPTOP-UJU1VIVI>
Co-authored-by: Nima Rasooli <nimarasooli1@gmail.com>
2023-06-09 22:23:10 +03:30
Shredder 3f78a1af43
feat: AWS Lambda deployment script and fixes (#266)
* feat: add scripts to create lambda layers

* chore: deploy the new version of the contract to mumbai.

* feat: update environment variables used in the serverless config.

* feat: add JSON_RPC env var.

* feat: add deploy:dev command.

* feat: functional deployment script, configuration changes.

* feat: update config and the deploy script.

* docs: add the serverless stack diagram

* feat: move the ABI to the lib dir, update the build handler + some minor changes on the config files.

---------

Co-authored-by: root <root@LAPTOP-UJU1VIVI>
2023-06-09 22:13:03 +03:30
Shredder bce1e0a34a
feat: lambda layers (#262)
* feat: add scripts to create lambda layers

* chore: deploy the new version of the contract to mumbai.

* feat: update environment variables used in the serverless config.

* feat: add JSON_RPC env var.

* feat: add deploy:dev command.

* feat: add support for different networks and blockchain explorers.
2023-06-09 20:40:31 +03:30
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
Camila Sosa Morales 9f48213e28
refactor: remove dropdown component and use combobox instead (#242) 2023-04-27 10:51:25 -03:00
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
Shredder 787e4d6fef
feat: create smart contract helper for serverless (#232)
* feat: add log decoder helper and import web3.

* feat: create the web3 helper and install the package. update ts config to use JSONs in the helper script.

* feat: use nfaContract in submitBuildInfo handler.

* refactor: make the setTokenBuild params self-explanatory.

* docs: comment the placeholder.
2023-04-27 13:47:35 +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