-
+exports[`TransactionMetadata renders correct transaction metadata 1`] = `
+
+
-
-
- Block #1234567
-
+
- @ Jul 31st 2019 00:00:00
-
-
+ Hash:
+
+ ABCD1234
+
+
`;
diff --git a/tests/unit/specs/components/transactions/message-view/BeginRedelegateMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/BeginRedelegateMessageDetails.spec.js
new file mode 100644
index 0000000000..8f406766c8
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/BeginRedelegateMessageDetails.spec.js
@@ -0,0 +1,42 @@
+import { shallowMount } from "@vue/test-utils"
+import BeginRedelegateMessageDetails from "src/components/transactions/message-view/BeginRedelegateMessageDetails"
+
+describe(`BeginRedelegateMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=begin_redelegate
+ const tx = {
+ height: 2000000,
+ value: {
+ validator_src_address: `cosmos1`,
+ validator_dst_address: `cosmos2`,
+ amount: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgBeginRedelegate`
+ }
+
+ it(`renders a redelegate transaction message`, () => {
+ wrapper = shallowMount(BeginRedelegateMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/CreateValidatorMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/CreateValidatorMessageDetails.spec.js
new file mode 100644
index 0000000000..f3ec20077f
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/CreateValidatorMessageDetails.spec.js
@@ -0,0 +1,35 @@
+import { shallowMount } from "@vue/test-utils"
+import CreateValidatorMessageDetails from "src/components/transactions/message-view/CreateValidatorMessageDetails"
+
+describe(`CreateValidatorMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=create_validator
+ const tx = {
+ height: 2000000,
+ value: {
+ validator_address: `cosmos1`
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgCreateValidator`
+ }
+
+ it(`renders a create validator transaction message`, () => {
+ wrapper = shallowMount(CreateValidatorMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/DelegateMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/DelegateMessageDetails.spec.js
new file mode 100644
index 0000000000..9873860de1
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/DelegateMessageDetails.spec.js
@@ -0,0 +1,41 @@
+import { shallowMount } from "@vue/test-utils"
+import DelegateMessageDetails from "src/components/transactions/message-view/DelegateMessageDetails"
+
+describe(`DelegateMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=delegate
+ const tx = {
+ height: 2000000,
+ value: {
+ validator_address: `cosmos1`,
+ amount: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgDelegate`
+ }
+
+ it(`renders a redelegate transaction message`, () => {
+ wrapper = shallowMount(DelegateMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/DepositMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/DepositMessageDetails.spec.js
new file mode 100644
index 0000000000..3f12147172
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/DepositMessageDetails.spec.js
@@ -0,0 +1,41 @@
+import { shallowMount } from "@vue/test-utils"
+import DepositMessageDetails from "src/components/transactions/message-view/DepositMessageDetails"
+
+describe(`DepositMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=deposit
+ const tx = {
+ height: 2000000,
+ value: {
+ proposal_id: 1,
+ amount: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `governance`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgDeposit`
+ }
+
+ it(`renders a deposit transaction message`, () => {
+ wrapper = shallowMount(DepositMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/EditValidatorMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/EditValidatorMessageDetails.spec.js
new file mode 100644
index 0000000000..c3780da91f
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/EditValidatorMessageDetails.spec.js
@@ -0,0 +1,39 @@
+import { shallowMount } from "@vue/test-utils"
+import EditValidatorMessageDetails from "src/components/transactions/message-view/EditValidatorMessageDetails"
+
+describe(`EditValidatorMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=edit_validator
+ const tx = {
+ height: 2000000,
+ value: {
+ address: `cosmos1`
+ },
+ fee: {
+ amount: [
+ {
+ amount: "37",
+ denom: "uatom"
+ }
+ ]
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgEditValidator`
+ }
+
+ it(`renders a edit validator transaction message`, () => {
+ wrapper = shallowMount(EditValidatorMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/MultiSendMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/MultiSendMessageDetails.spec.js
new file mode 100644
index 0000000000..bfa89c2273
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/MultiSendMessageDetails.spec.js
@@ -0,0 +1,84 @@
+import { shallowMount } from "@vue/test-utils"
+import MultiSendMessageDetails from "src/components/transactions/message-view/MultiSendMessageDetails"
+
+describe(`MultiSendMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=multisend
+ const tx = {
+ height: 2000000,
+ value: {
+ inputs: [
+ {
+ address: `cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee`,
+ coins: [
+ {
+ amount: "20000000000",
+ denom: "uatom"
+ }
+ ]
+ }
+ ],
+ outputs: [
+ {
+ address: `cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee`,
+ coins: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ },
+ {
+ address: `cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q`,
+ coins: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `banking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgMultiSend`
+ }
+
+ it(`renders a sent transaction message`, () => {
+ wrapper = shallowMount(MultiSendMessageDetails, {
+ propsData: {
+ transaction: tx,
+ sessionAddress: "cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee"
+ }
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+
+ it(`renders a received transaction message`, () => {
+ wrapper = shallowMount(MultiSendMessageDetails, {
+ propsData: {
+ transaction: tx,
+ sessionAddress: "cosmos1clpqr4nrk4khgkxj78fcwwh6dl3uw4ep4tgu9q"
+ }
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+
+ it(`renders a sent transaction message (send to yourself)`, () => {
+ wrapper = shallowMount(MultiSendMessageDetails, {
+ propsData: {
+ transaction: tx,
+ sessionAddress: "cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee"
+ }
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/SendMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/SendMessageDetails.spec.js
new file mode 100644
index 0000000000..8737deef6f
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/SendMessageDetails.spec.js
@@ -0,0 +1,51 @@
+import { shallowMount } from "@vue/test-utils"
+import SendMessageDetails from "src/components/transactions/message-view/SendMessageDetails"
+
+describe(`SendMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=send
+ const tx = {
+ height: 2000000,
+ value: {
+ from_address: `cosmos1`,
+ to_address: `cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee`,
+ amount: [
+ {
+ amount: "10000000000",
+ denom: "uatom"
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `banking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgSend`
+ }
+
+ it(`renders a sent transaction message`, () => {
+ wrapper = shallowMount(SendMessageDetails, {
+ propsData: {
+ transaction: tx,
+ sessionAddress: "cosmos1"
+ }
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+
+ it(`renders a received transaction message`, () => {
+ wrapper = shallowMount(SendMessageDetails, {
+ propsData: {
+ transaction: tx,
+ sessionAddress: "cosmos1ahtlr29s38w23xxq7slcwmmz4c8x9efmr8qmee"
+ }
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/SetWithdrawAddressMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/SetWithdrawAddressMessageDetails.spec.js
new file mode 100644
index 0000000000..1b68a12b9a
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/SetWithdrawAddressMessageDetails.spec.js
@@ -0,0 +1,35 @@
+import { shallowMount } from "@vue/test-utils"
+import SetWithdrawAddressMessageDetails from "src/components/transactions/message-view/SetWithdrawAddressMessageDetails"
+
+describe(`SetWithdrawAddressMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=set_withdraw_address
+ const tx = {
+ height: 2000000,
+ value: {
+ withdraw_address: `cosmos1`
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgModifyWithdrawAddress`
+ }
+
+ it(`renders a set withdraw address transaction message`, () => {
+ wrapper = shallowMount(SetWithdrawAddressMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/SubmitProposalMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/SubmitProposalMessageDetails.spec.js
new file mode 100644
index 0000000000..406798915c
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/SubmitProposalMessageDetails.spec.js
@@ -0,0 +1,45 @@
+import { shallowMount } from "@vue/test-utils"
+import SubmitProposalMessageDetails from "src/components/transactions/message-view/SubmitProposalMessageDetails"
+
+describe(`SubmitProposalMessageDetails`, () => {
+ let wrapper
+
+ // Examples @ https://stargate.cosmos.network/txs?action=submit_proposal
+ const tx = {
+ height: 2000000,
+ value: {
+ title: "Bla bla bla",
+ description: "Bla bla bla",
+ proposal_type: "Text",
+ proposer: "cosmos1ey69r37gfxvxg62sh4r0ktpuc46pzjrmz29g45",
+ initial_deposit: [
+ {
+ denom: "uatom",
+ amount: "100000000"
+ }
+ ]
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `governance`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgSubmitProposal`
+ }
+
+ it(`renders a submit proposal transaction message`, () => {
+ wrapper = shallowMount(SubmitProposalMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/UndelegateMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/UndelegateMessageDetails.spec.js
new file mode 100644
index 0000000000..af2f06a0ec
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/UndelegateMessageDetails.spec.js
@@ -0,0 +1,40 @@
+import { shallowMount } from "@vue/test-utils"
+import UndelegateMessageDetails from "src/components/transactions/message-view/UndelegateMessageDetails"
+
+describe(`UndelegateMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=begin_unbonding
+ const tx = {
+ height: 2000000,
+ value: {
+ delegator_address: "cosmos16wgw3k7rspegl9khx79fuaa37unf4nfmxf7pyr",
+ validator_address: "cosmosvaloper1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u2lcnj0",
+ amount: {
+ denom: "uatom",
+ amount: "100000"
+ }
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgUndelegate`
+ }
+
+ it(`renders a undelegate transaction message`, () => {
+ wrapper = shallowMount(UndelegateMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/UnjailMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/UnjailMessageDetails.spec.js
new file mode 100644
index 0000000000..2997f2a8ec
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/UnjailMessageDetails.spec.js
@@ -0,0 +1,35 @@
+import { shallowMount } from "@vue/test-utils"
+import UnjailMessageDetails from "src/components/transactions/message-view/UnjailMessageDetails"
+
+describe(`UnjailMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=unjail
+ const tx = {
+ height: 2000000,
+ value: {
+ address: "cosmos16wgw3k7rspegl9khx79fuaa37unf4nfmxf7pyr"
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `staking`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgUnjail`
+ }
+
+ it(`renders a unjail validator transaction message`, () => {
+ wrapper = shallowMount(UnjailMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/VoteMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/VoteMessageDetails.spec.js
new file mode 100644
index 0000000000..844555c98f
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/VoteMessageDetails.spec.js
@@ -0,0 +1,37 @@
+import { shallowMount } from "@vue/test-utils"
+import VoteMessageDetails from "src/components/transactions/message-view/VoteMessageDetails"
+
+describe(`VoteMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=vote
+ const tx = {
+ height: 2000000,
+ value: {
+ proposal_id: "5",
+ voter: "cosmos1lktjhnzkpkz3ehrg8psvmwhafg56kfss5597tg",
+ option: "Abstain"
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `governance`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgVote`
+ }
+
+ it(`renders a vote transaction message`, () => {
+ wrapper = shallowMount(VoteMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: {}
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/WithdrawDelegationRewardMessageDetails.spec.js b/tests/unit/specs/components/transactions/message-view/WithdrawDelegationRewardMessageDetails.spec.js
new file mode 100644
index 0000000000..4b36bb0743
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/WithdrawDelegationRewardMessageDetails.spec.js
@@ -0,0 +1,62 @@
+import { shallowMount } from "@vue/test-utils"
+import WithdrawDelegationRewardMessageDetails from "src/components/transactions/message-view/WithdrawDelegationRewardMessageDetails"
+
+describe(`WithdrawalDelegationRewardMessageDetails`, () => {
+ let wrapper
+ // Examples @ https://stargate.cosmos.network/txs?action=withdraw_validator_rewards_all
+ const tx = {
+ height: 2000000,
+ value: {
+ delegator_address: "cosmos15r4tc0m6hc7z8drq3dzlrtcs6rq2q9l2kc6z4s",
+ validator_address: "cosmosvaloper15r4tc0m6hc7z8drq3dzlrtcs6rq2q9l2nvwher"
+ },
+ fee: {
+ amount: "37",
+ denom: "uatom"
+ },
+ hash: `ABCD1234`,
+ group: `governance`,
+ key: "keyhash",
+ memo: "(Sent via Lunie)",
+ timestamp: 123456789,
+ liquidDate: null,
+ type: `cosmos-sdk/MsgWithdrawDelegationReward`
+ }
+
+ const validators = {
+ cosmosvaloper15r4tc0m6hc7z8drq3dzlrtcs6rq2q9l2nvwher: {
+ name: `SuperValidator`,
+ operatorAddress: `cosmosvaloper15r4tc0m6hc7z8drq3dzlrtcs6rq2q9l2nvwher`,
+ picture: "",
+ __typename: `Validator`
+ },
+ cosmos1: {
+ name: `SuperValidator`,
+ operatorAddress: `"cosmos1"`,
+ picture: "",
+ __typename: `Validator`
+ }
+ }
+
+ it(`renders a withdraw delegation reward transaction message`, () => {
+ wrapper = shallowMount(WithdrawDelegationRewardMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: validators
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+
+ it(`renders a withdraw delegation reward transaction message without validator`, () => {
+ wrapper = shallowMount(WithdrawDelegationRewardMessageDetails, {
+ propsData: {
+ transaction: tx,
+ validators: validators
+ },
+ stubs: [`router-link`]
+ })
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/BeginRedelegateMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/BeginRedelegateMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..395e216f51
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/BeginRedelegateMessageDetails.spec.js.snap
@@ -0,0 +1,58 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`BeginRedelegateMessageDetails renders a redelegate transaction message 1`] = `
+
+
+
+
+
+ Restaked
+
+
+
+ From
+
+
+
+
+
+ cosmos…mos1
+
+
+ arrow_right_alt
+
+
+
+
+
+ Not A Valid Bech32 Address
+
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/CreateValidatorMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/CreateValidatorMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..5031c8c6e6
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/CreateValidatorMessageDetails.spec.js.snap
@@ -0,0 +1,33 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`CreateValidatorMessageDetails renders a create validator transaction message 1`] = `
+
+
+
+
+
+ Create validator
+
+
+
+ moniker
+
+
+
+
+
+ cosmos…mos1
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/DelegateMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/DelegateMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..7b90c8d2c1
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/DelegateMessageDetails.spec.js.snap
@@ -0,0 +1,45 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`DelegateMessageDetails renders a redelegate transaction message 1`] = `
+
+
+
+
+
+ Staked
+
+
+
+ With
+
+
+
+
+
+ cosmos…mos1
+
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/DepositMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/DepositMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..eeb39d8900
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/DepositMessageDetails.spec.js.snap
@@ -0,0 +1,43 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`DepositMessageDetails renders a deposit transaction message 1`] = `
+
+
+
+
+
+ Deposit
+
+
+
+ On
+
+
+
+ Proposal #1
+
+
+
+
+
+
+ 10,000
+ ATOM
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/EditValidatorMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/EditValidatorMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..9f4d6e9092
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/EditValidatorMessageDetails.spec.js.snap
@@ -0,0 +1,46 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`EditValidatorMessageDetails renders a edit validator transaction message 1`] = `
+
+
+
+
+
+ Edit validator
+
+
+
+ moniker
+
+
+
+
+
+ cosmos…mos1
+
+
+
+
+
+
+
+ 0.000037
+ ATOM
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/MultiSendMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/MultiSendMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..ded75ada41
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/MultiSendMessageDetails.spec.js.snap
@@ -0,0 +1,110 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`MultiSendMessageDetails renders a received transaction message 1`] = `
+
+
+
+
+
+ Received
+
+
+
+ From
+
+
+
+
+
+
+
+`;
+
+exports[`MultiSendMessageDetails renders a sent transaction message (send to yourself) 1`] = `
+
+
+
+
+
+ Sent
+
+
+
+ To yourself —
+
+
+
+
+
+`;
+
+exports[`MultiSendMessageDetails renders a sent transaction message 1`] = `
+
+
+
+
+
+ Sent
+
+
+
+ To yourself —
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/SendMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/SendMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..b8decc95c2
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/SendMessageDetails.spec.js.snap
@@ -0,0 +1,79 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`SendMessageDetails renders a received transaction message 1`] = `
+
+
+
+
+
+ Received
+
+
+
+ From
+
+
+
+
+
+
+
+`;
+
+exports[`SendMessageDetails renders a sent transaction message 1`] = `
+
+
+
+
+
+ Sent
+
+
+
+ To
+
+
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/SetWithdrawAddressMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/SetWithdrawAddressMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..6837fea96e
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/SetWithdrawAddressMessageDetails.spec.js.snap
@@ -0,0 +1,23 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`SetWithdrawAddressMessageDetails renders a set withdraw address transaction message 1`] = `
+
+
+
+
+
+ Update withdraw address
+
+
+ to cosmos1
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/SubmitProposalMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/SubmitProposalMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..bb8c2def4c
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/SubmitProposalMessageDetails.spec.js.snap
@@ -0,0 +1,37 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`SubmitProposalMessageDetails renders a submit proposal transaction message 1`] = `
+
+
+
+
+
+ Submitted proposal
+
+
+
+ Bla bla bla
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/UndelegateMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/UndelegateMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..2253b7a655
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/UndelegateMessageDetails.spec.js.snap
@@ -0,0 +1,45 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`UndelegateMessageDetails renders a undelegate transaction message 1`] = `
+
+
+
+
+
+ Unstaked
+
+
+
+ from
+
+
+
+
+
+ cosmosvaloper…cnj0
+
+
+
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/UnjailMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/UnjailMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..ae5cf54a9b
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/UnjailMessageDetails.spec.js.snap
@@ -0,0 +1,30 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`UnjailMessageDetails renders a unjail validator transaction message 1`] = `
+
+
+
+
+
+ Unjail
+
+
+
+ name:
+
+
+
+ cosmos…7pyr
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/VoteMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/VoteMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..87e78e6a2e
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/VoteMessageDetails.spec.js.snap
@@ -0,0 +1,35 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`VoteMessageDetails renders a vote transaction message 1`] = `
+
+
+
+
+
+ Voted
+
+
+
+
+ Abstain
+
+ on
+
+
+
+ Proposal #5
+
+
+
+`;
diff --git a/tests/unit/specs/components/transactions/message-view/__snapshots__/WithdrawDelegationRewardMessageDetails.spec.js.snap b/tests/unit/specs/components/transactions/message-view/__snapshots__/WithdrawDelegationRewardMessageDetails.spec.js.snap
new file mode 100644
index 0000000000..5dda54c113
--- /dev/null
+++ b/tests/unit/specs/components/transactions/message-view/__snapshots__/WithdrawDelegationRewardMessageDetails.spec.js.snap
@@ -0,0 +1,67 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`WithdrawalDelegationRewardMessageDetails renders a withdraw delegation reward transaction message 1`] = `
+
+
+
+
+
+ Claimed
+
+
+
+ Rewards from
+
+
+
+
+
+ SuperValidator
+
+
+
+
+`;
+
+exports[`WithdrawalDelegationRewardMessageDetails renders a withdraw delegation reward transaction message without validator 1`] = `
+
+
+
+
+
+ Claimed
+
+
+
+ Rewards from
+
+
+
+
+
+ SuperValidator
+
+
+
+
+`;
diff --git a/vue.config.js b/vue.config.js
index ea0447dded..9819053145 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -13,7 +13,7 @@ const commitHash = require(`child_process`)
module.exports = {
publicPath: `/`,
- chainWebpack: (config) => {
+ chainWebpack: config => {
config.plugins.delete(`prefetch`)
},
configureWebpack: () => {
@@ -51,7 +51,7 @@ module.exports = {
],
optimization: {
splitChunks: {
- chunks: 'all',
+ chunks: "all"
}
}
}