-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* - #482 Generate Account/Wallet from root prv key - Wallet: search utxos by address vkh * Add logging and support for account key wallets in tests * Fix Sonarqube warnings * Fix Sonarqube warnings
- Loading branch information
Showing
14 changed files
with
1,011 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
254 changes: 197 additions & 57 deletions
254
core/src/main/java/com/bloxbean/cardano/client/account/Account.java
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
core/src/main/java/com/bloxbean/cardano/client/account/AccountException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.bloxbean.cardano.client.account; | ||
|
||
public class AccountException extends RuntimeException { | ||
public AccountException() { | ||
} | ||
|
||
public AccountException(String msg) { | ||
super(msg); | ||
} | ||
|
||
public AccountException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public AccountException(String msg, Throwable cause) { | ||
super(msg, cause); | ||
} | ||
} |
223 changes: 223 additions & 0 deletions
223
core/src/test/java/com/bloxbean/cardano/client/account/AccountTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> | ||
<!-- Console Appender --> | ||
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | ||
<param name="Target" value="System.out" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" /> | ||
</layout> | ||
</appender> | ||
<!-- Info Log File Appender --> | ||
<appender name="info-log" class="org.apache.log4j.FileAppender"> | ||
<param name="File" value="info.log" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" /> | ||
</layout> | ||
<filter class="org.apache.log4j.varia.LevelRangeFilter"> | ||
<param name="LevelMin" value="debug" /> | ||
<param name="LevelMax" value="info" /> | ||
<param name="AcceptOnMatch" value="true" /> | ||
</filter> | ||
</appender> | ||
<!-- Error Log File Appender --> | ||
<appender name="error-log" class="org.apache.log4j.FileAppender"> | ||
<param name="Append" value="false" /> | ||
<param name="File" value="yaci_error.log" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" /> | ||
</layout> | ||
<filter class="org.apache.log4j.varia.LevelRangeFilter"> | ||
<param name="LevelMin" value="warn" /> | ||
<param name="LevelMax" value="fatal" /> | ||
<param name="AcceptOnMatch" value="true" /> | ||
</filter> | ||
</appender> | ||
<!-- <logger name="com.bloxbean.cardano">--> | ||
<!-- <appender-ref ref="info-log" />--> | ||
<!-- <appender-ref ref="error-log" />--> | ||
<!-- </logger>--> | ||
<root> | ||
<level value="debug" /> | ||
<appender-ref ref="console" /> | ||
</root> | ||
</log4j:configuration> |
Oops, something went wrong.