• Wednesday

    • Executive order on crypto. Signed today, leaked last night.
      • (disclaimer: government bumbling along the cold trail of technology, on some congenital quest of habit, is not funny to me; it’s a waste of careers and interests and infrastructure)
      • https://www.cnbc.com/2022/03/09/heres-whats-in-bidens-executive-order-on-crypto.html.
      • Most of the order was research-based; “Here’s what we think is important, here’s what we plan to explore in the future.”
    • Remember NFTs can be used as collateral: https://www.nftfi.com/.
    • Aside from “access card” utilities, you can also boost yield with non fungible tokens. Imagine fungible tokens being staked in tiers; you get 10% if you delegate 1,000 SOL but you get 15% if you delegate 10,000 SOL. This is true in both defi and traditional finance. But you could do the same thing with NFTs. Eg: holders of this NFT get +3% APY on their deposits, holders of this NFT get access to the 90% LTV pools instead of the standard 75%, etc.
    • Bought and minted a domain on unstoppable domains.
      • These manifest as NFTs and mint on polygon.
      • You can add identity information to the metadata like name, avatar, website, whatever.
      • Most convenient feature, as of now: can send erc20 tokens to this convenient domain, instead of the full hex address.
      • Could hundred apps support transactions to domains: https://unstoppabledomains.com/apps.
      • It says it supports non-eth addresses like sol and btc, but I don’t think that works yet.
    • SEC hit Barksdale siblings for Ormeus coin: https://decrypt.co/94617/sec-ormeus-coin-siblings-charges.
    • “The internet has always financialized our lives. Web3 just makes that explicit.” https://www.theatlantic.com/technology/archive/2022/02/future-internet-blockchain-investment-banking/621480/
    • Web3 founders: https://www.youtube.com/watch?v=VlSjgfTcmsY.
      1. They’re systems engineers.
      2. They’re not just leaders; they’re deeply involved in their community.
      3. Embrace democracy; changing things through supporter votes.
      4. Chase larger pie, not larger slice.
      5. Change beliefs quickly. The space is so fast. Need to (be willing to) unlearn and relearn models quickly.
    • Finished the NFT dapp.
      • Process to keep NFT image onchain: define an svg with html, base64 encode into a string, prefix with data:image/svg+xml;base64,<>, add that URI to an NFT metadata JSON, base64 encode that into a string, prefix with data:application/json;base64,<>, then setTokenURI to that.
      • And pass randomness to that with and keccak256(abi.encodePacked(randomInput like counter or something)).
      • Base64 library: https://github.com/Brechtpd/base64/blob/main/base64.sol (from loopring’s Brecht Devos).
      • Didn’t use replit this time; did everything locally.
      • Remember window.ethereum for wallet/metamask interactions (eg connect to account X) and the ethers lib for contract interactions (eg approve this transaction).
        • The ethers lib is what you pass the contract address, the contract abi, and the signer to.
      • Emitted events from the contract to the dapp to pass information in realtime.
      • OpenSea will automatically append V1 V2 V3 etc if you redeploy the same collection name more than once. Looks like it may suffix random hashes as well, can’t just rely on a clean v<>.
      • Added limits on the max NFTs that can be minted (enforced contract-side) with “require” in solidity.
      • Added a check to make sure the user is connected to the correct eth network.
      • IPFS is a distributed datastore you can use to host larger data (like videos) as NFTs, rather than on chain. https://docs.ipfs.io/concepts/what-is-ipfs/.
        • Then fetch with pinata: https://www.pinata.cloud/.
      • Etherscan has the ability to verify contracts, exposing the sourcecode and adding a green checkmark of authenticity and such.
        • You can do this directly through the etherscan ui, but hardhat can do it for us also (more conveniently) with @nomiclabs/hardhat-etherscan. Just generate an api key from your etherscan account and add it to hardhat.config.js.module.exports.
        • Then to your new contract after you deploy it, run “npx hardhat verify <contractAddress> –network <>”. You obviously have to redo this every time your redeploy.
        • Now we can see the full contract: https://rinkeby.etherscan.io/address/0x1b797daacc73821ee6feb1b2e1367f1234db01fe#code, and even call its functions for read/write directly from etherscan.
      • All in all, basically single file smart contract on the backend and a single file react app on the front, each ~100 lines.
    • You can see all the fees you’ve paid (all accounts, all time) on coinbase here: https://pro.coinbase.com/orders/fees.
    • Amazon announced 20:1 stock split today, executing around June 3.
    • Solana Miami event is wynwood April 5-10. Galleries and networking, day and night. There’s also the hacker house at the same time, but I’ll have already done ny.