@keplr-ewallet/ewallet-sdk-core
Version:
31 lines • 1.3 kB
JavaScript
import { sendMsgToIframe } from "./window_msg/send_msg_to_iframe";
import { showModal } from "./api/show_modal";
import { signIn } from "./api/sign_in";
import { signOut } from "./api/sign_out";
import { getPublicKey } from "./api/get_public_key";
import { getEmail } from "./api/get_email";
import { hideModal } from "./api/hide_modal";
import { makeSignature } from "./api/make_signature";
import { initState } from "./api/init_state";
import { on } from "./api/on";
import { EventEmitter2 } from "./event";
export class KeplrEWallet {
constructor(apiKey, iframe, sdkEndpoint) {
this.showModal = showModal.bind(this);
this.hideModal = hideModal.bind(this);
this.sendMsgToIframe = sendMsgToIframe.bind(this);
this.signIn = signIn.bind(this);
this.signOut = signOut.bind(this);
this.getPublicKey = getPublicKey.bind(this);
this.getEmail = getEmail.bind(this);
this.makeSignature = makeSignature.bind(this);
this.initState = initState.bind(this);
this.on = on.bind(this);
this.apiKey = apiKey;
this.iframe = iframe;
this.sdkEndpoint = sdkEndpoint;
this.origin = window.location.origin;
this.eventEmitter = new EventEmitter2();
}
}
//# sourceMappingURL=keplr_ewallet.js.map