This file contains 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
{"contract_name": "owned.vy", "ast": {"name": "owned.vy", "end_lineno": 7, "body": [{"end_lineno": 1, "annotation": {"end_lineno": 1, "func": {"end_lineno": 1, "src": "7:6:0", "end_col_offset": 13, "col_offset": 7, "ast_type": "Name", "node_id": 5, "id": "public", "lineno": 1}, "src": "7:15:0", "end_col_offset": 22, "col_offset": 7, "ast_type": "Call", "keywords": [], "node_id": 4, "args": [{"end_lineno": 1, "src": "14:7:0", "end_col_offset": 21, "col_offset": 14, "ast_type": "Name", "node_id": 7, "id": "address", "lineno": 1}], "lineno": 1, "keyword": null}, "value": null, "src": "0:22:0", "end_col_offset": 22, "col_offset": 0, "ast_type": "AnnAssign", "node_id": 1, "target": {"end_lineno": 1, "src": "0:5:0", "end_col_offset": 5, "col_offset": 0, "ast_type": "Name", "node_id": 2, "id": "owner", "lineno": 1}, "lineno": 1, "simple": 1}, {"name": "withdraw", "end_lineno": 7, "decorator_list": [{"end_lineno": 3, "src": "25:8:0", "end_col_offset": 9, "col_offset": 1, "ast_type": "Name", "node_id": 42, "id": "exte |
This file contains 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
/* | |
# @version 0.3.0 | |
# @dev Implementation of ERC-20 token standard, vyper/examples/tokens/ERC20.vy at tag v0.3.0 | |
# @author Takayuki Jimba (@yudetamago) | |
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md | |
# compiled using `vyper -f bytecode_runtime`: 1579 bytes | |
from vyper.interfaces import ERC20 |
This file contains 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
// Something I whipped up in half an hour. | |
// Depends on strcspn being super fast. | |
#define __USE_LARGEFILE64 | |
#define _LARGEFILE_SOURCE | |
#define _LARGEFILE64_SOURCE | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdio.h> |
This file contains 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
[seq, | |
[mstore, 32, 1461501637330902918203684832716283019655932542976], | |
[mstore, 64, 170141183460469231731687303715884105727], | |
[mstore, 96, -170141183460469231731687303715884105728], | |
[mstore, 128, 1701411834604692317316873037158841057270000000000], | |
[mstore, 160, -1701411834604692317316873037158841057280000000000], | |
# Line 26 | |
[codecopy, 320, ~codelen, 128], | |
[assert, [iszero, callvalue]], | |
[codecopy, 448, [add, ~codelen, [codeload, ~codelen]], 96], |
This file contains 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
[seq, | |
[return, | |
0, | |
[lll, | |
[seq, | |
[mstore, 28, [calldataload, 0]], | |
[mstore, 32, 1461501637330902918203684832716283019655932542976], | |
[mstore, 64, 170141183460469231731687303715884105727], | |
[mstore, 96, -170141183460469231731687303715884105728], | |
[mstore, 128, 1701411834604692317316873037158841057270000000000], |
This file contains 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
$ cat foo.ir | |
IR: | |
/******************************************************* | |
* WARNING * | |
* Solidity to Yul compilation is still EXPERIMENTAL * | |
* It can result in LOSS OF FUNDS or worse * | |
* !USE AT YOUR OWN RISK! * | |
*******************************************************/ | |
This file contains 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
# https://ethstats.io/account/0x68cb858247ef5c4a0d0cde9d6f68dce93e49c02a | |
PUSH1 0x80 | |
PUSH1 0x40 | |
MSTORE | |
PUSH1 0x04 | |
CALLDATASIZE | |
LT | |
PUSH2 0x005c | |
JUMPI | |
PUSH1 0x00 |
This file contains 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
#!/usr/bin/env python | |
import asyncio, json, sys, os | |
import pickle | |
import websockets | |
import datetime | |
import time | |
import web3 | |
from web3 import Web3 |
This file contains 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
[ | |
{ | |
"name": "returnB", | |
"outputs": { | |
"type": "tuple", | |
"name": "out", | |
"components": [ | |
{ | |
"type": "bytes", | |
"name": "b3" |
This file contains 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
WITH y AS ( -- WITH is not indented | |
SELECT -- subquery on its own line and indented one level | |
* | |
FROM schema2.table2 | |
) -- closing paren flush with WITH | |
SELECT -- keywords in caps | |
z.*, | |
x.id, -- columns indented, on separate lines | |
y.foo, -- prefixed with the table name alias if there is a join |