Skip to content

Commit 54e5a99

Browse files
authored
Merge pull request #159 from Tenderly/nu/export-deprecation
Export command deprecation.
2 parents 43eda1e + 611919b commit 54e5a99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+45
-6394
lines changed

README.md

+2-99
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ contracts.
1212
* [Login](#login)
1313
* [Init](#init)
1414
* [Push](#push)
15-
* [Export setup](#export-init)
16-
* [Export local transactions to Tenderly](#export)
1715
* [Check for updates](#check-for-updates)
1816
* [Version](#version)
1917
* [Who am I?](#who-am-i)
@@ -175,8 +173,7 @@ If you are using Hardhat, take a look at [docs](https://docs.tenderly.co/monitor
175173

176174
The `push` command is used to add your contracts to the [Tenderly Dashboard](https://dashboard.tenderly.co).
177175

178-
Note that the `push` command is used **only** for adding contracts that are deployed to a public network. For local
179-
networks see the [export command](#export).
176+
Note that the `push` command is used **only** for adding contracts that are deployed to a public network.
180177

181178
```
182179
tenderly push
@@ -202,104 +199,14 @@ projects: # running tenderly push will push the smart contracts to all of the pr
202199
my-cool-project:
203200
networks:
204201
- "1" # mainnet
205-
- "42" # kovan
202+
- "5" # goerli
206203
my-other-project:
207204
# if the networks property is not provided or is empty the project will be pushed to all of the migrated networks
208205
company-account/my-other-project:
209206
# if you want to push to a shared project provide the full project identifier
210207
# the identifier can be found in your Tenderly dashboard under the projects name
211208
```
212209

213-
### Export init
214-
215-
In order to use the [tenderly export](#export) command you need to define a configuration file
216-
(which is described in more detail in the [export command](#export) advanced usage section).
217-
218-
```
219-
tenderly export init
220-
```
221-
222-
#### Command Flags
223-
224-
| Flag | Default | Description |
225-
| --- | --- | --- |
226-
| --project | / | The project name used for network configuration |
227-
| --rpc | / | Rpc server address (example: 127.0.0.1:8545) |
228-
| --forked-network | / | In case you forked a public network (example: mainnet) |
229-
| --help | / | Help for export init command |
230-
231-
### Export
232-
233-
The `export` command can be used to access transaction debugging tooling available at https://dashboard.tenderly.co/ but
234-
for local transactions.
235-
236-
Use the
237-
[Transaction Overview](https://dashboard.tenderly.co/tx/main/0x70f28ce44bd58034ac18bec9eb1603350d50e020e4c2cf0b071837699ea1cdb1)
238-
,
239-
[Human-Readable Stack-Traces](https://dashboard.tenderly.co/tx/main/0x30bc65375b2e2b56f97706bccba9b21bc8763cc81a0262351b3373ce49f60ea7)
240-
,
241-
[Debugger](https://dashboard.tenderly.co/tx/main/0x70f28ce44bd58034ac18bec9eb1603350d50e020e4c2cf0b071837699ea1cdb1/debugger)
242-
,
243-
[Gas Profiler](https://dashboard.tenderly.co/tx/main/0x70f28ce44bd58034ac18bec9eb1603350d50e020e4c2cf0b071837699ea1cdb1/gas-usage)
244-
,
245-
[Decoded Events](https://dashboard.tenderly.co/tx/main/0x70f28ce44bd58034ac18bec9eb1603350d50e020e4c2cf0b071837699ea1cdb1/logs)
246-
and [State](https://dashboard.tenderly.co/tx/main/0x70f28ce44bd58034ac18bec9eb1603350d50e020e4c2cf0b071837699ea1cdb1/state-diff)
247-
to boost your local development productivity.
248-
249-
```
250-
tenderly export {{transaction_hash}}
251-
```
252-
253-
#### Command Arguments
254-
255-
| Name | Description |
256-
| --- | --- |
257-
| transaction hash | Hash of the local transaction to debug |
258-
259-
#### Command Flags
260-
261-
| Flag | Default | Description |
262-
| --- | --- | --- |
263-
| --export-network | / | The name of the exported network in the configuration file |
264-
| --project | / | The project in which the exported transactions will be stored |
265-
| --rpc | 127.0.0.1:8545 | The address and port of the local rpc node |
266-
| --forked-network | / | Optional name of the network which you are forking locally. Can be one of Mainnet, Goerli, Kovan, Ropsten, Rinkeby, xDai |
267-
| --protocol | / | Specify the protocol used for the rpc node. By default `wss`, `https`, `ws`, `http` are tried in that order |
268-
| --help | / | Help for export command |
269-
| --force| false | Export the transaction regardless of gas mismatch|
270-
271-
#### Advanced usage
272-
273-
If your local node has different blocks defined for hardforks or you want to generate the configuration file yourself,
274-
you can find the example bellow:
275-
276-
```yaml
277-
exports: # running tenderly export will export local transaction to the provided project
278-
my-network:
279-
project_slug: my-cool-project
280-
rpc_address: 127.0.0.1:8545
281-
protocol: http
282-
forked_network: mainnet
283-
chain_config:
284-
homestead_block: 0 # (default 0)
285-
eip150_block: 0 # (default 0)
286-
eip150_hash: 0x0 # (default 0x0)
287-
eip155_block: 0 # (default 0)
288-
eip158_block: 0 # (default 0)
289-
byzantium_block: 0 # (default 0)
290-
constantinople_block: 0 # (default 0)
291-
petersburg_block: 0 # (default 0)
292-
istanbul_block: 0 # (default 0)
293-
berlin_block: 0 # (default 0)
294-
london_block: 0 # (default 0)
295-
296-
my-company-network:
297-
project_slug: company-account/my-other-project
298-
rpc_address: rpc.ethereum.company:8545
299-
# if you want to export to a shared project provide the full project identifier
300-
# the identifier can be found in your Tenderly dashboard under the projects name
301-
```
302-
303210
### Verify
304211

305212
The `verify` command uploads your smart contracts and verifies them on [Tenderly](https://tenderly.co).
@@ -344,10 +251,6 @@ The `logout` command disconnects your local Tenderly CLI from your [Tenderly Das
344251
tenderly logout
345252
```
346253

347-
### Proxy Debugging
348-
349-
The proxy command is deprecated in favor of the [export](#export) command.
350-
351254
### Global Flags
352255

353256
In addition to command specific flags, the following flags can be passed to any command

buidler/buidler.go

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ func NewDeploymentProvider() *DeploymentProvider {
1919
call.NewUserCalls(),
2020
call.NewProjectCalls(),
2121
call.NewContractCalls(),
22-
call.NewExportCalls(),
2322
call.NewNetworkCalls(),
2423
call.NewActionCalls(),
2524
call.NewDevNetCalls(),

buidler/source.go

-100
This file was deleted.

commands/export.go

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package commands
2+
3+
import (
4+
"github.com/sirupsen/logrus"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
func init() {
9+
RootCmd.AddCommand(exportCmd)
10+
RootCmd.AddCommand(exportInitCmd)
11+
}
12+
13+
var exportCmd = &cobra.Command{
14+
Use: "export",
15+
Short: "The export feature has been deprecated in favor of the DevNets",
16+
Run: func(cmd *cobra.Command, args []string) {
17+
logrus.Info(Colorizer.Sprintf(
18+
"The export feature has been deprecated in favor of the %s.\n\n"+
19+
"The %s can be used as a development node infrastructure that allows you to access tooling at %s. "+
20+
"You can read more about it here: %s.",
21+
Colorizer.Bold(Colorizer.Green("DevNets")),
22+
Colorizer.Bold(Colorizer.Green("DevNets")),
23+
Colorizer.Bold(Colorizer.Green("https://dashboard.tenderly.co")),
24+
Colorizer.Bold(Colorizer.Green("https://blog.tenderly.co/how-to-deploy-smart-contracts-with-hardhat-and-tenderly/")),
25+
))
26+
},
27+
}
28+
29+
var exportInitCmd = &cobra.Command{
30+
Use: "export init",
31+
Short: "The export feature has been deprecated in favor of the DevNets",
32+
Run: func(cmd *cobra.Command, args []string) {
33+
logrus.Info(Colorizer.Sprintf(
34+
"The export feature has been deprecated in favor of the %s.\n\n"+
35+
"The %s can be used as a development node infrastructure that allows you to access tooling at %s. "+
36+
"You can read more about it here: %s.",
37+
Colorizer.Bold(Colorizer.Green("DevNets")),
38+
Colorizer.Bold(Colorizer.Green("DevNets")),
39+
Colorizer.Bold(Colorizer.Green("https://dashboard.tenderly.co")),
40+
Colorizer.Bold(Colorizer.Green("https://blog.tenderly.co/how-to-deploy-smart-contracts-with-hardhat-and-tenderly/")),
41+
))
42+
},
43+
}

0 commit comments

Comments
 (0)