Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Jan 25, 2022
1 parent fe0ad34 commit 01b1cc1
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void getTransactionHashes() {
}

@Test
void transactionHashes_are_umodifiable() {
void transactionHashes_are_unmodifiable() {
assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() ->
ADDRESS_TRANSACTIONS.getTransactionHashes().clear()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void ignoresEmptyOutputs() {
}

@Test
void outputs_are_umodifiable() {
void outputs_are_unmodifiable() {
assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() ->
TRANSACTION.getOutputs().clear()
);
Expand Down Expand Up @@ -289,7 +289,7 @@ void ignoresEmptyInputs() {
}

@Test
void inputs_are_umodifiable() {
void inputs_are_unmodifiable() {
assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() ->
TRANSACTION.getInputs().clear()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void requests_transactions() {
}

@Test
void requestTransactionsInBackground_requests_transaction_details_in_backgorund() {
void requestTransactionsInBackground_requests_transaction_details_in_background() {
when(blockHeightService.getBlockHeight()).thenReturn(LAST_CHECKED_AT_BLOCK_HEIGHT);
mockAddressTransactionsFromProvider(requestKey, LOWEST, ADDRESS_TRANSACTIONS);
addressTransactionsService.requestTransactionsInBackground(ADDRESS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public String getNeighbourTransactions() {
.collect(Collectors.joining("\n"));
}

@ShellMethod(value = "Mark an address as owened", key = {"mark-address-as-owned", "owned"})
@ShellMethod(value = "Mark an address as owned", key = {"mark-address-as-owned", "owned"})
public String markAddressAsOwned(
@ShellOption(valueProvider = AddressCompletionProvider.class) CliAddress address,
@ShellOption(defaultValue = "") String description
Expand Down
2 changes: 1 addition & 1 deletion documentation/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ BitBook₿ mark-address-as-owned 35PWdG8CHar1dUj9RrYBneCyQcN6kzXqFS
OK
```

Similary, you can use `mark-address-as-foreign` and the shorthand version `foreign`.
Similarly, you can use `mark-address-as-foreign` and the shorthand version `foreign`.

Both commands accept an optional second argument to set the description for the address.

Expand Down
2 changes: 1 addition & 1 deletion documentation/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Furthermore, feel free to fix/change the code according to your needs, or commen
Please also have a look at [Technical Aspects](technical.md).

## Donations
If you want to, you may send Bitcoin donations, preferrably via the lightning network.
If you want to, you may send Bitcoin donations, preferably via the lightning network.
* Lightning network via keysend: `027ce055380348d7812d2ae7745701c9f93e70c1adeb2657f053f91df4f2843c71`
* Lightning network by opening a channel: `027ce055380348d7812d2ae7745701c9f93e70c1adeb2657f053f91df4f2843c71@157.90.112.145:9735`
* Lightning network via invoice: please contact me via [mail](mailto:[email protected])
Expand Down
2 changes: 1 addition & 1 deletion documentation/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ OK
```

### Transaction Descriptions
Similary, you can also set a description for a transaction:
Similarly, you can also set a description for a transaction:

```
BitBook₿ set-transaction-description f74b5dd425497eaabbee8562cf9b41b1f99ba7209d199ca0ac9c0aee4b4804c5 "Stuff from Pete"
Expand Down
2 changes: 1 addition & 1 deletion documentation/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Please have a look at [issue #2](https://github.com/C-Otto/BitBook/issues/2) and
What kind of export do you need?

## Which commands are available?
See [comands.md](commands.md).
See [commands.md](commands.md).

## How should I interpret the shown prices/values?
While the coin information is accurate to the Satoshi, for fiat (Euro) values only a single price per
Expand Down
4 changes: 2 additions & 2 deletions documentation/lnd.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Notes:
remote node as *foreign* may be wrong. To avoid this, for addresses already marked as *owned* the ownership is not
changed.
- If a transaction opens more than one channel, only one of these is mentioned in the description.
- Currently, BitBook is unable to determine all neccessary ownership information for addresses that result out of
- Currently, BitBook is unable to determine all necessary ownership information for addresses that result out of
unsettled HTLC transactions. See [issue #90](https://github.com/C-Otto/BitBook/issues/89).

### On-Chain Transactions
Expand All @@ -114,7 +114,7 @@ BitBook is able to distinguish the following transaction types:

For transactions that send funds from `lnd`'s wallet, the source and change addresses are marked as owned, and
the description "lnd" is set for the addresses.
This is only done if all addresses are alreayd marked as owned and if no label is set for the transaction (in `lnd`).
This is only done if all addresses are already marked as owned and if no label is set for the transaction (in `lnd`).

3. **Channel Opening Transactions**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void not_array() throws IOException {
}

@Test
void two_transactionss() throws IOException {
void two_transactions() throws IOException {
String json = "{\"transactions\":[" +
"{\"tx_hash\": \"a\", \"total_fees\": \"12\", \"amount\": \"900\", \"label\": \"\"}," +
"{\"tx_hash\": \"b\", \"total_fees\": \"0\", \"amount\": \"111\", \"label\": \"xxx\"}" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void adds_description_for_settlement_address() {
}

@Test
void does_not_add_description_for_ambigous_settlement_address() {
void does_not_add_description_for_ambiguous_settlement_address() {
load(AMBIGUOUS_SETTLEMENT_ADDRESS);
verify(addressDescriptionService, never()).set(any(), eq(DEFAULT_DESCRIPTION));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void unknown_transaction_details() {
}

@Test
void nonnegative_amount() {
void non_negative_amount() {
OnchainTransaction transaction = new OnchainTransaction(
SPEND_TRANSACTION.getTransactionHash(),
SPEND_TRANSACTION.getLabel(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void sets_ownership_for_other_outputs() {
@Nested
class PoolAccountDepositFailure {
@Test
void nonnegative_amount() {
void non_negative_amount() {
OnchainTransaction transaction = new OnchainTransaction(
POOL_ACCOUNT_DEPOSIT.getTransactionHash(),
POOL_ACCOUNT_DEPOSIT.getLabel(),
Expand Down

0 comments on commit 01b1cc1

Please sign in to comment.