File tree Expand file tree Collapse file tree 4 files changed +12
-88
lines changed Expand file tree Collapse file tree 4 files changed +12
-88
lines changed Original file line number Diff line number Diff line change 22
22
"@polkadot/extension-inject" : " 0.48.3-2-x" ,
23
23
"@polkadot/extension-ui" : " 0.48.3-2-x" ,
24
24
"@substrate/light-client-extension-helpers" : " ^2.0.2" ,
25
- "@substrate/smoldot-discovery" : " ^0.0.6 " ,
25
+ "@substrate/smoldot-discovery" : " ^0.0.7 " ,
26
26
"smoldot" : " ^2.0.29" ,
27
27
"tslib" : " ^2.6.2"
28
28
},
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { MESSAGE_ORIGIN_CONTENT } from '@polkadot/extension-base/defaults';
11
11
import { enable , handleResponse , redirectIfPhishing } from '@polkadot/extension-base/page' ;
12
12
import { injectExtension } from '@polkadot/extension-inject' ;
13
13
14
- import { createScClient } from './connector.js' ;
14
+ import { connector } from "@substrate/smoldot-discovery"
15
15
import { CHANNEL_ID } from './constants.js' ;
16
16
import { packageInfo } from './packageInfo.js' ;
17
17
@@ -26,7 +26,8 @@ const lightClientProvider = getLightClientProvider(CHANNEL_ID);
26
26
27
27
// #region Smoldot Discovery Provider
28
28
{
29
- const provider = lightClientProvider . then ( createScClient ) ;
29
+ const provider = lightClientProvider
30
+ . then ( ( provider ) => connector . make ( { lightClientProvider : provider } ) ) ;
30
31
31
32
const detail : SmoldotExtensionProviderDetail = Object . freeze ( {
32
33
kind : 'smoldot-v1' ,
@@ -47,7 +48,7 @@ const lightClientProvider = getLightClientProvider(CHANNEL_ID);
47
48
}
48
49
// #endregion
49
50
50
- function inject ( ) {
51
+ function inject ( ) {
51
52
injectExtension ( enable , {
52
53
name : 'polkadot-js' ,
53
54
version : packageInfo . version
Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ __metadata:
1107
1107
"@polkadot/extension-inject": "npm:0.48.3-2-x"
1108
1108
"@polkadot/extension-ui": "npm:0.48.3-2-x"
1109
1109
"@substrate/light-client-extension-helpers": "npm:^2.0.2"
1110
- "@substrate/smoldot-discovery": "npm:^0.0.6 "
1110
+ "@substrate/smoldot-discovery": "npm:^0.0.7 "
1111
1111
browser-resolve: "npm:^2.0.0"
1112
1112
buffer: "npm:^6.0.3"
1113
1113
copy-webpack-plugin: "npm:^11.0.0"
@@ -1987,12 +1987,14 @@ __metadata:
1987
1987
languageName: node
1988
1988
linkType: hard
1989
1989
1990
- "@substrate/smoldot-discovery@npm:^0.0.6 ":
1991
- version: 0.0.6
1992
- resolution: "@substrate/smoldot-discovery@npm:0.0.6 "
1990
+ "@substrate/smoldot-discovery@npm:^0.0.7 ":
1991
+ version: 0.0.7
1992
+ resolution: "@substrate/smoldot-discovery@npm:0.0.7 "
1993
1993
dependencies:
1994
1994
"@substrate/discovery": "npm:^0.0.1"
1995
- checksum: 10/4147035c86f7331dc8095a82c0ff1223a4bb9cc2ebe266e2ac5398d53f1d1b655ce3ee17499bfddd2b49bae082a3ca279e93f2787374dabd85d318c5cf0fe188
1995
+ peerDependencies:
1996
+ "@substrate/light-client-extension-helpers": ^2
1997
+ checksum: 10/e13be406980cd74c48910285b991acc17411ad0289cdcebec9f073d93dddd11cd65527ba6c518e56e0103e89fa3286f3431b7efca8bd35863be6479faf6a3561
1996
1998
languageName: node
1997
1999
linkType: hard
1998
2000
You can’t perform that action at this time.
0 commit comments