Skip to content

zoeschmitt/foundation

Repository files navigation

Foundation

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.

Resources


Project Structure

.
├── ...
├── 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

Contracts

NFT ERC721 smart contract in contracts/. Inherits from OpenZeppelins ERC721 contract.

To Re-Compile

npx hardhat compile --force

Deploying

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.


Middleware

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


Serverless - AWS Node.js Typescript

Using NPM

  • Run npm i to install the project dependencies
  • Run npx sls deploy to deploy this stack to AWS

Locally

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published