GithubHelp home page GithubHelp logo

markeljan / smart-contract-gpt Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 1.62 MB

Write Clarity smart contracts using any programing language.

Home Page: https://smart-contract-gpt.vercel.app

License: MIT License

JavaScript 0.23% CSS 1.99% TypeScript 97.78%
bitcoin chatbot clarity gpt smart-contracts stacks stacksjs

smart-contract-gpt's Introduction

Smart Contract GPT

Write smart contracts in any programming language and deploy them to the Stacks blockchain. chrome-capture-2023-9-3 (1)

Overview

Smart Contract GPT is a tool designed to assist developers in deploying Clarity smart contracts to the Stacks blockchain. It's especially useful for those familiar with languages like Solidity or those new to the Stacks ecosystem. The tool aids in converting syntax and bridging knowledge gaps, making the onboarding process for Stacks smart contract developers smoother.

Features

  • Code Conversion: Convert and adapt smart contract code with the help of our AI chatbot.
  • Deployment Options: Choose between testnet, mainnet, or devnet for deployment.
  • Sponsored Deployment: Deploy without needing a wallet using our sponsored deployment option.
  • REST API: Use our publicly accessible API for deployments on testnet at smart-contract-gpt.vercel.app/api/deploy-contract.

How It Works

Built using Next.js, Vercel-AI, OpenAI, Stacks.js, and Clarinet, our chatbot is fine-tuned with SIP-009 smart contract examples. It guides users in writing and converting smart contract code. The Stacks JS library handles the deployment to the selected network.

Setup & Configuration

To get started, you'll need to create a .env.local

# App URL example: https://chat.vercel.ai
NEXT_PUBLIC_APP_URL=

# OpenAI API Key
OPENAI_API_KEY=

# Stacks deployer private key
DEPLOYER_PRIVATE_KEY=

Challenges & Learnings

  • Block Times: Long block times on testnet posed a challenge. We recommend setting up a devnet for a more optimal experience.
  • Best Practices: Ensured up-to-date practices by incorporating SIP-009 examples from popular NFT contracts on Stacks Mainnet.

Technologies Used

Clarity Next.js OpenAI React Stacks Stacks.js

Links

smart-contract-gpt's People

Contributors

markeljan avatar

Stargazers

Dashawn Ramel Bledsoe avatar  avatar Cioclea Doru Octavian avatar Ashley Turing avatar  avatar

Watchers

 avatar Ashley Turing avatar

smart-contract-gpt's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.