Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: serverless #301

Open
wants to merge 1 commit into
base: refactor/new-arch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"typescript": "^5.0.2"
},
"dependencies": {
"@ensdomains/ensjs": "^3.0.0-alpha.67",
"@middy/core": "^4.2.7",
"@middy/http-json-body-parser": "^4.2.7",
"@middy/http-response-serializer": "^4.2.8",
Expand Down
38 changes: 4 additions & 34 deletions serverless/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ functions:
- { Ref: TopicAwsLibsLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }

submitMintInfo:
submitNFA:
# Deployment:
handler: ./dist/src/functions/mints/handler.submitMintInfo # TODO This will not work, need to change to nfa-serverless/dist/serverless/src/functions/mints/handler.submitMintInfo
handler: ./dist/src/functions/mints/handler.submitNFA # TODO This will not work, need to change to nfa-serverless/dist/serverless/src/functions/mints/handler.submitMintInfo
# Local development:
# handler: ./src/functions/mints/handler.submitMintInfo
events:
- http:
path: mint
path: submitNFA
method: post
cors:
origin: '*'
Expand All @@ -96,34 +96,4 @@ functions:
layers:
- { Ref: TopicAwsNodeModulesLambdaLayer }
- { Ref: TopicAwsLibsLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }

verifyApp:
handler: ./dist/src/functions/apps/handler.verifyApp
events:
- http:
path: verifyApp
method: post
cors:
origin: '*'
headers: '*'
allowCredentials: false
layers:
- { Ref: TopicAwsNodeModulesLambdaLayer }
- { Ref: TopicAwsLibsLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }

submitAppInfo:
handler: ./dist/src/functions/apps/handler.submitAppInfo
events:
- http:
path: app
method: post
cors:
origin: '*'
headers: '*'
allowCredentials: false
layers:
- { Ref: TopicAwsNodeModulesLambdaLayer }
- { Ref: TopicAwsLibsLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }
- { Ref: TopicPrismaAwsPrismaClientLambdaLayer }
182 changes: 0 additions & 182 deletions serverless/src/functions/apps/handler.ts

This file was deleted.

25 changes: 0 additions & 25 deletions serverless/src/functions/apps/index.ts

This file was deleted.

Loading