A set of librairies in Cairo for use on StarkNet

Overview

Sekai StarkNet Libraries

A series of libraries to help using Cairo on StarkNet.

Examples for use in other Cairo contracts are provided in examples.

Contents

Local run

pip install -r requirements.txt
yarn

To run the tests use one terminal for the local devnet

yarn net

And a second one to test

yarn test

Libraries

Cairo String

Library to store & manipulate strings in Cairo on StarkNet.

Utilities to use those strings in TypeScript apps are located here.

The doc needs to be written but the code is commented using Python Docstrings standards (kinda)

You might also like...

Adapter application for consuming web3 messages from ie. wallets, and passing them on to starknet

🐍 StarknNet web3 account Development setup Clone deps with submodules git clone --recurse-submodules [email protected]:software-mansion-labs/starknet-we

Nov 21, 2022

scaffold-stark is a forkable StarkNet dev stack focused on fast product iterations, inspired by scaffold-eth.

scaffold-stark is a forkable StarkNet dev stack focused on fast product iterations, inspired by scaffold-eth.

💠 scaffold-stark scaffold-stark is a forkable StarkNet dev stack focused on fast product iterations, inspired by scaffold-eth. Drop in your Cairo sma

Oct 7, 2022

A NestJS module that allows you use Prisma, set up multiple Prisma services, and use multi-tenancy in each Prisma service.

A NestJS module that allows you use Prisma, set up multiple Prisma services, and use multi-tenancy in each Prisma service.

NestJS Prisma Module Installation To use this package, first install it: npm i @sabinthedev/nestjs-prisma Basic Usage In order to use this package, yo

Dec 2, 2022

SET Revision is a website to help you identify "sets" in the card game SET.

Welcome to SET Revision! SET Revision is a website to help you identify "sets" in the card game SET. The code in this repository is aimed for learners

Oct 3, 2022

A set of small, responsive CSS modules that you can use in every web project.

A set of small, responsive CSS modules that you can use in every web project.

Pure A set of small, responsive CSS modules that you can use in every web project. https://purecss.io/ This project is looking for maintainers to supp

Jan 9, 2023

A high-resolution local database that uses precise algorithms to easily record data in local files within a project with persistent JSON and YAML support designed to be easy to set up and use

A high-resolution local database that uses precise algorithms to easily record data in local files within a project with persistent JSON and YAML support designed to be easy to set up and use

About A high-resolution local database that uses precise algorithms to easily record data in local files within a project with persistent JSON and YML

Dec 28, 2022

In this project I'll use Asynchronous Javascript to call an API and set the leaderboard of the best players.

Leaderboard Project In this project I'll use Asynchronous Javascript to call an API and set the leaderboard of the best players. The main goals of thi

Oct 17, 2022

A devtool improve your pakage manager use experience no more care about what package manager is this repo use; one line, try all.

pi A devtool improve your pakage manager use experience no more care about what package manager is this repo use; one line, try all. Stargazers over t

Nov 1, 2022

A set of best practices for JavaScript projects

A set of best practices for JavaScript projects

中文版 | 日本語版 | 한국어 | Русский | Português Project Guidelines · While developing a new project is like rolling on a green field for you, maintaining it is

Jan 1, 2023
Comments
  • Make utilities available through npm install

    Make utilities available through npm install

    Similar to https://github.com/0xs34n/starknet.js/blob/develop/README.md

    It would be good to get some info on how we can use this library for the utilities.

    Thank you!

    documentation enhancement 
    opened by rzmahmood 2
  • Wrong conversion from string to short string felt for simple numbers

    Wrong conversion from string to short string felt for simple numbers

    Hello team. I have been working on a web UI that uses your library https://cairo-utils-web.vercel.app (repo).

    During the use I can see that the library works as intended for a string like "ciao" -> 1667850607. But it returns a wrong result when the input is a simple number "1" -> 49, instead of "1" (both decimal and hex outputs are wrong).

    I compared the output with something created by another person at https://util.turbofish.co/

    Are you aware of this issue? Thanks

    documentation 
    opened by clacladev 1
  • String_felt_to_string throws

    String_felt_to_string throws "Invalid memory value at address" error

    calling String_felt_to_string function with parameter 1

    func felt_to_string{
            syscall_ptr : felt*, range_check_ptr, pedersen_ptr : HashBuiltin*
        }(elem : felt) -> (str_len : felt, str : felt*):
        let (str1_len, str1) = String_felt_to_string(elem)
        return  (str1_len,str1)
    end  
    
    
    

    got error

    {"code": "StarknetErrorCode.SECURITY_ERROR", "message": "Invalid memory value at address 1:62: 12:3618502788666131213697322783095070105623107215331596699973092056135872020480."}
    
    
    opened by 0xbohu 0
Owner
Sekai
Next-level anime fans experience
Sekai
StarkNet support extension for VSCode. Visualize StarkNet contracts: view storage variables, external and view functions, and events.

StarkNet Explorer extension This VSCode extension quickly shows relevant aspects of StarkNet contracts: Storage variables of the current contract, and

Crytic 6 Nov 4, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Workshop for starknetCC (nextjs x starknetjs x cairo)

NextJS - Starknet.js - Cairo • Workshop StarknetCC - Full dApp workshop by Alpha Road team You'll find the PDF presentation here Introduction This wor

419 Labs 15 Nov 8, 2022
The (unofficial) Cairo extension for vscode

Cairo extension (unofficial) Introduction The Starkware team is doing a great job in developing the Cairo language and the Starknet layer2. At the tim

qdqdqd.eth 15 Sep 29, 2022
Modern, Flexible Starknet Dapp Template

cairopal • Modern, Flexible Starknet Dapp Template. Developing Clone the repository git clone [email protected]:a5f9t4/cairopal.git cd cairopal Install D

andreas 38 Sep 28, 2022
Verbosely Documented, Minimal Starknet Contract Examples.

cairo-by-example • Verbosely Documented, Minimal Starknet Contract Examples. Cairo By Example deployed to https://cairo-by-example.xyz Developing Clon

andreas 63 Dec 6, 2022
This is a development platform to quickly generate, develop & deploy smart contract based applications on StarkNet.

generator-starknet This is a development platform to quickly generate, develop, & deploy smart contract based apps on StarkNet. Installation First, in

Only Dust 34 Nov 18, 2022
StarkNet wallet <-> dApp bridge

get-starknet StarkNet wallet <-> dApp bridge Alpha version Goals Allow dApps to seamlessly connect to any wallet on StarkNet Allow wallets to seamless

null 44 Dec 21, 2022