ChainMovers / suibase

Sui development environment and cookbook.
https://suibase.io
Apache License 2.0
35 stars 6 forks source link

Integrate address "alias" feature #88

Open mario4tier opened 6 months ago

mario4tier commented 6 months ago

Use Mysten Labs address alias file to refactor the DNS-Like feature of Suibase.

Also support alias for all Suibase commands. As an example: "localnet faucet myalias" to add coins to "myalias" address.

===

Related PR: https://github.com/MystenLabs/sui/pull/13738 https://github.com/MystenLabs/sui/pull/15162 https://github.com/MystenLabs/sui/pull/15172

The filename is sui.aliases co-located with the client.yaml

mario4tier commented 6 months ago

Suibase renames only its own generated addresses. It never touches user defined aliases.

Name convention is documented in the Helper docs: https://chainmovers.github.io/suibase-api-docs/suibase/struct.Helper.html#method.client_sui_address

Example: image