@medialane/sdk 0.176.0 → 0.177.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8646,10 +8646,9 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
8648
8648
|
|
|
8649
|
-
type DeploymentStep = "creating-passkey" | "deploying"
|
|
8649
|
+
type DeploymentStep = "creating-passkey" | "deploying";
|
|
8650
8650
|
interface DeploymentResult {
|
|
8651
8651
|
sealed: SealedOwner;
|
|
8652
|
-
siwsToken: string;
|
|
8653
8652
|
}
|
|
8654
8653
|
declare function deploySponsored(input: {
|
|
8655
8654
|
proxyUrl: string;
|
|
@@ -8681,12 +8680,10 @@ interface DeploymentDeps {
|
|
|
8681
8680
|
unlockOwnerKey(sealed: SealedOwner): Promise<string>;
|
|
8682
8681
|
};
|
|
8683
8682
|
provider: () => ProviderInterface;
|
|
8684
|
-
backendUrl: string;
|
|
8685
8683
|
deployProxyUrl?: string;
|
|
8686
8684
|
fetchImpl?: typeof fetch;
|
|
8687
8685
|
deploySponsoredImpl?: typeof deploySponsored;
|
|
8688
8686
|
deploySelfFundedImpl?: typeof deploySelfFunded;
|
|
8689
|
-
requestSiwsTokenImpl?: typeof requestSiwsToken;
|
|
8690
8687
|
waitUntilDeployedImpl?: typeof waitUntilDeployed;
|
|
8691
8688
|
isDeployedImpl?: typeof isDeployed;
|
|
8692
8689
|
}
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -8646,10 +8646,9 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
8648
8648
|
|
|
8649
|
-
type DeploymentStep = "creating-passkey" | "deploying"
|
|
8649
|
+
type DeploymentStep = "creating-passkey" | "deploying";
|
|
8650
8650
|
interface DeploymentResult {
|
|
8651
8651
|
sealed: SealedOwner;
|
|
8652
|
-
siwsToken: string;
|
|
8653
8652
|
}
|
|
8654
8653
|
declare function deploySponsored(input: {
|
|
8655
8654
|
proxyUrl: string;
|
|
@@ -8681,12 +8680,10 @@ interface DeploymentDeps {
|
|
|
8681
8680
|
unlockOwnerKey(sealed: SealedOwner): Promise<string>;
|
|
8682
8681
|
};
|
|
8683
8682
|
provider: () => ProviderInterface;
|
|
8684
|
-
backendUrl: string;
|
|
8685
8683
|
deployProxyUrl?: string;
|
|
8686
8684
|
fetchImpl?: typeof fetch;
|
|
8687
8685
|
deploySponsoredImpl?: typeof deploySponsored;
|
|
8688
8686
|
deploySelfFundedImpl?: typeof deploySelfFunded;
|
|
8689
|
-
requestSiwsTokenImpl?: typeof requestSiwsToken;
|
|
8690
8687
|
waitUntilDeployedImpl?: typeof waitUntilDeployed;
|
|
8691
8688
|
isDeployedImpl?: typeof isDeployed;
|
|
8692
8689
|
}
|
package/dist/starknet/index.js
CHANGED
|
@@ -12673,17 +12673,8 @@ async function completeDeployment(deps, onStep, options = {}) {
|
|
|
12673
12673
|
}
|
|
12674
12674
|
onStep("deploying");
|
|
12675
12675
|
await deployWallet(deps, { ownerAddress: sealed.address, ownerPubKey: sealed.ownerPubKey, privateKeyHex });
|
|
12676
|
-
onStep("signing-in");
|
|
12677
|
-
const address = sealed.address;
|
|
12678
|
-
const siwsToken = await (deps.requestSiwsTokenImpl ?? requestSiwsToken)({
|
|
12679
|
-
backendUrl: deps.backendUrl,
|
|
12680
|
-
walletAddress: address,
|
|
12681
|
-
signer: {
|
|
12682
|
-
signMessage: async (td) => signWithPrivateKey(privateKeyHex, typedData.getMessageHash(td, address))
|
|
12683
|
-
}
|
|
12684
|
-
});
|
|
12685
12676
|
deps.store.notifyChange();
|
|
12686
|
-
return { sealed
|
|
12677
|
+
return { sealed };
|
|
12687
12678
|
}
|
|
12688
12679
|
function createDeploymentCoordinator(execute) {
|
|
12689
12680
|
let inFlight = null;
|
|
@@ -12738,12 +12729,10 @@ function canRemoveDevice(devices, guid) {
|
|
|
12738
12729
|
function createMediaWallet(config) {
|
|
12739
12730
|
const ttl = config.unlockTtlMs ?? 2e4;
|
|
12740
12731
|
const deployments = createDeploymentCoordinator((onStep, options) => {
|
|
12741
|
-
if (!config.backendUrl) throw new Error("This wallet has no backend url configured for sign-in");
|
|
12742
12732
|
const deps = {
|
|
12743
12733
|
store: config.store,
|
|
12744
12734
|
passkey: config.passkey,
|
|
12745
12735
|
provider: config.provider,
|
|
12746
|
-
backendUrl: config.backendUrl,
|
|
12747
12736
|
deployProxyUrl: config.deployProxyUrl,
|
|
12748
12737
|
fetchImpl: config.fetchImpl
|
|
12749
12738
|
};
|