Skip to content

feat: implement NEAR Protocol address validator#130

Open
FlorianBx wants to merge 225 commits into
christsim:masterfrom
FlorianBx:master
Open

feat: implement NEAR Protocol address validator#130
FlorianBx wants to merge 225 commits into
christsim:masterfrom
FlorianBx:master

Conversation

@FlorianBx
Copy link
Copy Markdown

Description

Adds support for validating all NEAR Protocol address formats:

  • Named accounts (e.g., "alice.near") - with regex validation and length checks (2-64 chars)
  • NEAR-implicit accounts - 64 hex characters, case-insensitive
  • ETH-implicit accounts - 0x + 40 hex characters, case-insensitive

ajoslin and others added 30 commits December 14, 2017 16:26
Update jsSHA library from version 1.6.0 to 2.3.1.
Dropped bower, fixed travis CI config. Updated README.
Extended currencies list with Decred
Added Ethereum and Digibyte currencies
taariqv and others added 27 commits November 7, 2023 13:52
* Add Celo

* Add more erc20 currencies
build min version
* Add BONK

* Add more ERC20 tokens
christsim#101)

* Tron address validation. Add USDT for tron, Testnet and mainnet have the same address, base58 string must be length 34

* Update version
* fix: define Buffer for browser usage

* chore: restore formatting
updated packages
…im#102)

Co-authored-by: christsim <28301107+christsim@users.noreply.github.com>
* Configure EVM networks to use ETHValidator

* Fix bitcoin testnet. Cleanup Tron validator, the address version byte is the same on testnet and mainnet

* Map all currencies to chainTypes
fixed some evm chains
Co-authored-by: christsim <28301107+christsim@users.noreply.github.com>
@christsim christsim force-pushed the master branch 3 times, most recently from 561be9c to a81037a Compare March 30, 2026 10:46
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.