File tree Expand file tree Collapse file tree 4 files changed +7
-28
lines changed Expand file tree Collapse file tree 4 files changed +7
-28
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export interface Initialization {
7
7
darkMode ?: boolean
8
8
apiUrl ?: string
9
9
hideBranding ?: boolean
10
- pollingInterval ?: number
11
10
}
12
11
13
12
export interface Subscriptions {
@@ -182,7 +181,6 @@ export interface WalletConnectOptions extends CommonWalletOptions {
182
181
[ key : string ] : string
183
182
}
184
183
bridge : string
185
- pollingInterval : number
186
184
}
187
185
188
186
export interface TrezorOptions extends CommonWalletOptions {
Original file line number Diff line number Diff line change @@ -12,12 +12,9 @@ function createProvider(config: any) {
12
12
processMessage,
13
13
processPersonalMessage,
14
14
signMessage,
15
- signPersonalMessage,
16
- pollingInterval
15
+ signPersonalMessage
17
16
} = config
18
17
19
- console . log ( "from inside provider engine : " , { pollingInterval} )
20
-
21
18
const idMgmt =
22
19
getAccounts &&
23
20
new HookedWalletSubprovider ( {
@@ -33,7 +30,7 @@ function createProvider(config: any) {
33
30
rpcUrl : rpcUrl . includes ( 'http' ) ? rpcUrl : `https://${ rpcUrl } `
34
31
} )
35
32
36
- const provider = new Web3ProviderEngine ( { pollingInterval } )
33
+ const provider = new Web3ProviderEngine ( )
37
34
38
35
provider . addProvider ( new SubscriptionSubprovider ( ) )
39
36
provider . addProvider ( new FilterSubprovider ( ) )
Original file line number Diff line number Diff line change @@ -17,12 +17,9 @@ function walletConnect(
17
17
label,
18
18
iconSrc,
19
19
svg,
20
- networkId,
21
- pollingInterval
20
+ networkId
22
21
} = options
23
22
24
- console . log ( { pollingInterval} )
25
-
26
23
if ( ! infuraKey ) {
27
24
if ( ! rpc || ! rpc [ networkId ] ) {
28
25
throw new Error (
@@ -48,16 +45,12 @@ function walletConnect(
48
45
? rpc [ networkId ]
49
46
: `https://${ networkName ( networkId ) } .infura.io/v3/${ infuraKey } `
50
47
51
- const balanceProvider = createProvider ( {
52
- rpcUrl,
53
- pollingInterval
54
- } )
48
+ const balanceProvider = createProvider ( { rpcUrl } )
55
49
56
50
const provider = new WalletConnectProvider ( {
57
51
infuraId : infuraKey ,
58
52
rpc,
59
- bridge,
60
- pollingInterval
53
+ bridge
61
54
} )
62
55
63
56
provider . autoRefreshOnNetworkChange = false
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ export function validateInit(init: Initialization): never | void {
64
64
darkMode,
65
65
apiUrl,
66
66
hideBranding,
67
- pollingInterval,
68
67
...otherParams
69
68
} = init
70
69
@@ -78,8 +77,7 @@ export function validateInit(init: Initialization): never | void {
78
77
'walletCheck' ,
79
78
'darkMode' ,
80
79
'apiUrl' ,
81
- 'hideBranding' ,
82
- 'pollingInterval'
80
+ 'hideBranding'
83
81
] ,
84
82
'init'
85
83
)
@@ -109,12 +107,6 @@ export function validateInit(init: Initialization): never | void {
109
107
type : 'boolean' ,
110
108
optional : true
111
109
} )
112
- validateType ( {
113
- name : 'pollingInterval' ,
114
- value : pollingInterval ,
115
- type : 'number' ,
116
- optional : true
117
- } )
118
110
119
111
validateType ( {
120
112
name : 'subscriptions' ,
@@ -648,8 +640,7 @@ export function validateWalletInit(
648
640
'rpcUri' ,
649
641
'webUri' ,
650
642
'xsUri' ,
651
- 'blockedPopupRedirect' ,
652
- 'pollingInterval'
643
+ 'blockedPopupRedirect'
653
644
] ,
654
645
'walletInitObject'
655
646
)
You can’t perform that action at this time.
0 commit comments