dfinity / snsdemo

Developer focused SNS deployment demo
15 stars 6 forks source link

Diverse demo snses #370

Closed mstrasinskis closed 3 months ago

mstrasinskis commented 3 months ago

Motivation

Currently, all the demo projects have very similar hash-like names and share the same logo. This makes testing and presenting on the nns-dapp feel unrealistic. This PR addresses this issue by providing more diverse demo project names and using different logos for each one.

Note: This approach has a limitation of 2600 demo Snses because:

Changes

Test

Manually

Test responses:

./bin/dfx-sns-config-random
Error: --config_index is required

./bin/dfx-sns-config-random --config_index 0
Created an SNS: ALF
name: "Alfa Centauri"
logo: logos/A.png

./bin/dfx-sns-config-random --config_index 1
Created an SNS: BRV
name: "Bravo"
logo: logos/B.png

./bin/dfx-sns-config-random --config_index 100
Created an SNS: WKEY3
name: "Whiskey3"
logo: logos/W.png

./bin/dfx-sns-config-random --config_index 2599
Created an SNS: ZUL99
name: "Zululu99"
logo: logos/Z.png

# Beyond the limit (token symbol length > 5)
./bin/dfx-sns-config-random --config_index 2600
Created an SNS: ALF100
name: "Alfa Centauri"
logo: logos/A.png

Screenshots

image image