All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.polkadot.rpc.core.IRpc Maven / Gradle / Ivy

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();

}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy