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.
Install dependencies.
yarn install
Set up environment variables.
cp .env.sample .env
Running the Server
yarn start
- / - This route leads to the screen for deploying contracts.
- /address - Navigate to this screen to obtain the deployment address.
- 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.