// Generated by bynkc — do not edit by hand.
// composition root for `shop.orders` Worker.

import { type ServiceBinding } from "../../runtime.js";
import * as handlers from "./handlers.js";

export interface Env {
  SHOP_PAYMENT: ServiceBinding;
  LEDGER: DurableObjectNamespace;
}

type DurableObjectNamespace = { idFromName(name: string): { toString(): string }; get(id: any): any };

export function compose(env: Env) {
  const deps = { env };
  return {
    async place(id: any, cents: any) {
      return handlers.place.call(id, cents, deps);
    },
  };
}
