TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.04k stars 194 forks source link

chifra names - can we provide "aliases"? #3782

Closed tjayrush closed 4 days ago

tjayrush commented 3 weeks ago

Users should be able to query by name (for example TrueBlocks-Wallet) of names that they've aliased. So chifra names --alias MyThing 0x12 and then be able to use MyThing everywhere an address is used.

Perhaps this is related to the --names capabilities issue.

Isn't this the same thing as just naming addresses?

No -- the --names capability means that when a address appears, its name is displayed as well.

In this case, the user can use the alias to represent the address on the command line:

chifra export MyAliasForTrueBlocks

is the same as

chifra export trueblocks.eth

is the same as

chifra export 0xf503017d7baf7fbc0fff7492b751025c6a78179b
tjayrush commented 3 weeks ago

This may not be as hard as it seems. Every time we process a command line that has addresses in it, we call ResolveEns. We can rename that to ResolveAliases and extend that single function to read the names database looking for aliases.

tjayrush commented 4 days ago

Not worth it. No-one has asked for it.