feat: add ADNL (TON Sites) content hash support - #1144
Conversation
ensjs 4.3.0 adds the adnl content hash codec (via content-hash 3.1.1), required for ADNL/TON Sites support.
- register adnl provider: types, validation (32-byte hex), TON icon, i18n - users enter adnl://<hex>, encoded and decoded through ensjs like other protocols
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|



Two commits.
chore: bump @ensdomains/ensjs to 4.3.0content-hash 3.1.1 (#1141) added the
adnlcodec (0xb69910), but the app encodes/decodes through@ensdomains/ensjs, whose contentHash util gates protocols on its own allow-list (ProtocolType, thematchProtocolregex,getDisplayCodec). Soadnlhad to be added there too. 4.3.0 does that.feat: add ADNL (TON Sites) content hash supportadnladded tosupportedContentHashKeys,ContentHashProtocol/ContentHashProvider, and the provider mapvalidateContentHash:adnl://requires a 32-byte hex addresston.svg) for the Website groupADNLlabel +adnl://...placeholder (i18n)Input
adnl://<hex>is stored on-chain as0x90b2da05<32-byte hex>and decoded back for display, like the other protocols.