Skip to content

Instantly share code, notes, and snippets.

View thelostone-mc's full-sized avatar
🤖
/co(de|ok|ffee)/g

Aditya Anand M C thelostone-mc

🤖
/co(de|ok|ffee)/g
  • Allo, ex-gitcoin , ex-paypal
  • Tamil Nadu, India
View GitHub Profile

🦀 30-Day Rust Learning Plan

Week 1: Core Language + Ownership Mastery

Day Date Focus Task
1 2025-04-30 Install & Hello World Set up Rust + cargo, print something
2 2025-05-01 Variables & Data Types Learn let, mut, primitives, String vs &str
3 2025-05-02 Functions & Control Flow Write conditionals, loops, functions
4 2025-05-03 Ownership & Moves Read Ch. 4 of The Book + examples
const CONFUSABLES = {
"0": "O",
"1": "l",
"֭": "֖",
"֮": "֘",
"֨": "֙",
"֤": "֚",
"᪴": "ۛ",
"⃛": "ۛ",
"ؙ": "̓",
[
{
"id": 2575,
"title": "DefiLab_xyz",
"admin_address": "0xD7ceb6F030699BF707Cb8b927A4f39c989c5Ab8B",
"clr_matches": [
{
"pk": 6218,
"amount": 9054.20287179098,
"round_number": 12,
@thelostone-mc
thelostone-mc / test_chunk
Created January 3, 2022 11:35
0x86a4cabC9b8EBf94Ef609c6E077AD472386Af93c
THIS IS A REAL PAYOUT FOR rinkeby DAI. ARE YOU DOUBLE SECRET SUPER SURE? (y/n) y
#TODO: Send this txn view etherscan 0x86a4cabC9b8EBf94Ef609c6E077AD472386Af93c
[["0x0559A413A3AB19508a144aeebC474eB14c5e76CE", "54473691834527902"], ["0xC662606eDB852ba22F75680f7b2c89767014520e", "54473691834527902"], ["0x31cA6CA7f7A3298Bc6c5103Aa45847f34e382a1C", "54473691834527902"], ["0x257cb82C6F915931b6336a4C0EBeFd41C4d17F47", "54473691834527902"], ["0x36A0356d43EE4168ED24EFA1CAe3198708667ac0", "132642558435945606"], ["0x751329B3A2a92FBEffDAC3Eaa5F9fBeA7584a0bC", "108924722760525005"], ["0x1bC0f329CB0A20FAb58054d0098d79446a0AE860", "123261249063708000"], ["0x84242012cCf68382Bd005587247e167CE1c96BFA", "129145660342536994"], ["0x41DdE2Dc7f718D5F764fc97e8d122864587642d4", "129145660342536994"], ["0x76609C4947289D40B1444C90c9AF44E0f03F425a", "129145660342536994"], ["0xB6F7C2a6EEFB0d627D149d7263152Ad4548120f2", "131083501258330986"], ["0x11860d47411Cc5f132B5791201E01d25a3b4d1c7", "135719582188974008"], ["0xfC0FFdA6bacd430679B012D

Description

Current Flow

Grant Creation

A user can create a grant specifing attributes which include

  • Grant Type (This is coupled with the CLR Round. Eg: Tech / Media / ...)
  • Grant Category (This has mapping to Grant Type)
  • Grant Type
public static org.json.JSONObject cleanJson(org.json.JSONObject jsonObject) throws JSONException {
		Iterator <String> keys = jsonObject.keys();
		while (keys.hasNext()) {
			String key = keys.next();
			if (jsonObject.has(key)) {

				Object val = jsonObject.get(key);

CURRENT STATE

  • Finalize Model Design
  • Make Data Model Changes
  • Custom Migration to preserve data
  • Fix Broken Pieces
    • Grants (Creation + Display + Fund)
    • CLR
    • Sybil
@thelostone-mc
thelostone-mc / leet.md
Last active April 22, 2020 20:54
Gitcoin-$LEET

Assume I’ve got 500 ADY tokens

  1. Every personal token created is essentially a new ERC20 token
  2. Ability to allow users to do a one click create (via your web3 wallet). I’d be able to set
    • Token name = ADY
    • Total Supply (500 in this case )
    • Exchange Rate (aka 1 ADY == X DAI)
    • Redemption Value : An attribute called redemption which would be a unit of time
  3. Can I increase the number of ADY token at a later point in time for v1 ?
  4. Would I be able to increase token value (aka 1 ADY == X + Y DAI )

The following doc explores how we'd go about updating the codebase to support cross chain integrations.

These requires a lot of documentation + strict guidelines which engineering WILL have to f ollow to ensure we can get a decent implementation of the idea listed below of it.

Currently the following are tightly coupled with Ethereum + Metamask.

  • Frontend (FE)
  • Backend (BE)
  • Data Model (DB)

ES6 upgrade : Integrate babel compiler

User Story

As of this moment, the JS files are clunky and use the older syntax After discussions with folks form the community, it's been agreed upon that we'd integrate babel to enable developers use the newer syntax while ensure the compiler will take care of the backward compatibility
Possible solutions: gulp / PIPELINE / webpack

Why Is this Needed?