Skip to content

Commit

Permalink
Update sns config to support logo (#1233)
Browse files Browse the repository at this point in the history
# Motivation
The SNS config now supports logos.

# Changes
- Bump the IC_COMMIT to the latest published version
- Add a toy logo
- Update the sample `sns_init.yml` to use the logo
  • Loading branch information
bitdivine authored Aug 10, 2022
1 parent eb001e5 commit 79e929f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 139 deletions.
2 changes: 1 addition & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"config": {
"RUSTC_VERSION": "1.58.1",
"IC_CDK_OPTIMIZER_VERSION": "0.3.1",
"IC_COMMIT": "54a57a1f6f1ed99e66d6cde3100a0565e826385f"
"IC_COMMIT": "3982db093a87e90cbe0595877a4110e4f37ac740"
},
"packtool": ""
}
Expand Down
11 changes: 11 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
182 changes: 44 additions & 138 deletions sns_init.yml
Original file line number Diff line number Diff line change
@@ -1,144 +1,50 @@
---
# 100000000 e8s = 1 token.
#
# Fee of a transaction.
# Default value = 10000
#
transaction_fee_e8s: 10000
#
# The name of the token issued by an SNS Ledger.
# This field has no default, a value must be provided by the user.
# Must be a string length between 4 and 255 characters
#
# Example: InternetComputerProtocol
#
token_name: "ServiceNervousSystem-Testnet"
#
# The symbol of the token issued by an SNS Ledger.
# This field has no default, a value must be provided by the user.
# Must be a string length between 3 and 10 characters
#
# Example: ICP
#
#
token_symbol: "SNST"
#
# Cost of making a proposal that is not adopted.
# Default value = 100000000
#
proposal_reject_cost_e8s: 100000000
#
# The minimum amount a neuron needs to have staked.
# Default value = 100000000
#
neuron_minimum_stake_e8s: 100000000
#
# This field has no default, a value must be provided by the user.
# Amount targeted by the swap, if the amount is reached the swap is triggered.
# Must be at least min_participants * min_participant_icp_e8.
#
max_icp_e8s: 500000000
#
# This field has no default, a value must be provided by the user.
# The minimum number of participants for the swap to take place. Must be greater than zero.
#
min_participants: 1
#
# The minimum amount of ICP that each buyer must contribute to participate in the swap.
# Default value = 1
#
min_participant_icp_e8s: 100000000
#
# This field has no default, a value must be provided by the user.
# The maximum amount of ICP that each buyer can contribute. Must be greater than
# or equal to `min_participant_icp_e8s` and less than or equal to
# `max_icp_e8s`. Can effectively be disabled by setting it to `max_icp_e8s`.
#
max_participant_icp_e8s: 100000000
#
# This field has no default, a value must be provided by the user.
# The minimum amount of ICP that is required for this token swap to take
# place. This amount divided by the amount of SNS tokens for swap gives the
# seller's reserve price for the swap, i.e., the minimum number of ICP per SNS
# tokens that the seller of SNS tokens is willing to accept. If this amount is
# not achieved, the swap will be aborted (instead of committed) when the due
# date/time occurs. Must be smaller than or equal to `max_icp_e8s`.
#
min_icp_e8s: 100000000
#
# If the swap fails, control of the dapp canister(s) will be set to these
# principal IDs. In most use-cases, this would be the same as the original set
# of controller(s). Must not be empty.
#
fallback_controller_principal_ids: [hpikg-6exdt-jn33w-ndty3-fc7jc-tl2lr-buih3-cs3y7-tftkp-sfp62-gqe]
#
# This field sets the initial token distribution. Initially, there is only support for
# the FractionalDeveloperVotingPower strategy. The FractionalDeveloperVotingPower token
# distribution strategy configures how tokens and neurons are distributed via four
# "buckets": developers, treasury, swap, and airdrops. This strategy will distribute
# all developer tokens at genesis in restricted neurons with an additional voting power
# multiplier applied. This voting power multiplier is calculated as
# `swap_distribution.initial_swap_amount_e8s / swap_distribution.total_e8s`.
# As more of the swap funds are swapped in future rounds, the voting power
# multiplier will approach 1.0. The following preconditions must be met for
# it to be a valid distribution:
# - developer_distribution.developer_neurons.stake_e8s.sum <= u64:MAX
# - developer_neurons.developer_neurons.stake_e8s.sum <= swap_distribution.total_e8s
# - airdrop_distribution.airdrop_neurons.stake_e8s.sum <= u64:MAX
# - swap_distribution.initial_swap_amount_e8s > 0
# - swap_distribution.initial_swap_amount_e8s <= swap_distribution.total_e8s
# - swap_distribution.total_e8s >= developer_distribution.developer_neurons.stake_e8s.sum
#
# - developer_distribution has one field:
# - developer_neurons: A list of NeuronDistributions that specifiy the neuron's stake and
# controlling principal. These neurons will be available at genesis in PreInitializationSwap
# mode. The voting power mutlipler will be applied to these neurons.
#
# - treasury_distribution has one field:
# - total_e8s: The total amount of tokens in the treasury bucket.
#
# - swap_distribution has two fields:
# - total_e8s: The total amount of tokens in the swap bucket. initial_swap_amount_e8s will be
# deducted from this total.
# - initial_swap_amount_e8s: The initial amount of tokens deposited in the swap canister for
# the initial token swap.
#
# - aidrop_distribution has one field:
# - airdrop_neurons: A list of NeuronDistributions that specifiy the neuron's stake and
# controlling principal. These neurons will be available at genesis in PreInitializationSwap
# mode. No voting power mutlipler will be applied to these neurons.
#
# Example:
# initial_token_distribution:
# FractionalDeveloperVotingPower:
# developer_distribution:
# developer_neurons:
# - controller: x4vjn-rrapj-c2kqe-a6m2b-7pzdl-ntmc4-riutz-5bylw-2q2bh-ds5h2-lae
# stake_e8s: 1500000000
# - controller: fod6j-klqsi-ljm4t-7v54x-2wd6s-6yduy-spdkk-d2vd4-iet7k-nakfi-qqe
# stake_e8s: 1500000000
# treasury_distribution:
# total_e8s: 5000000000
# swap_distribution:
# total_e8s: 6000000000
# initial_swap_amount_e8s: 3000000000
# airdrop_distribution:
# airdrop_neurons:
# - controller: fod6j-klqsi-ljm4t-7v54x-2wd6s-6yduy-spdkk-d2vd4-iet7k-nakfi-qqe
# stake_e8s: 500000000
#
description: 'We''ve been making video game games since 2006, we''re based in Toronto,
Canada and launched in December 2011. And we''ve had our first video game show on
the internet in 2012, but didn''t quite have the excitement of The Sims.
It''s been a rough few years for us. We''ve been in competition on ICDevs for video
game development for two years now and now, with some help from Valve, we''re starting
a campaign for a new game you just can''t get by with your first purchase. All of
which means we are back at it… which means we''re not talking about ICDevs!
We are looking forward to the next step in our journey as we push to bring you more
exclusive new games and content.
The New Year of ICDevs
As always, we are so proud to announce that we''re not talking about ICDevs anymore,
because we have to, we want to give you a great surprise. With all the momentum
we''ve gathered and all these people behind us, we have to make sure we take care
off ICDevs as a way to fund more games, more content, and more people.
Unfortunately, you didn''t know. On the ICDevs website, there is an email'
fallback_controller_principal_ids:
- hpikg-6exdt-jn33w-ndty3-fc7jc-tl2lr-buih3-cs3y7-tftkp-sfp62-gqe
initial_token_distribution:
FractionalDeveloperVotingPower:
airdrop_distribution:
airdrop_neurons:
- controller: w3i5o-5ylvd-cmm42-pw66i-n6qcw-fw3q7-kk5la-4edui-ozozq-5qq3j-dae
stake_e8s: 100000000
developer_distribution:
developer_neurons:
- controller: dktcs-d43lz-rosn2-wnwsj-kef34-6kl3i-ux7qb-ka6xr-biref-ykeaj-sqe
stake_e8s: 100000000
treasury_distribution:
total_e8s: 1000000000
- controller: dktcs-d43lz-rosn2-wnwsj-kef34-6kl3i-ux7qb-ka6xr-biref-ykeaj-sqe
stake_e8s: 100000000
swap_distribution:
total_e8s: 1000000000
initial_swap_amount_e8s: 200000000
airdrop_distribution:
airdrop_neurons:
- controller: w3i5o-5ylvd-cmm42-pw66i-n6qcw-fw3q7-kk5la-4edui-ozozq-5qq3j-dae
stake_e8s: 100000000
total_e8s: 1000000000
treasury_distribution:
total_e8s: 1000000000
logo: logo.svg
max_icp_e8s: 5000000000
max_participant_icp_e8s: 5000000000
min_icp_e8s: 100000000
min_participant_icp_e8s: 100000000
min_participants: 1
name: Some Long Name
neuron_minimum_stake_e8s: 1000000
proposal_reject_cost_e8s: 100000000
token_name: Logo test
token_symbol: WOWZER
transaction_fee_e8s: 10000
url: https://nns.ic0.app

0 comments on commit 79e929f

Please sign in to comment.