@medialane/sdk 0.8.0 → 0.8.3
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/README.md +8 -4
- package/dist/index.cjs +156 -414
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +118 -311
- package/dist/index.d.ts +118 -311
- package/dist/index.js +145 -415
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ All methods require a `starknet.js` `AccountInterface`. Nonce management, SNIP-1
|
|
|
79
79
|
|
|
80
80
|
Two marketplace modules are available:
|
|
81
81
|
- `client.marketplace` — ERC-721 marketplace (`Medialane` contract)
|
|
82
|
-
- `client.marketplace1155` — ERC-1155 marketplace (`
|
|
82
|
+
- `client.marketplace1155` — ERC-1155 marketplace (`Medialane1155V2` contract, deployed 2026-04-28)
|
|
83
83
|
|
|
84
84
|
### Create a Listing (ERC-721)
|
|
85
85
|
|
|
@@ -159,7 +159,7 @@ const result = await client.marketplace.createCollection(account, {
|
|
|
159
159
|
|
|
160
160
|
## ERC-1155 Marketplace (Medialane1155)
|
|
161
161
|
|
|
162
|
-
For IP assets from ERC-1155 collections (e.g. IP-Programmable-ERC1155-Collections). Contract: `
|
|
162
|
+
For IP assets from ERC-1155 collections (e.g. IP-Programmable-ERC1155-Collections). Contract: `0x02bfa521c25461a09d735889b469418608d7d92f8b26e3d37ef174a4c2e22f99`.
|
|
163
163
|
|
|
164
164
|
### Create an ERC-1155 Listing
|
|
165
165
|
|
|
@@ -458,8 +458,12 @@ try {
|
|
|
458
458
|
| `rpcUrl` | `string` | Lava public endpoint | JSON-RPC URL |
|
|
459
459
|
| `backendUrl` | `string` | — | Medialane API base URL (required for `.api.*`) |
|
|
460
460
|
| `apiKey` | `string` | — | API key from [Medialane Portal](https://medialane.xyz) |
|
|
461
|
-
| `
|
|
462
|
-
| `
|
|
461
|
+
| `marketplace721Contract` | `string` | Mainnet default | ERC-721 marketplace protocol override |
|
|
462
|
+
| `marketplaceContract` | `string` | Mainnet default | Legacy alias for `marketplace721Contract` |
|
|
463
|
+
| `marketplace1155Contract` | `string` | Mainnet default | ERC-1155 marketplace protocol override |
|
|
464
|
+
| `collection721Contract` | `string` | Mainnet default | ERC-721 mint / collection registry override |
|
|
465
|
+
| `collectionContract` | `string` | Mainnet default | Legacy alias for `collection721Contract` |
|
|
466
|
+
| `collection1155Contract` | `string` | Mainnet default | ERC-1155 mint / collection factory override |
|
|
463
467
|
|
|
464
468
|
---
|
|
465
469
|
|