Skip to content

Commit

Permalink
only socket server needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
lAmeR1 committed Mar 22, 2023
1 parent 0f8eb7f commit db9b611
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 1,349 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
context: .
push: true
tags: supertypo/kaspa-rest-server:${{github.ref_name}}, supertypo/kaspa-rest-server:latest
tags: lamer1/kaspa-socket-server:${{github.ref_name}}, lamer1/kaspa-socket-server:latest
file: ./docker/Dockerfile
build-args: |
version=${{github.ref_name}}
148 changes: 0 additions & 148 deletions endpoints/get_address_transactions.py

This file was deleted.

45 changes: 0 additions & 45 deletions endpoints/get_balance.py

This file was deleted.

18 changes: 1 addition & 17 deletions endpoints/get_blockdag.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
# encoding: utf-8
from typing import List

from pydantic import BaseModel
from server import kaspad_client

from server import app, kaspad_client


class BlockdagResponse(BaseModel):
networkName: str = "kaspa-mainnet"
blockCount: str = "260890"
headerCount: str = "2131312"
tipHashes: List[str] = ["78273854a739e3e379dfd34a262bbe922400d8e360e30e3f31228519a334350a"]
difficulty: float = 3870677677777.2
pastMedianTime: str = "1656455670700"
virtualParentHashes: List[str] = ["78273854a739e3e379dfd34a262bbe922400d8e360e30e3f31228519a334350a"]
pruningPointHash: str = "5d32a9403273a34b6551b84340a1459ddde2ae6ba59a47987a6374340ba41d5d",
virtualDaaScore: str = "19989141"


@app.get("/info/blockdag", response_model=BlockdagResponse, tags=["Kaspa network info"])
async def get_blockdag():
"""
Get some global Kaspa BlockDAG information
Expand Down
36 changes: 0 additions & 36 deletions endpoints/get_blockreward.py

This file was deleted.

Loading

0 comments on commit db9b611

Please sign in to comment.