Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

no longer maintenance update in README for kaia migration #378

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)

# NO LONGER MAINTAINED

Since the launch of Kaia Blockchain this repository has been parked in favour of the new open-source projects in [Kaia's Github](https://github.com/kaiachain). Contributors have now moved there continuing with massive open-source contributions to our blockchain ecosystem. A big thank you to everyone who has contributed to this repository. For more information about Klaytn's chain merge with Finschia blockchain please refer to the launching of Kaia blockchain - [kaia.io](https://kaia.io/).

---


[![CircleCI](https://circleci.com/gh/klaytn/caver-java/tree/dev.svg?style=svg)](https://circleci.com/gh/klaytn/caver-java/tree/dev)
[![Gitter](https://badges.gitter.im/klaytn/Caver-java.svg)](https://gitter.im/klaytn/Caver-java?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Expand Down
51 changes: 26 additions & 25 deletions core/src/test/java/com/klaytn/caver/common/rpc/RpcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1187,31 +1187,32 @@ public void getFeeHistoryTest() throws IOException, InterruptedException {
checkFeeHistoryResult(feeHistoryResult, blockCount, rewardPercentiles);
}

@Test
public void createAccessListTest() throws IOException {
Block block = caver.rpc.klay.getBlockByNumber(DefaultBlockParameterName.LATEST).send();
Quantity gasPrice = caver.rpc.klay.getGasPrice().send();
BigInteger blockNumber = new BigInteger(caver.utils.stripHexPrefix(block.getResult().getNumber()), 16);
String blockHash = block.getResult().getHash();
CallObject callObject = CallObject.createCallObject(
LUMAN.getAddress(),
WAYNE.getAddress(),
BigInteger.valueOf(100000),
gasPrice.getValue(),
BigInteger.valueOf(1)
);
AccessListResult accessListResult = caver.rpc.klay.createAccessList(callObject, DefaultBlockParameterName.LATEST).send();
checkAccessListResult(accessListResult.getResult());

accessListResult = caver.rpc.klay.createAccessList(callObject, new DefaultBlockParameterNumber(blockNumber)).send();
checkAccessListResult(accessListResult.getResult());

accessListResult = caver.rpc.klay.createAccessList(callObject, blockNumber).send();
checkAccessListResult(accessListResult.getResult());

accessListResult = caver.rpc.klay.createAccessList(callObject, blockHash).send();
checkAccessListResult(accessListResult.getResult());
}
// Disabled
// @Test
// public void createAccessListTest() throws IOException {
// Block block = caver.rpc.klay.getBlockByNumber(DefaultBlockParameterName.LATEST).send();
// Quantity gasPrice = caver.rpc.klay.getGasPrice().send();
// BigInteger blockNumber = new BigInteger(caver.utils.stripHexPrefix(block.getResult().getNumber()), 16);
// String blockHash = block.getResult().getHash();
// CallObject callObject = CallObject.createCallObject(
// LUMAN.getAddress(),
// WAYNE.getAddress(),
// BigInteger.valueOf(100000),
// gasPrice.getValue(),
// BigInteger.valueOf(1)
// );
// AccessListResult accessListResult = caver.rpc.klay.createAccessList(callObject, DefaultBlockParameterName.LATEST).send();
// checkAccessListResult(accessListResult.getResult());

// accessListResult = caver.rpc.klay.createAccessList(callObject, new DefaultBlockParameterNumber(blockNumber)).send();
// checkAccessListResult(accessListResult.getResult());

// accessListResult = caver.rpc.klay.createAccessList(callObject, blockNumber).send();
// checkAccessListResult(accessListResult.getResult());

// accessListResult = caver.rpc.klay.createAccessList(callObject, blockHash).send();
// checkAccessListResult(accessListResult.getResult());
// }

// checkAccessListResult checks whether given AcccessListResultData instance is right or not.
private void checkAccessListResult(AccessListResult.AccessListResultData accessListResultData) {
Expand Down
15 changes: 8 additions & 7 deletions core/src/test/java/com/klaytn/caver/legacy/feature/RpcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,14 @@ public void testGetProtocolVersion() throws Exception {
assertNotNull(result);
}

@Ignore
@Test
public void testGetRewardbase() throws Exception {
Bytes20 response = caver.klay().getRewardbase().send();
// Result - If requested from non-CN nodes
assertEquals("rewardbase must be explicitly specified", response.getError().getMessage());
}
// Disabled
// @Ignore
// @Test
// public void testGetRewardbase() throws Exception {
// Bytes20 response = caver.klay().getRewardbase().send();
// // Result - If requested from non-CN nodes
// assertEquals("rewardbase must be explicitly specified", response.getError().getMessage());
// }

@Test
@Ignore
Expand Down
Loading