Skip to content

Commit

Permalink
feat: 🎸 change color
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatpotato13 committed Dec 7, 2023
1 parent 92d724e commit 90f0c44
Show file tree
Hide file tree
Showing 36 changed files with 686 additions and 66 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# polkadot{.js} extension
# InfraBlockchain extension

A very simple scaffolding browser extension that injects a [@polkadot/api](https://github.com/polkadot-js/api) Signer into a page, along with any associated accounts, allowing for use by any dapp. This is an extensible POC implementation of a Polkadot/Substrate browser signer.

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
id="logo"
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjE1IDE1IDE0MCAxNDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE3MCAxNzA7em9vbTogMTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LmJnMHtmaWxsOiNGRjhDMDB9IC5zdDB7ZmlsbDojRkZGRkZGfTwvc3R5bGU+PGc+PGNpcmNsZSBjbGFzcz0iYmcwIiBjeD0iODUiIGN5PSI4NSIgcj0iNzAiPjwvY2lyY2xlPjxnPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04NSwzNC43Yy0yMC44LDAtMzcuOCwxNi45LTM3LjgsMzcuOGMwLDQuMiwwLjcsOC4zLDIsMTIuM2MwLjksMi43LDMuOSw0LjIsNi43LDMuM2MyLjctMC45LDQuMi0zLjksMy4zLTYuNyBjLTEuMS0zLjEtMS42LTYuNC0xLjUtOS43QzU4LjEsNTcuNiw2OS41LDQ2LDgzLjYsNDUuM2MxNS43LTAuOCwyOC43LDExLjcsMjguNywyNy4yYzAsMTQuNS0xMS40LDI2LjQtMjUuNywyNy4yIGMwLDAtNS4zLDAuMy03LjksMC43Yy0xLjMsMC4yLTIuMywwLjQtMywwLjVjLTAuMywwLjEtMC42LTAuMi0wLjUtMC41bDAuOS00LjRMODEsNzMuNGMwLjYtMi44LTEuMi01LjYtNC02LjIgYy0yLjgtMC42LTUuNiwxLjItNi4yLDRjMCwwLTExLjgsNTUtMTEuOSw1NS42Yy0wLjYsMi44LDEuMiw1LjYsNCw2LjJjMi44LDAuNiw1LjYtMS4yLDYuMi00YzAuMS0wLjYsMS43LTcuOSwxLjctNy45IGMxLjItNS42LDUuOC05LjcsMTEuMi0xMC40YzEuMi0wLjIsNS45LTAuNSw1LjktMC41YzE5LjUtMS41LDM0LjktMTcuOCwzNC45LTM3LjdDMTIyLjgsNTEuNiwxMDUuOCwzNC43LDg1LDM0Ljd6IE04Ny43LDEyMS43IGMtMy40LTAuNy02LjgsMS40LTcuNSw0LjljLTAuNywzLjQsMS40LDYuOCw0LjksNy41YzMuNCwwLjcsNi44LTEuNCw3LjUtNC45QzkzLjMsMTI1LjcsOTEuMiwxMjIuNCw4Ny43LDEyMS43eiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+Cg=="
/>
<h1>Polkadot{.js} extension</h1>
<h1>InfraBlockchain extension</h1>
</div>
</div>
<div id="content">
Expand Down Expand Up @@ -203,7 +203,7 @@ <h1>Polkadot{.js} extension</h1>
</div>

<h2>More info</h2>
<p>This extension is open source and the code is available on <a href="https://github.com/polkadot-js/extension">GitHub</a>.</p>
<p>This extension is open source and the code is available on <a href="https://github.com/InfraBlockchain/infra-extension">GitHub</a>.</p>
<p>For developers wanting to use the accounts from the extension in a Dapp, head to the <a href="https://polkadot.js.org/docs/extension/">developer documentation</a>.</p>
</div>
<script>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"engines": {
"node": ">=18.14"
},
"homepage": "https://github.com/polkadot-js/extension#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension#readme",
"license": "Apache-2.0",
"packageManager": "[email protected]",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": false,
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-base/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "Functions, classes and other utilities used in @polkadot/extension",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-base#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-base#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-base",
"repository": {
"directory": "packages/extension-base",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": [
"./detectPackage.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/stores/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import BaseStore from './Base.js';
export default class AccountsStore extends BaseStore<KeyringJson> implements KeyringStore {
constructor () {
super(
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'polkadot{.js}'
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'InfraBlockchain extension'
? `${EXTENSION_PREFIX}accounts`
: null
);
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-base/src/stores/Metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import BaseStore from './Base.js';
export default class MetadataStore extends BaseStore<MetadataDef> {
constructor () {
super(
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'polkadot{.js}'
EXTENSION_PREFIX && EXTENSION_PREFIX !== 'InfraBlockchain extension'
? `${EXTENSION_PREFIX}metadata`
: 'metadata'
);
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-chains/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "Definitions for all known chains as exposed by the extension.",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-chains#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-chains#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-chains",
"repository": {
"directory": "packages/extension-chains",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": [
"./detectPackage.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-compat-metamask/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "Metamask compatibility layer",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-compat-metamask#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-compat-metamask#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-compat-metamask",
"repository": {
"directory": "packages/extension-compat-metamask",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": [
"./detectPackage.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "Provides an interfaces around the injected globals for ease of access by dapp developers.",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-dapp#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-dapp#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-dapp",
"repository": {
"directory": "packages/extension-dapp",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": [
"./detectPackage.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-inject/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "A generic injector (usable to any extension), that populates the base exposed interfaces to be used by dapps.",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-inject#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-inject#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-inject",
"repository": {
"directory": "packages/extension-inject",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": true,
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-mocks/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "Definitions for all known chains as exposed by the extension.",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-mocks#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-mocks#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-mocks",
"repository": {
"directory": "packages/extension-mocks",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": false,
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"bugs": "https://github.com/InfraBlockchain/infra-extension/issues",
"description": "A sample signer extension for the @polkadot/api",
"engines": {
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-ui#readme",
"homepage": "https://github.com/InfraBlockchain/infra-extension/tree/master/packages/extension-ui#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-ui",
"repository": {
"directory": "packages/extension-ui",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
"url": "https://github.com/InfraBlockchain/infra-extension.git"
},
"sideEffects": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-ui/src/Popup/PhishingDetected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function PhishingDetected ({ className }: Props): React.ReactElement<Props> {
<Header text={t('Phishing detected')} />
<div className={className}>
<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 InfraBlockchain extension believes that this website could compromise the security of your accounts and your tokens.')}
</p>
<p className='websiteAddress'>
{decodedWebsite}
Expand Down
Loading

0 comments on commit 90f0c44

Please sign in to comment.