Customize as GHOST Keychain v0.0.1

This commit is contained in:
Cosmos4k 2026-10-30 05:15:04 -04:00
parent 54f4402200
commit 95b1f6c403
36 changed files with 414 additions and 115 deletions

View File

@ -1,5 +1,5 @@
{ {
"author": "Jaco Greeff <jacogr@gmail.com>", "author": "GHOST Chain <dev@ghostchain.io>",
"bugs": "https://github.com/polkadot-js/extension/issues", "bugs": "https://github.com/polkadot-js/extension/issues",
"engines": { "engines": {
"node": ">=18.14" "node": ">=18.14"
@ -14,10 +14,10 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "0.64.1", "version": "0.0.1",
"versions": { "versions": {
"git": "0.64.1", "git": "0.0.1",
"npm": "0.64.1" "npm": "0.0.1"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"

View File

@ -9,7 +9,7 @@ import BaseStore from './Base.js';
export default class AccountsStore extends BaseStore<KeyringJson> implements KeyringStore { export default class AccountsStore extends BaseStore<KeyringJson> implements KeyringStore {
constructor () { constructor () {
super( super(
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'polkadot{.js}' EXTENSION_PREFIX && EXTENSION_PREFIX !== 'GHOST Keychain'
? `${EXTENSION_PREFIX}accounts` ? `${EXTENSION_PREFIX}accounts`
: null : null
); );

View File

@ -9,7 +9,7 @@ import BaseStore from './Base.js';
export default class MetadataStore extends BaseStore<MetadataDef> { export default class MetadataStore extends BaseStore<MetadataDef> {
constructor () { constructor () {
super( super(
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'polkadot{.js}' EXTENSION_PREFIX && EXTENSION_PREFIX !== 'GHOST Keychain'
? `${EXTENSION_PREFIX}metadata` ? `${EXTENSION_PREFIX}metadata`
: 'metadata' : 'metadata'
); );

View File

@ -61,7 +61,7 @@ export default styled(WebsiteEntry)<Props>`
.connectedAccounts{ .connectedAccounts{
margin-left: .5rem; margin-left: .5rem;
background-color: var(--primaryColor); background-color: var(--primaryColor);
color: white; color: var(--primaryColorLabel);
cursor: pointer; cursor: pointer;
padding: 0 0.5rem; padding: 0 0.5rem;
border-radius: 4px; border-radius: 4px;

View File

@ -31,6 +31,14 @@ function CreateAccount ({ className }: Props): React.ReactElement {
const [genesisHash, setGenesis] = useState<HexString | null>(null); const [genesisHash, setGenesis] = useState<HexString | null>(null);
const chain = useMetadata(genesisHash, true); const chain = useMetadata(genesisHash, true);
useEffect((): void => {
// Default to CASPER if the user hasn't picked anything yet
const casper = options.find((o) => o.text === 'CASPER Staging Testnet');
if (casper && genesisHash === null) {
setGenesis(casper.value as HexString);
}
}, [options, genesisHash]);
useEffect((): void => { useEffect((): void => {
createSeed(undefined) createSeed(undefined)
.then(({ address, seed }): void => { .then(({ address, seed }): void => {

View File

@ -27,7 +27,7 @@ function PhishingDetected ({ className }: Props): React.ReactElement<Props> {
<Header text={t('Phishing detected')} /> <Header text={t('Phishing detected')} />
<div className={className}> <div className={className}>
<p> <p>
{t('You have been redirected because the Polkadot{.js} extension believes that this website could compromise the security of your accounts and your tokens.')} {t('You have been redirected because the GHOST Keychain extension believes that this website could compromise the security of your accounts and your tokens.')}
</p> </p>
<p className='websiteAddress'> <p className='websiteAddress'>
{decodedWebsite} {decodedWebsite}

View File

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="uuid-a5496f4a-2166-4cc5-8af9-5970a08f4d7b" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400">
<defs>
<style>
.uuid-e23459ef-e7b2-4e98-a6c8-0b4d9867801c {
fill: url(#uuid-a879911e-1401-48a0-9e33-3ed2864265b2);
}
.uuid-6b01caa0-eea2-4a85-964f-3293845e1d69 {
fill: #fff;
}
.uuid-98bf5aeb-7f7c-446d-bcd2-ca6a0de9dae8 {
fill: url(#uuid-ee475a3d-67ab-4555-a3b0-3f20604093d9);
}
.uuid-ca5b6d81-356c-49b7-b17a-702d940612a6 {
fill: url(#uuid-a17de7be-27c0-4ad8-99f4-c57f34fa1c2b);
}
.uuid-54f4362f-9142-49c1-ac4a-60a68645540a {
fill: url(#uuid-5737dee7-6c5f-4e67-9b27-4ab4c78aa799);
}
.uuid-e0752343-25ef-4e9a-8404-b81815e681db {
fill: url(#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b);
}
.uuid-99990908-a8e2-4426-b4aa-4f2c52b02d0e {
fill: none;
}
.uuid-0e700f88-9dc7-48e8-91d7-094121dace26 {
fill: url(#uuid-934549bd-490c-43d0-9be0-43dbbf727633);
}
.uuid-bfbce72d-0643-45c2-9f88-b89ccf3c7020 {
fill: url(#uuid-7a4ad035-b5e9-41cf-8a61-99c02217989c);
}
</style>
<radialGradient id="uuid-ee475a3d-67ab-4555-a3b0-3f20604093d9" cx="200" cy="200" fx="200" fy="200" r="200" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#15304c"/>
<stop offset=".47" stop-color="#1e3856"/>
<stop offset="1" stop-color="#223c5a"/>
</radialGradient>
<linearGradient id="uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b" x1="205.84" y1="258.35" x2="90.9" y2="204.75" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".02" stop-color="#fff" stop-opacity=".07"/>
<stop offset=".09" stop-color="#fff" stop-opacity=".26"/>
<stop offset=".17" stop-color="#fff" stop-opacity=".44"/>
<stop offset=".25" stop-color="#fff" stop-opacity=".59"/>
<stop offset=".33" stop-color="#fff" stop-opacity=".72"/>
<stop offset=".43" stop-color="#fff" stop-opacity=".82"/>
<stop offset=".53" stop-color="#fff" stop-opacity=".9"/>
<stop offset=".64" stop-color="#fff" stop-opacity=".96"/>
<stop offset=".77" stop-color="#fff" stop-opacity=".99"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="uuid-7a4ad035-b5e9-41cf-8a61-99c02217989c" x1="159.33" y1="183.78" x2="239.63" y2="103.48" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-a17de7be-27c0-4ad8-99f4-c57f34fa1c2b" x1="253.45" y1="167.81" x2="253.45" y2="293.92" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset="0" stop-color="#fefefe" stop-opacity="0"/>
<stop offset=".07" stop-color="#f9fafa" stop-opacity=".21"/>
<stop offset=".15" stop-color="#f4f5f7" stop-opacity=".4"/>
<stop offset=".23" stop-color="#eff2f4" stop-opacity=".56"/>
<stop offset=".32" stop-color="#eceff1" stop-opacity=".7"/>
<stop offset=".41" stop-color="#e9ecef" stop-opacity=".81"/>
<stop offset=".51" stop-color="#e6eaee" stop-opacity=".89"/>
<stop offset=".63" stop-color="#e5e9ec" stop-opacity=".95"/>
<stop offset=".77" stop-color="#e4e8ec" stop-opacity=".99"/>
<stop offset="1" stop-color="#e4e8ec"/>
</linearGradient>
<linearGradient id="uuid-5737dee7-6c5f-4e67-9b27-4ab4c78aa799" x1="177.79" y1="235.71" x2="279.37" y2="337.3" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-a879911e-1401-48a0-9e33-3ed2864265b2" x1="168.26" y1="181.94" x2="55.77" y2="181.94" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-934549bd-490c-43d0-9be0-43dbbf727633" x1="257.82" y1="239.48" x2="257.82" y2="43.33" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".02" stop-color="#fff" stop-opacity=".07"/>
<stop offset=".09" stop-color="#fff" stop-opacity=".26"/>
<stop offset=".17" stop-color="#fff" stop-opacity=".44"/>
<stop offset=".25" stop-color="#fff" stop-opacity=".59"/>
<stop offset=".33" stop-color="#fff" stop-opacity=".72"/>
<stop offset=".43" stop-color="#fff" stop-opacity=".82"/>
<stop offset=".53" stop-color="#fff" stop-opacity=".9"/>
<stop offset=".64" stop-color="#fff" stop-opacity=".96"/>
<stop offset=".77" stop-color="#fff" stop-opacity=".99"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
<g id="uuid-1dbb2329-549c-42e6-9f4e-ce4e40b7b7bf" data-name="Layer 27">
<circle class="uuid-98bf5aeb-7f7c-446d-bcd2-ca6a0de9dae8" cx="200" cy="200" r="200"/>
<g>
<circle class="uuid-99990908-a8e2-4426-b4aa-4f2c52b02d0e" cx="199.76" cy="200.51" r="157.5"/>
<path class="uuid-e0752343-25ef-4e9a-8404-b81815e681db" d="m213.59,107.72c.19,0,.38,0,.57.03l.5.07,7.45,1.5,2.36.62c.58.16,1.11.29,1.65.43,1.08.28,2.16.56,3.23.88l.13.04,4.76,1.57c6.48,2.27,12.72,5.18,18.63,8.68,12,7.25,22.13,17.2,29.59,29.07,11,17.99,16.09,38.97,14.57,60-.42,6.15-1.63,12.21-3.58,18.06-1.46,4.22-6.06,6.45-10.28,5-4.22-1.46-6.45-6.06-5-10.28.03-.07.05-.15.08-.22,1.64-4.53,2.7-9.24,3.16-14.03.61-5.88.59-11.8-.06-17.68-1.21-11.84-4.91-23.3-10.86-33.6-6.05-10.25-14.42-18.95-24.43-25.4-5.08-3.21-10.46-5.9-16.07-8.05l-4.38-1.58c-.89-.29-1.79-.55-2.69-.81-.57-.17-1.14-.33-1.71-.5l-2.12-.62-7.11-1.65c-3.11-.96-4.86-4.26-3.9-7.37.75-2.42,2.96-4.1,5.5-4.16h0Z"/>
<path class="uuid-bfbce72d-0643-45c2-9f88-b89ccf3c7020" d="m132.37,249.32c2.69,0,5.21,1.34,6.7,3.58,2.85,4.22,6.29,8.03,10.2,11.29,4.75,4.01,9.94,7.46,15.47,10.28,11.18,5.75,23.48,8.97,36.05,9.43,6.24.21,12.49-.34,18.61-1.62,6.11-1.32,12.04-3.39,17.64-6.17,5.67-2.83,11.02-6.27,15.96-10.25,4.93-4.13,9.49-8.66,13.65-13.56l.41-.42c2.47-2.14,6.2-1.87,8.33.6,1.62,1.88,1.9,4.57.69,6.74l-.43.61c-4.47,5.57-9.41,10.74-14.77,15.47-5.54,4.73-11.57,8.85-18,12.28-13.04,6.93-27.61,10.48-42.37,10.33-14.72-.14-29.22-3.51-42.49-9.87-6.68-3.18-12.97-7.12-18.75-11.74-5.14-4.07-9.68-8.84-13.5-14.17-2.59-3.65-1.74-8.7,1.91-11.29.18-.13.36-.25.55-.36,1.25-.74,2.67-1.14,4.13-1.14Z"/>
<path class="uuid-ca5b6d81-356c-49b7-b17a-702d940612a6" d="m178.2,107.11c4.46-.01,8.08,3.59,8.1,8.05.01,3.65-2.43,6.85-5.95,7.81-9.95,2.73-19.33,7.21-27.7,13.24-9.17,6.53-16.96,14.81-22.93,24.35-5.9,9.56-9.6,20.32-10.83,31.49-1.13,11.39-.06,22.9,3.15,33.89l.1.41c.54,3.21-1.62,6.25-4.83,6.78-2.51.42-5-.81-6.19-3.07l-.21-.41-.14-.44c-4-12.38-5.59-25.42-4.68-38.4,1.04-13.18,5.01-25.97,11.62-37.42,12.97-22.04,33.72-38.43,58.16-45.94.76-.23,1.55-.35,2.35-.35Z"/>
<path class="uuid-54f4362f-9142-49c1-ac4a-60a68645540a" d="m85.82,158.87c13.95.14,25.38-11.06,25.52-25.01.05-4.82-1.28-9.55-3.83-13.63,6.31-7.4,13.4-14.09,21.15-19.97,14.14-10.76,30.43-18.35,47.77-22.24,17.47-3.79,35.56-3.58,52.93.62,16.1,3.73,32.7,11.26,49.34,22.38l.15.09c3.12,1.88,7.18.88,9.06-2.25,1.7-2.83,1.06-6.48-1.52-8.55l-.16-.12c-17.59-12.71-35.46-21.58-53.09-26.35-11.46-3.19-23.3-4.87-35.19-4.98-8.37-.08-16.72.63-24.95,2.14-20.07,3.74-39.09,11.77-55.77,23.53-9.9,6.96-18.95,15.05-26.97,24.1-13.77-2.32-26.82,6.96-29.14,20.73-2.32,13.77,6.96,26.82,20.73,29.14,1.31.22,2.64.34,3.97.35h0Z"/>
<path class="uuid-e23459ef-e7b2-4e98-a6c8-0b4d9867801c" d="m284.13,134.15c4.4,11.04,15.9,17.52,27.63,15.56,14.21,29.21,17.06,62.65,8,93.85-2.93,9.63-7.13,18.82-12.48,27.34-5.4,8.56-11.88,16.4-19.28,23.32-7.49,6.98-15.7,13.14-24.49,18.39-9.04,5.2-18.47,9.67-28.22,13.38l-.83.32-.69.55c-2.24,1.8-3.08,4.82-2.1,7.51,1.1,3.11,4.36,4.9,7.57,4.16l.6-.18c10.58-3.65,20.85-8.13,30.72-13.4,9.9-5.49,19.19-12.01,27.72-19.46,8.62-7.57,16.24-16.21,22.67-25.71,6.45-9.58,11.6-19.96,15.31-30.89,7.32-21.95,9.31-45.32,5.81-68.19-2.15-14.78-6.51-29.15-12.94-42.64,7.34-11.88,3.67-27.46-8.21-34.81-11.88-7.34-27.46-3.67-34.81,8.21-4.21,6.82-4.95,15.23-1.98,22.67h0Z"/>
<path class="uuid-0e700f88-9dc7-48e8-91d7-094121dace26" d="m205.39,308.02c-2.01-.55-4.08-.86-6.17-.9-9.42-.19-18.16,4.88-22.67,13.14-29.06-6.02-55.28-21.59-74.46-44.24-12.13-14.49-20.7-31.62-25.01-50.02-4.14-17.07-4.55-36.24-1.23-57l.07-.74c.08-3.28-2.28-6.12-5.53-6.63-.31-.05-.62-.08-.93-.08-2.59-.07-4.98,1.38-6.12,3.71l-.33.68-.15.74c-4.39,22.45-4.62,43.52-.7,62.58,4.18,21.02,13.23,40.77,26.43,57.66,13.29,16.86,30.03,30.69,49.09,40.57,11.78,6.11,24.31,10.66,37.27,13.53.48,1.35,1.08,2.65,1.78,3.89,6.91,12.13,22.36,16.37,34.49,9.45,12.13-6.91,16.37-22.36,9.45-34.49-3.31-5.84-8.81-10.11-15.29-11.87Z"/>
</g>
<g id="uuid-c7346074-9319-497f-8c65-544422098620" data-name="Keychain">
<path id="uuid-f7dc62bf-69da-4539-bca8-31b074256384" data-name="Key" class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m188.85,241.18v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-15.05,0-27.27,12.23-27.27,27.27,0,11.86,7.59,21.95,18.18,25.68v1.59s-9.09,9.09-9.09,9.09l9.09,9.09-9.09,9.09,18.36,18.18,8.91-9.09Zm-22.73-63.64c0-7.5,6.14-13.64,13.64-13.64,7.5,0,13.64,6.14,13.64,13.64s-6.14,13.64-13.64,13.64c-7.5,0-13.64-6.14-13.64-13.64"/>
<path class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m217.03,177.54c0,11.86-7.59,21.95-18.18,25.68v37.95l-3.98,4.07,5.08,5.03,8.91-9.09v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-1.71,0-3.38.17-5,.47,12.66,2.35,22.27,13.47,22.27,26.81Z"/>
<path class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m237.03,177.54c0,11.86-7.59,21.95-18.18,25.68v37.95l-3.98,4.07,5.08,5.03,8.91-9.09v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-1.71,0-3.38.17-5,.47,12.66,2.35,22.27,13.47,22.27,26.81Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -1 +1 @@
<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 0L3.97 6L0 0H8Z" fill="#585858"/></svg> <svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 0L3.97 6L0 0H8Z" fill="#fff"/></svg>

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 140 B

View File

@ -1 +1 @@
<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.9902 2.00008L11.5802 0.580078L4.99023 7.17008L2.41023 4.60008L0.990234 6.01008L4.99023 10.0001L12.9902 2.00008Z" fill="#FF8B00"/></svg> <svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.9902 2.00008L11.5802 0.580078L4.99023 7.17008L2.41023 4.60008L0.990234 6.01008L4.99023 10.0001L12.9902 2.00008Z" fill="#fff"/></svg>

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 241 B

View File

@ -0,0 +1,89 @@
<svg id="uuid-7fc42f87-25ae-4a75-b0af-985723ac8259" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 280 280">
<defs>
<style>
.uuid-eb25b381-0115-4465-ae3e-c978c0346132 {
fill: url(#uuid-354b2367-a739-4cd7-86b0-eaa0df51bfce);
}
.uuid-cd5c08b7-69ff-49dc-838c-48a1f782617b {
fill: url(#uuid-44430f45-25c1-4eed-a719-16947383d390);
}
.uuid-4279037b-78dd-4176-9593-3310bc1ea4ae {
fill: url(#uuid-58723c25-ebce-4749-9aa7-7345b8fdb212);
}
.uuid-357154db-71cd-4024-8517-edeea657559f {
fill: url(#uuid-4d5a5841-8d95-44b2-ae9d-36cd5f34ba40);
}
.uuid-9e1c1075-b17d-4391-911a-dfd9549cf5fb {
fill: url(#uuid-a8b014fe-8ee7-474b-a8f6-ba2ab4e9e986);
}
.uuid-bbcf8c58-9d67-4d78-8a29-b1d965c96162 {
fill: none;
}
.uuid-a58ca7af-760c-4991-8f6c-4b074fb22f4c {
fill: url(#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20);
}
/* Animation classes */
.outer-group {
animation: spinCCW 3s linear infinite;
transform-origin: 140px 140px;
}
.inner-group {
animation: spinCW 3s linear infinite;
transform-origin: 140px 140px;
}
@keyframes spinCCW {
from { transform: rotate(0deg); }
to { transform: rotate(-360deg); }
}
@keyframes spinCW {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
</style>
<linearGradient id="uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20" x1="144.31" y1="101.06" x2="62.94" y2="139.01" gradientTransform="translate(0 282) scale(1 -1)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".02" stop-color="#fff" stop-opacity=".07"/>
<stop offset=".09" stop-color="#fff" stop-opacity=".26"/>
<stop offset=".17" stop-color="#fff" stop-opacity=".44"/>
<stop offset=".25" stop-color="#fff" stop-opacity=".59"/>
<stop offset=".33" stop-color="#fff" stop-opacity=".72"/>
<stop offset=".43" stop-color="#fff" stop-opacity=".82"/>
<stop offset=".52" stop-color="#fff" stop-opacity=".9"/>
<stop offset=".64" stop-color="#fff" stop-opacity=".96"/>
<stop offset=".77" stop-color="#fff" stop-opacity=".99"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="uuid-354b2367-a739-4cd7-86b0-eaa0df51bfce" x1="111.38" y1="153.84" x2="168.23" y2="210.69" xlink:href="#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20"/>
<linearGradient id="uuid-4d5a5841-8d95-44b2-ae9d-36cd5f34ba40" x1="178.01" y1="165.15" x2="178.01" y2="75.88" xlink:href="#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20"/>
<linearGradient id="uuid-58723c25-ebce-4749-9aa7-7345b8fdb212" x1="124.45" y1="117.08" x2="196.36" y2="45.17" xlink:href="#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20"/>
<linearGradient id="uuid-44430f45-25c1-4eed-a719-16947383d390" x1="117.7" y1="155.15" x2="38.07" y2="155.15" xlink:href="#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20"/>
<linearGradient id="uuid-a8b014fe-8ee7-474b-a8f6-ba2ab4e9e986" x1="181.11" y1="114.41" x2="181.11" y2="253.28" xlink:href="#uuid-c042b5e0-acda-4f44-bcef-c5be870d0d20"/>
</defs>
<g id="uuid-976dde41-51be-4e88-8d49-1a2acfd74939" data-name="Layer 1">
<circle id="uuid-ab79cb7c-4d95-4d97-9886-ce3cec093e39" data-name="Background" class="uuid-bbcf8c58-9d67-4d78-8a29-b1d965c96162" cx="140" cy="140" r="140"/>
<!-- Inner layers - clockwise rotation -->
<g class="inner-group">
<path id="uuid-9ec540a3-6ac8-4b85-a506-969acdb4944e" data-name="Inner_3" class="uuid-a58ca7af-760c-4991-8f6c-4b074fb22f4c" d="m130.21,205.69c-.13,0-.27,0-.4-.02l-.36-.05-5.28-1.06-1.67-.44c-.41-.11-.79-.21-1.17-.31-.77-.2-1.53-.4-2.29-.62l-.09-.03-3.37-1.11c-4.59-1.61-9.01-3.67-13.19-6.15-8.49-5.13-15.67-12.18-20.95-20.58-7.79-12.74-11.39-27.59-10.31-42.48.3-4.35,1.15-8.65,2.53-12.78,1.02-2.99,4.28-4.58,7.26-3.56,2.99,1.02,4.58,4.28,3.56,7.26,0,.01,0,.02-.01.03-.02.05-.04.1-.06.16-1.16,3.2-1.91,6.54-2.24,9.93-.43,4.16-.42,8.36.04,12.51.85,8.38,3.48,16.49,7.69,23.79,4.28,7.26,10.21,13.42,17.29,17.98,3.6,2.27,7.41,4.18,11.38,5.7l3.1,1.12c.63.21,1.27.39,1.9.58.4.12.81.23,1.21.36l1.5.44,5.03,1.17c2.2.68,3.44,3.01,2.76,5.22-.53,1.72-2.1,2.9-3.89,2.94h0Z"/>
<path id="uuid-2e5b6b36-3242-453e-8a32-c138542018a4" data-name="Inner_2" class="uuid-eb25b381-0115-4465-ae3e-c978c0346132" d="m187.71,105.45c-1.91,0-3.69-.95-4.74-2.53-2.02-2.99-4.45-5.68-7.22-7.99-3.36-2.84-7.04-5.28-10.96-7.28-7.91-4.07-16.63-6.35-25.52-6.68-4.42-.15-8.84.24-13.17,1.15-4.33.93-8.52,2.4-12.49,4.37-4.02,2-7.8,4.44-11.3,7.26-3.49,2.92-6.72,6.13-9.66,9.6l-.29.3c-1.75,1.51-4.39,1.32-5.9-.43-1.15-1.33-1.35-3.23-.49-4.77l.3-.43c3.17-3.94,6.66-7.61,10.45-10.95,3.92-3.35,8.19-6.26,12.74-8.69,9.23-4.9,19.54-7.42,29.99-7.31,10.42.1,20.69,2.48,30.08,6.99,4.73,2.25,9.18,5.04,13.27,8.31,3.64,2.88,6.85,6.26,9.55,10.03,1.83,2.58,1.23,6.16-1.35,7.99-.13.09-.26.17-.39.25-.88.53-1.89.81-2.92.81Z"/>
<path id="uuid-cd638b25-155c-4661-971b-ec6ef719aa8f" data-name="Inner_1" class="uuid-357154db-71cd-4024-8517-edeea657559f" d="m155.26,206.12c-3.16.01-5.72-2.54-5.73-5.7,0-2.58,1.72-4.85,4.21-5.53,7.04-1.93,13.68-5.11,19.61-9.37,6.49-4.62,12.01-10.48,16.24-17.24,4.18-6.77,6.8-14.38,7.66-22.29.8-8.07.04-16.21-2.23-23.99l-.07-.29c-.38-2.27,1.15-4.42,3.42-4.8,1.78-.3,3.54.58,4.38,2.17l.15.29.1.31c2.83,8.77,3.96,17.99,3.31,27.18-.74,9.33-3.55,18.38-8.22,26.49-9.18,15.6-23.87,27.21-41.17,32.52-.54.16-1.1.25-1.66.25Z"/>
</g>
<!-- Outer layers - counterclockwise rotation -->
<g class="outer-group">
<path id="uuid-d7d9aa04-bd2a-45a8-be1c-106fe8b892a4" data-name="Outer_3" class="uuid-4279037b-78dd-4176-9593-3310bc1ea4ae" d="m220.66,169.48c-9.88-.1-17.97,7.83-18.06,17.71-.03,3.41.91,6.76,2.71,9.65-4.47,5.24-9.49,9.98-14.97,14.13-10.01,7.62-21.54,12.99-33.82,15.74-12.36,2.68-25.18,2.53-37.47-.44-11.4-2.64-23.15-7.97-34.93-15.85l-.1-.07c-2.21-1.33-5.08-.62-6.41,1.59-1.21,2-.75,4.59,1.07,6.05l.11.08c12.45,9,25.1,15.27,37.58,18.66,8.11,2.26,16.49,3.44,24.91,3.52,5.92.06,11.84-.45,17.66-1.52,14.21-2.65,27.67-8.33,39.48-16.66,7.01-4.93,13.41-10.65,19.09-17.06,9.75,1.64,18.98-4.93,20.63-14.68,1.64-9.75-4.93-18.98-14.68-20.63-.93-.16-1.87-.24-2.81-.25h0Z"/>
<path id="uuid-0a5b624b-dc54-4939-aa17-2c9a294f249d" data-name="Outer_2" class="uuid-cd5c08b7-69ff-49dc-838c-48a1f782617b" d="m80.27,186.98c-3.11-7.82-11.26-12.4-19.56-11.01-10.06-20.68-12.08-44.36-5.66-66.44,2.08-6.81,5.05-13.32,8.83-19.36,3.83-6.06,8.41-11.61,13.65-16.51,5.3-4.94,11.12-9.3,17.34-13.02,6.4-3.68,13.08-6.85,19.97-9.47l.59-.23.49-.39c1.58-1.27,2.18-3.41,1.49-5.32-.78-2.2-3.09-3.47-5.36-2.95l-.43.12c-7.49,2.58-14.76,5.75-21.75,9.49-7.01,3.89-13.59,8.5-19.62,13.78-6.11,5.36-11.5,11.47-16.05,18.2-4.56,6.78-8.21,14.13-10.84,21.87-5.18,15.54-6.59,32.08-4.11,48.27,1.52,10.46,4.61,20.64,9.16,30.18-5.2,8.41-2.6,19.44,5.81,24.64,8.41,5.2,19.44,2.6,24.64-5.81,2.98-4.83,3.5-10.78,1.4-16.05h0Z"/>
<path id="uuid-74e097e0-30f2-4d45-acf0-c46b768b0f73" data-name="Outer_1" class="uuid-9e1c1075-b17d-4391-911a-dfd9549cf5fb" d="m136.02,63.89c7.99,2.21,16.45-1.38,20.42-8.67,20.58,4.26,39.13,15.29,52.71,31.32,8.59,10.26,14.65,22.38,17.7,35.41,2.93,12.08,3.22,25.66.87,40.35l-.05.52c-.06,2.33,1.61,4.34,3.91,4.7.22.03.44.06.66.06,1.83.05,3.53-.98,4.33-2.63l.24-.48.1-.53c3.11-15.89,3.27-30.81.49-44.31-2.96-14.88-9.37-28.87-18.71-40.82-9.41-11.93-21.26-21.72-34.75-28.72-8.34-4.32-17.21-7.54-26.38-9.58-.34-.95-.76-1.87-1.26-2.76-4.9-8.59-15.83-11.59-24.42-6.69-8.59,4.9-11.59,15.83-6.69,24.42,2.35,4.12,6.24,7.15,10.82,8.4h0Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -321,7 +321,7 @@ export default styled(Address)<Props>`
&.chain { &.chain {
background: var(--primaryColor); background: var(--primaryColor);
border-radius: 0 0 0 10px; border-radius: 0 0 0 10px;
color: white; color: var(--primaryColorLabel);
padding: 0.1rem 0.5rem 0.1rem 0.75rem; padding: 0.1rem 0.5rem 0.1rem 0.75rem;
right: 0; right: 0;
z-index: 1; z-index: 1;

View File

@ -3,7 +3,7 @@
import React from 'react'; import React from 'react';
import spinnerSrc from '../assets/spinner.png'; import spinnerSrc from '../assets/ghost-spinner.svg';
import { styled } from '../styled.js'; import { styled } from '../styled.js';
interface Props { interface Props {

View File

@ -5,7 +5,7 @@ import { faArrowLeft, faCog, faPlusCircle, faSearch } from '@fortawesome/free-so
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
import logo from '../assets/pjs.svg'; import logo from '../assets/GHOST-Keychain.svg';
import { ActionContext } from '../components/index.js'; import { ActionContext } from '../components/index.js';
import InputFilter from '../components/InputFilter.js'; import InputFilter from '../components/InputFilter.js';
import Link from '../components/Link.js'; import Link from '../components/Link.js';
@ -113,7 +113,7 @@ function Header ({ children, className = '', onFilter, showAdd, showBackArrow, s
/> />
) )
} }
<span className='logoText'>{text || 'polkadot{.js}'}</span> <span className='logoText'>{text || 'GHOST Keychain'}</span>
</div> </div>
{showSearch && ( {showSearch && (
<div className={`searchBarWrapper ${isSearchOpen ? 'selected' : ''}`}> <div className={`searchBarWrapper ${isSearchOpen ? 'selected' : ''}`}>
@ -245,7 +245,7 @@ export default React.memo(styled(Header)<Props>`
.greenDot { .greenDot {
margin-right: 0.3rem; margin-right: 0.3rem;
font-size: 1.5rem; font-size: 2rem;
color: var(--connectedDotColor); color: var(--connectedDotColor);
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
} }

View File

@ -6,7 +6,7 @@ import React, { useCallback, useContext, useEffect, useMemo, useState } from 're
import { settings } from '@polkadot/ui-settings'; import { settings } from '@polkadot/ui-settings';
import { ActionContext, ActionText, Checkbox, chooseTheme, Dropdown, Menu, MenuDivider, MenuItem, Switch, ThemeSwitchContext } from '../components/index.js'; import { ActionContext, ActionText, Checkbox, Dropdown, Menu, MenuDivider, MenuItem } from '../components/index.js';
import { useIsPopup, useTranslation } from '../hooks/index.js'; import { useIsPopup, useTranslation } from '../hooks/index.js';
import { setNotification, windowOpen } from '../messaging.js'; import { setNotification, windowOpen } from '../messaging.js';
import { styled } from '../styled.js'; import { styled } from '../styled.js';
@ -34,8 +34,6 @@ function MenuSettings ({ className, reference }: Props): React.ReactElement<Prop
const [camera, setCamera] = useState(settings.camera === 'on'); const [camera, setCamera] = useState(settings.camera === 'on');
const [prefix, setPrefix] = useState(`${settings.prefix === -1 ? 42 : settings.prefix}`); const [prefix, setPrefix] = useState(`${settings.prefix === -1 ? 42 : settings.prefix}`);
const [notification, updateNotification] = useState(settings.notification); const [notification, updateNotification] = useState(settings.notification);
const [theme, setTheme] = useState(chooseTheme());
const setThemeContext = useContext(ThemeSwitchContext);
const isPopup = useIsPopup(); const isPopup = useIsPopup();
const languageOptions = useMemo(() => getLanguageOptions(), []); const languageOptions = useMemo(() => getLanguageOptions(), []);
const onAction = useContext(ActionContext); const onAction = useContext(ActionContext);
@ -61,16 +59,6 @@ function MenuSettings ({ className, reference }: Props): React.ReactElement<Prop
}, [] }, []
); );
const _onSetTheme = useCallback(
(checked: boolean): void => {
const theme = checked ? 'dark' : 'light';
setThemeContext(theme);
setTheme(theme);
},
[setThemeContext]
);
const _onWindowOpen = useCallback( const _onWindowOpen = useCallback(
(): void => { (): void => {
windowOpen('/').catch(console.error); windowOpen('/').catch(console.error);
@ -100,17 +88,6 @@ function MenuSettings ({ className, reference }: Props): React.ReactElement<Prop
className={className} className={className}
ref={reference} ref={reference}
> >
<MenuItem
className='setting'
title='Theme'
>
<Switch
checked={theme === 'dark'}
checkedLabel={t('Dark')}
onChange={_onSetTheme}
uncheckedLabel={t('Light')}
/>
</MenuItem>
<MenuItem <MenuItem
className='setting' className='setting'
title={t('Display address format for')} title={t('Display address format for')}

View File

@ -14,4 +14,12 @@ const hashes: MetadataDefBase[] = selectableNetworks
ss58Format: network.prefix ss58Format: network.prefix
})); }));
// Inject CASPER (not in the upstream SS58 registry yet)
hashes.push({
chain: 'CASPER Staging Testnet',
genesisHash: '0xcaf9c5ddccc7ba6f96149a6b8a81c26a3641742795cd5e7e0aee79bf3f4e77b7' as `0x${string}`,
icon: 'substrate',
ss58Format: 1996
});
export default hashes; export default hashes;

View File

@ -1,9 +1,9 @@
{ {
"author": "polkadot.{js}", "author": "GHOST",
"description": "Manage your Polkadot accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.", "description": "Manage your GHOST Chain accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.",
"homepage_url": "https://github.com/polkadot-js/extension", "homepage_url": "https://git.ghostchain.io/ghostchain/ghost-keychain",
"name": "polkadot{.js} extension", "name": "GHOST Keychain",
"short_name": "polkadot{.js}", "short_name": "GHOST Keychain",
"manifest_version": 3, "manifest_version": 3,
"permissions": ["storage", "tabs"], "permissions": ["storage", "tabs"],
"background": { "background": {
@ -11,7 +11,7 @@
"type": "module" "type": "module"
}, },
"action": { "action": {
"default_title": "polkadot{.js}", "default_title": "GHOST Keychain",
"default_popup": "index.html" "default_popup": "index.html"
}, },
"content_scripts": [{ "content_scripts": [{

View File

@ -1,9 +1,10 @@
{ {
"author": "polkadot.{js}", "author": "GHOST",
"description": "Manage your Polkadot accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.", "description": "Manage your GHOST Chain accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.",
"homepage_url": "https://github.com/polkadot-js/extension", "homepage_url": "https://git.ghostchain.io/ghostchain/ghost-keychain",
"name": "polkadot{.js} extension", "name": "GHOST Keychain",
"short_name": "polkadot{.js}", "version": "0.0.1",
"short_name": "GHOST Keychain",
"manifest_version": 3, "manifest_version": 3,
"permissions": ["storage", "tabs"], "permissions": ["storage", "tabs"],
"background": { "background": {
@ -11,13 +12,16 @@
"type": "module" "type": "module"
}, },
"action": { "action": {
"default_title": "polkadot{.js}", "default_title": "GHOST Keychain",
"default_popup": "index.html" "default_popup": "index.html"
}, },
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "{7e3ce1f0-15fb-4fb1-99c6-25774749ec6d}", "id": "dev@ghostchain.io",
"strict_min_version": "108.0.2" "strict_min_version": "140.0",
"data_collection_permissions": {
"required": ["none"]
}
} }
}, },
"content_scripts": [{ "content_scripts": [{

View File

@ -1,7 +1,7 @@
{ {
"author": "Jaco Greeff <jacogr@gmail.com>", "author": "GHOST Chain <dev@ghostchain.io>",
"bugs": "https://github.com/polkadot-js/extension/issues", "bugs": "https://github.com/polkadot-js/extension/issues",
"description": "A sample signer extension for the @polkadot/api", "description": "Manage your GHOST Chain accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.",
"engines": { "engines": {
"node": ">=18" "node": ">=18"
}, },
@ -15,12 +15,12 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "0.64.1", "version": "0.0.1",
"dependencies": { "dependencies": {
"@polkadot/api": "^17.0.1", "@polkadot/api": "^17.0.1",
"@polkadot/extension-base": "0.64.1", "@polkadot/extension-base": "0.0.1",
"@polkadot/extension-inject": "0.64.1", "@polkadot/extension-inject": "0.0.1",
"@polkadot/extension-ui": "0.64.1", "@polkadot/extension-ui": "0.0.1",
"tslib": "^2.8.1" "tslib": "^2.8.1"
}, },
"devDependencies": { "devDependencies": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,11 @@
@font-face { @font-face {
font-family: 'Nunito'; font-family: 'Ubuntu';
src: url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.eot'); /* IE9 Compat Modes */ src: url('./Ubuntu-Regular.eot'); /* IE9 Compat Modes */
src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), src: local('Ubuntu Regular'), local('Ubuntu-Regular'),
url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('./Ubuntu-Regular.eot?#iefix') format('embedded-opentype'),
url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('./Ubuntu-Regular.woff2') format('woff2'),
url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */ url('./Ubuntu-Regular.woff') format('woff'),
url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('./Ubuntu-Regular.ttf') format('truetype');
url('./nunito-sans-v6-vietnamese_latin-ext_latin-regular.svg#NunitoSans') format('svg'); /* Legacy iOS */
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,4 +1,106 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><!-- Generator: Adobe Illustrator 23.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="15 15 140 140" style="enable-background:new 0 0 170 170;zoom: 1;" xml:space="preserve"><style type="text/css"> <?xml version="1.0" encoding="UTF-8"?>
.bg0{fill:#FF8C00} <svg id="uuid-a5496f4a-2166-4cc5-8af9-5970a08f4d7b" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400">
.st0{fill:#FFFFFF;} <defs>
</style><g><circle class="bg0" cx="85" cy="85" r="70"></circle><g><path class="st0" d="M85,34.7c-20.8,0-37.8,16.9-37.8,37.8c0,4.2,0.7,8.3,2,12.3c0.9,2.7,3.9,4.2,6.7,3.3c2.7-0.9,4.2-3.9,3.3-6.7 c-1.1-3.1-1.6-6.4-1.5-9.7C58.1,57.6,69.5,46,83.6,45.3c15.7-0.8,28.7,11.7,28.7,27.2c0,14.5-11.4,26.4-25.7,27.2 c0,0-5.3,0.3-7.9,0.7c-1.3,0.2-2.3,0.4-3,0.5c-0.3,0.1-0.6-0.2-0.5-0.5l0.9-4.4L81,73.4c0.6-2.8-1.2-5.6-4-6.2 c-2.8-0.6-5.6,1.2-6.2,4c0,0-11.8,55-11.9,55.6c-0.6,2.8,1.2,5.6,4,6.2c2.8,0.6,5.6-1.2,6.2-4c0.1-0.6,1.7-7.9,1.7-7.9 c1.2-5.6,5.8-9.7,11.2-10.4c1.2-0.2,5.9-0.5,5.9-0.5c19.5-1.5,34.9-17.8,34.9-37.7C122.8,51.6,105.8,34.7,85,34.7z M87.7,121.7 c-3.4-0.7-6.8,1.4-7.5,4.9c-0.7,3.4,1.4,6.8,4.9,7.5c3.4,0.7,6.8-1.4,7.5-4.9C93.3,125.7,91.2,122.4,87.7,121.7z"></path></g></g></svg> <style>
.uuid-e23459ef-e7b2-4e98-a6c8-0b4d9867801c {
fill: url(#uuid-a879911e-1401-48a0-9e33-3ed2864265b2);
}
.uuid-6b01caa0-eea2-4a85-964f-3293845e1d69 {
fill: #fff;
}
.uuid-98bf5aeb-7f7c-446d-bcd2-ca6a0de9dae8 {
fill: url(#uuid-ee475a3d-67ab-4555-a3b0-3f20604093d9);
}
.uuid-ca5b6d81-356c-49b7-b17a-702d940612a6 {
fill: url(#uuid-a17de7be-27c0-4ad8-99f4-c57f34fa1c2b);
}
.uuid-54f4362f-9142-49c1-ac4a-60a68645540a {
fill: url(#uuid-5737dee7-6c5f-4e67-9b27-4ab4c78aa799);
}
.uuid-e0752343-25ef-4e9a-8404-b81815e681db {
fill: url(#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b);
}
.uuid-99990908-a8e2-4426-b4aa-4f2c52b02d0e {
fill: none;
}
.uuid-0e700f88-9dc7-48e8-91d7-094121dace26 {
fill: url(#uuid-934549bd-490c-43d0-9be0-43dbbf727633);
}
.uuid-bfbce72d-0643-45c2-9f88-b89ccf3c7020 {
fill: url(#uuid-7a4ad035-b5e9-41cf-8a61-99c02217989c);
}
</style>
<radialGradient id="uuid-ee475a3d-67ab-4555-a3b0-3f20604093d9" cx="200" cy="200" fx="200" fy="200" r="200" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#15304c"/>
<stop offset=".47" stop-color="#1e3856"/>
<stop offset="1" stop-color="#223c5a"/>
</radialGradient>
<linearGradient id="uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b" x1="205.84" y1="258.35" x2="90.9" y2="204.75" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".02" stop-color="#fff" stop-opacity=".07"/>
<stop offset=".09" stop-color="#fff" stop-opacity=".26"/>
<stop offset=".17" stop-color="#fff" stop-opacity=".44"/>
<stop offset=".25" stop-color="#fff" stop-opacity=".59"/>
<stop offset=".33" stop-color="#fff" stop-opacity=".72"/>
<stop offset=".43" stop-color="#fff" stop-opacity=".82"/>
<stop offset=".53" stop-color="#fff" stop-opacity=".9"/>
<stop offset=".64" stop-color="#fff" stop-opacity=".96"/>
<stop offset=".77" stop-color="#fff" stop-opacity=".99"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="uuid-7a4ad035-b5e9-41cf-8a61-99c02217989c" x1="159.33" y1="183.78" x2="239.63" y2="103.48" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-a17de7be-27c0-4ad8-99f4-c57f34fa1c2b" x1="253.45" y1="167.81" x2="253.45" y2="293.92" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset="0" stop-color="#fefefe" stop-opacity="0"/>
<stop offset=".07" stop-color="#f9fafa" stop-opacity=".21"/>
<stop offset=".15" stop-color="#f4f5f7" stop-opacity=".4"/>
<stop offset=".23" stop-color="#eff2f4" stop-opacity=".56"/>
<stop offset=".32" stop-color="#eceff1" stop-opacity=".7"/>
<stop offset=".41" stop-color="#e9ecef" stop-opacity=".81"/>
<stop offset=".51" stop-color="#e6eaee" stop-opacity=".89"/>
<stop offset=".63" stop-color="#e5e9ec" stop-opacity=".95"/>
<stop offset=".77" stop-color="#e4e8ec" stop-opacity=".99"/>
<stop offset="1" stop-color="#e4e8ec"/>
</linearGradient>
<linearGradient id="uuid-5737dee7-6c5f-4e67-9b27-4ab4c78aa799" x1="177.79" y1="235.71" x2="279.37" y2="337.3" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-a879911e-1401-48a0-9e33-3ed2864265b2" x1="168.26" y1="181.94" x2="55.77" y2="181.94" xlink:href="#uuid-0cce9ffd-2449-4b38-a8e4-80dc3488477b"/>
<linearGradient id="uuid-934549bd-490c-43d0-9be0-43dbbf727633" x1="257.82" y1="239.48" x2="257.82" y2="43.33" gradientTransform="translate(399.52 401.02) rotate(-180)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".02" stop-color="#fff" stop-opacity=".07"/>
<stop offset=".09" stop-color="#fff" stop-opacity=".26"/>
<stop offset=".17" stop-color="#fff" stop-opacity=".44"/>
<stop offset=".25" stop-color="#fff" stop-opacity=".59"/>
<stop offset=".33" stop-color="#fff" stop-opacity=".72"/>
<stop offset=".43" stop-color="#fff" stop-opacity=".82"/>
<stop offset=".53" stop-color="#fff" stop-opacity=".9"/>
<stop offset=".64" stop-color="#fff" stop-opacity=".96"/>
<stop offset=".77" stop-color="#fff" stop-opacity=".99"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
<g id="uuid-1dbb2329-549c-42e6-9f4e-ce4e40b7b7bf" data-name="Layer 27">
<circle class="uuid-98bf5aeb-7f7c-446d-bcd2-ca6a0de9dae8" cx="200" cy="200" r="200"/>
<g>
<circle class="uuid-99990908-a8e2-4426-b4aa-4f2c52b02d0e" cx="199.76" cy="200.51" r="157.5"/>
<path class="uuid-e0752343-25ef-4e9a-8404-b81815e681db" d="m213.59,107.72c.19,0,.38,0,.57.03l.5.07,7.45,1.5,2.36.62c.58.16,1.11.29,1.65.43,1.08.28,2.16.56,3.23.88l.13.04,4.76,1.57c6.48,2.27,12.72,5.18,18.63,8.68,12,7.25,22.13,17.2,29.59,29.07,11,17.99,16.09,38.97,14.57,60-.42,6.15-1.63,12.21-3.58,18.06-1.46,4.22-6.06,6.45-10.28,5-4.22-1.46-6.45-6.06-5-10.28.03-.07.05-.15.08-.22,1.64-4.53,2.7-9.24,3.16-14.03.61-5.88.59-11.8-.06-17.68-1.21-11.84-4.91-23.3-10.86-33.6-6.05-10.25-14.42-18.95-24.43-25.4-5.08-3.21-10.46-5.9-16.07-8.05l-4.38-1.58c-.89-.29-1.79-.55-2.69-.81-.57-.17-1.14-.33-1.71-.5l-2.12-.62-7.11-1.65c-3.11-.96-4.86-4.26-3.9-7.37.75-2.42,2.96-4.1,5.5-4.16h0Z"/>
<path class="uuid-bfbce72d-0643-45c2-9f88-b89ccf3c7020" d="m132.37,249.32c2.69,0,5.21,1.34,6.7,3.58,2.85,4.22,6.29,8.03,10.2,11.29,4.75,4.01,9.94,7.46,15.47,10.28,11.18,5.75,23.48,8.97,36.05,9.43,6.24.21,12.49-.34,18.61-1.62,6.11-1.32,12.04-3.39,17.64-6.17,5.67-2.83,11.02-6.27,15.96-10.25,4.93-4.13,9.49-8.66,13.65-13.56l.41-.42c2.47-2.14,6.2-1.87,8.33.6,1.62,1.88,1.9,4.57.69,6.74l-.43.61c-4.47,5.57-9.41,10.74-14.77,15.47-5.54,4.73-11.57,8.85-18,12.28-13.04,6.93-27.61,10.48-42.37,10.33-14.72-.14-29.22-3.51-42.49-9.87-6.68-3.18-12.97-7.12-18.75-11.74-5.14-4.07-9.68-8.84-13.5-14.17-2.59-3.65-1.74-8.7,1.91-11.29.18-.13.36-.25.55-.36,1.25-.74,2.67-1.14,4.13-1.14Z"/>
<path class="uuid-ca5b6d81-356c-49b7-b17a-702d940612a6" d="m178.2,107.11c4.46-.01,8.08,3.59,8.1,8.05.01,3.65-2.43,6.85-5.95,7.81-9.95,2.73-19.33,7.21-27.7,13.24-9.17,6.53-16.96,14.81-22.93,24.35-5.9,9.56-9.6,20.32-10.83,31.49-1.13,11.39-.06,22.9,3.15,33.89l.1.41c.54,3.21-1.62,6.25-4.83,6.78-2.51.42-5-.81-6.19-3.07l-.21-.41-.14-.44c-4-12.38-5.59-25.42-4.68-38.4,1.04-13.18,5.01-25.97,11.62-37.42,12.97-22.04,33.72-38.43,58.16-45.94.76-.23,1.55-.35,2.35-.35Z"/>
<path class="uuid-54f4362f-9142-49c1-ac4a-60a68645540a" d="m85.82,158.87c13.95.14,25.38-11.06,25.52-25.01.05-4.82-1.28-9.55-3.83-13.63,6.31-7.4,13.4-14.09,21.15-19.97,14.14-10.76,30.43-18.35,47.77-22.24,17.47-3.79,35.56-3.58,52.93.62,16.1,3.73,32.7,11.26,49.34,22.38l.15.09c3.12,1.88,7.18.88,9.06-2.25,1.7-2.83,1.06-6.48-1.52-8.55l-.16-.12c-17.59-12.71-35.46-21.58-53.09-26.35-11.46-3.19-23.3-4.87-35.19-4.98-8.37-.08-16.72.63-24.95,2.14-20.07,3.74-39.09,11.77-55.77,23.53-9.9,6.96-18.95,15.05-26.97,24.1-13.77-2.32-26.82,6.96-29.14,20.73-2.32,13.77,6.96,26.82,20.73,29.14,1.31.22,2.64.34,3.97.35h0Z"/>
<path class="uuid-e23459ef-e7b2-4e98-a6c8-0b4d9867801c" d="m284.13,134.15c4.4,11.04,15.9,17.52,27.63,15.56,14.21,29.21,17.06,62.65,8,93.85-2.93,9.63-7.13,18.82-12.48,27.34-5.4,8.56-11.88,16.4-19.28,23.32-7.49,6.98-15.7,13.14-24.49,18.39-9.04,5.2-18.47,9.67-28.22,13.38l-.83.32-.69.55c-2.24,1.8-3.08,4.82-2.1,7.51,1.1,3.11,4.36,4.9,7.57,4.16l.6-.18c10.58-3.65,20.85-8.13,30.72-13.4,9.9-5.49,19.19-12.01,27.72-19.46,8.62-7.57,16.24-16.21,22.67-25.71,6.45-9.58,11.6-19.96,15.31-30.89,7.32-21.95,9.31-45.32,5.81-68.19-2.15-14.78-6.51-29.15-12.94-42.64,7.34-11.88,3.67-27.46-8.21-34.81-11.88-7.34-27.46-3.67-34.81,8.21-4.21,6.82-4.95,15.23-1.98,22.67h0Z"/>
<path class="uuid-0e700f88-9dc7-48e8-91d7-094121dace26" d="m205.39,308.02c-2.01-.55-4.08-.86-6.17-.9-9.42-.19-18.16,4.88-22.67,13.14-29.06-6.02-55.28-21.59-74.46-44.24-12.13-14.49-20.7-31.62-25.01-50.02-4.14-17.07-4.55-36.24-1.23-57l.07-.74c.08-3.28-2.28-6.12-5.53-6.63-.31-.05-.62-.08-.93-.08-2.59-.07-4.98,1.38-6.12,3.71l-.33.68-.15.74c-4.39,22.45-4.62,43.52-.7,62.58,4.18,21.02,13.23,40.77,26.43,57.66,13.29,16.86,30.03,30.69,49.09,40.57,11.78,6.11,24.31,10.66,37.27,13.53.48,1.35,1.08,2.65,1.78,3.89,6.91,12.13,22.36,16.37,34.49,9.45,12.13-6.91,16.37-22.36,9.45-34.49-3.31-5.84-8.81-10.11-15.29-11.87Z"/>
</g>
<g id="uuid-c7346074-9319-497f-8c65-544422098620" data-name="Keychain">
<path id="uuid-f7dc62bf-69da-4539-bca8-31b074256384" data-name="Key" class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m188.85,241.18v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-15.05,0-27.27,12.23-27.27,27.27,0,11.86,7.59,21.95,18.18,25.68v1.59s-9.09,9.09-9.09,9.09l9.09,9.09-9.09,9.09,18.36,18.18,8.91-9.09Zm-22.73-63.64c0-7.5,6.14-13.64,13.64-13.64,7.5,0,13.64,6.14,13.64,13.64s-6.14,13.64-13.64,13.64c-7.5,0-13.64-6.14-13.64-13.64"/>
<path class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m217.03,177.54c0,11.86-7.59,21.95-18.18,25.68v37.95l-3.98,4.07,5.08,5.03,8.91-9.09v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-1.71,0-3.38.17-5,.47,12.66,2.35,22.27,13.47,22.27,26.81Z"/>
<path class="uuid-6b01caa0-eea2-4a85-964f-3293845e1d69" d="m237.03,177.54c0,11.86-7.59,21.95-18.18,25.68v37.95l-3.98,4.07,5.08,5.03,8.91-9.09v-37.95c10.59-3.73,18.18-13.82,18.18-25.68,0-15.05-12.23-27.27-27.27-27.27-1.71,0-3.38.17-5,.47,12.66,2.35,22.27,13.47,22.27,26.81Z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>polkadot{.js}</title> <title>GHOST Keychain</title>
<link href="fonts/fonts.css" rel="stylesheet"> <link href="fonts/fonts.css" rel="stylesheet">
<link href="theme.css" rel="stylesheet"> <link href="theme.css" rel="stylesheet">
<style type="text/css"> <style type="text/css">

View File

@ -199,5 +199,6 @@
"I Understand": "", "I Understand": "",
"Do not teleport balances to the Relay Chain unless:": "", "Do not teleport balances to the Relay Chain unless:": "",
"Address mismatch: derived {{derived}}, expected {{expected}}. Check that the correct Ledger device is connected and the correct app is selected.": "", "Address mismatch: derived {{derived}}, expected {{expected}}. Check that the correct Ledger device is connected and the correct app is selected.": "",
"Possible cause: the Ledger App setting differs from the app originally used to derive this account.": "" "Possible cause: the Ledger App setting differs from the app originally used to derive this account.": "",
"You have been redirected because the GHOST Keychain extension believes that this website could compromise the security of your accounts and your tokens.": ""
} }

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>polkadot{.js}</title> <title>GHOST Keychain</title>
<link href="fonts/fonts.css" rel="stylesheet"> <link href="fonts/fonts.css" rel="stylesheet">
<link href="theme.css" rel="stylesheet"> <link href="theme.css" rel="stylesheet">
</head> </head>

View File

@ -20,49 +20,54 @@ div#root {
--boxLineHeight: 1rem; --boxLineHeight: 1rem;
--boxMargin: 0.75rem 0; --boxMargin: 0.75rem 0;
--boxPadding: 0 0.25rem; --boxPadding: 0 0.25rem;
--fontFamily: Nunito, sans-serif; --fontFamily: Ubuntu, sans-serif;
--fontSize: 16px; --fontSize: 16px;
--inputLabelFontSize: 10px; --inputLabelFontSize: 10px;
--labelFontSize: 13px; --labelFontSize: 13px;
--labelLineHeight: 18px; --labelLineHeight: 18px;
--lineHeight: 26px; --lineHeight: 26px;
/* shared colors */ /* shared colors */
--accountDotsIconColor: #8E8E8E; --accountDotsIconColor: #fff;
--buttonBackground: #E86F00; --buttonBackground: #F2E370;
--buttonBackgroundDangerHover: #D93B3B; --buttonBackgroundDangerHover: #CD4548;
--buttonBackgroundHover: #ED9329; --buttonBackgroundHover: #FFF49C;
--buttonTextColor: #FFFFFF; --buttonTextColor: #1f4671;
--connectedDotColor: seagreen; --connectedDotColor: #60C45B;
--errorColor: #E42F2F; --errorColor: #AB2528;
--iconWarningColor: #FF7D01; --iconWarningColor: #ED6C02;
--identiconBackground: #F4F5F8; --identiconBackground: #F4F5F8;
--primaryColor: #FF7D01; --primaryColor: #F2E370;
}
input::placeholder {
color: #9AADC3;
} }
[data-theme="dark"] { [data-theme="dark"] {
--addAccountImageBackground: #1A1B20; --addAccountImageBackground: #1A1B20;
--backButtonBackground: #3A3B41; --backButtonBackground: #3A3B41;
--backButtonBackgroundHover: #3a3b41ad; --backButtonBackgroundHover: #1F4671cc;
--backButtonTextColor: #FFFFFF; --backButtonTextColor: #FFFFFF;
--background: #26272C; --background: #50759E;
--bodyColor: #20222A; --bodyColor: #1F4671;
--boxBackground: #1A1B20; --boxBackground: #1F4671;
--boxBorderColor: #303030; --boxBorderColor: #7A99BD;
--boxShadow: rgba(0, 0, 0, 0.86); --boxShadow: rgba(0, 0, 0, 0.86);
--buttonBackgroundDanger: #AF1111; --buttonBackgroundDanger: #AB2528;
--errorBorderColor: #7E3530; --errorBorderColor: #AB2528;
--highlightedAreaBackground: #212226; --highlightedAreaBackground: #345B87;
--iconDangerColor: #AF1111; --iconDangerColor: #AF1111;
--iconNeutralColor: #8E8E8E; --iconNeutralColor: #fff;
--inputBackground: #111218; --inputBackground: #345B87;
--inputBorderColor: #43444B; --inputBorderColor: #7A99BD;
--labelColor: #9F9E99; --labelColor: #AEC4DD;
--parentLabelColor: #4A7463; --parentLabelColor: #3EA838;
--popupBackground: #38393F; --popupBackground: #345B87;
--readonlyInputBackground: #1A1B20; --readonlyInputBackground: #1F4671;
--subTextColor: #DDD; --subTextColor: #DDD;
--textColor: #FFFFFF; --textColor: #fff;
--textColorDanger: #FF8686; --textColorDanger: #F06F73;
--primaryColorLabel: #1f4671;
} }
[data-theme="light"] { [data-theme="light"] {

View File

@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/extension', path: 'auto', type: 'auto', version: '0.64.1' }; export const packageInfo = { name: '@polkadot/extension', path: 'auto', type: 'auto', version: '0.0.1' };

View File

@ -12,7 +12,7 @@ import { packageInfo } from './packageInfo.js';
function inject () { function inject () {
injectExtension(enable, { injectExtension(enable, {
name: 'polkadot-js', name: 'ghost-keychain',
version: packageInfo.version version: packageInfo.version
}); });
} }