@ethernity-cloud/sdk-js 1.6.1 → 1.6.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethernity-cloud/sdk-js",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "A package to run ethernity cloud build scripts",
5
5
  "scripts": {
6
6
  "ecld-build": "cross-env node ./node_modules/@ethernity-cloud/sdk-js/build.js",
@@ -33,7 +33,7 @@
33
33
  "run.js"
34
34
  ],
35
35
  "dependencies": {
36
- "@ethernity-cloud/runner": "^0.4.4",
36
+ "@ethernity-cloud/runner": "^0.5.0",
37
37
  "acorn": "^8.11.0",
38
38
  "adm-zip": "^0.5.14",
39
39
  "axios": "^1.7.2",
@@ -244,8 +244,12 @@ class EtnySecureLock:
244
244
  port = int(port)
245
245
  except ValueError:
246
246
  continue
247
- # REST pairing convention: rest = 8081 + (enclave - 18765)
248
- rest_port = 8081 + (port - 18765) if 18765 <= port < 18965 else 8081
247
+ # REST pairing convention: a CAS publishes its enclave port only,
248
+ # and its REST port sits at the same offset from the in-container
249
+ # pair 18765/8081 (19768 -> 9084).
250
+ rest_port = 8081 + (port - 18765)
251
+ if not 1 <= rest_port <= 65535:
252
+ continue
249
253
  if kind == 'onion3':
250
254
  host = host if host.endswith('.onion') else host + '.onion'
251
255
  onion.append(f'http://{host}:{rest_port}')
package/pynithy/build.mjs CHANGED
@@ -31,9 +31,9 @@ const writeEnv = (key, value) => {
31
31
  // Kept in sync with etny-{pynithy,nodenithy}/v3/networks.yaml (the authoritative
32
32
  // on-chain constants). Covers all supported networks for both dApp types.
33
33
  export const ECRunner = {
34
- // --- bloxberg ---
35
- 'etny-pynithy-testnet': ['0x02882F03097fE8cD31afbdFbB5D72a498B41112c', '0x15D73a742529C3fb11f3FA32EF7f0CC3870ACA31', 'https://bloxberg.ethernity.cloud', 8995],
36
- 'etny-nodenithy-testnet': ['0x02882F03097fE8cD31afbdFbB5D72a498B41112c', '0x15D73a742529C3fb11f3FA32EF7f0CC3870ACA31', 'https://bloxberg.ethernity.cloud', 8995],
34
+ // --- bloxberg (the testnet reads ECImageRegistryV2, mainnet the original) ---
35
+ 'etny-pynithy-testnet': ['0x02882F03097fE8cD31afbdFbB5D72a498B41112c', '0x99A84C624C028bdf0a855A1E9E3f2fcf7275B3D8', 'https://bloxberg.ethernity.cloud', 8995],
36
+ 'etny-nodenithy-testnet': ['0x02882F03097fE8cD31afbdFbB5D72a498B41112c', '0x99A84C624C028bdf0a855A1E9E3f2fcf7275B3D8', 'https://bloxberg.ethernity.cloud', 8995],
37
37
  'etny-pynithy': ['0x549A6E06BB2084100148D50F51CF77a3436C3Ae7', '0x15D73a742529C3fb11f3FA32EF7f0CC3870ACA31', 'https://bloxberg.ethernity.cloud', 8995],
38
38
  'etny-nodenithy': ['0x549A6E06BB2084100148D50F51CF77a3436C3Ae7', '0x15D73a742529C3fb11f3FA32EF7f0CC3870ACA31', 'https://bloxberg.ethernity.cloud', 8995],
39
39
  // --- polygon mainnet ---