- swarm integration
- secure webviews
- Mist UI
- starting of nodes, switching networks etc
- IPC proxy to the node
- accounts/dapp permissions
- preloader logic to inject stuff
- node updatelogic
- mist update logic
- onboarding screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change accountToSignWith to the address of your account. | |
var Web3 = require('web3'); | |
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
var accountToSignWith = '0xbedcf417ff2752d996d2ade98b97a6f0bef4beb9'; | |
var message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tubulum fuisse, qua illum, cuius is condemnatus est rogatione, P. Eaedem res maneant alio modo.' |
eth://inigomontoya.eth
-> callsresolver.addr()
-> shows account page with balance or somethinghttp://inigomontoya.eth
-> callsresolver.a()
-> will resolve a normal DNS ipbzz://inigomontoya.eth
-> callsresolver.multiHash()
-> will resoslve using swarmipfs://inigomontoya.eth
-> callsresolver.multiHash()
-> will resoslve using ipfsinigomontoya.eth
-> will default to swarm and callsresolver.multiHash()
-> will resoslve using swarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Full changelog | |
- Client binary refactor - asking user for permission before updating Geth (#1383) | |
- **.gitignore:** add 'npm-debug.log' (#1310) | |
- **codeclimate:** add config (#1381) | |
- **codeclimate:** enable GPA rating (#1410) | |
- **codeclimate:** fix eslint configuration in progress (#1389) |
I hereby claim:
- I am frozeman on github.
- I am frozeman (https://keybase.io/frozeman) on keybase.
- I have a public key whose fingerprint is 3452 1ABF 002E C4CF 9F51 BB5F E51E ADA7 7F1A 4124
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spawn = require('child_process').spawn; | |
var bruteForce = function(path, pw, callback) { | |
var error = false; | |
// start import process | |
var nodeProcess = spawn(nodeBinary, ['wallet', 'import', path]); | |
nodeProcess.once('error',function(){ | |
error = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open the wallet console: Menu -> Develop -> Toggle console ... | |
// Run the following script | |
_.each(Wallets.find().fetch(), function(item){ | |
if(item.address) | |
Wallets.update(item._id, {$set: {address: item.address.toLowerCase()}}); | |
}); | |
_.each(CustomContracts.find().fetch(), function(item){ | |
if(item.address) | |
CustomContracts.update(item._id, {$set: {address: item.address.toLowerCase()}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// un"addresses" contract object | |
var myContrac2 = new web3.eth.contract(abi) | |
myContrac2.address = '0x12345678...'; // add address later | |
// initiate with address | |
var myContrac = new web3.eth.contract(abi, address) | |
// deploy contract | |
eventemitter = new web3.eth.contract(abi).deploy(param1, {data: '0x23456'}); |
TODO: update web3.js examples ?
- uses BN instead of BigNumber
- added websockets and new events for these providers (web3.currentProvider.on 'connect', 'end', 'error', 'timeout')
- changed
web3.eth.sendRawTransaction
->web3.eth.sendSignedTransaction
- added
web3.eth.subscription
web3.eth.subscription('logs', {address: '0x12', topics: [], fromBlock: ''})
allows onlyfromBlock
, useweb3.eth.getPastLogs
for a specifc range of past blocks.- subscriptions return events like:
- for "logs": "error", "log", "deleted/reverted"
- for syncing: "error", "started", "processing", "ended"