Skip to content

Instantly share code, notes, and snippets.

@rmulhol
rmulhol / README.md
Created April 26, 2020 18:31
Go script for fetching the most recent value associated with a given slot in an Ethereum contract's storage.

GetStorageAt script

Tool for fetching the value for a single storage key. Only supports lookups of the most recent value, since historical state requires an archive node.

Build

GO111MODULE=on go build get_storage_at.go

Run

Keybase proof

I hereby claim:

  • I am rmulhol on github.
  • I am robmulholand (https://keybase.io/robmulholand) on keybase.
  • I have a public key ASCIbxn2HVpzy94iEUe1CcpKRmT18uDBCN5mE0LHUGGOaQo

To claim this, I am signing this object:

0x8C2d08D60e7160eF8156491923C613eFb62F9711
0xfB16366Ea2Af1E77C5dd3A84cdE297A0F408867F
@rmulhol
rmulhol / body.js
Created July 27, 2015 19:42
Edited with flux architecture
var React = require('react');
var Col = require('react-bootstrap/lib/Col');
var Thumbnail = require('react-bootstrap/lib/Thumbnail');
var Button = require('react-bootstrap/lib/Button');
var DemoAppActions = require('../actions/demo_app_actions');
var DemoAppStore = require('../stores/demo_app_store');
var Body = React.createClass({
getDefaultProps: function() {
return {
@rmulhol
rmulhol / demo_app_store.js
Created July 27, 2015 19:35
Edited to use imported constant for actionType
var Dispatcher = require('../dispatcher/dispatcher');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var Constants = require('../constants/constants');
var DemoAppStore = function() {
EventEmitter.call(this);
var self = this;
this.addLogoListener = function(cb) {
@rmulhol
rmulhol / demo_app_actions.js
Created July 27, 2015 19:33
Edited to use imported constant for actionType
var Dispatcher = require('../dispatcher/dispatcher');
var Constants = require('../constants/constants');
var DemoAppActions = {
toggleLogo: function(showReactLogo) {
Dispatcher.dispatch({
actionType: Constants.toggleLogo,
showReactLogo: !showReactLogo
});
}
@rmulhol
rmulhol / constants.js
Created July 27, 2015 19:31
Initial version
module.exports = {
toggleLogo: "toggle-logo"
};
@rmulhol
rmulhol / demo_app_store.js
Created July 27, 2015 19:15
Initial version
var Dispatcher = require('../dispatcher/dispatcher');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var DemoAppStore = function() {
EventEmitter.call(this);
var self = this;
this.addLogoListener = function(cb) {
self.on("toggle-logo", cb);
@rmulhol
rmulhol / demo_app_actions.js
Created July 27, 2015 19:14
Initial version
var Dispatcher = require('../dispatcher/dispatcher');
var DemoAppActions = {
toggleLogo: function(showReactLogo) {
Dispatcher.dispatch({
actionType: "toggle-logo",
showReactLogo: !showReactLogo
});
}
};