This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Lighthouse Ipfs : | |
| https://github.com/fabianferno/touchgrass/blob/main/frontend/hooks/useUploadToIPFS.ts#L25 | |
| Zktls Verification : | |
| https://github.com/fabianferno/touchgrass/blob/main/frontend/components/location-verification-component.tsx#L60C1-L85C18 | |
| Datacoin Creation : | |
| https://github.com/fabianferno/touchgrass/blob/main/frontend/hooks/useDataCoinCreation.ts#L229C5-L246C10 | |
| Datacoin minting (rewarding) : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This is a wrapper around the OSO BigQuery API. | |
| * It is used to get data from the OSO database. | |
| */ | |
| import { BigQuery } from '@google-cloud/bigquery'; | |
| import { Logger } from '../../Logger'; | |
| import { config } from '../../../../config/config'; | |
| import { getWeekDates } from '../../../util/week-to-dates'; | |
| import { IndicatorDatapoint } from '../types'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sharp = require("sharp"); | |
| const axios = require("axios"); | |
| const fs = require("fs"); | |
| function componentToHex(c) { | |
| var hex = c.toString(16); | |
| return hex.length == 1 ? "0" + hex : hex; | |
| } | |
| function rgbToHex(r, g, b) { |