Skip to content

dev-midnight-token/NIGHT_services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

The code performs simple data format manipulation of live data from Cardano explorers.

Service

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

Execution

This codebase uses Google Functions.

Command for local testing of the Supply function.

FUNCTION_TARGET=Supply LOCAL_ONLY=true go run cmd/main.go

Command 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-allocation

Command for local testing of CirculatingSupply function

FUNCTION_TARGET=CirculatingSupply LOCAL_ONLY=true go run cmd/main.go

Command 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

About

Simple web services for NIGHT token data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages