Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 5.71 KB

SALE_CONFIG.md

File metadata and controls

82 lines (58 loc) · 5.71 KB

Configuring the Sale Index JSON

Before your sale will show up in the Tokensoft interface, we'll need some details about your team, a couple of logos, social media links, and at least one document--a purchase agreement--added to our sale index. At a high level, this will require you to perform a handful of steps:

  1. Fork this repo - Fork a copy of the tokensoft/launchlists repository
  2. Edit the JSON - Edit the prod/sales_index.json file (for production) or staging/sales_index.json file (for staging) to add your sale configuration
  3. Commit your changes - Committing your edits to your fork of the repository
  4. Open a PR - Opening a pull request (PR) against the tokensoft/launchlists repository with your changes
  5. Ping the Team - Receiving merge approval from the Tokensoft team

Forking this repository

  1. Make sure you're on Tokensoft's launchlist repository by navigating to tokensoft/launchlists
  2. Click the fork button in the top right corner of the screen:

fork button

When this process is complete, you should get navigated to your personal copy of this repository. The URL for this copy will roughly follow the style https://github.com/<YOUR_GITHUB_USERNAME>/launchlists

Edit the Sales Index JSON

  1. Figure out which file you need to edit:
  2. Edit the file. This can be done through the Github interface by navigating to the proper file in Github and clicking the pencil icon. Alternatively, you can clone the repository locally using Git, but instructions on doing so are outside the scope of this document.
  3. Add a new sale segment to the JSON file. An example structure that you can copy and paste in, with changes, is below:
  {
      "chainId": 1,
      "saleManagerAddress": "0xb2a2934de53c1dd6c330ee1db8ccb138a64837db",
      "saleId": "<SALE_ID_FROM_SETUP>",
      "saleName": "<SALE_NAME>",
      "logo": "<HTTPS_URL_TO_PNG>",
      "favicon": "<HTTPS_URL_TO_PNG>",
      "projectWebsite": "<YOUR_HTTPS_URL>",
      "saleDescription": "<SALE_DESCRIPTION>",
      "access": {
        "limitToRegions": ["US","AL","DZ","AD","AO","AI","AG","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CV","KY","CF","TD","CL","CO","KM","CD","CG","CR","CI","HR","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FO","FJ","FI","FR","PF","GA","GM","GE","DE","GH","GI","GR","GD","GT","GG","GN","GW","GY","HT","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MV","ML","MT","MH","MR","MU","MX","MY","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","PR","QA","RO","RU","RW","KN","LC","MF","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","ES","LK","SR","SZ","SE","CH","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TC","TV","UG","AE","GB","UY","UZ","VU","VE","VN","EH","YE","ZM","ZW","SD","CA","SS","UA"]
      },
      "socials": {
        "twitter": "https://twitter.com/<TWITTER_HANDLE>",
        "discord": "https://discord.gg/<DISCORD_LINK>",
        "telegram": "https://t.me/<TELEGRAM_SLUG>"
      },
      "documents": [
        {
          "name": "Purchase Agreement",
          "uri": "https://example.com/qtz.pdf",
          "appendSignaturePageUri": "s3://job-queue-data/safts/annex.pdf"
        }
      ]
  },

Please edit the snippets that contain <> to update with your data. The saleId will be copyable from the sale maangement screen in the Tokensoft platform. Use the copy icon to the right of the Sale ID hash to copy it to your clipboard:

Screen Shot 2022-05-04 at 15 35 38

Save and commit your file to your main branch

  1. Enter a descriptive title and some contact information into the commit screen:

Screen Shot 2022-05-04 at 15 13 24

  1. Commit the changes to your main branch

Open a Pull Request for inclusion in the Tokensoft Repository

  1. Navigate to your personal repository and fetch the upstream changes using the "Fetch and Merge" button:

Screen Shot 2022-05-04 at 15 17 38

  1. Then open a pull request to request inclusion in the sale index:

Screen Shot 2022-05-04 at 15 18 20

Connect with us!

Now that the pull request is open, a developer from our team will review the formatting, ensure that it will work as expected. If there are any issues, we will reach out and work through those with you. When everything looks good, we'll merge it, and your sale will show up on the site!