|
|
|
@ -14,6 +14,9 @@ import { shortenAddress } from "@remix-ui/helper" |
|
|
|
|
const _paq = window._paq = window._paq || [] |
|
|
|
|
|
|
|
|
|
export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => { |
|
|
|
|
// This maintains current network state and update the pinned contracts list,
|
|
|
|
|
// only when there is a change in provider or in chain id for same provider
|
|
|
|
|
// as 'networkStatus' is triggered in each 10 seconds
|
|
|
|
|
const currentNetwork = { |
|
|
|
|
provider: null, |
|
|
|
|
chainId: null |
|
|
|
|