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

Added Hex seed to profile manager #3765

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions packages/playground/src/stores/profile_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Profile {
pk: string;
keypairType: KeypairType | undefined;
email: string;
hexSeed: string;
}

export interface State {
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/utils/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function loadProfile(grid: GridClient): Promise<Profile> {
pk: (await grid.twins.get({ id: grid!.twinId })).pk,
keypairType: grid.clientOptions!.keypairType,
email: await readEmail(grid),
hexSeed: grid.clientOptions!.mnemonic,
};
}

Expand Down
14 changes: 9 additions & 5 deletions packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,21 @@
<v-col cols="12" md="6" lg="6" xl="6">
<PasswordInputWrapper #="{ props }">
<VTextField
:label="
profileManager.profile.mnemonic.startsWith('0x') || profileManager.profile.mnemonic.length === 64
? 'Your Hex Seed'
: 'Your Mnemonic'
"
:label="'Your Mnemonic'"
readonly
v-model="profileManager.profile.mnemonic"
v-bind="props"
:disabled="activating || creatingAccount || activatingAccount"
/>
</PasswordInputWrapper>
<CopyInputWrapper :data="profileManager.profile.hexSeed" #="{ props }">
<input-tooltip
tooltip=" Please use this hex seed to import your wallet in Threefold Connect"
href="https://www.manual.grid.tf/documentation/threefold_token/storing_tft/tf_connect_app.html"
>
<VTextField label="Your Hex Seed" readonly v-model="profileManager.profile.hexSeed" v-bind="props" />
</input-tooltip>
</CopyInputWrapper>

<CopyInputWrapper :data="profileManager.profile.twinId.toString()" #="{ props }">
<VTextField label="Twin ID" readonly v-model="profileManager.profile.twinId" v-bind="props" />
Expand Down
Loading