Skip to content

Commit

Permalink
change devnet occurences to testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Jan 25, 2019
1 parent 98b953b commit 1de9bb9
Show file tree
Hide file tree
Showing 12 changed files with 212 additions and 35 deletions.
13 changes: 13 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

165 changes: 165 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ String address = account.getAddress();

Create a Node and learn a few things about blockchain:
```
Node node = new Node("https://nodes.test-0network.com/", Account.TESTNET);
Node node = new Node("https://nodes.testnet-0bsnetwork.com/", Account.TESTNET);
System.out.println("Current height is " + node.getHeight());
System.out.println("My balance is " + node.getBalance(address));
System.out.println("With 100 confirmations: " + node.getBalance(address, 100));
Expand Down Expand Up @@ -69,7 +69,7 @@ node.send(tx);

Create a DEX order:
```
Node matcher = new Node("https://nodes.dev-zbsnetwork.com", Account.MAINNNET);
Node matcher = new Node("https://nodes.testnet-0bsnetwork.com", Account.MAINNNET);
String matcherKey = matcher.getMatcherKey();
String zbtcId = "Fmg13HEHJHuZYbtJq8Da8wifJENq8uBxDuWoP9pVe2Qe";
Order order = matcher.createOrder(alice, matcherKey,
Expand Down
4 changes: 2 additions & 2 deletions examples/src/main/java/NodeExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void main(String[] args) throws IOException, URISyntaxException {
// and its address
String address = alice.getAddress();

// Create a Node ("https://nodes.dev-0bsnetwork.com" by default, or you can pass another URL here)
// Create a Node ("https://nodes.testnet-0bsnetwork.com" by default, or you can pass another URL here)
Node node = new Node();

// Get blockchain height
Expand Down Expand Up @@ -81,7 +81,7 @@ public static void main(String[] args) throws IOException, URISyntaxException {

// Matcher interaction
//
Node matcher = new Node("https://nodes.dev-0bsnetwork.com", 'Z');
Node matcher = new Node("https://nodes.testnet-0bsnetwork.com", 'Z');
String matcherKey = matcher.getMatcherKey();

// Create an order
Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/java/SendAssetExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void main(String[] args) throws IOException, URISyntaxException {
// and its address
String address = alice.getAddress();

// Create a Node ("https://nodes.dev-0bsnetwork.com" by default, or you can pass another URL here)
// Create a Node ("https://nodes.testnet-0bsnetwork.com" by default, or you can pass another URL here)
Node node = new Node();

// Get blockchain height
Expand Down
6 changes: 3 additions & 3 deletions examples/src/main/java/SpreadBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public static SpreadBot testnetInstance() throws IOException, URISyntaxException
return new SpreadBot(
PrivateKeyAccount.fromPrivateKey("25Um7fKYkySZnweUEVAn9RLtxN5xHRd7iqpqYSMNQEeT", Account.TESTNET),
new AssetPair(Asset.ZBS, "Fmg13HEHJHuZYbtJq8Da8wifJENq8uBxDuWoP9pVe2Qe"),
"https://nodes.dev-0bsnetwork.com",
"https://nodes.dev-0bsnetwork.com", 'T');
"https://nodes.testnet-0bsnetwork.com",
"https://nodes.testnet-0bsnetwork.com", 'T');
}

public static SpreadBot mainnetInstance() throws IOException, URISyntaxException {
String nodeUrl = "http://nodes.dev-0bsnetwork.com";
String nodeUrl = "http://nodes.testnet-0bsnetwork.com";
return new SpreadBot(
PrivateKeyAccount.fromSeed(
"abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/zbsnetwork/zbsjava/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.*;

public class Node {
private static final String DEFAULT_NODE = "https://nodes.dev-0bsnetwork.com";
private static final String DEFAULT_NODE = "https://nodes.testnet-0bsnetwork.com";

private static final TypeReference<OrderBook> ORDER_BOOK = new TypeReference<OrderBook>() {
};
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/zbsnetwork/zbsjava/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void testValidator() throws IOException {
public void testAliasGet() throws IOException, URISyntaxException {
String addr = "3PA1KvFfq9VuJjg45p2ytGgaNjrgnLSgf4r";
String alias = "blackturtle";
Node node = new Node("https://nodes.dev-0bsnetwork.com", 'Z');
Node node = new Node("https://nodes.testnet-0bsnetwork.com", 'Z');
assertEquals(node.getAddrByAlias(alias), addr);
}
}
25 changes: 0 additions & 25 deletions zbsjava.iml

This file was deleted.

0 comments on commit 1de9bb9

Please sign in to comment.