From 6f591b028014ef91dfd0468f16690fa73fa291ec Mon Sep 17 00:00:00 2001 From: Brandon Fancher Date: Mon, 18 Oct 2021 13:06:56 -0400 Subject: [PATCH] Generalize genesis induction scripts for all inductions. --- scripts/genesis_accounts_long_list | 104 +++++++++--------- .../{genesis_donate.sh => induct_donate.sh} | 8 +- scripts/induct_endorse.sh | 40 +++++++ scripts/induct_invite.sh | 26 +++++ ...{genesis_profiles.sh => induct_profile.sh} | 6 +- scripts/induct_video.sh | 23 ++++ 6 files changed, 150 insertions(+), 57 deletions(-) rename scripts/{genesis_donate.sh => induct_donate.sh} (83%) create mode 100755 scripts/induct_endorse.sh create mode 100755 scripts/induct_invite.sh rename scripts/{genesis_profiles.sh => induct_profile.sh} (95%) create mode 100755 scripts/induct_video.sh diff --git a/scripts/genesis_accounts_long_list b/scripts/genesis_accounts_long_list index 52bb87cec..e94ccb5a4 100644 --- a/scripts/genesis_accounts_long_list +++ b/scripts/genesis_accounts_long_list @@ -12,55 +12,55 @@ edenmember23,11,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Teegan,McClain edenmember24,12,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Prisha,Cupp edenmember25,13,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Kamil,Aguirre edenmember31,14,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Hania,Owens -edenmember32,15,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Clay,Howells -edenmember33,16,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Ace,Schmitt -edenmember34,17,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Abel,Dejesus -edenmember35,18,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Muskaan,Mac -edenmember41,19,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Junaid,Liu -edenmember42,20,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Mathew,Chavez -edenmember43,21,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Aaliya,Browning -edenmember44,22,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Neo,Bate -test111.edev,23,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Woodrow,Haines -test112.edev,24,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Ricardo,English -test113.edev,25,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Maegan,Grey -test114.edev,26,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Kailum,Ashley -test115.edev,27,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Aaron,Ramsey -test121.edev,28,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Jarrod,Kaye -test122.edev,29,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Isis,Squires -test123.edev,30,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Yash,Wilks -test124.edev,31,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Lea,McKee -test125.edev,32,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Oran,Beard -test131.edev,33,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Lamar,Garcia -test132.edev,34,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Elspeth,Byers -test133.edev,35,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Lowri,Lancaster -test134.edev,36,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Cheyanne,McDermott -test135.edev,37,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Marc,Kumar -test141.edev,38,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Rikesh,Morgan -test142.edev,39,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Harold,Skinner -test143.edev,40,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Tymoteusz,Crowther -test144.edev,41,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Ayisha,Thompson -test145.edev,42,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Aleesha,Crane -test151.edev,43,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Ceara,Roberts -test152.edev,44,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Lilly-Grace,Moore -test153.edev,45,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Calvin,Schroeder -test154.edev,46,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Fern,Strong -test155.edev,47,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Marlie,Espinosa -test211.edev,48,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Sommer,Pearson -test212.edev,49,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Sherri,Brewer -test213.edev,50,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Farhaan,Baird -test214.edev,51,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Beulah,Lambert -test215.edev,52,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Connagh,Weiss -test221.edev,53,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Lyle,Charlton -test222.edev,54,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Chanel,Busby -test223.edev,55,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Ffion,McFadden -test224.edev,56,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Aneesa,Rush -test225.edev,57,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Ivie,Derrick -test231.edev,58,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Bartlomiej,Sutherland -test232.edev,59,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Riaan,Baldwin -test233.edev,60,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Mariyah,Ward -test234.edev,61,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Irfan,Slater -test241.edev,62,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Jaeden,Irwin -test242.edev,63,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Clement,Harding -test243.edev,64,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Jai,Pitt -test244.edev,65,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Tate,Connor -test245.edev,66,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Matt,McClellan \ No newline at end of file +edenmember32,15,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Clay,Howells,c82c21ec88a45e2b48f834194b3c4dd2cd09ea92edb823a8b427f5bc30b5b65a +edenmember33,16,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Ace,Schmitt,5e399d44cfa2b34e7abf747411d6e497dbd0c257b07dc3ed2c0daf67942bc1b6 +edenmember34,17,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Abel,Dejesus,eb55bd55c2c8920f5137e701a1ef12c376eec1b534643a977e0a10e9d70a0549 +edenmember35,18,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Muskaan,Mac,6ff16438678b404c8c19bfb39ac447f48c6ec53a318eb4a53beef7e40b8d9757 +edenmember41,19,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Junaid,Liu,2cb51160972461a57cea63a47e3d19278dd6d02f870128137f996275118597c0 +edenmember42,20,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Mathew,Chavez,eb5cfad60ba6979f47a217fd96e58892b27fe67b7990c3564f3794610d310c9a +edenmember43,21,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Aaliya,Browning,0167a30a11da2a0150b0d909ca17dd979de348a54b592ff346e9120d2332cc08 +edenmember44,22,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Neo,Bate,00ea36377ea11e3cc94385c8162c2e38bd34e299b7e6419143a3ad4225084d29 +test111.edev,23,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Woodrow,Haines,f4cdd9622d95a5e011828dfca3e2f571f68d7cc6ebfbcc469a29abdc78ca43cd +test112.edev,24,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Ricardo,English,35876755955453beff146c6a7aa03ae14b6c5d90e1c02b02d8d0a18c67428c9d +test113.edev,25,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Maegan,Grey,8f962732282b372f3ead0fde389789136383617637e6ef8a5ef51b40a8b1cf78 +test114.edev,26,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Kailum,Ashley,49e272a19dc688a49041f96507cb6daf9330e0f0da74462b64c841a7a1ea83d3 +test115.edev,27,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Aaron,Ramsey,fa01da23ba42c749ddb9fb454c01d10d0e6c5cb015c1a1aca45b3cc8ed322598 +test121.edev,28,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Jarrod,Kaye,db493501dc68ec028a57e89ff263f2c38fc89153364c0024d8b5244fa8ec9dc9 +test122.edev,29,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Isis,Squires,f7c5f1b2889d575309f97fe17bdbb345218e584dfb2623bea5ea10ad6d7b44f3 +test123.edev,30,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Yash,Wilks,741d90281bc1c242c65c0b744489c1b4c7b68f3920dc3378c51f1fe997cfb27a +test124.edev,31,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Lea,McKee,bf7884419f874b4de49521961322232976ed1873af9ba1a245a080fc02ab63cd +test125.edev,32,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Oran,Beard,ba6c08f300aa027e47a3211b7069011165ae1cd9aea1495bf433b3ae83e050f5 +test131.edev,33,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Lamar,Garcia,c06c2bdac1032124d33718230f779ccb9a8052d940a715f983cebf04aa0d5fa3 +test132.edev,34,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Elspeth,Byers,14d2d939705e02be9b921a6057e157d6db89c47077446b27e0d6f4de933d7391 +test133.edev,35,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Lowri,Lancaster,87b4063efc799457fee7258ca683e8683a1b72117e7ee28e2da11af14eead758 +test134.edev,36,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Cheyanne,McDermott,c4ea5ebac5217a6fc89dc749fa88a80fbdc9742509cfd376b29e0e6f27de4ed4 +test135.edev,37,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Marc,Kumar,41001e40282a25544f28587cc6376770227294986dc14d5a8439b411c6f5ab01 +test141.edev,38,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Rikesh,Morgan,85944615e1c943542d3072748c250f8881ebafaad6c3b2dba13ec80e7136be8d +test142.edev,39,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Harold,Skinner,b167e2bce60133555063a70470135cbd02cc6c594d01f389c7ae27e7b01a4822 +test143.edev,40,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Tymoteusz,Crowther,28c629565f7a822a2ed978a2cda910575b3a02c9d1beb057a2ddafa9df276f93 +test144.edev,41,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Ayisha,Thompson,75d19a1fc811bdbb353951cf92af01006ec7c80c0557af5cee200c60b384886e +test145.edev,42,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Aleesha,Crane,d7faf4b4da3ab448d61c85a2f06a2f3298a16250405034d790f9ca4c29bd7115 +test151.edev,43,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Ceara,Roberts,75f68a464863b640d23ce35edb939a3946fb184e3adcb1282258be2f21736555 +test152.edev,44,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Lilly-Grace,Moore,f2b72876cd08263245ec5ed9bcbcc559e5219269e3939f56bd2d4595bcfe9ae7 +test153.edev,45,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Calvin,Schroeder,b917b91db9a05262641ad2c580a4ceaff4484fc8f597961eb312a75ce22975cf +test154.edev,46,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Fern,Strong,58bbf4b7577187c6352d4dd1a3971384b75d07fdf91f36bf07de9fe86b36268e +test155.edev,47,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Marlie,Espinosa,a7cd5fc59df947e87a1bdc4c9b9eb5a393ae82a0fb5e45d44556fd19bc5edd28 +test211.edev,48,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Sommer,Pearson,f5276d51725c3f8cc60874d89f8cf7ca731507fd8e3015b4e9533c8222341aa8 +test212.edev,49,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Sherri,Brewer,e47556082761cab2dd356cd01d86c76d2367348bcf597114d7502371f7bf7e95 +test213.edev,50,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Farhaan,Baird,8907dc6c8dccbd7064bfd6f832b8068a768d02633ae278f14e0a8d1214877553 +test214.edev,51,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Beulah,Lambert,05fb6c45cdc79812cce7e745c1d2acd873ebdf7bb915f3600a22dc695c1c2917 +test215.edev,52,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Connagh,Weiss,46f9245a3d33bcb21a2a7e01d3ece4233ec46b40b551eeb2ae62724054cd4107 +test221.edev,53,Qme6oasyhdYbyigJxeDLVFpDaaoxQnnUfCLgs9RJWPkT5t,Lyle,Charlton,4d77686cd51f678d796a4e4ef6b7343ba7fab34dc07028abc6e4b78ac4bb6837 +test222.edev,54,Qmf53PeWmCCt6mEexbYykWcxEcq6u43KvDtsPnppMmyr6C,Chanel,Busby,f50cc399969ada2d84b591a59705d370bae64c0537f4cc0e9b4e4a2629f987fd +test223.edev,55,QmYv3HiVBuWXYbaDQeMRa95Xw9JoDstj5eKZwZoP2NaiZ7,Ffion,McFadden,9bfb0c5002701d262700491042c1033d7ab28c43ae8bb4e80c5c6457078b3297 +test224.edev,56,QmQLF2iN7MUAMxquShSCPVW6Lc9fxDZjC6vmq66u8Xib7p,Aneesa,Rush,3877c22eabfbc91b64190344283b09bf4fadd4f167624b587b8972c10df4b578 +test225.edev,57,QmdkqYsjYx1Sy99a5X57GW33Xw2j3xrdTQYQq4YzqtwXSX,Ivie,Derrick,200d6f04c6ed6a6fe56b4a185a9ca40cb9ded06a01c05515c353c23b8024d06a +test231.edev,58,Qme9YEhFAuHEPFdmK2sMgRtLQFo5GnzK3GaMCnUqSDjvkB,Bartlomiej,Sutherland,2578b50b06c02221b34e3af7eb631322b3a8609763a421db8a16bfcb4557e72e +test232.edev,59,QmQB2tSJL14YuJbdvpEgoop7oTsxqXP8MP2Z8JLArChDhy,Riaan,Baldwin,14450a3c55932ee3f3a297b2fa908ce3ce5849afc74e20b5dd80c00857f25ce0 +test233.edev,60,QmSnD3t63agCSB1s1fVL43MbGDdHGfNatNYhkCKTnLo5hX,Mariyah,Ward,57bb4d7d8ca5543a6570761b1de72f5de4955091168bcc8702c038c76f172b2e +test234.edev,61,Qmf1obHGGUieey6nHf1bsfmC2nyX4vjFyi8Bwdw7e1cGj3,Irfan,Slater,72d5f63f0013b096792951b688c730b0476b7b8ed030900afc7b4aadad71a9b7 +test241.edev,62,QmNgzNP7amkvTP7c1fVjiSKXzAgCjpHbbgmzfAE6XY3V1s,Jaeden,Irwin,8828cc644e1f9e58bb51a905e8bc5c6534d1a3d0a2208a19e5120a0bbf18800e +test242.edev,63,QmWpH7t41TmVUVgJee6RB9h1DSvXHRwK47y9jkxJZA8m7C,Clement,Harding,28cb5ff206d230536eb358021a6aa2cf55ad28d2182792c7f27897b27ce31f50 +test243.edev,64,QmXXXTd5tjEnAsicKsfet6pxXiFPCzhnh4KcS3Yr8MdRAD,Jai,Pitt,8943543d28b03311e8a28548d3794707987298842a9cce4cd8d655d77b7a5b10 +test244.edev,65,QmetpJKiZj8oVvn4p88o9opRjZaQd8H9YwAknBopPnj5HW,Tate,Connor,217154c3266ec131e4f707bd2b0965798c768a02ba4f9eff6fbb956f9f88f4fb +test245.edev,66,QmSz21mHzEx61fdvuuc2eLbn5fnjo9YPs8PBm4vudcwnYL,Matt,McClellan,dff15a08f1bb85e551bbd8602b62cb9c597189550eecccbd5b7ab5486a8c4f83 \ No newline at end of file diff --git a/scripts/genesis_donate.sh b/scripts/induct_donate.sh similarity index 83% rename from scripts/genesis_donate.sh rename to scripts/induct_donate.sh index 5721cc291..f173553ba 100755 --- a/scripts/genesis_donate.sh +++ b/scripts/induct_donate.sh @@ -1,8 +1,9 @@ #!/usr/bin/env sh set -xe -CLEOS="cleos -u https://waxtest.eosn.io" -CONTRACT="test2.edev" +CLEOS="cleos -u http://testnet.wax.eosdetroit.io" +CONTRACT="test.edev" +ADD_TO_ID=100 for PARMS in $(cat ./genesis_accounts_long_list); do ACCOUNT_NAME=$(echo $PARMS | cut -d "," -f1); @@ -11,7 +12,7 @@ for PARMS in $(cat ./genesis_accounts_long_list); do QUANTITY="10.00000000 WAX" PAYER=$ACCOUNT_NAME - ID=$INDUCTION_ID + ID=$((INDUCTION_ID+ADD_TO_ID)) TRANSFER_ACTION_DATA="{ \"from\": \"$PAYER\", @@ -27,6 +28,7 @@ for PARMS in $(cat ./genesis_accounts_long_list); do }" $CLEOS push action eosio.token transfer "$TRANSFER_ACTION_DATA" -p $PAYER@active + sleep 1 $CLEOS push action $CONTRACT inductdonate "$DONATE_ACTION_DATA" -p $PAYER@active done; diff --git a/scripts/induct_endorse.sh b/scripts/induct_endorse.sh new file mode 100755 index 000000000..1151b2475 --- /dev/null +++ b/scripts/induct_endorse.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env sh +set -xe + +CLEOS="cleos -u https://waxtest.eosn.io" +CONTRACT="test.edev" +INVITER="edenmember11" +WITNESS1="edenmember12" +WITNESS2="edenmember13" +ADD_TO_ID=100 + +for PARMS in $(cat ./genesis_accounts_long_list); do + INDUCTION_ID=$(echo $PARMS | cut -d "," -f2); + ID=$((INDUCTION_ID+ADD_TO_ID)) + HASH=$(echo $PARMS | cut -d "," -f6); + + INVITER_ACTION_DATA="{ + \"account\": \"$INVITER\", + \"id\": $ID, + \"induction_data_hash\": \"$HASH\", + }" + + $CLEOS push action $CONTRACT inductendors "$INVITER_ACTION_DATA" -p "$INVITER@active" + + WITNESS1_ACTION_DATA="{ + \"account\": \"$WITNESS1\", + \"id\": $ID, + \"induction_data_hash\": \"$HASH\", + }" + + $CLEOS push action $CONTRACT inductendors "$WITNESS1_ACTION_DATA" -p "$WITNESS1@active" + + WITNESS2_ACTION_DATA="{ + \"account\": \"$WITNESS2\", + \"id\": $ID, + \"induction_data_hash\": \"$HASH\", + }" + + $CLEOS push action $CONTRACT inductendors "$WITNESS2_ACTION_DATA" -p "$WITNESS2@active" + +done; diff --git a/scripts/induct_invite.sh b/scripts/induct_invite.sh new file mode 100755 index 000000000..33e0bbece --- /dev/null +++ b/scripts/induct_invite.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env sh +set -xe + +CLEOS="cleos -u https://waxtest.eosn.io" +CONTRACT="test.edev" +INVITER="edenmember11" +WITNESS1="edenmember12" +WITNESS2="edenmember13" +ADD_TO_ID=100 + +for PARMS in $(cat ./genesis_accounts_long_list); do + INVITEE=$(echo $PARMS | cut -d "," -f1); + INDUCTION_ID=$(echo $PARMS | cut -d "," -f2); + ID=$((INDUCTION_ID+ADD_TO_ID)) + + INVITE_ACTION_DATA="{ + \"id\": $ID, + \"inviter\": \"$INVITER\", + \"invitee\": \"$INVITEE\", + \"witnesses\": [\"$WITNESS1\", \"$WITNESS2\"] + }" + +# echo $INVITE_ACTION_DATA +$CLEOS push action $CONTRACT inductinit "$INVITE_ACTION_DATA" -p "$INVITER@active" + +done; diff --git a/scripts/genesis_profiles.sh b/scripts/induct_profile.sh similarity index 95% rename from scripts/genesis_profiles.sh rename to scripts/induct_profile.sh index 48477bce9..d044d855c 100755 --- a/scripts/genesis_profiles.sh +++ b/scripts/induct_profile.sh @@ -2,11 +2,13 @@ set -xe CLEOS="cleos -u https://waxtest.eosn.io" -CONTRACT="test2.edev" +CONTRACT="test.edev" +ADD_TO_ID=100 for PARMS in $(cat ./genesis_accounts_long_list); do ACCOUNT_NAME=$(echo $PARMS | cut -d "," -f1); INDUCTION_ID=$(echo $PARMS | cut -d "," -f2); + ID=$((INDUCTION_ID+ADD_TO_ID)) IMAGE=$(echo $PARMS | cut -d "," -f3); FNAME=$(echo $PARMS | cut -d "," -f4); LNAME=$(echo $PARMS | cut -d "," -f5); @@ -22,7 +24,7 @@ for PARMS in $(cat ./genesis_accounts_long_list); do SOCIAL_BLOG="moreequalanimals.com" PROFILE_ACTION_DATA="{ - \"id\": $INDUCTION_ID, + \"id\": $ID, \"new_member_profile\": { \"name\": \"$FNAME $LNAME\", \"img\": \"$IMAGE\", diff --git a/scripts/induct_video.sh b/scripts/induct_video.sh new file mode 100755 index 000000000..9bf00b956 --- /dev/null +++ b/scripts/induct_video.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env sh +set -xe + +CLEOS="cleos -u https://waxtest.eosn.io" +CONTRACT="test.edev" +INVITER="edenmember11" +VIDEO_CID="QmTYqoPYf7DiVebTnvwwFdTgsYXg2RnuPrt8uddjfW2kHS" +ADD_TO_ID=100 + +for PARMS in $(cat ./genesis_accounts_long_list); do + INDUCTION_ID=$(echo $PARMS | cut -d "," -f2); + ID=$((INDUCTION_ID+ADD_TO_ID)) + + ACTION_DATA="{ + \"account\": \"$INVITER\", + \"id\": $ID, + \"video\": \"$VIDEO_CID\" + }" + +# echo $INVITE_ACTION_DATA +$CLEOS push action $CONTRACT inductvideo "$ACTION_DATA" -p "$INVITER@active" + +done;