diff --git a/src/components/ModalPostVote.vue b/src/components/ModalPostVote.vue index bc673439..c2c27572 100644 --- a/src/components/ModalPostVote.vue +++ b/src/components/ModalPostVote.vue @@ -1,9 +1,10 @@ + + diff --git a/src/plugins/domino/components/CustomBlock.vue b/src/plugins/domino/components/CustomBlock.vue new file mode 100644 index 00000000..9509c1a4 --- /dev/null +++ b/src/plugins/domino/components/CustomBlock.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/plugins/domino/plugin.json b/src/plugins/domino/plugin.json new file mode 100644 index 00000000..41874b15 --- /dev/null +++ b/src/plugins/domino/plugin.json @@ -0,0 +1,8 @@ +{ + "name": "Domino", + "version": "1.0.0", + "author": "domino.run", + "website": "https://github.com/snapshot-labs/snapshot/tree/master/src/plugins/domino", + "icon": "ipfs://QmePXkJYHhkSMXi7qpvShtNg8Vhd5kVDYQNcPjAcZv3QdG" +} + diff --git a/src/plugins/oSnap/utils/getters.ts b/src/plugins/oSnap/utils/getters.ts index 53525d28..184658a7 100644 --- a/src/plugins/oSnap/utils/getters.ts +++ b/src/plugins/oSnap/utils/getters.ts @@ -37,6 +37,7 @@ import { } from '../types'; import { getPagedEvents } from './events'; import { toChecksumAddress } from '@/helpers/utils'; +import app from '../../../main'; /** * Calls the Gnosis Safe Transaction API @@ -745,10 +746,10 @@ export function getSafeNetworkPrefix(network: Network): SafeNetworkPrefix { export function getSafeAppLink( network: Network, safeAddress: string, - appUrl = 'https://gnosis-safe.io/app/' + {appUrl = 'https://app.safe.global', path = '/home' } = {appUrl: 'https://app.safe.global', path: '/home'} ) { const prefix = getSafeNetworkPrefix(network); - return `${appUrl}${prefix}:${safeAddress}`; + return new URL(`${path}?safe=${prefix}:${safeAddress}`, appUrl).toString(); } /** diff --git a/src/plugins/safeSnap/components/SafeTransactions.vue b/src/plugins/safeSnap/components/SafeTransactions.vue index 9e4231b0..357e48d6 100644 --- a/src/plugins/safeSnap/components/SafeTransactions.vue +++ b/src/plugins/safeSnap/components/SafeTransactions.vue @@ -15,6 +15,7 @@ import Plugin, { getGnosisSafeBalances, getGnosisSafeCollectibles } from '../index'; +import { getSafeAppLink } from '@/plugins/oSnap/utils'; const plugin = new Plugin(); @@ -210,8 +211,7 @@ export default { }, computed: { safeLink() { - const prefix = EIP3770_PREFIXES[this.network]; - return `https://gnosis-safe.io/app/${prefix}:${this.gnosisSafeAddress}`; + return getSafeAppLink(this.network, this.gnosisSafeAddress); }, networkName() { if (this.network === '1') return 'Mainnet';