Skip to content

Commit 67297dd

Browse files
Clean up dandelion pages
1 parent 84ec669 commit 67297dd

20 files changed

+468
-139
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
- Tailwind CSS
66

77
## Learning Resources
8-
- Nav was build with this tutorial
8+
- Nav was build with this tutorial:
9+
- Content architecture with blog example:

components/Layouts/DandelionLayout.js

-7
This file was deleted.

components/dandelion.css

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
div.dandelioncard h1 {
2+
@apply text-3xl font-dandelion my-5;
3+
}
4+
5+
div.dandelioncard h2 {
6+
@apply text-xl my-5;
7+
}
8+
9+
div.dandelioncard h3 {
10+
@apply text-lg my-5;
11+
}
12+
13+
div.dandelioncard p {
14+
@apply leading-relaxed px-2 py-2;
15+
}
16+
17+
div.dandelioncard a {
18+
@apply text-purple-700;
19+
}
20+
21+
div.dandelioncard ul {
22+
@apply list-disc ml-6;
23+
}
24+
25+
div.dandelioncard li {
26+
@apply text-yellow-700 py-1;
27+
}
28+
29+
div.dandelioncard img {
30+
@apply w-11/12 mx-auto my-5 shadow-xl;
31+
}

data/dandelion-pages/cardano-node-socket.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,27 @@ version: 1
99

1010
You can use this REST API to setup a local socket file and use cardano-cli against it
1111

12-
cardano-cli is the first class citizen supporting every new blockchain feature, and this endpoint helps to transport a cardano-node's socket to you using a secure HTTPS tunnel.\n Currently access to this API is enabled on demand. Authorization and secure channel is setup with https://github.com/jpillora/chisel and TCP-to-socket termination can be done by using `socat`
12+
`cardano-cli` is the first class citizen supporting every new blockchain feature, and this endpoint helps to transport a cardano-node's socket to you using a secure HTTPS tunnel.
13+
14+
Currently access to this API is enabled on demand. Authorization and secure channel is setup with https://github.com/jpillora/chisel and TCP-to-socket termination can be done by using `socat`
1315

1416
![](/showcase-comingsoon.jpg)
1517

16-
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-node#cardano-cli)
17-
- [Official Documentation](https://github.com/input-output-hk/cardano-node/blob/master/cardano-cli/README.md)
18+
## Links
1819

20+
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-node#cardano-cli)
21+
- [Official Documentation from IOHK](https://github.com/input-output-hk/cardano-node/blob/master/cardano-cli/README.md)
1922

20-
- "mainnet": { "version": "1.25.1" }
21-
- "testnet": { "version": "1.25.1" }
23+
## Usage
2224

23-
- [testnet](https://cardano-node-socket.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
24-
- [mainnet](https://cardano-node-socket.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
25+
- [testnet: https://cardano-node-socket.testnet.dandelion.link](https://cardano-node-socket.testnet.dandelion.link)
26+
- [mainnet: https://cardano-node-socket.testnet.dandelion.link](https://cardano-node-socket.mainnet.dandelion.link)
2527

2628

27-
```
28-
~~~bash
29+
```bash
2930
# TODO
30-
~~~
3131
```
32+
33+
### Version
34+
- "mainnet": { "version": "1.25.1" }
35+
- "testnet": { "version": "1.25.1" }

data/dandelion-pages/explorer-api.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,24 @@ This is the currently officially supported API to explore Cardano transactions.
1111

1212
![](/showcase-explorer-api.png)
1313

14+
## Links
1415
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-rest#overview)
15-
- [Official Documentation](https://input-output-hk.github.io/cardano-rest/explorer-api)
16-
- mainnet: `"version": "3.1.1"`
17-
- testnet: `"version": "3.1.1"`
18-
- [testnet](https://explorer-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
19-
- [mainnet](https://explorer-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
16+
- [Official Documentation from IOHK](https://input-output-hk.github.io/cardano-rest/explorer-api)
2017

18+
- [Exampl graphql queries](https://github.com/input-output-hk/cardano-graphql/tree/master/packages/api-cardano-db-hasura/src/example_queries)
19+
20+
## Usage
21+
22+
- [testnet: https://explorer-api.testnet.dandelion.link](https://explorer-api.testnet.dandelion.link)
23+
- [mainnet: https://explorer-api.mainnet.dandelion.link](https://explorer-api.mainnet.dandelion.link)
24+
25+
### bash:
26+
27+
```bash
28+
curl -s \\
29+
https://explorer-api.testnet.dandelion.link/api/txs/last
2130
```
22-
- [graphql](https://github.com/input-output-hk/cardano-graphql/tree/master/packages/api-cardano-db-hasura/src/example_queries)
23-
- bash:
24-
~~~bash
25-
curl -s \\
26-
https://explorer-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`/api/txs/last
27-
~~~
28-
```
31+
32+
### Version
33+
- mainnet: `"version": "3.1.1"`
34+
- testnet: `"version": "3.1.1"`

data/dandelion-pages/graphql-api.md

+28-26
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,39 @@ version: 1
77
# graphql-api
88
## hasura/graphql-api
99

10+
![](/showcase-graphql-api.png)
11+
1012
You can use this GraphQL API to gather composed info from the blockchain
1113

1214
GraphQL is a query language and execution environment with server and client implementations across many programming languages. The language can be serialized for network transmission, schema implementations hashed for assurance, and is suited for describing most domains.\nCardano project is implementing a GraphQL API, to make exploring blockchain data a breeze.
1315

14-
![](showcase-graphql-api.png)
1516

17+
## Links
1618
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-graphql#overview)
17-
- [Official Documentation](https://input-output-hk.github.io/cardano-graphql/)
19+
- [Official Documentation from IOHK](https://input-output-hk.github.io/cardano-graphql/)
20+
21+
## Usage
22+
23+
- [testnet: https://graphql-api.testnet.dandelion.link](https://graphql-api.testnet.dandelion.link)
24+
- [mainnet: https://graphql-api.mainnet.dandelion.link](https://graphql-api.mainnet.dandelion.link)
25+
26+
### bash:
27+
```bash
28+
# query db sync status
29+
curl -H 'Content-Type: application/json' \\
30+
-H 'Accept: application/json' \\
31+
--data-binary \\
32+
'{"query": \
33+
"query cardanoDbSyncProgress {\\n\
34+
cardanoDbMeta {\\n\
35+
initialized\\n\
36+
syncPercentage\\n\
37+
}\\n\
38+
}\\n\
39+
"}' \\
40+
https://graphql-api.testnet.dandelion.link
41+
```
1842

43+
### Version
1944
- "mainnet": { "version": "3.2.0" }
20-
- "testnet": { "version": "3.2.0" }
21-
22-
- [testnet](https://graphql-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
23-
- [mainnet](https://graphql-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
24-
25-
26-
```
27-
- bash:
28-
~~~bash
29-
# query db sync status
30-
curl -H 'Content-Type: application/json' \\
31-
-H 'Accept: application/json' \\
32-
--data-binary \\
33-
'{"query": \
34-
"query cardanoDbSyncProgress {\\n\
35-
cardanoDbMeta {\\n\
36-
initialized\\n\
37-
syncPercentage\\n\
38-
}\\n\
39-
}\\n\
40-
"}' \\
41-
https://graphql-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`
42-
~~~
43-
```
45+
- "testnet": { "version": "3.2.0" }

data/dandelion-pages/ogmios-api.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ You can use this JSON-WSP (websocket) API to gather live blockchain info directl
1212
Ogmios is a translation service written in Haskell running on top of cardano-node. It offers a JSON-WSP interface through WebSockets and enables clients to speak Ouroboros' mini-protocols via remote procedure calls over JSON.
1313

1414
![](/showcase-ogmios-api.png)
15+
16+
## Links
1517
- [View on IOHK GitHub](https://github.com/KtorZ/cardano-ogmios)
1618
- [Official Documentation](https://ktorz.github.io/cardano-ogmios/)
1719

20+
## Usage
21+
- [testnet (wss)](https://ogmios-api.testnet.dandelion.link)
22+
- [mainnet (wss)](https://ogmios-api.mainnet.dandelion.link)
1823

19-
- "mainnet": { "version": "2.0.0-beta" },
20-
- "testnet": { "version": "2.0.0-beta" },
21-
22-
- [testnet (wss)](https://ogmios-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
23-
- [mainnet (wss)](https://ogmios-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
24+
### bash (using [websocat](https://github.com/vi/websocat)):
25+
```bash
26+
echo '{ "type": "jsonwsp/request", "version": "1.0", "servicename": "ogmios", "methodname": "RequestNext", "args": {} }' \\
27+
| websocat --text -1 - wss://ogmios-api.testnet.dandelion.link
2428
29+
echo '{ "type": "jsonwsp/request", "version": "1.0", "servicename": "ogmios", "methodname": "FindIntersect", "args": { "points": [ "origin" ] } }' \\
30+
| websocat --text -1 - wss://ogmios-api.testnet.dandelion.link
2531
```
26-
- bash (using [websocat](https://github.com/vi/websocat)):
27-
~~~bash
28-
echo '{ "type": "jsonwsp/request", "version": "1.0", "servicename": "ogmios", "methodname": "RequestNext", "args": {} }' \\
29-
| websocat --text -1 - wss://ogmios-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`
30-
31-
echo '{ "type": "jsonwsp/request", "version": "1.0", "servicename": "ogmios", "methodname": "FindIntersect", "args": { "points": [ "origin" ] } }' \\
32-
| websocat --text -1 - wss://ogmios-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`
33-
~~~
34-
```
32+
33+
### Version
34+
- "mainnet": { "version": "2.0.0-beta" },
35+
- "testnet": { "version": "2.0.0-beta" },

data/dandelion-pages/postgrest-api.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,17 @@ Cardano DB Sync is to follow the Cardano chain and take information from the cha
1313

1414
![](/showcase-postgrest-api.png)
1515

16+
## Links
1617
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-db-sync)
1718
- [Official Documentation](https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/interesting-queries.md)
1819

1920

20-
- "mainnet": { "version": "cardano-db-sync-8.0.0" }
21-
- "testnet": { "version": "cardano-db-sync-8.0.0" }
22-
21+
## Usage
22+
- [testnet: https://postgrest-api.testnet.dandelion.link](https://postgrest-api.testnet.dandelion.link)
23+
- [mainnet: https://postgrest-api.mainnet.dandelion.link](https://postgrest-api.mainnet.dandelion.link)
2324

24-
- [testnet](https://postgrest-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
25-
- [mainnet](https://postgrest-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
26-
27-
```
28-
- bash:
29-
~~~bash
25+
### bash:
26+
```bash
3027
# query available metadatums
3128
curl -s "https://postgrest-api.mainnet.dandelion.link/rpc/get_metadatum"
3229
# query metadatum 20201210
@@ -47,8 +44,11 @@ curl -X POST -H "Content-Type: application/json" -d '{ "data": { "addresses" : [
4744
curl -X POST -H "Content-Type: application/json" -d '{ "data": { "addresses" : ["stake_test1uz605p766mvsyrufagjw5fepqfp8x9ff2ty2hzdrjuvuj8g5efx4w","stake_test1uq3zf47elmdxp92wgmcx4lrkjrlts5fffs36c7dz02d7faqye6l9j"] } }' -s "https://postgrest-api.testnet.dandelion.link/rpc/get_delegation_history_for_stake_address" | jq .
4845
# query addresses balance at the end of a given epoch
4946
curl -X POST -H "Content-Type: application/json" -d '{ "data": { "epoch": "105", "addresses" : ["addr_test1vzep2se0nr849acwfnlpm2sa3sz726g6v78ej4sy9ewjprqmcl720","addr_test1qptw3z77j2vjhd45vdqhct46uvwucese43twz9afv0lt9h83lgv8qkdvg9akyn2yyrtp75sd6ejwl3m0f4qtve43ydnsckuvc4"] } }' -s "https://postgrest-api.testnet.dandelion.link/rpc/get_eoe_balance_for_addresses" | jq .
50-
~~~
51-
52-
[Postgrest documentation](http://postgrest.org/en/latest/api.html) will be handy to explore the whole Cardano network throuh this API.
5347
5448
```
49+
50+
[Postgrest documentation](http://postgrest.org/en/latest/api.html) will be handy to explore the whole Cardano network through this API.
51+
52+
### Version
53+
- "mainnet": { "version": "cardano-db-sync-8.0.0" }
54+
- "testnet": { "version": "cardano-db-sync-8.0.0" }

data/dandelion-pages/rosetta-api.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ Rosetta is an open-source specification and set of tools that makes integrating
1212

1313
![](/showcase-rosetta-api.png)
1414

15-
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-rosetta)
16-
- [Official Documentation](https://github.com/input-output-hk/cardano-rosetta#documentation)
17-
1815

19-
- "mainnet": { "version": "1.1.0" },
20-
- "testnet": { "version": "1.1.0-testnet" },
16+
## Links
17+
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-rosetta)
18+
- [Official Documentation from IOHK](https://github.com/input-output-hk/cardano-rosetta#documentation)
2119

2220

23-
- [testnet](https://rosetta-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
24-
- [mainnet](https://rosetta-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
21+
## Usage
22+
- [testnet: https://rosetta-api.testnet.dandelion.link](https://rosetta-api.testnet.dandelion.link)
23+
- [mainnet: https://rosetta-api.mainnet.dandelion.link](https://rosetta-api.mainnet.dandelion.link)
2524

26-
```
27-
- bash:
28-
~~~bash
25+
### bash:
26+
```bash
2927
curl -X POST -H 'Content-Type: application/json' --data '{"network_identifier":{"blockchain":"cardano","network":"testnet"},"block_identifier":{"index":100}}' https://rosetta-api.testnet.dandelion.link/block
30-
~~~
31-
```
28+
```
29+
30+
### Version
31+
- "mainnet": { "version": "1.1.0" },
32+
- "testnet": { "version": "1.1.0-testnet" },

data/dandelion-pages/submit-api.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@ You can use this REST API to send signed-transactions to the blockchain
1111

1212
This is the currently officially supported API to submit signed Cardano transactions to the blockchain.
1313

14-
![](showcase-submit-api.png)
14+
![](/showcase-submit-api.png)
1515
- [View on IOHK GitHub](https://github.com/input-output-hk/cardano-rest#overview)
1616
- [Official Documentation](https://input-output-hk.github.io/cardano-rest/submit-api/)
1717

18-
- "mainnet": { "version": "3.1.1" },
19-
- "testnet": { "version": "3.1.1" },
2018

21-
- [testnet](https://submit-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`)
22-
- [mainnet](https://submit-api.mainnet.`+process.env.REACT_APP_API_DOMAIN+`)
23-
24-
```
25-
- bash:
26-
~~~bash
19+
## Usage
20+
- [testnet: https://submit-api.testnet.dandelion.link](https://submit-api.testnet.dandelion.link)
21+
- [mainnet: https://submit-api.mainnet.dandelion.link](https://submit-api.mainnet.dandelion.link)
22+
23+
### bash:
24+
```bash
2725
# '/tmp/cbor-tx' should be a file containing
2826
# a valid 'application/cbor' signed transaction (in e.g., from cardano-cli)
2927
curl -X POST \\
3028
--header "Content-Type: application/cbor" \\
3129
--data-binary @/tmp/cbor-tx \\
32-
https://submit-api.testnet.`+process.env.REACT_APP_API_DOMAIN+`/api/submit/tx
33-
~~~
34-
```
30+
https://submit-api.testnet.dandelion.link/api/submit/tx
31+
```
32+
33+
### Version
34+
- "mainnet": "version": "3.1.1"
35+
- "testnet": "version": "3.1.1"

0 commit comments

Comments
 (0)