Coder Social home page Coder Social logo

starknet-io / tokei Goto Github PK

View Code? Open in Web Editor NEW
45.0 2.0 19.0 3.7 MB

โœจ ๐Ÿบ Starknet ERC20 token streaming protocol ๐Ÿ’ฐโณ, inspired by Sablier.

Home Page: https://tokei.madara.build

License: MIT License

Cairo 44.32% JavaScript 1.21% TypeScript 53.47% CSS 1.00%
cairo erc20 starknet vesting

tokei's Issues

Starkvest - Implement func "releasable_amount_all_vestings"

Description

Starkvest - Implement func releasable_amount_all_vestings

Signature :

    func releasable_amount_all_vestings(account: felt) -> (releasable_amount: Uint256) {
    }

Acceptance Criteria

  • Impl the function into repo carbonable-starknet
  • Impl unit tests

Develop a MVP for Token Vesting with lockup_linear functionality

Develop a MVP for Token Vesting with lockup_linear functionality

๐Ÿ” Project Overview

Transitioning a token vesting smart contract from Solidity to Cairo. The original contract in Solidity manages token vesting with a lockup_linear feature. Goal: replicate and optimize this functionality in Cairo.

๐ŸŽฏ Objectives

  1. Replicate Core Features: Maintain all essential functionalities from the Solidity version.
  2. Cairo Optimization: Adapt and optimize for Cairo language features.
  3. Maintain Security Standards: High security and robustness in the Cairo implementation.

๐Ÿ”‘ Key Features

  • Lockup Linear Streams: Implement stream mapping, creation, and management.
  • User-Facing Functions: Port functions like getAsset, getCliffTime, etc., to Cairo.
  • Internal Logic: Replicate internal logic such as _calculateStreamedAmount, _statusOf, etc.
  • Error Handling: Adapt custom error handling.

๐Ÿงช Testing and Validation

  • Develop comprehensive unit and integration tests.
  • Adapt and mirror test cases from Solidity to Cairo.
  • Working examples usage with Starknet.js for example

๐Ÿ“š Documentation

  • Detailed code comments for clarity.
  • Documentation comparing Solidity and Cairo versions.
  • Usage instructions and examples.

Migration to Cairo 0.10.1

Description

Upgrade the Cairo language from 0.9 to 0.10.1.

Acceptance Criteria

  • Upgraded to Cairo 0.10.1
  • Upgraded protostar to 0.7
  • Upgraded Github action CI_TEST

Develop a human interaction interface for Starknet Explorers with LLMs.

Develop a human interaction interface for Starknet Explorers with LLMs.

๐Ÿ” Project Overview
This project seeks to innovate the way users interact with blockchain data on Voyager and StarkScan, the leading explorers for Starknet. The goal is to introduce a solution featuring a chat-like interface or modal that simplifies the blockchain data displayed on these explorers into a more understandable, human-readable format. This initiative aims to make blockchain data like transactions, accounts, addresses, and tokens more accessible and comprehensible to the general public.

๐ŸŽฏ Objectives

  • Enhanced Accessibility: Develop a user-friendly interface that overlays on Voyager and StarkScan pages, making blockchain data easier to understand.
  • Dynamic Data Interpretation: Utilize algorithms to translate technical blockchain information into simple, human-readable content.
  • Interactive Queries: Enable direct user queries for specific blockchain elements through a conversational interface.
  • Scalable Solution: Design the system with adaptability in mind, allowing for future expansion to additional blockchain explorers.

๐Ÿ”‘ Key Features

  • Conversational Interface: Deploy a React-based chat interface accessible on Voyager and StarkScan explorer pages.
  • Page Content Analysis: Implement JavaScript logic to dynamically read and interpret the content of blockchain explorer pages.
  • Blockchain Jargon Translation: Translate complex blockchain terms and data into easy-to-understand information.
  • Interactive Search and Query: Integrate functionality for users to search and inquire about blockchain-related data through the interface.
  • Real-time Updates: Ensure the interface reflects real-time data as users navigate and interact with blockchain explorers.

๐Ÿงช Testing and Validation

  • Conduct comprehensive testing, including unit, integration, and user acceptance tests, to ensure the tool's reliability and user-friendliness.
  • Validate the solution's adaptability by testing with Voyager and StarkScan, and plan for compatibility with future explorers.
  • Implement user testing sessions to refine usability and functionality based on feedback.

๐Ÿ“š Documentation

  • Offer detailed in-line code documentation and a clear explanation of the solution's architecture.
  • Provide setup and integration guides for applying the chat interface to Voyager and StarkScan or other scanners.
  • Create user documentation with examples to showcase the interface's capabilities and guide users on its effective use.

๐Ÿ”„ Expansion and Future Development

  • Initially, the solution will leverage RAG (Retrieval-Augmented Generation) for context understanding and function calling for blockchain data reading.
  • Plans to incorporate a fine-tuned open-source model to tailor the solution more closely to blockchain-specific use cases, enhancing privacy, specificity, and knowledge.
  • Create a stand-alone Explorer that does a multitude of such operations that translate functionalities from Blockchain jargon/terminology or deep technical aspects into human readable content.

By bridging the gap between complex blockchain data and user understanding, this project aims to democratize access to blockchain insights, fostering greater engagement and knowledge among users. The vision is to create a scalable, adaptable interface that evolves with blockchain technology and user needs.

ComponentDiagram
UserDiagram
MindMap

Frontend MVP Development for Tokei Vesting platform

Description

Frontend for Tokei platform, Token vesting platform written in Cairo.

Creating an interface for every user can:

  • create a lockup_linear with the create_with_range function on the Cairo contracts.
  • See lockups created
  • See lockups can be claimed
  • Lockup Data about the waiting time and linear release.

I'm waiting for the PR on the Cairo contract to be merged, and I can start the implementation of the front end after.

Example of UI: https://app.sablier.com

Acceptance Criteria

  • Linear lockup
  • Data visibility for lockup by sender and recipients.

Additional context

UI Example of Vesting creation:

image_2024-01-20_145613138

Refactor access control (Ownable) to be upgradable (Proxy) friendly

Description

Refactor library and starkvest file to change the access control (Ownable) check.
The purpose is to be aligned with the latest best practices and expose the library to be upgradable (Proxy) friendly.

Acceptance Criteria

  • Implementation in library and starkvest file
  • Update tests unitary and integration to check access control into integration tests

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.