You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,25 @@
1
1
# Change Log
2
2
All notable changes will be documented in this file.
3
3
4
+
## v0.1.0
5
+
6
+
⚠️ pot. breaking changes: `solidity-shell` now ships with ganache. use `.chain set-provider` to switch chain providers. the `built-in` ganache provider is used by default.
7
+
8
+
- new: built in ganache provider
9
+
- new: `.chain` subcommand
10
+
-`.chain restart` - restarts the service (formerly known as `.restartblockchain`)
11
+
-`.chain set-provider [fork-url]` - switch between the internal or an external `ganache-cli` command or url-provider. Optionally specify a ganache fork-url.
console.log("🧨 not saving config due to dirty shutdown.")
84
+
return;
85
+
}
86
+
saveFile(CONFIG_FILE,shell.settings)
63
87
});
64
88
65
89
constvorpal=newVorpal()
@@ -77,7 +101,7 @@ vorpal
77
101
.mode('repl','Enters Solidity Shell Mode')
78
102
.delimiter(c.bold('» '))
79
103
.init(function(args,cb){
80
-
this.log(`🚀 Entering interactive Solidity ${c.bold(shell.settings.installedSolidityVersion)} shell. '${c.bold('.help')}' and '${c.bold('.exit')}' are your friends.`);
104
+
this.log(`🚀 Entering interactive Solidity ${c.bold(shell.settings.installedSolidityVersion)} shell (🧁:${c.bold(shell.blockchain.name)}). '${c.bold('.help')}' and '${c.bold('.exit')}' are your friends.`);
81
105
returncb();
82
106
})
83
107
.action(function(input,cb){
@@ -102,7 +126,14 @@ vorpal
102
126
${c.bold('General:')}
103
127
.help ... this help :)
104
128
.exit ... exit the shell
105
-
.restartblockchain ... restart the ganache blockchain service
129
+
130
+
${c.bold('Blockchain:')}
131
+
.chain
132
+
restart ... restart the blockchain service
133
+
set-provider <fork-url> ... "internal" | <shell-command: e.g. ganache-cli> | <https://localhost:8545>
134
+
- fork url e.g. https://mainnet.infura.io/v3/yourApiKey
135
+
accounts ... return eth_getAccounts
136
+
<X> ... return web3.eth.<X>()
106
137
107
138
${c.bold('Settings:')}
108
139
.config ... show settings
@@ -129,7 +160,41 @@ cheers 🙌
129
160
130
161
break;//show usage
131
162
case'.exit': process.exit();break;//exit -> no more cb()
0 commit comments