The code performs simple data format manipulation of live data from Cardano explorers.
The codebase provides services listed in the table below.
| Function | Description | Location |
|---|---|---|
| Supply | The total quantity of NIGHT | ./tokens.go |
| CirculatingSupply | The total circulating supply of NIGHT | ./utxos.go |
This codebase uses Google Functions.
Command for local testing of the Supply function.
FUNCTION_TARGET=Supply LOCAL_ONLY=true go run cmd/main.goCommand to deploy the Supply function to Google cloud.
gcloud functions deploy Supply --region=us-east5 --runtime=go125 --source=. --entry-point=Supply --trigger-http --project=night-allocationCommand for local testing of CirculatingSupply function
FUNCTION_TARGET=CirculatingSupply LOCAL_ONLY=true go run cmd/main.goCommand to deploy the CirculatingSupply function to Google cloud.
gcloud functions deploy CirculatingSupply --region=us-east5 --runtime=go125 --source=. --entry-point=CirculatingSupply --trigger-http --project=night-allocation