Code Monkey home page Code Monkey logo

Comments (9)

Riphal avatar Riphal commented on August 16, 2024 2

Hey, yesterday we have some problems with API but that is resolved, so tenderly init works now.
And I notice that tenderly init failed that is because you don't have a deployments directory inside your project.
You can generate that one using hardhat-tenderly

  1. To install hardhat-tenderly run.
    npm install --save-dev @tenderly/hardhat-tenderly
  1. Add the following statement to your hardhat.config.js:
    require("@tenderly/hardhat-tenderly");

Or, if you are using typescript:

    import "@tenderly/hardhat-tenderly"
  1. Then you need to call it from your scripts (using ethers to deploy a contract):
    const Greeter = await ethers.getContractFactory("Greeter");
    const greeter = await Greeter.deploy("Hello, Hardhat!");

    await greeter.deployed()

    await hre.tenderly.persistArtifacts({
        name: "Greeter",
        address: greeter.address,
    })

persistArtifacts accept variadic parameters:

    const contracts = [
    {
        name: "Greeter",
        address: "123"
    },
    {
        name: "Greeter2",
        address: "456"
    }]

    await hre.tenderly.persistArtifacts(...contracts)
  1. Run: npx hardhat compile to compile contracts
  2. Run: npx hardhat node --network hardhat to start a local node
  3. Run: npx hardhat run scripts/sample-script.js --network localhost to run a script
  4. And at the end now when deployments directory was built you can run tenderly init

from tenderly-cli.

choomz avatar choomz commented on August 16, 2024

Thanks :)

from tenderly-cli.

tantely-npx avatar tantely-npx commented on August 16, 2024

Hey, Is it possible to push a contract/project to Tenderly dashboard from a local network ?

from tenderly-cli.

Riphal avatar Riphal commented on August 16, 2024

Currently, you can only export local transactions with export local-transaction feature.

from tenderly-cli.

tantely-npx avatar tantely-npx commented on August 16, 2024

Currently, you can only export local transactions with export local-transaction feature.

Ok, thanks @Riphal :)

from tenderly-cli.

red-saint-nft avatar red-saint-nft commented on August 16, 2024

I don't get a deployment directory after running all the commands

from tenderly-cli.

Riphal avatar Riphal commented on August 16, 2024

Hey @red-saint-nft, there is a new version of the hardhat-tenderly plugin. Here is readme how to set up a new environment.

from tenderly-cli.

hung-native avatar hung-native commented on August 16, 2024

Hi, I have the deployments folder, but when i'm trying to do

tenderly contracts push

I keep getting

Setting up your project...
Analyzing Hardhat configuration...
Couldn't read Hardhat config file

in my hardhat.config.ts, i have

import * as tdly from "@tenderly/hardhat-tenderly";
// ...
tdly.setup({ automaticVerifications: false });
// ...
tenderly: {
       project: "xx",
       username: "xx",
       privateVerification: true,
  }
// ...

And when I run

tenderly login

It says I have already logged in. Is there anything I missed?

from tenderly-cli.

beruda avatar beruda commented on August 16, 2024

@hung-native can you try with this monkey fix? It seems to have worked for other users.

from tenderly-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.