Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Markeljan/smart-contract-gpt
Write Clarity smart contracts using any programing language.
https://github.com/Markeljan/smart-contract-gpt
bitcoin chatbot clarity gpt smart-contracts stacks stacksjs
Last synced: 27 days ago
JSON representation
Write Clarity smart contracts using any programing language.
- Host: GitHub
- URL: https://github.com/Markeljan/smart-contract-gpt
- Owner: Markeljan
- License: mit
- Created: 2023-09-29T01:21:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T18:55:40.000Z (4 months ago)
- Last Synced: 2024-04-14T01:56:00.730Z (2 months ago)
- Topics: bitcoin, chatbot, clarity, gpt, smart-contracts, stacks, stacksjs
- Language: TypeScript
- Homepage: https://smart-contract-gpt.vercel.app
- Size: 1.59 MB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- trackawesomelist - Smart Contract GPT (⭐5) - Chat bot trained to create SIP-009 contracts. (Recently Updated / [May 25, 2024](/content/2024/05/25/README.md))
- awesome-stacks-chain - Smart Contract GPT - Chat bot trained to create SIP-009 contracts. (Clarity Resources / Non-Fungible Tokens)
README
# Smart Contract GPT
Write smart contracts in any programming language and deploy them to the Stacks blockchain.
![chrome-capture-2023-9-3 (1)](https://github.com/Markeljan/smart-contract-gpt/assets/12901349/2157fb11-686c-4648-bcb5-6157b6cf8946)## 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`
```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
- [Hosted App](smart-contract-gpt.vercel.app)
- [Bitcoin Olympics Hackathon submission](https://devpost.com/software/smart-contract-gpt)
- [Hiro Explorer Deployments](https://explorer.hiro.so/address/ST35TFTK3KTSTM6ZXX8232SDYREJYGPQJ7SKPZN9X?chain=testnet)