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

Support fuse #14493

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions packages/hardhat-helpers/src/etherscan.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const etherscan = {
linea: 'S66J314Q7PICPB4RP2G117KDFQRBEUYIFX',
polygonZkEVM: '8H4ZB9SQBMQ7WA1TCIXFQVCHTVX8DXTY9Y',
scroll: 'BZEXNPN6KKKJQ8VIMNXZDZNEX7QQZWZQ3P',
fuse: '20777d49-374c-4501-83c8-cbcb565d4cd4',
},
// TODO : generate from networks package!
customChains: [
Expand Down Expand Up @@ -62,6 +63,14 @@ const etherscan = {
browserURL: 'https://scrollscan.com/',
},
},
{
network: 'fuse',
chainId: 122,
urls: {
apiURL: 'https://explorer.fuse.io/api',
browserURL: 'https://explorer.fuse.io/',
},
},
],
}

Expand Down
71 changes: 71 additions & 0 deletions packages/networks/src/networks/fuse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { NetworkConfig } from '@unlock-protocol/types'

export const fuse: NetworkConfig = {
chain: 'fuse',
description: 'Fuse is an EVM-compatible Layer-1 blockchain.',
explorer: {
name: 'Fuse Explorer',
urls: {
address: (address: string) =>
`https://explorer.fuse.io/address/${address}`,
base: `https://explorer.fuse.io/`,
token: (address: string, holder: string) =>
`https://explorer.fuse.io/token/${address}?a=${holder}`,
transaction: (hash: string) => `https://explorer.fuse.io/tx/${hash}`,
},
},
featured: false,
fullySubsidizedGas: false,
hooks: {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to deploy the hooks too please.

id: 122,
isTestNetwork: false,
keyManagerAddress: '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please deploy that contract as well

maxFreeClaimCost: 0,
multisig: '0x5ED353B723847E0317a59aE224613C399a4D0d8c',
name: 'Fuse Mainnet',
nativeCurrency: {
coingecko: 'fuse',
decimals: 18,
name: 'FUSE',
symbol: 'FUSE',
wrapped: '0x0BE9e53fd7EDaC9F859882AfdDa116645287C629',
},

previousDeploys: [],

provider: 'https://rpc.fuse.io/',

publicLockVersionToDeploy: 14,

publicProvider: 'https://rpc.fuse.io/',

startBlock: 31355828,
subgraph: {
endpoint:
'https://api.studio.thegraph.com/query/87693/unlock-protocol-fuse/version/latest', // this is given to you by the graph after deploying
networkName: 'fuse', // the graph name of the network see https://thegraph.com/docs/en/developing/supported-networks/
studioName: 'unlock-protocol-fuse', // the name of the graph
},
tokens: [
{
address: '0x5622F6dC93e08a8b717B149677930C38d5d50682',
decimals: 18,
featured: true,
name: 'Wrapped Ether',
symbol: 'WETH',
},
{
address: '0x28C3d1cD466Ba22f6cae51b1a4692a831696391A',
decimals: 6,
featured: true,
name: 'USD Coin',
symbol: 'USDC',
},
],
unlockAddress: '0xbf36B2a6dd0019555A33602Bf04e2882b0cEc843',
unlockDaoToken: {
address: '',
},
}

export default fuse
1 change: 1 addition & 0 deletions packages/networks/src/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ export * from './zkevm'
export * from './scroll'
export * from './zksync'
export * from './base-sepolia'
export * from './fuse'
Loading