Giter Club home page Giter Club logo

Comments (17)

eviltofu avatar eviltofu commented on August 15, 2024 1

There is a duplicate 0xfcb5df42e06a39e233dc707bb3a80311efd11576 in adjustment.json. There are two chain ID 56s. I will remove the duplicate.

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

How do I assign the channel id if I find something missing in adjustments.json? @hboon

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

@eviltofu do you mean "chain ID"? Can you elaborate either way?

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

Doh I keep typing in the wrong thing.

I mean in the step update the spam group in tokens repo (use adjustment.json) if I find a token that has a spam token but is not in adjustment.json what should the chain ID be?

For example: 0x7da85e8592b45dc0811cdca4e5b8267e7833a87d

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

You'll have to figure it by checking it against each blockchain explorer site by entering the contract and see if that's the contract + chain ID

  1. Open modules/AlphaWalletFoundation/AlphaWalletFoundation/Settings/Types/RPCServers.swift
  2. Look for return 137, that gives you the whereabouts of all the chain IDs and the matching server (the enum-case)
  3. For each of the chain IDs supported in the tokens repo that we have data for (there is just a handful, not all the ~30 we support in AlphaWallet), figure out the enum-case with the help of step (2)
  4. Repeat step (2) but search for return "https://cn.etherscan.com", this gives you the blockchain explorer site for each chain (enum-case) that you want.
  5. Look to the list with the help of (4) and try searching for the contract and see if it looks like it's the one

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

Is image a spam token? I've been only counting image. @hboon

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

Only the latter (the one with the "SPAM" image). At least for now

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

@hboon can't seem to find any chain id from cn.etherscan.com

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

From #3129 (comment). eg. Look for 137, so we have:

case .polygon: return 137

and next:

case .polygon: return "https://polygonscan.com"

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

This isn't the problem I was able to eventually get to polygonscan.com. After entering the contract address, how do I find the chain id? There is no attribute named chain id. https://polygonscan.com/address/0x7da85e8592b45dc0811cdca4e5b8267e7833a87d @hboon

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

That’s what I meant. polygonscan.com means a specific chain ID -> 137

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

Can I use these search results to determine the chain IDs? Using https://etherscan.io/ @hboon Then I just take the chain IDs from RPCServers.swift.

Screenshot 2023-03-15 at 9 56 18 PM

Screenshot 2023-03-15 at 9 56 21 PM

Screenshot 2023-03-15 at 9 56 14 PM

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

As long as it’s accurate :)

from alpha-wallet-android.

eviltofu avatar eviltofu commented on August 15, 2024

@hboon do I have to do task 3 (update the android app) or can this be sent to someone on the android team?

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

@eviltofu up to you. If it's simple and you are confident, contribute a PR.

from alpha-wallet-android.

justindg avatar justindg commented on August 15, 2024

I'm currently working on this for Android :)

@hboon do I have to do task 3 (update the android app) or can this be sent to someone on the android team?

from alpha-wallet-android.

hboon avatar hboon commented on August 15, 2024

Ok. Coordinate and assign yourself to avoid duplicate work :)

from alpha-wallet-android.

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.