@medialane/sdk 0.205.0 → 0.206.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-GIBIHGSV.js → chunk-EPU52YSA.js} +24 -11
- package/dist/chunk-EPU52YSA.js.map +1 -0
- package/dist/{chunk-KGAGWULG.js → chunk-GENBWVGK.js} +8 -5
- package/dist/chunk-GENBWVGK.js.map +1 -0
- package/dist/{chunk-3HPMEDYH.cjs → chunk-MCVAZVLN.cjs} +8 -5
- package/dist/chunk-MCVAZVLN.cjs.map +1 -0
- package/dist/{chunk-ZLMIHQWM.cjs → chunk-ZYRSMDMJ.cjs} +36 -23
- package/dist/chunk-ZYRSMDMJ.cjs.map +1 -0
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{services-OAVVjxQd.d.cts → services-Cy5FH8sP.d.cts} +6 -2
- package/dist/{services-DlgtOLil.d.ts → services-DWmXVwTV.d.ts} +6 -2
- package/dist/starknet/index.cjs +84 -84
- package/dist/starknet/index.d.cts +17 -4
- package/dist/starknet/index.d.ts +17 -4
- package/dist/starknet/index.js +3 -3
- package/dist/wallet/index.cjs +59 -59
- package/dist/wallet/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3HPMEDYH.cjs.map +0 -1
- package/dist/chunk-GIBIHGSV.js.map +0 -1
- package/dist/chunk-KGAGWULG.js.map +0 -1
- package/dist/chunk-ZLMIHQWM.cjs.map +0 -1
|
@@ -139,7 +139,10 @@ declare function resolveConfig(raw: MedialaneConfig): ResolvedConfig;
|
|
|
139
139
|
type MedialaneErrorCode = "NOT_FOUND" | "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
|
|
140
140
|
|
|
141
141
|
declare class UserFacingError extends Error {
|
|
142
|
-
|
|
142
|
+
readonly retryable: boolean;
|
|
143
|
+
constructor(message: string, options?: {
|
|
144
|
+
retryable?: boolean;
|
|
145
|
+
});
|
|
143
146
|
}
|
|
144
147
|
declare class MedialaneError extends Error {
|
|
145
148
|
readonly code: MedialaneErrorCode;
|
|
@@ -151,7 +154,8 @@ declare class MedialaneApiError extends MedialaneError {
|
|
|
151
154
|
readonly retryAfterMs?: number | undefined;
|
|
152
155
|
readonly details?: unknown | undefined;
|
|
153
156
|
readonly serverCode?: string | undefined;
|
|
154
|
-
|
|
157
|
+
readonly requestId?: string | undefined;
|
|
158
|
+
constructor(status: number, message: string, retryAfterMs?: number | undefined, details?: unknown | undefined, path?: string, serverCode?: string | undefined, requestId?: string | undefined);
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
type BearerSource = string | (() => string | undefined);
|
|
@@ -139,7 +139,10 @@ declare function resolveConfig(raw: MedialaneConfig): ResolvedConfig;
|
|
|
139
139
|
type MedialaneErrorCode = "NOT_FOUND" | "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
|
|
140
140
|
|
|
141
141
|
declare class UserFacingError extends Error {
|
|
142
|
-
|
|
142
|
+
readonly retryable: boolean;
|
|
143
|
+
constructor(message: string, options?: {
|
|
144
|
+
retryable?: boolean;
|
|
145
|
+
});
|
|
143
146
|
}
|
|
144
147
|
declare class MedialaneError extends Error {
|
|
145
148
|
readonly code: MedialaneErrorCode;
|
|
@@ -151,7 +154,8 @@ declare class MedialaneApiError extends MedialaneError {
|
|
|
151
154
|
readonly retryAfterMs?: number | undefined;
|
|
152
155
|
readonly details?: unknown | undefined;
|
|
153
156
|
readonly serverCode?: string | undefined;
|
|
154
|
-
|
|
157
|
+
readonly requestId?: string | undefined;
|
|
158
|
+
constructor(status: number, message: string, retryAfterMs?: number | undefined, details?: unknown | undefined, path?: string, serverCode?: string | undefined, requestId?: string | undefined);
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
type BearerSource = string | (() => string | undefined);
|
package/dist/starknet/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkMEJ47LC3_cjs = require('../chunk-MEJ47LC3.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkZYRSMDMJ_cjs = require('../chunk-ZYRSMDMJ.cjs');
|
|
5
|
+
var chunkMCVAZVLN_cjs = require('../chunk-MCVAZVLN.cjs');
|
|
6
6
|
var chunkH2NJB3AK_cjs = require('../chunk-H2NJB3AK.cjs');
|
|
7
7
|
require('../chunk-W76AZ5WC.cjs');
|
|
8
8
|
require('../chunk-Q7SFCCGT.cjs');
|
|
@@ -22,7 +22,7 @@ var MedialaneClient = class {
|
|
|
22
22
|
constructor(rawConfig = {}) {
|
|
23
23
|
this.config = chunkMEJ47LC3_cjs.resolveConfig(rawConfig);
|
|
24
24
|
const config = this.config;
|
|
25
|
-
this.api = config.backendUrl ? new
|
|
25
|
+
this.api = config.backendUrl ? new chunkMCVAZVLN_cjs.ApiClient({ baseUrl: config.backendUrl, apiKey: config.apiKey, retry: config.retryOptions, chain: config.chain }) : new chunkMCVAZVLN_cjs.ApiClient({
|
|
26
26
|
baseUrl: "https://medialane-sdk-no-backend.invalid",
|
|
27
27
|
apiKey: config.apiKey,
|
|
28
28
|
fetch: () => {
|
|
@@ -10393,10 +10393,10 @@ function getChainId(config) {
|
|
|
10393
10393
|
return starknet.constants.StarknetChainId.SN_MAIN;
|
|
10394
10394
|
}
|
|
10395
10395
|
function resolveToken(currency) {
|
|
10396
|
-
const token =
|
|
10396
|
+
const token = chunkMCVAZVLN_cjs.SUPPORTED_TOKENS.find(
|
|
10397
10397
|
(t) => t.symbol === currency.toUpperCase() || t.address.toLowerCase() === currency.toLowerCase()
|
|
10398
10398
|
);
|
|
10399
|
-
if (!token) throw new
|
|
10399
|
+
if (!token) throw new chunkMCVAZVLN_cjs.MedialaneError(`Unsupported currency: ${currency}`, "INVALID_PARAMS");
|
|
10400
10400
|
return token;
|
|
10401
10401
|
}
|
|
10402
10402
|
var STARKNET_DOMAIN = [
|
|
@@ -11049,7 +11049,7 @@ async function confirmIntentBestEffort(client, intentId, txHash) {
|
|
|
11049
11049
|
var SYNC_TIMEOUT_MS = 2e4;
|
|
11050
11050
|
var SYNC_RETRY_MS = 2e3;
|
|
11051
11051
|
function readableLater(err) {
|
|
11052
|
-
return err instanceof
|
|
11052
|
+
return err instanceof chunkMCVAZVLN_cjs.MedialaneApiError && err.status === 404;
|
|
11053
11053
|
}
|
|
11054
11054
|
async function syncTransactionBestEffort(client, txHash, timeoutMs = SYNC_TIMEOUT_MS, retryMs = SYNC_RETRY_MS) {
|
|
11055
11055
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -11084,14 +11084,14 @@ async function assertTransactionSucceeded(provider, txHash, retryDelaysMs = RECE
|
|
|
11084
11084
|
const receipt = await provider.getTransactionReceipt(txHash);
|
|
11085
11085
|
const status = receipt.execution_status ?? receipt.status;
|
|
11086
11086
|
if (status === "REVERTED" || status === "REJECTED") {
|
|
11087
|
-
throw new
|
|
11087
|
+
throw new chunkMCVAZVLN_cjs.UserFacingError("Transaction was submitted but reverted onchain. Please check your balance and try again.");
|
|
11088
11088
|
}
|
|
11089
11089
|
if (status) return receipt;
|
|
11090
11090
|
} catch (err) {
|
|
11091
11091
|
if (err instanceof Error && err.message.includes("reverted onchain")) throw err;
|
|
11092
11092
|
}
|
|
11093
11093
|
}
|
|
11094
|
-
throw new
|
|
11094
|
+
throw new chunkMCVAZVLN_cjs.UserFacingError("Verification timed out. Check your account for the transaction status.");
|
|
11095
11095
|
}
|
|
11096
11096
|
async function executeIntent(signer, client, intent, opts = {}) {
|
|
11097
11097
|
let calls;
|
|
@@ -11151,7 +11151,7 @@ function deployedCollectionFromReceipt(receipt, service) {
|
|
|
11151
11151
|
if (factory && !sameFelt(e.from_address, factory)) continue;
|
|
11152
11152
|
if (!sameFelt(e.keys?.[0], selector)) continue;
|
|
11153
11153
|
const value = address(e);
|
|
11154
|
-
if (value) return
|
|
11154
|
+
if (value) return chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", value);
|
|
11155
11155
|
}
|
|
11156
11156
|
return null;
|
|
11157
11157
|
}
|
|
@@ -11203,7 +11203,7 @@ function merkleTree(leafHashes) {
|
|
|
11203
11203
|
};
|
|
11204
11204
|
}
|
|
11205
11205
|
function buildPopAllowlist(addresses) {
|
|
11206
|
-
const unique = [...new Set(addresses.map((a) =>
|
|
11206
|
+
const unique = [...new Set(addresses.map((a) => chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", a)))];
|
|
11207
11207
|
if (unique.length === 0) throw new Error("An allowlist needs at least one address");
|
|
11208
11208
|
const leaves = unique.map((address) => ({ address, leaf: popLeafHash(address) }));
|
|
11209
11209
|
const tree = merkleTree(leaves.map((l) => l.leaf));
|
|
@@ -11237,7 +11237,7 @@ function popClaimLinksCsv(links) {
|
|
|
11237
11237
|
return ["address,claim_link", ...links.map((l) => `${l.address},${l.url}`)].join("\n");
|
|
11238
11238
|
}
|
|
11239
11239
|
async function popClaimInfo(provider, collection) {
|
|
11240
|
-
const contractAddress =
|
|
11240
|
+
const contractAddress = chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", collection);
|
|
11241
11241
|
const [root, end] = await Promise.all([
|
|
11242
11242
|
provider.callContract({ contractAddress, entrypoint: "allowlist_root", calldata: [] }),
|
|
11243
11243
|
provider.callContract({ contractAddress, entrypoint: "claim_end_time", calldata: [] })
|
|
@@ -11254,7 +11254,7 @@ function popClaimState(input) {
|
|
|
11254
11254
|
if (!wallet || !verifyPopProof(info.root, wallet, proof)) return "wrong-wallet";
|
|
11255
11255
|
return "ready";
|
|
11256
11256
|
}
|
|
11257
|
-
var addr = (a) =>
|
|
11257
|
+
var addr = (a) => chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", a);
|
|
11258
11258
|
var byteArrayFelts = (s) => starknet.CallData.compile([starknet.byteArray.byteArrayFromString(s)]);
|
|
11259
11259
|
var popCalls = {
|
|
11260
11260
|
claim(collection, proof) {
|
|
@@ -11275,14 +11275,14 @@ var popCalls = {
|
|
|
11275
11275
|
};
|
|
11276
11276
|
async function popHasClaimed(provider, collection, address) {
|
|
11277
11277
|
const res = await provider.callContract({
|
|
11278
|
-
contractAddress:
|
|
11278
|
+
contractAddress: chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", collection),
|
|
11279
11279
|
entrypoint: "has_claimed",
|
|
11280
|
-
calldata: [
|
|
11280
|
+
calldata: [chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", address)]
|
|
11281
11281
|
});
|
|
11282
11282
|
return BigInt(res[0] ?? "0x0") !== 0n;
|
|
11283
11283
|
}
|
|
11284
11284
|
var DROP_MAX_CLAIM_QUANTITY = 50n;
|
|
11285
|
-
var addr2 = (a) =>
|
|
11285
|
+
var addr2 = (a) => chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", a);
|
|
11286
11286
|
var factoryData = new starknet.CallData(DropFactoryABI);
|
|
11287
11287
|
var collectionData = new starknet.CallData(DropCollectionABI);
|
|
11288
11288
|
function toContractTerms(t) {
|
|
@@ -11352,7 +11352,7 @@ function dropMintCost(price, quantity, feeBps2) {
|
|
|
11352
11352
|
}
|
|
11353
11353
|
|
|
11354
11354
|
// src/starknet/drop-state.ts
|
|
11355
|
-
var hex = (v) =>
|
|
11355
|
+
var hex = (v) => chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", v ?? "0x0");
|
|
11356
11356
|
var u2562 = (low, high) => BigInt(low ?? "0x0") + (BigInt(high ?? "0x0") << 128n);
|
|
11357
11357
|
async function readDrop(provider, collection) {
|
|
11358
11358
|
const contractAddress = hex(collection);
|
|
@@ -11431,7 +11431,7 @@ function dropClaimLinks(origin, collection, list) {
|
|
|
11431
11431
|
function populateCall(abi, contractAddress, entrypoint, args) {
|
|
11432
11432
|
return { contractAddress, entrypoint, calldata: new starknet.CallData(abi).compile(entrypoint, args) };
|
|
11433
11433
|
}
|
|
11434
|
-
var addr3 = (address) =>
|
|
11434
|
+
var addr3 = (address) => chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", address);
|
|
11435
11435
|
var optionOf = (value) => value != null ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, value) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
11436
11436
|
var deployCollectionCall = (abi, factory, p) => populateCall(abi, addr3(factory), "deploy_collection", [p.name, p.symbol, p.baseUri]);
|
|
11437
11437
|
var popFactoryCalls = {
|
|
@@ -11671,20 +11671,20 @@ function buildLaunchOnEkuboCalls(params) {
|
|
|
11671
11671
|
}
|
|
11672
11672
|
var CREATOR_COIN_CREATED_SELECTOR = starknet.hash.getSelectorFromName("CreatorCoinCreated");
|
|
11673
11673
|
function parseCreatorCoinCreated(receipt) {
|
|
11674
|
-
const factory =
|
|
11674
|
+
const factory = chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", chunkH2NJB3AK_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory);
|
|
11675
11675
|
for (const ev of receipt?.events ?? []) {
|
|
11676
11676
|
let from;
|
|
11677
11677
|
try {
|
|
11678
|
-
from =
|
|
11678
|
+
from = chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", ev.from_address ?? "");
|
|
11679
11679
|
} catch {
|
|
11680
11680
|
continue;
|
|
11681
11681
|
}
|
|
11682
11682
|
if (from !== factory) continue;
|
|
11683
11683
|
const k0 = ev.keys?.[0];
|
|
11684
|
-
if (!k0 ||
|
|
11684
|
+
if (!k0 || chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", k0) !== chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", CREATOR_COIN_CREATED_SELECTOR)) continue;
|
|
11685
11685
|
const data = ev.data ?? [];
|
|
11686
11686
|
if (data.length < 1) continue;
|
|
11687
|
-
return
|
|
11687
|
+
return chunkMCVAZVLN_cjs.normalizeAddress("STARKNET", data[data.length - 1]);
|
|
11688
11688
|
}
|
|
11689
11689
|
throw new Error("Coin deployed but the coin address could not be read from the receipt");
|
|
11690
11690
|
}
|
|
@@ -11723,255 +11723,255 @@ function encodeByteArray(str) {
|
|
|
11723
11723
|
|
|
11724
11724
|
Object.defineProperty(exports, "InvalidPairingPayloadError", {
|
|
11725
11725
|
enumerable: true,
|
|
11726
|
-
get: function () { return
|
|
11726
|
+
get: function () { return chunkZYRSMDMJ_cjs.InvalidPairingPayloadError; }
|
|
11727
11727
|
});
|
|
11728
11728
|
Object.defineProperty(exports, "InvalidRecoveryKeyError", {
|
|
11729
11729
|
enumerable: true,
|
|
11730
|
-
get: function () { return
|
|
11730
|
+
get: function () { return chunkZYRSMDMJ_cjs.InvalidRecoveryKeyError; }
|
|
11731
11731
|
});
|
|
11732
11732
|
Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
|
|
11733
11733
|
enumerable: true,
|
|
11734
|
-
get: function () { return
|
|
11734
|
+
get: function () { return chunkZYRSMDMJ_cjs.InvalidStarkPrivateKeyError; }
|
|
11735
11735
|
});
|
|
11736
11736
|
Object.defineProperty(exports, "SponsoredCallRejectedError", {
|
|
11737
11737
|
enumerable: true,
|
|
11738
|
-
get: function () { return
|
|
11738
|
+
get: function () { return chunkZYRSMDMJ_cjs.SponsoredCallRejectedError; }
|
|
11739
11739
|
});
|
|
11740
11740
|
Object.defineProperty(exports, "accountFor", {
|
|
11741
11741
|
enumerable: true,
|
|
11742
|
-
get: function () { return
|
|
11742
|
+
get: function () { return chunkZYRSMDMJ_cjs.accountFor; }
|
|
11743
11743
|
});
|
|
11744
11744
|
Object.defineProperty(exports, "allowsFallbackFunding", {
|
|
11745
11745
|
enumerable: true,
|
|
11746
|
-
get: function () { return
|
|
11746
|
+
get: function () { return chunkZYRSMDMJ_cjs.allowsFallbackFunding; }
|
|
11747
11747
|
});
|
|
11748
11748
|
Object.defineProperty(exports, "buildAddOwnerCall", {
|
|
11749
11749
|
enumerable: true,
|
|
11750
|
-
get: function () { return
|
|
11750
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildAddOwnerCall; }
|
|
11751
11751
|
});
|
|
11752
11752
|
Object.defineProperty(exports, "buildCancelEscapeCall", {
|
|
11753
11753
|
enumerable: true,
|
|
11754
|
-
get: function () { return
|
|
11754
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildCancelEscapeCall; }
|
|
11755
11755
|
});
|
|
11756
11756
|
Object.defineProperty(exports, "buildCompleteEscapeOwnerCall", {
|
|
11757
11757
|
enumerable: true,
|
|
11758
|
-
get: function () { return
|
|
11758
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildCompleteEscapeOwnerCall; }
|
|
11759
11759
|
});
|
|
11760
11760
|
Object.defineProperty(exports, "buildDeployAccountParams", {
|
|
11761
11761
|
enumerable: true,
|
|
11762
|
-
get: function () { return
|
|
11762
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildDeployAccountParams; }
|
|
11763
11763
|
});
|
|
11764
11764
|
Object.defineProperty(exports, "buildRemoveOwnerByGuidCall", {
|
|
11765
11765
|
enumerable: true,
|
|
11766
|
-
get: function () { return
|
|
11766
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildRemoveOwnerByGuidCall; }
|
|
11767
11767
|
});
|
|
11768
11768
|
Object.defineProperty(exports, "buildRemoveOwnerCall", {
|
|
11769
11769
|
enumerable: true,
|
|
11770
|
-
get: function () { return
|
|
11770
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildRemoveOwnerCall; }
|
|
11771
11771
|
});
|
|
11772
11772
|
Object.defineProperty(exports, "buildSetFirstGuardianCall", {
|
|
11773
11773
|
enumerable: true,
|
|
11774
|
-
get: function () { return
|
|
11774
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildSetFirstGuardianCall; }
|
|
11775
11775
|
});
|
|
11776
11776
|
Object.defineProperty(exports, "buildTriggerEscapeOwnerCall", {
|
|
11777
11777
|
enumerable: true,
|
|
11778
|
-
get: function () { return
|
|
11778
|
+
get: function () { return chunkZYRSMDMJ_cjs.buildTriggerEscapeOwnerCall; }
|
|
11779
11779
|
});
|
|
11780
11780
|
Object.defineProperty(exports, "canRemoveDevice", {
|
|
11781
11781
|
enumerable: true,
|
|
11782
|
-
get: function () { return
|
|
11782
|
+
get: function () { return chunkZYRSMDMJ_cjs.canRemoveDevice; }
|
|
11783
11783
|
});
|
|
11784
11784
|
Object.defineProperty(exports, "claimSessionWallet", {
|
|
11785
11785
|
enumerable: true,
|
|
11786
|
-
get: function () { return
|
|
11786
|
+
get: function () { return chunkZYRSMDMJ_cjs.claimSessionWallet; }
|
|
11787
11787
|
});
|
|
11788
11788
|
Object.defineProperty(exports, "completeDeployment", {
|
|
11789
11789
|
enumerable: true,
|
|
11790
|
-
get: function () { return
|
|
11790
|
+
get: function () { return chunkZYRSMDMJ_cjs.completeDeployment; }
|
|
11791
11791
|
});
|
|
11792
11792
|
Object.defineProperty(exports, "computeAccountAddress", {
|
|
11793
11793
|
enumerable: true,
|
|
11794
|
-
get: function () { return
|
|
11794
|
+
get: function () { return chunkZYRSMDMJ_cjs.computeAccountAddress; }
|
|
11795
11795
|
});
|
|
11796
11796
|
Object.defineProperty(exports, "computeOwnerGuid", {
|
|
11797
11797
|
enumerable: true,
|
|
11798
|
-
get: function () { return
|
|
11798
|
+
get: function () { return chunkZYRSMDMJ_cjs.computeOwnerGuid; }
|
|
11799
11799
|
});
|
|
11800
11800
|
Object.defineProperty(exports, "createDeploymentCoordinator", {
|
|
11801
11801
|
enumerable: true,
|
|
11802
|
-
get: function () { return
|
|
11802
|
+
get: function () { return chunkZYRSMDMJ_cjs.createDeploymentCoordinator; }
|
|
11803
11803
|
});
|
|
11804
11804
|
Object.defineProperty(exports, "createMediaWallet", {
|
|
11805
11805
|
enumerable: true,
|
|
11806
|
-
get: function () { return
|
|
11806
|
+
get: function () { return chunkZYRSMDMJ_cjs.createMediaWallet; }
|
|
11807
11807
|
});
|
|
11808
11808
|
Object.defineProperty(exports, "createOwnerStore", {
|
|
11809
11809
|
enumerable: true,
|
|
11810
|
-
get: function () { return
|
|
11810
|
+
get: function () { return chunkZYRSMDMJ_cjs.createOwnerStore; }
|
|
11811
11811
|
});
|
|
11812
11812
|
Object.defineProperty(exports, "createPasskeyOwner", {
|
|
11813
11813
|
enumerable: true,
|
|
11814
|
-
get: function () { return
|
|
11814
|
+
get: function () { return chunkZYRSMDMJ_cjs.createPasskeyOwner; }
|
|
11815
11815
|
});
|
|
11816
11816
|
Object.defineProperty(exports, "createSelfFundConsent", {
|
|
11817
11817
|
enumerable: true,
|
|
11818
|
-
get: function () { return
|
|
11818
|
+
get: function () { return chunkZYRSMDMJ_cjs.createSelfFundConsent; }
|
|
11819
11819
|
});
|
|
11820
11820
|
Object.defineProperty(exports, "decodeEscapeAndStatus", {
|
|
11821
11821
|
enumerable: true,
|
|
11822
|
-
get: function () { return
|
|
11822
|
+
get: function () { return chunkZYRSMDMJ_cjs.decodeEscapeAndStatus; }
|
|
11823
11823
|
});
|
|
11824
11824
|
Object.defineProperty(exports, "decodeGuardiansInfo", {
|
|
11825
11825
|
enumerable: true,
|
|
11826
|
-
get: function () { return
|
|
11826
|
+
get: function () { return chunkZYRSMDMJ_cjs.decodeGuardiansInfo; }
|
|
11827
11827
|
});
|
|
11828
11828
|
Object.defineProperty(exports, "deploySelfFunded", {
|
|
11829
11829
|
enumerable: true,
|
|
11830
|
-
get: function () { return
|
|
11830
|
+
get: function () { return chunkZYRSMDMJ_cjs.deploySelfFunded; }
|
|
11831
11831
|
});
|
|
11832
11832
|
Object.defineProperty(exports, "deploySponsored", {
|
|
11833
11833
|
enumerable: true,
|
|
11834
|
-
get: function () { return
|
|
11834
|
+
get: function () { return chunkZYRSMDMJ_cjs.deploySponsored; }
|
|
11835
11835
|
});
|
|
11836
11836
|
Object.defineProperty(exports, "deriveAesKey", {
|
|
11837
11837
|
enumerable: true,
|
|
11838
|
-
get: function () { return
|
|
11838
|
+
get: function () { return chunkZYRSMDMJ_cjs.deriveAesKey; }
|
|
11839
11839
|
});
|
|
11840
11840
|
Object.defineProperty(exports, "deriveOwnerKeyPair", {
|
|
11841
11841
|
enumerable: true,
|
|
11842
|
-
get: function () { return
|
|
11842
|
+
get: function () { return chunkZYRSMDMJ_cjs.deriveOwnerKeyPair; }
|
|
11843
11843
|
});
|
|
11844
11844
|
Object.defineProperty(exports, "describeDevices", {
|
|
11845
11845
|
enumerable: true,
|
|
11846
|
-
get: function () { return
|
|
11846
|
+
get: function () { return chunkZYRSMDMJ_cjs.describeDevices; }
|
|
11847
11847
|
});
|
|
11848
11848
|
Object.defineProperty(exports, "describeGuardianStatus", {
|
|
11849
11849
|
enumerable: true,
|
|
11850
|
-
get: function () { return
|
|
11850
|
+
get: function () { return chunkZYRSMDMJ_cjs.describeGuardianStatus; }
|
|
11851
11851
|
});
|
|
11852
11852
|
Object.defineProperty(exports, "describeRecoveryAction", {
|
|
11853
11853
|
enumerable: true,
|
|
11854
|
-
get: function () { return
|
|
11854
|
+
get: function () { return chunkZYRSMDMJ_cjs.describeRecoveryAction; }
|
|
11855
11855
|
});
|
|
11856
11856
|
Object.defineProperty(exports, "encodePairingPayload", {
|
|
11857
11857
|
enumerable: true,
|
|
11858
|
-
get: function () { return
|
|
11858
|
+
get: function () { return chunkZYRSMDMJ_cjs.encodePairingPayload; }
|
|
11859
11859
|
});
|
|
11860
11860
|
Object.defineProperty(exports, "encodeRecoveryKey", {
|
|
11861
11861
|
enumerable: true,
|
|
11862
|
-
get: function () { return
|
|
11862
|
+
get: function () { return chunkZYRSMDMJ_cjs.encodeRecoveryKey; }
|
|
11863
11863
|
});
|
|
11864
11864
|
Object.defineProperty(exports, "erc20Balance", {
|
|
11865
11865
|
enumerable: true,
|
|
11866
|
-
get: function () { return
|
|
11866
|
+
get: function () { return chunkZYRSMDMJ_cjs.erc20Balance; }
|
|
11867
11867
|
});
|
|
11868
11868
|
Object.defineProperty(exports, "estimateSelfFundedFee", {
|
|
11869
11869
|
enumerable: true,
|
|
11870
|
-
get: function () { return
|
|
11870
|
+
get: function () { return chunkZYRSMDMJ_cjs.estimateSelfFundedFee; }
|
|
11871
11871
|
});
|
|
11872
11872
|
Object.defineProperty(exports, "executeSponsored", {
|
|
11873
11873
|
enumerable: true,
|
|
11874
|
-
get: function () { return
|
|
11874
|
+
get: function () { return chunkZYRSMDMJ_cjs.executeSponsored; }
|
|
11875
11875
|
});
|
|
11876
11876
|
Object.defineProperty(exports, "generateStarkKeyPair", {
|
|
11877
11877
|
enumerable: true,
|
|
11878
|
-
get: function () { return
|
|
11878
|
+
get: function () { return chunkZYRSMDMJ_cjs.generateStarkKeyPair; }
|
|
11879
11879
|
});
|
|
11880
11880
|
Object.defineProperty(exports, "getEscape", {
|
|
11881
11881
|
enumerable: true,
|
|
11882
|
-
get: function () { return
|
|
11882
|
+
get: function () { return chunkZYRSMDMJ_cjs.getEscape; }
|
|
11883
11883
|
});
|
|
11884
11884
|
Object.defineProperty(exports, "getEscapeSecurityPeriod", {
|
|
11885
11885
|
enumerable: true,
|
|
11886
|
-
get: function () { return
|
|
11886
|
+
get: function () { return chunkZYRSMDMJ_cjs.getEscapeSecurityPeriod; }
|
|
11887
11887
|
});
|
|
11888
11888
|
Object.defineProperty(exports, "getGuardians", {
|
|
11889
11889
|
enumerable: true,
|
|
11890
|
-
get: function () { return
|
|
11890
|
+
get: function () { return chunkZYRSMDMJ_cjs.getGuardians; }
|
|
11891
11891
|
});
|
|
11892
11892
|
Object.defineProperty(exports, "getOwners", {
|
|
11893
11893
|
enumerable: true,
|
|
11894
|
-
get: function () { return
|
|
11894
|
+
get: function () { return chunkZYRSMDMJ_cjs.getOwners; }
|
|
11895
11895
|
});
|
|
11896
11896
|
Object.defineProperty(exports, "indexedDbDeviceKeys", {
|
|
11897
11897
|
enumerable: true,
|
|
11898
|
-
get: function () { return
|
|
11898
|
+
get: function () { return chunkZYRSMDMJ_cjs.indexedDbDeviceKeys; }
|
|
11899
11899
|
});
|
|
11900
11900
|
Object.defineProperty(exports, "isDeployed", {
|
|
11901
11901
|
enumerable: true,
|
|
11902
|
-
get: function () { return
|
|
11902
|
+
get: function () { return chunkZYRSMDMJ_cjs.isDeployed; }
|
|
11903
11903
|
});
|
|
11904
11904
|
Object.defineProperty(exports, "isValidStarknetAddress", {
|
|
11905
11905
|
enumerable: true,
|
|
11906
|
-
get: function () { return
|
|
11906
|
+
get: function () { return chunkZYRSMDMJ_cjs.isValidStarknetAddress; }
|
|
11907
11907
|
});
|
|
11908
11908
|
Object.defineProperty(exports, "normalizeWalletAddress", {
|
|
11909
11909
|
enumerable: true,
|
|
11910
|
-
get: function () { return
|
|
11910
|
+
get: function () { return chunkZYRSMDMJ_cjs.normalizeWalletAddress; }
|
|
11911
11911
|
});
|
|
11912
11912
|
Object.defineProperty(exports, "ownerConstructorCalldata", {
|
|
11913
11913
|
enumerable: true,
|
|
11914
|
-
get: function () { return
|
|
11914
|
+
get: function () { return chunkZYRSMDMJ_cjs.ownerConstructorCalldata; }
|
|
11915
11915
|
});
|
|
11916
11916
|
Object.defineProperty(exports, "parseAccountAddress", {
|
|
11917
11917
|
enumerable: true,
|
|
11918
|
-
get: function () { return
|
|
11918
|
+
get: function () { return chunkZYRSMDMJ_cjs.parseAccountAddress; }
|
|
11919
11919
|
});
|
|
11920
11920
|
Object.defineProperty(exports, "parsePairingPayload", {
|
|
11921
11921
|
enumerable: true,
|
|
11922
|
-
get: function () { return
|
|
11922
|
+
get: function () { return chunkZYRSMDMJ_cjs.parsePairingPayload; }
|
|
11923
11923
|
});
|
|
11924
11924
|
Object.defineProperty(exports, "parseRecoveryKey", {
|
|
11925
11925
|
enumerable: true,
|
|
11926
|
-
get: function () { return
|
|
11926
|
+
get: function () { return chunkZYRSMDMJ_cjs.parseRecoveryKey; }
|
|
11927
11927
|
});
|
|
11928
11928
|
Object.defineProperty(exports, "sealPrivateKey", {
|
|
11929
11929
|
enumerable: true,
|
|
11930
|
-
get: function () { return
|
|
11930
|
+
get: function () { return chunkZYRSMDMJ_cjs.sealPrivateKey; }
|
|
11931
11931
|
});
|
|
11932
11932
|
Object.defineProperty(exports, "selfFundedExecutor", {
|
|
11933
11933
|
enumerable: true,
|
|
11934
|
-
get: function () { return
|
|
11934
|
+
get: function () { return chunkZYRSMDMJ_cjs.selfFundedExecutor; }
|
|
11935
11935
|
});
|
|
11936
11936
|
Object.defineProperty(exports, "signWithPrivateKey", {
|
|
11937
11937
|
enumerable: true,
|
|
11938
|
-
get: function () { return
|
|
11938
|
+
get: function () { return chunkZYRSMDMJ_cjs.signWithPrivateKey; }
|
|
11939
11939
|
});
|
|
11940
11940
|
Object.defineProperty(exports, "sponsoredExecutor", {
|
|
11941
11941
|
enumerable: true,
|
|
11942
|
-
get: function () { return
|
|
11942
|
+
get: function () { return chunkZYRSMDMJ_cjs.sponsoredExecutor; }
|
|
11943
11943
|
});
|
|
11944
11944
|
Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
|
|
11945
11945
|
enumerable: true,
|
|
11946
|
-
get: function () { return
|
|
11946
|
+
get: function () { return chunkZYRSMDMJ_cjs.starkKeyPairFromPrivateKey; }
|
|
11947
11947
|
});
|
|
11948
11948
|
Object.defineProperty(exports, "unsealPrivateKey", {
|
|
11949
11949
|
enumerable: true,
|
|
11950
|
-
get: function () { return
|
|
11950
|
+
get: function () { return chunkZYRSMDMJ_cjs.unsealPrivateKey; }
|
|
11951
11951
|
});
|
|
11952
11952
|
Object.defineProperty(exports, "waitUntilDeployed", {
|
|
11953
11953
|
enumerable: true,
|
|
11954
|
-
get: function () { return
|
|
11954
|
+
get: function () { return chunkZYRSMDMJ_cjs.waitUntilDeployed; }
|
|
11955
11955
|
});
|
|
11956
11956
|
Object.defineProperty(exports, "DeviceKeyMissingError", {
|
|
11957
11957
|
enumerable: true,
|
|
11958
|
-
get: function () { return
|
|
11958
|
+
get: function () { return chunkMCVAZVLN_cjs.DeviceKeyMissingError; }
|
|
11959
11959
|
});
|
|
11960
11960
|
Object.defineProperty(exports, "MedialaneError", {
|
|
11961
11961
|
enumerable: true,
|
|
11962
|
-
get: function () { return
|
|
11962
|
+
get: function () { return chunkMCVAZVLN_cjs.MedialaneError; }
|
|
11963
11963
|
});
|
|
11964
11964
|
Object.defineProperty(exports, "PasskeyCancelledError", {
|
|
11965
11965
|
enumerable: true,
|
|
11966
|
-
get: function () { return
|
|
11966
|
+
get: function () { return chunkMCVAZVLN_cjs.PasskeyCancelledError; }
|
|
11967
11967
|
});
|
|
11968
11968
|
Object.defineProperty(exports, "PasskeyUnsupportedError", {
|
|
11969
11969
|
enumerable: true,
|
|
11970
|
-
get: function () { return
|
|
11970
|
+
get: function () { return chunkMCVAZVLN_cjs.PasskeyUnsupportedError; }
|
|
11971
11971
|
});
|
|
11972
11972
|
Object.defineProperty(exports, "UserFacingError", {
|
|
11973
11973
|
enumerable: true,
|
|
11974
|
-
get: function () { return
|
|
11974
|
+
get: function () { return chunkMCVAZVLN_cjs.UserFacingError; }
|
|
11975
11975
|
});
|
|
11976
11976
|
exports.COIN_MAX_SUPPLY = MAX_SUPPLY;
|
|
11977
11977
|
exports.COIN_MIN_SUPPLY = MIN_SUPPLY;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as starknet from 'starknet';
|
|
2
2
|
import { RpcProvider, ProviderInterface, TypedData, Call, constants } from 'starknet';
|
|
3
|
-
import { b as ApiClient, q as MedialaneConfig, E as ResolvedConfig, H as ResolvedFeeConfig, p as FundingApi, I as IntentsApi, h as CreateDropParams, n as DropTerms, i as CreateMembershipParams, v as MintMembershipsParams, u as MintEditionParams, B as BatchMintEditionParams, a as AddSupplyParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, y as ProposeSponsorshipParams, l as CreateTicketParams, w as MintTicketsParams } from '../services-
|
|
4
|
-
export { V as ApiKeyAction, W as ApiKeyConfirmation, X as ApiKeyConfirmationInput, Y as CreateCreatorCoinParams, Z as CreatorCoinGuarantees, _ as CreatorCoinReceiptLike, D as DeployCollectionParams, $ as DropMintState, a0 as DropMintStateKind, a1 as DropOnchain, a2 as EkuboLaunchParams, a3 as EkuboPoolParams, a4 as MAX_HOLDERS_AT_LAUNCH, a5 as MAX_TEAM_ALLOCATION_PERCENT, r as MedialaneError, a6 as PopAllowlist, a7 as PopClaimInfo, a8 as PopClaimLink, a9 as PopClaimState,
|
|
3
|
+
import { b as ApiClient, q as MedialaneConfig, E as ResolvedConfig, H as ResolvedFeeConfig, p as FundingApi, I as IntentsApi, h as CreateDropParams, n as DropTerms, U as UserFacingError, i as CreateMembershipParams, v as MintMembershipsParams, u as MintEditionParams, B as BatchMintEditionParams, a as AddSupplyParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, y as ProposeSponsorshipParams, l as CreateTicketParams, w as MintTicketsParams } from '../services-Cy5FH8sP.cjs';
|
|
4
|
+
export { V as ApiKeyAction, W as ApiKeyConfirmation, X as ApiKeyConfirmationInput, Y as CreateCreatorCoinParams, Z as CreatorCoinGuarantees, _ as CreatorCoinReceiptLike, D as DeployCollectionParams, $ as DropMintState, a0 as DropMintStateKind, a1 as DropOnchain, a2 as EkuboLaunchParams, a3 as EkuboPoolParams, a4 as MAX_HOLDERS_AT_LAUNCH, a5 as MAX_TEAM_ALLOCATION_PERCENT, r as MedialaneError, a6 as PopAllowlist, a7 as PopClaimInfo, a8 as PopClaimLink, a9 as PopClaimState, aa as VALIDATED_EKUBO_PARAMS, ab as apiKeyConfirmationTypedData, ac as buildCreateCreatorCoinCall, ad as buildDropClaimCalls, ae as buildLaunchOnEkuboCalls, af as buildPopAllowlist, ag as decodePopClaimFragment, ah as dropClaimLinks, ai as dropClaimedBy, aj as dropMintState, ak as encodePopClaimFragment, al as getCreatorCoinGuarantees, am as isCreatorCoin, an as parseCreatorCoinCreated, ao as popCalls, ap as popClaimInfo, aq as popClaimLinks, ar as popClaimLinksCsv, as as popClaimState, at as popHasClaimed, au as priceToEkuboParams, av as readDrop, aw as validatePrice, ax as verifyPopProof } from '../services-Cy5FH8sP.cjs';
|
|
5
5
|
import { b as VenueSigner, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams } from '../types-BftPOVEJ.cjs';
|
|
6
6
|
import { I as ApiFundingInstructions, O as ApiIntentCreated } from '../passkey-errors-BjqEFmu_.cjs';
|
|
7
7
|
export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-BjqEFmu_.cjs';
|
|
@@ -8212,7 +8212,20 @@ type SponsoredExecuteResult = {
|
|
|
8212
8212
|
status: "unavailable";
|
|
8213
8213
|
reason: string;
|
|
8214
8214
|
};
|
|
8215
|
-
|
|
8215
|
+
interface SponsoredRejection {
|
|
8216
|
+
code?: string;
|
|
8217
|
+
detail?: string;
|
|
8218
|
+
status?: number;
|
|
8219
|
+
stage?: "build" | "execute";
|
|
8220
|
+
requestId?: string;
|
|
8221
|
+
}
|
|
8222
|
+
declare class SponsoredCallRejectedError extends UserFacingError {
|
|
8223
|
+
readonly code?: string;
|
|
8224
|
+
readonly detail?: string;
|
|
8225
|
+
readonly status?: number;
|
|
8226
|
+
readonly stage?: "build" | "execute";
|
|
8227
|
+
readonly requestId?: string;
|
|
8228
|
+
constructor(message: string, info?: SponsoredRejection);
|
|
8216
8229
|
}
|
|
8217
8230
|
type SponsorshipFailureCode = "sponsor_unavailable" | "credits_exhausted" | "account_not_deployed" | "not_executable" | "invalid_request" | "not_authorized" | "rate_limited" | "may_have_broadcast";
|
|
8218
8231
|
declare function allowsFallbackFunding(code: string | undefined, status: number, stage: "build" | "execute"): boolean;
|
|
@@ -8297,4 +8310,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
8297
8310
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8298
8311
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8299
8312
|
|
|
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 };
|
|
8313
|
+
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, UserFacingError, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as starknet from 'starknet';
|
|
2
2
|
import { RpcProvider, ProviderInterface, TypedData, Call, constants } from 'starknet';
|
|
3
|
-
import { b as ApiClient, q as MedialaneConfig, E as ResolvedConfig, H as ResolvedFeeConfig, p as FundingApi, I as IntentsApi, h as CreateDropParams, n as DropTerms, i as CreateMembershipParams, v as MintMembershipsParams, u as MintEditionParams, B as BatchMintEditionParams, a as AddSupplyParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, y as ProposeSponsorshipParams, l as CreateTicketParams, w as MintTicketsParams } from '../services-
|
|
4
|
-
export { V as ApiKeyAction, W as ApiKeyConfirmation, X as ApiKeyConfirmationInput, Y as CreateCreatorCoinParams, Z as CreatorCoinGuarantees, _ as CreatorCoinReceiptLike, D as DeployCollectionParams, $ as DropMintState, a0 as DropMintStateKind, a1 as DropOnchain, a2 as EkuboLaunchParams, a3 as EkuboPoolParams, a4 as MAX_HOLDERS_AT_LAUNCH, a5 as MAX_TEAM_ALLOCATION_PERCENT, r as MedialaneError, a6 as PopAllowlist, a7 as PopClaimInfo, a8 as PopClaimLink, a9 as PopClaimState,
|
|
3
|
+
import { b as ApiClient, q as MedialaneConfig, E as ResolvedConfig, H as ResolvedFeeConfig, p as FundingApi, I as IntentsApi, h as CreateDropParams, n as DropTerms, U as UserFacingError, i as CreateMembershipParams, v as MintMembershipsParams, u as MintEditionParams, B as BatchMintEditionParams, a as AddSupplyParams, j as CreatePopCollectionParams, k as CreateSponsorshipOfferParams, y as ProposeSponsorshipParams, l as CreateTicketParams, w as MintTicketsParams } from '../services-DWmXVwTV.js';
|
|
4
|
+
export { V as ApiKeyAction, W as ApiKeyConfirmation, X as ApiKeyConfirmationInput, Y as CreateCreatorCoinParams, Z as CreatorCoinGuarantees, _ as CreatorCoinReceiptLike, D as DeployCollectionParams, $ as DropMintState, a0 as DropMintStateKind, a1 as DropOnchain, a2 as EkuboLaunchParams, a3 as EkuboPoolParams, a4 as MAX_HOLDERS_AT_LAUNCH, a5 as MAX_TEAM_ALLOCATION_PERCENT, r as MedialaneError, a6 as PopAllowlist, a7 as PopClaimInfo, a8 as PopClaimLink, a9 as PopClaimState, aa as VALIDATED_EKUBO_PARAMS, ab as apiKeyConfirmationTypedData, ac as buildCreateCreatorCoinCall, ad as buildDropClaimCalls, ae as buildLaunchOnEkuboCalls, af as buildPopAllowlist, ag as decodePopClaimFragment, ah as dropClaimLinks, ai as dropClaimedBy, aj as dropMintState, ak as encodePopClaimFragment, al as getCreatorCoinGuarantees, am as isCreatorCoin, an as parseCreatorCoinCreated, ao as popCalls, ap as popClaimInfo, aq as popClaimLinks, ar as popClaimLinksCsv, as as popClaimState, at as popHasClaimed, au as priceToEkuboParams, av as readDrop, aw as validatePrice, ax as verifyPopProof } from '../services-DWmXVwTV.js';
|
|
5
5
|
import { b as VenueSigner, V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams } from '../types-BW6ktwcT.js';
|
|
6
6
|
import { I as ApiFundingInstructions, O as ApiIntentCreated } from '../passkey-errors-DMv2Vn1P.js';
|
|
7
7
|
export { bc as DeviceKeyMissingError, bv as PasskeyCancelledError, bw as PasskeyUnsupportedError, bx as PasskeyUnsupportedReason } from '../passkey-errors-DMv2Vn1P.js';
|
|
@@ -8212,7 +8212,20 @@ type SponsoredExecuteResult = {
|
|
|
8212
8212
|
status: "unavailable";
|
|
8213
8213
|
reason: string;
|
|
8214
8214
|
};
|
|
8215
|
-
|
|
8215
|
+
interface SponsoredRejection {
|
|
8216
|
+
code?: string;
|
|
8217
|
+
detail?: string;
|
|
8218
|
+
status?: number;
|
|
8219
|
+
stage?: "build" | "execute";
|
|
8220
|
+
requestId?: string;
|
|
8221
|
+
}
|
|
8222
|
+
declare class SponsoredCallRejectedError extends UserFacingError {
|
|
8223
|
+
readonly code?: string;
|
|
8224
|
+
readonly detail?: string;
|
|
8225
|
+
readonly status?: number;
|
|
8226
|
+
readonly stage?: "build" | "execute";
|
|
8227
|
+
readonly requestId?: string;
|
|
8228
|
+
constructor(message: string, info?: SponsoredRejection);
|
|
8216
8229
|
}
|
|
8217
8230
|
type SponsorshipFailureCode = "sponsor_unavailable" | "credits_exhausted" | "account_not_deployed" | "not_executable" | "invalid_request" | "not_authorized" | "rate_limited" | "may_have_broadcast";
|
|
8218
8231
|
declare function allowsFallbackFunding(code: string | undefined, status: number, stage: "build" | "execute"): boolean;
|
|
@@ -8297,4 +8310,4 @@ declare function build1155OrderTypedData(message: Record<string, unknown>, chain
|
|
|
8297
8310
|
declare function buildCancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8298
8311
|
declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId | string): TypedData;
|
|
8299
8312
|
|
|
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 };
|
|
8313
|
+
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, UserFacingError, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveConfig, getService, collectionHref, dropHref, stringifyBigInts } from '../chunk-GV4A2WNO.js';
|
|
2
|
-
export { InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, SponsoredCallRejectedError, accountFor, allowsFallbackFunding, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, erc20Balance, estimateSelfFundedFee, executeSponsored, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, unsealPrivateKey, waitUntilDeployed } from '../chunk-
|
|
3
|
-
import { ApiClient, UserFacingError, normalizeAddress, SUPPORTED_TOKENS, MedialaneError, MedialaneApiError } from '../chunk-
|
|
4
|
-
export { DeviceKeyMissingError, MedialaneError, PasskeyCancelledError, PasskeyUnsupportedError, UserFacingError } from '../chunk-
|
|
2
|
+
export { InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, SponsoredCallRejectedError, accountFor, allowsFallbackFunding, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, erc20Balance, estimateSelfFundedFee, executeSponsored, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, unsealPrivateKey, waitUntilDeployed } from '../chunk-EPU52YSA.js';
|
|
3
|
+
import { ApiClient, UserFacingError, normalizeAddress, SUPPORTED_TOKENS, MedialaneError, MedialaneApiError } from '../chunk-GENBWVGK.js';
|
|
4
|
+
export { DeviceKeyMissingError, MedialaneError, PasskeyCancelledError, PasskeyUnsupportedError, UserFacingError } from '../chunk-GENBWVGK.js';
|
|
5
5
|
import { getStarknetCoordinates } from '../chunk-5KY6P434.js';
|
|
6
6
|
import '../chunk-WRBXQPRL.js';
|
|
7
7
|
import '../chunk-PZ5AY32C.js';
|