Commit Graph

10 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 94313c0300
feat: verify hostname (load free certificate call to bunny cdn) (#271)
* feat: initialize the handler and function.

* feat: add call to the bunny cdn api.

* refactor: rename access points to apps.

* refactor: remove redundant catch and throw

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

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-06-09 22:19:10 +03:30
Shredder 12df937d17
feat: bunny cdn integration and create pull zone (#264)
* feat: bunny cdn integration and create pull zone setup

* feat: uncomment implementation.

* feat: handle repeated ids, update schema to contain more fields, fix the bugs.

* refactor: rename access points - > apps.

* feat: handle the possibility of infinite loop and remove unnecessariy functions.
2023-06-09 22:13:47 +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 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 8f1263e43d
feat: define submit build info interface and parameters. (#231) 2023-04-27 13:48:31 +03:30
Shredder 957219b8af
feat: serverless new mint handler placeholder (#221)
* feat: add handler.

* fix: make the handler compilable.

* feat: parse json
2023-04-25 22:09:54 +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