@medialane/sdk 0.167.0 → 0.169.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-TPONHUAU.cjs → chunk-4SZV7J2R.cjs} +56 -9
- package/dist/chunk-4SZV7J2R.cjs.map +1 -0
- package/dist/{chunk-H7I6TEOA.cjs → chunk-VJVBWHAD.cjs} +5 -4
- package/dist/chunk-VJVBWHAD.cjs.map +1 -0
- package/dist/{chunk-PBJLHXDB.js → chunk-WYKCGQPN.js} +5 -4
- package/dist/chunk-WYKCGQPN.js.map +1 -0
- package/dist/{chunk-USFXQO4T.js → chunk-X5RNNPDU.js} +51 -6
- package/dist/chunk-X5RNNPDU.js.map +1 -0
- package/dist/{errors-DRiTDrwm.d.ts → errors-D6S2d0Oy.d.ts} +131 -12
- package/dist/{errors-GcSzVvZL.d.cts → errors-GfSlToOh.d.cts} +131 -12
- package/dist/evm/index.cjs +3 -3
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +1 -1
- package/dist/index.cjs +90 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -8
- package/dist/index.d.ts +16 -8
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +2 -2
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +1 -1
- package/dist/starknet/index.cjs +1134 -415
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +790 -402
- package/dist/starknet/index.d.ts +790 -402
- package/dist/starknet/index.js +1051 -341
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +2 -2
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/stellar/index.js +1 -1
- package/dist/{types-PPshMWr7.d.cts → types-BTNjkUst.d.cts} +4 -1
- package/dist/{types-PPshMWr7.d.ts → types-BTNjkUst.d.ts} +4 -1
- package/package.json +1 -1
- package/dist/chunk-H7I6TEOA.cjs.map +0 -1
- package/dist/chunk-PBJLHXDB.js.map +0 -1
- package/dist/chunk-TPONHUAU.cjs.map +0 -1
- package/dist/chunk-USFXQO4T.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as Chain } from './types-
|
|
2
|
+
import { C as Chain } from './types-BTNjkUst.js';
|
|
3
3
|
import { Call, TypedData } from 'starknet';
|
|
4
4
|
|
|
5
5
|
interface RetryOptions {
|
|
@@ -545,6 +545,18 @@ interface CreateMintIntentParams {
|
|
|
545
545
|
value?: string;
|
|
546
546
|
collectionContract?: string;
|
|
547
547
|
}
|
|
548
|
+
/** Drop sale terms on the wire: amounts as decimal strings in the token's smallest unit. */
|
|
549
|
+
interface DropTermsBody {
|
|
550
|
+
/** Unix seconds; 0 = open from creation. */
|
|
551
|
+
startTime: number;
|
|
552
|
+
/** Unix seconds; 0 = never closes. */
|
|
553
|
+
endTime: number;
|
|
554
|
+
/** Per token; "0" = free. */
|
|
555
|
+
price: string;
|
|
556
|
+
paymentToken: string;
|
|
557
|
+
/** "0" = unlimited. */
|
|
558
|
+
maxPerWallet: string;
|
|
559
|
+
}
|
|
548
560
|
interface CreateCollectionIntentParams {
|
|
549
561
|
owner: string;
|
|
550
562
|
name: string;
|
|
@@ -556,13 +568,10 @@ interface CreateCollectionIntentParams {
|
|
|
556
568
|
service?: CollectionServiceId;
|
|
557
569
|
claimEndTimestamp?: number;
|
|
558
570
|
maxSupply?: string;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
paymentToken: string;
|
|
564
|
-
maxQuantityPerWallet: string;
|
|
565
|
-
};
|
|
571
|
+
/** drop-collection */
|
|
572
|
+
terms?: DropTermsBody;
|
|
573
|
+
/** drop-collection — Merkle root of the allowlist; omitted = open to everyone */
|
|
574
|
+
allowlistRoot?: string;
|
|
566
575
|
}
|
|
567
576
|
interface CheckoutIntentItem {
|
|
568
577
|
orderHash: string;
|
|
@@ -1227,6 +1236,93 @@ interface ApiPricing {
|
|
|
1227
1236
|
rules: ApiPricingRule[];
|
|
1228
1237
|
};
|
|
1229
1238
|
}
|
|
1239
|
+
interface CreateTransferTokenIntentParams {
|
|
1240
|
+
owner: string;
|
|
1241
|
+
token: string;
|
|
1242
|
+
recipient: string;
|
|
1243
|
+
amount: string;
|
|
1244
|
+
}
|
|
1245
|
+
interface CreateTransferNftIntentParams {
|
|
1246
|
+
owner: string;
|
|
1247
|
+
contractAddress: string;
|
|
1248
|
+
tokenId: string;
|
|
1249
|
+
recipient: string;
|
|
1250
|
+
tokenStandard: "ERC721" | "ERC1155";
|
|
1251
|
+
}
|
|
1252
|
+
interface CreateTransferCollectionOwnershipIntentParams {
|
|
1253
|
+
owner: string;
|
|
1254
|
+
collectionId: string;
|
|
1255
|
+
newOwner: string;
|
|
1256
|
+
}
|
|
1257
|
+
interface CreateCommentIntentParams {
|
|
1258
|
+
author: string;
|
|
1259
|
+
nftContract: string;
|
|
1260
|
+
tokenId: string;
|
|
1261
|
+
text: string;
|
|
1262
|
+
}
|
|
1263
|
+
interface CreateGenesisMintIntentParams {
|
|
1264
|
+
owner: string;
|
|
1265
|
+
recipient: string;
|
|
1266
|
+
}
|
|
1267
|
+
interface CreatePopClaimIntentParams {
|
|
1268
|
+
claimer: string;
|
|
1269
|
+
collection: string;
|
|
1270
|
+
proof: string[];
|
|
1271
|
+
}
|
|
1272
|
+
interface CreatePopBurnIntentParams {
|
|
1273
|
+
owner: string;
|
|
1274
|
+
collection: string;
|
|
1275
|
+
tokenId: string;
|
|
1276
|
+
}
|
|
1277
|
+
interface CreateDropClaimIntentParams {
|
|
1278
|
+
claimer: string;
|
|
1279
|
+
collection: string;
|
|
1280
|
+
/** Tokens to mint, decimal string. */
|
|
1281
|
+
quantity: string;
|
|
1282
|
+
/** Allowlist proof from the claim link; omitted for open drops. */
|
|
1283
|
+
proof?: string[];
|
|
1284
|
+
}
|
|
1285
|
+
type WalletManageAction = "add_owner" | "remove_owner" | "cancel_escape" | "set_first_guardian" | "trigger_escape" | "complete_escape";
|
|
1286
|
+
interface CreateWalletManageIntentParams {
|
|
1287
|
+
owner: string;
|
|
1288
|
+
action: WalletManageAction;
|
|
1289
|
+
pubkey?: string;
|
|
1290
|
+
ownerGuid?: string;
|
|
1291
|
+
newOwnerPubkey?: string;
|
|
1292
|
+
}
|
|
1293
|
+
interface CreateSwapIntentParams {
|
|
1294
|
+
taker: string;
|
|
1295
|
+
sellTokenAddress: string;
|
|
1296
|
+
buyTokenAddress: string;
|
|
1297
|
+
sellAmountRaw?: string;
|
|
1298
|
+
buyAmountRaw?: string;
|
|
1299
|
+
}
|
|
1300
|
+
interface CreateFundingTransferIntentParams {
|
|
1301
|
+
owner: string;
|
|
1302
|
+
asset: string;
|
|
1303
|
+
amountAtomic: string;
|
|
1304
|
+
}
|
|
1305
|
+
type DropManageAction = "issue" | "set_allowlist_root";
|
|
1306
|
+
interface CreateDropManageIntentParams {
|
|
1307
|
+
owner: string;
|
|
1308
|
+
collection: string;
|
|
1309
|
+
action: DropManageAction;
|
|
1310
|
+
/** issue */
|
|
1311
|
+
recipient?: string;
|
|
1312
|
+
/** issue — decimal string */
|
|
1313
|
+
quantity?: string;
|
|
1314
|
+
/** set_allowlist_root — 0x0 opens the drop to everyone */
|
|
1315
|
+
root?: string;
|
|
1316
|
+
}
|
|
1317
|
+
type PopManageAction = "issue" | "set_allowlist_root";
|
|
1318
|
+
interface CreatePopManageIntentParams {
|
|
1319
|
+
owner: string;
|
|
1320
|
+
collection: string;
|
|
1321
|
+
action: PopManageAction;
|
|
1322
|
+
recipient?: string;
|
|
1323
|
+
tokenUri?: string;
|
|
1324
|
+
root?: string;
|
|
1325
|
+
}
|
|
1230
1326
|
|
|
1231
1327
|
type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
|
|
1232
1328
|
|
|
@@ -1284,6 +1380,19 @@ declare class ApiClient {
|
|
|
1284
1380
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1285
1381
|
syncTransaction(txHash: string): Promise<ApiResponse<ApiTxSyncResult>>;
|
|
1286
1382
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1383
|
+
createTransferTokenIntent(params: CreateTransferTokenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1384
|
+
createTransferNftIntent(params: CreateTransferNftIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1385
|
+
createTransferCollectionOwnershipIntent(params: CreateTransferCollectionOwnershipIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1386
|
+
createCommentIntent(params: CreateCommentIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1387
|
+
createGenesisMintIntent(params: CreateGenesisMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1388
|
+
createPopClaimIntent(params: CreatePopClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1389
|
+
createPopBurnIntent(params: CreatePopBurnIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1390
|
+
createDropClaimIntent(params: CreateDropClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1391
|
+
createWalletManageIntent(params: CreateWalletManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1392
|
+
createSwapIntent(params: CreateSwapIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1393
|
+
createFundingTransferIntent(params: CreateFundingTransferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1394
|
+
createDropManageIntent(params: CreateDropManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1395
|
+
createPopManageIntent(params: CreatePopManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1287
1396
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1288
1397
|
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1289
1398
|
emitToRecipients(params: EmissionParams): Promise<ApiResponse<ApiEmissionResult>>;
|
|
@@ -1517,6 +1626,7 @@ interface WalletExecutor {
|
|
|
1517
1626
|
userAddress: string;
|
|
1518
1627
|
privateKeyHex: string;
|
|
1519
1628
|
calls: Call[];
|
|
1629
|
+
intentIds?: string[];
|
|
1520
1630
|
}): Promise<ExecutedTransaction>;
|
|
1521
1631
|
}
|
|
1522
1632
|
interface ReceiptProviderLike {
|
|
@@ -1614,19 +1724,28 @@ interface CreatePopCollectionParams {
|
|
|
1614
1724
|
/** Unix seconds; 0 = no deadline. */
|
|
1615
1725
|
claimEndTime: number;
|
|
1616
1726
|
}
|
|
1617
|
-
interface
|
|
1727
|
+
interface DropTerms {
|
|
1728
|
+
/** Unix seconds; 0 = open from creation. */
|
|
1618
1729
|
startTime: number;
|
|
1730
|
+
/** Unix seconds; 0 = never closes. */
|
|
1619
1731
|
endTime: number;
|
|
1732
|
+
/** Per token, in the payment token's smallest unit; 0 = free. */
|
|
1620
1733
|
price: bigint | string;
|
|
1734
|
+
/** Sent as zero when the drop is free. */
|
|
1621
1735
|
paymentToken: string;
|
|
1622
|
-
|
|
1736
|
+
/** Claims per wallet; 0 = unlimited. */
|
|
1737
|
+
maxPerWallet: bigint | string;
|
|
1623
1738
|
}
|
|
1624
1739
|
interface CreateDropParams {
|
|
1625
1740
|
name: string;
|
|
1626
1741
|
symbol: string;
|
|
1742
|
+
/** Token URI = baseUri + token id. */
|
|
1627
1743
|
baseUri: string;
|
|
1744
|
+
/** 0 = no cap. */
|
|
1628
1745
|
maxSupply: bigint | string;
|
|
1629
|
-
|
|
1746
|
+
terms: DropTerms;
|
|
1747
|
+
/** Merkle root of the allowlist; absent or 0 = open to everyone. */
|
|
1748
|
+
allowlistRoot?: string;
|
|
1630
1749
|
}
|
|
1631
1750
|
interface CreateTicketParams {
|
|
1632
1751
|
collection: string;
|
|
@@ -1683,4 +1802,4 @@ declare class UserFacingError extends Error {
|
|
|
1683
1802
|
constructor(message: string);
|
|
1684
1803
|
}
|
|
1685
1804
|
|
|
1686
|
-
export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type
|
|
1805
|
+
export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type CreateMembershipParams as a$, type ApiPointEvent as a0, type ApiPortalKey as a1, type ApiPortalKeyCreated as a2, type ApiPortalMe as a3, type ApiPortalSpend as a4, type ApiPricing as a5, type ApiPricingRule as a6, type ApiPublicRemix as a7, type ApiRemixOffer as a8, type ApiRemixOfferPrice as a9, type ApiTokensQuery as aA, type ApiTxSyncResult as aB, type ApiUserRewards as aC, type ApiUserWallet as aD, type ApiUsernameClaim as aE, type ApiWalletActivity as aF, type AutoRemixOfferParams as aG, type CancelOrderIntentParams as aH, type ChainFilter as aI, type CheckoutIntentItem as aJ, type CollectionServiceId as aK, type CollectionSort as aL, type CollectionTokensSort as aM, type ConfirmRemixOfferParams as aN, type ConfirmSelfRemixParams as aO, type ConsiderationItem as aP, type CreateCheckoutIntentParams as aQ, type CreateCoinIntentParams as aR, type CreateCollectionIntentParams as aS, type CreateCommentIntentParams as aT, type CreateCounterOfferIntentParams as aU, type CreateDropClaimIntentParams as aV, type CreateDropManageIntentParams as aW, type CreateDropParams as aX, type CreateFundingTransferIntentParams as aY, type CreateGenesisMintIntentParams as aZ, type CreateListingIntentParams as a_, type ApiRemixOffersQuery as aa, type ApiReportTargetType as ab, type ApiResponse as ac, type ApiRewardsBadge as ad, type ApiRewardsBatchEntry as ae, type ApiRewardsConfig as af, type ApiRewardsLeaderboardEntry as ag, type ApiRewardsLevel as ah, type ApiSearchCollectionResult as ai, type ApiSearchCreatorResult as aj, type ApiSearchResult as ak, type ApiSearchTokenResult as al, type ApiSession as am, type ApiSpendByAction as an, type ApiSponsorshipBid as ao, type ApiSponsorshipLicense as ap, type ApiSponsorshipLicensesQuery as aq, type ApiSponsorshipOffer as ar, type ApiSponsorshipOffersQuery as as, type ApiSponsorshipProposal as at, type ApiSponsorshipProposalsQuery as au, type ApiSubmitReport as av, type ApiTierOnchain as aw, type ApiToken as ax, type ApiTokenBalance as ay, type ApiTokenMetadata as az, type AcceptSponsorshipProposalIntentParams as b, UserFacingError as b$, type CreateMintIntentParams as b0, type CreatePopBurnIntentParams as b1, type CreatePopClaimIntentParams as b2, type CreatePopCollectionParams as b3, type CreatePopManageIntentParams as b4, type CreateRemixOfferParams as b5, type CreateSponsorshipOfferIntentParams as b6, type CreateSponsorshipOfferParams as b7, type CreateSponsorshipProposalIntentParams as b8, type CreateSwapIntentParams as b9, type MedialaneErrorCode as bA, type MintMembershipsParams as bB, type MintTicketsParams as bC, OPEN_LICENSES as bD, type OfferItem as bE, type OpenLicense as bF, type Order as bG, type OrderDetails as bH, type OrderParameters as bI, type OrderStatus as bJ, PasskeyCancelledError as bK, PasskeyUnsupportedError as bL, type PasskeyUnsupportedReason as bM, type PlaceSponsorshipBidIntentParams as bN, type PopManageAction as bO, type ProposeSponsorshipParams as bP, type RejectSponsorshipProposalIntentParams as bQ, type RemixOfferStatus as bR, type ResolvedConfig as bS, type RetractSponsorshipBidIntentParams as bT, type RetryOptions as bU, type ServiceEventDeclaration as bV, type SetSponsorshipOfferOpenIntentParams as bW, type SortOrder as bX, type TierServiceId as bY, type TxResult as bZ, type UpdateCollectionProfileInput as b_, type CreateTicketParams as ba, type CreateTierIntentParams as bb, type CreateTransferCollectionOwnershipIntentParams as bc, type CreateTransferNftIntentParams as bd, type CreateTransferTokenIntentParams as be, type CreateWalletManageIntentParams as bf, type DropManageAction as bg, type DropMintStatus as bh, type DropTerms as bi, type DropTermsBody as bj, type EmissionParams as bk, type EnforcementDeclaration as bl, type FactoryFamilyServiceId as bm, type FeeConfig as bn, FeeConfigSchema as bo, type FulfillOrderIntentParams as bp, type IPType as bq, type IntentCall as br, type IntentStatus as bs, type IntentType as bt, type IpAttribute as bu, type IpNftMetadata as bv, type LaunchCoinIntentParams as bw, type MakeOfferIntentParams as bx, MedialaneApiError as by, type MedialaneConfig as bz, type ActivityType as c, type WalletManageAction as c0, type WithdrawSponsorshipProposalIntentParams as c1, resolveConfig as c2, resolveFeeConfig as c3, type SealedOwner as c4, type ReceiptProviderLike as c5, type WalletExecutor as c6, type ExecutedTransaction as c7, type PasskeyOwner as c8, type CreatedOwner as c9, InvalidRecoveryKeyError as ca, type OwnerSigner as cb, type PasskeyConfig as cc, type RecoveryKey as cd, createPasskeyOwner as ce, encodeRecoveryKey as cf, parseRecoveryKey as cg, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as Chain } from './types-
|
|
2
|
+
import { C as Chain } from './types-BTNjkUst.cjs';
|
|
3
3
|
import { Call, TypedData } from 'starknet';
|
|
4
4
|
|
|
5
5
|
interface RetryOptions {
|
|
@@ -545,6 +545,18 @@ interface CreateMintIntentParams {
|
|
|
545
545
|
value?: string;
|
|
546
546
|
collectionContract?: string;
|
|
547
547
|
}
|
|
548
|
+
/** Drop sale terms on the wire: amounts as decimal strings in the token's smallest unit. */
|
|
549
|
+
interface DropTermsBody {
|
|
550
|
+
/** Unix seconds; 0 = open from creation. */
|
|
551
|
+
startTime: number;
|
|
552
|
+
/** Unix seconds; 0 = never closes. */
|
|
553
|
+
endTime: number;
|
|
554
|
+
/** Per token; "0" = free. */
|
|
555
|
+
price: string;
|
|
556
|
+
paymentToken: string;
|
|
557
|
+
/** "0" = unlimited. */
|
|
558
|
+
maxPerWallet: string;
|
|
559
|
+
}
|
|
548
560
|
interface CreateCollectionIntentParams {
|
|
549
561
|
owner: string;
|
|
550
562
|
name: string;
|
|
@@ -556,13 +568,10 @@ interface CreateCollectionIntentParams {
|
|
|
556
568
|
service?: CollectionServiceId;
|
|
557
569
|
claimEndTimestamp?: number;
|
|
558
570
|
maxSupply?: string;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
paymentToken: string;
|
|
564
|
-
maxQuantityPerWallet: string;
|
|
565
|
-
};
|
|
571
|
+
/** drop-collection */
|
|
572
|
+
terms?: DropTermsBody;
|
|
573
|
+
/** drop-collection — Merkle root of the allowlist; omitted = open to everyone */
|
|
574
|
+
allowlistRoot?: string;
|
|
566
575
|
}
|
|
567
576
|
interface CheckoutIntentItem {
|
|
568
577
|
orderHash: string;
|
|
@@ -1227,6 +1236,93 @@ interface ApiPricing {
|
|
|
1227
1236
|
rules: ApiPricingRule[];
|
|
1228
1237
|
};
|
|
1229
1238
|
}
|
|
1239
|
+
interface CreateTransferTokenIntentParams {
|
|
1240
|
+
owner: string;
|
|
1241
|
+
token: string;
|
|
1242
|
+
recipient: string;
|
|
1243
|
+
amount: string;
|
|
1244
|
+
}
|
|
1245
|
+
interface CreateTransferNftIntentParams {
|
|
1246
|
+
owner: string;
|
|
1247
|
+
contractAddress: string;
|
|
1248
|
+
tokenId: string;
|
|
1249
|
+
recipient: string;
|
|
1250
|
+
tokenStandard: "ERC721" | "ERC1155";
|
|
1251
|
+
}
|
|
1252
|
+
interface CreateTransferCollectionOwnershipIntentParams {
|
|
1253
|
+
owner: string;
|
|
1254
|
+
collectionId: string;
|
|
1255
|
+
newOwner: string;
|
|
1256
|
+
}
|
|
1257
|
+
interface CreateCommentIntentParams {
|
|
1258
|
+
author: string;
|
|
1259
|
+
nftContract: string;
|
|
1260
|
+
tokenId: string;
|
|
1261
|
+
text: string;
|
|
1262
|
+
}
|
|
1263
|
+
interface CreateGenesisMintIntentParams {
|
|
1264
|
+
owner: string;
|
|
1265
|
+
recipient: string;
|
|
1266
|
+
}
|
|
1267
|
+
interface CreatePopClaimIntentParams {
|
|
1268
|
+
claimer: string;
|
|
1269
|
+
collection: string;
|
|
1270
|
+
proof: string[];
|
|
1271
|
+
}
|
|
1272
|
+
interface CreatePopBurnIntentParams {
|
|
1273
|
+
owner: string;
|
|
1274
|
+
collection: string;
|
|
1275
|
+
tokenId: string;
|
|
1276
|
+
}
|
|
1277
|
+
interface CreateDropClaimIntentParams {
|
|
1278
|
+
claimer: string;
|
|
1279
|
+
collection: string;
|
|
1280
|
+
/** Tokens to mint, decimal string. */
|
|
1281
|
+
quantity: string;
|
|
1282
|
+
/** Allowlist proof from the claim link; omitted for open drops. */
|
|
1283
|
+
proof?: string[];
|
|
1284
|
+
}
|
|
1285
|
+
type WalletManageAction = "add_owner" | "remove_owner" | "cancel_escape" | "set_first_guardian" | "trigger_escape" | "complete_escape";
|
|
1286
|
+
interface CreateWalletManageIntentParams {
|
|
1287
|
+
owner: string;
|
|
1288
|
+
action: WalletManageAction;
|
|
1289
|
+
pubkey?: string;
|
|
1290
|
+
ownerGuid?: string;
|
|
1291
|
+
newOwnerPubkey?: string;
|
|
1292
|
+
}
|
|
1293
|
+
interface CreateSwapIntentParams {
|
|
1294
|
+
taker: string;
|
|
1295
|
+
sellTokenAddress: string;
|
|
1296
|
+
buyTokenAddress: string;
|
|
1297
|
+
sellAmountRaw?: string;
|
|
1298
|
+
buyAmountRaw?: string;
|
|
1299
|
+
}
|
|
1300
|
+
interface CreateFundingTransferIntentParams {
|
|
1301
|
+
owner: string;
|
|
1302
|
+
asset: string;
|
|
1303
|
+
amountAtomic: string;
|
|
1304
|
+
}
|
|
1305
|
+
type DropManageAction = "issue" | "set_allowlist_root";
|
|
1306
|
+
interface CreateDropManageIntentParams {
|
|
1307
|
+
owner: string;
|
|
1308
|
+
collection: string;
|
|
1309
|
+
action: DropManageAction;
|
|
1310
|
+
/** issue */
|
|
1311
|
+
recipient?: string;
|
|
1312
|
+
/** issue — decimal string */
|
|
1313
|
+
quantity?: string;
|
|
1314
|
+
/** set_allowlist_root — 0x0 opens the drop to everyone */
|
|
1315
|
+
root?: string;
|
|
1316
|
+
}
|
|
1317
|
+
type PopManageAction = "issue" | "set_allowlist_root";
|
|
1318
|
+
interface CreatePopManageIntentParams {
|
|
1319
|
+
owner: string;
|
|
1320
|
+
collection: string;
|
|
1321
|
+
action: PopManageAction;
|
|
1322
|
+
recipient?: string;
|
|
1323
|
+
tokenUri?: string;
|
|
1324
|
+
root?: string;
|
|
1325
|
+
}
|
|
1230
1326
|
|
|
1231
1327
|
type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
|
|
1232
1328
|
|
|
@@ -1284,6 +1380,19 @@ declare class ApiClient {
|
|
|
1284
1380
|
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1285
1381
|
syncTransaction(txHash: string): Promise<ApiResponse<ApiTxSyncResult>>;
|
|
1286
1382
|
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1383
|
+
createTransferTokenIntent(params: CreateTransferTokenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1384
|
+
createTransferNftIntent(params: CreateTransferNftIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1385
|
+
createTransferCollectionOwnershipIntent(params: CreateTransferCollectionOwnershipIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1386
|
+
createCommentIntent(params: CreateCommentIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1387
|
+
createGenesisMintIntent(params: CreateGenesisMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1388
|
+
createPopClaimIntent(params: CreatePopClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1389
|
+
createPopBurnIntent(params: CreatePopBurnIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1390
|
+
createDropClaimIntent(params: CreateDropClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1391
|
+
createWalletManageIntent(params: CreateWalletManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1392
|
+
createSwapIntent(params: CreateSwapIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1393
|
+
createFundingTransferIntent(params: CreateFundingTransferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1394
|
+
createDropManageIntent(params: CreateDropManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1395
|
+
createPopManageIntent(params: CreatePopManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1287
1396
|
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1288
1397
|
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1289
1398
|
emitToRecipients(params: EmissionParams): Promise<ApiResponse<ApiEmissionResult>>;
|
|
@@ -1517,6 +1626,7 @@ interface WalletExecutor {
|
|
|
1517
1626
|
userAddress: string;
|
|
1518
1627
|
privateKeyHex: string;
|
|
1519
1628
|
calls: Call[];
|
|
1629
|
+
intentIds?: string[];
|
|
1520
1630
|
}): Promise<ExecutedTransaction>;
|
|
1521
1631
|
}
|
|
1522
1632
|
interface ReceiptProviderLike {
|
|
@@ -1614,19 +1724,28 @@ interface CreatePopCollectionParams {
|
|
|
1614
1724
|
/** Unix seconds; 0 = no deadline. */
|
|
1615
1725
|
claimEndTime: number;
|
|
1616
1726
|
}
|
|
1617
|
-
interface
|
|
1727
|
+
interface DropTerms {
|
|
1728
|
+
/** Unix seconds; 0 = open from creation. */
|
|
1618
1729
|
startTime: number;
|
|
1730
|
+
/** Unix seconds; 0 = never closes. */
|
|
1619
1731
|
endTime: number;
|
|
1732
|
+
/** Per token, in the payment token's smallest unit; 0 = free. */
|
|
1620
1733
|
price: bigint | string;
|
|
1734
|
+
/** Sent as zero when the drop is free. */
|
|
1621
1735
|
paymentToken: string;
|
|
1622
|
-
|
|
1736
|
+
/** Claims per wallet; 0 = unlimited. */
|
|
1737
|
+
maxPerWallet: bigint | string;
|
|
1623
1738
|
}
|
|
1624
1739
|
interface CreateDropParams {
|
|
1625
1740
|
name: string;
|
|
1626
1741
|
symbol: string;
|
|
1742
|
+
/** Token URI = baseUri + token id. */
|
|
1627
1743
|
baseUri: string;
|
|
1744
|
+
/** 0 = no cap. */
|
|
1628
1745
|
maxSupply: bigint | string;
|
|
1629
|
-
|
|
1746
|
+
terms: DropTerms;
|
|
1747
|
+
/** Merkle root of the allowlist; absent or 0 = open to everyone. */
|
|
1748
|
+
allowlistRoot?: string;
|
|
1630
1749
|
}
|
|
1631
1750
|
interface CreateTicketParams {
|
|
1632
1751
|
collection: string;
|
|
@@ -1683,4 +1802,4 @@ declare class UserFacingError extends Error {
|
|
|
1683
1802
|
constructor(message: string);
|
|
1684
1803
|
}
|
|
1685
1804
|
|
|
1686
|
-
export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type
|
|
1805
|
+
export { type ApiPlatformStats as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDropConditions as C, type ApiDropInfo as D, type ApiDropState as E, type ApiEmissionCall as F, type ApiEmissionResult as G, type ApiFundingInstructions as H, type ApiFundingIntent as I, type ApiFundingMethod as J, type ApiFundingStatus as K, type ApiFundingSubmit as L, type ApiIntent as M, type ApiIntentCreated as N, type ApiIpNftTokenData as O, type ApiMeta as P, type ApiMetadataSignedUrl as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataUpload as T, type ApiOrder as U, type ApiOrderConsideration as V, type ApiOrderOffer as W, type ApiOrderPrice as X, type ApiOrderTokenMeta as Y, type ApiOrderTxHash as Z, type ApiOrdersQuery as _, type ServiceCapability as a, type CreateMembershipParams as a$, type ApiPointEvent as a0, type ApiPortalKey as a1, type ApiPortalKeyCreated as a2, type ApiPortalMe as a3, type ApiPortalSpend as a4, type ApiPricing as a5, type ApiPricingRule as a6, type ApiPublicRemix as a7, type ApiRemixOffer as a8, type ApiRemixOfferPrice as a9, type ApiTokensQuery as aA, type ApiTxSyncResult as aB, type ApiUserRewards as aC, type ApiUserWallet as aD, type ApiUsernameClaim as aE, type ApiWalletActivity as aF, type AutoRemixOfferParams as aG, type CancelOrderIntentParams as aH, type ChainFilter as aI, type CheckoutIntentItem as aJ, type CollectionServiceId as aK, type CollectionSort as aL, type CollectionTokensSort as aM, type ConfirmRemixOfferParams as aN, type ConfirmSelfRemixParams as aO, type ConsiderationItem as aP, type CreateCheckoutIntentParams as aQ, type CreateCoinIntentParams as aR, type CreateCollectionIntentParams as aS, type CreateCommentIntentParams as aT, type CreateCounterOfferIntentParams as aU, type CreateDropClaimIntentParams as aV, type CreateDropManageIntentParams as aW, type CreateDropParams as aX, type CreateFundingTransferIntentParams as aY, type CreateGenesisMintIntentParams as aZ, type CreateListingIntentParams as a_, type ApiRemixOffersQuery as aa, type ApiReportTargetType as ab, type ApiResponse as ac, type ApiRewardsBadge as ad, type ApiRewardsBatchEntry as ae, type ApiRewardsConfig as af, type ApiRewardsLeaderboardEntry as ag, type ApiRewardsLevel as ah, type ApiSearchCollectionResult as ai, type ApiSearchCreatorResult as aj, type ApiSearchResult as ak, type ApiSearchTokenResult as al, type ApiSession as am, type ApiSpendByAction as an, type ApiSponsorshipBid as ao, type ApiSponsorshipLicense as ap, type ApiSponsorshipLicensesQuery as aq, type ApiSponsorshipOffer as ar, type ApiSponsorshipOffersQuery as as, type ApiSponsorshipProposal as at, type ApiSponsorshipProposalsQuery as au, type ApiSubmitReport as av, type ApiTierOnchain as aw, type ApiToken as ax, type ApiTokenBalance as ay, type ApiTokenMetadata as az, type AcceptSponsorshipProposalIntentParams as b, UserFacingError as b$, type CreateMintIntentParams as b0, type CreatePopBurnIntentParams as b1, type CreatePopClaimIntentParams as b2, type CreatePopCollectionParams as b3, type CreatePopManageIntentParams as b4, type CreateRemixOfferParams as b5, type CreateSponsorshipOfferIntentParams as b6, type CreateSponsorshipOfferParams as b7, type CreateSponsorshipProposalIntentParams as b8, type CreateSwapIntentParams as b9, type MedialaneErrorCode as bA, type MintMembershipsParams as bB, type MintTicketsParams as bC, OPEN_LICENSES as bD, type OfferItem as bE, type OpenLicense as bF, type Order as bG, type OrderDetails as bH, type OrderParameters as bI, type OrderStatus as bJ, PasskeyCancelledError as bK, PasskeyUnsupportedError as bL, type PasskeyUnsupportedReason as bM, type PlaceSponsorshipBidIntentParams as bN, type PopManageAction as bO, type ProposeSponsorshipParams as bP, type RejectSponsorshipProposalIntentParams as bQ, type RemixOfferStatus as bR, type ResolvedConfig as bS, type RetractSponsorshipBidIntentParams as bT, type RetryOptions as bU, type ServiceEventDeclaration as bV, type SetSponsorshipOfferOpenIntentParams as bW, type SortOrder as bX, type TierServiceId as bY, type TxResult as bZ, type UpdateCollectionProfileInput as b_, type CreateTicketParams as ba, type CreateTierIntentParams as bb, type CreateTransferCollectionOwnershipIntentParams as bc, type CreateTransferNftIntentParams as bd, type CreateTransferTokenIntentParams as be, type CreateWalletManageIntentParams as bf, type DropManageAction as bg, type DropMintStatus as bh, type DropTerms as bi, type DropTermsBody as bj, type EmissionParams as bk, type EnforcementDeclaration as bl, type FactoryFamilyServiceId as bm, type FeeConfig as bn, FeeConfigSchema as bo, type FulfillOrderIntentParams as bp, type IPType as bq, type IntentCall as br, type IntentStatus as bs, type IntentType as bt, type IpAttribute as bu, type IpNftMetadata as bv, type LaunchCoinIntentParams as bw, type MakeOfferIntentParams as bx, MedialaneApiError as by, type MedialaneConfig as bz, type ActivityType as c, type WalletManageAction as c0, type WithdrawSponsorshipProposalIntentParams as c1, resolveConfig as c2, resolveFeeConfig as c3, type SealedOwner as c4, type ReceiptProviderLike as c5, type WalletExecutor as c6, type ExecutedTransaction as c7, type PasskeyOwner as c8, type CreatedOwner as c9, InvalidRecoveryKeyError as ca, type OwnerSigner as cb, type PasskeyConfig as cc, type RecoveryKey as cd, createPasskeyOwner as ce, encodeRecoveryKey as cf, parseRecoveryKey as cg, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|
package/dist/evm/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVJVBWHAD_cjs = require('../chunk-VJVBWHAD.cjs');
|
|
4
4
|
var viem = require('viem');
|
|
5
5
|
|
|
6
6
|
var EVM_ORDER_TYPES = {
|
|
@@ -219,7 +219,7 @@ function commonFields(params) {
|
|
|
219
219
|
}
|
|
220
220
|
function maybeCoords(chain) {
|
|
221
221
|
try {
|
|
222
|
-
return
|
|
222
|
+
return chunkVJVBWHAD_cjs.getCoordinates(chain);
|
|
223
223
|
} catch {
|
|
224
224
|
return void 0;
|
|
225
225
|
}
|
|
@@ -286,7 +286,7 @@ var EvmIssuance = class {
|
|
|
286
286
|
};
|
|
287
287
|
function maybeCoords2(chain) {
|
|
288
288
|
try {
|
|
289
|
-
return
|
|
289
|
+
return chunkVJVBWHAD_cjs.getCoordinates(chain);
|
|
290
290
|
} catch {
|
|
291
291
|
return void 0;
|
|
292
292
|
}
|
package/dist/evm/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypedDataDomain, WalletClient, PublicClient } from 'viem';
|
|
2
|
-
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef, I as IssuanceAdapter, e as CreateCollectionInput, M as MintInput } from '../types-
|
|
2
|
+
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef, I as IssuanceAdapter, e as CreateCollectionInput, M as MintInput } from '../types-BTNjkUst.cjs';
|
|
3
3
|
|
|
4
4
|
declare const EVM_ORDER_TYPES: {
|
|
5
5
|
readonly OfferItem: readonly [{
|
package/dist/evm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypedDataDomain, WalletClient, PublicClient } from 'viem';
|
|
2
|
-
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef, I as IssuanceAdapter, e as CreateCollectionInput, M as MintInput } from '../types-
|
|
2
|
+
import { V as VenueAdapter, C as Chain, R as RegisterOrderParams, A as AdapterTxResult, O as OrderRef, I as IssuanceAdapter, e as CreateCollectionInput, M as MintInput } from '../types-BTNjkUst.js';
|
|
3
3
|
|
|
4
4
|
declare const EVM_ORDER_TYPES: {
|
|
5
5
|
readonly OfferItem: readonly [{
|
package/dist/evm/index.js
CHANGED