Removes hivemind
This commit is contained in:
parent
c387e31330
commit
440818c219
|
@ -1,3 +0,0 @@
|
||||||
<h1>Hivemind</h1>
|
|
||||||
|
|
||||||
Placeholder for a future <a class="text-secondary" href="https://bitcoinhivemind.com/">Bitcoin Hivemind</a> extension.
|
|
|
@ -1,24 +0,0 @@
|
||||||
from fastapi import APIRouter
|
|
||||||
from fastapi.staticfiles import StaticFiles
|
|
||||||
|
|
||||||
from lnbits.db import Database
|
|
||||||
from lnbits.helpers import template_renderer
|
|
||||||
|
|
||||||
db = Database("ext_hivemind")
|
|
||||||
|
|
||||||
hivemind_ext: APIRouter = APIRouter(prefix="/hivemind", tags=["hivemind"])
|
|
||||||
|
|
||||||
|
|
||||||
def hivemind_renderer():
|
|
||||||
return template_renderer(["lnbits/extensions/hivemind/templates"])
|
|
||||||
|
|
||||||
|
|
||||||
hivemind_static_files = [
|
|
||||||
{
|
|
||||||
"path": "/hivemind/static",
|
|
||||||
"app": StaticFiles(packages=[("lnbits", "extensions/hivemind/static")]),
|
|
||||||
"name": "hivemind_static",
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
from .views import * # noqa: F401,F403
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"name": "Hivemind",
|
|
||||||
"short_description": "Make cheap talk expensive!",
|
|
||||||
"tile": "/hivemind/static/image/hivemind.png",
|
|
||||||
"contributors": ["fiatjaf"]
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
# async def m001_initial(db):
|
|
||||||
# await db.execute(
|
|
||||||
# f"""
|
|
||||||
# CREATE TABLE hivemind.hivemind (
|
|
||||||
# id TEXT PRIMARY KEY,
|
|
||||||
# wallet TEXT NOT NULL,
|
|
||||||
# time TIMESTAMP NOT NULL DEFAULT {db.timestamp_now}
|
|
||||||
# );
|
|
||||||
# """
|
|
||||||
# )
|
|
|
@ -1,11 +0,0 @@
|
||||||
# from sqlite3 import Row
|
|
||||||
# from typing import NamedTuple
|
|
||||||
|
|
||||||
|
|
||||||
# class Example(NamedTuple):
|
|
||||||
# id: str
|
|
||||||
# wallet: str
|
|
||||||
#
|
|
||||||
# @classmethod
|
|
||||||
# def from_row(cls, row: Row) -> "Example":
|
|
||||||
# return cls(**dict(row))
|
|
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
|
@ -1,36 +0,0 @@
|
||||||
{% extends "base.html" %} {% from "macros.jinja" import window_vars with context
|
|
||||||
%} {% block page %}
|
|
||||||
<q-card>
|
|
||||||
<q-card-section>
|
|
||||||
<h5 class="text-subtitle1 q-mt-none q-mb-md">
|
|
||||||
This extension is just a placeholder for now.
|
|
||||||
</h5>
|
|
||||||
<p>
|
|
||||||
<a class="text-secondary" href="https://bitcoinhivemind.com/">Hivemind</a>
|
|
||||||
is a Bitcoin sidechain project for a peer-to-peer oracle protocol that
|
|
||||||
absorbs accurate data into a blockchain so that Bitcoin users can
|
|
||||||
speculate in prediction markets.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
These markets have the potential to revolutionize the emergence of
|
|
||||||
diffusion of knowledge in society and fix all sorts of problems in the
|
|
||||||
world.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
This extension will become fully operative when the
|
|
||||||
<a class="text-secondary" href="https://drivechain.xyz/">BIP300</a>
|
|
||||||
soft-fork gets activated and Bitcoin Hivemind is launched.
|
|
||||||
</p>
|
|
||||||
</q-card-section>
|
|
||||||
</q-card>
|
|
||||||
{% endblock %} {% block scripts %} {{ window_vars(user) }}
|
|
||||||
<script>
|
|
||||||
new Vue({
|
|
||||||
el: '#vue',
|
|
||||||
mixins: [windowMixin],
|
|
||||||
data: function () {
|
|
||||||
return {}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
|
@ -1,15 +0,0 @@
|
||||||
from fastapi.param_functions import Depends
|
|
||||||
from starlette.requests import Request
|
|
||||||
from starlette.responses import HTMLResponse
|
|
||||||
|
|
||||||
from lnbits.core.models import User
|
|
||||||
from lnbits.decorators import check_user_exists
|
|
||||||
|
|
||||||
from . import hivemind_ext, hivemind_renderer
|
|
||||||
|
|
||||||
|
|
||||||
@hivemind_ext.get("/", response_class=HTMLResponse)
|
|
||||||
async def index(request: Request, user: User = Depends(check_user_exists)):
|
|
||||||
return hivemind_renderer().TemplateResponse(
|
|
||||||
"hivemind/index.html", {"request": request, "user": user.dict()}
|
|
||||||
)
|
|
Loading…
Reference in New Issue
Block a user