Skip to content

Instantly share code, notes, and snippets.

View letsgitcracking's full-sized avatar
🧠

Sparx letsgitcracking

🧠
View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
/*
Congratulations you have found the Treasure Chest contract.
You now need to make an interface contract to interact with the
getTreasure method in this contract. Please look at the gist given
during lesson for an example of an interface.
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
interface ITreasureChest {
function GetTreasure(address) external;
}
contract ClaimTreasure {
function callTreasureContract(address _address) external {

Feel free to copy and paste this list into a README, issue or elsewhere in your project.

Audit prep checklist (reference)

  • Documentation (A plain english description of what you are building, and why you are building it. Should indicate the actions and states that should and should not be possible)
    • For the overall system
    • For each unique contract within the system
  • Clean code
  • Fix compiler warnings
@letsgitcracking
letsgitcracking / alien-names.txt
Created November 12, 2021 21:44 — forked from christabor/alien-names.txt
alien name generator
Joovfif Laav Puuhge
Diuse'Uoclu Bulvi
Veemza'Coogku Wiizzaq
Pecgad'Niqbej Livqic
Xad'Fecye Kodva
Ham-Wefqon Xuqqek
Zaance Vooqfe Ueehmuv
Raadzuc-Yiikheu Voow
Siijuu'Boomnaq Peen
Lervo Fuusi Sen
@letsgitcracking
letsgitcracking / App.js
Last active May 10, 2022 15:38 — forked from adilanchian/App.js
Section 5: Update UI + deploy to an Ethereum testnet so anyone on the internet can wave at you using their
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@letsgitcracking
letsgitcracking / App.js
Last active October 5, 2021 23:50 — forked from adilanchian/App.js
Section 4: Update WavePortal to randomly send lucky users waving at you some Ethereum
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@letsgitcracking
letsgitcracking / App.js
Last active May 27, 2022 07:40 — forked from adilanchian/App.js
Section 3: Build web3 app that connects to our wallet and talks to our WaveContract
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
/**
* Create a varaible here that holds the contract address after you deploy!
*/
@letsgitcracking
letsgitcracking / ffmpeg.md
Created May 6, 2021 02:59 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@letsgitcracking
letsgitcracking / script.js
Created April 10, 2020 20:44 — forked from QuantBits/script.js
BitMex USD Converter - For TemperMonkey
// ==UserScript==
// @name BitMex USD Converter
// @namespace https://bitmex.com/
// @version 0.11
// @description Get some sanity into your gambling.
// @author koinkraft
// @grant none
// @include https://bitmex.com/*
// @include https://www.bitmex.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js