Skip to content
Permalink
Browse files

Updated the Pantheon interface and implementation to deprecate misspe…

…lt method names and add in the correct spelling.
  • Loading branch information...
rojotek committed Mar 28, 2019
1 parent f99ceb1 commit cadc01e4495136f1632cc125ee6b2de48aa4eb4a
@@ -38,7 +38,7 @@ public JsonRpc2_0Pantheon(Web3jService web3jService) {
}

@Override
public Request<?, BooleanResponse> clicqueDiscard(String address) {
public Request<?, BooleanResponse> cliqueDiscard(String address) {
return new Request<>(
"clique_discard",
Arrays.asList(address),
@@ -47,7 +47,7 @@ public JsonRpc2_0Pantheon(Web3jService web3jService) {
}

@Override
public Request<?, EthAccounts> clicqueGetSigners(DefaultBlockParameter defaultBlockParameter) {
public Request<?, EthAccounts> cliqueGetSigners(DefaultBlockParameter defaultBlockParameter) {
return new Request<>(
"clique_getSigners",
Arrays.asList(defaultBlockParameter.getValue()),
@@ -56,7 +56,7 @@ public JsonRpc2_0Pantheon(Web3jService web3jService) {
}

@Override
public Request<?, EthAccounts> clicqueGetSignersAtHash(String blockHash) {
public Request<?, EthAccounts> cliqueGetSignersAtHash(String blockHash) {
return new Request<>(
"clique_getSignersAtHash",
Arrays.asList(blockHash),
@@ -21,11 +21,32 @@ static Pantheon build(Web3jService web3jService) {

Request<?, BooleanResponse> minerStop();

Request<?, BooleanResponse> clicqueDiscard(String address);
/**
* @deprecated This is deprecated as the method name is wrong.
*/
default Request<?, BooleanResponse> clicqueDiscard(String address) {
return cliqueDiscard(address);
}

/**
* @deprecated This is deprecated as the method name is wrong.
*/
default Request<?, EthAccounts> clicqueGetSigners(DefaultBlockParameter defaultBlockParameter) {
return cliqueGetSigners(defaultBlockParameter);
}

/**
* @deprecated This is deprecated as the method name is wrong.
*/
default Request<?, EthAccounts> clicqueGetSignersAtHash(String blockHash) {
return cliqueGetSignersAtHash(blockHash);
}

Request<?, BooleanResponse> cliqueDiscard(String address);

Request<?, EthAccounts> clicqueGetSigners(DefaultBlockParameter defaultBlockParameter);
Request<?, EthAccounts> cliqueGetSigners(DefaultBlockParameter defaultBlockParameter);

Request<?, EthAccounts> clicqueGetSignersAtHash(String blockHash);
Request<?, EthAccounts> cliqueGetSignersAtHash(String blockHash);

Request<?, BooleanResponse> cliquePropose(String address, Boolean signerAddition);

0 comments on commit cadc01e

Please sign in to comment.
You can’t perform that action at this time.