kryptokrona / kryptokrona-api Goto Github PK
View Code? Open in Web Editor NEWKryptokrona API for caching and processing data from the blockchain.
Home Page: https://kryptokrona.org
License: Other
Kryptokrona API for caching and processing data from the blockchain.
Home Page: https://kryptokrona.org
License: Other
When doing a query with limit 0, it does not respect it. It's a bug with Ktorm atm.
We need after a certain time handle how we will clean the ArrayList for storing items in knownPoolTxsList so the garbage collector will free memory.
Kryptokrona API could host all data if the host of the API wants to. And if only Hugin messenges, they can use the standalone Hugin API.
In this footer add a text with "Powered by" and three logos:
Currently it's not running. Need to check up on the shadowJar.
For example Keycloak or something similar.
kryptokrona_api_backend | [main] INFO ktor.application - Autoreload is disabled because the development mode is off.
kryptokrona_api_backend | [main] INFO org.ktorm.database - Connected to jdbc:postgresql://db:5432/kryptokrona_api_dev, productName: PostgreSQL, productVersion: 15.2 (Debian 15.2-1.pgdg110+1), logger: org.ktorm.logging.Slf4jLoggerAdapter@6090f3ca, dialect: org.ktorm.support.postgresql.PostgreSqlDialect@37a64f9d
kryptokrona_api_backend | [main] INFO ktor.application - Application started in 0.64 seconds.
kryptokrona_api_backend | [DefaultDispatcher-worker-1] INFO HuginSyncer - Synchronizing data...
kryptokrona_api_backend | [DefaultDispatcher-worker-2] INFO ktor.application - Responding at http://0.0.0.0:8080
Setup new service functions and routes to provide this data.
General endpoints
/api/v1/blocks
/api/v1/hashrates
/api/v1/outputs
/api/v1/transactions
/api/v1/supplies (coin supply)
/api/v1/statistics (rewards, amount of posts, hashtags)
/api/v1/nodes (info about which is online/offline and such)
/api/v1/pools (info about which is online/offline and such)
/api/v1/info
Hugin endpoints
/api/v1/hashtags
/api/v1/posts
/api/v1/posts-encrypted
/api/v1/posts-encrypted-group
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
io.ktor:ktor-server-tests-jvm
, io.ktor:ktor-client-logging
, io.ktor:ktor-server-cors
, io.ktor:ktor-server-netty-jvm
, io.ktor:ktor-serialization-jackson-jvm
, io.ktor:ktor-server-metrics-micrometer
, io.ktor:ktor-server-openapi
, io.ktor:ktor-server-servlet
, io.ktor:ktor-serialization-kotlinx-json-jvm
, io.ktor:ktor-client-content-negotiation
, io.ktor:ktor-client-cio
, io.ktor:ktor-client-core
, io.ktor:ktor-utils-jvm
, io.ktor:ktor-server-content-negotiation-jvm
, io.ktor:ktor-server-core-jvm
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
ansible/roles/liquibase/tasks/main.yml
docker-compose.yml
Dockerfile
gradle 8-jdk17
openjdk 17.0.2
monitor/Dockerfile
node 18-alpine
node 18-alpine
.github/workflows/backend-ci.yml
actions/checkout v3
actions/setup-java v3
actions/upload-artifact v3
actions/checkout v3
actions/setup-java v3
actions/checkout v3
benjlevesque/short-sha v2.2
docker/login-action v2
actions/download-artifact v3
.github/workflows/backend-pr-ci.yml
actions/checkout v3
actions/checkout v3
actions/setup-java v3
actions/upload-artifact v3
actions/checkout v3
actions/setup-java v3
actions/checkout v3
benjlevesque/short-sha v2.2
actions/download-artifact v3
.github/workflows/deploy-cd.yml
actions/checkout v2
dawidd6/action-ansible-playbook v2
actions/checkout v3
actions/setup-python v4
.github/workflows/monitor-ci.yml
actions/checkout v3
actions/setup-node v3
actions/checkout v3
benjlevesque/short-sha v2.2
docker/login-action v2
.github/workflows/monitor-pr-ci.yml
actions/checkout v3
actions/setup-node v3
actions/checkout v3
benjlevesque/short-sha v2.2
gradle.properties
org.kryptokrona.sdk:kryptokrona-core 0.1.1
org.kryptokrona.sdk:kryptokrona-http 0.1.1
org.kryptokrona.sdk:kryptokrona-util 0.1.1
io.ktor:ktor-server-core-jvm 2.3.1
io.ktor:ktor-server-content-negotiation-jvm 2.3.1
io.ktor:ktor-utils-jvm 2.3.1
io.ktor:ktor-client-core 2.3.1
io.ktor:ktor-client-cio 2.3.1
io.ktor:ktor-client-content-negotiation 2.3.1
io.ktor:ktor-serialization-kotlinx-json-jvm 2.3.1
io.ktor:ktor-server-servlet 2.3.1
io.ktor:ktor-server-openapi 2.3.1
io.ktor:ktor-server-metrics-micrometer 2.3.1
io.micrometer:micrometer-registry-prometheus 1.11.0
io.ktor:ktor-serialization-jackson-jvm 2.3.1
io.ktor:ktor-server-netty-jvm 2.3.1
io.ktor:ktor-server-cors 2.3.1
io.ktor:ktor-client-logging 2.3.1
org.ktorm:ktorm-jackson 3.6.0
org.slf4j:slf4j-api 2.0.7
org.slf4j:slf4j-simple 2.0.7
org.ktorm:ktorm-support-postgresql 3.6.0
org.postgresql:postgresql 42.6.0
org.ktorm:ktorm-core 3.6.0
org.liquibase:liquibase-core 4.22.0
io.ktor:ktor-server-tests-jvm 2.3.1
org.jetbrains.kotlin:kotlin-test-junit 1.8.21
settings.gradle.kts
build.gradle.kts
org.jetbrains.kotlin.jvm 1.8.21
io.ktor.plugin 2.3.1
org.jetbrains.kotlin.plugin.serialization 1.8.21
org.liquibase.gradle 2.2.0
io.ktor:ktor-server-config-yaml-jvm 2.3.1
javax.xml.bind:jaxb-api 2.3.1
com.jessecorbett:diskord-bot 4.0.1
io.bkbn:kompendium-core 3.14.3
org.apache.commons:commons-dbcp2 2.9.0
info.picocli:picocli 4.7.3
ch.qos.logback:logback-core 1.4.7
ch.qos.logback:logback-classic 1.4.7
javax.xml.bind:jaxb-api 2.3.1
com.squareup:kotlinpoet 1.14.2
io.ktor:ktor-server-test-host-jvm 2.3.1
gradle/wrapper/gradle-wrapper.properties
gradle 8.1.1
monitor/src/app.html
font-awesome 6.4.0@sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==
monitor/package.json
@octokit/rest ^19.0.7
@sveltejs/adapter-static ^2.0.1
apexcharts ^3.37.1
dotenv ^16.0.3
keycloak-js ^21.0.1
prometheus-query ^3.3.1
@sveltejs/adapter-node ^1.2.1
@sveltejs/kit ^1.5.0
autoprefixer ^10.4.14
postcss ^8.4.21
prettier ^2.8.4
prettier-plugin-svelte ^2.9.0
sass ^1.59.3
svelte ^3.54.0
svelte-check ^3.0.1
svelte-preprocess ^5.0.2
tailwindcss ^3.2.7
tslib ^2.4.1
typescript ^5.0.0
vite ^4.0.0
Currently on dark mode it's white and it would probably look better with dark grey or black in some places.
Change from environment variables to set a node to contain a list of nodes and then switch if some node is getting unresponsive as a fall back mechanism.
Using Svelte in the frontend
dir. Create a simple dashboard with the Kryptokrona logo with charts from the statistics endpoint.
Currently we get an issue with the driver of PostgreSQL, will fix this later.
https://github.com/slatedocs/slate/wiki/Using-Slate-in-Docker
Setup a Docker container with Ansible and load this API specification.
For example one use case could be to change the Discord bot TOKEN and CHANNEL so we don't have to go into the Ansible code and set an environment variable. Among other things!
Currently we hard code the endpoint urls, we need to set a baseRoot path /api
instead.
Also other info from the repo just for fun.
Need to add .runCatching {}
to poolChangesClient.getPoolChangesLite()
and surround code below in it to avoid crashes.
Initially this will use a hardcoded TOKEN_ID and CHANNEL_ID. But will be later on a settings page on the frontend only accessible using Authentication!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.