forked from matter-labs/dapp-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdestinations.ts
57 lines (54 loc) · 1.19 KB
/
destinations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
export type TransactionDestination = {
key?: string;
label: string;
iconUrl: string;
};
export const useDestinationsStore = defineStore("destinations", () => {
const { l1Network } = storeToRefs(useNetworkStore());
const { eraNetwork } = storeToRefs(useZkSyncProviderStore());
const destinations = computed(() => ({
era: {
key: "era",
label: eraNetwork.value.name,
iconUrl: "/img/era.svg",
},
ethereum: {
key: "ethereum",
label: l1Network.value ? l1Network.value.name : "",
iconUrl: "/img/ethereum.svg",
},
layerswap: {
key: "layerswap",
label: "Layerswap",
iconUrl: "/img/layerswap.svg",
},
ramp: {
key: "ramp",
label: "Ramp",
iconUrl: "/img/ramp.svg",
},
moonpay: {
key: "moonpay",
label: "Moonpay",
iconUrl: "/img/moonpay.svg",
},
binance: {
key: "binance",
label: "Binance",
iconUrl: "/img/binance.svg",
},
zigzag: {
key: "zigzag",
label: "ZigZag",
iconUrl: "/img/zigzag.svg",
},
rhino: {
key: "rhino",
label: "rhino.fi",
iconUrl: "/img/rhino.svg",
},
}));
return {
destinations,
};
});