Skip to content

Instantly share code, notes, and snippets.

View moskalyk's full-sized avatar
💭
cool build

Morgan Moskalyk moskalyk

💭
cool build
  • sequence
  • Toronto, Canada
View GitHub Profile
#!/bin/bash
# Function to remove node_modules folders
removeNodeModules() {
find "$1" -type d -name "node_modules" -exec rm -rf {} +
}
# Call the function with the current directory as the starting point
removeNodeModules .
import { ethers } from 'ethers'
async function isSequenceWallet(address: string){
const provider = new ethers.providers.JsonRpcProvider('https://nodes.sequence.app/polygon')
const code = await provider.getCode(address);
if(code == '0x363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3') return true
else return false
}
// dht server, run with $ node dht.js
const DHT = require('@hyperswarm/dht')
const dhtNode = new DHT()
const Corestore = require("corestore")
const server = dhtNode.createServer()
const corestore = new Corestore('./db')
const data = corestore.get({name: "data", valueEncoding: 'json'})
@moskalyk
moskalyk / reed
Last active October 27, 2021 13:44
Here is the premise:
- Can trust tokens be used for in-between decision making between trust groups or squads.
- With tarot card pull gateways: pre-context pull & post-moment, where token movements within friend groups act as gateways using uniswap for liquidity in aggregate squad groups, e.g. FWB or forefront.
- Minimal interface for tracking ones metaverse journey.
@moskalyk
moskalyk / Crowdfund.sol
Created March 21, 2021 22:00 — forked from graemecode/Crowdfund.sol
Crowdfunding NFTs with Zora
//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.8;
pragma experimental ABIEncoderV2;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {
ReentrancyGuard
} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";

Off-Chain Contracts

Inspiration from the Mimo eContracts.

Current Solution:

Currently, eContracts have their business logic within their store. This mimics custom logic within the store. Following SOLID design principles, it seems like this approach can be limiting, with the

Composition Inheritance over Composition

Therefore, code would not extend the store i.e. Inheritance. Code could be called I.E. Composed.

04c8acd07b852252a294d63ef05136de16e602bea4dee095fb1b68d081cff01c11ef4449b4dfc59d3fe6fe0a9f946fafbc51d7c40e2e6f3beb0b0df72ba4cd0714;aenhsaihan
Verifying my Blockstack ID is secured with the address 1QJzGmwVKmxbqQWRyVa5z4sm4XBtaUru16 https://explorer.blockstack.org/address/1QJzGmwVKmxbqQWRyVa5z4sm4XBtaUru16

Keybase proof

I hereby claim:

To claim this, I am signing this object:

0xFd2E91bcfae6FC3ba032358c97DD7bB8d36f239f