Skip to content

Commit

Permalink
Api docs new (#219)
Browse files Browse the repository at this point in the history
* put docs on root

* fix flicker
  • Loading branch information
kingsleyh authored and tbrand committed Jul 14, 2018
1 parent 06e82d1 commit 1453e7a
Show file tree
Hide file tree
Showing 83 changed files with 17,673 additions and 25,060 deletions.
22,750 changes: 0 additions & 22,750 deletions api/v1/api.js

This file was deleted.

7 changes: 0 additions & 7 deletions api/v1/bootstrap4.min.css

This file was deleted.

896 changes: 896 additions & 0 deletions api/v1/dist/codemirror.javascript.mode.js

Large diffs are not rendered by default.

9,683 changes: 9,683 additions & 0 deletions api/v1/dist/codemirror.js

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions api/v1/dist/codemirror.material.css
@@ -0,0 +1,53 @@
/*
Name: material
Author: Michael Kaminsky (http://github.com/mkaminsky11)
Original material color scheme by Mattia Astorino (https://github.com/equinusocio/material-theme)
*/

.cm-s-material.CodeMirror {
background-color: #263238;
color: rgba(233, 237, 237, 1);
}
.cm-s-material .CodeMirror-gutters {
background: #263238;
color: rgb(83,127,126);
border: none;
}
.cm-s-material .CodeMirror-guttermarker, .cm-s-material .CodeMirror-guttermarker-subtle, .cm-s-material .CodeMirror-linenumber { color: rgb(83,127,126); }
.cm-s-material .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
.cm-s-material div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); }
.cm-s-material.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
.cm-s-material .CodeMirror-line::selection, .cm-s-material .CodeMirror-line > span::selection, .cm-s-material .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
.cm-s-material .CodeMirror-line::-moz-selection, .cm-s-material .CodeMirror-line > span::-moz-selection, .cm-s-material .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }

.cm-s-material .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); }
.cm-s-material .cm-keyword { color: rgba(199, 146, 234, 1); }
.cm-s-material .cm-operator { color: rgba(233, 237, 237, 1); }
.cm-s-material .cm-variable-2 { color: #80CBC4; }
.cm-s-material .cm-variable-3, .cm-s-material .cm-type { color: #82B1FF; }
.cm-s-material .cm-builtin { color: #DECB6B; }
.cm-s-material .cm-atom { color: #F77669; }
.cm-s-material .cm-number { color: #F77669; }
.cm-s-material .cm-def { color: rgba(233, 237, 237, 1); }
.cm-s-material .cm-string { color: #C3E88D; }
.cm-s-material .cm-string-2 { color: #80CBC4; }
.cm-s-material .cm-comment { color: #546E7A; }
.cm-s-material .cm-variable { color: #82B1FF; }
.cm-s-material .cm-tag { color: #80CBC4; }
.cm-s-material .cm-meta { color: #80CBC4; }
.cm-s-material .cm-attribute { color: #FFCB6B; }
.cm-s-material .cm-property { color: #80CBAE; }
.cm-s-material .cm-qualifier { color: #DECB6B; }
.cm-s-material .cm-variable-3, .cm-s-material .cm-type { color: #DECB6B; }
.cm-s-material .cm-tag { color: rgba(255, 83, 112, 1); }
.cm-s-material .cm-error {
color: rgba(255, 255, 255, 1.0);
background-color: #EC5F67;
}
.cm-s-material .CodeMirror-matchingbracket {
text-decoration: underline;
color: white !important;
}
1 change: 1 addition & 0 deletions api/v1/dist/codemirror.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/v1/dist/example_responses/address-amount-token.json
@@ -0,0 +1,12 @@
{
"status": "success",
"result": {
"confirmation": 1,
"pairs": [
{
"token": "SUSHI",
"amount": "19.68043428"
}
]
}
}
16 changes: 16 additions & 0 deletions api/v1/dist/example_responses/address-amount.json
@@ -0,0 +1,16 @@
{
"status": "success",
"result": {
"confirmation": 1,
"pairs": [
{
"token": "SUSHI",
"amount": "19.68043428"
},
{
"token": "EAGLE",
"amount": "0"
}
]
}
}
25 changes: 25 additions & 0 deletions api/v1/dist/example_responses/address-transactions.json
@@ -0,0 +1,25 @@
{
"status": "success",
"result": [
{
"id": "f3aa3b5e04a4890e873e56d7ac35b3b90fe549afd783f7b5826055e0872bde6f",
"action": "head",
"senders": [],
"recipients": [
{
"address": "VDBjMTlkMWM0NTZhYmE3ZjdmYmVkMDgwMWFhZTMyMDRhMTUzNjFhYWUwYzk3ODQ5",
"amount": 12615663
},
{
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"amount": 37846987
}
],
"message": "0",
"token": "SUSHI",
"prev_hash": "0",
"timestamp": 1527522043,
"scaled": 1
}
]
}
11 changes: 11 additions & 0 deletions api/v1/dist/example_responses/block-header.json
@@ -0,0 +1,11 @@
{
"status": "success",
"result": {
"index": 0,
"nonce": 0,
"prev_hash": "genesis",
"merkle_tree_root": "",
"timestamp": 0,
"difficulty": 3
}
}
25 changes: 25 additions & 0 deletions api/v1/dist/example_responses/block-transactions.json
@@ -0,0 +1,25 @@
{
"status": "success",
"result": [
{
"id": "f3aa3b5e04a4890e873e56d7ac35b3b90fe549afd783f7b5826055e0872bde6f",
"action": "head",
"senders": [],
"recipients": [
{
"address": "VDBjMTlkMWM0NTZhYmE3ZjdmYmVkMDgwMWFhZTMyMDRhMTUzNjFhYWUwYzk3ODQ5",
"amount": 12615663
},
{
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"amount": 37846987
}
],
"message": "0",
"token": "SUSHI",
"prev_hash": "0",
"timestamp": 1527522043,
"scaled": 1
}
]
}
12 changes: 12 additions & 0 deletions api/v1/dist/example_responses/block.json
@@ -0,0 +1,12 @@
{
"status": "success",
"result": {
"index": 0,
"transactions": [],
"nonce": 0,
"prev_hash": "genesis",
"merkle_tree_root": "",
"timestamp": 0,
"difficulty": 3
}
}
21 changes: 21 additions & 0 deletions api/v1/dist/example_responses/blockchain-header.json
@@ -0,0 +1,21 @@
{
"status": "success",
"result": [
{
"index": 0,
"nonce": 0,
"prev_hash": "genesis",
"merkle_tree_root": "",
"timestamp": 0,
"difficulty": 3
},
{
"index": 1,
"nonce": 3160363877755569000,
"prev_hash": "a088fd4b16bac0b5cd8bad838512318afdaa0068bb807ca8942301ecc78dd148",
"merkle_tree_root": "bf6e21f1e73c0573ec025c251c169e42c0f5de6f",
"timestamp": 1527444041,
"difficulty": 1
}
]
}
6 changes: 6 additions & 0 deletions api/v1/dist/example_responses/blockchain-size.json
@@ -0,0 +1,6 @@
{
"status": "success",
"result": {
"size": 157
}
}
12 changes: 12 additions & 0 deletions api/v1/dist/example_responses/blockchain.json
@@ -0,0 +1,12 @@
{
"result": [
{
"index": 0,
"merkle_tree_root": "",
"nonce": 0,
"prev_hash": "genesis",
"transactions": []
}
],
"status": "success"
}
11 changes: 11 additions & 0 deletions api/v1/dist/example_responses/node-current.json
@@ -0,0 +1,11 @@
{
"status": "success",
"result": {
"id": "72402194f72f70ed4bf1288eb177252b",
"host": "ec2-52-87-190-26.compute-1.amazonaws.com",
"port": 3000,
"ssl": false,
"type": "testnet",
"is_private": false
}
}
8 changes: 8 additions & 0 deletions api/v1/dist/example_responses/nodes.json
@@ -0,0 +1,8 @@
{
"status": "success",
"result": {
"successor_list": [],
"predecessor": null,
"private_nodes": []
}
}
13 changes: 13 additions & 0 deletions api/v1/dist/example_responses/scars-domain.json
@@ -0,0 +1,13 @@
{
"status": "success",
"result": {
"resolved": true,
"confirmation": 1,
"domain": {
"domain_name": "fullmetal.sc",
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"status": 0,
"price": "0"
}
}
}
17 changes: 17 additions & 0 deletions api/v1/dist/example_responses/scars-sales.json
@@ -0,0 +1,17 @@
{
"result": [
{
"address": "VDAxNmM1OGVkNmYyNzI2NzcyYjYzODRmMzJmMDkzODhjMTczNWI0NDFjZGM5ZTIz",
"domain_name": "awesome.sc",
"price": 100,
"status": 1
},
{
"address": "VDAxNmM1OGVkNmYyNzI2NzcyYjYzODRmMzJmMDkzODhjMTczNWI0NDFjZGM5ZTIz",
"domain_name": "superdry.sc",
"price": 100,
"status": 1
}
],
"status": "success"
}
7 changes: 7 additions & 0 deletions api/v1/dist/example_responses/tokens.json
@@ -0,0 +1,7 @@
{
"status": "success",
"result": [
"SUSHI",
"EAGLE"
]
}
11 changes: 11 additions & 0 deletions api/v1/dist/example_responses/transaction-block-header.json
@@ -0,0 +1,11 @@
{
"status": "success",
"result": {
"index": 156,
"nonce": 6558232399239314000,
"prev_hash": "9c6845c1e03bf3eb132b25835f8c4f2f90c09dd5221325134c50434fbe947346",
"merkle_tree_root": "0531d7957b9863ab1597e787b446e633fe1df1eb",
"timestamp": 1527522043,
"difficulty": 4
}
}
33 changes: 33 additions & 0 deletions api/v1/dist/example_responses/transaction-block.json
@@ -0,0 +1,33 @@
{
"status": "success",
"result": {
"index": 156,
"transactions": [
{
"id": "f3aa3b5e04a4890e873e56d7ac35b3b90fe549afd783f7b5826055e0872bde6f",
"action": "head",
"senders": [],
"recipients": [
{
"address": "VDBjMTlkMWM0NTZhYmE3ZjdmYmVkMDgwMWFhZTMyMDRhMTUzNjFhYWUwYzk3ODQ5",
"amount": 12615663
},
{
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"amount": 37846987
}
],
"message": "0",
"token": "SUSHI",
"prev_hash": "0",
"timestamp": 1527522043,
"scaled": 1
}
],
"nonce": 6558232399239314000,
"prev_hash": "9c6845c1e03bf3eb132b25835f8c4f2f90c09dd5221325134c50434fbe947346",
"merkle_tree_root": "0531d7957b9863ab1597e787b446e633fe1df1eb",
"timestamp": 1527522043,
"difficulty": 4
}
}
6 changes: 6 additions & 0 deletions api/v1/dist/example_responses/transaction-confirmations.json
@@ -0,0 +1,6 @@
{
"status": "success",
"result": {
"confirmations": 1
}
}
10 changes: 10 additions & 0 deletions api/v1/dist/example_responses/transaction-fees.json
@@ -0,0 +1,10 @@
{
"status": "success",
"result": {
"send": "0.0001",
"scars_buy": "0.001",
"scars_sell": "0.0001",
"scars_cancel": "0.0001",
"create_token": "0.1"
}
}
28 changes: 28 additions & 0 deletions api/v1/dist/example_responses/transaction-signed.json
@@ -0,0 +1,28 @@
{
"status": "success",
"result": {
"id": "9581ab8ae3c121cdec9d57613006bae9014a28fb87de2c8c6348adac485d2d4e",
"action": "send",
"senders": [
{
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"public_key": "48c45b7e45cd415187216452fa22523e002ca042c2bd7205484f29201c3d5806f90e7aeebad37e3fbe01286c25d4027d3f3fec7b5647eff33c07ebd287b57242",
"amount": 5000,
"fee": 1,
"sign_r": "0",
"sign_s": "0"
}
],
"recipients": [
{
"address": "VDBlY2I4ZjA5MTUxOWE0MTIwNTRmZjlhYTM1YjYxMjcwNjM1YzcxYjlkMDZhZDUx",
"amount": 5000
}
],
"message": "",
"token": "WOOP",
"prev_hash": "0",
"timestamp": 234,
"scaled": 0
}
}
28 changes: 28 additions & 0 deletions api/v1/dist/example_responses/transaction-unsigned.json
@@ -0,0 +1,28 @@
{
"status": "success",
"result": {
"id": "8069e6049f7175229f8e05e5cf4cd5dacbc82cad08bfbd251408b6e980d90b04",
"action": "send",
"senders": [
{
"address": "VDBkYWQxZjZlZjllOTAzYzNiODQ0NmZkZTI4NDBhYmMzYjUxYThjM2E1ZjNkODlj",
"public_key": "48c45b7e45cd415187216452fa22523e002ca042c2bd7205484f29201c3d5806f90e7aeebad37e3fbe01286c25d4027d3f3fec7b5647eff33c07ebd287b57242",
"amount": 500000000000,
"fee": 100000000,
"sign_r": "0",
"sign_s": "0"
}
],
"recipients": [
{
"address": "VDBlY2I4ZjA5MTUxOWE0MTIwNTRmZjlhYTM1YjYxMjcwNjM1YzcxYjlkMDZhZDUx",
"amount": 500000000000
}
],
"message": "",
"token": "SUPERCOOL",
"prev_hash": "0",
"timestamp": 1529781499,
"scaled": 1
}
}d

0 comments on commit 1453e7a

Please sign in to comment.