import { BinaryReader } from '@agoric/cosmic-proto/codegen/binary.js';
import { MsgIncreaseCounter, MsgIncreaseCountResponse, } from '@agoric/cosmic-proto/codegen/cosmos/counter/v1/tx.js';
export class MsgClientImpl {
    rpc;
    constructor(rpc) {
        this.rpc = rpc;
        this.increaseCount = this.increaseCount.bind(this);
    }
    increaseCount(request) {
        const data = MsgIncreaseCounter.encode(request).finish();
        const promise = this.rpc.request('cosmos.counter.v1.Msg', 'IncreaseCount', data);
        return promise.then(data => MsgIncreaseCountResponse.decode(new BinaryReader(data)));
    }
}
export const createClientImpl = (rpc) => {
    return new MsgClientImpl(rpc);
};
//# sourceMappingURL=tx.rpc.msg.js.map