@medialane/sdk 0.155.0 → 0.156.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.
- package/dist/chunk-3PZUSEAW.js +63 -0
- package/dist/chunk-3PZUSEAW.js.map +1 -0
- package/dist/chunk-ASDN46XU.js +1778 -0
- package/dist/chunk-ASDN46XU.js.map +1 -0
- package/dist/chunk-OUPVVMLK.cjs +68 -0
- package/dist/chunk-OUPVVMLK.cjs.map +1 -0
- package/dist/chunk-ZFRHADHR.cjs +1854 -0
- package/dist/chunk-ZFRHADHR.cjs.map +1 -0
- package/dist/evm/index.cjs +3 -55
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.js +1 -53
- package/dist/evm/index.js.map +1 -1
- package/dist/index.cjs +275 -1718
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1651
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +2 -56
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.js +1 -55
- package/dist/solana/index.js.map +1 -1
- package/dist/starknet/index.cjs +113 -1967
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +1 -111
- package/dist/starknet/index.d.ts +1 -111
- package/dist/starknet/index.js +9 -1887
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +2 -56
- package/dist/stellar/index.cjs.map +1 -1
- package/dist/stellar/index.js +1 -55
- package/dist/stellar/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -443,116 +443,6 @@ interface BuildFeeCallParams {
|
|
|
443
443
|
}
|
|
444
444
|
declare function buildFeeCall(p: BuildFeeCallParams, cfg: ResolvedFeeConfig): Call | null;
|
|
445
445
|
|
|
446
|
-
declare const ADMIN_SCOPE = "admin-api";
|
|
447
|
-
interface AdminGrant {
|
|
448
|
-
wallet: string;
|
|
449
|
-
chain: string;
|
|
450
|
-
sessionPublicKey: string;
|
|
451
|
-
sessionKeyHash: string;
|
|
452
|
-
scope: string;
|
|
453
|
-
issuedAt: number;
|
|
454
|
-
expiresAt: number;
|
|
455
|
-
walletSig: string[];
|
|
456
|
-
}
|
|
457
|
-
interface AdminSession {
|
|
458
|
-
grant: AdminGrant;
|
|
459
|
-
sessionPrivateKey: string;
|
|
460
|
-
}
|
|
461
|
-
interface AdminRequest {
|
|
462
|
-
method: string;
|
|
463
|
-
path: string;
|
|
464
|
-
body: string;
|
|
465
|
-
nonce: string;
|
|
466
|
-
ts: number;
|
|
467
|
-
}
|
|
468
|
-
type AdminRequestSig = string;
|
|
469
|
-
|
|
470
|
-
declare function adminRequestDigest(req: AdminRequest): string;
|
|
471
|
-
|
|
472
|
-
declare function signAdminRequest(sessionPrivateKey: string, req: AdminRequest): AdminRequestSig;
|
|
473
|
-
declare function verifyAdminRequestSig(sessionPublicKey: string, req: AdminRequest, sig: AdminRequestSig): boolean;
|
|
474
|
-
|
|
475
|
-
interface AdminSessionTypedDataInput {
|
|
476
|
-
sessionKeyHash: string;
|
|
477
|
-
scope: string;
|
|
478
|
-
issuedAt: number;
|
|
479
|
-
expiresAt: number;
|
|
480
|
-
chainId?: string;
|
|
481
|
-
}
|
|
482
|
-
declare function buildAdminSessionTypedData(p: AdminSessionTypedDataInput): {
|
|
483
|
-
readonly types: {
|
|
484
|
-
readonly StarknetDomain: readonly [{
|
|
485
|
-
readonly name: "name";
|
|
486
|
-
readonly type: "shortstring";
|
|
487
|
-
}, {
|
|
488
|
-
readonly name: "version";
|
|
489
|
-
readonly type: "shortstring";
|
|
490
|
-
}, {
|
|
491
|
-
readonly name: "chainId";
|
|
492
|
-
readonly type: "shortstring";
|
|
493
|
-
}, {
|
|
494
|
-
readonly name: "revision";
|
|
495
|
-
readonly type: "shortstring";
|
|
496
|
-
}];
|
|
497
|
-
readonly AdminSession: readonly [{
|
|
498
|
-
readonly name: "sessionKeyHash";
|
|
499
|
-
readonly type: "felt";
|
|
500
|
-
}, {
|
|
501
|
-
readonly name: "scope";
|
|
502
|
-
readonly type: "shortstring";
|
|
503
|
-
}, {
|
|
504
|
-
readonly name: "issuedAt";
|
|
505
|
-
readonly type: "felt";
|
|
506
|
-
}, {
|
|
507
|
-
readonly name: "expiresAt";
|
|
508
|
-
readonly type: "felt";
|
|
509
|
-
}];
|
|
510
|
-
};
|
|
511
|
-
readonly primaryType: "AdminSession";
|
|
512
|
-
readonly domain: {
|
|
513
|
-
readonly name: "Medialane Admin";
|
|
514
|
-
readonly version: "1";
|
|
515
|
-
readonly chainId: string;
|
|
516
|
-
readonly revision: "1";
|
|
517
|
-
};
|
|
518
|
-
readonly message: {
|
|
519
|
-
readonly sessionKeyHash: string;
|
|
520
|
-
readonly scope: string;
|
|
521
|
-
readonly issuedAt: string;
|
|
522
|
-
readonly expiresAt: string;
|
|
523
|
-
};
|
|
524
|
-
};
|
|
525
|
-
declare function sessionKeyHashOf(sessionPublicKey: string): string;
|
|
526
|
-
interface CreateGrantOpts {
|
|
527
|
-
wallet: string;
|
|
528
|
-
chain?: string;
|
|
529
|
-
chainId?: string;
|
|
530
|
-
ttlSeconds?: number;
|
|
531
|
-
now?: () => number;
|
|
532
|
-
}
|
|
533
|
-
declare function createAdminSessionGrant(signTypedData: (data: ReturnType<typeof buildAdminSessionTypedData>) => Promise<string[]>, opts: CreateGrantOpts): Promise<AdminSession>;
|
|
534
|
-
|
|
535
|
-
declare const ADMIN_HEADERS: {
|
|
536
|
-
readonly grant: "x-ml-admin-grant";
|
|
537
|
-
readonly sig: "x-ml-admin-sig";
|
|
538
|
-
readonly nonce: "x-ml-admin-nonce";
|
|
539
|
-
readonly ts: "x-ml-admin-ts";
|
|
540
|
-
};
|
|
541
|
-
declare function randomNonce(): string;
|
|
542
|
-
declare function encodeAdminHeaders(session: AdminSession, reqInit: {
|
|
543
|
-
method: string;
|
|
544
|
-
path: string;
|
|
545
|
-
body?: string;
|
|
546
|
-
now?: () => number;
|
|
547
|
-
}): Record<string, string>;
|
|
548
|
-
interface ParsedAdminHeaders {
|
|
549
|
-
grant: AdminGrant;
|
|
550
|
-
sig: string;
|
|
551
|
-
nonce: string;
|
|
552
|
-
ts: number;
|
|
553
|
-
}
|
|
554
|
-
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
555
|
-
|
|
556
446
|
interface SiwsSigner {
|
|
557
447
|
signMessage: (typedData: TypedData) => Promise<unknown>;
|
|
558
448
|
}
|
|
@@ -8199,4 +8089,4 @@ declare function claimSessionWallet(api: Pick<ApiClient, "setupWalletKey">, wall
|
|
|
8199
8089
|
|
|
8200
8090
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
8201
8091
|
|
|
8202
|
-
export {
|
|
8092
|
+
export { type AddSupplyParams, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, 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, 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, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, 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, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, requestSiwsToken, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, waitUntilDeployed };
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -443,116 +443,6 @@ interface BuildFeeCallParams {
|
|
|
443
443
|
}
|
|
444
444
|
declare function buildFeeCall(p: BuildFeeCallParams, cfg: ResolvedFeeConfig): Call | null;
|
|
445
445
|
|
|
446
|
-
declare const ADMIN_SCOPE = "admin-api";
|
|
447
|
-
interface AdminGrant {
|
|
448
|
-
wallet: string;
|
|
449
|
-
chain: string;
|
|
450
|
-
sessionPublicKey: string;
|
|
451
|
-
sessionKeyHash: string;
|
|
452
|
-
scope: string;
|
|
453
|
-
issuedAt: number;
|
|
454
|
-
expiresAt: number;
|
|
455
|
-
walletSig: string[];
|
|
456
|
-
}
|
|
457
|
-
interface AdminSession {
|
|
458
|
-
grant: AdminGrant;
|
|
459
|
-
sessionPrivateKey: string;
|
|
460
|
-
}
|
|
461
|
-
interface AdminRequest {
|
|
462
|
-
method: string;
|
|
463
|
-
path: string;
|
|
464
|
-
body: string;
|
|
465
|
-
nonce: string;
|
|
466
|
-
ts: number;
|
|
467
|
-
}
|
|
468
|
-
type AdminRequestSig = string;
|
|
469
|
-
|
|
470
|
-
declare function adminRequestDigest(req: AdminRequest): string;
|
|
471
|
-
|
|
472
|
-
declare function signAdminRequest(sessionPrivateKey: string, req: AdminRequest): AdminRequestSig;
|
|
473
|
-
declare function verifyAdminRequestSig(sessionPublicKey: string, req: AdminRequest, sig: AdminRequestSig): boolean;
|
|
474
|
-
|
|
475
|
-
interface AdminSessionTypedDataInput {
|
|
476
|
-
sessionKeyHash: string;
|
|
477
|
-
scope: string;
|
|
478
|
-
issuedAt: number;
|
|
479
|
-
expiresAt: number;
|
|
480
|
-
chainId?: string;
|
|
481
|
-
}
|
|
482
|
-
declare function buildAdminSessionTypedData(p: AdminSessionTypedDataInput): {
|
|
483
|
-
readonly types: {
|
|
484
|
-
readonly StarknetDomain: readonly [{
|
|
485
|
-
readonly name: "name";
|
|
486
|
-
readonly type: "shortstring";
|
|
487
|
-
}, {
|
|
488
|
-
readonly name: "version";
|
|
489
|
-
readonly type: "shortstring";
|
|
490
|
-
}, {
|
|
491
|
-
readonly name: "chainId";
|
|
492
|
-
readonly type: "shortstring";
|
|
493
|
-
}, {
|
|
494
|
-
readonly name: "revision";
|
|
495
|
-
readonly type: "shortstring";
|
|
496
|
-
}];
|
|
497
|
-
readonly AdminSession: readonly [{
|
|
498
|
-
readonly name: "sessionKeyHash";
|
|
499
|
-
readonly type: "felt";
|
|
500
|
-
}, {
|
|
501
|
-
readonly name: "scope";
|
|
502
|
-
readonly type: "shortstring";
|
|
503
|
-
}, {
|
|
504
|
-
readonly name: "issuedAt";
|
|
505
|
-
readonly type: "felt";
|
|
506
|
-
}, {
|
|
507
|
-
readonly name: "expiresAt";
|
|
508
|
-
readonly type: "felt";
|
|
509
|
-
}];
|
|
510
|
-
};
|
|
511
|
-
readonly primaryType: "AdminSession";
|
|
512
|
-
readonly domain: {
|
|
513
|
-
readonly name: "Medialane Admin";
|
|
514
|
-
readonly version: "1";
|
|
515
|
-
readonly chainId: string;
|
|
516
|
-
readonly revision: "1";
|
|
517
|
-
};
|
|
518
|
-
readonly message: {
|
|
519
|
-
readonly sessionKeyHash: string;
|
|
520
|
-
readonly scope: string;
|
|
521
|
-
readonly issuedAt: string;
|
|
522
|
-
readonly expiresAt: string;
|
|
523
|
-
};
|
|
524
|
-
};
|
|
525
|
-
declare function sessionKeyHashOf(sessionPublicKey: string): string;
|
|
526
|
-
interface CreateGrantOpts {
|
|
527
|
-
wallet: string;
|
|
528
|
-
chain?: string;
|
|
529
|
-
chainId?: string;
|
|
530
|
-
ttlSeconds?: number;
|
|
531
|
-
now?: () => number;
|
|
532
|
-
}
|
|
533
|
-
declare function createAdminSessionGrant(signTypedData: (data: ReturnType<typeof buildAdminSessionTypedData>) => Promise<string[]>, opts: CreateGrantOpts): Promise<AdminSession>;
|
|
534
|
-
|
|
535
|
-
declare const ADMIN_HEADERS: {
|
|
536
|
-
readonly grant: "x-ml-admin-grant";
|
|
537
|
-
readonly sig: "x-ml-admin-sig";
|
|
538
|
-
readonly nonce: "x-ml-admin-nonce";
|
|
539
|
-
readonly ts: "x-ml-admin-ts";
|
|
540
|
-
};
|
|
541
|
-
declare function randomNonce(): string;
|
|
542
|
-
declare function encodeAdminHeaders(session: AdminSession, reqInit: {
|
|
543
|
-
method: string;
|
|
544
|
-
path: string;
|
|
545
|
-
body?: string;
|
|
546
|
-
now?: () => number;
|
|
547
|
-
}): Record<string, string>;
|
|
548
|
-
interface ParsedAdminHeaders {
|
|
549
|
-
grant: AdminGrant;
|
|
550
|
-
sig: string;
|
|
551
|
-
nonce: string;
|
|
552
|
-
ts: number;
|
|
553
|
-
}
|
|
554
|
-
declare function parseAdminHeaders(get: (name: string) => string | null | undefined): ParsedAdminHeaders | null;
|
|
555
|
-
|
|
556
446
|
interface SiwsSigner {
|
|
557
447
|
signMessage: (typedData: TypedData) => Promise<unknown>;
|
|
558
448
|
}
|
|
@@ -8199,4 +8089,4 @@ declare function claimSessionWallet(api: Pick<ApiClient, "setupWalletKey">, wall
|
|
|
8199
8089
|
|
|
8200
8090
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
8201
8091
|
|
|
8202
|
-
export {
|
|
8092
|
+
export { type AddSupplyParams, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, 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, 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, adoptSessionWallet, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildCancelEscapeCall, buildCancellationTypedData, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, canRemoveDevice, claimSessionWallet, toRaw as coinToRaw, completeDeployment, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, 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, parseCreatorCoinCreated, parsePairingPayload, priceToEkuboParams, requestSiwsToken, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, waitUntilDeployed };
|