Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Release #301

Merged
merged 69 commits into from
Dec 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
e1001af
refactor(button): allow overriding button classes
deansallinen Dec 6, 2024
a0918c0
Added robots.txt
aaroncox Dec 6, 2024
cc736a7
Use Big.js to safely wrap asset quantities
aaroncox Dec 6, 2024
281cc49
Link to token page from account balances
aaroncox Dec 6, 2024
41afe8f
refactor: description list component
deansallinen Dec 6, 2024
71ce477
refactor(button): allow overriding button classes
deansallinen Dec 6, 2024
7a361f8
style: actions
deansallinen Dec 6, 2024
09acc18
refactor: use new dl and button styles
deansallinen Dec 6, 2024
24c0855
Balance alignment
aaroncox Dec 8, 2024
052d4a2
Scaffolding initial voter informtion
aaroncox Dec 8, 2024
2c019be
Adding vote weight in token format
aaroncox Dec 9, 2024
bb64e6c
Enabling Votes in advanced mode and other pages in debug mode
aaroncox Dec 9, 2024
e845ffd
Merge pull request #299 from greymass/voter
aaroncox Dec 9, 2024
5f23ace
Merge pull request #300 from greymass/tokens
aaroncox Dec 9, 2024
5a2ee4e
Merge pull request #297 from greymass/refactor-dl
aaroncox Dec 9, 2024
0801f3a
Merge pull request #296 from greymass/robots
aaroncox Dec 9, 2024
950ec8b
Merge pull request #295 from greymass/overridable-buttons
aaroncox Dec 9, 2024
e397872
Merge pull request #298 from greymass/msig
aaroncox Dec 9, 2024
bb0bfc6
fix: layout of key page
deansallinen Dec 10, 2024
4c7f2a1
Merge pull request #303 from greymass/fix-key-layout
aaroncox Dec 10, 2024
79594fc
Moved all state to manager and added debugging
aaroncox Dec 10, 2024
a97fed9
Refactored state for approvals/participants
aaroncox Dec 10, 2024
3cdf9bb
Disable success toast
aaroncox Dec 10, 2024
4519bfa
Use contexts transacting state
aaroncox Dec 10, 2024
6cb3298
Removed unused error (should be in Wharf context?)
aaroncox Dec 10, 2024
4415f78
Removed unused `changed` state
aaroncox Dec 10, 2024
64352fe
Removed try/catch, was causing further code to execute
aaroncox Dec 10, 2024
31545d5
Removed unneeded transact method
aaroncox Dec 10, 2024
7d5f058
Reworked constructor to prevent needing undefined for state
aaroncox Dec 10, 2024
50d40fe
Implement ABICache in NetworkState
aaroncox Dec 10, 2024
a47ea6f
Moved decoding to manager and allow overriding on setabi calls
aaroncox Dec 10, 2024
aa89cb9
removed logging
aaroncox Dec 10, 2024
84ae0e7
Adding cleos support while in advanced mode
aaroncox Dec 11, 2024
ff742f4
Merge pull request #305 from greymass/cleos
aaroncox Dec 11, 2024
f50984f
Add a few helper API methods to retrieve producers
aaroncox Dec 11, 2024
65cb896
Added Top21/BP checks to msig page
aaroncox Dec 11, 2024
bdda2ce
Simplified API calls
aaroncox Dec 11, 2024
bc00ac3
Linting
aaroncox Dec 11, 2024
0994cc1
Removed unneeded ORIGIN
aaroncox Dec 11, 2024
79dd0f6
Removed logging
aaroncox Dec 12, 2024
ebfb505
Merge pull request #304 from greymass/msig
aaroncox Dec 12, 2024
dacf52a
Added supply, marketcap, and data for homepage
aaroncox Dec 10, 2024
cb0f3f1
Conditionally adding homepage sections when in debug mode
aaroncox Dec 10, 2024
42a74ff
Adding manually defined redirects from v1 to v2
aaroncox Dec 10, 2024
f621dca
Linting
aaroncox Dec 12, 2024
b72c7fe
Formatting
aaroncox Dec 12, 2024
4208f29
Linting
aaroncox Dec 12, 2024
0f7885a
Added additional price metrics
aaroncox Dec 12, 2024
dbaa25f
Homepage + funding content
aaroncox Dec 12, 2024
16ced4b
Fixed issue with missing voter_info
aaroncox Dec 13, 2024
cb284ed
Updating wharfkit/account
aaroncox Dec 13, 2024
c732bca
feat: permission tree page
deansallinen Dec 11, 2024
a51e3d9
style: add permission tree decoration
deansallinen Dec 12, 2024
9234fa6
feat: include accounts in required auth
deansallinen Dec 12, 2024
51f21d2
feat: linked actions
deansallinen Dec 12, 2024
18ec58b
fix: action link
deansallinen Dec 13, 2024
7fceff4
Merge pull request #302 from greymass/homepage
aaroncox Dec 13, 2024
c51bc63
feat: relative time in wait
deansallinen Dec 13, 2024
737e9b8
fix: action display
deansallinen Dec 13, 2024
d3a907b
fix: permission mobile view
deansallinen Dec 13, 2024
771f81e
refactor: handle empty required_auth
deansallinen Dec 13, 2024
5913d6b
fix: key icon centering
deansallinen Dec 13, 2024
24338fa
fix: copy button size
deansallinen Dec 13, 2024
0b8cb41
style: less hot wait text color
deansallinen Dec 13, 2024
b90097c
fix: indentation bug
deansallinen Dec 13, 2024
74397a4
chore: remove logging
deansallinen Dec 13, 2024
d6b979e
refactor: single dayjs setup
deansallinen Dec 13, 2024
24cc9c1
Merge pull request #307 from greymass/permissions-page
aaroncox Dec 14, 2024
82b9dbb
Allow attempting claim if date is not set
aaroncox Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added Top21/BP checks to msig page
aaroncox committed Dec 11, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
chraibi Mohcine Chraibi
commit 65cb89667d5fdde6de0c53ee6443f3bdde2c7dc9
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Name, PackedTransaction, PermissionLevel, Serializer } from '@wharfkit/antelope';
import { Name, PackedTransaction, PermissionLevel } from '@wharfkit/antelope';
import type { LayoutLoad } from './$types';
import { error } from '@sveltejs/kit';

@@ -42,6 +42,7 @@ export const load: LayoutLoad = async ({ fetch, params, parent }) => {
hash: transaction.id,
packed,
transaction
}
},
producers: json.producers
};
};
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@
$effect(() => {
manager.sync(data.network, context.wharf);
});
const top21 = data.producers.splice(0, 21);
</script>

<Stack>
@@ -59,14 +61,26 @@
<tr>
<th class="text-left">Actor</th>
<th class="text-left">Permission</th>
<th class="text-left">Role</th>
<th class="text-right">Status</th>
</tr>
</thead>
<tbody>
{#each manager.participants as participant}
{@const isProducer = data.producers.includes(String(participant.actor))}
{@const isTop21 = top21.includes(String(participant.actor))}
<tr class="h-12 bg-none">
<td><Account name={participant.actor} /></td>
<td class="text-muted">{participant.permission}</td>
<td>
{#if isTop21}
Top 21
{:else if isProducer}
Standby
{:else}
Signer
{/if}
</td>
<td class="text-right">
{#if manager.accountHasApproved(participant)}
<span class="text-green-300">Approved</span>
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { getChainDefinitionFromParams } from '$lib/state/network.svelte';
import { Name } from '@wharfkit/antelope';
import { getCacheHeaders } from '$lib/utils';
import { getBackendNetwork } from '$lib/wharf/client/ssr.js';
import { ORIGIN } from '$env/static/private';

export async function GET({ fetch, params }: RequestEvent) {
const chain = getChainDefinitionFromParams(String(params.network));
@@ -43,12 +44,15 @@ export async function GET({ fetch, params }: RequestEvent) {

const proposal = proposals.rows[0];
const approvals = approvals2.rows[0];
const response = await fetch(`${ORIGIN}/${params.network}/api/producers/top30`);
const { producers } = await response.json();

return json(
{
ts: new Date(),
proposer: params.proposer,
name: params.proposal,
producers,
proposal,
approvals
},