Skip to content

Instantly share code, notes, and snippets.

Aakil Fernandes aakilfernandes

Block or report user

Report or block aakilfernandes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aakilfernandes
aakilfernandes / UnderflowCheck.sol
Created Jan 22, 2019
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=
View UnderflowCheck.sol
pragma solidity ^0.4.24;
contract UnderflowCheck {
uint256 public value;
constructor(uint256 _value) public {
require(_value >= 0);
value = _value;
}
}
View src-fixed.rs
#[derive(Debug, PartialEq)]
enum Error {
TooBig
}
type Bytes = [u8];
struct Fixed {
length: u32
}
View Fixed.rs
#[derive(Debug, PartialEq)]
enum Error {
TooBig
}
type Bytes = [u8];
struct Fixed {
length: u32
}
View gist:0a578bc820598009e36b440292344dcb
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
View gist:bb9b22967d9f559c8510427cdee80431
pragma solidity ^0.4.4;
contract Sunsets {
uint256 public sunset;
event Sunset(uint256 sunset);
modifier sunsets() {
if (sunset > 0) {
Sunset(sunset);
View payloads.js
[ { 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 },
View gist:42137d8273c8baf3c15acd5608836653
[ { 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 Mar 19, 2017
bip39 English Words JSON
View bip39.eng.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
View gist:bebffd2821da77f498bd3bd6755e36cb
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
View safemarket.proto
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;
}
You can’t perform that action at this time.