Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Java 17
uses: actions/setup-java@v3
Expand All @@ -29,25 +29,25 @@ jobs:
run: ./gradlew test jacocoTestReport

- name: Upload Test Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/reports/tests/test

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: build/reports/jacoco/test/html

- name: Upload Jacoco XML Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jacoco-xml-report
path: build/reports/jacoco/test/jacocoTestReport.xml

- name: Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build/reports/jacoco/test/jacocoTestReport.xml
Expand Down
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