@meddleware/token-deployer-ui 0.0.14 → 0.0.16

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/README.md CHANGED
@@ -168,7 +168,11 @@ Two tests enforce this invariant in CI so it can never silently drift:
168
168
  is a thin localnet wrapper over it.
169
169
  - `scripts/e2e-walrus-browser.mjs` (`npm run e2e:walrus`) — the Walrus icon uploader end-to-end on
170
170
  testnet with an injected wallet (`SUI_PRIV` with SUI + WAL); `E2E_RELAY=operator` exercises the
171
- NFT-gated relay (pass purchase, consume, signed proof). Manual only — it spends real funds.
171
+ NFT-gated relay (pass purchase, consume, signed proof) and asserts the upload went through it.
172
+ The gateway only allows CORS from its own sites, so run the operator case against the dashboard:
173
+ `E2E_RELAY=operator APP_URL=https://dash.meddleware.co.uk/blockchain E2E_TAB="Token Deployer"
174
+ node scripts/e2e-walrus-browser.mjs` (a local build falls back to the public relay). Manual only —
175
+ it spends real funds (testnet WAL: `walrus get-wal`).
172
176
 
173
177
  ## Real-chain e2e / launch runbook
174
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/token-deployer-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "license": "0BSD",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "@meddleware/design-tokens": "^0.1.7",
55
55
  "@meddleware/ui": "^0.1.28",
56
56
  "@meddleware/walrus-client": "^0.0.21",
57
- "@meddleware/walrus-relay": "^0.1.20",
57
+ "@meddleware/walrus-relay": "^0.1.22",
58
58
  "@mysten/bcs": "~2.1.2",
59
59
  "@mysten/move-bytecode-template": "~0.4.1",
60
60
  "@mysten/sui": "^2.33.1",
@@ -66,7 +66,7 @@
66
66
  "@meddleware/wallet-adapter": ">=0.0.12 <0.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@meddleware/access-gate-client": "^0.0.1",
69
+ "@meddleware/access-gate-client": "^0.0.2",
70
70
  "@meddleware/wallet-adapter": "^0.0.12",
71
71
  "@playwright/test": "^1.56.0",
72
72
  "@types/node": "~24.12.2",
@@ -38,6 +38,7 @@ const accessGate = useAccessGate({ gate: ACCESS_GATE[walrusNet], getClient: () =
38
38
  const {
39
39
  selectedRelayHost,
40
40
  availableRelays,
41
+ relayPending,
41
42
  purchaseAccessAvailable,
42
43
  estimatedCost,
43
44
  fileSizeBytes,
@@ -255,7 +256,14 @@ function onBrowseSelect(url: string): void {
255
256
  class="icon-file"
256
257
  @change="onFile"
257
258
  />
258
- <button type="button" :disabled="uploading || !connected || !fileName" @click="upload">
259
+ <!-- No relay is offered while the operator relay's health or pass check is pending, or
260
+ while a gated relay is up and this wallet has no pass: upload is blocked then
261
+ (walrus-relay useWalrusRelay policy). -->
262
+ <button
263
+ type="button"
264
+ :disabled="uploading || !connected || !fileName || availableRelays.length === 0"
265
+ @click="upload"
266
+ >
259
267
  <span v-if="uploading" class="spinner" aria-hidden="true"></span>
260
268
  Upload to Walrus
261
269
  </button>
@@ -300,11 +308,14 @@ function onBrowseSelect(url: string): void {
300
308
  <strong>Estimated cost:</strong> {{ estimatedCost.label }}
301
309
  </UiNotice>
302
310
 
303
- <!-- NFT-gated relay: the operator relay is live but this wallet lacks the access NFT.
304
- The public relay is still available; purchasing unlocks the operator relay. -->
311
+ <p v-if="fileName && connected && relayPending" class="hint icon-notice" role="status">
312
+ Checking the upload relay…
313
+ </p>
314
+
315
+ <!-- NFT-gated relay: the operator relay is live but this wallet lacks the access pass. While
316
+ the operator relay is up it is the only relay offered, so uploading needs a pass. -->
305
317
  <UiNotice v-if="fileName && purchaseAccessAvailable" class="icon-notice">
306
- The operator relay requires an access NFT. You can keep using the public relay, or purchase
307
- access to support this app’s relay.
318
+ Uploading through this app’s relay requires an access pass.
308
319
  <button
309
320
  type="button"
310
321
  class="icon-notice__cta"