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