Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tungpham
EVM-address-generator
Commits
bf5db39f
Commit
bf5db39f
authored
3 years ago
by
tungpham
Browse files
Options
Download
Email Patches
Plain Diff
Improve user-experience
parent
9df41985
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-4
README.md
generate.js
+3
-1
generate.js
package.json
+2
-1
package.json
with
10 additions
and
6 deletions
+10
-6
README.md
View file @
bf5db39f
config generator
:
-
change addrNum - the number of address to be generated
# Command
:
`npm run gen <array-size>`
run:
-
node generate.js
# An xample:
`npm run gen 1000`
This diff is collapsed.
Click to expand it.
generate.js
View file @
bf5db39f
var
ethers
=
require
(
'
ethers
'
);
var
crypto
=
require
(
'
crypto
'
);
var
addrNum
=
500
;
// take the third argument
var
addrNum
=
process
.
argv
.
slice
(
2
);
var
s
=
""
;
for
(
let
i
=
0
;
i
<
addrNum
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
bf5db39f
...
...
@@ -4,7 +4,8 @@
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"gen"
:
"node generate.js"
},
"repository"
:
{
"type"
:
"git"
,
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help