-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress with network autocomplete port
- Loading branch information
1 parent
a4f344e
commit a6aaf74
Showing
18 changed files
with
69 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
packages/ethernaut-network-ui/src/autocomplete/activate.js
This file was deleted.
Oops, something went wrong.
6 changes: 2 additions & 4 deletions
6
...t-network/src/tasks/autocomplete/alias.js → ...twork-ui/src/autocomplete/params/alias.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ut-network/src/tasks/autocomplete/fork.js → ...etwork-ui/src/autocomplete/params/fork.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/ethernaut-network-ui/src/autocomplete/tasks/activate.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function setup(hre) { | ||
const activate = hre.scopes.network.tasks.activate | ||
|
||
activate.positionalParamDefinitions.find( | ||
(p) => p.name === 'alias', | ||
).autocomplete = require('../params/alias')('Select a network to activate') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = function setup(hre) { | ||
const add = hre.scopes.network.tasks.add | ||
|
||
add.paramDefinitions.url.autocomplete = require('../params/url') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = function setup(hre) { | ||
const edit = hre.scopes.network.tasks.edit | ||
|
||
edit.positionalParamDefinitions.find((p) => p.name === 'alias').autocomplete = | ||
require('../params/alias')('Select a network to edit') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = function setup(hre) { | ||
const info = hre.scopes.network.tasks.info | ||
|
||
info.positionalParamDefinitions.find((p) => p.name === 'alias').autocomplete = | ||
require('../params/alias')('Select a network') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = function setup(hre) { | ||
const node = hre.scopes.network.tasks.node | ||
|
||
node.paramDefinitions.fork.autocomplete = require('../params/fork') | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/ethernaut-network-ui/src/autocomplete/tasks/remove.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function setup(hre) { | ||
const remove = hre.scopes.network.tasks.remove | ||
|
||
remove.positionalParamDefinitions.find( | ||
(p) => p.name === 'alias', | ||
).autocomplete = require('../params/alias')('Select a network') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters