Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dex for velocimeter v4 on iotaevm #2020

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oxSaturn
Copy link
Contributor

@oxSaturn oxSaturn commented Oct 18, 2024

@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Thu, 17 Oct 2024 06:42:52 GMT
End Date:	Fri, 18 Oct 2024 06:42:52 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    }
  ],
  chain: 'iotaevm'
}

@oxSaturn
Copy link
Contributor Author

Btw, how can I track the volume data of iota evm on https://defillama.com/dexs/chains page?

@dtmkeng
Copy link
Contributor

dtmkeng commented Oct 18, 2024

is there api ?, seem IOTAEVM rpc not work

@t0rbik
Copy link

t0rbik commented Oct 18, 2024

Is it possible to trigger it again? seems working in chainlist:
Screenshot 2024-10-18 at 8 43 34 pm

@dtmkeng
Copy link
Contributor

dtmkeng commented Oct 18, 2024

Is it possible to trigger it again? seems working in chainlist: Screenshot 2024-10-18 at 8 43 34 pm

can you run test on your local ?

@oxSaturn
Copy link
Contributor Author

Screenshot-OZuf5x7d@2x

Any chances to fix it in sdk? Or any configuration we can use.

@oxSaturn
Copy link
Contributor Author

oxSaturn commented Oct 19, 2024

  1. The rpc from blastapi for iota evm doesn't support getLogs per https://blastapi.io/public-api/iota
  2. The official one does support getLogs https://wiki.iota.org/isc/reference/json-rpc-spec/, but we'll need to adjust the block range somewhere.

Regarding the max block range allowed, this document might be helpful https://github.com/iotaledger/iota-wiki/blob/22ba7c2ff540cdd8dccaf983ee059e645d425c66/docs/maintain/wasp/v1.4/docs/reference/configuration.md?plain=1#L480, but we probably need to double check with them.

@oxSaturn
Copy link
Contributor Author

oxSaturn commented Oct 19, 2024

Got it work somehow after adjusting the block range to 500.

Screenshot-SojGax9K@2x

@oxSaturn oxSaturn closed this Oct 19, 2024
@oxSaturn oxSaturn reopened this Oct 19, 2024
@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Fri, 18 Oct 2024 21:27:28 GMT
End Date:	Sat, 19 Oct 2024 21:27:28 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    }
  ],
  chain: 'iotaevm'
}

@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Fri, 18 Oct 2024 22:41:48 GMT
End Date:	Sat, 19 Oct 2024 22:41:48 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    }
  ],
  chain: 'iotaevm'
}

@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> LLAMA_DEBUG_MODE=true ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Fri, 18 Oct 2024 22:46:01 GMT
End Date:	Sat, 19 Oct 2024 22:46:01 GMT
---------------------------------------------------

iotaevm skipping RPC https://ws.json-rpc.evm.iotaledger.net is not working, error: Request failed with status code 405
chain: iotaevm block: 1793364 #calls: 4 imprecision: 3.60 (min) Time Taken: 1.91 (in sec)
chain: iotaevm block: 1801455 #calls: 1 imprecision: 3.13 (min) Time Taken: 0.11 (in sec)
uniV2RunLog: Filtered to 6/6 pairs Factory: 0x10a288ef87586be54ea690998cac82f7cc90bc50 Chain: iotaevm
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400, retrying...
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400, retrying...
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400, retrying...
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range, retrying...
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400, retrying...
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400, retrying...
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 8111. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 4055. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] }
  ],
  chain: 'iotaevm'
}
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 2027. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
Error fetching logs for chain iotaevm blockSpread: 1013. Error: Llama RPC error! methos: undefined 
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400
- host: https://json-rpc.evm.iotaledger.net error: ServerError(-32000) too many blocks in filter range
- host: https://iota-mainnet-evm.public.blastapi.io error: Request failed with status code 400

@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Fri, 18 Oct 2024 23:14:49 GMT
End Date:	Sat, 19 Oct 2024 23:14:49 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    }
  ],
  chain: 'iotaevm'
}

@oxSaturn
Copy link
Contributor Author

oxSaturn commented Oct 20, 2024

Here's how we could possibly fix the problem:

  1. Ask IOTA EVM to raise the block range cap (cc @t0rbik If you have direct connection to them)
  2. Lower the blockSpread in sdk here https://github.com/DefiLlama/defillama-sdk/blob/5e4dd09564256d75fa692027a4652cf5707dc335/src/util/index.ts#L97 , or allow configuring it via an env variable. (cc @g1nt0ki since you're the main maintainer there)

https://github.com/iotaledger/iota-wiki/blob/22ba7c2ff540cdd8dccaf983ee059e645d425c66/docs/maintain/wasp/v1.4/docs/reference/configuration.md?plain=1#L480

Screenshot-Y6rtzFNe@2x

@t0rbik
Copy link

t0rbik commented Oct 20, 2024

I will try to ask IOTA if it's possible.

@oxSaturn
Copy link
Contributor Author

I will try to ask IOTA if it's possible.

Tell them it might be helpful to get them listed on dexscreener as we'll have more data per https://docs.dexscreener.com/chain-listing, lol.

@g1nt0ki
Copy link
Member

g1nt0ki commented Oct 24, 2024

hi @oxSaturn do you maybe have a graph endpoint for pulling data? we have had issuing pulling logs from iota, 500 as range is quite low and we will end up making too many calls

@g1nt0ki g1nt0ki self-assigned this Oct 24, 2024
@oxSaturn
Copy link
Contributor Author

hi @oxSaturn do you maybe have a graph endpoint for pulling data? we have had issuing pulling logs from iota, 500 as range is quite low and we will end up making too many calls

Hi, that's my concern too. That's why @t0rbik helped to ask iota evm team to see if they can raise the cap to 1500, still waiting for their answer. I think it would make more sense for them to raise the cap as it will benefit any other protocols on iota evm in future in case they have no graphql endpoint.

Hope they can sort it out, otherwise we'll likely have to add a graphql endpoint.

@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Thu, 24 Oct 2024 00:34:54 GMT
End Date:	Fri, 25 Oct 2024 00:34:54 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    },
    { host: 'https://json-rpc.evm.iotaledger.net', error: [Object] },
    {
      host: 'https://iota-mainnet-evm.public.blastapi.io',
      error: [AxiosError]
    }
  ],
  chain: 'iotaevm'
}

@oxSaturn oxSaturn closed this Nov 6, 2024
@oxSaturn oxSaturn reopened this Nov 6, 2024
@llamatester
Copy link

The velocimeter-v4 adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs velocimeter-v4

🦙 Running VELOCIMETER-V4 adapter 🦙
---------------------------------------------------
Start Date:	Tue, 05 Nov 2024 15:55:19 GMT
End Date:	Wed, 06 Nov 2024 15:55:19 GMT
---------------------------------------------------

IOTAEVM 👇
Backfill start time not defined
NO METHODOLOGY SPECIFIED
Daily volume: 24.37 k
Daily fees: 61
Daily revenue: 61
Daily holders revenue: 61
Daily bribes revenue: 0
End timestamp: 1730908518 (2024-11-06T15:55:18.000Z)

@oxSaturn
Copy link
Contributor Author

oxSaturn commented Nov 6, 2024

@dtmkeng @g1nt0ki Seems they finally raised the limit :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants