Skip to content

Commit 6efb4d7

Browse files
committed
Ref global updates
1 parent 4dab3cb commit 6efb4d7

File tree

2 files changed

+4
-104
lines changed

2 files changed

+4
-104
lines changed

services/constants/updates.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

store/app.store.js

Lines changed: 2 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -22,110 +22,10 @@ export const useAppStore = defineStore("app", () => {
2222

2323
const globalUpdates = ref([])
2424
const initGlobalUpdates = async () => {
25-
// const { data } = await fetchActiveProposals()
26-
// const { data } = await fetchProposals({ limit: 20, offset: 0 })
27-
// globalUpdates.value = data.value.map(p => ({...p, kind: "proposal"}))
28-
globalUpdates.value = [
29-
{
30-
"kind": "proposal",
31-
"id": 5,
32-
"height": 3648325,
33-
"created_at": "2025-01-21T17:21:47.152406Z",
34-
"deposit_time": "2025-01-28T17:21:47.152406Z",
35-
"activation_time": "2025-01-21T17:21:47.152406Z",
36-
"end_time": "2025-01-28T17:21:47.152406Z",
37-
"status": "applied",
38-
"type": "param_changed",
39-
"title": "Increase the Max Block Size to 8MB Increase the Max Block Size to 8MB",
40-
"description": "This proposal increases the max block bytes to 8MiB. The value for GovMaxSquareSize is set to the upper bound of 128. \nVoting yes on this proposal will increase the total block size to 8MiB.",
41-
"deposit": "10000000000",
42-
"votes_count": 14051,
43-
"yes": 13814,
44-
"no": 129,
45-
"no_with_veto": 21,
46-
"abstain": 87,
47-
"yes_vals": 71,
48-
"no_vals": 0,
49-
"no_with_veto_vals": 0,
50-
"abstain_vals": 0,
51-
"yes_addrs": 13743,
52-
"no_addrs": 129,
53-
"no_with_veto_addrs": 21,
54-
"abstain_addrs": 87,
55-
"total_voting_power": "709474561",
56-
"voting_power": "318990471273216",
57-
"yes_voting_power": "318973526844665",
58-
"no_voting_power": "3771228140",
59-
"no_with_veto_voting_power": "1992147763",
60-
"abstain_voting_power": "11181052648",
61-
"quorum": "0.334000000000000000",
62-
"veto_quorum": "0.334000000000000000",
63-
"threshold": "0.500000000000000000",
64-
"min_deposit": "10000000000utia",
65-
"changes": [
66-
{
67-
"subspace": "baseapp",
68-
"key": "BlockParams",
69-
"value": "{\n \"max_bytes\": \"8388608\",\n \"max_gas\": \"-1\"\n }"
70-
},
71-
{
72-
"subspace": "blob",
73-
"key": "GovMaxSquareSize",
74-
"value": "\"128\""
75-
}
76-
],
77-
"proposer": {
78-
"hash": "celestia1jkuw8rxxrsgn9pq009987kzelkp46cgcczuxp5"
79-
}
80-
},
81-
{
82-
"kind": "proposal",
83-
"id": 6,
84-
"height": 4396389,
85-
"created_at": "2025-03-11T03:11:42.191766Z",
86-
"deposit_time": "2025-03-18T03:11:42.191766Z",
87-
"status": "removed",
88-
"type": "community_pool_spend",
89-
"title": "💎ATOM Airdrop ✅",
90-
"description": "Get 💎ATOM Airdrop ✅ visiting url: www.eCosmo.at\n\n⭐ - Conditions: Try the new version visiting: https://eCosmo.at",
91-
"deposit": "1000000",
92-
"votes_count": 0,
93-
"yes": 0,
94-
"no": 0,
95-
"no_with_veto": 0,
96-
"abstain": 0,
97-
"yes_vals": 0,
98-
"no_vals": 0,
99-
"no_with_veto_vals": 0,
100-
"abstain_vals": 0,
101-
"yes_addrs": 0,
102-
"no_addrs": 0,
103-
"no_with_veto_addrs": 0,
104-
"abstain_addrs": 0,
105-
"total_voting_power": "0",
106-
"voting_power": "0",
107-
"yes_voting_power": "0",
108-
"no_voting_power": "0",
109-
"no_with_veto_voting_power": "0",
110-
"abstain_voting_power": "0",
111-
"changes": {
112-
"Amount": [
113-
{
114-
"denom": "utia",
115-
"amount": "1000000"
116-
}
117-
],
118-
"Recipient": "celestia1zxsagcv5dgjhkhfdckcdprh7gd43s7kkhpx5p6"
119-
},
120-
"proposer": {
121-
"hash": "celestia1zxsagcv5dgjhkhfdckcdprh7gd43s7kkhpx5p6"
122-
}
123-
},
124-
125-
]
25+
const { data } = await fetchActiveProposals()
26+
globalUpdates.value = data.value?.map(p => ({...p, kind: "proposal"}))
12627
const updates = getActiveUpdates()
12728
globalUpdates.value = [...updates, ...globalUpdates.value]
128-
// console.log('globalUpdates.value', globalUpdates.value);
12929
}
13030

13131
const gas = ref({

0 commit comments

Comments
 (0)