This document has been moved!
π―
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allowances: HashMap[address, HashMap[address, uint256]] | |
balanceOf: HashMap[address, uint256] | |
totalSupply: uint256 | |
bundle: ERC20Bundle | |
def __init__(): | |
... # do things with initializing and totalSupply | |
@external |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Now available at https://theredguild.org/ezines/1.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: | |
# install asan fork of vyper 0.3.10 (`pip install git+https://github.com/charles-cooper/vyper@asan`) | |
# change `import boa` to `import boa; import boa_asan` in scripts | |
from eth.exceptions import VMError | |
import boa.environment | |
class MemoryAccessViolation(VMError): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import requests | |
PROJECT_APP_SCHEMA = "0x76e98cce95f3ba992c2ee25cef25f756495147608a3da3aa2e5ca43109fe77cc" | |
PROJECT_REVIEW_SCHEMA = "0xebbf697d5d3ca4b53579917ffc3597fb8d1a85b8c6ca10ec10039709903b9277" | |
REVIEWER_ADDRESS = "0x621477dBA416E12df7FF0d48E14c4D20DC85D7D9" | |
DATA_EXPORT_JSON = "rpgf3_applicant_data.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.19; | |
import "forge-std/Test.sol"; | |
contract Utility { | |
error BadCalldata(); | |
error NonPayable(); | |
error Payable(); | |
error NoCode(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/homebrew/bin/fish | |
# Usage: | |
# ./compare_live.fish CONTRACT_ADDRESS | |
# Config | |
set SRC_DIR /PATH/TO/REPO/CONTRACTS | |
set OZ_DIR $SRC_DIR/node_modules | |
# Download |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.13; | |
import "forge-std/Test.sol"; | |
contract SheHateMe { | |
receive() external payable {} | |
function getImpl(uint8 x) public returns (address) { | |
return address(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.19; | |
import "forge-std/Test.sol"; | |
contract Reverter { | |
event Test(); | |
function emitAndRevert() external { | |
emit Test(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bibtexparser | |
from bibtexparser.bibdatabase import BibDatabase | |
from pybtex.database import parse_file | |
from pybtex.database import BibliographyData, Entry | |
from pybtex.utils import OrderedCaseInsensitiveDict | |
import re | |
if __name__ == '__main__': | |
# with open('bitcoin.bib') as bibfile: | |
# bib_database : BibDatabase=bibtexparser.load(bibfile) |