import xrpGetAddress from "@ledgerhq/coin-xrp/signer/getAddress";
import { executeWithSigner } from "../../setup";
import Xrp from "@ledgerhq/hw-app-xrp";
import { signTransaction } from "./signTransaction";
export function getSigner(network) {
    switch (network) {
        case "ripple":
        case "xrp": {
            const createSigner = (transport) => {
                return new Xrp(transport);
            };
            return {
                getAddress: xrpGetAddress(executeWithSigner(createSigner)),
                signTransaction: signTransaction(executeWithSigner(createSigner)),
                context: executeWithSigner(createSigner),
            };
        }
    }
    throw new Error(`signer for ${network} not implemented`);
}
//# sourceMappingURL=index.js.map