Vincenzo Palazzo
82b4df9975
Merge pull request #10 from vincenzopalazzo/macros/check-forvalidity
...
plugin: avoid to expose a custom branch
2024-03-26 15:09:44 +01:00
Vincenzo Palazzo
0511bd57a8
nix: remove the custom commit of cln
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-26 15:03:24 +01:00
Vincenzo Palazzo
3ecafbc523
plugin: avoid to expose a custom branch
...
Please see: https://github.com/ElementsProject/lightning/pull/7171
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-26 15:03:24 +01:00
Vincenzo Palazzo
997ae766bf
Merge pull request #9 from vincenzopalazzo/macros/check-forvalidity
...
plugin: check if the offer is valid
2024-03-23 18:37:44 +01:00
Vincenzo Palazzo
73b452adfe
plugin: check if the offer is valid
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-23 18:26:19 +01:00
Vincenzo Palazzo
f40386cdfd
Merge pull request #8 from vincenzopalazzo/macros/fix
...
plugin: check the error before accessing response
2024-03-20 20:12:33 +01:00
Vincenzo Palazzo
e4d22e0091
plugin: check the error before accessing response
...
panic: interface conversion: interface {} is nil, not string
goroutine 1 [running]:
github.com/cln-reckless/cln4go.plugin/pkg/plugin.OceanPay(0xc0000bc000, 0xc0000b2e40)
/home/vincent/github/work/ocean/ocean-ln/cln-offers/pkg/plugin/pay.go:51 +0x985
github.com/vincenzopalazzo/cln4go/plugin.(*rpcMethod[...]).Call(...)
/home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/command.go:12
github.com/vincenzopalazzo/cln4go/plugin.(*Plugin[...]).callRPCMethod(0xc000036120, {0xc000012a90?, 0x9}, 0x51bbe0)
/home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/plugin.go:147 +0x5a
github.com/vincenzopalazzo/cln4go/plugin.(*Plugin[...]).Start(0x576820)
/home/vincent/github/work/ocean/ocean-ln/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/plugin.go:219 +0x156
main.main()
/home/vincent/github/work/ocean/ocean-ln/cln-offers/cmd/plugin.go:17 +0x291
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-20 20:04:14 +01:00
Vincenzo Palazzo
30e635c0db
Merge pull request #6 from vincenzopalazzo/macros/proof
...
proof of invoice request
2024-03-04 12:58:36 +01:00
Vincenzo Palazzo
fdb00dcd88
test: proof of request by a ocean node
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-04 12:51:37 +01:00
Vincenzo Palazzo
8c40f5bb6d
deps: update cln4go lib
...
Link: https://github.com/vincenzopalazzo/cln-offers/issues/5
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-03-04 12:51:19 +01:00
Vincenzo Palazzo
c2ae4fbe26
Merge pull request #4 from vincenzopalazzo/macros/proof
...
build: set the rust log env variable
2024-02-29 17:52:49 +01:00
Vincenzo Palazzo
030586bf18
tests: add the check to proof that we pay the node
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-29 17:44:13 +01:00
Vincenzo Palazzo
2704bc5a38
build: set the rust log env variable
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-29 15:13:14 +01:00
Vincenzo Palazzo
f4a982eb4c
Merge pull request #3 from vincenzopalazzo/macros/cln-offer
...
fix: improve the response information for the ocean-pay
2024-02-29 15:07:09 +01:00
Vincenzo Palazzo
b1eac19ffc
fix: improve the response information for the ocean-pay
...
This will improve the information of the ocean pay command
by adding all the information that we need as an RPC response
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-29 14:51:55 +01:00
Vincenzo Palazzo
f695910d5b
Merge pull request #2 from vincenzopalazzo/macros/cln-offer
...
simulation payout system
2024-02-27 17:47:49 +01:00
Vincenzo Palazzo
e1749a4c2b
plugin: refactoring pay implementation
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-27 17:39:57 +01:00
Vincenzo Palazzo
bb11169d8e
sim: add simple simulation of the payout
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-27 17:38:31 +01:00
Vincenzo Palazzo
3a95f266d7
Merge pull request #1 from vincenzopalazzo/macros/cln-offer
...
plugin: init the structure of the plugins
2024-02-26 18:04:33 +01:00
Vincenzo Palazzo
fb7e3cb24e
tests: write simple test
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-25 16:07:30 +01:00
Vincenzo Palazzo
47d0435d53
ci: fix the rust ci
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-23 12:31:11 +01:00
Vincenzo Palazzo
b7799b7116
plugin: init the structure of the plugins
...
This commit adds a basic configuration for the plugin structure
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-02-23 12:12:55 +01:00
Vincenzo Palazzo
8e9dde5159
Initial commit
2024-02-22 11:10:05 +01:00