@mictonode/widget 0.3.17 → 0.3.18
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/dist/{main-465ae991.js → main-bbea3e54.js} +83 -83
- package/dist/ping-widget.js +2 -2
- package/dist/ping-widget.umd.cjs +15 -15
- package/dist/{query.lcd-d9c6163c.js → query.lcd-88036522.js} +1 -1
- package/dist/{query.rpc.Query-a479e6f9.js → query.rpc.Query-3a2b14f8.js} +1 -1
- package/dist/{tx.rpc.msg-7444045d.js → tx.rpc.msg-39f0b824.js} +1 -1
- package/lib/components/ConnectWallet/index.vue +8 -8
- package/lib/components/TokenConvert/index.vue +10 -10
- package/lib/components/TxDialog/index.vue +422 -422
- package/lib/components/TxDialog/messages/Delegate.vue +4 -4
- package/lib/components/TxDialog/messages/Deposit.vue +3 -3
- package/lib/components/TxDialog/messages/Redelegate.vue +5 -5
- package/lib/components/TxDialog/messages/Send.vue +5 -5
- package/lib/components/TxDialog/messages/Transfer.vue +6 -6
- package/lib/components/TxDialog/messages/Unbond.vue +3 -3
- package/lib/components/TxDialog/messages/Vote.vue +1 -1
- package/lib/components/TxDialog/messages/Withdraw.vue +1 -1
- package/lib/components/TxDialog/messages/WithdrawCommission.vue +1 -1
- package/lib/components/TxDialog/wasm/ClearAdmin.vue +2 -2
- package/lib/components/TxDialog/wasm/ExecuteContract.vue +5 -5
- package/lib/components/TxDialog/wasm/InstantiateContract.vue +6 -6
- package/lib/components/TxDialog/wasm/MigrateContract.vue +4 -4
- package/lib/components/TxDialog/wasm/MigrateContract2.vue +4 -4
- package/lib/components/TxDialog/wasm/StoreCode.vue +2 -2
- package/lib/components/TxDialog/wasm/UpdateAdmin.vue +3 -3
- package/lib/main.css +500 -41
- package/lib/main.ts +1 -0
- package/package.json +3 -4
- package/src/App.vue +6 -6
- package/src/styles/design-system.css +35 -1
- package/tailwind.config.js +1 -54
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as u, m as r, T as W, t as ee, f as ie, L as d, P as L, A as p, a as B, b as F, c as w, d as M, e as U, g as Q, h as oe, _ as ne } from "./main-
|
|
1
|
+
import { C as u, m as r, T as W, t as ee, f as ie, L as d, P as L, A as p, a as B, b as F, c as w, d as M, e as U, g as Q, h as oe, _ as ne } from "./main-bbea3e54.js";
|
|
2
2
|
function Z() {
|
|
3
3
|
return {
|
|
4
4
|
positionId: d.UZERO,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n, M as r, i as c, m as t, j as a, k as d, l as h, n as l, o as g, p, q as u, r as m } from "./main-
|
|
1
|
+
import { _ as n, M as r, i as c, m as t, j as a, k as d, l as h, n as l, o as g, p, q as u, r as m } from "./main-bbea3e54.js";
|
|
2
2
|
class f {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
n(this, "rpc", void 0), this.rpc = e, this.createPosition = this.createPosition.bind(this), this.withdrawPosition = this.withdrawPosition.bind(this), this.collectFees = this.collectFees.bind(this), this.collectIncentives = this.collectIncentives.bind(this), this.fungifyChargedPositions = this.fungifyChargedPositions.bind(this);
|
|
@@ -167,7 +167,7 @@ const customKeplr = computed(() => {
|
|
|
167
167
|
connected.cosmosAddress?.length - 4
|
|
168
168
|
)
|
|
169
169
|
}}</label>
|
|
170
|
-
<div tabindex="0" class="dropdown-content
|
|
170
|
+
<div tabindex="0" class="dropdown-content shadow p-2 rounded w-64 overflow-auto">
|
|
171
171
|
<div class="px-2 mb-1 text-gray-500 dark:text-gray-400 font-semibold flex justify-between">
|
|
172
172
|
<span class="text-lg"> {{ connected.wallet }} </span>
|
|
173
173
|
<span class="ml-2 text-xs mt-2">
|
|
@@ -211,19 +211,19 @@ const customKeplr = computed(() => {
|
|
|
211
211
|
</div>
|
|
212
212
|
</div>
|
|
213
213
|
<label v-if="!connected.cosmosAddress" for="PingConnectWallet"
|
|
214
|
-
class="btn
|
|
214
|
+
class="btn btn-primary btn-sm ping-connect-btn capitalize text-white">Connect Wallet</label>
|
|
215
215
|
|
|
216
216
|
<!-- modal content -->
|
|
217
217
|
<input v-model="open" type="checkbox" id="PingConnectWallet" class="modal-toggle" @change="initData()" />
|
|
218
218
|
|
|
219
219
|
<label for="PingConnectWallet" class="modal cursor-pointer z-[999999]">
|
|
220
|
-
<label class="modal-box rounded-lg
|
|
220
|
+
<label class="modal-box rounded-lg" for="">
|
|
221
221
|
<h3 class="text-xl font-semibold">Connect Wallet</h3>
|
|
222
|
-
<ul role="list" class="bg-gray-100
|
|
223
|
-
<li class="flex items-center px-2 py-3 hover:bg-gray-200 dark:
|
|
222
|
+
<ul role="list" class="bg-gray-100 rounded-lg mt-4 px-3 py-3">
|
|
223
|
+
<li class="flex items-center px-2 py-3 hover:bg-gray-200 dark:hover:bg-primary-700 rounded-lg cursor-pointer"
|
|
224
224
|
v-for="(i, k) of walletList" :key="k" @click="selectWallet(i.wallet)">
|
|
225
225
|
<img class="h-10 w-10 bg-gray-50 rounded-full mr-4" :src="i.logo" alt="" />
|
|
226
|
-
<p class="text-base font-semibold flex-1
|
|
226
|
+
<p class="text-base font-semibold flex-1">
|
|
227
227
|
{{ i.wallet }}
|
|
228
228
|
</p>
|
|
229
229
|
<div>
|
|
@@ -240,10 +240,10 @@ const customKeplr = computed(() => {
|
|
|
240
240
|
</div>
|
|
241
241
|
</div>
|
|
242
242
|
<div class="mt-8 text-right flex">
|
|
243
|
-
<label class="btn
|
|
243
|
+
<label class="btn mr-1" @click="keplr">
|
|
244
244
|
<Icon icon="mdi:cog-outline" />
|
|
245
245
|
</label>
|
|
246
|
-
<label class="btn
|
|
246
|
+
<label class="btn btn-primary ping-connect-confirm grow" @click="connect()">
|
|
247
247
|
<span v-if="sending" class="loading loading-spinner"></span>
|
|
248
248
|
Connect
|
|
249
249
|
</label>
|
|
@@ -673,7 +673,7 @@ function fetchTx(tx: string) {
|
|
|
673
673
|
<input v-model="open" type="checkbox" id="PingTokenConvert" class="modal-toggle" @change="initData()" />
|
|
674
674
|
|
|
675
675
|
<label for="PingTokenConvert" class="modal cursor-pointer">
|
|
676
|
-
<label class="modal-box
|
|
676
|
+
<label class="modal-box rounded-lg" for="">
|
|
677
677
|
<div v-show="view === 'swap'">
|
|
678
678
|
<div class="absolute right-4 top-4 dropdown dropdown-end dropdown-hover">
|
|
679
679
|
<label tabindex="0" class="text-info">
|
|
@@ -684,7 +684,7 @@ function fetchTx(tx: string) {
|
|
|
684
684
|
</svg>
|
|
685
685
|
</label>
|
|
686
686
|
<div tabindex="0"
|
|
687
|
-
class="card
|
|
687
|
+
class="card dropdown-content bg-slate-300 shadow-lg rounded-lg w-64 z-40">
|
|
688
688
|
<div class="card-body">
|
|
689
689
|
<ul class="text-right">
|
|
690
690
|
<li>Liquidity is provided by Osmosis</li>
|
|
@@ -709,7 +709,7 @@ function fetchTx(tx: string) {
|
|
|
709
709
|
</div>
|
|
710
710
|
<Icon icon="mdi:chevron-down" class="text-lg" />
|
|
711
711
|
</label>
|
|
712
|
-
<div tabindex="0" class="dropdown-content shadow
|
|
712
|
+
<div tabindex="0" class="dropdown-content shadow rounded-lg w-64 z-40">
|
|
713
713
|
<div class="py-2">
|
|
714
714
|
<div v-for="(item, index) in inTokens" :key="index"
|
|
715
715
|
class="flex items-center px-4 py-2 hover:bg-gray-200 dark:hover:bg-neutral-800 cursor-pointer"
|
|
@@ -768,7 +768,7 @@ function fetchTx(tx: string) {
|
|
|
768
768
|
</div>
|
|
769
769
|
<Icon icon="mdi:chevron-down" class="text-lg" />
|
|
770
770
|
</label>
|
|
771
|
-
<div tabindex="0" class="
|
|
771
|
+
<div tabindex="0" class="dropdown-content shadow w-64 rounded-lg">
|
|
772
772
|
<div class="py-2 max-h-40 overflow-y-auto">
|
|
773
773
|
<div v-for="(item, index) in outTokens" :key="index" @click="selectOutput(item)"
|
|
774
774
|
class="flex items-center px-4 py-2 max-h-36 overflow-y-auto hover:bg-gray-200 dark:hover:bg-neutral-800 cursor-pointer">
|
|
@@ -849,7 +849,7 @@ function fetchTx(tx: string) {
|
|
|
849
849
|
}}</span>
|
|
850
850
|
</label>
|
|
851
851
|
<input :value="osmoAddress(sender.cosmosAddress)" readonly type="text"
|
|
852
|
-
class="input
|
|
852
|
+
class="input" />
|
|
853
853
|
</div>
|
|
854
854
|
<div
|
|
855
855
|
class="flex items-center relative h-14 bg-gray-100 dark:bg-[#0f1419] rounded-tl-lg rounded-tr-lg mt-4">
|
|
@@ -881,7 +881,7 @@ function fetchTx(tx: string) {
|
|
|
881
881
|
</div>
|
|
882
882
|
|
|
883
883
|
<div class="mt-5 flex">
|
|
884
|
-
<label class="btn
|
|
884
|
+
<label class="btn mr-1" @click="switchView('swap')">
|
|
885
885
|
<svg fill="#ffffff" height="20px" width="20px" version="1.1" id="Layer_1"
|
|
886
886
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
887
887
|
viewBox="0 0 330 330" xml:space="preserve">
|
|
@@ -943,14 +943,14 @@ function fetchTx(tx: string) {
|
|
|
943
943
|
)
|
|
944
944
|
}}</span>
|
|
945
945
|
</label>
|
|
946
|
-
<input v-model="recipient" type="text" class="input
|
|
946
|
+
<input v-model="recipient" type="text" class="input" />
|
|
947
947
|
</div>
|
|
948
948
|
<div v-if="error" class="text-error mt-3">
|
|
949
949
|
<span>{{ error }}.</span>
|
|
950
950
|
</div>
|
|
951
951
|
|
|
952
952
|
<div class="mt-5 flex">
|
|
953
|
-
<label class="btn
|
|
953
|
+
<label class="btn mr-1" @click="switchView('swap')">
|
|
954
954
|
<svg fill="#ffffff" height="20px" width="20px" version="1.1" id="Layer_1"
|
|
955
955
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
956
956
|
viewBox="0 0 330 330" xml:space="preserve">
|
|
@@ -963,7 +963,7 @@ function fetchTx(tx: string) {
|
|
|
963
963
|
</g>
|
|
964
964
|
</svg>
|
|
965
965
|
</label>
|
|
966
|
-
<button class="btn btn-primary
|
|
966
|
+
<button class="btn btn-primary grow ping-connect-confirm capitalize text-base"
|
|
967
967
|
:disabled="disableWithdraw" @click="doWithdraw()">
|
|
968
968
|
<span v-if="sending" class="loading loading-spinner"></span>
|
|
969
969
|
Withdraw
|
|
@@ -985,7 +985,7 @@ function fetchTx(tx: string) {
|
|
|
985
985
|
</div>
|
|
986
986
|
|
|
987
987
|
<div class="mt-5">
|
|
988
|
-
<button class="btn btn-primary
|
|
988
|
+
<button class="btn btn-primary w-full ping-connect-confirm capitalize text-base" @click="connect()">
|
|
989
989
|
<span v-if="sending" class="loading loading-spinner"></span>
|
|
990
990
|
Connect
|
|
991
991
|
</button>
|