good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
e6c06a1d
Commit
e6c06a1d
authored
Feb 14, 2019
by
Matthew Halpern
Committed by
Péter Szilágyi
Feb 14, 2019
Browse files
Options
Downloads
Patches
Plain Diff
console, internal: enforce camel case variable names (#19059)
parent
3ee09ba0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
console/console.go
+2
-2
2 additions, 2 deletions
console/console.go
internal/jsre/jsre.go
+2
-2
2 additions, 2 deletions
internal/jsre/jsre.go
internal/web3ext/web3ext.go
+28
-28
28 additions, 28 deletions
internal/web3ext/web3ext.go
with
32 additions
and
32 deletions
console/console.go
+
2
−
2
View file @
e6c06a1d
...
...
@@ -120,10 +120,10 @@ func (c *Console) init(preload []string) error {
consoleObj
.
Object
()
.
Set
(
"error"
,
c
.
consoleOutput
)
// Load all the internal utility JavaScript libraries
if
err
:=
c
.
jsre
.
Compile
(
"bignumber.js"
,
jsre
.
Big
N
umber
_JS
);
err
!=
nil
{
if
err
:=
c
.
jsre
.
Compile
(
"bignumber.js"
,
jsre
.
Big
n
umber
Js
);
err
!=
nil
{
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
)
}
if
_
,
err
:=
c
.
jsre
.
Run
(
"var Web3 = require('web3');"
);
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
internal/jsre/jsre.go
+
2
−
2
View file @
e6c06a1d
...
...
@@ -32,8 +32,8 @@ import (
)
var
(
Big
N
umber
_JS
=
deps
.
MustAsset
(
"bignumber.js"
)
Web3
_JS
=
deps
.
MustAsset
(
"web3.js"
)
Big
n
umber
Js
=
deps
.
MustAsset
(
"bignumber.js"
)
Web3
Js
=
deps
.
MustAsset
(
"web3.js"
)
)
/*
...
...
This diff is collapsed.
Click to expand it.
internal/web3ext/web3ext.go
+
28
−
28
View file @
e6c06a1d
...
...
@@ -18,23 +18,23 @@
package
web3ext
var
Modules
=
map
[
string
]
string
{
"accounting"
:
Accounting
_JS
,
"admin"
:
Admin
_JS
,
"chequebook"
:
Chequebook
_JS
,
"clique"
:
Clique
_JS
,
"ethash"
:
Ethash
_JS
,
"debug"
:
Debug
_JS
,
"eth"
:
Eth
_JS
,
"miner"
:
Miner
_JS
,
"net"
:
Net
_JS
,
"personal"
:
Personal
_JS
,
"rpc"
:
R
PC_JS
,
"shh"
:
Shh
_JS
,
"swarmfs"
:
S
WARMFS_JS
,
"txpool"
:
Tx
P
ool
_JS
,
"accounting"
:
Accounting
Js
,
"admin"
:
Admin
Js
,
"chequebook"
:
Chequebook
Js
,
"clique"
:
Clique
Js
,
"ethash"
:
Ethash
Js
,
"debug"
:
Debug
Js
,
"eth"
:
Eth
Js
,
"miner"
:
Miner
Js
,
"net"
:
Net
Js
,
"personal"
:
Personal
Js
,
"rpc"
:
R
pcJs
,
"shh"
:
Shh
Js
,
"swarmfs"
:
S
warmfsJs
,
"txpool"
:
Tx
p
ool
Js
,
}
const
Chequebook
_JS
=
`
const
Chequebook
Js
=
`
web3._extend({
property: 'chequebook',
methods: [
...
...
@@ -65,7 +65,7 @@ web3._extend({
});
`
const
Clique
_JS
=
`
const
Clique
Js
=
`
web3._extend({
property: 'clique',
methods: [
...
...
@@ -111,7 +111,7 @@ web3._extend({
});
`
const
Ethash
_JS
=
`
const
Ethash
Js
=
`
web3._extend({
property: 'ethash',
methods: [
...
...
@@ -139,7 +139,7 @@ web3._extend({
});
`
const
Admin
_JS
=
`
const
Admin
Js
=
`
web3._extend({
property: 'admin',
methods: [
...
...
@@ -217,7 +217,7 @@ web3._extend({
});
`
const
Debug
_JS
=
`
const
Debug
Js
=
`
web3._extend({
property: 'debug',
methods: [
...
...
@@ -454,7 +454,7 @@ web3._extend({
});
`
const
Eth
_JS
=
`
const
Eth
Js
=
`
web3._extend({
property: 'eth',
methods: [
...
...
@@ -524,7 +524,7 @@ web3._extend({
});
`
const
Miner
_JS
=
`
const
Miner
Js
=
`
web3._extend({
property: 'miner',
methods: [
...
...
@@ -569,7 +569,7 @@ web3._extend({
});
`
const
Net
_JS
=
`
const
Net
Js
=
`
web3._extend({
property: 'net',
methods: [],
...
...
@@ -582,7 +582,7 @@ web3._extend({
});
`
const
Personal
_JS
=
`
const
Personal
Js
=
`
web3._extend({
property: 'personal',
methods: [
...
...
@@ -628,7 +628,7 @@ web3._extend({
})
`
const
R
PC_JS
=
`
const
R
pcJs
=
`
web3._extend({
property: 'rpc',
methods: [],
...
...
@@ -641,7 +641,7 @@ web3._extend({
});
`
const
Shh
_JS
=
`
const
Shh
Js
=
`
web3._extend({
property: 'shh',
methods: [
...
...
@@ -661,7 +661,7 @@ web3._extend({
});
`
const
S
WARMFS_JS
=
`
const
S
warmfsJs
=
`
web3._extend({
property: 'swarmfs',
methods:
...
...
@@ -685,7 +685,7 @@ web3._extend({
});
`
const
Tx
P
ool
_JS
=
`
const
Tx
p
ool
Js
=
`
web3._extend({
property: 'txpool',
methods: [],
...
...
@@ -712,7 +712,7 @@ web3._extend({
});
`
const
Accounting
_JS
=
`
const
Accounting
Js
=
`
web3._extend({
property: 'accounting',
methods: [
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment