-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add reconnect, disconnect and changeChain, add better getProvi…
…der and new connector to manage provider
- Loading branch information
1 parent
443465b
commit 94f8792
Showing
6 changed files
with
738 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export const metamask = { | ||
mainnet: { | ||
chainId: '0x13a', | ||
chainName: 'Filecoin', | ||
rpcUrls: ['https://api.node.glif.io/rpc/v1'], | ||
blockExplorerUrls: ['https://filfox.info', 'https://explorer.glif.io/'], | ||
nativeCurrency: { | ||
name: 'Filecoin', | ||
symbol: 'FIL', | ||
decimals: 18, | ||
}, | ||
iconUrls: ['https://filsnap.dev/filecoin-logo.svg'], | ||
}, | ||
|
||
testnet: { | ||
chainId: '0x4cb2f', | ||
chainName: 'Filecoin Calibration', | ||
rpcUrls: ['https://api.calibration.node.glif.io/rpc/v1'], | ||
blockExplorerUrls: ['https://filfox.info', 'https://explorer.glif.io/'], | ||
nativeCurrency: { | ||
name: 'Filecoin', | ||
symbol: 'tFIL', | ||
decimals: 18, | ||
}, | ||
iconUrls: ['https://filsnap.dev/filecoin-logo.svg'], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export { FilsnapAdapter } from './snap' | ||
|
||
export { filForwarderMetadata } from 'filsnap/filforwarder' | ||
export type { SnapConfig, AccountInfo } from 'filsnap' | ||
export type * from './types' | ||
|
||
export { getRequestProvider } from './utils' | ||
export type { Provider } from './utils' | ||
export { FilsnapAdapter } from './snap' | ||
export { filForwarderMetadata } from 'filsnap/filforwarder' | ||
export * from './utils' |
Oops, something went wrong.