/l1-deploy-server

API to deploy contracts via Factory Contract on L1

Primary LanguageHTMLMIT LicenseMIT

l1-deploy-server

This server offers a API and UI to facilitate the deployment of smart contracts through the Oasys Factory contract. Tailored for developers and users within the Oasys ecosystem, it provides a simplified process for deploying contracts, ensuring a user-friendly experience.

Getting Started

Install dependencies.

yarn install

Set up environment variables.

cp .env.sample .env

Running the Server

yarn start

Front End Navigation

  • / - This route leads to the screen for deploying contracts.
  • /address - Navigate to this screen to obtain the deployment address.

API Endpoints

  • GET /health: Returns a greeting message and instructs to use the /deploy endpoint.
  • POST /deploy: Accepts an array of contract deployment requests. Returns addresses of deployed contracts or an error message.
  • GET /get-address: Get expected address from deployment bytecode.
  • GET /outputs: Returns all the deployments output file names.