Skip to content

Commit cd51e46

Browse files
sstonedpad85
andauthored
Rename package eclair to lightning (#252)
Co-authored-by: dpad85 <[email protected]>
1 parent cdaac28 commit cd51e46

File tree

181 files changed

+1372
-1376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+1372
-1376
lines changed

BUILD.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Building
22

3-
Eclair-kmp is a [Kotlin Multiplatform](https://kotlinlang.org/docs/multiplatform.html) library.
3+
lightning-kmp is a [Kotlin Multiplatform](https://kotlinlang.org/docs/multiplatform.html) library.
44
It can run on many different platforms, including mobile devices (iOS and Android).
55

66
## Requirements
@@ -21,8 +21,8 @@ brew install gmp
2121
You should start by cloning the repository locally:
2222

2323
```sh
24-
git clone [email protected]:ACINQ/eclair-kmp.git
25-
cd eclair-kmp
24+
git clone [email protected]:ACINQ/lightning-kmp.git
25+
cd lightning-kmp
2626
```
2727

2828
To build the project library and install it locally, you can run:

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to Eclair Multi-Platform
1+
# Contributing to the lightning-kmp project
22

3-
Eclair welcomes contributions in the form of peer review, testing and patches.
3+
ACINQ welcomes contributions in the form of peer review, testing and patches.
44
This document explains the practical process and guidelines for contributing.
55

66
While developing a Lightning implementation is an exciting project that spans many domains
@@ -9,7 +9,7 @@ represents real money and introducing bugs or security vulnerabilities can have
99
consequences than in typical projects. In the world of cryptocurrencies, even the smallest bug in
1010
the wrong area can cost users a significant amount of money.
1111

12-
If you're looking for somewhere to start contributing, check out the [good first issue](https://github.com/ACINQ/eclair-kmp/issues?q=is%3Aopen+is%3Aissue+label%3A"good+first+issue") list.
12+
If you're looking for somewhere to start contributing, check out the [good first issue](https://github.com/ACINQ/lightning-kmp/issues?q=is%3Aopen+is%3Aissue+label%3A"good+first+issue") list.
1313

1414
Another way to start contributing is by adding tests or improving them.
1515
This will help you understand the different parts of the codebase and how they work together.
@@ -22,7 +22,7 @@ some pointers and feedback from experienced contributors. It will also ensure th
2222
duplicating work that someone else is doing.
2323

2424
We use Github issues only for, well, issues (mostly bugs that need to be investigated).
25-
You can also use Github issues for [feature requests](https://github.com/ACINQ/eclair-kmp/issues?q=is%3Aissue+label%3A"feature+request").
25+
You can also use Github issues for [feature requests](https://github.com/ACINQ/lightning-kmp/issues?q=is%3Aissue+label%3A"feature+request").
2626

2727
## Recommended Reading
2828

@@ -35,7 +35,7 @@ You can also use Github issues for [feature requests](https://github.com/ACINQ/e
3535

3636
## Recommended Skillset
3737

38-
Eclair KMP uses [Kotlin Multiplatform](https://kotlinlang.org/docs/reference/multiplatform.html) with [Kotlin Coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html).
38+
lightning-kmp uses [Kotlin Multiplatform](https://kotlinlang.org/docs/reference/multiplatform.html) with [Kotlin Coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html).
3939
Good understanding of these technologies is required to contribute.
4040
There are a lot of good resources online to learn about them.
4141

@@ -78,7 +78,7 @@ made between versions (since Github doesn't easily show prior versions) and it m
7878
the PR author as they can set it to auto-squash the fixup commits on rebase.
7979

8080
It's recommended to take great care in writing tests and ensuring the entire test suite has a
81-
stable successful outcome; eclair uses continuous integration techniques and having a stable build
81+
stable successful outcome; lightning-kmp uses continuous integration techniques and having a stable build
8282
helps the reviewers with their job.
8383

8484
Contributors should follow the default Kotlin coding style guide. If you use IntelliJ:
@@ -96,7 +96,7 @@ You can find setup instructions [here](https://help.github.com/en/github/authent
9696

9797
### Commit Message
9898

99-
Eclair keeps a clean commit history on the master branch with well-formed commit messages.
99+
lightning-kmp keeps a clean commit history on the master branch with well-formed commit messages.
100100

101101
Here is a model Git commit message:
102102

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
22
[![Gitter chat](https://img.shields.io/badge/chat-on%20gitter-red.svg)](https://gitter.im/ACINQ/developers)
33

4-
**Eclair-kmp** is a [Kotlin Multiplatform](https://kotlinlang.org/docs/multiplatform.html) implementation of the Lightning Network optimized for mobile wallets.
4+
**lightning-kmp** is a [Kotlin Multiplatform](https://kotlinlang.org/docs/multiplatform.html) implementation of the Lightning Network optimized for mobile wallets.
55
It can run on many different platforms, including mobile devices (iOS and Android).
66

77
This software implements the [Lightning Network Specifications (BOLTs)](https://github.com/lightningnetwork/lightning-rfc).
@@ -19,15 +19,15 @@ Read [this article](https://medium.com/@ACINQ/when-ios-cdf798d5f8ef) for more de
1919

2020
## Installation
2121

22-
See instructions [here](https://github.com/ACINQ/eclair-kmp/blob/master/BUILD.md) to build and test the library.
22+
See instructions [here](https://github.com/ACINQ/lightning-kmp/blob/master/BUILD.md) to build and test the library.
2323

2424
## Contributing
2525

2626
We use GitHub for bug tracking. Search the existing issues for your bug and create a new one if needed.
2727

2828
Contribute to the project by submitting pull requests.
2929
Review is done by members of the ACINQ team.
30-
Please read the guidelines [here](https://github.com/ACINQ/eclair-kmp/blob/master/CONTRIBUTING.md).
30+
Please read the guidelines [here](https://github.com/ACINQ/lightning-kmp/blob/master/CONTRIBUTING.md).
3131

3232
## Resources
3333

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ plugins {
88
}
99

1010
allprojects {
11-
group = "fr.acinq.eclair"
12-
version = "1.0-beta10"
11+
group = "fr.acinq.lightning"
12+
version = "snapshot"
1313

1414
repositories {
1515
mavenLocal()
@@ -48,7 +48,7 @@ kotlin {
4848
implementation(kotlin("test-common"))
4949
implementation(kotlin("test-annotations-common"))
5050
implementation("org.kodein.memory:kodein-memory-files:0.4.1")
51-
implementation(project(":eclair-kmp-test-fixtures"))
51+
implementation(project(":lightning-kmp-test-fixtures"))
5252
}
5353
}
5454

docker-local-test/TESTING.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Manual tests with Docker
22

3-
`eclair-kmp` includes a simple `Node` test program that simulates a Phoenix can and can be used to test against local eclair nodes. To run it just start `Node` in the `jvmTest` package. It will start an `eclair-kmp` node, connect it to a
4-
hardcoded `eclair` node (that must already be running)
5-
and read and parse text inputs from Idea's console.
3+
This project includes a simple `Node` test program that runs a lightning-kmp node and test it against local [eclair](https://github.com/ACINQ/eclair) nodes (eclair is our reference implementation). To run it just start `Node` in the `jvmTest` package. It will start a lightning-kmp node, connect it to a hardcoded [eclair](https://github.com/ACINQ/eclair) node (that must already be running), and read and parse text inputs from Idea's console.
64

75
Tests use a small docker environment:
86

@@ -11,10 +9,10 @@ Tests use a small docker environment:
119
- a bitcoind container
1210
- 2 eclair containers, nodes A and B
1311

14-
For testing, A simulates horizon/endurance and B simulates a node we want to exchange payments with.
12+
For testing, A simulates the endurance node, and B simulates a node we want to exchange payments with.
1513

1614
```
17-
B <--> A <--> eclair-kmp
15+
B <--> A <--> lightning-kmp
1816
1917
```
2018

@@ -42,13 +40,13 @@ $ ./env.sh btc-start elx-start
4240

4341
You can check that they're running with `./env.sh btc-logs` and `./env.sh elx-logs`
4442

45-
## Start eclair nodes
43+
## Start the two eclair nodes (`node A` and `node B`)
4644

4745
```
4846
$ ./env.sh ecl-start
4947
```
5048

51-
You can check that they're running properly and start using their APIss:
49+
You can check that they're running properly and start using their APIs:
5250

5351
```
5452
$ docker exec eclair-nodeA ./eclair-cli -p foobar getinfo
@@ -62,9 +60,9 @@ $ docker exec eclair-nodeB ./eclair-cli -p foobar connect --uri=039dc0e0b1d25905
6260
$ docker exec eclair-nodeB ./eclair-cli -p foobar open --nodeId=039dc0e0b1d25905e44fdf6f8e89755a5e219685840d0bc1d28d3308f9628a3585 --fundingSatoshis=200000 --pushMsat=50000000
6361
```
6462

65-
## Start eclair-kmp
63+
## Start lightning-kmp
6664

67-
From Idea, start the `Node` class in `jvmTest`. It should automatically connect to node A. Get your eclair-kmp node Id from the console logs and open a channel from node A:
65+
From Idea, start the `Node` class in `jvmTest`. It should automatically connect to node A. Get your lightning-kmp node id from the console logs and open a channel from node A:
6866

6967
```
7068
docker exec eclair-nodeA ./eclair-cli -p foobar open --nodeId=03af0ed6052cf28d670665549bc86f4b721c9fdb309d40c58f5811f63966e005d0 --fundingSatoshis=200000 --pushMsat=50000000
@@ -90,4 +88,4 @@ Generate a payment request on node B:
9088
docker exec eclair-nodeB ./eclair-cli -p foobar createinvoice --description=test --amountMsat=50000
9189
```
9290

93-
In the Idea console, type `pay` and paste the generated payment request
91+
In the Idea console, type `pay` and paste the generated payment request.

eclair-kmp-test-fixtures/src/commonMain/kotlin/fr/acinq/eclair/tests/utils/testLogger.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.

eclair-kmp-test-fixtures/src/iosMain/kotlin/fr/acinq/eclair/tests/utils/testLoggerIos.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

eclair-kmp-test-fixtures/src/jvmMain/kotlin/fr/acinq/eclair/tests/utils/testLoggerJvm.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.

eclair-kmp-test-fixtures/src/linuxMain/kotlin/fr/acinq/eclair/tests/utils/testLoggerLinux.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)