Foundation is a digital asset marketplace engine that allows anyone to easily create an NFT (ERC721 Token) marketplace on their platform. Built on top of the Polygon blockchain.
Main Features:
- Deploy smart contracts.
- Generate blockchain wallets.
- Mint NFTs.
- List NFTs for sale.
- Buy NFTs.
.
├── ...
├── contracts # NFT contracts
├── resources # DynamoDB table definition
├── scripts # Blockchain deployment scripts
├── src
│ ├── ...
│ ├── functions # AWS lambda functions
│ ├── ...
├── tests
│ ├── integration # End-to-end, integration tests
│ └── unit # Unit tests
NFT ERC721 smart contract in contracts/
. Inherits from OpenZeppelins ERC721 contract.
npx hardhat compile --force
Currently the deploy function is in src/scripts/
and it places the binary/abi generated from hardhat compilation in artifacts/
. Artifacts are used for contract deployment in the createOrg
lambda function.
Use npx ts-node scripts/deploy-nft-contract
to deploy a contract manually and visit the file itself to change the props.
Middy - middleware engine for Node.Js lambda. This template uses http-json-body-parser to convert API Gateway event.body
property, originally passed as a stringified JSON, to its corresponding parsed object
- Run
npm i
to install the project dependencies - Run
npx sls deploy
to deploy this stack to AWS
In order to test the hello function locally, run the following command:
npx sls invoke local -f hello --path src/functions/hello/mock.json
if you're using NPM
Check the sls invoke local command documentation for more information.