safhandle 0.1.0
safhandle: ^0.1.0 copied to clipboard
Dart/Flutter SDK for the SafHandle name service on Safrochain — resolve wallet addresses by name and register handles on-chain, mirroring the contract's validation.
Changelog #
All notable changes to this package are documented here. Format based on Keep a Changelog; versioning follows SemVer.
0.1.0 #
Added #
- Initial Dart/Flutter port of the SafHandle SDK, matching the TypeScript SDK's
public surface:
SafHandleClient— read-only smart queries over the REST/LCD gateway (getAddress,lookup,resolveName,getHandles,getNameRecord,getConfig).SafHandleSigningClient+ pluggableSafHandleSigner—registerName(exact fee from config),transferName,releaseName.- Validation helpers mirroring the contract's
validation.rs(normalizeName,parseInput,isSafrochainAddress,toDisplayName). SafHandleError/SafHandleErrorCodeand theisNotFoundheuristic.- Testnet/mainnet network presets with the pinned testnet contract address.
- Dependency-free bech32 checksum verification for address validation.
- Unit tests for validation parity, the read path, and the write path.