-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add coinbase wallet and baseGoerli network support * add faucet * update contract address * hide non-american while in base network * change base contract address * update contract address --------- Co-authored-by: alpers <[email protected]>
- Loading branch information
1 parent
8bbbdef
commit 2f5ca86
Showing
35 changed files
with
1,181 additions
and
131 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 +1,6 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export * from './zCloakSBT'; | ||
export * from './op-sbt'; | ||
export * from './base-sbt'; | ||
export * from './utils'; |
2 changes: 1 addition & 1 deletion
2
packages/app-config/src/abi/zCloakSBT.ts → packages/app-config/src/abi/op-sbt.ts
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,18 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { baseGoerli, optimismGoerli } from '@credential/react-components'; | ||
|
||
import { baseSbtAbi } from './base-sbt'; | ||
import { opSbtAbi } from './op-sbt'; | ||
|
||
export function getAbi(chainId?: number) { | ||
switch (chainId) { | ||
case optimismGoerli.id: | ||
return opSbtAbi; | ||
case baseGoerli.id: | ||
return baseSbtAbi; | ||
default: | ||
return undefined; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// generate by buildAssets.js | ||
|
||
import type { SvgIconProps } from '@mui/material'; | ||
|
||
import React from 'react'; | ||
|
||
import { SvgIcon } from '@credential/react-components'; | ||
|
||
import IconCoinbaseSvg from '../assets/icon_coinbase.svg'; | ||
|
||
function IconCoinbase(props: SvgIconProps) { | ||
return <SvgIcon component={IconCoinbaseSvg} fontSize='inherit' viewBox='0 0 24 24' {...props} />; | ||
} | ||
|
||
export default React.memo(IconCoinbase); |
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,18 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// generate by buildAssets.js | ||
|
||
import type { SvgIconProps } from '@mui/material'; | ||
|
||
import React from 'react'; | ||
|
||
import { SvgIcon } from '@credential/react-components'; | ||
|
||
import IconNetworkSvg from '../assets/icon_network.svg'; | ||
|
||
function IconNetwork(props: SvgIconProps) { | ||
return <SvgIcon component={IconNetworkSvg} fontSize='inherit' viewBox='0 0 18 18' {...props} />; | ||
} | ||
|
||
export default React.memo(IconNetwork); |
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,18 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// generate by buildAssets.js | ||
|
||
import type { SvgIconProps } from '@mui/material'; | ||
|
||
import React from 'react'; | ||
|
||
import { SvgIcon } from '@credential/react-components'; | ||
|
||
import IconTestnetSvg from '../assets/icon_testnet.svg'; | ||
|
||
function IconTestnet(props: SvgIconProps) { | ||
return <SvgIcon component={IconTestnetSvg} fontSize='inherit' viewBox='0 0 20 20' {...props} />; | ||
} | ||
|
||
export default React.memo(IconTestnet); |
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,18 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// generate by buildAssets.js | ||
|
||
import type { SvgIconProps } from '@mui/material'; | ||
|
||
import React from 'react'; | ||
|
||
import { SvgIcon } from '@credential/react-components'; | ||
|
||
import LogoMetamaskSvg from '../assets/logo_metamask.svg'; | ||
|
||
function LogoMetamask(props: SvgIconProps) { | ||
return <SvgIcon component={LogoMetamaskSvg} fontSize='inherit' viewBox='0 0 18.739 17.352' {...props} />; | ||
} | ||
|
||
export default React.memo(LogoMetamask); |
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
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
Oops, something went wrong.