-
Notifications
You must be signed in to change notification settings - Fork 1
/
97-test.ts
32 lines (25 loc) · 1015 Bytes
/
97-test.ts
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
28
29
30
31
import "dotenv/config"
import {logger} from "./scripts/helpers/logger";
import {getRowsFromBigQuery} from "./scripts/getRowsFromBigQuery";
import { getFeeDistributorInputs } from "./scripts/getFeeDistributorInputs"
import { getFdAddressesWithPeriodsFromApi } from "./scripts/getFdAddressesWithPeriodsFromApi"
import { getLastDistributionDate } from "./scripts/helpers/getLastDistributionDate"
async function main() {
logger.info('97-test started')
// const fds = await test_getRowsFromBigQuery()
const aa = await getLastDistributionDate('0x21ca9c89C704138Eb350eBF73E973E6ACd4351F8')
logger.info('97-test finished')
}
async function test_getRowsFromBigQuery() {
const indexesWithAmounts = await getRowsFromBigQuery(
[1217607],
new Date('2024-02-01'),
new Date('2024-03-01')
)
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});