Skip to content

Instantly share code, notes, and snippets.

View rfikki's full-sized avatar

Rocky Fikki rfikki

View GitHub Profile
@rfikki
rfikki / contract.html
Last active October 28, 2024 23:03 — forked from drcode/contract.html
<html>
<head>
<script type="text/javascript" src="bignumber.min.js"></script>
<script type="text/javascript" src="ethereum.js"></script>
<script type="text/javascript">
var web3 = require('web3');
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
@rfikki
rfikki / balance.html
Last active August 29, 2015 14:16 — forked from drcode/balance.html
<html>
<head>
<script type="text/javascript" src="bignumber.min.js"></script>
<script type="text/javascript" src="ethereum.js"></script>
<script type="text/javascript">
var web3 = require('web3');
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
var coinbase = web3.eth.coinbase;
@rfikki
rfikki / runtime: address space conflict
Created May 26, 2015 17:52
runtime: address space conflict
I0526 13:06:54.742941 8033 backend.go:255] Protocol Version: 60, Network Id: 0
I0526 13:06:54.742983 8033 backend.go:265] Blockchain DB Version: 2
I0526 13:06:54.744488 8033 chain_manager.go:247] Last block (#0) fd4af92a79c7fc2fd8bf0d342f2e832e1d4f485c85b9152d2039e03bc604fdca TD=0
I0526 13:06:54.750624 8033 cmd.go:137] Starting Geth/v0.9.24/linux/go1.4.2
I0526 13:06:54.750699 8033 server.go:272] Starting Server
I0526 13:06:56.735047 8033 nat.go:95] mapped network port udp:30303 -> 30303 (ethereum discovery) using UPNP IGDv1-IP1
I0526 13:06:56.906537 8033 udp.go:189] Listening, enode://4871c0cd8a2a5f0646ed232a942d06ea0192224591fb2dab48ef03f48b832f56f408f2755ed471917178b88177398024fe41b9844e5d6caecfb8f599d096dc81@76.110.55.144:30303
I0526 13:06:56.906653 8033 backend.go:479] Server started
I0526 13:06:56.906657 8033 server.go:503] Listening on [::]:30303
I0526 13:06:56.906836 8033 nat.go:95] mapped network port tcp:30303 -> 30303 (ethereum p2p) using UPNP IGDv1-IP1
I0606 10:45:15.495567 10584 block_processor.go:95] receipt{med=6884f4f69f1ab65baca53407a5a6456ad1f27e37212e7c6986e43c2b3a764b60 cgas=21000 bloom=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 logs=[]}
I0606 10:45:15.496566 10584 state_object.go:205] 4f875e60bb098d1f0062f261ecae438c5b569596: #17654 790971350000000000000 (- 900000000000000000)
I0606 10:45:15.497567 10584 state_object.go:205] 4f875e60bb098d1f0062f261ecae438c5b569596: #17655 790971349999999949797 (- 50203)
I0606 10:45:15.497567 10584 state_object.go:197] 4f875e60bb098d1f0062f261eca
I0607 09:35:16.790589 3730 backend.go:255] Protocol Version: 60, Network Id: 0
I0607 09:35:16.790677 3730 backend.go:265] Blockchain DB Version: 3
I0607 09:35:16.879156 3730 chain_manager.go:246] Last block (#529151) e24edc75c0bc65bed0ab325b9a82e055ad367aec053b3ffc05631e580fb29066 TD=2626540658504928
I0607 09:37:47.775998 3730 cmd.go:148] Starting Geth/v0.9.27/linux/go1.4.2
I0607 09:37:47.776217 3730 server.go:293] Starting Server
I0607 09:37:48.316814 3730 udp.go:189] Listening, enode://ff70d47d170247a53c547a3eba4a68c2c3bb2f0c95c010b365cbe118edde2aae7bc18e43e5c3f9c9b6e2224b21f5a3e64960613f1b0eb146664433ba79f39788@76.110.55.144:30303
I0607 09:37:48.316993 3730 backend.go:472] Server started
I0607 09:37:48.317017 3730 server.go:530] Listening on [::]:30303
I0607 09:37:49.030499 3730 nat.go:95] mapped network port udp:30303 -> 30303 (ethereum discovery) using UPNP IGDv1-IP1
I0607 09:37:50.529996 3730 nat.go:95] mapped network port tcp:30303 -> 30303 (ethereum p2p) using UPNP IGDv1-
@rfikki
rfikki / asm.txt
Created September 15, 2015 13:58
embark asm.txt
======= SimpleStorage =======
EVM assembly:
.code:
PUSH 60 contract SimpleStorage {...
PUSH 40 contract SimpleStorage {...
MSTORE contract SimpleStorage {...
PUSH 40 function SimpleStorage(uint initialValue) {...
MLOAD function SimpleStorage(uint initialValue) {...
PUSH 20 function SimpleStorage(uint initialValue) {...
DUP1 function SimpleStorage(uint initialValue) {...
//sol NameReg
// Simple global name registrar.
// @authors:
// Gav Wood <[email protected]>
contract NameRegister {
function getAddress(bytes32 _name) constant returns (address o_owner) {}
function getName(address _owner) constant returns (bytes32 o_name) {}
}
> admin.peers
[{
caps: ["eth/61", "eth/62", "eth/63"],
id: "1122769d1191e4ea5840defaa4cc00ca9c0a3e26b188ceac0e15d4dd67b8f14f9c9d801d9f64478d9474cb0893294e6a447cea4d7b6aaa05e53a67990166e9b5",
name: "Geth/v1.3.5-34b622a2/linux/go1.6",
network: {
localAddress: "192.168.1.7:30303",
remoteAddress: "66.75.94.180:44145"
},
protocols: {
library ConvertLib{
function convert(uint amount,uint conversionRate) returns (uint convertedAmount)
{
return amount * conversionRate;
}
}
> admin.peers
[{
caps: ["eth/61", "eth/62", "eth/63"],
id: "01b7ab2e6cc25c7266f19d3b1f01449e2ad3f17005323b1ba500509c43a7ea0c6b6bb7238402507177d675d0b42ae90fb1e12a23db6c731c2cd548a39fc952f8",
name: "Geth/v1.3.6/linux/go1.5.1",
network: {
localAddress: "192.168.1.7:30303",
remoteAddress: "54.210.5.9:56653"
},
protocols: {