Skip to content

Commit

Permalink
feat: Simplify examples.
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Sabadello <markus@danubetech.com>
  • Loading branch information
peacekeeper committed Jul 16, 2020
1 parent 70d2b9c commit 1bbba45
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 59 deletions.
28 changes: 13 additions & 15 deletions resolver/java/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@
<artifactId>uni-resolver-examples</artifactId>
<packaging>jar</packaging>
<name>uni-resolver-examples</name>

<parent>
<groupId>decentralized-identity</groupId>
<artifactId>uni-resolver</artifactId>
<version>0.2-SNAPSHOT</version>
</parent>

<repositories>
<repository>
<id>danubtech-maven-snapshots</id>
<url>https://repo.danubetech.com/repository/maven-snapshots/</url>
</repository>
<repository>
<id>danubtech-maven-releases</id>
<url>https://repo.danubetech.com/repository/maven-releases/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>decentralized-identity</groupId>
Expand All @@ -25,28 +35,16 @@
<version>0.2-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>uni-resolver-driver-did-work</artifactId>
<version>0.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>uni-resolver-driver-did-stack</artifactId>
<version>0.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>uni-resolver-driver-did-sov</artifactId>
<version>0.1.0</version>
<version>0.2-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>uni-resolver-driver-did-btcr</artifactId>
<version>0.1.0</version>
<version>0.2-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class TestDriverDidBtcr {
public static void main(String[] args) throws Exception {

DidBtcrDriver driver = new DidBtcrDriver();
driver.setBitcoinConnection(BlockcypherAPIBitcoinConnection.get());
driver.setBitcoinConnectionTestnet(BlockcypherAPIBitcoinConnection.get());

ResolveResult ResolveResult = driver.resolve("did:btcr:xz35-jznz-q6mr-7q6");
System.out.println(ResolveResult.toJson());
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args) throws Exception {
uniResolver.getDriver(DidSovDriver.class).setLibIndyPath("./sovrin/lib/");
uniResolver.getDriver(DidSovDriver.class).setPoolConfigs("_;./sovrin/mainnet.txn;staging;./sovrin/stagingnet.txn;builder;./sovrin/buildernet.txn;danube;./sovrin/danube.txn");
uniResolver.getDriver(DidSovDriver.class).setPoolVersions("_;2;staging;2;builder;2;danube;2");
uniResolver.getDriver(DidBtcrDriver.class).setBitcoinConnection(BlockcypherAPIBitcoinConnection.get());
uniResolver.getDriver(DidBtcrDriver.class).setBitcoinConnectionTestnet(BlockcypherAPIBitcoinConnection.get());

ResolveResult ResolveResult1 = uniResolver.resolve("did:sov:WRfXPg8dantKVubE3HX8pw");
System.out.println(ResolveResult1.toJson());
Expand Down

0 comments on commit 1bbba45

Please sign in to comment.