Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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: 4 additions & 0 deletions src/main/java/org/arkecosystem/crypto/networks/Devnet.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

public class Devnet implements INetwork {

public int chainId() {
return 11812;
}

public int version() {
return 30;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

public interface INetwork {

int chainId();

int version();

int wif();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/arkecosystem/crypto/networks/Mainnet.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

public class Mainnet implements INetwork {

public int chainId() {
return 11811;
}

public int version() {
return 23;
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/arkecosystem/crypto/networks/Testnet.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

public class Testnet implements INetwork {

public int chainId() {
return 11812;
}

public int version() {
return 23;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class DevnetTest {

@Test
void chainId() {
assertEquals(11812, new Devnet().chainId());
}

@Test
void version() {
assertEquals(0x1E, new Devnet().version());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class MainnetTest {

@Test
void chainId() {
assertEquals(11811, new Mainnet().chainId());
}

@Test
void version() {
assertEquals(0x17, new Mainnet().version());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class TestnetTest {

@Test
void chainId() {
assertEquals(11812, new Testnet().chainId());
}

@Test
void version() {
assertEquals(0x17, new Testnet().version());
Expand Down
Loading