@meddleware/token-deployer-ui 0.0.23 → 0.0.24
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": "@meddleware/token-deployer-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "0BSD",
|
|
6
6
|
"repository": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@meddleware/design-tokens": "^0.1.7",
|
|
52
52
|
"@meddleware/sui-token-client": "^0.0.5",
|
|
53
53
|
"@meddleware/ui": "^0.1.28",
|
|
54
|
-
"@meddleware/walrus-client": "^0.0.
|
|
55
|
-
"@meddleware/walrus-relay": "^0.1.
|
|
54
|
+
"@meddleware/walrus-client": "^0.0.24",
|
|
55
|
+
"@meddleware/walrus-relay": "^0.1.25",
|
|
56
56
|
"@mysten/move-bytecode-template": "~0.4.1",
|
|
57
57
|
"@mysten/sui": "^2.33.1",
|
|
58
58
|
"@mysten/walrus": "~1.2.32",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@meddleware/access-gate-client": "^0.0.3",
|
|
66
|
-
"@meddleware/wallet-adapter": "^0.0.
|
|
66
|
+
"@meddleware/wallet-adapter": "^0.0.13",
|
|
67
67
|
"@playwright/test": "^1.56.0",
|
|
68
68
|
"@types/node": "~24.12.2",
|
|
69
69
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
@@ -6,7 +6,7 @@ import { getReadClient } from '../wallet.js'
|
|
|
6
6
|
import { useWalrusRelay } from '../composables/useWalrusRelay.js'
|
|
7
7
|
import { useAccessGate } from '@meddleware/walrus-relay'
|
|
8
8
|
// The flow subpath carries no wasm; it loads the Walrus client lazily when an upload starts.
|
|
9
|
-
import { consumeStorageKey, createGatedAccess, runBlobUpload } from '@meddleware/walrus-client/flow'
|
|
9
|
+
import { browserStorage, consumeStorageKey, createGatedAccess, runBlobUpload } from '@meddleware/walrus-client/flow'
|
|
10
10
|
import { ICON_EPOCHS } from '../lib/walrus-constants.js'
|
|
11
11
|
import { ACCESS_GATE, ICON_MAX_BYTES, WALRUS_MAX_TIP_MIST, WALRUS_RPC_URLS, validateIconFile } from '../config.js'
|
|
12
12
|
import type { WalrusNetwork } from '../config.js'
|
|
@@ -157,7 +157,7 @@ async function upload(): Promise<void> {
|
|
|
157
157
|
const access =
|
|
158
158
|
gated && gate && nftId
|
|
159
159
|
? createGatedAccess({
|
|
160
|
-
storage:
|
|
160
|
+
storage: browserStorage(),
|
|
161
161
|
key: consumeStorageKey(walrusNet, gate.gateId, address),
|
|
162
162
|
relayHost: selectedRelayHost.value,
|
|
163
163
|
address,
|
|
@@ -21,6 +21,7 @@ import { emptyForm, toTokenConfig } from '../lib/form.js'
|
|
|
21
21
|
import { validateForm } from '../lib/validation.js'
|
|
22
22
|
import type { FormErrors } from '../lib/validation.js'
|
|
23
23
|
import { useDeploy } from '../composables/useDeploy.js'
|
|
24
|
+
import { browserStorage } from '@meddleware/walrus-client/flow'
|
|
24
25
|
import { FEE_MIST, FEE_TREASURY, PUBLISH_GAS_BUDGET, isFeeConfigured } from '../config.js'
|
|
25
26
|
import type { TokenNetwork as Network } from '@meddleware/sui-token-client'
|
|
26
27
|
|
|
@@ -64,7 +65,9 @@ watch(flow.phase, (phase) => {
|
|
|
64
65
|
else if (phase === 'published') step.value = 'published'
|
|
65
66
|
else if (phase === 'failed') step.value = 'review'
|
|
66
67
|
})
|
|
67
|
-
|
|
68
|
+
// Storage that never throws: with site data blocked the terms are simply asked again next visit.
|
|
69
|
+
const storage = browserStorage()
|
|
70
|
+
const termsAccepted = ref(storage.getItem('sui-deployer:terms-accepted') === '1')
|
|
68
71
|
const showTerms = ref(false)
|
|
69
72
|
|
|
70
73
|
const errors = computed(() => validateForm(form))
|
|
@@ -156,7 +159,7 @@ function goBack(): void {
|
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
function onTermsAccept(): void {
|
|
159
|
-
|
|
162
|
+
storage.setItem('sui-deployer:terms-accepted', '1')
|
|
160
163
|
termsAccepted.value = true
|
|
161
164
|
showTerms.value = false
|
|
162
165
|
step.value = 'review'
|