Implement address parsing from TXT record #96

Open
opened 2024-06-18 07:03:39 +00:00 by fyrchik · 1 comment
Owner

We have multiple places where we parse NNS records:

It would be beneficial to have this wrapper in a single place (as well as the opposite converter).
We add this to the rpcclient/ package, together with the autogenerated code, but in a different file.

func ParseHash(string) (util.Uint160, error)
func ResolveHash(ContractReader) (util.Uint160, error)

Also, see #91.

We have multiple places where we parse NNS records: - https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/src/commit/1a5886e776de79fc6598838242e4dc7ff21e7bea/ns/nns.go#L151 - https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/morph/client/nns.go#L161 - https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/cmd/frostfs-adm/internal/modules/morph/helper/initialize.go#L123 It would be beneficial to have this wrapper in a single place (as well as the opposite converter). We add this to the `rpcclient/` package, together with the autogenerated code, but in a different file. ``` func ParseHash(string) (util.Uint160, error) func ResolveHash(ContractReader) (util.Uint160, error) ``` Also, see https://git.frostfs.info/TrueCloudLab/frostfs-contract/issues/91.
Author
Owner

Also, see #93

Also, see #93
fyrchik added this to the v0.20.0 milestone 2024-08-19 08:55:12 +00:00
fyrchik added the
internal
label 2024-08-19 08:55:56 +00:00
fyrchik modified the milestone from v0.20.0 to v0.21.0 2024-09-30 09:39:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-contract#96
No description provided.