@medialane/sdk 0.200.0 → 0.202.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/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +11 -0
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +4 -1
- package/dist/starknet/index.d.ts +4 -1
- package/dist/starknet/index.js +11 -1
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -8117,6 +8117,9 @@ interface ReceiptLike {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
type DeployingServiceId = "mip-erc1155" | "ip-tickets" | "ip-ticketing" | "ip-club" | "drop-collection";
|
|
8119
8119
|
declare function deployedCollectionFromReceipt(receipt: ReceiptLike, service: DeployingServiceId): string | null;
|
|
8120
|
+
declare function createdCollectionFromReceipt(receipt: ReceiptLike, registry: string): {
|
|
8121
|
+
collectionId: string;
|
|
8122
|
+
} | null;
|
|
8120
8123
|
declare function mintedTokenIdFromReceipt(receipt: ReceiptLike, contract: string): string | null;
|
|
8121
8124
|
|
|
8122
8125
|
interface ReceiptProvider {
|
|
@@ -8294,4 +8297,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
8294
8297
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8295
8298
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8296
8299
|
|
|
8297
|
-
export { AddSupplyParams, BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreateDropParams, CreatePopCollectionParams, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, type DeployCollectionArgs, type DeployingServiceId, DropCollectionABI, DropFactoryABI, type DropMintCost, DropTerms, type ExecuteIntentOpts, type FeeSurface, type FundWithTransferOptions, type FundingResult, type FundingStep, type FundingTransferApi, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, type IntentClient, Medialane1155ABI, MedialaneClient, MintEditionParams, POPCollectionABI, POPFactoryABI, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsoredRequest, type SponsorshipFailureCode, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, type TypedDataSigner, VenueSigner, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFundingTransferCall, buildOrderTypedData, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, deployedCollectionFromReceipt, dropCalls, dropMintCost, editionCalls, encodeByteArray, erc20Balance, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, popFactoryCalls, populateCall, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol };
|
|
8300
|
+
export { AddSupplyParams, BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreateDropParams, CreatePopCollectionParams, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, type DeployCollectionArgs, type DeployingServiceId, DropCollectionABI, DropFactoryABI, type DropMintCost, DropTerms, type ExecuteIntentOpts, type FeeSurface, type FundWithTransferOptions, type FundingResult, type FundingStep, type FundingTransferApi, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, type IntentClient, Medialane1155ABI, MedialaneClient, MintEditionParams, POPCollectionABI, POPFactoryABI, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsoredRequest, type SponsorshipFailureCode, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, type TypedDataSigner, VenueSigner, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFundingTransferCall, buildOrderTypedData, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, createdCollectionFromReceipt, deployedCollectionFromReceipt, dropCalls, dropMintCost, editionCalls, encodeByteArray, erc20Balance, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, popFactoryCalls, populateCall, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol };
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -8117,6 +8117,9 @@ interface ReceiptLike {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
type DeployingServiceId = "mip-erc1155" | "ip-tickets" | "ip-ticketing" | "ip-club" | "drop-collection";
|
|
8119
8119
|
declare function deployedCollectionFromReceipt(receipt: ReceiptLike, service: DeployingServiceId): string | null;
|
|
8120
|
+
declare function createdCollectionFromReceipt(receipt: ReceiptLike, registry: string): {
|
|
8121
|
+
collectionId: string;
|
|
8122
|
+
} | null;
|
|
8120
8123
|
declare function mintedTokenIdFromReceipt(receipt: ReceiptLike, contract: string): string | null;
|
|
8121
8124
|
|
|
8122
8125
|
interface ReceiptProvider {
|
|
@@ -8294,4 +8297,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
8294
8297
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8295
8298
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8296
8299
|
|
|
8297
|
-
export { AddSupplyParams, BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreateDropParams, CreatePopCollectionParams, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, type DeployCollectionArgs, type DeployingServiceId, DropCollectionABI, DropFactoryABI, type DropMintCost, DropTerms, type ExecuteIntentOpts, type FeeSurface, type FundWithTransferOptions, type FundingResult, type FundingStep, type FundingTransferApi, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, type IntentClient, Medialane1155ABI, MedialaneClient, MintEditionParams, POPCollectionABI, POPFactoryABI, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsoredRequest, type SponsorshipFailureCode, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, type TypedDataSigner, VenueSigner, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFundingTransferCall, buildOrderTypedData, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, deployedCollectionFromReceipt, dropCalls, dropMintCost, editionCalls, encodeByteArray, erc20Balance, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, popFactoryCalls, populateCall, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol };
|
|
8300
|
+
export { AddSupplyParams, BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreateDropParams, CreatePopCollectionParams, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, type DeployCollectionArgs, type DeployingServiceId, DropCollectionABI, DropFactoryABI, type DropMintCost, DropTerms, type ExecuteIntentOpts, type FeeSurface, type FundWithTransferOptions, type FundingResult, type FundingStep, type FundingTransferApi, type FundingTransferCall, FundingTransferNotSentError, type FundingWallet, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, type IntentClient, Medialane1155ABI, MedialaneClient, MintEditionParams, POPCollectionABI, POPFactoryABI, type ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsoredRequest, type SponsorshipFailureCode, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, type TypedDataSigner, VenueSigner, allowsFallbackFunding, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFeeCall, buildFundingTransferCall, buildOrderTypedData, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, createdCollectionFromReceipt, deployedCollectionFromReceipt, dropCalls, dropMintCost, editionCalls, encodeByteArray, erc20Balance, executeIntent, executeIntents, executeSponsored, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, popFactoryCalls, populateCall, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol };
|
package/dist/starknet/index.js
CHANGED
|
@@ -11154,6 +11154,16 @@ function deployedCollectionFromReceipt(receipt, service) {
|
|
|
11154
11154
|
}
|
|
11155
11155
|
return null;
|
|
11156
11156
|
}
|
|
11157
|
+
function createdCollectionFromReceipt(receipt, registry) {
|
|
11158
|
+
const selector = BigInt(hash.getSelectorFromName("CollectionCreated"));
|
|
11159
|
+
for (const e of receipt.events ?? []) {
|
|
11160
|
+
if (!sameFelt(e.from_address, registry)) continue;
|
|
11161
|
+
const keys = e.keys ?? [];
|
|
11162
|
+
if (!sameFelt(keys[0], selector) || keys.length < 3) continue;
|
|
11163
|
+
return { collectionId: u256(keys[1], keys[2]) };
|
|
11164
|
+
}
|
|
11165
|
+
return null;
|
|
11166
|
+
}
|
|
11157
11167
|
function mintedTokenIdFromReceipt(receipt, contract) {
|
|
11158
11168
|
for (const e of receipt.events ?? []) {
|
|
11159
11169
|
if (!sameFelt(e.from_address, contract)) continue;
|
|
@@ -11710,6 +11720,6 @@ function encodeByteArray(str) {
|
|
|
11710
11720
|
];
|
|
11711
11721
|
}
|
|
11712
11722
|
|
|
11713
|
-
export { MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, DropCollectionABI, DropFactoryABI, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, POPCollectionABI, POPFactoryABI, SUGGESTED_DEFAULT_PRICE, StarknetVenue, VALIDATED_EKUBO_PARAMS, apiKeyConfirmationTypedData, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildDropClaimCalls, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildPopAllowlist, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, decodePopClaimFragment, deployedCollectionFromReceipt, dropCalls, dropClaimLinks, dropClaimedBy, dropMintCost, dropMintState, editionCalls, encodeByteArray, encodePopClaimFragment, executeIntent, executeIntents, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getCreatorCoinGuarantees, getSiwsStorageKey, getStoredSiwsToken, isCreatorCoin, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, parseCreatorCoinCreated, popCalls, popClaimInfo, popClaimLinks, popClaimLinksCsv, popClaimState, popFactoryCalls, popHasClaimed, populateCall, priceToEkuboParams, readDrop, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyPopProof };
|
|
11723
|
+
export { MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreatorCoinFactoryABI, DROP_MAX_CLAIM_QUANTITY, DropCollectionABI, DropFactoryABI, FundingTransferNotSentError, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, POPCollectionABI, POPFactoryABI, SUGGESTED_DEFAULT_PRICE, StarknetVenue, VALIDATED_EKUBO_PARAMS, apiKeyConfirmationTypedData, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildDropClaimCalls, buildFeeCall, buildFundingTransferCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildPopAllowlist, buybackQuoteRaw, clubCalls, toRaw as coinToRaw, confirmIntentBestEffort, createChainProvider, createdCollectionFromReceipt, decodePopClaimFragment, deployedCollectionFromReceipt, dropCalls, dropClaimLinks, dropClaimedBy, dropMintCost, dropMintState, editionCalls, encodeByteArray, encodePopClaimFragment, executeIntent, executeIntents, fdvHuman, feeAmount, feeBps, fundWithChainTransfer, fundingApiFor, getCreatorCoinGuarantees, getSiwsStorageKey, getStoredSiwsToken, isCreatorCoin, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, parseCreatorCoinCreated, popCalls, popClaimInfo, popClaimLinks, popClaimLinksCsv, popClaimState, popFactoryCalls, popHasClaimed, populateCall, priceToEkuboParams, readDrop, requestSiwsToken, signInWithWallet, sponsorshipCalls, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, ticketCalls, toContractTerms as toDropContractTerms, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyPopProof };
|
|
11714
11724
|
//# sourceMappingURL=index.js.map
|
|
11715
11725
|
//# sourceMappingURL=index.js.map
|