Git Product home page Git Product logo

Comments (3)

pedrouid avatar pedrouid commented on May 25, 2024

That's a great question and I think we should add wildcards to the spec

This could be used in two ways:

  • Get multiple accounts for a specific chainId namespace
chains:["eip155:*"] -> accounts:["0xD48F0F5e14262C48961314718113344C770A16B7@eip155:1", "0xD48F0F5e14262C48961314718113344C770A16B7@eip155:5"]
  • Get multiple accounts for any chainId namespace
chains:["*"] -> accounts:["0xD48F0F5e14262C48961314718113344C770A16B7@eip155:1", "cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0@cosmos:cosmoshub-3"]

Alternatively we could just take your approach which honestly it's much simpler and it doesn't break any regex rules for CAIP:2

from caips.

antoineherzog avatar antoineherzog commented on May 25, 2024

Up to you! I think the Regex is fine. I will submit a PR

from caips.

antoineherzog avatar antoineherzog commented on May 25, 2024

#29 I did this PR following your suggestions

from caips.

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.