Skip to content

Instantly share code, notes, and snippets.

@benjyz
benjyz / crypto.md
Created Mar 21, 2022
Ben Crypto CV
View crypto.md

Ben's CV

I have been working on Crypto fulltime in December 2013 as a advisor and cofounder. Focusing on smart contracts and Decentralised exchange.

Projects

  • 2013 - 2014 Bitcoin (Openasset protocol)
  • 2015 - 2017 Lykke (biggest Bitcoin based coloredCoin project, helped raise funds in ICO 2016)
  • 2015 - 2016 Cardano (worked with Charles and Jeremy, helped ICO, proof https://imgur.com/Ye32ZeZ)
View discord.js
const fs = require('fs');
//import {Web3} from 'web3';
const { Client, Intents } = require('discord.js');
const { token } = require('./config.json');
const log = require('simple-node-logger').createSimpleLogger("verifybot.log");
View launch.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.5;
import "OpenZeppelin/openzeppelin-contracts@4.3.0/contracts/access/Ownable.sol";
// interface INRT{
// function issue(address account, uint256 amount) public onlyOwner;
// function redeem(address account, uint256 amount) public onlyOwner;
// function balanceOf(address account) public view returns (uint256);
View launch.sol
pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
/*
--- Launchswap: contract for launching ventures ---
investor submit capital and can redeem it at a cost
for now this is a single instance of the swap
the owner of the contract defines the mechanics
owner defines the mid price and the spread
@benjyz
benjyz / start
Created Sep 16, 2021
brownie start
View start
pip3 install eth-brownie
brownie bake vyper-token
cd vyper-token
brownie console
token = Token.deploy("Test Token", "TST", 18, 1e21, {'from': accounts[0]})
View launch.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
--- Launchswap: contract for launching ventures ---
investor submit capital and can redeem it at a cost
for now this is a single instance of the swap
the owner of the contract defines the mechanics
owner defines the mid price and the spread
View freeze.txt
aiohttp==3.7.4.post0
alabaster==0.7.12
ape-etherscan==0.1.0a1
appdirs==1.4.4
appnope==0.1.2
APScheduler==3.6.3
argon2-cffi==20.1.0
arrow==1.1.1
astor==0.8.1
asttokens==2.0.4
View foo.vy
bar: uint256
@external
def __init__():
self.bar = 42
#compiles to 0x602a600055
####
View poa.md

PoA summary

PoAw would work like this

Work -> generated bits -> receive asset

Could even be implemented in bitcoin ie like dash

essentially in this case of PoAW the work would be done in rounds, not contiously per block

View ntc.vy
# Non transferrable Certicates (NTC)
# NTCs are certificates. they get issued and redeemed
# the issue and redeem process is uncoupled from this contract
# the owner can give other new owners the right to issue (multiowners)
# to keep track of different issuances there is a bucket id
# to map to vesting schedule
event Issue:
receiver: indexed(address)
amount: uint256