Code Monkey home page Code Monkey logo

ape-tenderly's People

Contributors

antazoey avatar dtdang avatar fubuloubu avatar notpeopling2day avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ape-tenderly's Issues

TENDERLY_PROJECT variable is returning an error

Environment information

  • ape and plugin versions:
$ ape --version
0.7.9
$ ape plugins list
Installed Plugins
  alchemy      0.7.1
  arbitrum     0.7.2
  etherscan    0.7.1
  foundry      0.7.3
  ganache      0.7.0
  solidity     0.7.1
  tenderly     0.7.0b0
  tokens       0.7.1
  • Python Version: 3.12
  • OS: osx

What went wrong?

After adding TENDERLY_PROJECT from project settings on tenderly dashboard, TENDERLY_ACCESS_KEY from my personal account, and TENDERLY_GATEWAY_ACCESS_KEY from gateway page
I'm getting this error related to the TENDERLY_PROJECT variable

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/bin/ape", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape/_cli.py", line 79, in invoke
    return super().invoke(ctx)
           ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape/cli/commands.py", line 95, in invoke
    with network_ctx as provider:
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape/api/networks.py", line 677, in __enter__
    return self.push_provider()
           ^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape/api/networks.py", line 690, in push_provider
    self._provider.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape_tenderly/provider.py", line 45, in connect
    self._web3 = Web3(HTTPProvider(self.uri))
                                   ^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape_tenderly/provider.py", line 42, in uri
    return self.fork.json_rpc_url
           ^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/functools.py", line 995, in __get__
    val = self.func(instance)
          ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape_tenderly/provider.py", line 38, in fork
    return self._create_fork()
           ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape_tenderly/provider.py", line 30, in _create_fork
    fork = self._client.create_fork(chain_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ape_tenderly/client.py", line 74, in create_fork
    return Fork.model_validate_json(response.json().get("fork"))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/main.py", line 532, in model_validate_json
    return cls.__pydantic_validator__.validate_json(json_data, strict=strict, context=context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Fork
  JSON input should be string, bytes or bytearray [type=json_type, input_value={'id': 'a8e12b22-5853-4cd...4cdd-bd96-32143dbbb5da'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/json_type

How can it be fixed?

Fill this in if you have ideas on how the bug could be fixed.

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.