@meddleware/walrus-ui 0.1.27 → 0.1.28
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/walrus-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "Standalone Vue 3 SPA for uploading blobs to Walrus decentralised storage and managing owned blobs — wallet-connected, NFT-gated relay support.",
|
|
5
5
|
"author": "Meddleware <dev@meddleware.co.uk>",
|
|
6
6
|
"license": "0BSD",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@meddleware/ui": "^0.1.10",
|
|
46
46
|
"@meddleware/wallet-adapter": "^0.0.5",
|
|
47
47
|
"@meddleware/walrus-client": "^0.0.11",
|
|
48
|
-
"@meddleware/walrus-relay": "^0.1.
|
|
48
|
+
"@meddleware/walrus-relay": "^0.1.12",
|
|
49
49
|
"@mysten/sui": "^2.30.0",
|
|
50
50
|
"@mysten/wallet-standard": "^0.20.0",
|
|
51
51
|
"@mysten/walrus": "~1.2.24",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { computed, nextTick, onMounted, ref, watch } from 'vue'
|
|
3
3
|
import { CopyableAddress, ExplorerLink } from '@meddleware/ui'
|
|
4
4
|
import type { OwnedBlob } from '@meddleware/walrus-client'
|
|
5
|
-
import { MAX_SINGLE_RESERVATION_EPOCHS } from '@meddleware/walrus-relay'
|
|
5
|
+
import { MAX_SINGLE_RESERVATION_EPOCHS, formatCoinAmount } from '@meddleware/walrus-relay'
|
|
6
6
|
import walrusWasmUrl from '@mysten/walrus-wasm/web/walrus_wasm_bg.wasm?url'
|
|
7
7
|
import type { Executor } from '../wallet.js'
|
|
8
8
|
import { NETWORK, walruscanBlobUrl } from '../config.js'
|
|
@@ -45,10 +45,6 @@ const MAX = MAX_SINGLE_RESERVATION_EPOCHS
|
|
|
45
45
|
function msg(e: unknown): string {
|
|
46
46
|
return e instanceof Error ? e.message : String(e)
|
|
47
47
|
}
|
|
48
|
-
/** FROST (1e-9 WAL) → short WAL string. */
|
|
49
|
-
function toWal(frost: bigint): string {
|
|
50
|
-
return (Number(frost) / 1e9).toFixed(4)
|
|
51
|
-
}
|
|
52
48
|
|
|
53
49
|
function maxAddable(endEpoch: number): number {
|
|
54
50
|
return maxExtendableEpochs(endEpoch, currentEpoch.value, MAX)
|
|
@@ -293,7 +289,7 @@ watch(
|
|
|
293
289
|
</button>
|
|
294
290
|
<button type="button" :disabled="!!busy" @click="extendBlob(g.representative)">Extend</button>
|
|
295
291
|
<span v-if="extendCostFrost[g.representative.objectId] != null" class="est">
|
|
296
|
-
≈{{
|
|
292
|
+
≈{{ formatCoinAmount(extendCostFrost[g.representative.objectId]!, 'WAL') }}
|
|
297
293
|
</span>
|
|
298
294
|
</span>
|
|
299
295
|
</template>
|