Skip to content

Commit df78797

Browse files
authored
Merge pull request #57 from MetaFactoryAI/dec2021-ops-distro
Dec2021 ops distro
2 parents eeb2f16 + a33169c commit df78797

12 files changed

Lines changed: 198 additions & 43 deletions

File tree

config/dependencies.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[
22
{
33
"autoActivateOnIdentityCreation": true,
4-
"autoInjectStartingPeriodWeight": 0.025,
4+
"autoInjectStartingPeriodWeight": 0.01,
55
"id": "wr8IQYoYvXtQT3N8l3lETg",
66
"name": "SourceCred",
77
"periods": [
88
{
99
"startTime": "2021-05-04T19:57:46.765Z",
10-
"weight": 0.025
10+
"weight": 0.01
1111
}
1212
]
1313
}

config/grain.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"allocationPolicies": [
33
{
4-
"budget": 400,
5-
"numIntervalsLookback": 24,
4+
"budget": 117,
5+
"numIntervalsLookback": 16,
66
"policyType": "BALANCED"
77
},
88
{
9-
"budget": 800,
10-
"discount": 0.4,
11-
"policyType": "RECENT"
9+
"budget": 240,
10+
"numIntervalsLookback": 4,
11+
"policyType": "BALANCED"
1212
}
1313
],
1414
"maxSimultaneousDistributions": 20
15-
}
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"graphUrl": "https://mf-cred.vercel.app/api/graph",
3+
"declarationUrl": "https://mf-cred.vercel.app/api/declaration",
4+
"identityProposalsUrl": "https://mf-cred.vercel.app/api/identities"
5+
}

config/plugins/sourcecred/discord/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"defaultWeight": 0.25,
55
"weights": {
66
"696156766710267974": 1,
7-
"696165743112355891": 0.1,
7+
"696165743112355891//announcements": 0.1,
88
"696181524218773504": 1,
99
"703773540255662203": 0.1,
1010
"728520870317916210//sourbeachclub": 1,

config/plugins/sourcecred/ethereum/ethereumAddresses.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"0x0eF9e2f7403C8a8aAFBaDcd83d5575d4B6fde501",
107107
"0x29602B0f283E0db6F315573d0dAcd6e578eE7534",
108108
"0xF0CAd7C8b383f79A879eB6Df644e336234EBDac8",
109-
"0xc0b46379db7ACfB2480b040a73AF9CA4d751ed39"
109+
"0xc0b46379db7ACfB2480b040a73AF9CA4d751ed39",
110+
"0xd0C877B474CD51959931a7f70D7a6c60F50cdAE7"
110111
]
111112
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"repositories": ["sourcecred-test/example-github"]}
1+
{"repositories": ["MetaFactoryAI/mf-cred","MetaFactoryAI/mf-app","MetaFactoryAI/robot-redemptions", "MetaFactoryAI/MetaLoot"]}

config/weights.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"N\u0000sourcecred\u0000github\u0000": 1,
2121
"N\u0000sourcecred\u0000github\u0000COMMIT\u0000": 0.5,
2222
"N\u0000sourcecred\u0000github\u0000ISSUE\u0000": 0.125,
23+
"N\u0000metacred\u0000creditor\u0000CONTRIBUTION\u0000": 16,
24+
"N\u0000metacred\u0000creditor\u0000RATING\u0000": 2,
2325
"N\u0000sourcecred\u0000initiatives\u0000CONTRIBUTION\u0000": 8,
2426
"N\u0000sourcecred\u0000initiatives\u0000initiative\u0000": 16
2527
}

data/ledger.json

Lines changed: 80 additions & 0 deletions
Large diffs are not rendered by default.

scripts/robot-minting.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const NodeAddress = sc.core.address.makeAddressModule({
2121
const numberToWei = (n) => web3.utils.toWei(parseFloat(n).toFixed(9), 'ether');
2222

2323

24-
const MINT_TX_HASH = "https://etherscan.io/tx/0xd5f75e9d622272dc4d969d9ed6119c4b546eea46810037654838843db02e3f81";
25-
const MINT_DATE = "July 30, 2021";
24+
const MINT_TX_HASH = "https://etherscan.io/tx/0x87005db98711cee6e3105a9ac745ae509439ae6bf8220f56a63aaf1c27e372b5";
25+
const MINT_DATE = "Dec 26, 2021";
2626
const ROBOT_TOKEN_ADDRESS = "0xfb5453340C03db5aDe474b27E68B6a9c6b2823Eb";
2727

2828
const LEDGER_PATH = 'data/ledger.json';
29-
const LAST_MINTING_PATH = 'scripts/toMintMerkle.json';
29+
const LAST_MINTING_PATH = 'scripts/toMintMerkle2.json';
3030
const ETH_MAIN_NET_IDENTITY_ID = "kGGJH0fyxcpsRRWwDepL6A";
3131

3232
async function deductRobotAlreadyMinted(accounts, ledger) {
@@ -94,16 +94,18 @@ async function deductRobotAlreadyMinted(accounts, ledger) {
9494
await fs.writeFile(LEDGER_PATH, ledger.serialize())
9595

9696
const newMintAmounts = {};
97+
const names = {};
9798
let total = 0;
9899
accountsWithAddress.forEach(acc => {
99100
const amountToMint = G.format(acc.balance, 9, '').replace(/,/g, '');
100101
newMintAmounts[acc.ethAddress] = amountToMint;
102+
names[acc.ethAddress] = acc.identity.name;
101103
if (!web3Utils.isAddress(acc.ethAddress)) {
102104
console.log('INVALID ADD for acc: ', acc);
103105
}
104106

105107
total += parseFloat(amountToMint);
106-
console.log({ total, amountToMint });
108+
// console.log({ total, amountToMint });
107109

108110
});
109111

@@ -120,13 +122,13 @@ async function deductRobotAlreadyMinted(accounts, ledger) {
120122
addresses.push(address);
121123
amounts.push(numberToWei(amount));
122124

123-
return `${ROBOT_TOKEN_ADDRESS},${address},${amount.toString().replace(/,/g, '')}`
125+
return `${names[address]},${address},${amount.toString().replace(/,/g, '')}`
124126
}).join('\n'));
125127
console.log({ total });
126128

127129
const addressString = `[${addresses.join(',')}]`
128130
const amountsString = `[${amounts.join(',')}]`
129131

130-
// fs.writeFile('./scripts/opsDistroDisperse.txt', [addressString, amountsString].join('\n'));
131-
fs.writeFile('./scripts/toMintMerkle.json', JSON.stringify(merkleAmounts));
132+
fs.writeFile('./scripts/opsDistroDisperse3.txt', [addressString, amountsString].join('\n'));
133+
fs.writeFile('./scripts/toMintMerkle3.json', JSON.stringify(merkleAmounts));
132134
})();

scripts/toMintMerkle2.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"0xF91569595BCDAF780c3f1662f204E157949af8b2": "0.140614855",
3+
"0x9D2CaBfBaE45cadf22934933e8460425d9E15Ee5": "579.583163790",
4+
"0xFB074ABA249F6a75edA10996c3EFa6d66465B8b3": "20.743806904",
5+
"0xfaCEf700458D4Fc9746F7f3e0d37B462711fF09e": "35.734748870",
6+
"0x33DebB5Ee65549FFA71116957Da6db17A9D8fe57": "219.734029677",
7+
"0x68d36DcBDD7Bbf206e27134F28103abE7cf972df": "3.984800416",
8+
"0x4cCa9821c246acd39a42F34e6ae4E520A8224565": "778.991324662",
9+
"0x30dB01087fEBd7b67DC486812b322b4867Cb8cA7": "45.161415027",
10+
"0x9583648c314CDF666F4F555299dB3B36f5d5b2f9": "3.492782430",
11+
"0x92b406851390541F445B7C697014133d4B5BfcE3": "0.144270459",
12+
"0xd0C877B474CD51959931a7f70D7a6c60F50cdAE7": "99.795344841",
13+
"0x956D5740B3477F0B46daE26753B07EcBd8055908": "23.726026732",
14+
"0x87e32D4631D728d6aD7EBcD133b11FeBC9DA9b93": "2.376434609",
15+
"0x8B257B97C0e07E527B073b6513ba8Ea659279b61": "7.778935897",
16+
"0x2B6247079ddD8e81B34093e911284253bd455EF6": "0.317062759",
17+
"0x66b1De0f14a0ce971F7f248415063D44CAF19398": "63.796515571",
18+
"0x54021E58aF1756dc70CE7034d7636De2D2f1fA74": "1.594592744",
19+
"0xA09e838Fe4E33f133e24D836DC61b9A111E41cf8": "2.240493730",
20+
"0xF0CAd7C8b383f79A879eB6Df644e336234EBDac8": "0.028584664",
21+
"0xE38d978e500242E5E6DF46BE5dc1Bd47cb06555f": "155.230844395",
22+
"0x01b9369cf8624E1f9960864c18411B4b07Eb91AC": "0.259349302",
23+
"0x3Cc1A943B27c2AF7c6dcF3Be0137f66c2f22E712": "188.356376875",
24+
"0x9bcB319bED50ff0cE2D6FfA95AB9293A175aeD7d": "0.019979961",
25+
"0xce7298E5ef1aE8AF0573eDC2eBd03aB0F837E214": "1.080634397",
26+
"0xE04885c3f1419C6E8495C33bDCf5F8387cd88846": "7.535652060",
27+
"0xf8049C8425f9eAb4E2AE9E1D950f9D3F71481882": "333.272612339",
28+
"0xBFc7CAE0Fad9B346270Ae8fde24827D2D779eF07": "0.038644549",
29+
"0x20b9973103b65D4EA8D0591634e5e757AaCD3030": "137.264745745",
30+
"0xd26a3F686D43f2A62BA9eaE2ff77e9f516d945B9": "0.406607574",
31+
"0x5B93FF82faaF241c15997ea3975419DDDd8362c5": "0.000225987",
32+
"0x1dF428833f2C9FB1eF098754e5D710432450d706": "3.451075247",
33+
"0x1253594843798Ff0fcd7Fa221B820C2d3cA58FD5": "160.499950357",
34+
"0xC8cBacC6450f9a4A6B925A54c7b70dde4D14D94f": "1.520929147",
35+
"0x8913b99d5efD9e391AdE59168230F6425813D90A": "0.123593892",
36+
"0x00000000005dbcB0d0513FcDa746382Fe8a53468": "0.161583754",
37+
"0xE6c21d1baCadc972e2874EF5b6cD09F38051d83C": "0.286249209",
38+
"0xae96B28Bd632f250ac38E298A82d6b4F9e1042A5": "9.017918204",
39+
"0x7761CA398E836534bEd3B8798f96A3CF39D3bD2E": "0.004977428",
40+
"0x29602B0f283E0db6F315573d0dAcd6e578eE7534": "551.001361373",
41+
"0x670A6EB62f5146d4B3B40C7b58AA31d175E3d6Fb": "56.230679102",
42+
"0x6bEE4079849E1993bFDaB33Ee5392AD821798618": "0.035941279",
43+
"0x0eF9e2f7403C8a8aAFBaDcd83d5575d4B6fde501": "3.179261442",
44+
"0x73F19c4E5fFc335932AfEBF382dEF646F600e64A": "295.763046250",
45+
"0x9bcDc7db2f57B0f960A737ccC29373a9bc760134": "260.578426797",
46+
"0xE75304fE5bb590B6deA3CA13A8aBAb257c12E753": "188.155723319",
47+
"0xc222FACE875a344846Ccd489c57C401046790D98": "2.715957725",
48+
"0xc0b46379db7ACfB2480b040a73AF9CA4d751ed39": "148.900123385",
49+
"0x1A3C469A422EcfEEc7258C701cd5cdDe9b5e9322": "110.477880732",
50+
"0x59B917a9e10ECe44faE8b651F8C351ef2647dccA": "38.270027444",
51+
"0xB10B5568d516a6121A848b86A0640115827430b1": "0.000000001",
52+
"0x615b044B6Ccb048532bcF99AAdf619d7fdD2Aa01": "57.541992412",
53+
"0x9b944a5f2F90BA9F8a8c375Be8b076b8361bfF15": "0.000000001",
54+
"0x77a78FE8C1a045a3DD148931D7FC40410302e32c": "57.105636720",
55+
"0xB6734B4E01D1cD9A626efD6c86F031cBbF9B4936": "79.143905954",
56+
"0xBED32b83dd0851E655ADcEf79105Ca7a469cf9F0": "34.330817830",
57+
"0x7fb9f1e0bc85cFA1795f956604474A08c0afd798": "22.496135254",
58+
"0x5b962f3782702530eaAb7e52E110a77d470F28E7": "74.207236501",
59+
"0x775aF9b7c214Fe8792aB5f5da61a8708591d517E": "248.881294074",
60+
"0x9C2A50BC7b72850d1E96AB0dEF312C369AA9ce19": "18.100557977",
61+
"0x86aecfc1E3973108Ce14b9b741a99d3466127170": "10.468823959",
62+
"0x52Ef83e77243970E74680fC5814D4a7b984D4b89": "10.411312646",
63+
"0x785c49Be9AC1c552d3615e0eA826cc443A6C36Dc": "23.725980575",
64+
"0xD37aDBB6Ca0054b78Eb5C7a40799B13b7F83CEd2": "23.725980575"
65+
}

0 commit comments

Comments
 (0)