3.4 KiB
3.4 KiB
Manual Token Creation spec
- Authors: Will Ruddick willruddick@gmail.com (grassecon.org)
- Date: 2021.05.11
- Version: 2
- Status: Pre-draft
Rationale
Enabeling users to create their own tokens is one of the main goals of CICs. This spec goves of the token creation process
Intro
- Today users only receive Sarafu created by Grassroots Economics
- This means Users have very little ownership or feel the need to accept or back the token.
- We want users to be able to create their tokens to create more ownership and diffusion.
- A CIC primarliy represents the goods and services committed by the Issuer.
Sarafu Network – Sarafu and New Token Minting – User Flow:
- Users create a token issuance agreement (for Sarafu or their own token) (Sarafu Network Application)
- The token creation application is audited and signed by all parties (paper form)
- All users in the agreement dial the USSD code and setup an account (with 0 initial balance for new accounts). If they have existing tokens those will simply stay there in their account. *Note that Users with multiple tokens in their account should have an option to switch their active token to trade the other tokens. (see milti-token-env spec)
- GE creates the new token (or mints more Sarafu) and sends it to the users as per the agreement. Also changing their Active token to the new token if one was created.
- Initally conversion between tokens will not be allowed (see conversion below)
Inputs
- Signed Membership Application
- if not Sarafu
- Accounts (walllet address) of all users in membership application
- Token Long Name - 128 character limit
- Token short name no more than 6 Character - must be unique
- A maximum supply should be set to the token supply.
- Demurrage set to accumulate to 2% a month
- Token Supply to be minted
- All blockchain wallet addresses in application
Token creation process - Backend Command line and In-Person process
- Ensure TOKEN_Name is unique
- Create / mint the token supply
- sarafu-token-deploy
- eth-token-index-add
- eth-address-declarator-add
- to discover the contract addresses on the network you use:
- eth-contract-registry-list
- Put the TOKEN_NAME tokens into the Users wallet (as per agreement)
- All members in the agreement should have their active token set to TOKEN_NAME
Token creation Interface - UX
Command Line - CLI
- Process Inputs on command line
- Confirmation please type the token name to proceed
- Ability to send specific ammounts of the token to addresses in the agreement (csv)
CIC Mgmt Platform - GUI
- On a user account there should be a button for Create Token - - this required super admin privlages
- The next page comes up with the inputs above
- Confirmation please type the token name to proceed
Testing
- Ensure conversions are working between tokens when liquidity pools exist and not when they dont
- Test out auto-conversion - one user gets sent a foreign token ... try to convert