llamafolio / llamafolio-api

Open source, privacy conscious portfolio tracker by Llama Corp.
https://llamafolio.com
GNU General Public License v3.0
55 stars 20 forks source link

New Adapter : Astra DAO #1175

Open Boyquotes opened 10 months ago

Boyquotes commented 10 months ago

When I run the command on example waller address in the README.md , the program return an error about an unkown contract/adapter.

There is an option to bypass this contract ?

Contract Address : https://etherscan.io/address/0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23

pnpm run adapter wallet ethereum 0x0000000000000000000000000000000000000000

> llamafolio-api@0.0.1 adapter llamafolio-api
> tsx scripts/run-adapter.ts "wallet" "ethereum" "0x0000000000000000000000000000000000000000"

[balanceOf()] The contract function "balanceOf" returned no data ("0x").

This could be due to any of the following:
  - The contract does not have the function "balanceOf",
  - The parameters passed to the contract function may be invalid, or
  - The address is not a contract.

Contract Call:
  address:   0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23
  function:  balanceOf(address account)
  args:               (0x0000000000000000000000000000000000000000)

Docs: https://viem.sh/docs/contract/readContract.html
Version: viem@1.19.10
Failed to run adapter The contract function "balanceOf" returned no data ("0x").

This could be due to any of the following:
  - The contract does not have the function "balanceOf",
  - The parameters passed to the contract function may be invalid, or
  - The address is not a contract.

Contract Call:
  address:   0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23
  function:  balanceOf(address account)
  args:               (0x0000000000000000000000000000000000000000)

Docs: https://viem.sh/docs/contract/readContract.html
Version: viem@1.19.10
0xsign commented 10 months ago

Hey @Boyquotes, thanks for reporting this issue ! There's no option, it works in production because the contract is optimized away. I'll have a look at it :)