cairo_kernel is a simple Jupyter kernel for Cairo a smart contract programing language for STARKs.

Overview

cairo_kernel

cairo_kernel is a simple Jupyter kernel for Cairo a smart contract programing language for STARKs.

Installation

  1. Install virtualenv

    virtualenv -p python3.8 venv
    source venv/bin/activate
    
  2. Clone the repo:

    git clone https://github.com/ankitchiplunkar/cairo-jupyter.git
    
  3. To install cairo_kernel from local:

    pip install -e .
    python -m cairo_kernel.install
    

Using the Kernel

Cairo example is a working example of the notebook.

Notebook: The New menu in the notebook should show an option for an Cairo notebook.

Console frontends: To use it with the console frontends, add --kernel cairo to their command line arguments.

You might also like...
A repository for Algogenous Smart Contracts created on the Algorand Blockchain.

Smart Contacts This Repository is dedicated to code for Alogrand Smart Contracts using Choice Coin. Read Docs for how to implement Algogenous Smart Co

Implementation of Smart Batch Auction for NFT launches on Tezos.

NFT Smart Batch Auction Smart Batch Auctions are an improvement over the traditional first come first serve (FCFS) NFT drops. FCFS design has been in

This demo is an on-chain NFT auction using smart contracts on the Algorand blockchain.

Algorand Auction Demo This demo is an on-chain NFT auction using smart contracts on the Algorand blockchain. Usage The file auction/operations.py prov

SVSHI - Secure and Verified Smart Home Infrastructure
SVSHI - Secure and Verified Smart Home Infrastructure

The SVSHI (Secure and Verified Smart Home Infrastructure) (pronounced like "sushi") project is a platform/runtime/toolchain for developing and running formally verified smart infrastructures, such as smart buildings, smart cities, etc.

Using with Jupyter making live crypto currency action
Using with Jupyter making live crypto currency action

Make-Live-Crypto-Currency-With-Python Using with Jupyter making live crypto currency action 1.Note: 💣 You must Create a Binance account and also clic

Tink is a multi-language, cross-platform, open source library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.

Tink A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse. Ubuntu

A simple Ethereum mining pool

A simple getWork pool for ethereum mining Payouts are still manual. TODO: write payouts when someone mines 10 blocks. Also, make the submit actually

A simple Ethereum mining pool

A simple getWork pool for ethereum mining

Learn Blockchains by Building One, A simple Blockchain in Python using Flask as a micro web framework.
Learn Blockchains by Building One, A simple Blockchain in Python using Flask as a micro web framework.

Blockchain ✨ Learn Blockchains by Building One Yourself Installation Make sure Python 3.6+ is installed. Install Flask Web Framework. Clone this repos

Comments
  • No Cairo option when notebook start

    No Cairo option when notebook start

    Hey, thanks for the quick fix to the previous issue.

    The package installs now which is great, and I am able to run the jupyter notebook command from within the environment where cairo-kernel is installed. The Cairo option doesn't yet show up in after the notebook starts (as is visible in the how to GIF in the README).

    Thanks for your help image

    opened by agolajko 2
  • Getting missing argument error when trying to install

    Getting missing argument error when trying to install

    Hi there,

    When trying to installing this package I get the following error: TypeError: __init__() missing 1 required positional argument: 'builtins'

    I have started a new virtual env and also downloaded ipykernel it first asked me to.

    Do you have any pointers why I might be getting this issue?

    opened by agolajko 2
  • add error handling

    add error handling

    Adding error handling

    Before: if the code returned an error the notebook was stuck and kernel had to be restarted Now: cell returns error message and kernel is still running

    opened by Arie-ben 0
Owner
Ankit Chiplunkar
Research Lead at @tokenanalyst. Interests include Crypto-currencies, Machine Learning.
Ankit Chiplunkar
😈 Shining is a tool that enables engineers to remotely pull smart contract code in multi-file situations.

?? Shining ?? Shining is a tool that enables engineers to remotely pull smart contract code in multi-file situations. Shining is the name of one of my

xxxeyJ 15 Jun 17, 2022
A workshop to build an NFT smart contract on the polygon blockchain

Polygon NFT Workshop This is an interactive workshop that guides you through the steps to deploy an NFT smart contract on the Polygon blockchain. By t

Banjo Obayomi 56 Oct 14, 2022
Audit of classmate's smart contract in blockchain seminar

Solidity-contract-audit Audit of classmate's smart contract in blockchain seminar Assignment: The task was to create a complete audit, including unit

smrza 0 Feb 4, 2022
TON Command Line Interface - easy smart contract manipulation

toncli The Open Network cross-platform smart contract command line interface. Easy to deploy and interact with TON smart contracts. Installation Toncl

Disintar IO 100 Dec 18, 2022
Smart-contracts - open sourcing our upcoming smart contracts for better security and transparency

Smart-contracts - open sourcing our upcoming smart contracts for better security and transparency

Rand Gallery 16 Jul 10, 2022
A cairo port for Rari Capital Vaults

crypts • Architecture contracts ├─ CryptFactory — "Factory for deploying Crypt contracts for any ERC20 token." ├─ Crypt — "Flexible, minimalist, and g

alucard 9 Sep 2, 2022
A bot written in Python to automatically buy tokens on the Binance Smart Chain as soon as liquidity is provided

A bot written in Python to automatically buy tokens on the Binance Smart Chain as soon as liquidity is provided. If you’ve found this bot useful and have profited from it please consider donating any token to my BSC wallet address: 0xE75470B9a7c93038195ca116E342c42F6B3F758b

null 473 Dec 25, 2022
Tool to compare smart contracts source code

smartdiffer Tool to compare smart contracts source code. Heavily relies on API of Etherscan and Diffchecker. Installation pip install smartdiffer API

Roman Moskalenko 23 Nov 16, 2022
smartpassgen - A cross-platform package of modules for generating, secure storage and recovery of complex, cryptographic, smart passwords on the fly.

smartpassgen - A cross-platform package of modules for generating, secure storage and recovery of complex, cryptographic, smart passwords on the fly.

null 4 Sep 4, 2021
A repository for Algogenous Smart Contracts created on the Algorand Blockchain.

Smart Contacts Alogrand Smart Contracts using Choice Coin. Read Docs for how to implement Algogenous Smart Contracts for your own applications. Smart

Choice Coin 3 Dec 20, 2022