@@ -160,10 +162,11 @@
Delegation
@@ -374,20 +378,10 @@
-
-
-
-
-
-
@@ -410,13 +404,8 @@ import {
} from '@/libs/utils'
import { sha256 } from '@cosmjs/crypto'
import { toHex } from '@cosmjs/encoding'
+import OperationModal from '@/views/components/OperationModal/index.vue'
import ObjectFieldComponent from './ObjectFieldComponent.vue'
-import OperationTransferComponent from './OperationTransferComponent.vue'
-import OperationWithdrawComponent from './OperationWithdrawComponent.vue'
-import OperationUnbondComponent from './OperationUnbondComponent.vue'
-import OperationDelegateComponent from './OperationDelegateComponent.vue'
-import OperationRedelegateComponent from './OperationRedelegateComponent.vue'
-import OperationTransfer2Component from './OperationTransfer2Component.vue'
import ChartComponentDoughnut from './ChartComponentDoughnut.vue'
export default {
@@ -442,13 +431,8 @@ export default {
// eslint-disable-next-line vue/no-unused-components
ToastificationContent,
ObjectFieldComponent,
- OperationTransferComponent,
- OperationWithdrawComponent,
- OperationDelegateComponent,
- OperationRedelegateComponent,
- OperationUnbondComponent,
- OperationTransfer2Component,
ChartComponentDoughnut,
+ OperationModal,
},
directives: {
'b-modal': VBModal,
@@ -472,6 +456,7 @@ export default {
quotes: {},
transactions: [],
stakingParameters: {},
+ operationModalType: '',
}
},
computed: {
@@ -662,8 +647,12 @@ export default {
this.transactions = res
})
},
- selectValue(v) {
+ selectValue(v, type) {
this.selectedValidator = v
+ this.setOperationModalType(type)
+ },
+ setOperationModalType(type) {
+ this.operationModalType = type
},
formatHash: abbrAddress,
formatDenom(v) {
diff --git a/src/views/WalletAccounts.vue b/src/views/WalletAccounts.vue
index c3977ada..8bd37b63 100644
--- a/src/views/WalletAccounts.vue
+++ b/src/views/WalletAccounts.vue
@@ -153,15 +153,15 @@
/>
Transfer
IBC Transfer
@@ -265,10 +265,10 @@
Connect Wallet
-
-
@@ -287,8 +287,7 @@ import {
import ToastificationContent from '@core/components/toastification/ToastificationContent.vue'
import AppCollapse from '@core/components/app-collapse/AppCollapse.vue'
import AppCollapseItem from '@core/components/app-collapse/AppCollapseItem.vue'
-import OperationTransferComponent from './OperationTransferComponent.vue'
-import OperationTransfer2Component from './OperationTransfer2Component.vue'
+import OperationModal from '@/views/components/OperationModal/index.vue'
import ChartComponentDoughnut from './ChartComponentDoughnut.vue'
import EchartScatter from './components/charts/EchartScatter.vue'
@@ -309,14 +308,13 @@ export default {
// eslint-disable-next-line vue/no-unused-components
VBTooltip,
FeatherIcon,
- OperationTransferComponent,
// eslint-disable-next-line vue/no-unused-components
ToastificationContent,
- OperationTransfer2Component,
ChartComponentDoughnut,
AppCollapse,
AppCollapseItem,
EchartScatter,
+ OperationModal,
},
directives: {
'b-tooltip': VBTooltip,
@@ -335,6 +333,7 @@ export default {
delegations: {},
ibcDenom: {},
quotes: {},
+ operationModalType: '',
options: {
maintainAspectRatio: false,
legend: {
@@ -533,7 +532,8 @@ export default {
this.currency2 = c
this.currency = getUserCurrencySign()
},
- transfer(addr) {
+ transfer(type, addr) {
+ this.operationModalType = type
this.selectedAddress = addr
},
completeAdd() {
diff --git a/src/views/WalletDelegations.vue b/src/views/WalletDelegations.vue
index b2911619..f446ad33 100644
--- a/src/views/WalletDelegations.vue
+++ b/src/views/WalletDelegations.vue
@@ -42,29 +42,29 @@
size="sm"
>
@@ -74,18 +74,10 @@
-
-
-
-
@@ -99,11 +91,7 @@ import {
formatToken, getCachedValidators, getLocalAccounts, getLocalChains, tokenFormatter,
} from '@/libs/utils'
import FeatherIcon from '@/@core/components/feather-icon/FeatherIcon.vue'
-
-import OperationWithdrawComponent from './OperationWithdrawComponent.vue'
-import OperationUnbondComponent from './OperationUnbondComponent.vue'
-import OperationDelegateComponent from './OperationDelegateComponent.vue'
-import OperationRedelegateComponent from './OperationRedelegateComponent.vue'
+import OperationModal from '@/views/components/OperationModal/index.vue'
export default {
components: {
@@ -113,11 +101,7 @@ export default {
BTable,
BCard,
FeatherIcon,
-
- OperationWithdrawComponent,
- OperationDelegateComponent,
- OperationRedelegateComponent,
- OperationUnbondComponent,
+ OperationModal,
},
directives: {
'b-tooltip': VBTooltip,
@@ -153,6 +137,7 @@ export default {
accounts: [],
delegations: [],
rewards: {},
+ operationModalType: '',
}
},
computed: {
@@ -200,7 +185,8 @@ export default {
this.init()
},
methods: {
- selectValue(v) {
+ selectValue(type, v) {
+ this.operationModalType = type
this.address = v.delegator_address
this.selectedValidator = v.validator.validator
return v
diff --git a/src/views/components/OperationModal/TransactionResult.vue b/src/views/components/OperationModal/TransactionResult.vue
new file mode 100644
index 00000000..31fb8266
--- /dev/null
+++ b/src/views/components/OperationModal/TransactionResult.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+ AMOUNT
+
+
+ 1,233,000 USDT
+
+
+
+
+ BRIDGE FEE
+
+
+ 3,000 USDT
+
+
+
+
+
+ TRANSFER AMOUNT
+
+
+ 1,213,000 USDT
+
+
+
+
+
+ Congratulations! Transfer completed successfully.
+
+
+ {{ error }}
+
+
+ Processing...
+
+
+
+
+
+
+
+
+
+
+ SUBMITED
+ COMPLETED
+ FAILED
+
+
+
+
+ View details
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Delegate.vue b/src/views/components/OperationModal/components/Delegate.vue
new file mode 100644
index 00000000..f806d552
--- /dev/null
+++ b/src/views/components/OperationModal/components/Delegate.vue
@@ -0,0 +1,240 @@
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+ {{ format(x) }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/GovDeposit.vue b/src/views/components/OperationModal/components/GovDeposit.vue
new file mode 100644
index 00000000..8bdf23eb
--- /dev/null
+++ b/src/views/components/OperationModal/components/GovDeposit.vue
@@ -0,0 +1,194 @@
+
+
+
+
+ {{ proposalId }}. {{ proposalTitle }}
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+ {{ format(item) }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/IBCTransfer.vue b/src/views/components/OperationModal/components/IBCTransfer.vue
new file mode 100644
index 00000000..99b5d4ea
--- /dev/null
+++ b/src/views/components/OperationModal/components/IBCTransfer.vue
@@ -0,0 +1,307 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -- Please select a token --
+
+
+
+ {{ format(item) }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Redelegate.vue b/src/views/components/OperationModal/components/Redelegate.vue
new file mode 100644
index 00000000..921636e5
--- /dev/null
+++ b/src/views/components/OperationModal/components/Redelegate.vue
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Transfer.vue b/src/views/components/OperationModal/components/Transfer.vue
new file mode 100644
index 00000000..53bc5d4c
--- /dev/null
+++ b/src/views/components/OperationModal/components/Transfer.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+ {{ format(item) }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Unbond.vue b/src/views/components/OperationModal/components/Unbond.vue
new file mode 100644
index 00000000..2882a100
--- /dev/null
+++ b/src/views/components/OperationModal/components/Unbond.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ printDenom() }}
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Vote.vue b/src/views/components/OperationModal/components/Vote.vue
new file mode 100644
index 00000000..f25e0029
--- /dev/null
+++ b/src/views/components/OperationModal/components/Vote.vue
@@ -0,0 +1,166 @@
+
+
+
+
+ {{ proposalId }}. {{ proposalTitle }}
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+
+ Yes
+
+
+ No
+
+
+ No With Veto
+
+
+ Abstain
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/Withdraw.vue b/src/views/components/OperationModal/components/Withdraw.vue
new file mode 100644
index 00000000..331748c5
--- /dev/null
+++ b/src/views/components/OperationModal/components/Withdraw.vue
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/components/WithdrawCommission.vue b/src/views/components/OperationModal/components/WithdrawCommission.vue
new file mode 100644
index 00000000..487a8a65
--- /dev/null
+++ b/src/views/components/OperationModal/components/WithdrawCommission.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/components/OperationModal/index.vue b/src/views/components/OperationModal/index.vue
new file mode 100644
index 00000000..279d860a
--- /dev/null
+++ b/src/views/components/OperationModal/index.vue
@@ -0,0 +1,431 @@
+
+
+
+
+
+
+
+ {{ blockingMsg }}
+
+
+ Connect Wallet
+
+
+
+
+
+
+
+
+
+
+ Advanced
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+ {{ errors[0] }}
+
+
+
+
+
+
+
+
+
+
+ {{ error }}
+
+
+
+
+
+
+
+
+