Data format: binary. Default file extension: '.tlsn'
| Field description (size in bytes) | code in Python version |
|---|---|
| Header (29) | 'tlsnotary notarization file\n\n' |
| /** | |
| * Base contract that all upgradeable contracts should use. | |
| * | |
| * Contracts implementing this interface are all called using delegatecall from | |
| * a dispatcher. As a result, the _sizes and _dest variables are shared with the | |
| * dispatcher contract, which allows the called contract to update these at will. | |
| * | |
| * _sizes is a map of function signatures to return value sizes. Due to EVM | |
| * limitations, these need to be populated by the target contract, so the | |
| * dispatcher knows how many bytes of data to return from called functions. |
| #!/usr/bin/env bash | |
| # Usage: | |
| # ./solc [options] inputfile > outfile | |
| # Notes: | |
| # - file i/o is limited to the current directory | |
| # - this works with the pyethereum solc_wrapper | |
| docker run -i --rm --user $(id -u):$(id -g) -v $(pwd):/tmp --workdir /tmp ethereum/solc:0.4.18 $@ |
| // | |
| // Big number library in Solidity for the purpose of implementing modexp. | |
| // | |
| // Should have a similar API to https://github.com/ethereum/EIPs/issues/101 | |
| // | |
| // Internally bignumbers are represented as an uint array of 128 bit values. | |
| // | |
| // NOTE: it assumes usage with "small" (<256bit) exponents (such as in RSA) | |
| // |
| // | |
| // In Solidity, a mapping is like a hashmap and works with `string` like this: | |
| // mapping (string => uint) a; | |
| // | |
| // However it doesn't support accessors where string is a key: | |
| // mapping (string => uint) public a; | |
| // | |
| // "Internal compiler error: Accessors for mapping with dynamically-sized keys not yet implemented." | |
| // | |
| // An accessor returns uint when called as `a(string)`. |
| contract EVM { | |
| struct VMState { | |
| uint[1024] stack; | |
| uint stackHeight; | |
| bytes bytecode; | |
| uint pc; | |
| uint[] mem; | |
| } | |
| function step(VMState _state) internal returns (bool) | |
| { |
| #!/usr/bin/env node | |
| 'use strict'; | |
| /** | |
| * Require dependencies | |
| * | |
| */ | |
| const program = require('commander'), | |
| chalk = require("chalk"), | |
| exec = require('child_process').exec, | |
| pkg = require('./package.json'); |
| function sleep(time, func, ...) | |
| local now = os.time() | |
| local thread = coroutine.create(func) | |
| repeat until (os.time() - now > time) | |
| coroutine.resume(thread, ...) | |
| end | |
| function asleep(time, func, ...) | |
| coroutine.wrap(function() | |
| local now = os.time() |
| call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 }) | |
| function NERDTreeMyOpenInTab(node) | |
| call a:node.open({'reuse': "all", 'where': 't'}) | |
| endfunction |
| [ -n "${VAR##[NFnf]*}" ] && echo '$VAR must be truthy (but will be considered falsey by default, if empty)' | |
| [ -z "${VAR##[YTyt]*}" ] && echo '$VAR must be truthy (and will be by default, if empty)' | |
| [ -z "${VAR##[NFnf]*}" ] && echo '$VAR must be falsey (and will be by default, if empty)' | |
| [ -n "${VAR##[YTyt]*}" ] && echo '$VAR must be falsey (but will be considered truthy by default, if empty)' |