org.polkadot.rpc.core.IRpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polkadot-java Show documentation
Show all versions of polkadot-java Show documentation
Java Polkadot API, this is a clone of https://github.com/polkadot-java/api
The newest version!
package org.polkadot.rpc.core;
import com.onehilltech.promises.Promise;
import org.polkadot.direct.IRpcFunction;
import org.polkadot.direct.ISection;
public interface IRpc {
//abstract class RpcInterfaceMethod implements IRpcFunction {
// String subscription;
//
// @Override
// public abstract Promise invoke(Object... params);
//
// abstract Promise unsubscribe(int id);
//}
//T : () -> {}
//T : codec
//abstract class RpcInterfaceMethodNew implements IFunction {
// //String subscription;
//
// abstract Promise invoke(Object... params);
//
// //abstract Promise<> unsubscribe(int id);
//}
class RpcInterfaceSection extends ISection {
//Map methods = new HashMap<>();
//@Override
//public IFunction function(String function) {
// return methods.get(function);
//}
}
RpcInterfaceSection author();
RpcInterfaceSection chain();
RpcInterfaceSection state();
RpcInterfaceSection system();
}