Commit Graph

120 Commits

Author SHA1 Message Date
calle
db27105d17 TokenV3 and new Mint startup in tests (#149)
* tokenv3 send and receive
* receive v2 and v1 tokens with tests
2023-03-28 22:35:22 +02:00
calle
70828b59d5 NUT-08 Lightning fee return (#114)
* skeleton

* works

* comments

* docsctrings ledger.py

* bump version to 0.10.

* fixes mypy stuff

* make format

* remove unwanted changes
2023-03-16 01:28:33 +01:00
calle
f3a31fd09e use settings module (#136)
* use settings module
2023-03-16 00:59:50 +01:00
calle
e8011a0f78 Type annotations for bdhke (#140)
* annotate dhke

* raise for errors

* remove backwards compatibility

* remove old code

* remove test code
2023-03-09 17:45:50 +01:00
calle
3333102327 lightning: add fakewallet (#134)
* lightning: add fakewallet

* make format

* fix mypy

* make backend configurable

* weird mypy
2023-03-07 17:49:27 +01:00
calle
5fdeecdc08 fix defaults for socks proxy and sat -> msat when ln is connected (#130) 2023-03-05 17:18:58 +01:00
calle
39e71b20d8 Mint database setting (#126)
* mint: new .env variable MINT_DATABASE

* make format
2023-03-05 11:13:55 +01:00
calle
a7eef68c97 wallet: load keys without keysets (#123)
* wallet: load keys without keysets

* fix cli
2023-03-05 02:51:20 +01:00
calle
23f2b58430 wallet: mint specific amounts (#121)
* wallet: mint specific amounts

* make format
2023-03-04 21:49:39 +01:00
calle
2d66aeb79c Fix invoice asyncio wrapper (#113)
* mypy: fix lightning backend warnings

* fix asyncio invoice creation

* ignore weird mypy error
2023-02-25 16:44:51 +01:00
calle
7e39e1b036 BREAKING: PostMeltRequest, CheckSpendableResponse ` (#106)
* fix PostMeltRequest and /checkfees to GET

* POST /check -> GET /check

* fix GetCheckSpendableResponse

* rename models

* make format

* revert GET

* bump version to 0.9

* skip nostr test
2023-01-30 09:13:46 +01:00
calle
e63db82641 update readme and errors for mint (#107) 2023-01-28 00:08:33 +01:00
calle
9acac156a7 Testing/click (#99)
* annotate context

* remove whitespace

* test CLI

* make format

* github action with submodule checkout

* maybe now

* vllt ja nu

* und no?

* back to normal mint running

* githuuuuub

* COME OOOON!

* SO. CLOSE.

* make format

* new test

* fix it

* make format

* receive v1 token test
2023-01-19 14:13:54 +01:00
calle
2dd9fd356f Fix/tokenv2mints (#98)
* adjust tokenv2 and make it backwards compatible

* fix dict to list

* use pydantic object and not the dtoken

* make format

* fix typo in _meltrequest_include_fields

* reorder functions

* fixes and tests working

* bump version to 0.8.3
2023-01-19 08:35:32 +01:00
callebtc
f2327409c4 allow cors 2023-01-15 10:03:37 +01:00
calle
56e78de78a adds cors (#96)
* adds cors

* make format
2023-01-15 09:57:55 +01:00
callebtc
97aee02e0c get rid of baggage 2023-01-14 21:31:09 +01:00
callebtc
3cbdebf5a5 BlindedMessages is now List[BlindedMessage] (no blinded_messages field) and PostMintRequest (new) is now with outputs field 2023-01-14 21:23:06 +01:00
callebtc
012987c356 clean 2023-01-11 03:03:12 +01:00
callebtc
fc5347d47d make format 2023-01-11 03:00:02 +01:00
callebtc
53a8387a0d refactor 2023-01-11 02:57:59 +01:00
callebtc
ff11e7878b mint: endpoint get pubkeys for keyset 2022-12-25 11:42:37 +01:00
callebtc
3d2c6540ab refactor invoice pending 2022-12-23 20:18:55 +01:00
callebtc
1082f2c9d1 refactor 2022-12-14 23:41:36 +01:00
callebtc
cdabc86ba9 defer unpending 2022-12-14 23:27:40 +01:00
callebtc
d08b8a00f6 check pending proofs 2022-12-14 22:50:25 +01:00
callebtc
78b5611301 default timestamp 2022-11-30 17:36:51 +01:00
callebtc
9f12abebff option to autosave keyset 2022-11-26 02:45:18 +01:00
calle
87ce591011 Merge pull request #60 from cashubtc/db/default_timestamp
default unix timestamp
2022-11-26 02:02:13 +01:00
callebtc
aaeb185d58 default unix timestamp 2022-11-26 01:52:35 +01:00
callebtc
519b375953 comments 2022-11-05 17:24:33 +01:00
callebtc
9ca2756f18 load newly generated keyset 2022-10-22 21:47:03 +02:00
callebtc
c110715f28 save lightning invoices 2022-10-18 11:16:30 +02:00
callebtc
6481a2d5cd coverage badge 2022-10-16 13:41:46 +02:00
callebtc
223a40e9bd bump version to 0.4.0 2022-10-15 01:08:35 +02:00
callebtc
6f913e3cc9 make format 2022-10-15 00:59:21 +02:00
callebtc
189fb7c5db force sorted dictionary for keyset calculation 2022-10-15 00:58:49 +02:00
callebtc
ee16b3e0f9 disable starlette_context 2022-10-15 00:19:44 +02:00
callebtc
167eaf89f2 remove comment 2022-10-14 01:02:19 +02:00
callebtc
d2363f8f2a wallet sends only relevant fields for /check endpoint 2022-10-14 00:30:24 +02:00
callebtc
5022d4e47f test melt without lightning 2022-10-14 00:05:47 +02:00
callebtc
a84b04605e refactor 2022-10-13 22:11:00 +02:00
callebtc
3437af041e ability to specify the keyset for generating promises mint 2022-10-13 20:07:04 +02:00
callebtc
fcc2c5c3e0 lnbits migrations work 2022-10-12 23:16:08 +02:00
callebtc
8721694785 can import, migration dont work yet 2022-10-12 20:52:35 +02:00
callebtc
65cba2aa84 idk 2022-10-11 10:47:08 +02:00
callebtc
fe9de4cbca restart imports 2022-10-11 10:08:05 +02:00
callebtc
7eb8ec8ccc make format 2022-10-11 00:49:27 +02:00
callebtc
74df219d6d mypy 2022-10-11 00:48:05 +02:00
callebtc
6838b0be05 mypy 2022-10-11 00:41:55 +02:00