Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECH-3629 - Changing to new domain #31

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./
run: |
docker-compose up -d
docker compose up -d
sleep 10
docker ps | grep chainlog-ui
docker ps | grep chainlog-logger || (docker logs chainlog-logger && exit 1)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/\<address\>
* [chainlog.sky.money](https://chainlog.sky.money)
* [chainlog.sky.money/api.html](https://chainlog.sky.money/api.html)
* chainlog.sky.money/checksum/\<address\>

## Staging environment

Expand Down
12 changes: 6 additions & 6 deletions api.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<h1>Chainlog historical API</h1>
<h2>Usage</h2>
<h3>Get a list of all available chains and versions</h3>
<pre>GET <a href="https://chainlog.makerdao.com/api/index.json">https://chainlog.makerdao.com/api/index.json</a></pre>
<pre>GET <a href="https://chainlog.sky.money/api/index.json">https://chainlog.sky.money/api/index.json</a></pre>
<h3>Get the active version on a given chain</h3>
<pre>GET https://chainlog.makerdao.com/api/{chain}/active.json</pre>
<pre>GET https://chainlog.sky.money/api/{chain}/active.json</pre>
<h3>Get a specific version on a given chain</h3>
<pre>GET https://chainlog.makerdao.com/api/{chain}/{version}.json</pre>
<pre>GET https://chainlog.sky.money/api/{chain}/{version}.json</pre>
<h2>Code examples</h2>
You can set your JavaScript app to use this API <a href="https://github.com/makerdao/chainlog-ui/blob/main/examples/api.js">in the following way</a>:
<pre>
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);
Expand Down Expand Up @@ -71,8 +71,8 @@ <h2>Code examples</h2>
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 <code>"latest"</code> with a specific block number.
<h2>Available resources in this API</h2>
<pre>
https://chainlog.makerdao.com/api
├── <a href="https://chainlog.makerdao.com/api/index.json">index.json</a>
https://chainlog.sky.money/api
├── <a href="https://chainlog.sky.money/api/index.json">index.json</a>
<div id="canvas"></div>
</pre>
<script>
Expand Down
2 changes: 1 addition & 1 deletion deploy/prod/chainlog-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ serviceAccount:
create: false
ingress:
enabled: true
host: chainlog.makerdao.com
host: chainlog.sky.money
annotations:
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
podAnnotations:
Expand Down
2 changes: 1 addition & 1 deletion examples/api.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetch from "node-fetch";

const main = async () => {
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);
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
linksDiv.append(separator);
const apiLink = document.createElement("a");
apiLink.innerHTML = "historical API";
apiLink.setAttribute("href", "https://chainlog.makerdao.com/api.html");
apiLink.setAttribute("href", "https://chainlog.sky.money/api.html");
apiLink.setAttribute("target", "_blank");
linksDiv.append(apiLink);
document.body.append(linksDiv);
Expand Down
Loading