Coder Social home page Coder Social logo

moskalyk / pearl Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 49.84 MB

adapted to skyweaver tvl + tarot = skywalkers http://216.128.185.237:3000/

Home Page: http://216.128.185.237:3000/

JavaScript 20.65% HTML 0.38% CSS 12.32% TypeScript 3.17% Rust 7.46% Makefile 50.48% LLVM 5.54%

pearl's Introduction

pearl

a cli + svg body resistance simulation for monetary systems

fantasizing about a type of monetary system, that maintains a gini-coefficient closer to 0, where the members less than the average get an opportunity to purchase items at a discount for redistribution purposes, money made up through reserve minting / burning per tx.

discount system

The repurchasing notifications would be distributed based on bands of products or services, as something like the following:

  0: '๐ŸƒŸ_COFFEE_MEAL',
  1: 'โšš_TAXIS_MEDECINE_GROCERIES',
  2: 'โ™•_MUSIC_BOOKS_GAMES',
  3: 'โš˜_FASHION_ELECTRONICS_MOVIES',
  4: 'โ™–_EDUCATION_CARS',
  5: 'โ™”_TRAVEL_HOME',

connections

The system would source the multiplier for keeping the gini-coefficent discount within check by looking at the number of p2p connections in a system.

So, with less connection reaching a certain max, you achieve more people recieving discounts of all the ranges (they would work in culmination). e.g. @ 2^5 you get notifications for โ™”_TRAVEL_HOME e.g. @ 2^8 you get notifications beginning at ๐ŸƒŸ_COFFEE_MEAL that oscillates in the higher ranges

The idea is to match with a stable currency, so in every purchase, more or less supply is minted / burned to equate to a fully on-chain currency, which is gated via Worldcoin.

TODO:

Connect to a non-invasive brain computer interface, so that notifications can be paired to colors on a hardware device, so someone can know it's time to pick up croissants at a discount, or, book a flight to dance in europe.

example

no discount, increases steadily


    __________________________________________________________________
    ____________________________________________________________ _ _ _
    ______________________________________________ _ _ _______ _ _ _ _
0.3 __________________________________________ _ _ _ _ _ _ _ _ _ _ _ _
    ________________________________________ _ _ _ _ _ _ _ _ _ _ _ _ _
    ____________________________________ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ______________________ ___ ___ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    __________________ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0.2 ______ _ _ _____ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    1   3   5   7   9   11  13  15  17  19  21  23  25  27  29  31

with discounts, does not break .01


    __________________________________________________________________
    __________ _______________________________________ _ _ ___________
    ____ _ _ _ _______________________________________ _ _ ___________
     _ _ _ _ _ _______________________________________ _ _ _ _________
     _ _ _ _ _ _______________________________________ _ _ _ _________
     _ _ _ _ _ _______________________________________ _ _ _ _________
     _ _ _ _ _ _______________________________________ _ _ _ _ _______
     _ _ _ _ _ _______________________________________ _ _ _ _ _______
0.0  _ _ _ _ _ _________________________________ _ _ _ _ _ _ _ _ _ ___
    1   3   5   7   9   11  13  15  17  19  21  23  25  27  29  31

Fluence data particle type from memory space fluence nodes as off-chain compute, V.0

Considering each block of change of the gini coefficent, we produce and alteration to localized matching of spirit.

/// Encode an `IType` into a string.
// TODO: consider change to impl Display
impl ToString for &IType {
    fn to_string(&self) -> String {
        match &self {
            IType::Boolean => "bool".to_string(), :: direction on line, force or moderated
            IType::S8 => "s8".to_string(), :: ArBr octagonal structure, considering tree modifications and NFT energy, -/+
            IType::S16 => "s16".to_string(), :: Deep6 monoclinic & hexagonal crystalline structures
            IType::S32 => "s32".to_string(), :: LukSo ERC725 address, generating bits from create2, uploaded pearl points of digital fashion from bytes of guardian block stream
            IType::S64 => "s64".to_string(), :: 64 bit clock, run as an whl -> iching tarot deciding on information rate for support
            IType::U8 => "u8".to_string(), :: <- NftPort reading polygon, timing of polygon / ethereum -> fluence to ipfs, stored local -> c3 nouns to uqbar -> rollers ** mods -> swipe with credit card for gs repayments to ssv like
            IType::U16 => "u16".to_string(), :: Affordable housing quads with gold & timber, work with wei stream, quartz_window_type
            IType::U32 => "u32".to_string(), :: Metis 12600 timing of hands
            IType::U64 => "u64".to_string(), :: Waterflow -> EthoStep -> Charm calculation -> options contracts on astrology -> 3space of galaxy --> astrology signs as radians
            IType::F32 => "f32".to_string(), :: Medspace Matter.direct aizawa attractor typedef struct {
              c3_w mug_w; // alpha
              c3_w len_w; // beta
              c3_w buf_w[0];    //  actually [len_w] // delta
            } u3a_atom;
            IType::F64 => "f64".to_string(), :: BLS alternatives graph
            IType::String => "string".to_string(), :: city_choice:{garmentId,..|..,accessoryId}
            IType::ByteArray => "array (u8)".to_string(), :: Guardian toBytes Stream
            IType::Array(ty) => format!("array ({})", ty.as_ref().to_string()), :: Pearl Path & Gifts On a clock ::> javaspcript svg -> treemap bit rate from morse code --> mnumbers 
            IType::I32 => "i32".to_string(), :: digital blur -^ -> 82->91
            IType::I64 => "i64".to_string(), :: footprints -> usb club ->!(*)
            IType::Record(record_type_id) => format!("record {}", record_type_id),
        }
    }
}
  • Phone Device Design
  • Eink
  • Tablet back, places to place crystals in certain shapes
  • Morse code mapping --> Emojis, making the blind feel again
  • eye scanners for emojis
  • process.std.input(peripheral |= =/ x=(@ list) ++index-f |- ?: (gth @p.wallet reserve) ~& =% $ reserve (x snag tik) ==)
  • $100 square footage for quartz crystal window in quad 4 unit, include timber estimation & floorplan. build an integrated user flow.

question

  • Context: converted @socketsupply/treehash project from node crypto signing to @chainsafe/bls signing for signature public aggregation
  • TODO: complete a verification step with an aqua fluence service to forward to an aggregator rust service to write to evm based rpc chain, Polygon for now

Why do these bls signatures match?

var vectors = [
  {
    input: '9',
  },
  {
    //on a short input, the result is just the sha256 hash
    input: '1',
  },{
    //on a short input, the result is just the sha256 hash
    input: '4',
  }
]

(async () => {

  let bls = (await import("../node_modules/@chainsafe/bls/lib/blst-native/index.js")).default
  const secretKey = bls.SecretKey.fromKeygen()
  const trees = []
  for(var i = 0 ; i < vectors.length; i++) {
    const tree = new TH(1024*1024, secretKey)
    const update = await tree.update(vectors[i].input)
    const digest = await tree.digest()
    trees.push(digest)
    if(digest != undefined) console.log(digest.toBytes().toString())
  }
  console.log('why arent these different? naive.')
  console.log(trees[0].toHex() )
  console.log(trees[1].toHex() )
  console.log(trees[2].toHex() )
  console.log(trees[0].toHex() == trees[1].toHex())
  console.log(trees[1].toHex() == trees[2].toHex())
})()

::>

0xad0f68c511d4408be8236f3604b6744f84f0b477a34ea1f2a73711ab9c5d87b26d2b96f1d9209ddbfa6e6f46e8d738aa14274807c7060022a8b978ec00379679f4b442f71427e898b7aa67d9d1263d369482ec96e3d9278c4567b73de6f0fd1b

0xad0f68c511d4408be8236f3604b6744f84f0b477a34ea1f2a73711ab9c5d87b26d2b96f1d9209ddbfa6e6f46e8d738aa14274807c7060022a8b978ec00379679f4b442f71427e898b7aa67d9d1263d369482ec96e3d9278c4567b73de6f0fd1b

0xad0f68c511d4408be8236f3604b6744f84f0b477a34ea1f2a73711ab9c5d87b26d2b96f1d9209ddbfa6e6f46e8d738aa14274807c7060022a8b978ec00379679f4b442f71427e898b7aa67d9d1263d369482ec96e3d9278c4567b73de6f0fd1b

horo

const {useState, useEffect} from 'reaction'
const horo = {
  1: 'yellow',
  6: 'pink',
  11: 'black',
  4: 'red',
  9: 'orange',
  2: 'green',
  7: 'paleblue',
  12: 'red',
  5: 'white',
  10: 'pink',
  3: 'maroon',
  8: 'darkblue',
}

let tik = 12
let counter = 0;

setInterval(() => {
    const pearlTaken = pk.getValue(getDataPearl().fromTreeHash().digest())
    counter++
    sections.push(<span class="section", id={`block-${nonce}'}></span>)
        if(counter %  60*1000*5*12 == 0){
           tik++
           sections.push(<span class="section forked">
              <span class="lane" style={{color: horo[tik]}}></span>
              <span class="lane" style={{color: horo[counter]}}></span>
            </span>
           )
           if(tike % 2 == 0) tik = 0
    })
    document.getElementById('section').css.color = pearlTaken
}, 60*1000*5)

const Chain = () => {
const [sections, setSections] = useState([])

return(
<div class="path" id="path">
    {sections}
  <span class="section"></span>
  <span class="section"></span>
  <span class="section forked">
    <span class="lane"></span>
    <span class="lane"></span>
  </span>
  <span class="section"></span>
</div>
)

visuals

  • kathara
  • clock
  • p2p congestion
  • stream

lukso erc725

// work in progress const vectors = [ { name: 'SupportedStandards:LSP3UniversalProfile', key: await tree.update().digest(), keyType: 'Mapping', valueContent: 'false', valueType: 'bytes', IType: 'bool' } ]

bay

[
  'unib8nk','horo',
  'arbr','pearl'
]

assemble

guardians: galactic tree stewards (gts)

alts fault tolerance oak

I'll be home ::> It'll be the wind that pushes us west, from pure reads;

pearl resistance

resistance

  • Voltage = # of pearl operators navigating with a quaterion dot product applied by: Resistance{0..3} X Current{0..3} from 4 people operating
  • Resistance = Applied Kathara Node {1..12}
  • Current = Superfluid money stream {0..1} where payment is a function of joy over time.

Each resistance capacitor can be claimed as an NFT on the pearl diagram, to show not only on pearl, what binary system they're operating on, but a windowed time slice into their recent checkins.

"And here there dawned on me the notion that we must admit, in some sense, a fourth dimension of space for the purpose of calculating with triples ... An electric circuit seemed to close, and a spark flashed forth."

explainer: TODO

โ˜ผ

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.