Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ethereumjs/ethereumjs-account
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ShyftNetwork/shyft_ethereumjs-account
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 11 commits
  • 6 files changed
  • 2 contributors

Commits on Dec 4, 2017

  1. Copy the full SHA
    2d7110a View commit details

Commits on Dec 5, 2017

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fe2023e View commit details

Commits on Dec 9, 2017

  1. Copy the full SHA
    8a2a8ca View commit details

Commits on Dec 15, 2017

  1. minor fixes

    chris-shyft committed Dec 15, 2017
    Copy the full SHA
    7eacea1 View commit details

Commits on Dec 21, 2017

  1. refactors

    chris-shyft committed Dec 21, 2017
    Copy the full SHA
    e7509fd View commit details

Commits on Jan 8, 2018

  1. shyft specific linkages

    chris-shyft committed Jan 8, 2018
    Copy the full SHA
    712f155 View commit details

Commits on Jul 14, 2018

  1. Merge remote-tracking branch 'origin/shyftmods'

    David Ansermino committed Jul 14, 2018
    Copy the full SHA
    1f99a17 View commit details
  2. Added shyft linkages

    David Ansermino committed Jul 14, 2018
    Copy the full SHA
    eaf5796 View commit details
  3. Bumped version

    David Ansermino committed Jul 14, 2018
    Copy the full SHA
    a814c18 View commit details

Commits on Jul 16, 2018

  1. Disabled coverall, added slack notification

    David Ansermino committed Jul 16, 2018
    Copy the full SHA
    3e1be72 View commit details
  2. Added standard as dep, linted

    David Ansermino committed Jul 16, 2018
    Copy the full SHA
    7241ac2 View commit details
Showing with 49 additions and 28 deletions.
  1. +21 −0 .eslintrc.js
  2. +2 −0 .gitignore
  3. +11 −13 .travis.yml
  4. +4 −5 index.js
  5. +10 −9 package.json
  6. +1 −1 test/index.js
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
}
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -64,3 +64,5 @@ build/Release
node_modules
package-lock.json

#webstorm
.idea
24 changes: 11 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
language: node_js
node_js:
- "6"
- "7"
- "8"
- '6'
- '7'
- '8'
env:
- CXX=g++-4.8
matrix:
- CXX=g++-4.8 TEST_SUITE=test
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
matrix:
- CXX=g++-4.8 TEST_SUITE=test
matrix:
fast_finish: true
include:
- os: linux
node_js: "6"
env: CXX=g++-4.8 TEST_SUITE=coveralls
- os: linux
node_js: "6"
env: CXX=g++-4.8 TEST_SUITE=lint
- os: linux
node_js: '6'
env: CXX=g++-4.8 TEST_SUITE=lint
script: npm run $TEST_SUITE
notifications:
slack:
secure: kKDJh+WyIBJWUClPoKeeJFwBSayH8kbAszF44GP/Eoqspzfhb+ekGFhF0MxRvLjsG3YcDwIDS5TQK42jm3uJj00vfyzfGd/rIn/4kFX8BTSLJwoOqzAZHwTF3UIxwL7bqZMYZ60mpKe0HA06tEp31MYkTmOpDCJ3HTuT+WpYbGcq8AaSGJmQ2tR44ueTef+1pvrwO0X0nWw1K/Xe8k0dxqKNXVgjJnNLvQm5VC1oEPyIo/TQEGCv4UEwsRviFUz7BtXXWMWTCGXEIz4i0J+swOXT7ts4jreBFpYGEFv0UzQ6Q3l84dJ3tTKPAsa0rqv9a673PRIXKHAbq9DdSJEKyQ8GqG7mVn6qR2VQcJFA9sWwQ3Nl8USnyiHgzO5iJAeQLsl02wsx8D/2zwQeX7ZjcRqdcyDtOS05vRSyHqbLnulCR07OohWC5hSOvQyJPOuNVgVRi+3KGgypvWMc5khxs2INFkhBi7zEPT8ZoLkSGqKFnHE9TM7cjlJHY0m/uCIQa/2GZK1UCXrbCHDPdH+k1L0joSnEdHi8NoBnFSu1kaNXWb2dUWo6kEk15r5BuYBfO1QXrztatOJSbEI9bjkuowqAdVNJSXxFxJGN87YLwDqzZMoDMp0bChrIBXLCSOs8kpSB/BashTXThTK8CTqqXuOlnAs1+Hm8IkE0v5OVbCw=
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ethUtil = require('ethereumjs-util')
const ethUtil = require('@shyftnetwork/shyft_ethereumjs-util')
const rlp = require('rlp')
const Buffer = require('safe-buffer').Buffer

@@ -19,7 +19,6 @@ var Account = module.exports = function (data) {
length: 32,
default: ethUtil.SHA3_NULL
}]

ethUtil.defineProperties(this, fields, data)
}

@@ -74,7 +73,7 @@ Account.prototype.setStorage = function (trie, key, val, cb) {

Account.prototype.isEmpty = function () {
return this.balance.toString('hex') === '' &&
this.nonce.toString('hex') === '' &&
this.stateRoot.toString('hex') === ethUtil.SHA3_RLP_S &&
this.codeHash.toString('hex') === ethUtil.SHA3_NULL_S
this.nonce.toString('hex') === '' &&
this.stateRoot.toString('hex') === ethUtil.SHA3_RLP_S &&
this.codeHash.toString('hex') === ethUtil.SHA3_NULL_S
}
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ethereumjs-account",
"version": "2.0.3",
"name": "@shyftnetwork/shyft_ethereumjs-account",
"version": "2.0.5",
"description": "Encoding, decoding and validation of Ethereum's Account schema",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-account.git"
"url": "git+https://github.com/shyftnetwork/shyft_ethereumjs-account.git"
},
"scripts": {
"coverage": "istanbul cover ./test/index.js",
@@ -17,21 +17,22 @@
"ethereum",
"account"
],
"author": "mjbecze (mjbecze@gmail.com)",
"author": "cf (chris@shyft.network)",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-account/issues"
"url": "https://github.com/shyftnetwork/shyft_ethereumjs-account/issues"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-account#readme",
"homepage": "https://github.com/shyftnetwork/shyft_ethereumjs-account#readme",
"dependencies": {
"ethereumjs-util": "^5.0.0",
"@shyftnetwork/shyft_ethereumjs-util": "^5.0.0",
"rlp": "^2.0.0",
"safe-buffer": "^5.1.1"
"safe-buffer": "^5.1.1",
"standard": "^11.0.1"
},
"devDependencies": {
"coveralls": "^2.11.4",
"eslint": "^4.12.1",
"istanbul": "^0.4.1",
"standard": "^10.0.0",
"tape": "^4.0.3"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ tape('constructor with Array', function (tester) {
'0x02', // nonce
'0x0384', // balance
'0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421', // stateRoot
'0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' // codeHash
'0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' // codeHash
]
var account = new Account(raw)
t.equal(account.nonce.toString('hex'), '02')