Skip to content

Commit

Permalink
data layer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dkackman committed Sep 22, 2022
1 parent df25b33 commit a1237ae
Show file tree
Hide file tree
Showing 12 changed files with 2,546 additions and 1,035 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/chia-daemon/chia_daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class ChiaDaemon extends EventEmitter {
harvester: createRpcProxy(this, 'chia_harvester'),
crawler: createRpcProxy(this, 'chia_crawler'),
simulator: createRpcProxy(this, 'chia_full_node_simulator'),
data_layer: createRpcProxy(this, 'chia_data_layer'),
};
}

Expand Down
49 changes: 12 additions & 37 deletions packages/chia-daemon/openapi/crawler.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
openapi: 3.0.3
info:
description: >-
The Chia node and services come with a JSON RPC API server that allows you
to access information and control the services. These are accessible via
HTTPS, WebSockets, or via client SDKs. The ports can be configured in
`~/.chia/mainnet/config/config.yaml`. The RPC ports should not be exposed
to the internet. TLS certificates are used to secure the communication
[using mutualTLS](https://github.com/dkackman/chia-api/wiki/Mutual-TLS).
description: |-
The Chia node and services come with a JSON RPC API server that allows you to access information and control the services. These are accessible via HTTPS, WebSockets, or via client SDKs. The ports can be configured in `~/.chia/mainnet/config/config.yaml`. The RPC ports should not be exposed to the internet. TLS certificates are used to secure the communication [using mutualTLS](https://github.com/dkackman/chia-api/wiki/Mutual-TLS).
The crawler uses port 8561 by default.
version: 1.5.1
version: 1.6.0
title: Chia RPC
termsOfService: https://www.chia.net/assets/legal/Guidelines-for-Using-Chia-Network.pdf
contact:
Expand All @@ -32,9 +26,7 @@ components:
application/json:
schema:
type: object
description: >-
Success indicator and optional error message included in all
responses
description: Success indicator and optional error message included in all responses
required: &ref_0
- success
properties: &ref_1
Expand Down Expand Up @@ -132,17 +124,12 @@ components:
bearerAuth:
type: http
scheme: mutual
description: >-
-> Chia uses [mutualTLS
bearerAuth](https://github.com/dkackman/chia-api/wiki/Mutual-TLS) where
client and server share TLS keys.
description: '-> Chia uses [mutualTLS bearerAuth](https://github.com/dkackman/chia-api/wiki/Mutual-TLS) where client and server share TLS keys.'
tags:
- name: Shared
description: Methods shared by all services.
- name: Crawler
description: >-
The crawler RPC API is exposed, by default, on port 8561 and contains peer
metrics.
description: The crawler RPC API is exposed, by default, on port 8561 and contains peer metrics.
paths:
/stop_node:
post:
Expand Down Expand Up @@ -233,14 +220,10 @@ paths:
type: array
items:
type: object
description: >-
Chia's representation of a connection from node to
node.
description: Chia's representation of a connection from node to node.
properties: *ref_6
- type: object
description: >-
Success indicator and optional error message included in
all responses
description: Success indicator and optional error message included in all responses
required: *ref_0
properties: *ref_1
/healthz:
Expand All @@ -261,9 +244,7 @@ paths:
application/json:
schema:
type: object
description: >-
Success indicator and optional error message included in all
responses
description: Success indicator and optional error message included in all responses
required: *ref_0
properties: *ref_1
/get_routes:
Expand Down Expand Up @@ -291,9 +272,7 @@ paths:
items:
type: string
- type: object
description: >-
Success indicator and optional error message included in
all responses
description: Success indicator and optional error message included in all responses
required: *ref_0
properties: *ref_1
/get_peer_counts:
Expand Down Expand Up @@ -332,9 +311,7 @@ paths:
additionalProperties:
type: integer
- type: object
description: >-
Success indicator and optional error message included in
all responses
description: Success indicator and optional error message included in all responses
required: *ref_0
properties: *ref_1
/get_ips_after_timestamp:
Expand Down Expand Up @@ -383,9 +360,7 @@ paths:
total:
type: integer
- type: object
description: >-
Success indicator and optional error message included in
all responses
description: Success indicator and optional error message included in all responses
required: *ref_0
properties: *ref_1
externalDocs:
Expand Down
Loading

0 comments on commit a1237ae

Please sign in to comment.