internal: update web3.js to 0.18.1, embed deps with go-bindata (#3545)

pull/3561/head
Péter Szilágyi 8 years ago committed by Felix Lange
parent 3dab303826
commit 93077c98e4
  1. 22
      internal/jsre/deps/bignumber.js
  2. 258
      internal/jsre/deps/bindata.go
  3. 20
      internal/jsre/deps/deps.go
  4. 789
      internal/jsre/deps/web3.js
  5. 6
      internal/jsre/jsre.go
  6. 6
      internal/web3ext/web3ext.go

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,20 @@
// Copyright 2017 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// Package deps contains the console JavaScript dependencies Go embedded.
package deps
//go:generate go-bindata -o bindata.go bignumber.js web3.js

File diff suppressed because it is too large Load Diff

@ -27,9 +27,15 @@ import (
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/internal/jsre/deps"
"github.com/robertkrimen/otto" "github.com/robertkrimen/otto"
) )
var (
BigNumber_JS = deps.MustAsset("bignumber.js")
Web3_JS = deps.MustAsset("web3.js")
)
/* /*
JSRE is a generic JS runtime environment embedding the otto JS interpreter. JSRE is a generic JS runtime environment embedding the otto JS interpreter.
It provides some helper functions to It provides some helper functions to

@ -535,12 +535,6 @@ web3._extend({
call: 'personal_importRawKey', call: 'personal_importRawKey',
params: 2 params: 2
}), }),
new web3._extend.Method({
name: 'sendTransaction',
call: 'personal_sendTransaction',
params: 2,
inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null]
}),
new web3._extend.Method({ new web3._extend.Method({
name: 'sign', name: 'sign',
call: 'personal_sign', call: 'personal_sign',

Loading…
Cancel
Save