From 4ec2cc6dd1354904587d8ad49cfb0a494fb89b7e Mon Sep 17 00:00:00 2001 From: Oleksandr Tsurenko Date: Wed, 25 Sep 2024 17:14:58 +0200 Subject: [PATCH] TECH-3629 - Changing chainlog's hostname --- .github/workflows/aws-prod.yaml | 1 + README.md | 6 +++--- api.html | 12 ++++++------ deploy/prod/chainlog-ui.yaml | 2 +- examples/api.js | 2 +- index.html | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/aws-prod.yaml b/.github/workflows/aws-prod.yaml index 2a5948f..f287af9 100644 --- a/.github/workflows/aws-prod.yaml +++ b/.github/workflows/aws-prod.yaml @@ -2,6 +2,7 @@ on: push: branches: - main + - TECH-3629-Chainlog-Prod name: Deploy to AWS Production (K8s) diff --git a/README.md b/README.md index 0c8c71f..c09991d 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ UI and API for MakerDAO’s chainlog contract ## Production environment -* [chainlog.makerdao.com](https://chainlog.makerdao.com) -* [chainlog.makerdao.com/api.html](https://chainlog.makerdao.com/api.html) -* chainlog.makerdao.com/checksum/\ +* [chainlog.sky.money](https://chainlog.sky.money) +* [chainlog.sky.money/api.html](https://chainlog.sky.money/api.html) +* chainlog.sky.money/checksum/\ ## Staging environment diff --git a/api.html b/api.html index 74f578a..d22fa6f 100644 --- a/api.html +++ b/api.html @@ -10,15 +10,15 @@

Chainlog historical API

Usage

Get a list of all available chains and versions

-
GET https://chainlog.makerdao.com/api/index.json
+
GET https://chainlog.sky.money/api/index.json

Get the active version on a given chain

-
GET https://chainlog.makerdao.com/api/{chain}/active.json
+
GET https://chainlog.sky.money/api/{chain}/active.json

Get a specific version on a given chain

-
GET https://chainlog.makerdao.com/api/{chain}/{version}.json
+
GET https://chainlog.sky.money/api/{chain}/{version}.json

Code examples

You can set your JavaScript app to use this API in the following way:
-  const url = "https://chainlog.makerdao.com/api/mainnet/active.json";
+  const url = "https://chainlog.sky.money/api/mainnet/active.json";
   const response = await fetch(url);
   const chainlog = await response.json();
   console.log(chainlog);
@@ -71,8 +71,8 @@ 

Code examples

The above code has the advantage that it will allow you to retreive historical data as long as you are using an archival node. In order to do that, replace "latest" with a specific block number.

Available resources in this API

-https://chainlog.makerdao.com/api
-├── index.json
+https://chainlog.sky.money/api
+├── index.json