Skip to content

colorfulnotion/mythos-airdrops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mythos Airdrop v4

See Mythos dashboard for background and Mythos Airdrop v4 (DRAFT) for the latest version under consideration, which combines Data Sources from Colorful Notion and Parity Data.

Airdrop execution

The basic strategy for airdrop is to use a 2/3 multisig (see Polkadot Wiki for background on multisigs) using these 3 scripts:

  • airdrop-generateBatches.js - Maps active+inactive addresses into the raw call data in the 643 directory in 14 groups, where the filename contains the call hash.
  • airdrop-asMulti.js - For all the files in the 643 directory, uses the "asMulti" to submit the batch (if production=true)
  • airdrop-approveAsMulti.js - For all the files in the 643 directory, uses the "approveAsMulti" to approve the batch (if production=true)

The 643 directory has both active addresses + inactive addresses making up 1245 batches, in 14 groups. The latter 2 scripts take a group input, e.g. "b1" through "b15"

  1. Generate 1245 batches of approximately 382 addresses per batch, put them in a 643 directory, organized in 14 groups of around 750K MYTH each.
# node airdrop-generateBatches.js > airdrop-generateBatches.log
# grep GROUP airdrop-generateBatches.log
GROUP 1: 748960 MYTH to 59365 addresses
GROUP 2: 748960 MYTH to 59365 addresses
GROUP 3: 748960 MYTH to 59365 addresses
GROUP 4: 748960 MYTH to 59365 addresses
GROUP 5: 748960 MYTH to 59365 addresses
GROUP 6: 750003 MYTH to 57067 addresses
GROUP 7: 751020 MYTH to 42513 addresses
GROUP 8: 748650 MYTH to 40215 addresses
GROUP 9: 747060 MYTH to 18767 addresses
GROUP 10: 727639 MYTH to 13405 addresses
GROUP 11: 675561 MYTH to 4979 addresses
GROUP 12: 509178 MYTH to 1532 addresses
GROUP 13: 750282 MYTH to 766 addresses
GROUP 14: 708957 MYTH to 612 addresses
  1. The FIRST entity in a 2/3 multisig will submit the batches with asMulti.
node airdrop-asMulti.js b1
...
node airdrop-asMulti.js b14
  1. A SECOND entity in the same multisig will approve the same multisig with approveAsMulti
node airdrop-approveAsMulti.js b1
...
node airdrop-approveAsMulti.js b14

Other scripts include:

  • airdrop-check.js, a script to check ED+MYTH balances of addresses in the batches generated, and outputs which addresses do NOT have (a) any DOT, and likely need .01 DOT (to send with airdrop-sendED.js) (b) MYTH to be checked manually.
  • airdrop-sendED.js, a script to send .01 DOT ED to addresses that do not have the minimal amount of DOT.

The majority of eligible addresses already have 0.01 DOT so this will not show many hits.

The above scripts are in both the "production" and "test" and "testnet" directory. The difference is that the "production" directory has the full airdrop whereas the "test" and "testnet" directory is for training (practicing running scripts)+ testing (with DED/Asset 30) purposes only.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published