dcl-catalyst-client 11.3.1 → 11.3.3-20220530195134.commit-ed4e3c5

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "dcl-catalyst-client",
3
- "version": "11.3.1",
3
+ "version": "11.3.3-20220530195134.commit-ed4e3c5",
4
4
  "description": "A client to query and perform changes on Decentraland's catalyst servers",
5
5
  "main": "dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
7
7
  "scripts": {
8
- "prebuild": "rm -rf dist",
9
- "catalysts-list": "npx ts-node -T scripts/generate-catalysts-list.ts",
8
+ "prebuild": "rm -rf dist && npm run catalysts-list",
9
+ "catalysts-list": "ts-node -T scripts/generate-catalysts-list.ts",
10
10
  "build": "tsc --project tsconfig-build.json",
11
11
  "prewatch": "rm -rf dist",
12
12
  "watch": "tsc --watch --project tsconfig-build.json",
@@ -43,34 +43,30 @@
43
43
  },
44
44
  "homepage": "https://github.com/decentraland/catalyst-client#readme",
45
45
  "dependencies": {
46
+ "@dcl/catalyst-contracts": "^2.0.0-20220530154414.commit-8fd9522",
46
47
  "@dcl/hashing": "^1.1.0",
47
- "@dcl/schemas": "^4.0.0",
48
+ "@dcl/schemas": "^4.14.0",
48
49
  "@types/form-data": "^2.5.0",
49
50
  "cookie": "^0.4.1",
50
- "dcl-catalyst-commons": "^8.2.0",
51
- "dcl-crypto": "^2.2.0",
51
+ "dcl-catalyst-commons": "^8.3.1-20220530160044.commit-d879278",
52
52
  "form-data": "^4.0.0"
53
53
  },
54
54
  "devDependencies": {
55
+ "@dcl/eslint-config": "^1.0.4",
55
56
  "@types/jest": "^27.0.1",
56
- "@typescript-eslint/eslint-plugin": "^5.0.0",
57
- "@typescript-eslint/parser": "^5.4.0",
58
57
  "@well-known-components/env-config-provider": "^1.1.1",
59
58
  "@well-known-components/http-server": "^1.1.1",
60
59
  "@well-known-components/interfaces": "^1.1.0",
61
60
  "@well-known-components/logger": "^1.1.0",
62
61
  "@well-known-components/test-helpers": "^1.2.1",
63
62
  "busboy": "^0.3.1",
64
- "eslint": "^8.0.0",
65
- "eslint-config-prettier": "^8.3.0",
66
- "eslint-plugin-prettier": "^4.0.0",
63
+ "isomorphic-fetch": "^3.0.0",
67
64
  "jest": "^27.3.1",
68
- "prettier": "^2.2.1",
69
65
  "ts-jest": "^27.0.7",
70
66
  "ts-mockito": "^2.6.1",
71
67
  "ts-node": "^10.4.0",
72
68
  "typescript": "^4.4.4",
73
- "validate-commit-msg": "^2.14.0"
69
+ "validate-commit-msg": "^1.1.3"
74
70
  },
75
71
  "prettier": {
76
72
  "semi": false,
@@ -78,5 +74,5 @@
78
74
  "printWidth": 120,
79
75
  "trailingComma": "none"
80
76
  },
81
- "commit": "a68cdea64983a5e9c9363da6a452f60165957bb2"
77
+ "commit": "ed4e3c59067cd037e6042f3c38472468ff35fae0"
82
78
  }
@@ -1,11 +1,27 @@
1
- import { getMainnetCatalysts, getRopstenCatalysts } from 'dcl-catalyst-commons'
1
+ import { getAllCatalystFromProvider } from '@dcl/catalyst-contracts'
2
+ import { HTTPProvider, bytesToHex } from 'eth-connect'
3
+ import 'isomorphic-fetch'
2
4
  import fs from 'fs'
3
5
 
4
6
  async function main(): Promise<void> {
5
- const mainnet = await getMainnetCatalysts()
6
- const ropsten = await getRopstenCatalysts()
7
+ const mainnet = await getAllCatalystFromProvider(new HTTPProvider('https://rpc.decentraland.org/mainnet?project=ci'))
8
+ const ropsten = await getAllCatalystFromProvider(new HTTPProvider('https://rpc.decentraland.org/ropsten?project=ci'))
7
9
 
8
- const mergedList = { mainnet, ropsten }
10
+ const mergedList = {
11
+ mainnet: mainnet.map($ => {
12
+ return {
13
+ address: $.domain,
14
+ owner: $.owner,
15
+ id: '0x' + bytesToHex($.id)
16
+ }
17
+ }), ropsten: ropsten.map($ => {
18
+ return {
19
+ address: $.domain,
20
+ owner: $.owner,
21
+ id: '0x' + bytesToHex($.id)
22
+ }
23
+ })
24
+ }
9
25
 
10
26
  const listString = JSON.stringify(mergedList, null, 4)
11
27
  const fileText = `// This file is autogenerated, do not edit manually\nexport = (\n${listString}\n)`