Bot releases are visible (Hide)
.config set etherscanApiKey <newApiKey>
(default: YourApiKeyToken
demo key) #25 #24Published by tintinweb about 2 years ago
Published by tintinweb about 2 years ago
.inspect
contract raw storage, show generated bytecode, opcodes, storageLayout - #23 .inspect
bytecode ... show bytecode of underlying contract
opcodes ... show disassembled opcodes of underlying contract
storageLayout ... show variable to storage slot mapping for underlying contract
storage <slot> <num> [<address>] ... show raw storage at slot of underlying deployed contract
deployed ... debug: show internal contract object
Published by tintinweb about 2 years ago
Published by tintinweb about 2 years ago
Published by tintinweb over 2 years ago
Published by tintinweb over 2 years ago
🚀 Entering interactive Solidity ^0.8.13 shell (🧁:Ganache built-in). '.help' and '.exit' are your friends.
» enum FreshJuiceSize{ SMALL, MEDIUM, LARGE }
» uint8(FreshJuiceSize.LARGE)
2
.config set <var> True|False|true|false
Published by tintinweb over 2 years ago
⚠️ 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.
.chain
subcommand
.chain restart
- restarts the service (formerly known as .restartblockchain
).chain set-provider [fork-url]
- switch between the internal or an external ganache-cli
command or url-provider. Optionally specify a ganache fork-url.
.chain set-provider internal https://mainnet.infura.io/v3/yourApiKey
.chain accounts
- show ganache accounts.chain eth_<X> [args...]
- arbitrary eth JSONrpc method calls to blockchain provider.
.chain eth_accounts
returns the blockchain providers response to the eth_accounts
JSONrpc call.--fork
overrides fork-url option for internal ganache provider solidity-shell --fork https://mainnet.infura.io/v3/yourApiKey
.--reset-config
resets the config file.--show-config-file
prints the path to the config file.Published by tintinweb over 2 years ago
.restartblockchain
command to restart ganache e.g. after config changesPublished by tintinweb almost 3 years ago
.config
) - #112 ether
) - #12Published by tintinweb almost 3 years ago
import
directive - #8
https
imports, i.e. import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC721/IERC721.sol"
. This can be disabled by setting » .config set resolveHttpImports false
.localhost
alias may not be available on some systems - #9Published by tintinweb almost 3 years ago
solidity-shell -- -fork https://mainnet.infura.io/v3/yourToken
Query a live contracts ERC20.name()
:
» interface ERC20 {
multi> function name() external view returns (string memory);
multi> }
» ERC20(0xB8c77482e45F1F44dE1745F52C74426C631bDD52).name()
BNB
.config set
handling of strings and multi-word argumentsexit
exits solidity-shell completelyPublished by tintinweb almost 3 years ago
error
keyword and fix memory/storage type declarationsPublished by tintinweb about 3 years ago
Published by tintinweb about 3 years ago
Published by tintinweb about 3 years ago
pragma solidity 0.8.4
to switch to solidity v0.8.4.playing with arithmetic underflows in solidity 0.8.7
(reverts) and 0.6.0
(underflows)
⇒ node bin/main.js
🚀 Entering interactive Solidity ^0.8.7 shell. '.help' and '.exit' are your friends.
» ℹ️ ganache-mgr: starting temp. ganache instance ...
»
»
» uint(555)-uint(666)
Error: Returned error: VM Exception while processing transaction: revert
{
data: {
'0xf56c7c173b51b91c89a49735fab75926b166e51a42b721a867d704612dcdd14b': {
error: 'revert',
program_counter: 232,
return: '0x4e487b710000000000000000000000000000000000000000000000000000000000000011'
},
stack: 'c: VM Exception while processing transaction: revert\n' +
' at Function.c.fromResults (ganache-cli/build/ganache-core.node.cli.js:4:192416)\n' +
' at ganache-cli/build/ganache-core.node.cli.js:42:50402',
name: 'c'
}
}
» pragma solidity 0.6.0
» uint(555)-uint(666)
115792089237316195423570985008687907853269984665640564039457584007913129639825
»
Published by tintinweb about 3 years ago
still alpha 🥳
Published by tintinweb about 3 years ago
alpha 🥳