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.
- Supports token transfers between addresses.
- Implements standard ERC-20 functions like
name
,symbol
,decimals
,totalSupply
,balanceOf
,transfer
,approve
,allowance
, andtransferFrom
. - Uses the Cairo language for Starknet.
- Review the
erc20_token_contract.cairo
file for the contract code. - Make sure to adapt the contract to your specific needs and thoroughly test it.
- Deploy the contract to the Starknet chain.
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.
- 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.
- Install the required libraries or tools.
- Run the auto-withdraw script periodically using a task scheduler or any other preferred method.
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.
- Supports ownership tracking and transfer of NFTs.
- Implements standard NFT functions like
name
,symbol
,totalSupply
,ownerOf
, andtransfer
. - Uses the Cairo language for Starknet.
- Review the
nft_contract.cairo
file for the contract code. - Make sure to adapt the contract to your specific needs and thoroughly test it.
- Deploy the contract to the Starknet chain.
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.
- 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.
- Install the required libraries or tools.
- Run the auto-withdraw script periodically using a task scheduler or any other preferred method.