-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
27 lines (24 loc) · 1022 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const fs = require('fs');
require('dotenv').config();
const {getDeposits} = require('./deposits');
const {getDepositsOnChain} = require('./depositsOnChain');
const {calcStalkSeedDiscrepancies} = require('./calcStalkSeedDiscrepancies');
const {getStalkSeeds} = require('./stalkSeedsOnChain');
(async () => {
if (!fs.existsSync('./data')){
fs.mkdirSync('./data');
}
let blockNumber = 17251905;
//ebip 8 was deployed at 17251905
//run `node scripts/silov3-merkle/stems_merkle.js`
//in main bean repo protocol dir to get updated merkle root, then update contracts/libraries/Silo/LibLegacyTokenSilo.sol
//with the new merkle root
console.log("Fetching Deposits...")
await getDeposits(blockNumber)
console.log("Fetching Deposits on Chain...")
await getDepositsOnChain(blockNumber)
console.log("Fetching Stalk Seeds on Chain...")
await getStalkSeeds(blockNumber)
console.log("Calculating Discrepancies...")
await calcStalkSeedDiscrepancies(blockNumber)
})();