decentraland-dapps 15.1.0 → 15.2.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.
|
@@ -10,6 +10,7 @@ exports.MANA_GRAPH_BY_CHAIN_ID = {
|
|
|
10
10
|
[chain_id_1.ChainId.ETHEREUM_ROPSTEN]: 'https://api.thegraph.com/subgraphs/name/decentraland/mana-ethereum-ropsten',
|
|
11
11
|
[chain_id_1.ChainId.ETHEREUM_GOERLI]: 'https://api.thegraph.com/subgraphs/name/decentraland/mana-ethereum-goerli',
|
|
12
12
|
[chain_id_1.ChainId.ETHEREUM_RINKEBY]: 'https://api.thegraph.com/subgraphs/name/decentraland/mana-ethereum-rinkeby',
|
|
13
|
+
[chain_id_1.ChainId.ETHEREUM_SEPOLIA]: 'https://api.studio.thegraph.com/query/49472/mana-ethereum-sepolia/version/latest',
|
|
13
14
|
[chain_id_1.ChainId.MATIC_MAINNET]: 'https://api.thegraph.com/subgraphs/name/decentraland/mana-matic-mainnet',
|
|
14
15
|
[chain_id_1.ChainId.MATIC_MUMBAI]: 'https://api.thegraph.com/subgraphs/name/decentraland/mana-matic-mumbai'
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainConfiguration.js","sourceRoot":"","sources":["../../src/lib/chainConfiguration.ts"],"names":[],"mappings":";;;AAAA,+DAIyC;AAEzC,yEAAoE;AACpE,2EAAoE;AAEpE,MAAM,QAAQ,GAAG,IAAA,0BAAU,EAAC,4BAAY,CAAC,OAAO,CAAC,CAAA;AAEpC,QAAA,sBAAsB,GAAG;IACpC,CAAC,kBAAO,CAAC,gBAAgB,CAAC,EACxB,4EAA4E;IAC9E,CAAC,kBAAO,CAAC,gBAAgB,CAAC,EACxB,4EAA4E;IAC9E,CAAC,kBAAO,CAAC,eAAe,CAAC,EACvB,2EAA2E;IAC7E,CAAC,kBAAO,CAAC,gBAAgB,CAAC,EACxB,4EAA4E;IAC9E,CAAC,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C,OAAO,CAAC;KAC3C,CAAA;AACH,CAAC;AAPD,sDAOC"}
|
package/dist/lib/entities.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import { ProfileEntity } from './types';
|
|
|
3
3
|
export declare class EntitiesOperator {
|
|
4
4
|
private peerUrl;
|
|
5
5
|
private peerWithNoGbCollectorUrl?;
|
|
6
|
-
private readonly catalystClient;
|
|
7
6
|
private catalystContentClient;
|
|
8
|
-
private readonly catalystClientWithoutGbCollector;
|
|
9
7
|
private catalystContentClientWithoutGbCollector;
|
|
10
8
|
private readonly peerAPI;
|
|
11
9
|
constructor(peerUrl: string, peerWithNoGbCollectorUrl?: string | undefined);
|
package/dist/lib/entities.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.EntitiesOperator = void 0;
|
|
13
13
|
const ethers_1 = require("ethers");
|
|
14
14
|
const crypto_1 = require("@dcl/crypto");
|
|
15
|
-
const
|
|
15
|
+
const ContentClient_1 = require("dcl-catalyst-client/dist/client/ContentClient");
|
|
16
16
|
const DeploymentBuilder_1 = require("dcl-catalyst-client/dist/client/utils/DeploymentBuilder");
|
|
17
17
|
const eth_1 = require("./eth");
|
|
18
18
|
const peer_1 = require("./peer");
|
|
@@ -21,9 +21,9 @@ class EntitiesOperator {
|
|
|
21
21
|
constructor(peerUrl, peerWithNoGbCollectorUrl) {
|
|
22
22
|
this.peerUrl = peerUrl;
|
|
23
23
|
this.peerWithNoGbCollectorUrl = peerWithNoGbCollectorUrl;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
? (0,
|
|
24
|
+
this.catalystContentClient = (0, ContentClient_1.createContentClient)({ url: `${peerUrl}/content`, fetcher: (0, fetch_component_1.createFetchComponent)() });
|
|
25
|
+
this.catalystContentClientWithoutGbCollector = peerWithNoGbCollectorUrl
|
|
26
|
+
? (0, ContentClient_1.createContentClient)({ url: `${peerUrl}/content`, fetcher: (0, fetch_component_1.createFetchComponent)() })
|
|
27
27
|
: null;
|
|
28
28
|
this.peerAPI = new peer_1.PeerAPI(peerUrl);
|
|
29
29
|
}
|
|
@@ -53,9 +53,6 @@ class EntitiesOperator {
|
|
|
53
53
|
*/
|
|
54
54
|
getProfileEntity(address) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
if (!this.catalystContentClient) {
|
|
57
|
-
this.catalystContentClient = yield this.catalystClient.getContentClient();
|
|
58
|
-
}
|
|
59
56
|
const entities = yield this.catalystContentClient.fetchEntitiesByPointers([address.toLowerCase()]);
|
|
60
57
|
if (entities.length > 0) {
|
|
61
58
|
return entities[0];
|
|
@@ -74,7 +71,7 @@ class EntitiesOperator {
|
|
|
74
71
|
* @param address - The owner / soon to be owner of the entity.
|
|
75
72
|
*/
|
|
76
73
|
deployEntityWithoutNewFiles(entityMetadata, hashesByKey, entityType, pointer, address) {
|
|
77
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
78
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
76
|
const options = {
|
|
80
77
|
type: entityType,
|
|
@@ -83,21 +80,9 @@ class EntitiesOperator {
|
|
|
83
80
|
hashesByKey,
|
|
84
81
|
timestamp: Date.now()
|
|
85
82
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
this.catalystContentClientWithoutGbCollector = yield this.catalystClientWithoutGbCollector.getContentClient();
|
|
90
|
-
}
|
|
91
|
-
catalystContentClient = this.catalystContentClientWithoutGbCollector;
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
if (!this.catalystContentClient) {
|
|
95
|
-
this.catalystContentClient = yield this.catalystClient.getContentClient();
|
|
96
|
-
}
|
|
97
|
-
catalystContentClient = this.catalystContentClient;
|
|
98
|
-
}
|
|
99
|
-
const catalystContentUrl = (_a = this.peerWithNoGbCollectorUrl) !== null && _a !== void 0 ? _a : this.peerUrl;
|
|
100
|
-
const entityToDeploy = yield (0, DeploymentBuilder_1.buildEntityWithoutNewFiles)((0, fetch_component_1.createFetchComponent)(), Object.assign({ contentUrl: catalystContentUrl }, options));
|
|
83
|
+
const catalystContentClient = (_a = this.catalystContentClientWithoutGbCollector) !== null && _a !== void 0 ? _a : this.catalystContentClient;
|
|
84
|
+
const contentUrl = (_b = this.peerWithNoGbCollectorUrl) !== null && _b !== void 0 ? _b : this.peerUrl;
|
|
85
|
+
const entityToDeploy = yield (0, DeploymentBuilder_1.buildEntityWithoutNewFiles)((0, fetch_component_1.createFetchComponent)(), Object.assign({ contentUrl: `${contentUrl}/content` }, options));
|
|
101
86
|
const authChain = yield this.authenticateEntityDeployment(address, entityToDeploy.entityId);
|
|
102
87
|
return catalystContentClient.deploy(Object.assign(Object.assign({}, entityToDeploy), { authChain }));
|
|
103
88
|
});
|
package/dist/lib/entities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/lib/entities.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+B;AAC/B,wCAAsD;AAEtD,
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/lib/entities.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+B;AAC/B,wCAAsD;AAEtD,iFAAkG;AAElG,+FAAoG;AACpG,+BAA4C;AAE5C,iCAAgC;AAChC,4EAA6E;AAE7E,MAAa,gBAAgB;IAM3B,YAAoB,OAAe,EAAU,wBAAiC;QAA1D,YAAO,GAAP,OAAO,CAAQ;QAAU,6BAAwB,GAAxB,wBAAwB,CAAS;QAC5E,IAAI,CAAC,qBAAqB,GAAG,IAAA,mCAAmB,EAAC,EAAE,GAAG,EAAE,GAAG,OAAO,UAAU,EAAE,OAAO,EAAE,IAAA,sCAAoB,GAAE,EAAE,CAAC,CAAA;QAChH,IAAI,CAAC,uCAAuC,GAAG,wBAAwB;YACrE,CAAC,CAAC,IAAA,mCAAmB,EAAC,EAAE,GAAG,EAAE,GAAG,OA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E,cAAc;gBACxB,WAAW;gBACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAA;YAED,MAAM,qBAAqB,GAAG,MAAA,IAAI,CAAC,uCAAuC,mCAAI,IAAI,CAAC,qBAAqB,CAAA;YACxG,MAAM,UAAU,GAAG,MAAA,IAAI,CAAC,wBAAwB,mCAAI,IAAI,CAAC,OAAO,CAAA;YAEhE,MAAM,cAAc,GAAG,MAAM,IAAA,8CAA0B,EAAC,IAAA,sCAAoB,GAAE,kBAAI,UAAU,EAAE,GAAG,UAAU,UAAU,IAAK,OAAO,EAAI,CAAA;YAErI,MAAM,SAAS,GAAc,MAAM,IAAI,CAAC,4BAA4B,CAClE,OAAO,EACP,cAAc,CAAC,QAAQ,CACxB,CAAA;YAED,OAAO,qBAAqB,CAAC,MAAM,iCAC9B,cAAc,KACjB,SAAS,IACT,CAAA;;KACH;CACF;AAhGD,4CAgGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decentraland-dapps",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@0xsequence/multicall": "^0.25.1",
|
|
6
6
|
"@0xsequence/relayer": "^0.25.1",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"@well-known-components/fetch-component": "^2.0.1",
|
|
13
13
|
"axios": "^0.21.1",
|
|
14
14
|
"date-fns": "^1.29.0",
|
|
15
|
-
"dcl-catalyst-client": "^21.
|
|
15
|
+
"dcl-catalyst-client": "^21.1.0",
|
|
16
16
|
"decentraland-connect": "^4.1.3",
|
|
17
17
|
"decentraland-crypto-fetch": "^1.0.3",
|
|
18
|
-
"decentraland-transactions": "^1.
|
|
18
|
+
"decentraland-transactions": "^1.47.0",
|
|
19
19
|
"decentraland-ui": "^4.0.0",
|
|
20
20
|
"ethers": "^5.6.8",
|
|
21
21
|
"events": "^3.3.0",
|