Skip to content

Instantly share code, notes, and snippets.

View tspoff's full-sized avatar

Thomas Spofford tspoff

View GitHub Profile
@tspoff
tspoff / output.json
Created August 26, 2020 01:32
UDT Info Cell Output
{
"version": "0x0",
"cell_deps": [
{
"out_point": {
"tx_hash": "0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",
"index": "0x0"
},
"dep_type": "dep_group"
},
pragma solidity ^0.5.7;
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
/// @title PolynomialCurvedToken - A polynomial bonding curve
/// implementation that is backed by an EIP20 token.
contract PolynomialCurveLogic {
using SafeMath for uint256;
uint256 private constant PRECISION = 10000000000;

Keybase proof

I hereby claim:

  • I am tspoff on github.
  • I am tspofford (https://keybase.io/tspofford) on keybase.
  • I have a public key ASBpXPD6O5r9tMbYfo2K2kNwW7AqhvDCyY1oYHvKfHMUQwo

To claim this, I am signing this object:

3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmXkkfY8x6H1K2YA4UnN5JunDtBK88k9ws2ot8n1HvzC36 ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@tspoff
tspoff / Playground.hs
Last active April 18, 2019 15:47
Plutus Playground Smart Contract
-- | Crowdfunding contract implemented using the [[Plutus]] interface.
-- This is the fully parallel version that collects all contributions
-- in a single transaction.
--
-- Note [Transactions in the crowdfunding campaign] explains the structure of
-- this contract on the blockchain.
import qualified Language.PlutusTx as PlutusTx
import qualified Ledger.Interval as Interval
import Ledger.Slot (SlotRange)
import qualified Ledger.Slot as Slot
@tspoff
tspoff / integerToNumericalString.js
Created April 24, 2018 00:35
Converts integer input to a numerical string (i.e. how you would write numbers on a check - e.g. "One hundred seventy-four");
const ZERO = "0";
const ONE = "1";
const HUNDRED_AS_WORD = "hundred";
const ZERO_AS_WORD = "zero";
const digitMap = {
"0": "",
"1": "one",
"2": "two",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">