@meddleware/token-deployer-ui 0.0.32 → 0.0.33
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 +2 -2
- package/src/components/MyTokens.vue +16 -3
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.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "0BSD",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@meddleware/design-tokens": "^0.1.9",
|
|
52
|
-
"@meddleware/sui-token-client": "^0.0.
|
|
52
|
+
"@meddleware/sui-token-client": "^0.0.10",
|
|
53
53
|
"@meddleware/ui": "^0.1.31",
|
|
54
54
|
"@meddleware/walrus-client": "^0.0.26",
|
|
55
55
|
"@meddleware/walrus-relay": "^0.1.29",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
// Lists the coins the connected wallet
|
|
2
|
+
// Lists the coins the connected wallet deployed or controls (an owned TreasuryCap<T> or MetadataCap<T>, or a
|
|
3
|
+
// held coin whose package the wallet published — a fixed supply with frozen metadata has no capability). Read-only,
|
|
3
4
|
// mirroring access-gate's "My Gates". Loads on mount and whenever the address or network changes.
|
|
4
5
|
import { computed, ref, watch } from 'vue'
|
|
5
6
|
import {
|
|
@@ -62,7 +63,7 @@ defineExpose({ reload: load })
|
|
|
62
63
|
No deployed tokens found for this wallet. Deploy one from the <strong>Deploy</strong> tab.
|
|
63
64
|
</p>
|
|
64
65
|
<ul v-else class="my-tokens__list">
|
|
65
|
-
<li v-for="t in tokens" :key="t.
|
|
66
|
+
<li v-for="t in tokens" :key="t.coinType" class="my-tokens__item">
|
|
66
67
|
<div class="my-tokens__label">{{ t.label }}</div>
|
|
67
68
|
<dl class="my-tokens__meta">
|
|
68
69
|
<dt>Coin type</dt>
|
|
@@ -78,7 +79,7 @@ defineExpose({ reload: load })
|
|
|
78
79
|
</CopyableAddress>
|
|
79
80
|
</dd>
|
|
80
81
|
<dt>Treasury cap</dt>
|
|
81
|
-
<dd>
|
|
82
|
+
<dd v-if="t.treasuryCapId">
|
|
82
83
|
<CopyableAddress :address="t.treasuryCapId" label="Copy treasury cap id">
|
|
83
84
|
<ExplorerLink
|
|
84
85
|
v-if="explorerNetwork"
|
|
@@ -87,6 +88,18 @@ defineExpose({ reload: load })
|
|
|
87
88
|
/>
|
|
88
89
|
</CopyableAddress>
|
|
89
90
|
</dd>
|
|
91
|
+
<dd v-else>None — the supply is fixed, or the cap is held elsewhere</dd>
|
|
92
|
+
<dt>Metadata cap</dt>
|
|
93
|
+
<dd v-if="t.metadataCapId">
|
|
94
|
+
<CopyableAddress :address="t.metadataCapId" label="Copy metadata cap id">
|
|
95
|
+
<ExplorerLink
|
|
96
|
+
v-if="explorerNetwork"
|
|
97
|
+
:href="suiExplorerUrl('object', t.metadataCapId, explorerNetwork)"
|
|
98
|
+
:value="t.metadataCapId"
|
|
99
|
+
/>
|
|
100
|
+
</CopyableAddress>
|
|
101
|
+
</dd>
|
|
102
|
+
<dd v-else>None — the metadata is frozen, or the cap is held elsewhere</dd>
|
|
90
103
|
</dl>
|
|
91
104
|
</li>
|
|
92
105
|
</ul>
|