@unicitylabs/sphere-sdk 0.17.2-dev.2 → 0.17.2-dev.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/dist/connect/index.cjs +7 -4
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.cts +4 -0
- package/dist/connect/index.d.ts +4 -0
- package/dist/connect/index.js +7 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +48 -21
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +48 -21
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +1 -1
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +1 -1
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/wallet-api-v2/index.cjs +3 -0
- package/dist/impl/wallet-api-v2/index.cjs.map +1 -1
- package/dist/impl/wallet-api-v2/index.js +3 -0
- package/dist/impl/wallet-api-v2/index.js.map +1 -1
- package/dist/index.cjs +67 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +64 -21
- package/dist/index.js.map +1 -1
- package/dist/modules/payments-v2/index.cjs +40 -6
- package/dist/modules/payments-v2/index.cjs.map +1 -1
- package/dist/modules/payments-v2/index.d.cts +22 -1
- package/dist/modules/payments-v2/index.d.ts +22 -1
- package/dist/modules/payments-v2/index.js +37 -6
- package/dist/modules/payments-v2/index.js.map +1 -1
- package/dist/token-engine/index.cjs +67 -21
- package/dist/token-engine/index.cjs.map +1 -1
- package/dist/token-engine/index.d.cts +28 -4
- package/dist/token-engine/index.d.ts +28 -4
- package/dist/token-engine/index.js +64 -21
- package/dist/token-engine/index.js.map +1 -1
- package/package.json +1 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -456,7 +456,7 @@ function checkCompatibility(input) {
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
// connect/version.ts
|
|
459
|
-
var SDK_VERSION = "0.17.2-dev.
|
|
459
|
+
var SDK_VERSION = "0.17.2-dev.3";
|
|
460
460
|
|
|
461
461
|
// connect/permissions.ts
|
|
462
462
|
var PERMISSION_SCOPES = {
|
|
@@ -2110,7 +2110,8 @@ var METADATA_FIELDS = [
|
|
|
2110
2110
|
"animation_url",
|
|
2111
2111
|
"external_url",
|
|
2112
2112
|
"attributes",
|
|
2113
|
-
"collection"
|
|
2113
|
+
"collection",
|
|
2114
|
+
"collection_id"
|
|
2114
2115
|
];
|
|
2115
2116
|
var MEDIA_FIELDS = ["kind", "media_type", "bytes"];
|
|
2116
2117
|
var LINK_FIELDS = ["kind", "media_type", "uri", "sha256"];
|
|
@@ -2142,7 +2143,8 @@ function metadataToWire(metadata) {
|
|
|
2142
2143
|
animation_url: mediaRefToWire(metadata.animation_url, "content.animation_url"),
|
|
2143
2144
|
external_url: metadata.external_url,
|
|
2144
2145
|
attributes: metadata.attributes.map(({ trait_type, value }) => ({ trait_type, value })),
|
|
2145
|
-
collection: metadata.collection
|
|
2146
|
+
collection: metadata.collection,
|
|
2147
|
+
collection_id: metadata.collection_id
|
|
2146
2148
|
};
|
|
2147
2149
|
}
|
|
2148
2150
|
function nftContentToWire(content) {
|
|
@@ -2225,7 +2227,8 @@ function metadataFromWire(record) {
|
|
|
2225
2227
|
animation_url: mediaRefFromWire(record.animation_url, "content.animation_url"),
|
|
2226
2228
|
external_url: optionalStringAt(record, "content", "external_url"),
|
|
2227
2229
|
attributes: attributesFromWire(record.attributes, "content.attributes"),
|
|
2228
|
-
collection: optionalStringAt(record, "content", "collection")
|
|
2230
|
+
collection: optionalStringAt(record, "content", "collection"),
|
|
2231
|
+
collection_id: optionalStringAt(record, "content", "collection_id")
|
|
2229
2232
|
};
|
|
2230
2233
|
}
|
|
2231
2234
|
function nftContentFromWire(wire) {
|