Skip to content

Instantly share code, notes, and snippets.

@aakilfernandes
aakilfernandes / UnderflowCheck.sol
Created January 22, 2019 04:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.24;
contract UnderflowCheck {
uint256 public value;
constructor(uint256 _value) public {
require(_value >= 0);
value = _value;
}
}
#[derive(Debug, PartialEq)]
enum Error {
TooBig
}
type Bytes = [u8];
struct Fixed {
length: u32
}
#[derive(Debug, PartialEq)]
enum Error {
TooBig
}
type Bytes = [u8];
struct Fixed {
length: u32
}
TypeError: chunk.hasRuntime is not a function
at chunk (/Users/aakilfernandes/projects/safemarket/ux/node_modules/prepack-webpack-plugin/dist/PrepackPlugin.js:27:16)
at Compilation.compilation.plugin (/Users/aakilfernandes/projects/safemarket/ux/node_modules/prepack-webpack-plugin/dist/PrepackPlugin.js:56:26)
at Compilation.applyPluginsAsync (/Users/aakilfernandes/projects/safemarket/ux/node_modules/tapable/lib/Tapable.js:71:13)
at Compilation.<anonymous> (/Users/aakilfernandes/projects/safemarket/ux/node_modules/webpack/lib/Compilation.js:567:9)
at Compilation.applyPluginsAsync (/Users/aakilfernandes/projects/safemarket/ux/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation.<anonymous> (/Users/aakilfernandes/projects/safemarket/ux/node_modules/webpack/lib/Compilation.js:563:8)
at Compilation.applyPluginsAsync (/Users/aakilfernandes/projects/safemarket/ux/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation.seal (/Users/aakilfernandes/projects/safemarket/ux/node_modu
pragma solidity ^0.4.4;
contract Sunsets {
uint256 public sunset;
event Sunset(uint256 sunset);
modifier sunsets() {
if (sunset > 0) {
Sunset(sunset);
[ { jsonrpc: '2.0',
id: 0,
method: 'eth_getTransactionCount',
params: [ '0x6b42b5cab8e052e7965395fa78b2b1e6e6b1ad0f', 'latest' ],
external: true },
{ jsonrpc: '2.0',
id: 1,
method: 'eth_estimateGas',
params: [ [Object] ],
external: true },
[ { jsonrpc: '2.0',
id: 0,
method: 'eth_getTransactionCount',
params: [ '0x6b42b5cab8e052e7965395fa78b2b1e6e6b1ad0f', 'latest' ],
external: true },
{ jsonrpc: '2.0',
id: 1,
method: 'eth_estimateGas',
params: [ [Object] ],
external: true },
@aakilfernandes
aakilfernandes / bip39.eng.json
Created March 19, 2017 20:19
bip39 English Words JSON
["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","a
storageContract
✓ should deploy (1223ms)
✓ should have correct code (114ms)
✓ should have correct value (112ms)
eth
getBalance
✓ should be fulfilled (131ms)
✓ should be array of 10 Amorphs
getStorageAt
package safemarket;
syntax = "proto3";
message Store {
required string name = 1;
required string base = 2;
required string info = 3;
repeated StoreProduct products = 4;
repeated StoreTransport transports = 5;
}