@medialane/sdk 0.46.0 → 0.48.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 +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,9 +44,11 @@ var COORDINATES = {
|
|
|
44
44
|
ipClubNftClassHash: "0x02bc9b20cca21b04245e9215bf7121f4d7295b195890e449b472b573017fb889",
|
|
45
45
|
ipClubStartBlock: 11404776,
|
|
46
46
|
ipSponsorship: "0x044d9b9c3bb29b94685b0a3fe27a5e2dfa30a3637ab55979c718ebcd3268bc2f",
|
|
47
|
-
ipSponsorshipStartBlock: 11405085
|
|
48
|
-
//
|
|
49
|
-
//
|
|
47
|
+
ipSponsorshipStartBlock: 11405085,
|
|
48
|
+
// Dedicated ip-erc721/MIP instance for sponsorship receipts (class hash
|
|
49
|
+
// 0x01bd7e39c5135b32b664e34cbbb4eafbd707a0fbc3ec2ef28657f52577d277d7) —
|
|
50
|
+
// never the genesis-mint instance.
|
|
51
|
+
ipSponsorshipLicense: "0x06bcfc4e97758a2abf95af4bd49596efdbfd88ccd740caddc56ad0a4bd095839"
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
54
|
function getCoordinates(chain) {
|
|
@@ -11209,7 +11211,7 @@ var SERVICES = {
|
|
|
11209
11211
|
standard: "ERC721",
|
|
11210
11212
|
provenance: "MEDIALANE",
|
|
11211
11213
|
uiVariant: "club",
|
|
11212
|
-
capabilities: ["subscribe"
|
|
11214
|
+
capabilities: ["subscribe"],
|
|
11213
11215
|
events: [
|
|
11214
11216
|
{ name: "NewClubCreated", emittedBy: "factory" }
|
|
11215
11217
|
],
|
|
@@ -11343,6 +11345,9 @@ function getServicesByCapability(cap) {
|
|
|
11343
11345
|
(s) => s.capabilities.includes(cap)
|
|
11344
11346
|
);
|
|
11345
11347
|
}
|
|
11348
|
+
function hasCapability(id, cap) {
|
|
11349
|
+
return getService(id)?.capabilities.includes(cap) ?? false;
|
|
11350
|
+
}
|
|
11346
11351
|
|
|
11347
11352
|
exports.ADMIN_HEADERS = ADMIN_HEADERS;
|
|
11348
11353
|
exports.ADMIN_SCOPE = ADMIN_SCOPE;
|
|
@@ -11444,6 +11449,7 @@ exports.getSiwsStorageKey = getSiwsStorageKey;
|
|
|
11444
11449
|
exports.getStoredSiwsToken = getStoredSiwsToken;
|
|
11445
11450
|
exports.getTokenByAddress = getTokenByAddress;
|
|
11446
11451
|
exports.getTokenBySymbol = getTokenBySymbol;
|
|
11452
|
+
exports.hasCapability = hasCapability;
|
|
11447
11453
|
exports.isServiceId = isServiceId;
|
|
11448
11454
|
exports.isSiwsTokenValid = isSiwsTokenValid;
|
|
11449
11455
|
exports.isTransientRpcError = isTransientRpcError;
|