@medialane/sdk 0.144.0 → 0.145.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 +31 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -2
- package/dist/index.d.ts +67 -2
- package/dist/index.js +31 -1
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +19 -0
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.js +19 -0
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1126,6 +1126,7 @@ var ApiClient = class {
|
|
|
1126
1126
|
// src/api/launchpad-runs.ts
|
|
1127
1127
|
var isDataTokenizationRun = (run) => run.service === "data-tokenization-erc721";
|
|
1128
1128
|
var isTicketingRun = (run) => run.service === "ip-ticketing";
|
|
1129
|
+
var isCertificateEmissionRun = (run) => run.service === "certificate-emission";
|
|
1129
1130
|
var RunRequestError = class extends Error {
|
|
1130
1131
|
constructor(message, status, body) {
|
|
1131
1132
|
super(message);
|
|
@@ -1172,6 +1173,15 @@ function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl = fetch }) {
|
|
|
1172
1173
|
confirmTier: (id) => confirm(`${runTierBase(id)}/confirm`),
|
|
1173
1174
|
confirmBatch: (id, index) => confirm(`${runBatchBase(id, index)}/confirm`)
|
|
1174
1175
|
};
|
|
1176
|
+
const certificateEmission = {
|
|
1177
|
+
uploadUrl: async (id, name) => (await post(`${runBase(id)}/files/upload-url`, { name })).data.url,
|
|
1178
|
+
uploaded: async (id, name, cid) => (await post(`${runBase(id)}/files/uploaded`, { name, cid })).data,
|
|
1179
|
+
metadata: async (id, userAddress) => (await post(`${runBase(id)}/certificate-metadata`, { userAddress })).data,
|
|
1180
|
+
resolveWallets: async (id) => (await post(`${runBase(id)}/recipients/resolve`)).data.pending,
|
|
1181
|
+
registerWallet: async (id, request) => (await post(`${runBase(id)}/recipients`, request)).data,
|
|
1182
|
+
confirmCollection: (id) => confirm(`${runCollectionBase(id)}/confirm`),
|
|
1183
|
+
confirmBatch: (id, index) => confirm(`${runBatchBase(id, index)}/confirm`)
|
|
1184
|
+
};
|
|
1175
1185
|
return {
|
|
1176
1186
|
authorizedFetch,
|
|
1177
1187
|
runBase,
|
|
@@ -1179,6 +1189,7 @@ function createLaunchpadRunsClient({ baseUrl, getToken, fetchImpl = fetch }) {
|
|
|
1179
1189
|
runCollectionBase,
|
|
1180
1190
|
runTierBase,
|
|
1181
1191
|
ticketing,
|
|
1192
|
+
certificateEmission,
|
|
1182
1193
|
list: async () => (await call(runsUrl)).data,
|
|
1183
1194
|
get: async (id) => (await call(`${runBase(id)}`)).data,
|
|
1184
1195
|
create: async (service, spec) => (await post(runsUrl, { service, spec })).data,
|
|
@@ -1396,6 +1407,25 @@ var SERVICES = {
|
|
|
1396
1407
|
],
|
|
1397
1408
|
metadataSchema: { licenseDefault: "CC BY-SA" }
|
|
1398
1409
|
},
|
|
1410
|
+
"certificate-emission": {
|
|
1411
|
+
id: "certificate-emission",
|
|
1412
|
+
displayName: "Certificate Emission",
|
|
1413
|
+
description: "Issue a soulbound credential to a list of recipients in one run \u2014 everyone gets a wallet and their certificate.",
|
|
1414
|
+
standard: "ERC721",
|
|
1415
|
+
provenance: "MEDIALANE",
|
|
1416
|
+
onchain: {
|
|
1417
|
+
STARKNET: {
|
|
1418
|
+
factoryAddress: SN2.popFactory,
|
|
1419
|
+
classHash: SN2.popCollectionClassHash
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
uiVariant: "pop",
|
|
1423
|
+
capabilities: ["mint", "airdrop"],
|
|
1424
|
+
events: [
|
|
1425
|
+
{ name: "CollectionCreated", emittedBy: "factory" }
|
|
1426
|
+
],
|
|
1427
|
+
metadataSchema: { licenseDefault: "CC BY-SA" }
|
|
1428
|
+
},
|
|
1399
1429
|
"drop-collection": {
|
|
1400
1430
|
id: "drop-collection",
|
|
1401
1431
|
displayName: "Collection Drop",
|
|
@@ -2375,6 +2405,7 @@ exports.getStarknetCoordinates = getStarknetCoordinates;
|
|
|
2375
2405
|
exports.getTokenByAddress = getTokenByAddress;
|
|
2376
2406
|
exports.getTokenBySymbol = getTokenBySymbol;
|
|
2377
2407
|
exports.hasCapability = hasCapability;
|
|
2408
|
+
exports.isCertificateEmissionRun = isCertificateEmissionRun;
|
|
2378
2409
|
exports.isDataTokenizationRun = isDataTokenizationRun;
|
|
2379
2410
|
exports.isPolicyRefusal = isPolicyRefusal;
|
|
2380
2411
|
exports.isPrivateHost = isPrivateHost;
|