@medialane/sdk 0.145.0 → 0.147.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.
@@ -1,5 +1,5 @@
1
- import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner, b$ as CreatedOwner } from '../errors-SGwgtvtF.cjs';
2
- export { c0 as InvalidRecoveryKeyError, c1 as OwnerSigner, by as PasskeyCancelledError, c2 as PasskeyConfig, c3 as RecoveryKey, bQ as UserFacingError, c4 as createPasskeyOwner, c5 as encodeRecoveryKey, c6 as parseRecoveryKey } from '../errors-SGwgtvtF.cjs';
1
+ import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner, b$ as CreatedOwner } from '../errors-BU-LJRp3.cjs';
2
+ export { c0 as InvalidRecoveryKeyError, c1 as OwnerSigner, by as PasskeyCancelledError, c2 as PasskeyConfig, c3 as RecoveryKey, bQ as UserFacingError, c4 as createPasskeyOwner, c5 as encodeRecoveryKey, c6 as parseRecoveryKey } from '../errors-BU-LJRp3.cjs';
3
3
  import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
4
4
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.cjs';
5
5
  import 'zod';
@@ -582,14 +582,12 @@ interface FundingWallet {
582
582
  txHash: string;
583
583
  }>;
584
584
  }
585
- /** A wallet adapter throws this only when it is certain nothing was broadcast: a rejected prompt, or no sponsor available. */
586
585
  declare class FundingTransferNotSentError extends Error {
587
586
  constructor(message?: string);
588
587
  }
589
588
  type Res<T> = Promise<{
590
589
  data: T;
591
590
  }>;
592
- /** The funding calls with the caller's sign-in already bound. */
593
591
  interface FundingApi {
594
592
  createFunding(input: {
595
593
  method: string;
@@ -7969,13 +7967,6 @@ declare function ownerConstructorCalldata(ownerPubkey: BigNumberish): string[];
7969
7967
  declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumberish): string;
7970
7968
 
7971
7969
  declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
7972
- interface OwnerAliveProof {
7973
- newOwnerPubkey: BigNumberish;
7974
- signature: string[];
7975
- expiration: number;
7976
- }
7977
- declare function ownerAliveTypedData(newOwnerGuid: string, expiration: number, chainId: string): TypedData;
7978
- declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish, ownerAlive?: OwnerAliveProof): Call;
7979
7970
  declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
7980
7971
  declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
7981
7972
  declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
@@ -8059,13 +8050,11 @@ declare function describeRecoveryAction(escape: EscapeInfo): RecoveryAction;
8059
8050
 
8060
8051
  declare function normalizeWalletAddress(address: string): string;
8061
8052
  declare function isValidStarknetAddress(address: string): boolean;
8062
- /** Whether a contract is deployed at the address. Throws when the read itself fails, so a failed read is never "not deployed". */
8063
8053
  declare function isDeployed(provider: ReceiptProviderLike, address: string): Promise<boolean>;
8064
8054
 
8065
8055
  interface SelfFundFeeEstimate {
8066
8056
  feeRaw: bigint;
8067
8057
  unit: string;
8068
- /** The wallet's balance of the fee token; `null` when it could not be read. */
8069
8058
  balanceRaw: bigint | null;
8070
8059
  }
8071
8060
  type SelfFundConsentHandler = (feeEstimate: Promise<SelfFundFeeEstimate | null>) => Promise<boolean>;
@@ -8138,6 +8127,15 @@ interface DeploymentDeps {
8138
8127
  declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
8139
8128
  forceNew?: boolean;
8140
8129
  }): Promise<DeploymentResult>;
8130
+ interface DeploymentCoordinator {
8131
+ run(onStep: (step: DeploymentStep) => void, options?: {
8132
+ forceNew?: boolean;
8133
+ }): Promise<DeploymentResult>;
8134
+ isDeploying(): boolean;
8135
+ }
8136
+ declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
8137
+ forceNew?: boolean;
8138
+ }) => Promise<DeploymentResult>): DeploymentCoordinator;
8141
8139
 
8142
8140
  interface DeviceEntry {
8143
8141
  guid: string;
@@ -8182,27 +8180,23 @@ interface MediaWallet {
8182
8180
  completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
8183
8181
  forceNew?: boolean;
8184
8182
  }): Promise<DeploymentResult>;
8183
+ isDeploying(): boolean;
8185
8184
  }
8186
8185
  declare function createMediaWallet(config: MediaWalletConfig): MediaWallet;
8187
8186
 
8188
8187
  interface SessionWallet {
8189
8188
  walletAddress: string;
8190
- /** The wallet's key is not set up yet: call `setupSessionWalletKey`. */
8191
8189
  needsKeySetup: boolean;
8192
8190
  }
8193
- /**
8194
- * The wallet of the account behind the session, saved as this device's account. `null` only when the account has
8195
- * no wallet; a failed lookup throws, so it is never mistaken for an account without one.
8196
- */
8197
8191
  declare function adoptSessionWallet(api: Pick<ApiClient, "getSessionWallet">, saveAddress: (walletAddress: string) => void): Promise<SessionWallet | null>;
8198
- interface SessionWalletKeyDeps {
8192
+ interface SessionWalletClaimDeps {
8199
8193
  createOwnerKey(): Promise<CreatedOwner>;
8194
+ loadOwner(): SealedOwner | null;
8200
8195
  saveOwner(sealed: SealedOwner): void;
8201
- now?(): number;
8196
+ removeOwner(sealed: SealedOwner, ownerGuid: string): Promise<unknown>;
8202
8197
  }
8203
- /** Creates the owner key and makes it the only owner of the session account's wallet. */
8204
- declare function setupSessionWalletKey(api: Pick<ApiClient, "setupWalletKey">, walletAddress: string, deps: SessionWalletKeyDeps): Promise<void>;
8198
+ declare function claimSessionWallet(api: Pick<ApiClient, "setupWalletKey">, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
8205
8199
 
8206
8200
  type StarknetVenueSigner = VenueSigner<TypedData, Call>;
8207
8201
 
8208
- export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletKeyDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerAliveTypedData, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, setupSessionWalletKey, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
8202
+ export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletClaimDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
@@ -1,5 +1,5 @@
1
- import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner, b$ as CreatedOwner } from '../errors-DUiebYFo.js';
2
- export { c0 as InvalidRecoveryKeyError, c1 as OwnerSigner, by as PasskeyCancelledError, c2 as PasskeyConfig, c3 as RecoveryKey, bQ as UserFacingError, c4 as createPasskeyOwner, c5 as encodeRecoveryKey, c6 as parseRecoveryKey } from '../errors-DUiebYFo.js';
1
+ import { bG as ResolvedConfig, bO as TxResult, a$ as CreatePopCollectionParams, aM as ClaimConditions, aX as CreateDropParams, b4 as CreateTicketParams, bq as MintTicketsParams, aZ as CreateMembershipParams, bp as MintMembershipsParams, b2 as CreateSponsorshipOfferParams, bD as ProposeSponsorshipParams, k as ApiClient, bn as MedialaneConfig, bo as MedialaneErrorCode, bv as OrderDetails, R as ResolvedFeeConfig, I as ApiFundingIntent, H as ApiFundingInstructions, L as ApiFundingSubmit, N as ApiIntentCreated, bW as SealedOwner, bX as ReceiptProviderLike, bY as WalletExecutor, bZ as ExecutedTransaction, b_ as PasskeyOwner, b$ as CreatedOwner } from '../errors-CTfk25XX.js';
2
+ export { c0 as InvalidRecoveryKeyError, c1 as OwnerSigner, by as PasskeyCancelledError, c2 as PasskeyConfig, c3 as RecoveryKey, bQ as UserFacingError, c4 as createPasskeyOwner, c5 as encodeRecoveryKey, c6 as parseRecoveryKey } from '../errors-CTfk25XX.js';
3
3
  import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload, Account } from 'starknet';
4
4
  import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-CuSlc_YE.js';
5
5
  import 'zod';
@@ -582,14 +582,12 @@ interface FundingWallet {
582
582
  txHash: string;
583
583
  }>;
584
584
  }
585
- /** A wallet adapter throws this only when it is certain nothing was broadcast: a rejected prompt, or no sponsor available. */
586
585
  declare class FundingTransferNotSentError extends Error {
587
586
  constructor(message?: string);
588
587
  }
589
588
  type Res<T> = Promise<{
590
589
  data: T;
591
590
  }>;
592
- /** The funding calls with the caller's sign-in already bound. */
593
591
  interface FundingApi {
594
592
  createFunding(input: {
595
593
  method: string;
@@ -7969,13 +7967,6 @@ declare function ownerConstructorCalldata(ownerPubkey: BigNumberish): string[];
7969
7967
  declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumberish): string;
7970
7968
 
7971
7969
  declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
7972
- interface OwnerAliveProof {
7973
- newOwnerPubkey: BigNumberish;
7974
- signature: string[];
7975
- expiration: number;
7976
- }
7977
- declare function ownerAliveTypedData(newOwnerGuid: string, expiration: number, chainId: string): TypedData;
7978
- declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish, ownerAlive?: OwnerAliveProof): Call;
7979
7970
  declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
7980
7971
  declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
7981
7972
  declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
@@ -8059,13 +8050,11 @@ declare function describeRecoveryAction(escape: EscapeInfo): RecoveryAction;
8059
8050
 
8060
8051
  declare function normalizeWalletAddress(address: string): string;
8061
8052
  declare function isValidStarknetAddress(address: string): boolean;
8062
- /** Whether a contract is deployed at the address. Throws when the read itself fails, so a failed read is never "not deployed". */
8063
8053
  declare function isDeployed(provider: ReceiptProviderLike, address: string): Promise<boolean>;
8064
8054
 
8065
8055
  interface SelfFundFeeEstimate {
8066
8056
  feeRaw: bigint;
8067
8057
  unit: string;
8068
- /** The wallet's balance of the fee token; `null` when it could not be read. */
8069
8058
  balanceRaw: bigint | null;
8070
8059
  }
8071
8060
  type SelfFundConsentHandler = (feeEstimate: Promise<SelfFundFeeEstimate | null>) => Promise<boolean>;
@@ -8138,6 +8127,15 @@ interface DeploymentDeps {
8138
8127
  declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
8139
8128
  forceNew?: boolean;
8140
8129
  }): Promise<DeploymentResult>;
8130
+ interface DeploymentCoordinator {
8131
+ run(onStep: (step: DeploymentStep) => void, options?: {
8132
+ forceNew?: boolean;
8133
+ }): Promise<DeploymentResult>;
8134
+ isDeploying(): boolean;
8135
+ }
8136
+ declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
8137
+ forceNew?: boolean;
8138
+ }) => Promise<DeploymentResult>): DeploymentCoordinator;
8141
8139
 
8142
8140
  interface DeviceEntry {
8143
8141
  guid: string;
@@ -8182,27 +8180,23 @@ interface MediaWallet {
8182
8180
  completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
8183
8181
  forceNew?: boolean;
8184
8182
  }): Promise<DeploymentResult>;
8183
+ isDeploying(): boolean;
8185
8184
  }
8186
8185
  declare function createMediaWallet(config: MediaWalletConfig): MediaWallet;
8187
8186
 
8188
8187
  interface SessionWallet {
8189
8188
  walletAddress: string;
8190
- /** The wallet's key is not set up yet: call `setupSessionWalletKey`. */
8191
8189
  needsKeySetup: boolean;
8192
8190
  }
8193
- /**
8194
- * The wallet of the account behind the session, saved as this device's account. `null` only when the account has
8195
- * no wallet; a failed lookup throws, so it is never mistaken for an account without one.
8196
- */
8197
8191
  declare function adoptSessionWallet(api: Pick<ApiClient, "getSessionWallet">, saveAddress: (walletAddress: string) => void): Promise<SessionWallet | null>;
8198
- interface SessionWalletKeyDeps {
8192
+ interface SessionWalletClaimDeps {
8199
8193
  createOwnerKey(): Promise<CreatedOwner>;
8194
+ loadOwner(): SealedOwner | null;
8200
8195
  saveOwner(sealed: SealedOwner): void;
8201
- now?(): number;
8196
+ removeOwner(sealed: SealedOwner, ownerGuid: string): Promise<unknown>;
8202
8197
  }
8203
- /** Creates the owner key and makes it the only owner of the session account's wallet. */
8204
- declare function setupSessionWalletKey(api: Pick<ApiClient, "setupWalletKey">, walletAddress: string, deps: SessionWalletKeyDeps): Promise<void>;
8198
+ declare function claimSessionWallet(api: Pick<ApiClient, "setupWalletKey">, walletAddress: string, deps: SessionWalletClaimDeps): Promise<void>;
8205
8199
 
8206
8200
  type StarknetVenueSigner = VenueSigner<TypedData, Call>;
8207
8201
 
8208
- export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletKeyDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerAliveTypedData, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, setupSessionWalletKey, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
8202
+ export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatedOwner, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, type DeployingServiceId, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, ExecutedTransaction, type FeeSurface, type FundWithTransferOptions, type FundingApi, type FundingResult, type FundingStep, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, type GuardianInfo, type GuardianStatus, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, type MediaWallet, type MediaWalletConfig, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, type OwnerStore, POPCollectionABI, POPFactoryABI, type PairingPayload, type ParsedAdminHeaders, PasskeyOwner, PopService, type ReceiptLike, type ReceiptProvider, ReceiptProviderLike, type RecoveryAction, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionWallet, type SessionWalletClaimDeps, type SiwsSigner, SponsoredCallRejectedError, type SponsoredDeps, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, WalletExecutor, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
@@ -350,7 +350,6 @@ var ApiClient = class {
350
350
  getActiveOrdersForToken(contract, tokenId) {
351
351
  return this.get(`/v1/orders/token/${this.addr(contract)}/${tokenId}`);
352
352
  }
353
- /** Offers others made on the address's assets. */
354
353
  getReceivedOffers(address, opts = {}) {
355
354
  const params = new URLSearchParams({ page: String(opts.page ?? 1), limit: String(opts.limit ?? 50) });
356
355
  return this.get(`/v1/orders/received/${this.addr(address)}?${params}`);
@@ -509,7 +508,6 @@ var ApiClient = class {
509
508
  uploadMetadata(metadata) {
510
509
  return this.post("/v1/metadata/upload", metadata);
511
510
  }
512
- /** Pins several JSON files as one IPFS directory, e.g. a drop's token metadata. */
513
511
  async uploadMetadataDirectory(files) {
514
512
  const res = await this.post("/v1/metadata/upload-directory", { files });
515
513
  return res.data;
@@ -563,7 +561,6 @@ var ApiClient = class {
563
561
  headers: this.asSubject(siwsToken)
564
562
  });
565
563
  }
566
- /** @deprecated Use the funding methods (`createFunding`, or `fundWithChainTransfer` from `@medialane/sdk/starknet`). This call only nudges a legacy scanner and never credits anything itself. */
567
564
  checkDeposit(txHash, siwsToken) {
568
565
  return this.request("/v1/portal/credits/check", {
569
566
  method: "POST",
@@ -755,14 +752,9 @@ var ApiClient = class {
755
752
  async verifyEmailCode(email, code) {
756
753
  await this.post("/v1/auth/email/verify-code", { email, code });
757
754
  }
758
- /**
759
- * Makes the passkey the only owner of the session account's wallet. `signature` is the passkey's owner-alive
760
- * proof for the wallet. Answers 409 when the wallet is already set up.
761
- */
762
755
  setupWalletKey(params) {
763
756
  return this.post("/v1/users/me/wallet/key", params);
764
757
  }
765
- /** The session account's wallet, and whether its passkey still has to be set up (`setupWalletKey`). */
766
758
  async getSessionWallet() {
767
759
  const body = await this.post("/v1/users/me/wallet", {});
768
760
  return body.walletAddress ? { walletAddress: body.walletAddress, needsKeySetup: body.needsKeySetup === true } : null;
@@ -12429,12 +12421,11 @@ function computeAccountAddress(ownerPubkey, salt = 0) {
12429
12421
  }
12430
12422
  var STARKNET_SIGNER_TYPE = "0x537461726b6e6574205369676e6572";
12431
12423
  var OPTION_NONE = "0x1";
12432
- var OPTION_SOME = "0x0";
12433
12424
  var SIGNER_STARKNET = "0x0";
12434
12425
  function computeOwnerGuid(ownerPubkey) {
12435
12426
  return hash.computePoseidonHash(STARKNET_SIGNER_TYPE, num.toHex(ownerPubkey));
12436
12427
  }
12437
- function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd, ownerAlive) {
12428
+ function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd) {
12438
12429
  return {
12439
12430
  contractAddress: accountAddress,
12440
12431
  entrypoint: "change_owners",
@@ -12443,55 +12434,10 @@ function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd, ownerAlive) {
12443
12434
  ...guidsToRemove,
12444
12435
  num.toHex(pubkeysToAdd.length),
12445
12436
  ...pubkeysToAdd.flatMap((p) => [SIGNER_STARKNET, num.toHex(p)]),
12446
- ...ownerAlive ? ownerAliveCalldata(ownerAlive) : [OPTION_NONE]
12437
+ OPTION_NONE
12447
12438
  ]
12448
12439
  };
12449
12440
  }
12450
- function ownerAliveTypedData(newOwnerGuid, expiration, chainId) {
12451
- return {
12452
- types: {
12453
- StarknetDomain: [
12454
- { name: "name", type: "shortstring" },
12455
- { name: "version", type: "shortstring" },
12456
- { name: "chainId", type: "shortstring" },
12457
- { name: "revision", type: "shortstring" }
12458
- ],
12459
- "Owner Alive": [
12460
- { name: "Owner GUID", type: "felt" },
12461
- { name: "Signature expiration", type: "timestamp" }
12462
- ]
12463
- },
12464
- primaryType: "Owner Alive",
12465
- domain: { name: "Owner Alive", version: "1", chainId, revision: "1" },
12466
- message: { "Owner GUID": newOwnerGuid, "Signature expiration": expiration }
12467
- };
12468
- }
12469
- function ownerAliveCalldata(proof) {
12470
- if (proof.signature.length !== 2) {
12471
- throw new Error("owner-alive proof needs an r and s from the incoming owner");
12472
- }
12473
- return [
12474
- OPTION_SOME,
12475
- SIGNER_STARKNET,
12476
- num.toHex(proof.newOwnerPubkey),
12477
- num.toHex(proof.signature[0]),
12478
- num.toHex(proof.signature[1]),
12479
- num.toHex(proof.expiration)
12480
- ];
12481
- }
12482
- function buildChangeOwnersCall(accountAddress, removeOwnerPubkey, addOwnerPubkey, ownerAlive) {
12483
- if (!ownerAlive) {
12484
- throw new Error(
12485
- "Replacing the signing owner requires an owner-alive proof from the new owner. Sign ownerAliveTypedData with the new owner key and pass it here."
12486
- );
12487
- }
12488
- return changeOwners(
12489
- accountAddress,
12490
- [computeOwnerGuid(removeOwnerPubkey)],
12491
- [addOwnerPubkey],
12492
- ownerAlive
12493
- );
12494
- }
12495
12441
  function buildAddOwnerCall(accountAddress, addOwnerPubkey) {
12496
12442
  return changeOwners(accountAddress, [], [addOwnerPubkey]);
12497
12443
  }
@@ -13129,6 +13075,42 @@ async function completeDeployment(deps, onStep, options = {}) {
13129
13075
  deps.store.notifyChange();
13130
13076
  return { sealed, siwsToken };
13131
13077
  }
13078
+ function createDeploymentCoordinator(execute) {
13079
+ let inFlight = null;
13080
+ let currentStep = null;
13081
+ const listeners = /* @__PURE__ */ new Set();
13082
+ return {
13083
+ run(onStep, options = {}) {
13084
+ if (inFlight) {
13085
+ if (options.forceNew) {
13086
+ return Promise.reject(new Error("A wallet setup is already in progress."));
13087
+ }
13088
+ if (currentStep) onStep(currentStep);
13089
+ listeners.add(onStep);
13090
+ return inFlight.finally(() => listeners.delete(onStep));
13091
+ }
13092
+ listeners.add(onStep);
13093
+ let started;
13094
+ try {
13095
+ started = execute((step) => {
13096
+ currentStep = step;
13097
+ for (const listener of listeners) listener(step);
13098
+ }, options);
13099
+ } catch (err) {
13100
+ listeners.clear();
13101
+ return Promise.reject(err);
13102
+ }
13103
+ const run = started.finally(() => {
13104
+ inFlight = null;
13105
+ currentStep = null;
13106
+ listeners.clear();
13107
+ });
13108
+ inFlight = run;
13109
+ return run;
13110
+ },
13111
+ isDeploying: () => inFlight !== null
13112
+ };
13113
+ }
13132
13114
 
13133
13115
  // src/wallet/client.ts
13134
13116
  function describeDevices(owners, thisDevicePubkey) {
@@ -13145,6 +13127,18 @@ function canRemoveDevice(devices, guid) {
13145
13127
  }
13146
13128
  function createMediaWallet(config) {
13147
13129
  const ttl = config.unlockTtlMs ?? 2e4;
13130
+ const deployments = createDeploymentCoordinator((onStep, options) => {
13131
+ if (!config.backendUrl) throw new Error("This wallet has no backend url configured for sign-in");
13132
+ const deps = {
13133
+ store: config.store,
13134
+ passkey: config.passkey,
13135
+ provider: config.provider,
13136
+ backendUrl: config.backendUrl,
13137
+ deployProxyUrl: config.deployProxyUrl,
13138
+ fetchImpl: config.fetchImpl
13139
+ };
13140
+ return completeDeployment(deps, onStep, options);
13141
+ });
13148
13142
  const unlockCache = /* @__PURE__ */ new Map();
13149
13143
  const lock = (address) => {
13150
13144
  const entry = unlockCache.get(address);
@@ -13230,36 +13224,26 @@ function createMediaWallet(config) {
13230
13224
  const { transactionHash } = await run(sealed, [buildRemoveOwnerByGuidCall(sealed.address, ownerGuid)]);
13231
13225
  return transactionHash;
13232
13226
  },
13233
- completeDeployment(onStep, options = {}) {
13234
- if (!config.backendUrl) throw new Error("This wallet has no backend url configured for sign-in");
13235
- const deps = {
13236
- store: config.store,
13237
- passkey: config.passkey,
13238
- provider: config.provider,
13239
- backendUrl: config.backendUrl,
13240
- deployProxyUrl: config.deployProxyUrl,
13241
- fetchImpl: config.fetchImpl
13242
- };
13243
- return completeDeployment(deps, onStep, options);
13244
- }
13227
+ completeDeployment: (onStep, options) => deployments.run(onStep, options),
13228
+ isDeploying: () => deployments.isDeploying()
13245
13229
  };
13246
13230
  }
13231
+
13232
+ // src/session/session-wallet.ts
13247
13233
  async function adoptSessionWallet(api, saveAddress) {
13248
13234
  const wallet = await api.getSessionWallet();
13249
13235
  if (wallet) saveAddress(wallet.walletAddress);
13250
13236
  return wallet;
13251
13237
  }
13252
- var PROOF_TTL_SECONDS = 600;
13253
- async function setupSessionWalletKey(api, walletAddress, deps) {
13254
- const { sealed, privateKeyHex } = await deps.createOwnerKey();
13255
- const now = deps.now?.() ?? Math.floor(Date.now() / 1e3);
13256
- const expiration = now + PROOF_TTL_SECONDS;
13257
- const message = ownerAliveTypedData(computeOwnerGuid(sealed.ownerPubKey), expiration, "SN_MAIN");
13258
- const signature = signWithPrivateKey(privateKeyHex, typedData.getMessageHash(message, walletAddress));
13259
- const result = await api.setupWalletKey({ newOwnerPubkey: sealed.ownerPubKey, signature, expiration });
13260
- deps.saveOwner({ ...sealed, address: result.walletAddress });
13238
+ async function claimSessionWallet(api, walletAddress, deps) {
13239
+ const saved = deps.loadOwner();
13240
+ const resuming = saved !== null && normalizeWalletAddress(saved.address) === normalizeWalletAddress(walletAddress);
13241
+ const sealed = resuming ? saved : { ...(await deps.createOwnerKey()).sealed, address: walletAddress };
13242
+ if (!resuming) deps.saveOwner(sealed);
13243
+ const { removeOwnerGuid } = await api.setupWalletKey({ newOwnerPubkey: sealed.ownerPubKey });
13244
+ if (removeOwnerGuid) await deps.removeOwner(sealed, removeOwnerGuid);
13261
13245
  }
13262
13246
 
13263
- export { ADMIN_HEADERS, ADMIN_SCOPE, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PasskeyCancelledError, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, UserFacingError, VALIDATED_EKUBO_PARAMS, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerAliveTypedData, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, parseRecoveryKey, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, setupSessionWalletKey, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
13247
+ export { ADMIN_HEADERS, ADMIN_SCOPE, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PasskeyCancelledError, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, UserFacingError, VALIDATED_EKUBO_PARAMS, accountFor, adminRequestDigest, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodeAdminHeaders, encodeByteArray, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, executeIntent, executeIntents, executeSponsored, fdvHuman, fundWithChainTransfer, fundingApiFor, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isDeployed, isSiwsTokenValid, isValidStarknetAddress, mintedTokenIdFromReceipt, normalizeSiwsSignature, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parseAdminHeaders, parseCreatorCoinCreated, parsePairingPayload, parseRecoveryKey, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, selfFundedExecutor, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig, waitUntilDeployed };
13264
13248
  //# sourceMappingURL=index.js.map
13265
13249
  //# sourceMappingURL=index.js.map