GithubHelp home page GithubHelp logo

starknetrepo's Introduction

Starknetrepo

ERC-20 Token Contract in Cairo for Starknet

This is a basic ERC-20 token contract implemented in Cairo for Starknet. ERC-20 is a widely used standard for fungible tokens on Ethereum and other blockchain platforms.

Features

  • Supports token transfers between addresses.
  • Implements standard ERC-20 functions like name, symbol, decimals, totalSupply, balanceOf, transfer, approve, allowance, and transferFrom.
  • Uses the Cairo language for Starknet.

Getting Started

  1. Review the erc20_token_contract.cairo file for the contract code.
  2. Make sure to adapt the contract to your specific needs and thoroughly test it.
  3. Deploy the contract to the Starknet chain.

Auto Withdraw Script

Included in this repository is a simple auto-withdraw script written in JavaScript. This script periodically checks the balance of a specified contract address and transfers the funds to a target address if a balance is detected.

Requirements

  • Replace the placeholder values in the script with your actual contract address, private key, target address, and library (if available).
  • Ensure you have the necessary tools and libraries for interacting with Starknet contracts.

Usage

  1. Install the required libraries or tools.
  2. Run the auto-withdraw script periodically using a task scheduler or any other preferred method.

NFT Contract in Cairo for Starknet

This is a basic Non-Fungible Token (NFT) contract implemented in Cairo for Starknet. NFTs are unique tokens often used to represent ownership of digital assets like art, music, and collectibles.

Features

  • Supports ownership tracking and transfer of NFTs.
  • Implements standard NFT functions like name, symbol, totalSupply, ownerOf, and transfer.
  • Uses the Cairo language for Starknet.

Getting Started

  1. Review the nft_contract.cairo file for the contract code.
  2. Make sure to adapt the contract to your specific needs and thoroughly test it.
  3. Deploy the contract to the Starknet chain.

Auto Withdraw Script

Included in this repository is a simple auto-withdraw script written in Python. This script periodically checks the balance of a specified contract address and transfers the funds to a target address if a balance is detected.

Requirements

  • Replace the placeholder values in the script with your actual contract address, private key, target address, and library (if available).
  • Ensure you have the necessary tools and libraries for interacting with Starknet contracts.

Usage

  1. Install the required libraries or tools.
  2. Run the auto-withdraw script periodically using a task scheduler or any other preferred method.

starknetrepo's People

Contributors

titanjps avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.