Code Monkey home page Code Monkey logo

ape-arbitrum's People

Contributors

antazoey avatar dtdang avatar fubuloubu avatar notpeopling2day avatar petrovska-petro avatar sabotagebeats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ape-arbitrum's Issues

`networks.provider.get_receipt(tx_hash)` bugs on producing the receipt from passing `bytes` instead of `str`

Environment information

  • ape and plugin versions:
$ ape --version
0.5.4

$ ape plugins list
Installed Plugins:
  etherscan    0.5.4
  arbitrum     0.5.1
  • Python Version: 3.8.0
  • OS: macOS

What went wrong?

Running either of the following methods:

chain.get_receipt('0x1c38688523bf47921fef5551451fefa6e2e5d77991ea674d572f02d72dda4dc7')

or

networks.provider.get_receipt('0x1c38688523bf47921fef5551451fefa6e2e5d77991ea674d572f02d72dda4dc7')

Raises the following TypeError: Value must be an instance of str while decoding the hex at this line

How can it be fixed?

Locally was resolved by ensuring bytes is not passed as an argument in that method. e.g:

        if "input" in kwargs:
            input_hexed = kwargs.pop("input").hex()
            kwargs["data"] = decode_hex(input_hexed)

Full Networks support

Overview

Arbitrum has 5 networks according to chainlist.org
image

3 of these network are "production" meaning they operate as L2s off Ethereum or another L1 (xDai/Gnosis Chain), and the other two are testnets (although Rinkeby is being deprecated)

Unfortunately, we only have the Rinkeby testnet as testnet (which is the wrong key, it should be using rinkeby)

Specification

Update in breaking change release v0.5.0 to change testnet to rinkeby, add goerli and nova, and consider changing mainnet to one since Arbitrum One and Arbitrum Nova are both Ethereum Mainnet L2s

Dependencies

Updates to Infura, Alchemy, and other providers that support Arbitrum required

`networks.provider.get_receipt(tx_hash)` not supporting TransactionType.DYNAMIC

Environment information

  • ape and plugin versions:
$ ape --version
0.5.9
$ ape plugins list
Installed Plugins:
  arbitrum     0.5.2
  etherscan    0.5.4
  • Python Version: 3.89
  • OS: macOS

What went wrong?

Please include information like:

Run in console:

tx_hash = '0x452398f3a8c63d2b525d96972c64e0f3e732ce8f2d7aac7ff0400ef79b96e25d'

networks.provider.get_receipt(tx_hash)

ApeArbitrumError arises in this here as following:

ApeArbitrumError: Transaction type 'TransactionType.DYNAMIC' not supported.

Other tx hashes which will end up with the same err, for verifying at your end:

0x7fb352dc5fd029733db1d9a69b212ea7480e722fb011d9cae446ece6fafc5d1c
0x026e0abf00b974882c54e28e8fc7ffc3c0c226175808c698534d8b59d16a904a
0xe7a6701733f9fd384dd1d435f6d1710f8e7e39c69ae6b237bd7eed430d0d4199
0x379194dcff39da869c5f96502c879b7b926cf619d907477c727cd0fbfb3ce577

How can it be fixed?

See PR #10

Cannot interact with a proxy contract [APE-1169]

ape version:

  • 0.6.8

ape plugins list:

  • notebook 0.6.0a1
  • solidity 0.6.3
  • tokens 0.6.0
  • infura 0.6.1
  • vyper 0.6.5
  • optimism 0.6.0
  • arbitrum 0.6.0
  • foundry 0.6.7
  • polygon 0.6.1
  • ganache 0.6.5
  • avalanche 0.6.2

What went wrong?

I tried to interact with address '0x0180dee5Df18eBF76642e50FaaEF426f7b2874f7' which is a proxy contract on arbitrum mainnet but got a contract type error.

command:

ape console --network arbitrum:mainnet -v DEBUG 

console:

from ape import Contract
Contract('0x0180dee5Df18eBF76642e50FaaEF426f7b2874f7' ) 

Then I got this error

  File "/Users/raychang/Desktop/aus_brownie/.venv/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "/Users/raychang/Desktop/aus_brownie/.venv/lib/python3.9/site-packages/ape/managers/chain.py", line 1114, in instance_at
    raise ChainError(f"Failed to get contract type for address '{contract_address}'.")

ERROR: (ChainError) Failed to get contract type for address '0x0180dee5Df18eBF76642e50FaaEF426f7b2874f7'.

How can it be fixed?

I think it's due to the proxy contract since Contract works fine for other addresses. Have tried to use abi from the proxy one and the implemented one but still got same errors. need advice

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.