Skip to content

Alien Goats - Trading in XLM Lumens, based on Alien Goat technology

Notifications You must be signed in to change notification settings

mallond/alien-goats

Repository files navigation

Initial Coin Release - Alien Goat

/**
 * SET KEYS
 * 
 * Why not put these keys in a config file? 
 * I want you to see the bare essentials, 
 * and that keys are part of this learning activity, 
 * to reinforce, the blockchain model of keys, 
 * both private and public. 
 * 
 * No need to muddle the details while learning. 
 */

Step 1 - Create Accounts

Acme Issuer Account LLC

> node src/account-create-testnet.js
Secret: SCXTST6BXZA6LEMSIPVF2TNBPCBKCHAVNY4MFJE47YJANJSPLA7COEBF
Public Key: GCNX7YXURGMFUXX7CSAIVJ7TVP6N7TKZY2YMJ52ERSL6MVJWDIQS4ZLV

Acme Product Distribution Company

> node src/account-create-testnet.js
Secret: SAEVHCYV4YHGH7FEN4MLIIEMM75CATLQGWMYSULRECD4S73I5XBPCOMZ
Public Key: GDNZ22AOET3O7JLQPBJMHKK6SQ3HLZQ7TRGUGJF2HITZPPW4TFZK7UI7

Investor #1

> node src/account-create-testnet.js
Secret: SCZQN4VLABVXSZ6AZT6YBFVGWQZZCYG6RJHQ7MZ5LMSEEI7TUXSLMKZW
Public Key: GC37N7GSLKMVPCVM77FMC7VYK3IRW4N6ZM52P6BUIVCOAPMJO7IMQP6J

Investor #2

> node src/account-create-testnet.js
Secret: SDN2XILQWX6XPY65D3O3K2ZKDO74K3AIYUS6Q64FD3LV6T3RZVQ65NI4
Public Key: GD2CSVLGY433V4YJXDOSZQL3E5NJ3HN3BSIZW3COPVTEF7NOCI4S7CVB

Investor #3

> node src/account-create-testnet.js
Secret: SBZYC5UNKDBV5TLNY67GVZHM7XQOOPYXQ4W3AR5GHLQ72F43W52QSOQE
Public Key: GB77JOVWMOR3OC2FBVXUYMC6TUHYNZTCYGXPF2DDWNRJDSNBLUPEWKYW

Step 2 - Create Alien Goat Coin and freeze future creation - limited Coin offering

Create Trust Link - From distribution to the issuer

node src/account-create-trust-testnet.js

Validate

Distributors Trust Line 

https://horizon-testnet.stellar.org/accounts/GDNZ22AOET3O7JLQPBJMHKK6SQ3HLZQ7TRGUGJF2HITZPPW4TFZK7UI7

...
"balances": [
  "balances": [
    {
      "balance": "1.0000000",
      "limit": "5000000000.0000000",
      "buying_liabilities": "0.0000000",
      "selling_liabilities": "0.0000000",
      "last_modified_ledger": 1388988,
      "is_authorized": true,
      "is_authorized_to_maintain_liabilities": true,
      "asset_type": "credit_alphanum12",
      "asset_code": "ALIENGOAT",
      "asset_issuer": "GCNX7YXURGMFUXX7CSAIVJ7TVP6N7TKZY2YMJ52ERSL6MVJWDIQS4ZLV"
    }
...    

Create The Coins - Issuer payment to Distributor

Create the Coins

> node src/account-create-payment-testnet.js

Verify

https://horizon-testnet.stellar.org/accounts/GDNZ22AOET3O7JLQPBJMHKK6SQ3HLZQ7TRGUGJF2HITZPPW4TFZK7UI7

...
    {
      "balance": "40000001.0000000",
      "limit": "5000000000.0000000",
      "buying_liabilities": "0.0000000",
      "selling_liabilities": "0.0000000",
      "last_modified_ledger": 1389307,
      "is_authorized": true,
      "is_authorized_to_maintain_liabilities": true,
      "asset_type": "credit_alphanum12",
      "asset_code": "ALIENGOAT",
      "asset_issuer": "GCNX7YXURGMFUXX7CSAIVJ7TVP6N7TKZY2YMJ52ERSL6MVJWDIQS4ZLV"
    }
...

Freeze any creation of future coins

Resources

Learning Vids by Luemenauts

About

Alien Goats - Trading in XLM Lumens, based on Alien Goat technology

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published