@cityofzion/bs-solana 2.0.5 → 2.0.6
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.
|
@@ -19,7 +19,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
19
19
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20
20
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
21
|
};
|
|
22
|
-
var _TatumRpcNDSSolana_connection, _TatumRpcNDSSolana_metaplex;
|
|
22
|
+
var _TatumRpcNDSSolana_connection, _TatumRpcNDSSolana_metaplex, _TatumRpcNDSSolana_service;
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.TatumRpcNDSSolana = void 0;
|
|
25
25
|
const web3_js_1 = require("@solana/web3.js");
|
|
@@ -30,8 +30,10 @@ class TatumRpcNDSSolana {
|
|
|
30
30
|
constructor(service) {
|
|
31
31
|
_TatumRpcNDSSolana_connection.set(this, void 0);
|
|
32
32
|
_TatumRpcNDSSolana_metaplex.set(this, void 0);
|
|
33
|
+
_TatumRpcNDSSolana_service.set(this, void 0);
|
|
33
34
|
__classPrivateFieldSet(this, _TatumRpcNDSSolana_connection, TatumRpcBDSSolana_1.TatumRpcBDSSolana.getConnection(service.network), "f");
|
|
34
35
|
__classPrivateFieldSet(this, _TatumRpcNDSSolana_metaplex, js_1.Metaplex.make(__classPrivateFieldGet(this, _TatumRpcNDSSolana_connection, "f")), "f");
|
|
36
|
+
__classPrivateFieldSet(this, _TatumRpcNDSSolana_service, service, "f");
|
|
35
37
|
}
|
|
36
38
|
getNft(params) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -56,6 +58,7 @@ class TatumRpcNDSSolana {
|
|
|
56
58
|
}
|
|
57
59
|
const nft = {
|
|
58
60
|
hash: params.tokenHash,
|
|
61
|
+
explorerUri: __classPrivateFieldGet(this, _TatumRpcNDSSolana_service, "f").explorerService.buildNftUrl({ tokenHash: params.tokenHash, collectionHash }),
|
|
59
62
|
collection: {
|
|
60
63
|
hash: collectionHash,
|
|
61
64
|
name: collectionName,
|
|
@@ -123,4 +126,4 @@ class TatumRpcNDSSolana {
|
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
exports.TatumRpcNDSSolana = TatumRpcNDSSolana;
|
|
126
|
-
_TatumRpcNDSSolana_connection = new WeakMap(), _TatumRpcNDSSolana_metaplex = new WeakMap();
|
|
129
|
+
_TatumRpcNDSSolana_connection = new WeakMap(), _TatumRpcNDSSolana_metaplex = new WeakMap(), _TatumRpcNDSSolana_service = new WeakMap();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-solana",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@ledgerhq/hw-transport": "~6.31.11",
|
|
22
22
|
"@metaplex-foundation/js": "~0.20.1",
|
|
23
23
|
"date-fns": "~4.1.0",
|
|
24
|
-
"@cityofzion/blockchain-service": "1.22.
|
|
24
|
+
"@cityofzion/blockchain-service": "1.22.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@ledgerhq/hw-transport-node-hid": "~6.29.12",
|