Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
e6c06a1d
Commit
e6c06a1d
authored
Feb 14, 2019
by
Matthew Halpern
Committed by
Péter Szilágyi
Feb 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console, internal: enforce camel case variable names (#19059)
parent
3ee09ba0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
32 deletions
+32
-32
console.go
console/console.go
+2
-2
jsre.go
internal/jsre/jsre.go
+2
-2
web3ext.go
internal/web3ext/web3ext.go
+28
-28
No files found.
console/console.go
View file @
e6c06a1d
...
@@ -120,10 +120,10 @@ func (c *Console) init(preload []string) error {
...
@@ -120,10 +120,10 @@ func (c *Console) init(preload []string) error {
consoleObj
.
Object
()
.
Set
(
"error"
,
c
.
consoleOutput
)
consoleObj
.
Object
()
.
Set
(
"error"
,
c
.
consoleOutput
)
// Load all the internal utility JavaScript libraries
// Load all the internal utility JavaScript libraries
if
err
:=
c
.
jsre
.
Compile
(
"bignumber.js"
,
jsre
.
Big
Number_JS
);
err
!=
nil
{
if
err
:=
c
.
jsre
.
Compile
(
"bignumber.js"
,
jsre
.
Big
numberJs
);
err
!=
nil
{
return
fmt
.
Errorf
(
"bignumber.js: %v"
,
err
)
return
fmt
.
Errorf
(
"bignumber.js: %v"
,
err
)
}
}
if
err
:=
c
.
jsre
.
Compile
(
"web3.js"
,
jsre
.
Web3
_JS
);
err
!=
nil
{
if
err
:=
c
.
jsre
.
Compile
(
"web3.js"
,
jsre
.
Web3
Js
);
err
!=
nil
{
return
fmt
.
Errorf
(
"web3.js: %v"
,
err
)
return
fmt
.
Errorf
(
"web3.js: %v"
,
err
)
}
}
if
_
,
err
:=
c
.
jsre
.
Run
(
"var Web3 = require('web3');"
);
err
!=
nil
{
if
_
,
err
:=
c
.
jsre
.
Run
(
"var Web3 = require('web3');"
);
err
!=
nil
{
...
...
internal/jsre/jsre.go
View file @
e6c06a1d
...
@@ -32,8 +32,8 @@ import (
...
@@ -32,8 +32,8 @@ import (
)
)
var
(
var
(
Big
Number_JS
=
deps
.
MustAsset
(
"bignumber.js"
)
Big
numberJs
=
deps
.
MustAsset
(
"bignumber.js"
)
Web3
_JS
=
deps
.
MustAsset
(
"web3.js"
)
Web3
Js
=
deps
.
MustAsset
(
"web3.js"
)
)
)
/*
/*
...
...
internal/web3ext/web3ext.go
View file @
e6c06a1d
...
@@ -18,23 +18,23 @@
...
@@ -18,23 +18,23 @@
package
web3ext
package
web3ext
var
Modules
=
map
[
string
]
string
{
var
Modules
=
map
[
string
]
string
{
"accounting"
:
Accounting
_JS
,
"accounting"
:
Accounting
Js
,
"admin"
:
Admin
_JS
,
"admin"
:
Admin
Js
,
"chequebook"
:
Chequebook
_JS
,
"chequebook"
:
Chequebook
Js
,
"clique"
:
Clique
_JS
,
"clique"
:
Clique
Js
,
"ethash"
:
Ethash
_JS
,
"ethash"
:
Ethash
Js
,
"debug"
:
Debug
_JS
,
"debug"
:
Debug
Js
,
"eth"
:
Eth
_JS
,
"eth"
:
Eth
Js
,
"miner"
:
Miner
_JS
,
"miner"
:
Miner
Js
,
"net"
:
Net
_JS
,
"net"
:
Net
Js
,
"personal"
:
Personal
_JS
,
"personal"
:
Personal
Js
,
"rpc"
:
R
PC_JS
,
"rpc"
:
R
pcJs
,
"shh"
:
Shh
_JS
,
"shh"
:
Shh
Js
,
"swarmfs"
:
S
WARMFS_JS
,
"swarmfs"
:
S
warmfsJs
,
"txpool"
:
Tx
Pool_JS
,
"txpool"
:
Tx
poolJs
,
}
}
const
Chequebook
_JS
=
`
const
Chequebook
Js
=
`
web3._extend({
web3._extend({
property: 'chequebook',
property: 'chequebook',
methods: [
methods: [
...
@@ -65,7 +65,7 @@ web3._extend({
...
@@ -65,7 +65,7 @@ web3._extend({
});
});
`
`
const
Clique
_JS
=
`
const
Clique
Js
=
`
web3._extend({
web3._extend({
property: 'clique',
property: 'clique',
methods: [
methods: [
...
@@ -111,7 +111,7 @@ web3._extend({
...
@@ -111,7 +111,7 @@ web3._extend({
});
});
`
`
const
Ethash
_JS
=
`
const
Ethash
Js
=
`
web3._extend({
web3._extend({
property: 'ethash',
property: 'ethash',
methods: [
methods: [
...
@@ -139,7 +139,7 @@ web3._extend({
...
@@ -139,7 +139,7 @@ web3._extend({
});
});
`
`
const
Admin
_JS
=
`
const
Admin
Js
=
`
web3._extend({
web3._extend({
property: 'admin',
property: 'admin',
methods: [
methods: [
...
@@ -217,7 +217,7 @@ web3._extend({
...
@@ -217,7 +217,7 @@ web3._extend({
});
});
`
`
const
Debug
_JS
=
`
const
Debug
Js
=
`
web3._extend({
web3._extend({
property: 'debug',
property: 'debug',
methods: [
methods: [
...
@@ -454,7 +454,7 @@ web3._extend({
...
@@ -454,7 +454,7 @@ web3._extend({
});
});
`
`
const
Eth
_JS
=
`
const
Eth
Js
=
`
web3._extend({
web3._extend({
property: 'eth',
property: 'eth',
methods: [
methods: [
...
@@ -524,7 +524,7 @@ web3._extend({
...
@@ -524,7 +524,7 @@ web3._extend({
});
});
`
`
const
Miner
_JS
=
`
const
Miner
Js
=
`
web3._extend({
web3._extend({
property: 'miner',
property: 'miner',
methods: [
methods: [
...
@@ -569,7 +569,7 @@ web3._extend({
...
@@ -569,7 +569,7 @@ web3._extend({
});
});
`
`
const
Net
_JS
=
`
const
Net
Js
=
`
web3._extend({
web3._extend({
property: 'net',
property: 'net',
methods: [],
methods: [],
...
@@ -582,7 +582,7 @@ web3._extend({
...
@@ -582,7 +582,7 @@ web3._extend({
});
});
`
`
const
Personal
_JS
=
`
const
Personal
Js
=
`
web3._extend({
web3._extend({
property: 'personal',
property: 'personal',
methods: [
methods: [
...
@@ -628,7 +628,7 @@ web3._extend({
...
@@ -628,7 +628,7 @@ web3._extend({
})
})
`
`
const
R
PC_JS
=
`
const
R
pcJs
=
`
web3._extend({
web3._extend({
property: 'rpc',
property: 'rpc',
methods: [],
methods: [],
...
@@ -641,7 +641,7 @@ web3._extend({
...
@@ -641,7 +641,7 @@ web3._extend({
});
});
`
`
const
Shh
_JS
=
`
const
Shh
Js
=
`
web3._extend({
web3._extend({
property: 'shh',
property: 'shh',
methods: [
methods: [
...
@@ -661,7 +661,7 @@ web3._extend({
...
@@ -661,7 +661,7 @@ web3._extend({
});
});
`
`
const
S
WARMFS_JS
=
`
const
S
warmfsJs
=
`
web3._extend({
web3._extend({
property: 'swarmfs',
property: 'swarmfs',
methods:
methods:
...
@@ -685,7 +685,7 @@ web3._extend({
...
@@ -685,7 +685,7 @@ web3._extend({
});
});
`
`
const
Tx
Pool_JS
=
`
const
Tx
poolJs
=
`
web3._extend({
web3._extend({
property: 'txpool',
property: 'txpool',
methods: [],
methods: [],
...
@@ -712,7 +712,7 @@ web3._extend({
...
@@ -712,7 +712,7 @@ web3._extend({
});
});
`
`
const
Accounting
_JS
=
`
const
Accounting
Js
=
`
web3._extend({
web3._extend({
property: 'accounting',
property: 'accounting',
methods: [
methods: [
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment