Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
93f9c57
added .idea to gitignore
vinicius-almeida-bitso Sep 22, 2022
68cc9fb
added WIP grpc impl
vinicius-almeida-bitso Sep 23, 2022
b7b1de2
identation
vinicius-almeida-bitso Sep 23, 2022
b1321fd
identation
vinicius-almeida-bitso Sep 23, 2022
4370311
identation
vinicius-almeida-bitso Sep 23, 2022
98b727e
remove no args constructor
vinicius-almeida-bitso Sep 23, 2022
19fa03e
added new grpc client
vinicius-almeida-bitso Sep 30, 2022
c53e352
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
d70b1a4
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
b4f807d
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
61fce4b
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
1bb3f26
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
0309275
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
e58081d
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
02b885f
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
e45e2ea
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
1d43afc
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
ddedb58
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
5a20c8f
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
4c1dfb3
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
6a6345b
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
4ada8f6
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
33ac999
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
54cdb0d
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
e2c03da
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
2d815f9
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
8b21cbb
test indentation gh
vinicius-almeida-bitso Oct 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ target/

# Project-specific patterns
logs/
cloc_analysis_14122015.txt
cloc_analysis_14122015.txt

.idea/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Other dependencies:
If you want to test locally (i.e. not checking in changes to github and doing a jitpack release), run `mvn install`, which will publish jars to your local maven repo as such:
"com.github.bitsoex.btcd-cli4j:btcd-cli4j-core:1.0-SNAPSHOT"

```
Make sure about setting the SDK 8 version for the project when using maven install from IDEA or set your JAVA_HOME to Java 1.8 when using it from terminal
```

In your code depending upon this library, change your dependency to this snapshot version. You might need to instruct your gradle to search your local maven, so add this to your build.gradle file:

repositories {
Expand Down
93 changes: 49 additions & 44 deletions core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.bitsoex.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>btcd-cli4j-core</artifactId>
<packaging>jar</packaging>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.bitsoex.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>btcd-cli4j-core</artifactId>
<packaging>jar</packaging>

<name>btcd-cli4j Core</name>
<description>A set of tools for working with the JSON-RPC API provided by Bitcoin Core</description>
<name>btcd-cli4j Core</name>
<description>A set of tools for working with the JSON-RPC API provided by Bitcoin Core</description>

<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang.version}</version>
</dependency>
</dependencies>
</project>
Copy link
Author

@vinicius-almeida-bitso vinicius-almeida-bitso Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a weird not visible indentation here, so I applied a reformat here.

<dependencies>
<dependency>
<groupId>com.github.bitsoex.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-proto</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Properties;

import com.bitso.model.BtcdServiceProto;
import com.neemre.btcdcli4j.core.BitcoindException;
import com.neemre.btcdcli4j.core.CommunicationException;
import com.neemre.btcdcli4j.core.domain.Account;
Expand Down Expand Up @@ -167,6 +169,8 @@ List<? extends Object> getRawMemPool(Boolean isDetailed) throws BitcoindExceptio

String getRawTransaction(String txId) throws BitcoindException, CommunicationException;

Optional<BtcdServiceProto.GetRawTransactionResponse> getRawTransactionResponse(String txId);

Object getRawTransaction(String txId, Integer verbosity) throws BitcoindException,
CommunicationException;

Expand Down
Loading