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

[DRAFT] feat: extension-rpc #1390

Closed
wants to merge 1 commit into from
Closed
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/extension-rpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @polkadot/extension-rpc
74 changes: 74 additions & 0 deletions packages/extension-rpc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"author": "Jaco Greeff <[email protected]>",
"bugs": "https://github.com/polkadot-js/extension/issues",
"description": "A sample signer extension for the @polkadot/api",
"engines": {
"node": ">=18"
},
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-rpc#readme",
"license": "Apache-2.0",
"name": "@polkadot/extension-rpc",
"repository": {
"directory": "packages/extension-rpc",
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
},
"sideEffects": [
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "0.48.3-2-x",
"main": "index.js",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@paraspell/xcm-analyser": "^1.3.0",
"@polkadot/api": "^12.0.2",
"@polkadot/extension-base": "0.48.3-2-x",
"@polkadot/extension-chains": "0.48.3-2-x",
"@polkadot/extension-dapp": "0.48.3-2-x",
"@polkadot/extension-inject": "0.48.3-2-x",
"@polkadot/hw-ledger": "^12.6.2",
"@polkadot/keyring": "^12.6.2",
"@polkadot/networks": "^12.6.2",
"@polkadot/react-identicon": "^3.6.6",
"@polkadot/react-qr": "^3.6.6",
"@polkadot/types": "^12.0.2",
"@polkadot/types-augment": "^12.0.2",
"@polkadot/ui-keyring": "^3.6.6",
"@polkadot/ui-settings": "^3.6.6",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"file-saver": "^2.0.5",
"i18next": "^23.7.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^11.7.1",
"react-i18next": "^13.5.0",
"react-is": "^18.2.0",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4",
"styled-components": "^6.1.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev-test": "^0.79.3",
"@polkadot/extension-mocks": "0.48.3-2-x",
"@types/enzyme": "^3.10.18",
"@types/enzyme-adapter-react-16": "^1.0.9",
"@types/file-saver": "^2.0.7",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.2.18",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/sinon-chrome": "^2.2.15",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.7",
"sinon-chrome": "^3.0.1"
}
}
4 changes: 4 additions & 0 deletions packages/extension-rpc/src/adapter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2019-2024 @polkadot/extension-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0

declare module '@wojtekmaj/enzyme-adapter-react-17';
6 changes: 6 additions & 0 deletions packages/extension-rpc/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2019-2024 @polkadot/extension-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0

export type * from './types.js';

Check failure on line 4 in packages/extension-rpc/src/index.ts

View workflow job for this annotation

GitHub Actions / pr (lint)

Run autofix to sort these exports!
export * from './rpc.js'

Check failure on line 5 in packages/extension-rpc/src/index.ts

View workflow job for this annotation

GitHub Actions / pr (lint)

Missing semicolon
export { packageInfo } from './packageInfo.js';
12 changes: 12 additions & 0 deletions packages/extension-rpc/src/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2017-2024 @polkadot/extension-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, [injectInfo]);
6 changes: 6 additions & 0 deletions packages/extension-rpc/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2017-2024 @polkadot/extension-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-rpc', path: 'auto', type: 'auto', version: '0.48.3-2-x' };
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2019-2024 @polkadot/extension-ui authors & contributors
// Copyright 2019-2024 @polkadot/extension-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0

/* global chrome */

Check failure on line 4 in packages/extension-rpc/src/rpc.spec.ts

View workflow job for this annotation

GitHub Actions / pr (lint)

'chrome' is defined but never used. Allowed unused vars must match /^_/u

/*

Check warning on line 5 in packages/extension-rpc/src/rpc.spec.ts

View workflow job for this annotation

GitHub Actions / pr (lint)

Some tests seem to be commented
import '@polkadot/extension-mocks/chrome';

import type * as _ from '@polkadot/dev-test/globals.d.ts';
Expand Down Expand Up @@ -30,3 +30,4 @@
);
});
});
*/
Loading